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 # aggregate syntax: 
query I rowsort label-0
SELECT DISTINCT COUNT( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT COUNT ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 43 + col2 AS col0 FROM tab2
----
101
66
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 + + col1 col2 FROM tab0 AS cor0
----
25
5
85

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

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

query I rowsort
SELECT ALL + 91 * - + col0 FROM tab0 AS cor0
----
-1365
-7917
-8827

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

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

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

query I rowsort
SELECT - col1 * + 46 AS col1 FROM tab2
----
-2346
-3082
-3542

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70, col0 * + 61 col1 FROM tab0 WHERE NOT 63 IS NOT NULL AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 + - col0 * - 33 FROM tab2
----
1569
2189
2542

query I rowsort
SELECT col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL + COUNT( * ) + COUNT( ALL - col1 ) + - 95 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + COUNT ( * ) + COUNT ( ALL - col1 ) + - 95 FROM tab1
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab1 AS cor0 WHERE - 14 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 - + + col0 FROM tab2 AS cor0
----
-104
-133
-69

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 / + col0 * 98 + - - 6 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 19 + + 67 - + col2 AS col2 FROM tab0 AS cor0
----
-13
39
76

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

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 12 + + ( - 0 ) * col2 col1 FROM tab0 AS cor0
----
-12
-12
-12

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

query I rowsort
SELECT ALL ( + col0 ) - - + 41 AS col1 FROM tab1
----
126
132
92

query I rowsort
SELECT 13 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT + SUM( + - 39 ) AS col2 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-28
SELECT + SUM ( + - 39 ) AS col2 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT - ( + MIN( - col1 ) ) AS col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-29
SELECT - ( + MIN ( - col1 ) ) AS col0 FROM tab0 cor0
----
81

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

query I rowsort
SELECT DISTINCT col0 * - ( 67 ) AS col0 FROM tab0 AS cor0
----
-1005
-5829
-6499

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT COUNT( * ) * - - 41 * COUNT( * ) col1 FROM tab1 AS cor0
----
369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-32
SELECT COUNT ( * ) * - - 41 * COUNT ( * ) col1 FROM tab1 AS cor0
----
369

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT ALL - 7 DIV col0 * - col2 AS col2 FROM tab2 WHERE NOT - 31 * + col0 DIV 20 IN ( + - col1, + col2, 96 * - - col2, - - col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - 7 / col0 * - col2 AS col2 FROM tab2 WHERE NOT - 31 * + col0 / 20 IN ( + - col1, + col2, 96 * - - col2, - - col2 )
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT ALL col1 DIV - + ( - col0 ) FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL col1 / - + ( - col0 ) FROM tab0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab2 WHERE 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-40
SELECT + COUNT( * ) AS col2, + COUNT( * ) * - 65 - - COUNT( * ) AS col2 FROM tab1
----
3
-192

skipif mysql # not compatible
query II rowsort label-40
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) * - 65 - - COUNT ( * ) AS col2 FROM tab1
----
3
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-41
SELECT DISTINCT - 98 col0, COUNT( + col0 ) AS col2 FROM tab1
----
-98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-41
SELECT DISTINCT - 98 col0, COUNT ( + col0 ) AS col2 FROM tab1
----
-98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-42
SELECT ALL - ( MIN( ALL - col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL - ( MIN ( ALL - col2 ) ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-43
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + - col1 / + col2 * - col1 + + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-43
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + - col1 / + col2 * - col1 + + CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT col2 DIV - 54 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT col2 / - 54 FROM tab1 AS cor0
----
-1

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

query I rowsort
SELECT ALL - 83 * + + col1 AS col1 FROM tab1 AS cor0
----
-1162
-3901
-415

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

query I rowsort
SELECT DISTINCT 71 * + col2 AS col2 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT + col1 + - col2 * + 17 FROM tab1
----
-1109
-1618
-998

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-50
SELECT * FROM tab1 WHERE 5 NOT IN ( CAST( col0 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-50
SELECT * FROM tab1 WHERE 5 NOT IN ( CAST ( col0 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT ALL + SUM( DISTINCT col0 ) * 70 AS col0 FROM tab1
----
15890

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + SUM ( DISTINCT col0 ) * 70 AS col0 FROM tab1
----
15890

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT MIN( DISTINCT - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-52
SELECT MIN ( DISTINCT - col1 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-53
SELECT ALL - CAST( NULL AS DECIMAL ) * - ( - 34 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - CAST ( NULL AS REAL ) * - ( - 34 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 20 * + col2 FROM tab0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT COUNT( * ) * 41 AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT COUNT ( * ) * 41 AS col2 FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-56
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - 24 AS col2 FROM tab1
----
1128
120
336

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - 24 AS col2 FROM tab1
----
1128
120
336

query I rowsort
SELECT col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-58
SELECT - CAST( - ( - 42 ) AS SIGNED ) DIV + 91 - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-58
SELECT - CAST ( - ( - 42 ) AS INTEGER ) / + 91 - col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col1 * 32 FROM tab1
----
1504
160
448

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT ALL 98 DIV + 32 AS col0 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL 98 / + 32 AS col0 FROM tab2
----
3
3
3

query I rowsort
SELECT col1 * 80 AS col1 FROM tab0
----
1680
6480
80

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

query I rowsort
SELECT DISTINCT 67 FROM tab1 WHERE ( NULL ) IS NULL
----
67

query I rowsort
SELECT col1 * + ( col1 ) AS col2 FROM tab2
----
2601
4489
5929

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * col0 col1 FROM tab2
----
1012
1408
1650

query I rowsort
SELECT - 12 * + 16 AS col1 FROM tab1
----
-192
-192
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT - COUNT( * ) * 30 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - COUNT ( * ) * 30 FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT col2 DIV 51 - col2 AS col0 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-70
SELECT col2 / 51 - col2 AS col0 FROM tab2
----
-23
-40
-57

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT DISTINCT + CAST( 90 AS SIGNED ) + - col0 FROM tab2 cor0
----
15
26
44

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT + CAST ( 90 AS INTEGER ) + - col0 FROM tab2 cor0
----
15
26
44

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT COUNT( * ) + MAX( + col1 ) * MAX( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 * 74 NOT IN ( + 9 * - col1 - + ( col0 ) )
----
4280

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT COUNT ( * ) + MAX ( + col1 ) * MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 * 74 NOT IN ( + 9 * - col1 - + ( col0 ) )
----
4280

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

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

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

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

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 cor0 WHERE NOT ( col1 * col1 - 84 ) NOT BETWEEN NULL AND ( 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 - col1 col2 FROM tab0 AS cor0
----
-786
-891
-9604

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

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

skipif mysql # not compatible
query I rowsort label-81
SELECT COUNT ( * ) / + 22 FROM tab2
----
0

query I rowsort
SELECT ALL + + col0 * + 14 AS col2 FROM tab2 cor0
----
1050
644
896

onlyif mysql # aggregate syntax: 
query I rowsort label-83
SELECT DISTINCT + MAX( - 84 ) * + 47 FROM tab2 AS cor0
----
-3948

skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT + MAX ( - 84 ) * + 47 FROM tab2 AS cor0
----
-3948

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT + + 36 * MIN( 88 + 31 ) FROM tab2 AS cor0
----
4284

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT + + 36 * MIN ( 88 + 31 ) FROM tab2 AS cor0
----
4284

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + ( col2 ) ) NOT BETWEEN NULL AND ( + col1 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT + 36 FROM tab2 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-87
SELECT + 36 FROM tab2 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - + 89 * - 42 AS col1 FROM tab1 AS cor0
----
3738

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-89
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-89
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 21 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 50 * - 65
----

query I rowsort
SELECT ALL + col2 * + 37 AS col1 FROM tab0 AS cor0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT SUM( + 10 ) AS col0 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-92
SELECT SUM ( + 10 ) AS col0 FROM tab1 cor0
----
30

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-94
SELECT - - COUNT ( * ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + ( 1 ) FROM tab1
----
1
1
1

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

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

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

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

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

query I rowsort
SELECT + ( + - 22 ) FROM tab2
----
-22
-22
-22

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / + col2 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT ALL MAX( DISTINCT 84 ) * 1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL MAX ( DISTINCT 84 ) * 1 FROM tab0 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT - 4 DIV + 80 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-104
SELECT - 4 / + 80 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 7 * - 66 + col2 * col0 FROM tab2 AS cor0
----
1520
3022
4812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
225
7569
9409

query I rowsort
SELECT - col1 * - col0 * + col2 - + col2 FROM tab0 AS cor0
----
18260
57058
9504

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( - 21 ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( 50 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 52 ) BETWEEN NULL AND ( + 54 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + ( - 38 ) )
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT - ( 50 ) FROM tab2 cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 71 * + + 77 AS col0 FROM tab1 AS cor0
----
5467
5467
5467

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

query III rowsort
SELECT * FROM tab0 WHERE - 41 <= NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE - 58 NOT IN ( + 63 / + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT - COUNT( col0 ) + 18 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-127
SELECT - COUNT ( col0 ) + 18 FROM tab0 cor0
----
15

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

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - MIN ( 71 ) FROM tab0 AS cor0
----
-71

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

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

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

query I rowsort
SELECT DISTINCT 30 * + - col2 * - - col1 AS col0 FROM tab2
----
-116580
-35190
-92400

query I rowsort
SELECT - 34 + + col1 * - col2 FROM tab1 WHERE NOT 5 NOT BETWEEN + col0 AND + + col0 * col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT + + CAST( NULL AS SIGNED ) * + AVG ( + 16 ) + 99 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT + + CAST ( NULL AS INTEGER ) * + AVG ( + 16 ) + 99 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 * + 88 AS col0 FROM tab2 cor0
----
2024
3520
5104

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( - - col1 * + 51 * + ( 82 ) )
----

query I rowsort
SELECT + col1 * + - col1 + + col2 * 45 AS col2 FROM tab1
----
2630
4124
851

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT COUNT( - + col0 ) + + 39 AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-144
SELECT COUNT ( - + col0 ) + + 39 AS col0 FROM tab0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - + col2 AS col2, col2 + - col2 col1 FROM tab1
----
-21
0
-54
0
-82
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col2 + + 83 + - + col0 / - - col0 >= - 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * - 35 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT 20 DIV - 89 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-149
SELECT 20 / - 89 col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT DISTINCT ( 27 ) FROM tab2 AS cor0 WHERE NOT - col0 + + - CAST( - col0 AS SIGNED ) + + - col1 + col0 NOT BETWEEN col0 + + col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT ( 27 ) FROM tab2 AS cor0 WHERE NOT - col0 + + - CAST ( - col0 AS INTEGER ) + + - col1 + col0 NOT BETWEEN col0 + + col0 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 + + ( col1 ) + col0 AS col1 FROM tab0
----
-1
49
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 < ( 18 )
----

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

query I rowsort
SELECT DISTINCT col1 + + - col2 + + 95 * col1 FROM tab2
----
4873
6374
7352

query I rowsort
SELECT - - 77 - + - col2 FROM tab2 cor0
----
100
117
135

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

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

query I rowsort
SELECT ALL - - col2 + - + col1 * + col0 + + - 63 * col1 FROM tab0 AS cor0
----
-3140
-61
-6271

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

query I rowsort
SELECT ALL + col2 * + + 11 + col2 FROM tab0 AS cor0
----
1188
120
564

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT + + ( - - col2 ) + + + col1 * 89 DIV + col2 FROM tab0 AS cor0
----
196
200
99

skipif mysql # not compatible
query I rowsort label-161
SELECT + + ( - - col2 ) + + + col1 * 89 / + col2 FROM tab0 AS cor0
----
196
200
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT 82 * + - 92 - + 56 DIV COUNT( * ) DIV - + MAX( ALL - 89 ) FROM tab1 AS cor0
----
-7544

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT 82 * + - 92 - + 56 / COUNT ( * ) / - + MAX ( ALL - 89 ) FROM tab1 AS cor0
----
-7544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-163
SELECT ALL 72 AS col2, - 72 * - 56 - + MAX( ALL CAST( + - 12 AS SIGNED ) ) AS col2 FROM tab2
----
72
4044

skipif mysql # not compatible
query II rowsort label-163
SELECT ALL 72 AS col2, - 72 * - 56 - + MAX ( ALL CAST ( + - 12 AS INTEGER ) ) AS col2 FROM tab2
----
72
4044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-164
SELECT - CAST( + + col1 AS SIGNED ) + + col0 AS col0 FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-164
SELECT - CAST ( + + col1 AS INTEGER ) + + col0 AS col0 FROM tab1
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 * - 37 * col2 FROM tab1
----
59
-10915
68
-118252
96
-49728

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 29 col0 FROM tab0
----
-14
58
68

query I rowsort
SELECT DISTINCT - col2 + - 71 FROM tab2
----
-111
-129
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT ALL col2 DIV - - col0 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL col2 / - - col0 AS col2 FROM tab0
----
0
1
3

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

query I rowsort
SELECT 70 * + - 14 FROM tab1
----
-980
-980
-980

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 25 * - 67 FROM tab0 AS cor0
----
1675
1675
1675

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

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

query I rowsort
SELECT DISTINCT 24 * - 99 FROM tab1
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT MAX( - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-184
SELECT MAX ( - col2 ) AS col2 FROM tab1
----
-59

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

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

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

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

query I rowsort
SELECT + + 46 + col0 + col0 * + 9 AS col2 FROM tab2 AS cor0
----
506
686
796

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

query I rowsort
SELECT + col1 + 91 AS col2 FROM tab1 AS cor0
----
105
138
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-191
SELECT ALL - + COUNT ( * ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - COUNT( * ) - ( 77 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 17 * - + ( - col1 ) * - col0 + + 68 + + col2
----
-77

skipif mysql # not compatible
query I rowsort label-192
SELECT - COUNT ( * ) - ( 77 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 17 * - + ( - col1 ) * - col0 + + 68 + + col2
----
-77

query I rowsort
SELECT + + 33 + - 96 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL + col1 + - + ( col2 ) FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - MIN( ALL 63 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - MIN ( ALL 63 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT DISTINCT + 97 * col1 DIV col1 DIV 57 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT + 97 * col1 / col1 / 57 AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col1 - - 81 FROM tab0 cor0
----
0
60
80

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT 67 - + 55 * + - COUNT( * ) FROM tab1 AS cor0
----
232

skipif mysql # not compatible
query I rowsort label-201
SELECT 67 - + 55 * + - COUNT ( * ) FROM tab1 AS cor0
----
232

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

query I rowsort
SELECT ( + col0 ) - + + 20 FROM tab1
----
31
65
71

query I rowsort
SELECT ALL + 95 * + col2 FROM tab0
----
4465
9405
950

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT ALL col0 DIV col1 * - 65 * 49 * + - ( - 67 ) AS col2 FROM tab1
----
-213395
-3627715
-640185

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL col0 / col1 * - 65 * 49 * + - ( - 67 ) AS col2 FROM tab1
----
-213395
-3627715
-640185

query I rowsort
SELECT 91 * - col1 * + col1 * col2 AS col1 FROM tab1
----
-134225
-13669292
-1712256

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT 72 AS col2, - COUNT( - + 49 ) - COUNT( * ) + + 98 + - 44 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
72
54

skipif mysql # not compatible
query II rowsort label-207
SELECT 72 AS col2, - COUNT ( - + 49 ) - COUNT ( * ) + + 98 + - 44 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
72
54

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

query I rowsort
SELECT 81 * + - 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 091970b45910c8c1093aec64dd3aa57a

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 + + 0 col1 FROM tab0 AS cor0 WHERE NOT 27 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT COUNT( * ) * + 41 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-216
SELECT COUNT ( * ) * + 41 FROM tab2 AS cor0
----
123

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, + col1 - - ( + col2 ) * + col1 FROM tab0 AS cor0
----
15
3888
87
231
97
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-219
SELECT ALL - CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-220
SELECT ALL - - col2 DIV - + 27 + + col1 FROM tab2 AS cor0
----
51
65
76

skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - - col2 / - + 27 + + col1 FROM tab2 AS cor0
----
51
65
76

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

skipif mysql # not compatible
query I rowsort label-221
SELECT MIN ( ALL - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT DISTINCT 40 + - - SUM( - 74 ) AS col2 FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT 40 + - - SUM ( - 74 ) AS col2 FROM tab0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT 40 * SUM( + - 31 ) + ( MIN( + col0 ) ) FROM tab0
----
-3705

skipif mysql # not compatible
query I rowsort label-224
SELECT 40 * SUM ( + - 31 ) + ( MIN ( + col0 ) ) FROM tab0
----
-3705

query I rowsort
SELECT col1 * + - ( 73 ) + + col1 AS col0 FROM tab0
----
-1512
-5832
-72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT SUM( - 53 ) * + 7 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-227
SELECT SUM ( - 53 ) * + 7 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT - col1 - + col0 * 0 * - 73 AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 + 10 AS col1 FROM tab2
----
56
74
85

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT col0 * + 60 - - col2 DIV + col2 FROM tab0
----
5221
5821
901

skipif mysql # not compatible
query I rowsort label-230
SELECT col0 * + 60 - - col2 / + col2 FROM tab0
----
5221
5821
901

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

skipif mysql # not compatible
query I rowsort label-231
SELECT + 74 + - COUNT ( * ) FROM tab1
----
71

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-234
SELECT - CAST( col1 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-234
SELECT - CAST ( col1 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT DISTINCT + - 22 + - COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT + - 22 + - COUNT ( * ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT ALL col2 * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

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

query I rowsort
SELECT DISTINCT col1 * - + ( 14 ) FROM tab1
----
-196
-658
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT + MIN( DISTINCT + col2 ) * + 70 AS col1 FROM tab2
----
1610

skipif mysql # not compatible
query I rowsort label-240
SELECT + MIN ( DISTINCT + col2 ) * + 70 AS col1 FROM tab2
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-241
SELECT ALL - CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-242
SELECT 11 DIV + col1 AS col2, ( col2 ) AS col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-242
SELECT 11 / + col1 AS col2, ( col2 ) AS col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT DISTINCT - SUM( 83 ) col2 FROM tab0
----
-249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-243
SELECT DISTINCT - SUM ( 83 ) col2 FROM tab0
----
-249

query I rowsort
SELECT - 58 * + 75 AS col0 FROM tab0
----
-4350
-4350
-4350

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT DISTINCT - - SUM( ALL - col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
555

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT - - SUM ( ALL - col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
555

query I rowsort
SELECT ALL - + 13 FROM tab0 cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query III rowsort label-248
SELECT 88 AS col1, 21, + COUNT( * ) col1 FROM tab2 AS cor0
----
88
21
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-248
SELECT 88 AS col1, 21, + COUNT ( * ) col1 FROM tab2 AS cor0
----
88
21
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT * FROM tab0 WHERE NOT 34 > + col1
----
15
81
47

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

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

query I rowsort
SELECT + 50 + - + col2 AS col0 FROM tab0 AS cor0
----
-49
3
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-255
SELECT ALL + + 38 DIV - col2, col2 + - col2 DIV - CAST( NULL AS SIGNED ) + - col1 - + + ( - 37 ) + + col2 DIV - col1 + - 42 DIV + + col0 AS col2 FROM tab2 AS cor0
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-255
SELECT ALL + + 38 / - col2, col2 + - col2 / - CAST ( NULL AS INTEGER ) + - col1 - + + ( - 37 ) + + col2 / - col1 + - 42 / + + col0 AS col2 FROM tab2 AS cor0
----
-1
NULL
0
NULL
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT + + col1 DIV - col2 + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-256
SELECT + + col1 / - col2 + + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-257
SELECT ALL - MIN( - col0 ) DIV SUM( + 28 ) * + 18 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL - MIN ( - col0 ) / SUM ( + 28 ) * + 18 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * 38 col0 FROM tab1
----
3610
3610
3610

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT + MAX( 8 ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-259
SELECT + MAX ( 8 ) AS col0 FROM tab1
----
8

query I rowsort
SELECT DISTINCT + + col0 * - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-2139
-4136
-5683

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-261
SELECT + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-262
SELECT ALL * FROM tab1 AS cor0 WHERE 51 NOT BETWEEN - - col1 + + col1 AND ( - - CAST( + 90 AS SIGNED ) * + + col2 * col0 + + col2 )
----
91
47
68

skipif mysql # not compatible
query III rowsort label-262
SELECT ALL * FROM tab1 AS cor0 WHERE 51 NOT BETWEEN - - col1 + + col1 AND ( - - CAST ( + 90 AS INTEGER ) * + + col2 * col0 + + col2 )
----
91
47
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 11 * + + col1 + col1 col1 FROM tab1 AS cor0
----
119
264
632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 78 col1, col0 + + - col1 FROM tab2
----
-1794
-5
-3120
-13
-4524
8

query I rowsort
SELECT DISTINCT + 47 * col1 + + + col0 FROM tab0
----
1074
144
3822

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 89 col2 FROM tab2
----
140
156
166

query I rowsort
SELECT DISTINCT + - col0 * - + 39 AS col0 FROM tab0 AS cor0
----
3393
3783
585

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

query II rowsort
SELECT + 49 * - - col0, + 62 + - - col2 + - col2 AS col1 FROM tab2 AS cor0
----
2254
62
3136
62
3675
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT COUNT( 1 ) col0 FROM tab2 AS cor0 WHERE NOT + 57 + - - col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-273
SELECT COUNT ( 1 ) col0 FROM tab2 AS cor0 WHERE NOT + 57 + - - col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + 38 * - col0 * - + col0 FROM tab1 AS cor0
----
274550
314678
98838

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

onlyif mysql # aggregate syntax: 
query I rowsort label-276
SELECT SUM( ALL - 72 ) AS col2 FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-276
SELECT SUM ( ALL - 72 ) AS col2 FROM tab0 AS cor0
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 WHERE NOT NULL <= NULL
----

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

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

query I rowsort
SELECT + 90 * + - col2 AS col1 FROM tab1
----
-5310
-6120
-8640

query I rowsort
SELECT DISTINCT - col2 - 60 * + col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2867
-6039
-610

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

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL - + 91 * - COUNT( * ) + - + COUNT( * ) * 62 AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL - + 91 * - COUNT ( * ) + - + COUNT ( * ) * 62 AS col2 FROM tab1 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) * + 93 col2 FROM tab1 AS cor0
----
5487
6324
8928

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 79 * - col0 col1 FROM tab1
----
-4015
-6710
-7142

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

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT + - 73 * - - COUNT( * ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-289
SELECT + - 73 * - - COUNT ( * ) FROM tab2 AS cor0
----
-219

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

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

query II rowsort
SELECT ALL + col1 AS col2, - col2 - + col1 FROM tab1 cor0
----
14
-110
47
-115
5
-64

query I rowsort
SELECT DISTINCT - col1 * + - col1 * - + 88 FROM tab2 AS cor0
----
-228888
-395032
-521752

query I rowsort
SELECT 43 FROM tab2 AS cor0 WHERE 60 IS NOT NULL
----
43
43
43

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT + 95 + + col1 + - col0 * - CAST( + + 44 AS SIGNED ) AS col1 FROM tab0
----
3944
4364
836

skipif mysql # not compatible
query I rowsort label-296
SELECT + 95 + + col1 + - col0 * - CAST ( + + 44 AS INTEGER ) AS col1 FROM tab0
----
3944
4364
836

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-297
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) + col0 * col0 FROM tab1
----
2697
7284
8349

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) + col0 * col0 FROM tab1
----
2697
7284
8349

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT + 80 + - COUNT( * ) AS col1, + SUM( DISTINCT - col2 ) FROM tab0
----
77
-156

skipif mysql # not compatible
query II rowsort label-298
SELECT + 80 + - COUNT ( * ) AS col1, + SUM ( DISTINCT - col2 ) FROM tab0
----
77
-156

query I rowsort
SELECT DISTINCT 42 + 67 - + col2 - + - 65 * - + ( + 46 ) FROM tab2
----
-2904
-2921
-2939

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

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

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab1 WHERE NULL <> + - 12
----

query I rowsort
SELECT ALL - ( col0 ) + + 63 FROM tab1 AS cor0
----
-22
-28
12

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 71
----
0

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 71
----
0

query I rowsort
SELECT DISTINCT - - 60 + + col1 FROM tab0 AS cor0
----
141
61
81

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

query I rowsort
SELECT ALL - 5 * col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT + col0 - + + 90 AS col0 FROM tab1
----
-39
-5
1

query I rowsort
SELECT col1 - - col2 + col1 * - col1 FROM tab0
----
-410
-6433
99

query I rowsort
SELECT - 11 FROM tab0 WHERE NOT - - col1 = NULL
----

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

query I rowsort
SELECT DISTINCT - + col1 * 57 AS col2 FROM tab2 AS cor0
----
-2907
-3819
-4389

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * + 65 * + col2 FROM tab2
----
-166400
-282750
-68770

query I rowsort
SELECT col1 * - 54 FROM tab0
----
-1134
-4374
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT DISTINCT COUNT( ALL - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT COUNT ( ALL - - col1 ) FROM tab2
----
3

query II rowsort
SELECT 96 * + + col0 AS col2, col0 + + col2 + col2 FROM tab0
----
1440
109
8352
107
9312
295

query I rowsort
SELECT ALL + + 99 FROM tab2 WHERE - 49 NOT IN ( - col0, + col1, + col0 + + 53 )
----
99
99
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-326
SELECT ALL - + CAST( + + MAX( DISTINCT - col0 ) AS SIGNED ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL - + CAST ( + + MAX ( DISTINCT - col0 ) AS INTEGER ) FROM tab2 cor0
----
46

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-331
SELECT + 70 AS col1, - CAST( NULL AS SIGNED ) * 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to d264a72d44ab6f7c8f6f6d93ad2c3459

skipif mysql # not compatible
query II rowsort label-331
SELECT + 70 AS col1, - CAST ( NULL AS INTEGER ) * 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to d264a72d44ab6f7c8f6f6d93ad2c3459

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT MIN( ALL - + 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 32 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-332
SELECT MIN ( ALL - + 54 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 32 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL + ( + col0 ) * + col1 + + 10 FROM tab1 AS cor0
----
4287
435
724

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( col0, col2, - 63, - col2 )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT DISTINCT - 97 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-339
SELECT DISTINCT - 97 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-291

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 30 * - col2 + + 16 BETWEEN - 49 AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE ( - col0 * col2 IS NOT NULL )
----
-14
-47
-5

query I rowsort
SELECT ALL col0 * + + col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT col2 * 15 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-344
SELECT * FROM tab1 WHERE - CAST( + col0 AS SIGNED ) <> + ( 20 ) - + col1 + col1 * col0 * + col2 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-344
SELECT * FROM tab1 WHERE - CAST ( + col0 AS INTEGER ) <> + ( 20 ) - + col1 + col1 * col0 * + col2 / + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> + col0
----

query I rowsort
SELECT col2 - + col0 - + + col1 FROM tab0
----
-49
-98
1

query I rowsort
SELECT DISTINCT + + col1 * - col1 + + - 88 AS col0 FROM tab2 AS cor0
----
-2689
-4577
-6017

query I rowsort
SELECT + - 14 * - - col1 FROM tab1 AS cor0
----
-196
-658
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + 93 - + - MAX( - 3 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-349
SELECT + 93 - + - MAX ( - 3 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
90

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

query I rowsort
SELECT DISTINCT + - 48 * + col2 * col1 + + 92 AS col1 FROM tab0 AS cor0 WHERE NOT col1 + - 4 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-352
SELECT - - col1 DIV 56 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-352
SELECT - - col1 / 56 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-353
SELECT + col2 DIV - 69 * + 77 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-353
SELECT + col2 / - 69 * + 77 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-357
SELECT ALL col1 + col1 + - col2 AS col1, col0 + + ( col0 ) + - + 89 + - col1 DIV 55 col0 FROM tab0
----
-97
105
115
-60
32
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-357
SELECT ALL col1 + col1 + - col2 AS col1, col0 + + ( col0 ) + - + 89 + - col1 / 55 col0 FROM tab0
----
-97
105
115
-60
32
85

query II rowsort
SELECT ALL - 32, col2 AS col0 FROM tab0
----
-32
10
-32
47
-32
99

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

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

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

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

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

query I rowsort
SELECT col0 + + 51 FROM tab2
----
115
126
97

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT - ( + 62 ) DIV + + col2 - + 31 + - 51 FROM tab0
----
-82
-83
-88

skipif mysql # not compatible
query I rowsort label-363
SELECT - ( + 62 ) / + + col2 - + 31 + - 51 FROM tab0
----
-82
-83
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT DISTINCT - COUNT( - 29 ) col0 FROM tab1 WHERE NOT - + 1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-364
SELECT DISTINCT - COUNT ( - 29 ) col0 FROM tab1 WHERE NOT - + 1 IS NOT NULL
----
0

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

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

query I rowsort
SELECT ALL + col0 * + col1 + + col0 * + 61 / + col0 + + - col0 FROM tab1 WHERE + col0 = + + 25 + - 18 OR NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-367
SELECT 59 - SUM ( DISTINCT + 24 ) FROM tab2
----
35

query I rowsort
SELECT + 6 + col1 AS col0 FROM tab1 AS cor0
----
11
20
53

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

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

query I rowsort
SELECT DISTINCT col0 * 42 FROM tab1 AS cor0
----
2142
3570
3822

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

query I rowsort
SELECT ALL + + 17 * + - 73 AS col2 FROM tab2 AS cor0
----
-1241
-1241
-1241

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-373
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-373
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 88 + 18 FROM tab2
----
106
106
106

query II rowsort
SELECT col0, - col1 - + 58 AS col1 FROM tab1
----
51
-72
85
-63
91
-105

query I rowsort
SELECT ALL col0 + + 8 AS col1 FROM tab2
----
54
72
83

query I rowsort
SELECT ALL 14 * + ( - col0 ) + - col0 FROM tab1 AS cor0
----
-1275
-1365
-765

query I rowsort
SELECT DISTINCT - - col2 * 55 AS col1 FROM tab0 AS cor0
----
2585
5445
550

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 36 * + + 25 >= + col1
----

query I rowsort
SELECT + col2 * + col2 * + col0 * + + col2 AS col2 FROM tab1
----
17457215
28613312
45121536

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-381
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - COUNT( * ) - - - 94 AS col0 FROM tab1
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-381
SELECT DISTINCT + CAST ( NULL AS REAL ), - COUNT ( * ) - - - 94 AS col0 FROM tab1
----
NULL
-97

query I rowsort
SELECT ALL + + 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT 8 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - col2 )
----

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

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 1 * + - 8 + - - 51 + + col2 ) NOT IN ( - 40 - col0 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-388
SELECT ALL COUNT( * ) DIV 73 DIV - 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL COUNT ( * ) / 73 / - 63 FROM tab1 AS cor0
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-391
SELECT ALL 40 DIV col1 AS col1 FROM tab0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL 40 / col1 AS col1 FROM tab0
----
0
1
40

query I rowsort
SELECT ALL col0 * + col0 * - + col0 + - - col0 AS col2 FROM tab1
----
-132600
-614040
-753480

query I rowsort
SELECT DISTINCT 60 + 93 * + + 78 + col0 + - 17 + + col1 AS col2 FROM tab1
----
7362
7387
7435

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 39 IS NOT NULL
----

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

query II rowsort
SELECT - + col0 + + 52, col0 FROM tab1 AS cor0
----
-33
85
-39
91
1
51

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

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

query I rowsort
SELECT + ( - col2 ) + 29 FROM tab0 AS cor0
----
-18
-70
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + SUM( DISTINCT + ( - col2 ) ) + - 62 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-401
SELECT + SUM ( DISTINCT + ( - col2 ) ) + - 62 FROM tab2
----
-183

query I rowsort
SELECT col1 * - col1 + col0 + - col2 AS col2 FROM tab1
----
-2186
-241
1

query I rowsort
SELECT ALL col2 * 78 + col1 + + col1 AS col2 FROM tab2
----
1896
3274
4658

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT - - SUM( ALL col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-404
SELECT - - SUM ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
223

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

query I rowsort
SELECT DISTINCT + col0 - + - 40 AS col0 FROM tab2 AS cor0
----
104
115
86

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

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

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

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

query II rowsort
SELECT DISTINCT - + 64 AS col2, 51 AS col0 FROM tab0 AS cor0
----
-64
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT ALL + - CAST( 85 AS SIGNED ) FROM tab0 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-410
SELECT ALL + - CAST ( 85 AS INTEGER ) FROM tab0 AS cor0
----
-85
-85
-85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT 25 - + + 71 + + + COUNT( * ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-413
SELECT 25 - + + 71 + + + COUNT ( * ) FROM tab2
----
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT - 53 + - col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - SUM( 68 ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-416
SELECT - SUM ( 68 ) FROM tab0
----
-204

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

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

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

query I rowsort
SELECT ALL - 98 * + 88 * col1 AS col0 FROM tab2 AS cor0
----
-439824
-577808
-664048

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

skipif mysql # not compatible
query I rowsort label-420
SELECT + MAX ( - 88 ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT + + 95 - - 98 + + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 13 * - col0 + - 94 * col0, 46, - col2 - col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 57 + + col2 col1 FROM tab1 cor0
----
3003
4904
5255

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

onlyif mysql # DIV for integer division: 
query I rowsort label-425
SELECT ALL + col2 DIV + 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL + col2 / + 83 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * - - 78 FROM tab2 AS cor0
----
1794
3120
4524

onlyif mysql # aggregate syntax: 
query II rowsort label-427
SELECT + COUNT( * ) AS col2, + 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-427
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) col0 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT 55 * + col1 * col1 FROM tab1 AS cor0
----
10780
121495
1375

query I rowsort
SELECT DISTINCT 23 * - - 39 - + - col1 * + col1 AS col2 FROM tab0 AS cor0
----
1338
7458
898

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

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

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

skipif mysql # not compatible
query II rowsort label-432
SELECT ALL - col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT ALL col0 + - + col1 + 82 AS col0 FROM tab2
----
69
77
90

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= NULL
----

query II rowsort
SELECT col0, + col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE col2 > 95
----

query I rowsort
SELECT - 42 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 * - 24, + col2 - - 19, col1 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-439
SELECT + 42 + CAST ( NULL AS INTEGER ) + - 83 * 69 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-441
SELECT + col1 + - 79 col1, col0 DIV col0 FROM tab1 AS cor0
----
-32
1
-65
1
-74
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-441
SELECT + col1 + - 79 col1, col0 / col0 FROM tab1 AS cor0
----
-32
1
-65
1
-74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT DISTINCT - col2 DIV col1 + - + col0 FROM tab0 AS cor0
----
-15
-196
-87

skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT - col2 / col1 + - + col0 FROM tab0 AS cor0
----
-15
-196
-87

query I rowsort
SELECT ALL - 45 * ( col0 ) + - 37 * 43 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-2266
-5506
-5956

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL 23 - + + MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL 23 - + + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT - 37 AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

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

query II rowsort
SELECT DISTINCT + col0, ( col1 ) + + + col2 * + col2 FROM tab0
----
15
2290
87
121
97
9802

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT COUNT( * ) * 37 AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-448
SELECT COUNT ( * ) * 37 AS col1 FROM tab2
----
111

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

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

query II rowsort
SELECT - col2 AS col2, + col2 * - col2 FROM tab2
----
-23
-529
-40
-1600
-58
-3364

query I rowsort
SELECT + ( - 78 ) FROM tab1
----
-78
-78
-78

query I rowsort
SELECT DISTINCT col0 * - col0 * - 37 * + col2 + col0 AS col2 FROM tab1 AS cor0 WHERE col1 / col0 IS NOT NULL
----
15772260
20835087
9238803

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT DISTINCT col0 * 42 DIV + col2 AS col2 FROM tab0 AS cor0
----
13
365
41

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT col0 * 42 / + col2 AS col2 FROM tab0 AS cor0
----
13
365
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 col0 FROM tab2 AS cor0
----
-42
-42
-42

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

query I rowsort
SELECT DISTINCT - 81 * - col1 AS col1 FROM tab1 AS cor0
----
1134
3807
405

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

query II rowsort
SELECT DISTINCT - ( - - 6 ) AS col1, col0 + - col0 AS col0 FROM tab0 cor0
----
-6
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT - - 7 DIV - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-460
SELECT - - 7 / - COUNT ( * ) FROM tab2 AS cor0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT DISTINCT COUNT( ALL - - CAST( - + 60 AS SIGNED ) ) + - - 9 FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT COUNT ( ALL - - CAST ( - + 60 AS INTEGER ) ) + - - 9 FROM tab0 AS cor0 WHERE NOT 51 IS NOT NULL
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT + col2 col0 FROM tab1 AS cor0 WHERE NOT - col1 = - col1 + + col1 OR CAST( NULL AS SIGNED ) * - col1 + col1 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-462
SELECT + col2 col0 FROM tab1 AS cor0 WHERE NOT - col1 = - col1 + + col1 OR CAST ( NULL AS INTEGER ) * - col1 + col1 IS NOT NULL
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT + COUNT( * ) * + 31 AS col1 FROM tab2
----
93

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col1, + col1 AS col0 FROM tab2 WHERE NOT - col0 BETWEEN col2 AND col2
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT - 13 * + col0 + - + col2 AS col2 FROM tab1
----
-1164
-1251
-759

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-468
SELECT ALL col1 FROM tab0 WHERE col1 > - col2 + + - ( - + col1 ) * - + CAST( + col2 AS SIGNED )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-468
SELECT ALL col1 FROM tab0 WHERE col1 > - col2 + + - ( - + col1 ) * - + CAST ( + col2 AS INTEGER )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-469
SELECT 90 col2, + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
90
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-469
SELECT 90 col2, + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
90
0

query I rowsort
SELECT - 19 + - + col0 FROM tab2
----
-65
-83
-94

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

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

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

query II rowsort
SELECT ALL col0 - - ( - - col1 ) - 59 + 6 AS col1, + ( col2 ) + col0 + - col2 AS col2 FROM tab2 AS cor0
----
44
46
88
64
89
75

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT + 84 * - - COUNT( * ) + - + 77 + + + COUNT( * ) FROM tab2 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-474
SELECT + 84 * - - COUNT ( * ) + - + 77 + + + COUNT ( * ) FROM tab2 AS cor0
----
178

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-475
SELECT col1 + - + CAST ( NULL AS INTEGER ) col0, 64 AS col1 FROM tab0
----
NULL
64
NULL
64
NULL
64

onlyif mysql # DIV for integer division: 
query II rowsort label-476
SELECT ALL - col1 - - 77 AS col1, col0 DIV + ( - - ( col0 ) ) AS col2 FROM tab2
----
0
1
10
1
26
1

skipif mysql # not compatible
query II rowsort label-476
SELECT ALL - col1 - - 77 AS col1, col0 / + ( - - ( col0 ) ) AS col2 FROM tab2
----
0
1
10
1
26
1

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

query I rowsort
SELECT DISTINCT + 22 + - - col1 + - col2 - - col0 FROM tab2 AS cor0
----
106
123
96

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT ALL + COUNT( * ) - - SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + COUNT ( * ) - - SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
124

query II rowsort
SELECT + 15 - col2, + 43 AS col1 FROM tab0 AS cor0
----
-32
43
-84
43
5
43

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col1 AND NOT col0 - + 28 <> NULL
----

query I rowsort
SELECT + - 3 - - + col0 FROM tab2 AS cor0
----
43
61
72

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT ALL + + COUNT( * ) + + MIN( - - 4 ) * + MIN( - 3 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL + + COUNT ( * ) + + MIN ( - - 4 ) * + MIN ( - 3 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - - 49 * + - 92 FROM tab0 AS cor0
----
-4508
-4508
-4508

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-486
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab1 WHERE col0 * - col2 + + 55 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab1 WHERE col0 * - col2 + + 55 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL col2 * - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT col1 * - 68 AS col0 FROM tab1
----
-3196
-340
-952

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

skipif mysql # not compatible
query I rowsort label-489
SELECT + ( + - ( 34 ) ) / + COUNT ( * ) FROM tab0 cor0
----
-11

query I rowsort
SELECT - ( - col0 ) * + + 51 * + + 68 FROM tab2 AS cor0
----
159528
221952
260100

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

skipif mysql # not compatible
query III rowsort label-491
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT 71 + 6 AS col1 FROM tab1
----
77

query II rowsort
SELECT ALL col0 * + col1 * - col0 AS col0, + col1 * - col0 + col2 + + 46 FROM tab1
----
-36125
-320
-36414
-572
-389207
-4163

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-494
SELECT DISTINCT 42 * col1 + + col2 + - CAST( + + col2 AS SIGNED ) * - col2, 62 col1 FROM tab1 cor0 WHERE NOT NULL = - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-494
SELECT DISTINCT 42 * col1 + + col2 + - CAST ( + + col2 AS INTEGER ) * - col2, 62 col1 FROM tab1 cor0 WHERE NOT NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT - - SUM( DISTINCT - ( - 57 ) ) FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-495
SELECT - - SUM ( DISTINCT - ( - 57 ) ) FROM tab2 cor0
----
57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NULL < - 42
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NULL < - 42
----
0

query I rowsort
SELECT ALL - col1 * ( - - col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query II rowsort
SELECT + 63 + - col2, 5 * - 23 AS col1 FROM tab1
----
-33
-115
-5
-115
4
-115

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

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

query I rowsort
SELECT - - col0 AS col1 FROM tab0 WHERE + col0 NOT BETWEEN ( NULL ) AND col1
----
87
97

query I rowsort
SELECT DISTINCT + 52 + 52 FROM tab1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - COUNT( * ) + 94 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-506
SELECT - COUNT ( * ) + 94 FROM tab1
----
91

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

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

query I rowsort
SELECT col2 * + 3 * - col0 FROM tab1
----
-14688
-15045
-18564

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - + SUM( + 51 ) - + COUNT( * ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - + SUM ( + 51 ) - + COUNT ( * ) FROM tab0 cor0
----
-156

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT + 47 * + COUNT( * ) AS col1 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + 47 * + COUNT ( * ) AS col1 FROM tab1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT ALL CAST( + col1 AS SIGNED ) col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-514
SELECT ALL CAST ( + col1 AS INTEGER ) col2 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT ALL col0 DIV - col0 col0 FROM tab2
----
-1
-1
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT 38 DIV col0 + - 79 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3715
7821
790

skipif mysql # not compatible
query I rowsort label-517
SELECT 38 / col0 + - 79 * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3715
7821
790

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

query I rowsort
SELECT ALL col1 * + 3 FROM tab0
----
243
3
63

query I rowsort
SELECT + 2 * + ( col2 ) FROM tab1
----
118
136
192

query II rowsort
SELECT DISTINCT 81 * - col0, 96 AS col1 FROM tab2
----
-3726
96
-5184
96
-6075
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-522
SELECT DISTINCT ( + 17 ) DIV - CAST( - 89 AS SIGNED ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-522
SELECT DISTINCT ( + 17 ) / - CAST ( - 89 AS INTEGER ) AS col1 FROM tab1
----
0

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

query I rowsort
SELECT ALL - ( - + 27 ) * col1 AS col1 FROM tab1 WHERE + 83 BETWEEN - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 < + col2 * col2
----

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + col2 * 23 <= col0
----
0

skipif mysql # not compatible
query I rowsort label-532
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 * 23 <= col0
----
0

query I rowsort
SELECT ALL - 77 AS col2 FROM tab1 AS cor0 WHERE NOT + 40 IN ( - 23, col0 * - col0 * col0 )
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT ALL - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT ALL - col2 * CAST( - - ( + + col2 ) AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

skipif mysql # not compatible
query I rowsort label-535
SELECT ALL - col2 * CAST ( - - ( + + col2 ) AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-121
-2290
-9802

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT ( - - ( + 36 ) ) * + - col1 FROM tab1
----
-1692
-180
-504

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

query I rowsort
SELECT ALL 26 + - - col1 FROM tab2
----
103
77
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + - col2 col0 FROM tab1
----
-15
-43
-6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-543
SELECT DISTINCT COUNT( * ) + MIN( col2 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT COUNT ( * ) + MIN ( col2 ) AS col1 FROM tab2
----
26

query II rowsort
SELECT - col0 + - col2, col0 AS col0 FROM tab0 WHERE + - col1 + - 94 IS NOT NULL
----
-196
97
-62
15
-97
87

query I rowsort
SELECT 57 + + 82 * + - col0 + + col0 AS col1 FROM tab1
----
-4074
-6828
-7314

query II rowsort
SELECT - - col2 AS col0, - 53 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT + MIN( DISTINCT - ( 48 ) ) AS col0 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-547
SELECT + MIN ( DISTINCT - ( 48 ) ) AS col0 FROM tab2
----
-48

query I rowsort
SELECT ALL ( 97 ) AS col2 FROM tab2
----
97
97
97

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT ( ( + col1 ) + - 32 / col2 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 * 52 + + col2 AS col0 FROM tab1
----
2512
319
824

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT DISTINCT - 51 - COUNT( * ) AS col2 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT - 51 - COUNT ( * ) AS col2 FROM tab1
----
-54

query I rowsort
SELECT 4 * - col1 AS col2 FROM tab0 WHERE col0 <= NULL
----

query I rowsort
SELECT + ( - 48 ) FROM tab0
----
-48
-48
-48

query I rowsort
SELECT - col0 * + 60 FROM tab1 WHERE col2 + ( col1 ) BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-555
SELECT DISTINCT * FROM tab0 WHERE NULL <> + CAST( NULL AS SIGNED ) * - 86
----

skipif mysql # not compatible
query III rowsort label-555
SELECT DISTINCT * FROM tab0 WHERE NULL <> + CAST ( NULL AS INTEGER ) * - 86
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN + col0 AND col1 * col1
----
51
14
96

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-558
SELECT DISTINCT + CAST ( MAX ( col2 ) AS INTEGER ) col1 FROM tab2
----
58

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col0 * - 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN col1 * 43 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-562
SELECT DISTINCT ( - SUM( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT ( - SUM ( col2 ) ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT - col2 - 2 DIV col2 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-563
SELECT - col2 - 2 / col2 AS col1 FROM tab2
----
-23
-40
-58

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

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

query I rowsort
SELECT ALL - 7 * col1 FROM tab1 WHERE NOT ( - 21 ) / - 78 BETWEEN col0 * col0 AND ( + col2 )
----
-329
-35
-98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN 68 * + ( + ( + 35 ) ) + - col2 AND 91
----

query I rowsort
SELECT - 79 * col1 FROM tab1 AS cor0
----
-1106
-3713
-395

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

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + COUNT( * ) * MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-569
SELECT + COUNT ( * ) * MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-572
SELECT - MIN( ALL col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-572
SELECT - MIN ( ALL col2 ) FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + col2 + + 74 AS col0 FROM tab1 AS cor0
----
133
142
170

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT - - COUNT( * ) + 46 AS col2 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-574
SELECT - - COUNT ( * ) + 46 AS col2 FROM tab2 AS cor0
----
49

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

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

query I rowsort
SELECT ALL - 85 + + ( + col2 ) FROM tab0 AS cor0
----
-38
-75
14

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT ALL - 70 - - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-70
-70
-71

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - 70 - - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-70
-70
-71

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

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

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE ( ( - col0 ) / col2 ) NOT IN ( 76 )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-580
SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 IN ( CAST( NULL AS SIGNED ) * col2 + - col1 * - 82 )
----

skipif mysql # not compatible
query III rowsort label-580
SELECT * FROM tab0 AS cor0 WHERE - col0 + col1 IN ( CAST ( NULL AS INTEGER ) * col2 + - col1 * - 82 )
----

query I rowsort
SELECT DISTINCT 97 FROM tab0 cor0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - ( col1 ) / + 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-583
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - ( col1 ) / + 40 IS NULL
----
0

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 54 * - col1 IS NOT NULL AND NOT col1 NOT IN ( col2 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 38 BETWEEN 87 AND NULL
----

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

query I rowsort
SELECT DISTINCT col1 * + col2 AS col2 FROM tab2 WHERE NOT col0 < NULL
----

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

skipif mysql # not compatible
query I rowsort label-592
SELECT - SUM ( - col2 ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL MIN( - 64 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL MIN ( - 64 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-64

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 61 <= 45
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ( 62 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 39 col1, ( 29 ) + - col0 AS col1 FROM tab0 cor0
----
39
-58
39
-68
39
14

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT + col0 / - col0 AS col0 FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT ALL + + col1 + col1 FROM tab0 AS cor0 WHERE + 23 IS NULL
----

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

query I rowsort
SELECT ALL + col0 * + 44 + - col1 FROM tab0 AS cor0
----
3807
4267
579

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 < - col2 + ( - col2 ) * + 3
----

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT ALL - - col2 DIV - 32 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - - col2 / - 32 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col0 FROM tab0
----
23
23
23

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

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

query I rowsort
SELECT ALL 39 FROM tab0 WHERE NOT ( + col0 ) NOT IN ( col2 )
----

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

query I rowsort
SELECT ALL col1 * 0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - - 26 FROM tab1 AS cor0 WHERE NOT 96 IS NULL
----
1326
2210
2366

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL COUNT( * ) * 96 AS col1 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL COUNT ( * ) * 96 AS col1 FROM tab0 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - MAX( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-613
SELECT - MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-614
SELECT 86 + + COUNT( * ) DIV + - 20 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
86

skipif mysql # not compatible
query I rowsort label-614
SELECT 86 + + COUNT ( * ) / + - 20 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
86

query I rowsort
SELECT AVG ( + col2 ) * + 96 AS col0 FROM tab1 AS cor0 WHERE ( col1 + + 66 * - + 67 * - col0 ) IN ( 24 / col1 - 13 )
----
NULL

query I rowsort
SELECT - + 4 + - + col1 FROM tab0 cor0
----
-25
-5
-85

query I rowsort
SELECT ALL 28 + col2 AS col0 FROM tab2
----
51
68
86

query III rowsort
SELECT * FROM tab1 WHERE + 38 / + ( - - col2 ) + 73 = - 23 + 70
----

query III rowsort
SELECT * FROM tab1 WHERE - 52 >= - col1 + + + col1 + col1 * - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 98 + + + col2 FROM tab0
----
-51
-88
1

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

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

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

query I rowsort
SELECT DISTINCT - 13 - - col0 + col1 + col1 FROM tab0 AS cor0
----
116
164
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT + + SUM( 69 ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + + SUM ( 69 ) FROM tab2 AS cor0
----
207

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

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

query I rowsort
SELECT - - col1 * + - col1 - + - col1 * - + col1 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-135201
-305185
-462385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-628
SELECT DISTINCT + CAST( + CAST( SUM( ALL col1 ) AS DECIMAL ) AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT + CAST ( + CAST ( SUM ( ALL col1 ) AS REAL ) AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL = NULL
----
NULL

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

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

query I rowsort
SELECT + col0 - + + 18 AS col0 FROM tab1
----
33
67
73

query I rowsort
SELECT DISTINCT - 0 * - ( - + 17 ) * col1 + 23 + + col1 + col0 * - ( - col0 ) FROM tab2
----
2190
4196
5715

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT DISTINCT - COUNT( * ) - + - SUM( DISTINCT - 56 ) AS col0 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-636
SELECT DISTINCT - COUNT ( * ) - + - SUM ( DISTINCT - 56 ) AS col0 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT + + 23 + - COUNT( - 86 ) AS col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-637
SELECT + + 23 + - COUNT ( - 86 ) AS col1 FROM tab1 AS cor0
----
20

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

skipif mysql # not compatible
query I rowsort label-638
SELECT + CAST ( + col1 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + + 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 63 <> NULL
----

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

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

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

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

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

query I rowsort
SELECT - col2 * col2 * - 19 - + 9 + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
10088
30455
63982

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

query I rowsort
SELECT + col1 * + col1 - 16 FROM tab1 AS cor0
----
180
2193
9

query I rowsort
SELECT ALL - - 74 * - - 41 + 90 FROM tab0 AS cor0
----
3124
3124
3124

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-650
SELECT col0 * + col2 + + col1 + + + col2 DIV + col2 AS col1 FROM tab2 AS cor0
----
1110
2638
4418

skipif mysql # not compatible
query I rowsort label-650
SELECT col0 * + col2 + + col1 + + + col2 / + col2 AS col1 FROM tab2 AS cor0
----
1110
2638
4418

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT + - SUM( col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-651
SELECT + - SUM ( col1 ) FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT ALL - + SUM( - 98 ) + - MAX( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - + SUM ( - 98 ) + - MAX ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE col0 BETWEEN col0 AND ( + col1 / - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE col0 BETWEEN col0 AND ( + col1 / - 59 )
----
0

query I rowsort
SELECT col0 + + - 58 * + ( - 86 ) * + col0 FROM tab2
----
229494
319296
374175

query I rowsort
SELECT DISTINCT 37 * col2 AS col0 FROM tab0
----
1739
3663
370

query I rowsort
SELECT 30 + + ( - + 87 ) AS col2 FROM tab0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab0 AS cor0 WHERE + + 93 = NULL AND NOT col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-658
SELECT - COUNT( * ) * + + 38 + + 72 AS col1 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-658
SELECT - COUNT ( * ) * + + 38 + + 72 AS col1 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL col2 - + + 50 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3
-40
49

query I rowsort
SELECT 29 * + ( ( 86 ) ) AS col2 FROM tab1 AS cor0
----
2494
2494
2494

query I rowsort
SELECT - col1 + - col2 + - 58 * col1 * col0 AS col0 FROM tab2 WHERE - - col2 <= - col2
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT ALL + 76 * 59 DIV + ( - 32 ) + 13 FROM tab0 AS cor0
----
-127
-127
-127

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + 76 * 59 / + ( - 32 ) + 13 FROM tab0 AS cor0
----
-127
-127
-127

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 47 * + 11 * - 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT ALL - + 90 * + 49 AS col2 FROM tab1 AS cor0 WHERE 78 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 * - col0 FROM tab1 AS cor0 WHERE 81 * + + 92 IS NOT NULL
----
4882
5010
6141

query I rowsort
SELECT DISTINCT - 27 - col0 FROM tab0 AS cor0
----
-114
-124
-42

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

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

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

query II rowsort
SELECT + - col1 + + - col0 AS col1, - col1 FROM tab0 AS cor0
----
-108
-21
-96
-81
-98
-1

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 - 61 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 86 * + col0 AS col2 FROM tab1
----
-4386
-7310
-7826

query I rowsort
SELECT ALL 84 FROM tab0 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT - + COUNT( * ) FROM tab2 WHERE NOT - col1 + + + col1 * - col2 * - col0 * - col2 <= - 21
----
0

skipif mysql # not compatible
query I rowsort label-679
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT - col1 + + + col1 * - col2 * - col0 * - col2 <= - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - 42 * - COUNT( * ) * + MIN( ALL 34 ) FROM tab2
----
4284

skipif mysql # not compatible
query I rowsort label-680
SELECT - 42 * - COUNT ( * ) * + MIN ( ALL 34 ) FROM tab2
----
4284

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

skipif mysql # not compatible
query I rowsort label-681
SELECT - COUNT ( - 9 ) AS col0 FROM tab0
----
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT DISTINCT col0 DIV + + col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT col0 / + + col0 FROM tab0 AS cor0
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT + 83 AS col1, 34 * + - 64 + + SUM( - 79 ) FROM tab1 AS cor0
----
83
-2413

skipif mysql # not compatible
query II rowsort label-687
SELECT + 83 AS col1, 34 * + - 64 + + SUM ( - 79 ) FROM tab1 AS cor0
----
83
-2413

query I rowsort
SELECT 49 * - 27 * - col0 AS col2 FROM tab2 AS cor0
----
60858
84672
99225

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

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

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

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

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

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

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

query I rowsort
SELECT - + col1 - - 72 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= 77 + + 90 / - col1
----

query I rowsort
SELECT - 16 + - + col0 + + col0 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT 64 * - col1 + + - ( - 49 ) AS col0 FROM tab1 AS cor0
----
-271
-2959
-847

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

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

query I rowsort
SELECT col1 + - 65 - + 98 + + col2 FROM tab2 AS cor0
----
-38
-46
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT - 41 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-369

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT - 41 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-701
SELECT ALL * FROM tab2 WHERE + - col1 IN ( CAST( + + col1 AS SIGNED ) * + CAST( NULL AS SIGNED ), 73 / - + col1, - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-701
SELECT ALL * FROM tab2 WHERE + - col1 IN ( CAST ( + + col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ), 73 / - + col1, - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + - col0 * col2 * + col1 - + + col2 * + 34 FROM tab2 cor0
----
-198480
-293422
-54740

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT - 89 - - + COUNT( * ) col1 FROM tab2 AS cor0
----
-86

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

query II rowsort
SELECT 29 - + - 0 + - + col2 AS col2, col2 FROM tab2 AS cor0
----
-11
40
-29
58
6
23

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

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

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

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - col2 < col0
----
46
64
75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-710
SELECT ALL + 43 / col1 - ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-711
SELECT DISTINCT ( CAST( col2 AS SIGNED ) ) DIV 96 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT ( CAST ( col2 AS INTEGER ) ) / 96 AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT DISTINCT 41 DIV + col1 col0 FROM tab1
----
0
2
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-712
SELECT DISTINCT 41 / + col1 col0 FROM tab1
----
0
2
8

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 + 3 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-714
SELECT * FROM tab0 WHERE NOT + 0 + CAST( + - CAST( + 23 AS SIGNED ) AS SIGNED ) * + ( 34 ) + - - 54 + - 88 NOT BETWEEN NULL AND + + col0
----

skipif mysql # not compatible
query III rowsort label-714
SELECT * FROM tab0 WHERE NOT + 0 + CAST ( + - CAST ( + 23 AS INTEGER ) AS INTEGER ) * + ( 34 ) + - - 54 + - 88 NOT BETWEEN NULL AND + + col0
----

query I rowsort
SELECT - col0 * - 69 AS col1 FROM tab0
----
1035
6003
6693

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

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

query I rowsort
SELECT DISTINCT - + 19 * - 34 + - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
646

query I rowsort
SELECT ALL ( 80 ) FROM tab0
----
80
80
80

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

skipif mysql # not compatible
query I rowsort label-719
SELECT - 26 * + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-234

query I rowsort
SELECT 98 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT + + SUM( DISTINCT col0 ) * - + COUNT( * ) * 4 * 21 FROM tab1 AS cor0
----
-57204

skipif mysql # not compatible
query I rowsort label-721
SELECT + + SUM ( DISTINCT col0 ) * - + COUNT ( * ) * 4 * 21 FROM tab1 AS cor0
----
-57204

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT - + 5 * MIN( DISTINCT + col0 ) * + 4 FROM tab1 AS cor0
----
-1020

skipif mysql # not compatible
query I rowsort label-722
SELECT - + 5 * MIN ( DISTINCT + col0 ) * + 4 FROM tab1 AS cor0
----
-1020

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

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

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

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

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

query I rowsort
SELECT ALL - - 85 + + col2 AS col0 FROM tab0 AS cor0
----
132
184
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col2 AS col1 FROM tab2 AS cor0 WHERE - 55 > NULL
----

query II rowsort
SELECT ALL - 40, col0 * + - col2 * - col0 AS col0 FROM tab2
----
-40
163840
-40
326250
-40
48668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-730
SELECT ALL - 78 DIV + MAX( DISTINCT col0 ) + + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-730
SELECT ALL - 78 / + MAX ( DISTINCT col0 ) + + COUNT ( * ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 1 * - col1 + + 89 FROM tab1
----
42
75
84

query I rowsort
SELECT ALL - col1 + - 35 FROM tab0
----
-116
-36
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - 47 + + MIN( + col1 ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-733
SELECT - 47 + + MIN ( + col1 ) FROM tab0
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT DISTINCT MIN( ALL - ( col0 ) ) + - - ( 22 ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT MIN ( ALL - ( col0 ) ) + - - ( 22 ) AS col2 FROM tab1 AS cor0
----
-69

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 * - 48 < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-738
SELECT ALL - col2 * 59, + col0 DIV - - 11 col0 FROM tab1
----
-3481
7
-4012
8
-5664
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-738
SELECT ALL - col2 * 59, + col0 / - - 11 col0 FROM tab1
----
-3481
7
-4012
8
-5664
4

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT + COUNT( ALL + + col1 ), + COUNT( * ) FROM tab2 WHERE - col0 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-739
SELECT + COUNT ( ALL + + col1 ), + COUNT ( * ) FROM tab2 WHERE - col0 IS NULL
----
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT - 91 - + SUM( DISTINCT + ( + 35 ) ) FROM tab1 cor0
----
-126

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - 91 - + SUM ( DISTINCT + ( + 35 ) ) FROM tab1 cor0
----
-126

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

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - COUNT ( + col2 ) - 23 FROM tab1 AS cor0
----
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT DISTINCT - MIN( - - col2 ) * MIN( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
-529

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT - MIN ( - - col2 ) * MIN ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
-529

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

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

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

skipif mysql # not compatible
query II rowsort label-747
SELECT ALL 6 AS col2, + COUNT ( * ) AS col2 FROM tab2
----
6
3

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT ALL 38 DIV + + col0 col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-748
SELECT ALL 38 / + + col0 col0 FROM tab0
----
0
0
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT + 89 * - COUNT( * ) AS col1 FROM tab0 WHERE NOT - 7 IS NULL
----
-267

skipif mysql # not compatible
query I rowsort label-751
SELECT + 89 * - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 7 IS NULL
----
-267

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

query I rowsort
SELECT DISTINCT - col1 * col0 + + + col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + col2 * - 42 AS col2 FROM tab1
----
-2478
-2856
-4032

query I rowsort
SELECT ALL col2 + + col0 - col0 FROM tab1
----
59
68
96

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

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

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

query I rowsort
SELECT DISTINCT col0 + + col0 - - - col2 FROM tab0 AS cor0
----
-17
164
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-759
SELECT + + col2 * - - col2 * + 67 * + col0 AS col0, - CAST( NULL AS SIGNED ) * + - col2 + + col1 col2 FROM tab0 AS cor0
----
2220045
NULL
582900
NULL
63696699
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-759
SELECT + + col2 * - - col2 * + 67 * + col0 AS col0, - CAST ( NULL AS INTEGER ) * + - col2 + + col1 col2 FROM tab0 AS cor0
----
2220045
NULL
582900
NULL
63696699
NULL

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

query I rowsort
SELECT + 11 * + + col2 FROM tab2 cor0
----
253
440
638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + 26 AS col0 FROM tab1
----
-21
12
21

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + 26 AS col0 FROM tab1
----
-21
12
21

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN + ( + col0 ) AND NULL
----
87
21
10

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-765
SELECT + - col0 + - + 44 + + 98 / + CAST( NULL AS DECIMAL ) * 91, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-765
SELECT + - col0 + - + 44 + + 98 / + CAST ( NULL AS REAL ) * 91, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

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

skipif mysql # not compatible
query I rowsort label-767
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + ( + 38 ) IS NOT NULL
----
3

query I rowsort
SELECT + 61 * - + col0 AS col2 FROM tab2 AS cor0
----
-2806
-3904
-4575

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT COUNT( DISTINCT - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-771
SELECT COUNT ( DISTINCT - + col0 ) FROM tab0
----
3

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

query II rowsort
SELECT ALL - col1 AS col1, - col1 * col0 FROM tab2 AS cor0
----
-51
-2346
-67
-5025
-77
-4928

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-775
SELECT - SUM ( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
-66

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-779
SELECT + - col1 * + col2 + 58 + + + 70 * - - col2 * 6 + - col0 + - 91 + + col1 * - + col1 * - CAST( NULL AS SIGNED ) * - - col1 / - col0 FROM tab0 WHERE NOT 96 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-779
SELECT + - col1 * + col2 + 58 + + + 70 * - - col2 * 6 + - col0 + - 91 + + col1 * - + col1 * - CAST ( NULL AS INTEGER ) * - - col1 / - col0 FROM tab0 WHERE NOT 96 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NULL NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL SUM( DISTINCT ( + + col0 ) ) * - 64 FROM tab2
----
-11840

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL SUM ( DISTINCT ( + + col0 ) ) * - 64 FROM tab2
----
-11840

query I rowsort
SELECT col0 * 72 AS col0 FROM tab0
----
1080
6264
6984

query I rowsort
SELECT + ( + - 47 ) - - - col2 AS col2 FROM tab1 WHERE NOT NULL > - 2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-784
SELECT DISTINCT + ( - + 61 ), CAST( NULL AS DECIMAL ) * 31 AS col1 FROM tab2
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT + ( - + 61 ), CAST ( NULL AS REAL ) * 31 AS col1 FROM tab2
----
-61
NULL

query I rowsort
SELECT 90 * - 1 FROM tab2
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-786
SELECT DISTINCT + col2 DIV + 47 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT + col2 / + 47 AS col0 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT - - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-787
SELECT - - col0 / - col2 AS col0 FROM tab0 AS cor0
----
-8
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT + col0 DIV + 14 AS col0 FROM tab1 AS cor0
----
3
6

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT + col0 / + 14 AS col0 FROM tab1 AS cor0
----
3
6

query I rowsort
SELECT col1 + 97 AS col2 FROM tab1 AS cor0
----
102
111
144

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

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

query II rowsort
SELECT col2, - col0 FROM tab1 WHERE ( NOT NULL = NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT DISTINCT + 80 DIV - col2 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT + 80 / - col2 AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 + + 35 + + 19 col1 FROM tab2
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT MIN( - 21 ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-797
SELECT MIN ( - 21 ) FROM tab1
----
-21

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

query I rowsort
SELECT DISTINCT + 92 * - col1 * + 23 + - + 44 FROM tab1
----
-10624
-29668
-99496

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT ALL 88 - - MIN( DISTINCT 65 ) AS col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL 88 - - MIN ( DISTINCT 65 ) AS col2 FROM tab0 AS cor0
----
153

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-802
SELECT + 76 * + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE col2 BETWEEN + col1 AND NULL
----
0

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

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

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

query I rowsort
SELECT + + col1 - - col1 * ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-189
-3726
-98

query II rowsort
SELECT ALL + + 5, col2 FROM tab2 AS cor0
----
5
23
5
40
5
58

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

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

query II rowsort
SELECT - - col0 AS col0, 62 * + 80 AS col2 FROM tab2 cor0 WHERE NOT 83 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT DISTINCT + + SUM( ALL - - 68 ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-811
SELECT DISTINCT + + SUM ( ALL - - 68 ) FROM tab1 AS cor0
----
204

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-813
SELECT DISTINCT col2 AS col1, CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-813
SELECT DISTINCT col2 AS col1, CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
10
-21
47
-81
99
-1

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

query I rowsort
SELECT + 90 * col2 AS col2 FROM tab1
----
5310
6120
8640

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-816
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT + ( + COUNT( + 47 ) ) * + 47 col2, COUNT( * ) col2 FROM tab2
----
141
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-817
SELECT + ( + COUNT ( + 47 ) ) * + 47 col2, COUNT ( * ) col2 FROM tab2
----
141
3

query I rowsort
SELECT ALL - col0 * + 7 FROM tab0
----
-105
-609
-679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-819
SELECT DISTINCT + - CAST( - + col0 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + - CAST ( - + col0 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-821
SELECT SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT ALL 48 * + + COUNT( * ) + - 34 - 80 * + - 56 FROM tab0 AS cor0
----
4590

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL 48 * + + COUNT ( * ) + - 34 - 80 * + - 56 FROM tab0 AS cor0
----
4590

query II rowsort
SELECT col0 * - col2 AS col2, - col1 * + + 87 FROM tab1 AS cor0
----
-4896
-1218
-5015
-435
-6188
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT MIN( + - col1 ) * - SUM( + 17 ) AS col0 FROM tab0 AS cor0
----
4131

skipif mysql # not compatible
query I rowsort label-829
SELECT MIN ( + - col1 ) * - SUM ( + 17 ) AS col0 FROM tab0 AS cor0
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT SUM( + + col1 ) * - ( 36 ) FROM tab2 AS cor0
----
-7020

skipif mysql # not compatible
query I rowsort label-830
SELECT SUM ( + + col1 ) * - ( 36 ) FROM tab2 AS cor0
----
-7020

query I rowsort
SELECT - - 2 AS col1 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT - 67 * - - MAX( - 98 ) FROM tab2 AS cor0
----
6566

skipif mysql # not compatible
query I rowsort label-832
SELECT - 67 * - - MAX ( - 98 ) FROM tab2 AS cor0
----
6566

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT 48 + - - COUNT( * ) + 32 AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT 48 + - - COUNT ( * ) + 32 AS col2 FROM tab0
----
83

query II rowsort
SELECT col2, + col2 * col0 / + col1 / 11 AS col1 FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT - col0 * + col1 + col1 + + 88 AS col1 FROM tab2 AS cor0
----
-2207
-4763
-4870

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT - - 60 + + COUNT( * ) AS col1 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-837
SELECT - - 60 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-838
SELECT ALL + CAST( - + MAX( + col1 ) AS SIGNED ) * 39 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL + CAST ( - + MAX ( + col1 ) AS INTEGER ) * 39 AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND + - col1
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT + CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-843
SELECT + CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-844
SELECT MIN ( + col2 ) / - 91 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT DISTINCT - + SUM( ALL col1 ) FROM tab2 WHERE NOT col0 + - + col1 - - 32 * col1 > + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT - + SUM ( ALL col1 ) FROM tab2 WHERE NOT col0 + - + col1 - - 32 * col1 > + - col2
----
NULL

query I rowsort
SELECT - ( - 65 ) + 2 + - col0 AS col0 FROM tab1
----
-18
-24
16

query I rowsort
SELECT ALL 39 + + + col0 AS col0 FROM tab2
----
103
114
85

query I rowsort
SELECT 13 + col2 FROM tab1
----
109
72
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-853
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( * ), - 17 AS col0 FROM tab2
----
-3
3
-17

skipif mysql # not compatible
query III rowsort label-853
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( * ), - 17 AS col0 FROM tab2
----
-3
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT MIN( + 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-854
SELECT MIN ( + 81 ) FROM tab1
----
81

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

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

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

query II rowsort
SELECT + col2 + - + col1 AS col1, - ( - col1 ) FROM tab0 AS cor0
----
-11
21
-34
81
98
1

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

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

query I rowsort
SELECT ALL - col0 * + col1 + 48 - - 46 * - col1 * - col0 FROM tab0
----
4413
54723
82263

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 20 * - 23 NOT BETWEEN - col0 * - col0 * - 37 + 10 * + + 61 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT DISTINCT 46 + + ( + - MIN( + 87 ) ) AS col2 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT 46 + + ( + - MIN ( + 87 ) ) AS col2 FROM tab2
----
-41

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

query I rowsort
SELECT DISTINCT col2 * + col0 + + col2 FROM tab2
----
1081
2600
4408

query II rowsort
SELECT + col2 * col1 AS col2, col2 AS col0 FROM tab1
----
1344
96
295
59
3196
68

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-870
SELECT DISTINCT + CAST( - + col0 AS DECIMAL ) FROM tab2 AS cor0 WHERE - 94 <> NULL
----

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT + CAST ( - + col0 AS REAL ) FROM tab2 AS cor0 WHERE - 94 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL 59 DIV col0 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL 59 / col0 AS col0 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT - ( + SUM( DISTINCT + 5 ) ) * + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-270

skipif mysql # not compatible
query I rowsort label-872
SELECT - ( + SUM ( DISTINCT + 5 ) ) * + 54 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 * + col0 / 61 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 * + col0 / 61 ) IS NOT NULL
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT - 27 DIV + col1 FROM tab1 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-875
SELECT - 27 / + col1 FROM tab1 AS cor0
----
-1
-5
0

query I rowsort
SELECT DISTINCT - 24 * - + col0 AS col1 FROM tab1 AS cor0
----
1224
2040
2184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-877
SELECT - + col1 DIV + - col0 + CAST( + - col1 AS SIGNED ) + - - col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-877
SELECT - + col1 / + - col0 + CAST ( + - col1 AS INTEGER ) + - - col1 FROM tab0 AS cor0
----
0
0
5

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

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

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

query I rowsort
SELECT + + col2 * - + 73 * + col2 AS col1 FROM tab2 AS cor0
----
-116800
-245572
-38617

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2 + - col2 AS col2, + col1 + - - 21 FROM tab1
----
0
26
0
35
0
68

query I rowsort
SELECT ALL - col1 + - col2 + - - col0 AS col0 FROM tab1 WHERE + col1 - - + 38 BETWEEN 9 AND - col2
----

query II rowsort
SELECT ALL col2 + + - 4 * col0 + - + 87 + col2 - - - col0 * - - 23 * - col2 * - col2 - + col1 * + col2 * + + 70, col0 AS col1 FROM tab0
----
-1028648
15
-215215
87
-21873238
97

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 < + + col1
----

query I rowsort
SELECT col2 + + 36 + + + col2 AS col0 FROM tab2 AS cor0
----
116
152
82

query I rowsort
SELECT - 10 + + 16 + - col0 * - 57 * - 75 AS col1 FROM tab2 cor0
----
-196644
-273594
-320619

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 95 + col0 col1, - col0 FROM tab0 AS cor0
----
-8
-87
-80
-15
2
-97

query I rowsort
SELECT col0 + + + col0 FROM tab2 AS cor0 WHERE NULL > + col0 / - - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT ALL - col2 DIV col0 - - col0 AS col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL - col2 / col0 - - col0 AS col0 FROM tab1 AS cor0
----
50
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT DISTINCT - - col1 * col1 + col0 DIV + 31 - + + ( 99 ) FROM tab0 AS cor0
----
-95
344
6462

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT - - col1 * col1 + col0 / + 31 - + + ( 99 ) FROM tab0 AS cor0
----
-95
344
6462

query I rowsort
SELECT - 35 - - + 16 + - + col0 + + - col0 * - col1 + + - 33 AS col0 FROM tab1 AS cor0
----
288
4134
611

query I rowsort
SELECT ALL - 11 * + col2 FROM tab0 AS cor0
----
-1089
-110
-517

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT + COUNT( * ), - 77 AS col1 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
-77

skipif mysql # not compatible
query II rowsort label-902
SELECT + COUNT ( * ), - 77 AS col1 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
-77

query I rowsort
SELECT DISTINCT - col2 * 94 + + col1 FROM tab0
----
-4337
-919
-9305

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

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

query I rowsort
SELECT ALL - 82 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-908
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col0 AS col2, + col2 * - + 61 FROM tab1 AS cor0
----
NULL
-3599
NULL
-4148
NULL
-5856

skipif mysql # not compatible
query II rowsort label-908
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col0 AS col2, + col2 * - + 61 FROM tab1 AS cor0
----
NULL
-3599
NULL
-4148
NULL
-5856

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT NULL <> 53
----

query I rowsort
SELECT ALL - + ( + 22 ) * - + col1 AS col2 FROM tab1 AS cor0
----
1034
110
308

query I rowsort
SELECT col1 * + - 49 * - col1 FROM tab0 AS cor0
----
21609
321489
49

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

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

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

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

query I rowsort
SELECT ALL - 6 * + 6 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - - ( col0 ) FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-916
SELECT ALL - 67 DIV COUNT( * ) AS col0 FROM tab2 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - 67 / COUNT ( * ) AS col0 FROM tab2 cor0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-917
SELECT DISTINCT - - 21 / - + AVG ( ALL + CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-917
SELECT DISTINCT - - 21 / - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT 64 + col0 + + 53 - col1 FROM tab1
----
154
161
197

query I rowsort
SELECT DISTINCT - 3 * - col0 * + - 66 + + col0 FROM tab1
----
-10047
-16745
-17927

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

query I rowsort
SELECT + col2 * - 40 + - ( + - 41 ) - - col1 AS col2 FROM tab0
----
-1758
-338
-3918

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

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

query I rowsort
SELECT ALL col0 * + ( col0 ) + + 63 + - col1 AS col2 FROM tab1
----
2650
7283
8297

query I rowsort
SELECT DISTINCT col0 + ( - - col1 ) FROM tab0
----
108
96
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT - - col0 * 29 - - col1 + col1 - + + col1 / - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) <> - + col0
----

skipif mysql # not compatible
query I rowsort label-929
SELECT - - col0 * 29 - - col1 + col1 - + + col1 / - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) <> - + col0
----

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + ( + - col2 )
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + col1 col2, - 38 AS col2 FROM tab0 AS cor0
----
162
-38
2
-38
42
-38

query I rowsort
SELECT ALL 94 * - ( + col2 ) + - 19 AS col1 FROM tab1 AS cor0
----
-5565
-6411
-9043

onlyif mysql # DIV for integer division: 
query I rowsort label-933
SELECT DISTINCT col0 - - 95 DIV + 86 FROM tab2 cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT col0 - - 95 / + 86 FROM tab2 cor0
----
47
65
76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT ALL - - 82 - MAX( ALL - + 87 ) FROM tab2 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-935
SELECT ALL - - 82 - MAX ( ALL - + 87 ) FROM tab2 AS cor0
----
169

query I rowsort
SELECT - - ( + - col1 ) * - 76 FROM tab0 AS cor0
----
1596
6156
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT col1 / + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, - 84 )
----

skipif mysql # not compatible
query I rowsort label-937
SELECT col1 / + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1, - 84 )
----

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

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

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

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

query II rowsort
SELECT - 17, 36 + col1 * - - ( + col0 ) AS col2 FROM tab2
----
-17
2382
-17
4964
-17
5061

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT 11 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-942
SELECT 11 / + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * - + col1 AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-944
SELECT COUNT( * ) DIV + ( - - 62 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT COUNT ( * ) / + ( - - 62 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

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

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

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

query I rowsort
SELECT ALL col0 * 90 FROM tab2 cor0
----
4140
5760
6750

query I rowsort
SELECT + col1 * + + col1 * 96 FROM tab2 AS cor0
----
249696
430944
569184

query II rowsort
SELECT ALL col2 AS col1, + col1 * - 40 FROM tab1
----
59
-200
68
-1880
96
-560

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

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

query I rowsort
SELECT - 49 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT col1 * ( + + 98 ) * - col1 * + col1 FROM tab2 AS cor0
----
-12999798
-29474774
-44740234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT DISTINCT - col2 * - 79 - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT - col2 * - 79 - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT + - col0 DIV + col1 col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-954
SELECT + - col0 / + col1 col0 FROM tab0 AS cor0
----
-4
-97
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT - COUNT( * ) * - - 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-255

skipif mysql # not compatible
query I rowsort label-956
SELECT - COUNT ( * ) * - - 85 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-255

query II rowsort
SELECT ALL - col2 * - col1 + 23 AS col2, 65 * 73 AS col1 FROM tab1
----
1367
4745
318
4745
3219
4745

query III rowsort
SELECT * FROM tab0 WHERE 21 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + col2 + + + col2 FROM tab0
----
-1
13
197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * 68 col1 FROM tab0
----
1438
167
5555

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

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT MAX ( 22 ) FROM tab0 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-962
SELECT - col1 DIV + + ( col1 ) + col1 - + col0 FROM tab1 AS cor0
----
-38
-45
-81

skipif mysql # not compatible
query I rowsort label-962
SELECT - col1 / + + ( col1 ) + col1 - + col0 FROM tab1 AS cor0
----
-38
-45
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT DISTINCT - - COUNT( * ) + - 98 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT - - COUNT ( * ) + - 98 FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT 75 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT 75 IS NOT NULL
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-967
SELECT ALL - ( col1 ) DIV + 30 + + + 24 AS col1, - 52 * + - col2 AS col0 FROM tab2 AS cor0
----
22
2080
22
3016
23
1196

skipif mysql # not compatible
query II rowsort label-967
SELECT ALL - ( col1 ) / + 30 + + + 24 AS col1, - 52 * + - col2 AS col0 FROM tab2 AS cor0
----
22
2080
22
3016
23
1196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-968
SELECT + col2, - CAST( + col0 AS SIGNED ) * + col0 col1 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-968
SELECT + col2, - CAST ( + col0 AS INTEGER ) * + col0 col1 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

query II rowsort
SELECT ALL - col0 * + col0 * col2, - 10 AS col0 FROM tab0 AS cor0
----
-10575
-10
-75690
-10
-931491
-10

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-971
SELECT + col1 FROM tab0 WHERE NOT + col2 * - - col0 * - col0 / - col0 * + + CAST( NULL AS SIGNED ) - col0 + - col0 + col0 * - 75 < + + col0
----

skipif mysql # not compatible
query I rowsort label-971
SELECT + col1 FROM tab0 WHERE NOT + col2 * - - col0 * - col0 / - col0 * + + CAST ( NULL AS INTEGER ) - col0 + - col0 + col0 * - 75 < + + col0
----

query I rowsort
SELECT ALL 75 / + - col1 * - 63 AS col1 FROM tab1 WHERE NOT NULL <> 78
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT DISTINCT MAX( ALL + 62 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT MAX ( ALL + 62 ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col1 FROM tab1
----
196
2209
25

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

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

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

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

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

query I rowsort
SELECT + 83 FROM tab1 cor0 WHERE ( NULL ) IN ( 43 * + - col0 + + 67 * - col2 )
----

query I rowsort
SELECT + + 42 * - + col1 AS col0 FROM tab0 AS cor0
----
-3402
-42
-882

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

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

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

query I rowsort
SELECT - + 83 FROM tab1 WHERE + col1 * col2 > NULL
----

query I rowsort
SELECT - 53 + - col0 + - - col2 FROM tab1
----
-76
-79
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-986
SELECT CAST( - col1 AS SIGNED ) AS col2 FROM tab0 WHERE - col2 <= NULL
----

skipif mysql # not compatible
query I rowsort label-986
SELECT CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 WHERE - col2 <= NULL
----

query I rowsort
SELECT ALL + col1 + - 27 AS col1 FROM tab0
----
-26
-6
54

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

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

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

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 43 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT 83 - - col1 + - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
179
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 < NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT COUNT( * ) * + 68 AS col0 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-996
SELECT COUNT ( * ) * + 68 AS col0 FROM tab2
----
204

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 51 ) col0 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL - ( + 94 ) FROM tab1, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - + ( 34 ) * + - COUNT( * ) + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-1002
SELECT - + ( 34 ) * + - COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
93

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

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

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

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

query I rowsort
SELECT DISTINCT + 7 FROM tab0 WHERE - ( col1 ) < - col2 * 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT COUNT( * ) + 63 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1006
SELECT COUNT ( * ) + 63 FROM tab2
----
66

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE - col0 < - col2
----
23
40
58

query I rowsort
SELECT - 23 + + col0 * - 16 AS col1 FROM tab2
----
-1047
-1223
-759

query I rowsort
SELECT DISTINCT + 65 * col1 AS col0 FROM tab2
----
3315
4355
5005

query I rowsort
SELECT DISTINCT - ( - col0 ) * + col0 + col1 * 54 FROM tab2
----
4870
8254
9243

query I rowsort
SELECT col0 + - 97 FROM tab2 WHERE NULL IN ( + 29 )
----

query I rowsort
SELECT - 71 * - 64 - - ( ( col1 ) ) FROM tab1
----
4549
4558
4591

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( 57 ) * col1 AS col0 FROM tab1
----
2679
285
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL MIN( + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL MIN ( + col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL + 41 - + col0 AS col1 FROM tab2
----
-23
-34
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT + 52 DIV - 94 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT + 52 / - 94 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 * 58 AS col0 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - ( + COUNT( * ) ) * 28 col2 FROM tab0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1029
SELECT - ( + COUNT ( * ) ) * 28 col2 FROM tab0
----
-84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1031
SELECT ALL SUM( - 89 ) AS col0 FROM tab0 WHERE ( 10 + CAST( 55 AS SIGNED ) * col1 ) IS NOT NULL
----
-267

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL SUM ( - 89 ) AS col0 FROM tab0 WHERE ( 10 + CAST ( 55 AS INTEGER ) * col1 ) IS NOT NULL
----
-267

query I rowsort
SELECT ALL ( 40 ) + col2 FROM tab1
----
108
136
99

query I rowsort
SELECT DISTINCT 53 * + ( + col2 ) - col1 FROM tab2 cor0
----
1168
2043
3007

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT ALL 3 + col1 DIV col1 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL 3 + col1 / col1 FROM tab2 AS cor0
----
4
4
4

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

query I rowsort
SELECT col1 * - 72 + col1 / 95 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 97 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

skipif mysql # not compatible
query I rowsort label-1038
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT - 18 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - SUM( 6 ) * - 46 FROM tab0
----
828

skipif mysql # not compatible
query I rowsort label-1040
SELECT - SUM ( 6 ) * - 46 FROM tab0
----
828

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

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

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

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

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

query I rowsort
SELECT DISTINCT 52 * + col1 AS col2 FROM tab0 AS cor0
----
1092
4212
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL + ( - COUNT( * ) ) * 71 FROM tab2 AS cor0 WHERE + ( - col2 ) + - col0 >= + 65 / 13
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL + ( - COUNT ( * ) ) * 71 FROM tab2 AS cor0 WHERE + ( - col2 ) + - col0 >= + 65 / 13
----
0

query I rowsort
SELECT ALL - - 99 * 73 AS col2 FROM tab2 AS cor0
----
7227
7227
7227

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

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

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

query I rowsort
SELECT - 37 * col1 FROM tab1 cor0
----
-1739
-185
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-1051
SELECT DISTINCT col0 DIV col1 col0 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1051
SELECT DISTINCT col0 / col1 col0 FROM tab1 cor0
----
1
17
3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1053
SELECT ALL + 98 * ( - COUNT( * ) DIV + ( + 30 ) ) FROM tab1 AS cor0
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * 71 - 40 ) IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

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

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

query I rowsort
SELECT DISTINCT + 32 * + col0 * 25 FROM tab0
----
12000
69600
77600

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col1 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT - 22 DIV + + col0 * + col0 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1061
SELECT - 22 / + + col0 * + col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 97 * - 63 FROM tab0 AS cor0
----
6111
6111
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT ALL MIN( col0 ) AS col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL MIN ( col0 ) AS col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1064
SELECT - col0 DIV 90 DIV CAST( - col1 * col0 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1064
SELECT - col0 / 90 / CAST ( - col1 * col0 AS INTEGER ) FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT + col2 * - col2 DIV + col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + col2 * - col2 / + col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT + SUM( col2 ) + MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE + 36 NOT BETWEEN ( - ( + col1 ) + - 14 ) AND ( - 83 )
----
314

skipif mysql # not compatible
query I rowsort label-1066
SELECT + SUM ( col2 ) + MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE + 36 NOT BETWEEN ( - ( + col1 ) + - 14 ) AND ( - 83 )
----
314

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 3 ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL - 2 + - - 83 FROM tab0 AS cor0
----
81
81
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT ALL - - MIN( ALL + + col2 ) - + COUNT( * ) + 43 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL - - MIN ( ALL + + col2 ) - + COUNT ( * ) + 43 FROM tab2 AS cor0
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1073
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + 27 AS DECIMAL ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1073
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + 27 AS REAL ) + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL 58 / - 11 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 85 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT DISTINCT ( - 54 ) DIV + col0 FROM tab1 AS cor0 WHERE ( ( + 63 ) + 5 ) IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT ( - 54 ) / + col0 FROM tab1 AS cor0 WHERE ( ( + 63 ) + 5 ) IS NOT NULL
----
-1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - - col2 )
----

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

query I rowsort
SELECT + col2 + + 7 AS col0 FROM tab2
----
30
47
65

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1081
SELECT DISTINCT CAST( + ( + 69 ) AS SIGNED ) + col2 FROM tab1
----
128
137
165

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT CAST ( + ( + 69 ) AS INTEGER ) + col2 FROM tab1
----
128
137
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
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-1082
SELECT - COUNT ( ALL - - col1 ) col1 FROM tab2
----
-3

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE + col2 * + + 2 IS NULL
----

query I rowsort
SELECT ALL 74 + col1 - + + 67 + 5 FROM tab2
----
63
79
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 15 * col1 col1 FROM tab1
----
2940
33135
375

query III rowsort
SELECT * FROM tab0 WHERE ( - + 26 ) <> NULL
----

query I rowsort
SELECT ALL col0 + - + 14 AS col0 FROM tab2
----
32
50
61

query I rowsort
SELECT DISTINCT - col2 + - + 20 FROM tab1 AS cor0
----
-116
-79
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - col2 ) * + 19 + + 26 ) <= + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 4 ) NOT BETWEEN 49 AND + 58
----
3

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 4 ) NOT BETWEEN 49 AND + 58
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT ALL + COUNT( * ) * MAX( ALL + + 94 ) + + COUNT( * ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL + COUNT ( * ) * MAX ( ALL + + 94 ) + + COUNT ( * ) FROM tab1 AS cor0
----
285

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT - MIN( DISTINCT col2 ) * - + 62 AS col0 FROM tab0
----
620

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - MIN ( DISTINCT col2 ) * - + 62 AS col0 FROM tab0
----
620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT 48 DIV COUNT( * ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1095
SELECT 48 / COUNT ( * ) AS col2 FROM tab0
----
16

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1096
SELECT DISTINCT SUM ( + - col1 ) col2 FROM tab0 AS cor0
----
-103

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + - col1 - + col1 * - col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT ALL + 99 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + 99 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-297

query I rowsort
SELECT ALL - + 27 * - + col0 FROM tab0 AS cor0
----
2349
2619
405

query II rowsort
SELECT + 28 AS col2, col0 + - ( 39 ) AS col0 FROM tab2
----
28
25
28
36
28
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT - MAX( + + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1102
SELECT - MAX ( + + col2 ) FROM tab1
----
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE 85 + - col2 = col2 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1104
SELECT - 28 AS col0, SUM( + ( - col0 ) ) col1 FROM tab0
----
-28
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1104
SELECT - 28 AS col0, SUM ( + ( - col0 ) ) col1 FROM tab0
----
-28
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL 20 + + + COUNT( * ) AS col0 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL 20 + + + COUNT ( * ) AS col0 FROM tab0
----
23

query II rowsort
SELECT ALL col1, 94 AS col2 FROM tab2
----
51
94
67
94
77
94

query I rowsort
SELECT DISTINCT - + ( + col2 ) FROM tab0 WHERE + col0 < NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - - col1 - col2 >= NULL
----

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

query I rowsort
SELECT ALL + 76 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( NOT ( - col1 - - 51 / - + col1 ) < - col1 - col1 )
----
59

query I rowsort
SELECT DISTINCT - 78 + + 39 * + + col1 FROM tab1
----
117
1755
468

query I rowsort
SELECT DISTINCT - col1 * - + col1 FROM tab1 WHERE NOT - col1 / + 36 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT + col0 FROM tab1 AS cor0 WHERE col2 + - CAST( col2 AS SIGNED ) <> ( + + ( 41 ) )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1114
SELECT + col0 FROM tab1 AS cor0 WHERE col2 + - CAST ( col2 AS INTEGER ) <> ( + + ( 41 ) )
----
51
85
91

query I rowsort
SELECT + col2 * 7 FROM tab1 AS cor0
----
413
476
672

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT ALL 46 * SUM( - - 14 ) AS col1 FROM tab1 AS cor0
----
1932

skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL 46 * SUM ( - - 14 ) AS col1 FROM tab1 AS cor0
----
1932

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + - + col1 col0 FROM tab1
----
51
84
93

query I rowsort
SELECT DISTINCT - 96 * - + col0 FROM tab2 WHERE NULL <> + col2
----

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

query I rowsort
SELECT DISTINCT 99 FROM tab0 AS cor0 WHERE NOT ( ( ( + 43 ) IS NULL ) )
----
99

query I rowsort
SELECT DISTINCT col2 * - - col1 - + col1 AS col0 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT 61 - col0 + + col1 FROM tab1 AS cor0
----
-19
17
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL + COUNT( DISTINCT - col2 ) * 72 FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + COUNT ( DISTINCT - col2 ) * 72 FROM tab1 AS cor0
----
216

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL - MAX( + col1 ) * COUNT( * ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - MAX ( + col1 ) * COUNT ( * ) FROM tab2 cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT ALL - 4 col1 FROM tab2 AS cor0 WHERE NOT - CAST( 66 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1127
SELECT ALL - 4 col1 FROM tab2 AS cor0 WHERE NOT - CAST ( 66 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT MAX( ALL 0 ) * + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT MAX ( ALL 0 ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + 28 IN ( 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT DISTINCT - CAST( col0 AS SIGNED ) * 41 AS col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * 41 AS col1 FROM tab2 AS cor0
----
-1886
-2624
-3075

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

query I rowsort
SELECT ALL + - col1 + + col1 FROM tab0 cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1133
SELECT + col2 / 51 AS col0 FROM tab1 cor0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT MAX( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-1135
SELECT MAX ( DISTINCT + col1 ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
81

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

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

query I rowsort
SELECT DISTINCT 12 + 8 FROM tab2 AS cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT - ( col1 ) * + col0 - CAST( + col1 + col2 AS SIGNED ) AS col0 FROM tab2
----
-2420
-5045
-5150

skipif mysql # not compatible
query I rowsort label-1138
SELECT - ( col1 ) * + col0 - CAST ( + col1 + col2 AS INTEGER ) AS col0 FROM tab2
----
-2420
-5045
-5150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1139
SELECT ALL CAST( ( + col2 ) AS SIGNED ) + + 38 DIV + col1 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL CAST ( ( + col2 ) AS INTEGER ) + + 38 / + col1 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ALL + ( - + COUNT( * ) ) + + 68 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + ( - + COUNT ( * ) ) + + 68 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + 58 - ( COUNT( * ) ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1141
SELECT + 58 - ( COUNT ( * ) ) FROM tab2
----
55

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

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

query I rowsort
SELECT 8 * + ( 15 ) + - col1 FROM tab1
----
106
115
73

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 14 BETWEEN + col1 * - 43 + + 32 AND 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 95 AS col1 FROM tab1 WHERE - 15 = NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 27 FROM tab2 cor0
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-1151
SELECT MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT DISTINCT + MAX( + 86 ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT + MAX ( + 86 ) FROM tab2
----
86

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

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

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

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

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 WHERE ( + 74 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT ALL 25 DIV - - col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL 25 / - - col2 FROM tab2
----
0
0
1

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

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

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN ( - col1 ) AND ( + col0 * col2 + - col0 * + ( col1 ) )
----
23
40
58

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

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

query I rowsort
SELECT - ( + - col2 ) FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT col2 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN NULL AND - 45 / 14
----

skipif mysql # not compatible
query I rowsort label-1164
SELECT col2 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 + col2 NOT BETWEEN NULL AND - 45 / 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL SUM( ALL - 60 ) FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL SUM ( ALL - 60 ) FROM tab0 cor0
----
-180

query I rowsort
SELECT ALL + col0 * - col2 + col2 * + 6 FROM tab2 cor0 WHERE col0 * - col0 * - 79 >= 88 + 22
----
-2320
-4002
-920

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

query I rowsort
SELECT ALL + 26 * 20 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
520
520
520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT COUNT( DISTINCT + col0 ) + + 82 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - 32 ) / 22 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT COUNT ( DISTINCT + col0 ) + + 82 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - 32 ) / 22 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1171
SELECT ALL COUNT( DISTINCT - col1 ) AS col1, + COUNT( DISTINCT + col0 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-1171
SELECT ALL COUNT ( DISTINCT - col1 ) AS col1, + COUNT ( DISTINCT + col0 ) FROM tab0
----
3
3

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

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

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

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

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

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

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

query I rowsort
SELECT 21 * col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1178
SELECT DISTINCT ( + col0 ) + + col2, + 56 + col0 DIV col0 AS col0 FROM tab0
----
196
57
62
57
97
57

skipif mysql # not compatible
query II rowsort label-1178
SELECT DISTINCT ( + col0 ) + + col2, + 56 + col0 / col0 AS col0 FROM tab0
----
196
57
62
57
97
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT - MIN( DISTINCT + col0 ) + - - 83 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-1180
SELECT - MIN ( DISTINCT + col0 ) + - - 83 FROM tab2 AS cor0
----
37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT - 82 + - MIN( DISTINCT - - col0 ) FROM tab1 cor0
----
-133

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 82 + - MIN ( DISTINCT - - col0 ) FROM tab1 cor0
----
-133

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

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

query I rowsort
SELECT + col0 + - 82 AS col1 FROM tab0 AS cor0
----
-67
15
5

query I rowsort
SELECT + ( + col1 ) * + + 6 * - ( + col2 ) + col1 * col0 FROM tab1 AS cor0
----
-1345
-14899
-7350

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

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

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

query I rowsort
SELECT ALL - col0 * 36 FROM tab2 AS cor0
----
-1656
-2304
-2700

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

query I rowsort
SELECT + - 66 FROM tab0 WHERE NULL > 89 * + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1192
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) + + + col0 + - 98 + - 60 * - ( - 90 * + 27 ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1192
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS REAL ) + + + col0 + - 98 + - 60 * - ( - 90 * + 27 ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 58, + 96 * - col2 col1 FROM tab2
----
58
-2208
58
-3840
58
-5568

query I rowsort
SELECT ALL + 61 + + 40 FROM tab1
----
101
101
101

query III rowsort
SELECT * FROM tab1 WHERE NULL = - 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 + + col1 col2 FROM tab1
----
26
35
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT - 93 - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT - 93 - COUNT ( * ) FROM tab0
----
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1199
SELECT ALL - col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN - CAST( + col0 AS DECIMAL ) + - - 73 AND - col1
----

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN - CAST ( + col0 AS REAL ) + - - 73 AND - col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - 79 ) AND 31 * - col0
----

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

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

query I rowsort
SELECT ALL - - 8 * - col2 + - + col1 * - - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + + 73 AS col2 FROM tab0 AS cor0
----
73

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

query I rowsort
SELECT - - col1 * + col1 - 56 * - 92 AS col1 FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN + + 82 AND - + col2 * 2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1207
SELECT - - CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT - - CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 8 = col0 + + col0 / + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT - MAX( ALL - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1210
SELECT - MAX ( ALL - col2 ) FROM tab0
----
10

query I rowsort
SELECT DISTINCT - ( 28 ) AS col0 FROM tab2
----
-28

query I rowsort
SELECT ALL + col1 + col1 * + + ( col0 ) * - 51 AS col1 FROM tab1
----
-21670
-218080
-36400

query I rowsort
SELECT 43 * + + col1 FROM tab1
----
2021
215
602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1214
SELECT DISTINCT - 60 DIV + ( - + ( + COUNT( DISTINCT col2 ) ) ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT - 60 / + ( - + ( + COUNT ( DISTINCT col2 ) ) ) FROM tab2
----
20

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE - - col2 = NULL
----

query I rowsort
SELECT 23 * ( - 27 ) AS col1 FROM tab2
----
-621
-621
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-1217
SELECT DISTINCT col2 DIV + + 17 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT col2 / + + 17 FROM tab2 AS cor0
----
1
2
3

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

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

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE ( NULL ) NOT BETWEEN - 41 * - col0 * + 80 + - col2 AND - col0
----

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1223
SELECT - col1 - - + col0 AS col0, 66 + 5 * - + CAST( NULL AS DECIMAL ) / - 83 - - 44 * col1 AS col1 FROM tab2 AS cor0
----
-13
NULL
-5
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-1223
SELECT - col1 - - + col0 AS col0, 66 + 5 * - + CAST ( NULL AS REAL ) / - 83 - - 44 * col1 AS col1 FROM tab2 AS cor0
----
-13
NULL
-5
NULL
8
NULL

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

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

query I rowsort
SELECT - 74 - - + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-133
-142
-170

query I rowsort
SELECT col1 - - 30 * + col2 FROM tab2 AS cor0
----
1277
1807
741

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT + 66 - - SUM( DISTINCT + col0 ) AS col0, - 26 * + 30 * - 10 col1 FROM tab1
----
293
7800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1229
SELECT + 66 - - SUM ( DISTINCT + col0 ) AS col0, - 26 * + 30 * - 10 col1 FROM tab1
----
293
7800

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT COUNT( * ) + - 63 col1 FROM tab0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1230
SELECT COUNT ( * ) + - 63 col1 FROM tab0
----
-60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT col0 DIV - + col2 + 84 + - + col2 + - col2 * - - col0 col1 FROM tab1
----
-4908
-4991
-6173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1232
SELECT col0 / - + col2 + 84 + - + col2 + - col2 * - - col0 col1 FROM tab1
----
-4908
-4991
-6173

query I rowsort
SELECT 88 + + col1 AS col0 FROM tab2
----
139
155
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1234
SELECT DISTINCT - 0 + + 0 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - 0 + + 0 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT + ( - - MAX ( - + col2 ) ) FROM tab2
----
-23

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT - MAX( - 14 ) FROM tab2 WHERE NOT - + col1 * - 33 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT - MAX ( - 14 ) FROM tab2 WHERE NOT - + col1 * - 33 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT COUNT( DISTINCT + 7 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1242
SELECT COUNT ( DISTINCT + 7 ) FROM tab2
----
1

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

query I rowsort
SELECT ALL - - 46 AS col0 FROM tab0 cor0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= ( - + col2 * - col0 + + - col0 * - col0 / + 26 )
----

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

skipif mysql # not compatible
query II rowsort label-1246
SELECT - 77 AS col1, CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-77
14
-77
47
-77
5

query I rowsort
SELECT - - 1 AS col2 FROM tab2 cor0
----
1
1
1

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

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

skipif mysql # not compatible
query I rowsort label-1249
SELECT ALL - + CAST ( NULL AS REAL ) * 44 - + ( - col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + col0 + 80 col1 FROM tab2
----
197
215
226

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 3 ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT 58 + + col2 * - 85 AS col1 FROM tab0
----
-3937
-792
-8357

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

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

query II rowsort
SELECT ALL col0 + 42 AS col1, + 43 AS col0 FROM tab0
----
129
43
139
43
57
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT DISTINCT - 32 + + + ( + col1 ) DIV + col2 FROM tab2
----
-30
-31

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT - 32 + + + ( + col1 ) / + col2 FROM tab2
----
-30
-31

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

query I rowsort
SELECT + - col0 * + + 92 AS col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT ALL + col1 * + col2 * + ( 17 ) + + 71 FROM tab1 AS cor0
----
22919
5086
54403

query I rowsort
SELECT ALL + col2 * + ( 59 ) * + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1435706
-14885700
-6041600

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1264
SELECT ( + - CAST( NULL AS DECIMAL ) ) + + + AVG ( + col2 ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1264
SELECT ( + - CAST ( NULL AS REAL ) ) + + + AVG ( + col2 ) / + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col0 - + col2 AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-45
23
26

query I rowsort
SELECT ALL - + col1 - - 1 AS col0 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT ALL + - col1 * + 32 AS col1 FROM tab0 AS cor0
----
-2592
-32
-672

onlyif mysql # DIV for integer division: 
query I rowsort label-1268
SELECT - ( col1 ) DIV - - col2 + col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1268
SELECT - ( col1 ) / - - col2 + col1 FROM tab2 AS cor0
----
49
66
76

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

query I rowsort
SELECT + col2 + + + ( + - 15 ) * col0 FROM tab0 AS cor0
----
-1295
-1356
-178

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

query I rowsort
SELECT ALL - - col0 * + col0 AS col1 FROM tab1 cor0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + 16 + - col2 AS col1 FROM tab0 AS cor0
----
-31
-83
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT - COUNT( * ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1276
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1
----
-3

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1282
SELECT ALL ( + 8 ) AS col0, + MAX( + 4 ) FROM tab0 AS cor0 WHERE + col0 * + + col2 / + 5 <> - col0
----
8
4

skipif mysql # not compatible
query II rowsort label-1282
SELECT ALL ( + 8 ) AS col0, + MAX ( + 4 ) FROM tab0 AS cor0 WHERE + col0 * + + col2 / + 5 <> - col0
----
8
4

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

query I rowsort
SELECT 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

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

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

query I rowsort
SELECT DISTINCT + - col0 * - col2 AS col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
705
870
9603

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

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

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT - 10 * - - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - 10 * - - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
90

query II rowsort
SELECT col1, + 78 FROM tab1
----
14
78
47
78
5
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1291
SELECT - 98 AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
-98
NULL
-98
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-1291
SELECT - 98 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
-98
NULL
-98
NULL
-98
NULL

query I rowsort
SELECT ALL - col1 + - 46 AS col2 FROM tab0
----
-127
-47
-67

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col0 + + - col1 + + col2 NOT IN ( - 19 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 82 * + col1 + + - col0 AS col1 FROM tab0
----
-15
1635
6627

query I rowsort
SELECT DISTINCT + col1 + 14 FROM tab1
----
19
28
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1296
SELECT ALL + col2 DIV + col2 + + + col0 AS col1 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + col2 / + col2 + + + col0 AS col1 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT MIN( DISTINCT - 42 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT MIN ( DISTINCT - 42 ) FROM tab1
----
-42

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT 3 DIV + col1 + 78 FROM tab0
----
78
78
81

skipif mysql # not compatible
query I rowsort label-1299
SELECT 3 / + col1 + 78 FROM tab0
----
78
78
81

query I rowsort
SELECT + ( + 55 ) + + col2 AS col0 FROM tab1
----
114
123
151

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT - 79 + + col2 DIV col1 FROM tab0 AS cor0
----
-79
-79
20

skipif mysql # not compatible
query I rowsort label-1302
SELECT - 79 + + col2 / col1 FROM tab0 AS cor0
----
-79
-79
20

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT ALL - 9 DIV 43 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL - 9 / 43 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 27 AS col2 FROM tab2
----
-27
-27
-27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1308
SELECT DISTINCT COUNT( * ) - - + 26 * MIN( + + 32 ) * + ( 72 ) + - - SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT COUNT ( * ) - - + 26 * MIN ( + + 32 ) * + ( 72 ) + - - SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1309
SELECT DISTINCT COUNT( ALL col1 ) DIV + MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT DISTINCT COUNT ( ALL col1 ) / + MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 < - + ( + + col0 )
----
15
81
47

query I rowsort
SELECT ALL - 38 - - ( - col0 ) FROM tab1 AS cor0
----
-123
-129
-89

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 50 ) NOT BETWEEN + col1 AND col2 * col0 * 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + 4 * + + col0 AS col1 FROM tab2 AS cor0
----
184
256
300

onlyif mysql # DIV for integer division: 
query I rowsort label-1316
SELECT 47 DIV 64 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1316
SELECT 47 / 64 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1317
SELECT 9 DIV 30 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1317
SELECT 9 / 30 AS col0 FROM tab0
----
0
0
0

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

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

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

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

query II rowsort
SELECT DISTINCT + col2, - 58 AS col1 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT DISTINCT MAX( DISTINCT - + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT MAX ( DISTINCT - + col1 ) FROM tab2
----
-51

query I rowsort
SELECT - + col2 AS col1 FROM tab2 WHERE NOT col2 / + + col0 >= + + 96
----
-23
-40
-58

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
45

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL + SUM( - 19 ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL + SUM ( - 19 ) FROM tab1 AS cor0
----
-57

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

query I rowsort
SELECT - + col2 AS col2 FROM tab2 cor0 WHERE col1 BETWEEN - - 67 AND - - 11
----

query I rowsort
SELECT ALL col2 * + + 52 FROM tab2 AS cor0
----
1196
2080
3016

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

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

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

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

query I rowsort
SELECT + col0 + + - 72 + - col2 + 65 AS col2 FROM tab2 AS cor0
----
10
16
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col0 * 34 IN ( + col0, + 48 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1340
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + col2 + + - ( - 73 ) FROM tab2 WHERE NULL > + - col0
----

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT - CAST ( NULL AS REAL ) + + col2 + + - ( - 73 ) FROM tab2 WHERE NULL > + - col0
----

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

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

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

query I rowsort
SELECT DISTINCT col2 - ( + col1 ) + ( + + col2 ) * col2 AS col2 FROM tab0
----
2175
89
9899

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT NULL <> col2 OR NULL IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col0 col2 FROM tab2
----
2116
4096
5625

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT + ( col2 ) DIV + - ( ( + col1 ) ) * 84 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT + ( col2 ) / + - ( ( + col1 ) ) * 84 AS col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT ALL 47 DIV - col2 AS col1 FROM tab0 cor0 WHERE NOT ( col1 ) IS NULL
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL 47 / - col2 AS col1 FROM tab0 cor0 WHERE NOT ( col1 ) IS NULL
----
-1
-4
0

query II rowsort
SELECT - col1 * - - col0 AS col2, 17 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-425
17
-4277
17
-714
17

query I rowsort
SELECT + 51 - + col2 FROM tab0 AS cor0
----
-48
4
41

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

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

query I rowsort
SELECT DISTINCT - - 8 * + col2 * col1 FROM tab0 AS cor0
----
1680
30456
792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1356
SELECT ALL + COUNT( * ) DIV + 42 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL + COUNT ( * ) / + 42 AS col2 FROM tab2 AS cor0
----
0

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab2 AS cor0
----
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1364
SELECT DISTINCT - MIN ( DISTINCT + col2 ) col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT + + 33 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
33
33
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 57 * + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1367
SELECT DISTINCT + ( CAST( AVG ( ALL 89 ) AS SIGNED ) ) AS col2 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT + ( CAST ( AVG ( ALL 89 ) AS INTEGER ) ) AS col2 FROM tab1
----
89

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

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

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab0
----
9

query I rowsort
SELECT + col2 * + + col1 AS col1 FROM tab0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 * + - 30 * + col1 col1 FROM tab2
----
-32130
-42210
-48510

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

skipif mysql # not compatible
query I rowsort label-1372
SELECT MIN ( + + col0 ) AS col1 FROM tab0
----
15

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

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

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

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

query II rowsort
SELECT + col2 + - + col0, - col0 + - - 86 + 34 - - - col1 AS col0 FROM tab1 cor0
----
-23
-18
-26
30
45
55

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT 63 DIV - + 52 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1377
SELECT 63 / - + 52 FROM tab1 AS cor0
----
-1
-1
-1

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

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

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

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

query II rowsort
SELECT col2, 9 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

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

query I rowsort
SELECT DISTINCT + col0 + col1 AS col0 FROM tab1 AS cor0 WHERE 6 - 55 IS NULL
----

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

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1387
SELECT DISTINCT + col2 + col0 DIV - col2 AS col2 FROM tab0
----
2
47
99

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + col2 + col0 / - col2 AS col2 FROM tab0
----
2
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT + - ( col0 ) - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL = + - 28 + + col0
----

skipif mysql # not compatible
query I rowsort label-1388
SELECT + - ( col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL = + - 28 + + col0
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 49 col2, col2 FROM tab1 WHERE col2 NOT IN ( + 92 * + 22, 51, + col0, col0 )
----
-49
59
-49
68
-49
96

query I rowsort
SELECT ALL - 15 AS col0 FROM tab0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query III rowsort label-1393
SELECT + col1 + + ( col2 ) + - col1, + col0 AS col0, - + 16 DIV + + 46 * - col2 + - col2 AS col2 FROM tab0
----
9 values hashing to 3e43c32ce171d88fdeefc003e39ef132

skipif mysql # not compatible
query III rowsort label-1393
SELECT + col1 + + ( col2 ) + - col1, + col0 AS col0, - + 16 / + + 46 * - col2 + - col2 AS col2 FROM tab0
----
9 values hashing to 3e43c32ce171d88fdeefc003e39ef132

query II rowsort
SELECT DISTINCT + 43 - + col1, - col0 * - + col1 * + 72 + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-24
361791
-34
354779
-8
168884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 - col0 col2 FROM tab1 AS cor0
----
-125
-131
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT - col2 DIV 69 * - col2 FROM tab1
----
0
0
96

skipif mysql # not compatible
query I rowsort label-1396
SELECT - col2 / 69 * - col2 FROM tab1
----
0
0
96

query I rowsort
SELECT col0 / 31 AS col0 FROM tab0 WHERE NOT + + col2 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1398
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1398
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT ALL + 48 * - - 96 DIV 1 AS col2 FROM tab1 AS cor0
----
4608
4608
4608

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + 48 * - - 96 / 1 AS col2 FROM tab1 AS cor0
----
4608
4608
4608

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( + + col2 ) * + 62 AS col1 FROM tab0 AS cor0
----
2914
6138
620

query I rowsort
SELECT + 94 * + ( col1 ) AS col1 FROM tab2
----
4794
6298
7238

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1408
SELECT ALL + col1 / - - CAST( NULL AS SIGNED ), + 79 AS col2 FROM tab2
----
NULL
79
NULL
79
NULL
79

skipif mysql # not compatible
query II rowsort label-1408
SELECT ALL + col1 / - - CAST ( NULL AS INTEGER ), + 79 AS col2 FROM tab2
----
NULL
79
NULL
79
NULL
79

query I rowsort
SELECT - 12 * col1 AS col1 FROM tab1
----
-168
-564
-60

query I rowsort
SELECT DISTINCT col2 * - ( - 69 ) AS col0 FROM tab2
----
1587
2760
4002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT - COUNT( * ) DIV 90 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1411
SELECT - COUNT ( * ) / 90 col0 FROM tab1
----
0

query II rowsort
SELECT ALL col0 AS col2, 73 FROM tab2
----
46
73
64
73
75
73

query II rowsort
SELECT DISTINCT col2 AS col1, 95 * + col0 FROM tab1
----
59
8075
68
8645
96
4845

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT MAX( DISTINCT + col1 ) * + - 65 FROM tab0
----
-5265

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT MAX ( DISTINCT + col1 ) * + - 65 FROM tab0
----
-5265

query II rowsort
SELECT - 86 * - + col2 AS col2, col0 AS col0 FROM tab2
----
1978
46
3440
64
4988
75

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT ALL 26 DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL 26 / - col0 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT - 97 AS col2, col0 FROM tab1 AS cor0
----
-97
51
-97
85
-97
91

query I rowsort
SELECT ALL + - 36 AS col2 FROM tab1 AS cor0
----
-36
-36
-36

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

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

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

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

query I rowsort
SELECT - 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - col0
----

query II rowsort
SELECT col0 + 38, col2 - + + ( col1 ) AS col1 FROM tab1 AS cor0
----
123
54
129
21
89
82

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + CAST( col0 AS SIGNED ) * + - 83 + 36 * - col1 AS col0 FROM tab2 AS cor0
----
-5654
-8084
-8637

skipif mysql # not compatible
query I rowsort label-1429
SELECT + CAST ( col0 AS INTEGER ) * + - 83 + 36 * - col1 AS col0 FROM tab2 AS cor0
----
-5654
-8084
-8637

query I rowsort
SELECT + + 6 + - col0 FROM tab1 cor0
----
-45
-79
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1431
SELECT ALL + CAST( NULL AS DECIMAL ) * 2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL + CAST ( NULL AS REAL ) * 2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - + 54 < NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - 97 = - - col1 + + - 52
----
46
64
75

query I rowsort
SELECT + 31 AS col1 FROM tab1 AS cor0 WHERE - ( - - col2 ) NOT BETWEEN - - 20 * col1 + + col1 + 39 + col2 AND NULL
----
31
31
31

query I rowsort
SELECT ALL + + 71 + - col1 FROM tab2 AS cor0
----
-6
20
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1436
SELECT DISTINCT - MIN( ALL - - col0 ) * + 0 AS col1 FROM tab2 WHERE - CAST( + col0 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT - MIN ( ALL - - col0 ) * + 0 AS col1 FROM tab2 WHERE - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT COUNT( * ) FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT COUNT ( * ) FROM tab2 WHERE NULL < NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT ALL + 27 + + COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-1439
SELECT ALL + 27 + + COUNT ( * ) FROM tab0
----
30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1440
SELECT COUNT ( ALL + 92 ) col0 FROM tab2
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1443
SELECT DISTINCT 37 * - col2 AS col2, - CAST( + - CAST( - + col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
-1480
-40
-2146
-58
-851
-23

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT 37 * - col2 AS col2, - CAST ( + - CAST ( - + col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
-1480
-40
-2146
-58
-851
-23

query I rowsort
SELECT 32 * + col1 * - - col1 FROM tab0
----
14112
209952
32

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

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

query I rowsort
SELECT DISTINCT - - 34 FROM tab0 cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * + col0 * + col2 col0 FROM tab2 AS cor0
----
13050
3174
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab1 AS cor0 WHERE NOT col0 * + col1 * 76 <= - + col0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 48 + col0 IS NOT NULL )
----

query I rowsort
SELECT + 67 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT 8 * - col0 FROM tab1
----
-408
-680
-728

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

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

query I rowsort
SELECT ( - col1 ) * - - 3 + - col1 FROM tab1
----
-188
-20
-56

query I rowsort
SELECT DISTINCT + col1 * 14 * + col2 FROM tab2
----
16422
43120
54404

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT - - 13 AS col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT 49 * - 83 * - 90 * - + SUM( - - 73 ) FROM tab1
----
-80160570

skipif mysql # not compatible
query I rowsort label-1457
SELECT 49 * - 83 * - 90 * - + SUM ( - - 73 ) FROM tab1
----
-80160570

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

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

query I rowsort
SELECT 67 * col1 AS col1 FROM tab2
----
3417
4489
5159

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= - 23 * - - col2
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( - 74 ) * col0 col2 FROM tab0
----
1125
6525
7275

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

query II rowsort
SELECT DISTINCT col1, col1 * - - col1 * - 6 + col0 * - + col2 FROM tab2
----
51
-16664
67
-31284
77
-38134

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1468
SELECT - CAST( NULL AS DECIMAL ) * - 23 * - 95 * - 5 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT - CAST ( NULL AS REAL ) * - 23 * - 95 * - 5 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + - 27, col2 * - 97 col2 FROM tab0 AS cor0
----
-2187
-4559
-27
-9603
-567
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT DISTINCT + + 78 * MAX( - col0 ) FROM tab0 AS cor0
----
-1170

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT + + 78 * MAX ( - col0 ) FROM tab0 AS cor0
----
-1170

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

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

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

query I rowsort
SELECT ( - col2 ) - 8 AS col0 FROM tab2 cor0
----
-31
-48
-66

query I rowsort
SELECT + col2 * - 92 + - + 81 FROM tab0
----
-1001
-4405
-9189

query I rowsort
SELECT col2 + col0 - col2 + + 5 FROM tab1
----
56
90
96

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

query I rowsort
SELECT col0 + + 58 AS col0 FROM tab2
----
104
122
133

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1480
SELECT + SUM ( DISTINCT + col2 ) col2 FROM tab0 AS cor0
----
156

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

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

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

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1483
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

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

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

query I rowsort
SELECT ALL - + col0 * - ( 76 ) FROM tab1 AS cor0 WHERE NULL > - 19 + - - col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1489
SELECT 7, 63 * - COUNT( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
7
-189

skipif mysql # not compatible
query II rowsort label-1489
SELECT 7, 63 * - COUNT ( ALL - - col2 ) AS col0 FROM tab2 AS cor0
----
7
-189

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1491
SELECT - ( col0 ) * + - 9 + + - col2 DIV - col2 + col1 AS col2 FROM tab0
----
217
805
875

skipif mysql # not compatible
query I rowsort label-1491
SELECT - ( col0 ) * + - 9 + + - col2 / - col2 + col1 AS col2 FROM tab0
----
217
805
875

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT ALL 74 + + COUNT( * ) FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL 74 + + COUNT ( * ) FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 WHERE + 89 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 WHERE + 89 IS NOT NULL
----
3

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

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

query I rowsort
SELECT ALL - ( col0 ) + - 99 AS col1 FROM tab0
----
-114
-186
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-1496
SELECT + 14 DIV + col2 + + col1 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1496
SELECT + 14 / + col2 + + col1 AS col0 FROM tab2
----
51
67
77

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 89 * + col1 = NULL
----

query I rowsort
SELECT DISTINCT - + 9 + + + 50 - - + col0 AS col0 FROM tab1 AS cor0
----
126
132
92

query I rowsort
SELECT - 9 AS col0 FROM tab0 WHERE NOT NULL > col0 OR + - col1 IS NULL
----

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

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

query I rowsort
SELECT + 88 + - + 64 AS col1 FROM tab2 cor0
----
24
24
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT + 92 + + + 96 - ( COUNT( * ) ) FROM tab0 cor0
----
185

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 92 + + + 96 - ( COUNT ( * ) ) FROM tab0 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL - SUM( 68 ) FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - SUM ( 68 ) FROM tab0 AS cor0
----
-204

query II rowsort
SELECT - - 62 + - + ( + col2 ), + 14 AS col2 FROM tab2 AS cor0
----
22
14
39
14
4
14

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

skipif mysql # not compatible
query I rowsort label-1507
SELECT ( + - ( - + CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) + + 50 AS col2 FROM tab1 AS cor0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-1510
SELECT - SUM ( - col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab0, tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + MAX( ALL col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1512
SELECT + MAX ( ALL col1 ) FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1513
SELECT - CAST( 92 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-1513
SELECT - CAST ( 92 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-92
-92
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1515
SELECT DISTINCT MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT + 88 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1519
SELECT + 88 / col0 AS col1 FROM tab1 AS cor0
----
0
1
1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1520
SELECT ALL + SUM ( - col0 ) col1 FROM tab2 cor0
----
-185

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

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 WHERE col0 * + col0 < NULL
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) * - + col2 + - + 90 > + ( - col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT - MAX( - - 45 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1527
SELECT - MAX ( - - 45 ) FROM tab2
----
-45

query I rowsort
SELECT ALL col2 * - col2 * - col1 + + - col2 AS col1 FROM tab0
----
178882
2090
9702

query I rowsort
SELECT ALL + 31 FROM tab2 WHERE NULL BETWEEN + 89 - + + col1 * + col0 * - ( col1 ) - - - col2 AND - + col1
----

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

query I rowsort
SELECT ALL + 57 + - 50 AS col1 FROM tab1
----
7
7
7

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

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab1
----
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT + 63 + - - MIN( DISTINCT + - 82 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1535
SELECT + 63 + - - MIN ( DISTINCT + - 82 ) FROM tab1 AS cor0
----
-19

query I rowsort
SELECT DISTINCT + 4 * col1 AS col1 FROM tab0 cor0
----
324
4
84

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

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + 61 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - - 26 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT 2 * - col1 AS col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT + 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT DISTINCT + col0 - - 70 + + col1 FROM tab0 AS cor0
----
166
168
178

query I rowsort
SELECT ALL + col0 - + col2 + + - col2 FROM tab2 AS cor0
----
-16
-41
0

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

query I rowsort
SELECT ALL 47 AS col2 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT 69 * - CAST( + ( - - col2 ) AS SIGNED ) + + 10 - col2 * - col0 FROM tab0 AS cor0
----
-2528
190
2782

skipif mysql # not compatible
query I rowsort label-1547
SELECT 69 * - CAST ( + ( - - col2 ) AS INTEGER ) + + 10 - col2 * - col0 FROM tab0 AS cor0
----
-2528
190
2782

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1550
SELECT - col1 DIV - 69 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1550
SELECT - col1 / - 69 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT 75 * + - col2 * - - col2 FROM tab1
----
-261075
-346800
-691200

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

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

query I rowsort
SELECT DISTINCT + 24 * 7 FROM tab1
----
168

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - col1 * - - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / - col2 <> + 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1557
SELECT MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT - 75 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query III rowsort
SELECT * FROM tab0 WHERE NOT + 42 BETWEEN - 61 + + col2 AND + col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT ALL - 6, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-6
NULL
-6
NULL
-6
NULL

skipif mysql # not compatible
query II rowsort label-1560
SELECT ALL - 6, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-6
NULL
-6
NULL
-6
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

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

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

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

skipif mysql # not compatible
query I rowsort label-1563
SELECT MAX ( - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT - + AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1565
SELECT - + AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + + MAX( - 74 ) AS col0 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1567
SELECT + + MAX ( - 74 ) AS col0 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT ALL col1 * - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + + col1 + - - 45 FROM tab1 AS cor0
----
50
59
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 97 + col1 * col2 col1 FROM tab1 AS cor0
----
1441
3293
392

query I rowsort
SELECT ALL + - col1 + - + col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1572
SELECT - 80 * - 62 + - - CAST( NULL AS SIGNED ) + - - 85 * + COUNT( * ) AS col1, + 61 FROM tab1
----
NULL
61

skipif mysql # not compatible
query II rowsort label-1572
SELECT - 80 * - 62 + - - CAST ( NULL AS INTEGER ) + - - 85 * + COUNT ( * ) AS col1, + 61 FROM tab1
----
NULL
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL = - 15 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1575
SELECT ALL + 70 DIV COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + 70 / COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-1576
SELECT ALL 94 + + 50 DIV + 15 + - - col1 DIV col2 * + ( + 55 ) AS col1, col2 * col1 + + col2 - - - 90 + + 67 * - 61 * + col2 + + + 19 + 33 + - col1 * + + 8 + - col1 FROM tab0
----
152
-189002
207
-40877
97
-404462

skipif mysql # not compatible
query II rowsort label-1576
SELECT ALL 94 + + 50 / + 15 + - - col1 / col2 * + ( + 55 ) AS col1, col2 * col1 + + col2 - - - 90 + + 67 * - 61 * + col2 + + + 19 + 33 + - col1 * + + 8 + - col1 FROM tab0
----
152
-189002
207
-40877
97
-404462

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 NOT BETWEEN ( + + 79 ) AND NULL )
----

query I rowsort
SELECT - - col2 * + 73 AS col1 FROM tab2 AS cor0
----
1679
2920
4234

query I rowsort
SELECT - 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT COUNT( * ) + - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
-62

skipif mysql # not compatible
query I rowsort label-1580
SELECT COUNT ( * ) + - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1581
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1581
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( col0 ) + + + col2 AS col0, + 32 FROM tab2 AS cor0
----
104
32
133
32
69
32

query II rowsort
SELECT ALL + + col1, col1 * - col1 * + + col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
14
-14892
47
-207207
5
-7140

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT + - MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1584
SELECT + - MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT - - MAX( ALL - CAST( - - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1585
SELECT - - MAX ( ALL - CAST ( - - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - ( + col2 ), - 90 AS col0 FROM tab1
----
-59
-90
-68
-90
-96
-90

query I rowsort
SELECT DISTINCT col0 * + ( + - 76 ) AS col1 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT - 63 * CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0
----
-567

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT - 63 * CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
-567

query II rowsort
SELECT DISTINCT - ( + + 65 ), col2 FROM tab2
----
-65
23
-65
40
-65
58

query I rowsort
SELECT DISTINCT + 89 * + 94 AS col1 FROM tab0
----
8366

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL MAX( + col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1592
SELECT ALL MAX ( + col0 ) col1 FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1593
SELECT + CAST( + + COUNT( * ) AS SIGNED ) col1, 35 FROM tab0
----
3
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1593
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) col1, 35 FROM tab0
----
3
35

query II rowsort
SELECT DISTINCT ( - col2 ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1597
SELECT DISTINCT - 63 * COUNT( * ) DIV + - 89 AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT - 63 * COUNT ( * ) / + - 89 AS col2 FROM tab0 AS cor0
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 25 * col2 > col1 / 93
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1599
SELECT ALL 27 DIV - - 72 - MIN( + 69 ) AS col0 FROM tab1, tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL 27 / - - 72 - MIN ( + 69 ) AS col0 FROM tab1, tab2 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT + col2 DIV + 68 + col1 FROM tab1
----
15
48
5

skipif mysql # not compatible
query I rowsort label-1600
SELECT + col2 / + 68 + col1 FROM tab1
----
15
48
5

query I rowsort
SELECT 37 + + col2 + - col2 FROM tab2
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT - col0 + col2 + + col1 DIV + - col2 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1602
SELECT - col0 + col2 + + col1 / + - col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT COUNT( * ) + - + 89 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-1603
SELECT COUNT ( * ) + - + 89 FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT - MAX( - + 77 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
77

skipif mysql # not compatible
query I rowsort label-1604
SELECT - MAX ( - + 77 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
77

query I rowsort
SELECT - + 84 AS col1 FROM tab2 cor0
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT - col2 DIV + 81 + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-77
1
32

skipif mysql # not compatible
query I rowsort label-1606
SELECT - col2 / + 81 + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-77
1
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT ALL MIN( - col2 ) * COUNT( * ) + 26 AS col1 FROM tab1 cor0
----
-262

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL MIN ( - col2 ) * COUNT ( * ) + 26 AS col1 FROM tab1 cor0
----
-262

query II rowsort
SELECT DISTINCT - ( - ( - 52 ) ) AS col0, + col1 * col1 FROM tab1 AS cor0
----
-52
196
-52
2209
-52
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1609
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1609
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96

query II rowsort
SELECT col1 AS col1, + 21 FROM tab0
----
1
21
21
21
81
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT ALL + 34 * - - COUNT( * ) + - 35 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL + 34 * - - COUNT ( * ) + - 35 FROM tab2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT COUNT( + - 15 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1612
SELECT COUNT ( + - 15 ) AS col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 60 col2 FROM tab0
----
-45
27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT 76 + + + ( + SUM( DISTINCT - + col2 ) ) AS col1 FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT 76 + + + ( + SUM ( DISTINCT - + col2 ) ) AS col1 FROM tab1
----
-147

query I rowsort
SELECT ALL col0 + + col2 + col1 + col0 * - 40 FROM tab1
----
-1879
-3251
-3434

query I rowsort
SELECT ALL col2 - + col0 + - 40 + - 2 * - 67 FROM tab0
----
126
17
96

query II rowsort
SELECT ALL - col0, 42 AS col0 FROM tab2
----
-46
42
-64
42
-75
42

query I rowsort
SELECT - 91 + - + 36 FROM tab0
----
-127
-127
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL - ( - 37 ) + 21 * - - CAST( + col2 AS SIGNED ) FROM tab0
----
1024
2116
247

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - ( - 37 ) + 21 * - - CAST ( + col2 AS INTEGER ) FROM tab0
----
1024
2116
247

query I rowsort
SELECT col2 + + col0 + - 36 FROM tab1
----
108
111
123

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col1 + - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT ALL - 18 - - CAST( + - 0 AS SIGNED ) + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-13
-4
29

skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - 18 - - CAST ( + - 0 AS INTEGER ) + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-13
-4
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1623
SELECT + SUM( - - ( + + col2 ) ) DIV + - COUNT( * ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-1623
SELECT + SUM ( - - ( + + col2 ) ) / + - COUNT ( * ) FROM tab1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1624
SELECT ALL + AVG ( ALL - CAST( NULL AS SIGNED ) ) + - - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 67 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 < + col2 * + 99 * + col2 + - col0 - + + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT - + COUNT( DISTINCT 72 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1628
SELECT - + COUNT ( DISTINCT 72 ) FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1629
SELECT COUNT( * ) AS col1, + COUNT( ALL - + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1629
SELECT COUNT ( * ) AS col1, + COUNT ( ALL - + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT ALL + - COUNT( * ) * + + 87 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL + - COUNT ( * ) * + + 87 FROM tab2 AS cor0
----
-261

query I rowsort
SELECT ALL col2 * 9 AS col1 FROM tab0 AS cor0
----
423
891
90

query I rowsort
SELECT DISTINCT ( - ( - - 18 ) ) AS col1 FROM tab1
----
-18

query II rowsort
SELECT col1 AS col1, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT + SUM( ALL - + col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1634
SELECT + SUM ( ALL - + col2 ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT ( NOT - col1 > - 60 )
----
-1
-21

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT DISTINCT + 29 * SUM( - - 59 ) FROM tab0
----
5133

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + 29 * SUM ( - - 59 ) FROM tab0
----
5133

query II rowsort
SELECT DISTINCT col2, 10 + - col1 FROM tab2
----
23
-41
40
-67
58
-57

query I rowsort
SELECT 54 AS col1 FROM tab1 WHERE NOT + col2 + - - col2 IS NULL
----
54
54
54

query I rowsort
SELECT - + ( + + 46 ) AS col1 FROM tab1 AS cor0
----
-46
-46
-46

query II rowsort
SELECT DISTINCT + - 95 AS col2, + col0 * + col0 * - col0 + - col1 + + ( - - 45 ) AS col0 FROM tab0 AS cor0
----
-95
-3411
-95
-658479
-95
-912629

query II rowsort
SELECT DISTINCT - 94, + col2 AS col0 FROM tab2 AS cor0
----
-94
23
-94
40
-94
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT ALL col0 + + col0 DIV + 48 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL col0 + + col0 / + 48 FROM tab1 AS cor0
----
52
86
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col1 <> NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + - 18 + + 70 FROM tab0 AS cor0
----
-47
42
5

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT MIN( DISTINCT + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1648
SELECT MIN ( DISTINCT + col1 ) FROM tab2
----
51

query III rowsort
SELECT * FROM tab1 WHERE ( 51 ) IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT + 91 * - col1 AS col0 FROM tab1
----
-1274
-4277
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT + 3 + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-1652
SELECT + 3 + + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * + col1 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT col0 + 89 FROM tab1
----
140
174
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT COUNT( * ) * CAST( 48 AS SIGNED ) col0 FROM tab1
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1655
SELECT COUNT ( * ) * CAST ( 48 AS INTEGER ) col0 FROM tab1
----
144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1656
SELECT col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT NULL < + 65
----

skipif mysql # not compatible
query I rowsort label-1656
SELECT col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT NULL < + 65
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1658
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 71 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT CAST ( NULL AS REAL ) * 71 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col0 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 WHERE ( col1 ) >= NULL
----

query I rowsort
SELECT ( - 18 ) FROM tab1
----
-18
-18
-18

query I rowsort
SELECT DISTINCT 79 * - 52 FROM tab2
----
-4108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT + 26 DIV COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT + 26 / COUNT ( * ) FROM tab1
----
8

query I rowsort
SELECT ALL col1 * - 51 AS col0 FROM tab1
----
-2397
-255
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL + col2 DIV 72 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL + col2 / 72 AS col2 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1666
SELECT - COUNT( * ) FROM tab0 WHERE NOT 82 * - col1 = + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 82 * - col1 = + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + col2 FROM tab1 WHERE col2 * + 44 IS NOT NULL
----
59
68
96

query I rowsort
SELECT 27 + + col0 * - 28 AS col2 FROM tab0
----
-2409
-2689
-393

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1669
SELECT CAST( NULL AS SIGNED ) - col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT CAST ( NULL AS INTEGER ) - col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col1 ) * - 65 FROM tab1 AS cor0
----
-3055
-325
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-1671
SELECT DISTINCT - col2 * - 44 - col1 DIV col0 FROM tab2 AS cor0
----
1011
1759
2552

skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT - col2 * - 44 - col1 / col0 FROM tab2 AS cor0
----
1011
1759
2552

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT ALL col0 DIV + 72 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL col0 / + 72 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT CAST( - col0 AS SIGNED ) - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-1673
SELECT CAST ( - col0 AS INTEGER ) - col0 AS col1 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL + COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1674
SELECT ALL + COUNT ( * ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-1675
SELECT COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1677
SELECT DISTINCT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1677
SELECT DISTINCT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * col0 col2 FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT MAX( DISTINCT col1 ) * - COUNT( * ) col2 FROM tab1 WHERE NULL BETWEEN col0 AND 74
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1679
SELECT DISTINCT MAX ( DISTINCT col1 ) * - COUNT ( * ) col2 FROM tab1 WHERE NULL BETWEEN col0 AND 74
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1680
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT + col0 + + 94 * - 47 BETWEEN NULL AND ( - col0 / - col1 + 91 )
----

skipif mysql # not compatible
query I rowsort label-1680
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT + col0 + + 94 * - 47 BETWEEN NULL AND ( - col0 / - col1 + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT + - 53 * COUNT( * ) FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1681
SELECT + - 53 * COUNT ( * ) FROM tab2 AS cor0
----
-159

query I rowsort
SELECT DISTINCT + ( - col0 ) * 45 FROM tab1 AS cor0
----
-2295
-3825
-4095

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL COUNT( + 14 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL COUNT ( + 14 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + col2 IS NULL
----
14
47
5

query I rowsort
SELECT 63 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1687
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) + 77 ) IN ( col0 - ( 99 ) )
----

skipif mysql # not compatible
query III rowsort label-1687
SELECT DISTINCT * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) + 77 ) IN ( col0 - ( 99 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT - MIN( + ( + 63 ) ) * 47 AS col0 FROM tab2
----
-2961

skipif mysql # not compatible
query I rowsort label-1688
SELECT - MIN ( + ( + 63 ) ) * 47 AS col0 FROM tab2
----
-2961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT ALL ( - + 32 ) AS col0 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT ALL + 63 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 54 FROM tab0 WHERE NOT ( + 25 * col0 ) IS NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + COUNT( * ) * + + 1 * + 10 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1693
SELECT + COUNT ( * ) * + + 1 * + 10 FROM tab2
----
30

query I rowsort
SELECT col1 + - 81 FROM tab2 WHERE NOT - col0 + + col1 * + 65 IS NOT NULL
----

query I rowsort
SELECT - col1 * + - col2 * col2 AS col0 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT MIN( DISTINCT + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1696
SELECT MIN ( DISTINCT + - col2 ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 0 + 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT ALL - MAX( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1698
SELECT ALL - MAX ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT DISTINCT MAX( ALL - 28 ) AS col2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT MAX ( ALL - 28 ) AS col2 FROM tab1 AS cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 + 93 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 / + col0 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT ALL + CAST( NULL AS SIGNED ) + + 62 / 58 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + CAST ( NULL AS INTEGER ) + + 62 / 58 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT MAX( + col1 ) * + MIN( col0 ) + + MAX( ALL col1 ) FROM tab1
----
2444

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT MAX ( + col1 ) * + MIN ( col0 ) + + MAX ( ALL col1 ) FROM tab1
----
2444

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT 82 + + MAX( 25 ) * COUNT( * ) col2 FROM tab2, tab0 AS cor0 WHERE - 37 BETWEEN + 12 AND ( NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1705
SELECT DISTINCT 82 + + MAX ( 25 ) * COUNT ( * ) col2 FROM tab2, tab0 AS cor0 WHERE - 37 BETWEEN + 12 AND ( NULL )
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * - - col1 + + - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT ALL ( + 80 ) * col2 FROM tab2 AS cor0
----
1840
3200
4640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( ( - 21 ) + col0 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT 97 * COUNT( * ) FROM tab2 AS cor0 WHERE 67 BETWEEN ( NULL ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT 97 * COUNT ( * ) FROM tab2 AS cor0 WHERE 67 BETWEEN ( NULL ) AND col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT ALL + COUNT( - col2 ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + COUNT ( - col2 ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT + col0 * - ( 50 ) AS col1 FROM tab1 AS cor0 WHERE 20 IN ( - - 91 )
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 * col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT - 50 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + col2 * - 64 )
----
-50

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE ( col2 - - + 39 ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT col1 - - + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1719
SELECT col1 - - + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL - 85 * - - 97 + + COUNT( * ) + + 58 FROM tab2 AS cor0
----
-8184

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - 85 * - - 97 + + COUNT ( * ) + + 58 FROM tab2 AS cor0
----
-8184

query I rowsort
SELECT col2 - - 63 * + 80 FROM tab1 AS cor0
----
5099
5108
5136

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT COUNT( * ) - 54 * + 76 FROM tab1
----
-4101

skipif mysql # not compatible
query I rowsort label-1722
SELECT COUNT ( * ) - 54 * + 76 FROM tab1
----
-4101

onlyif mysql # DIV for integer division: 
query II rowsort label-1723
SELECT ALL col0 DIV + + col0 AS col1, col0 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-1723
SELECT ALL col0 / + + col0 AS col1, col0 FROM tab2
----
1
46
1
64
1
75

query II rowsort
SELECT ALL col2 + + - 64, + col2 AS col0 FROM tab1
----
-5
59
32
96
4
68

query I rowsort
SELECT DISTINCT 16 - - col2 FROM tab0
----
115
26
63

query III rowsort
SELECT * FROM tab2 WHERE + ( - col2 ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT + COUNT( * ) + - - CAST( + MIN( ALL col2 ) AS SIGNED ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + COUNT ( * ) + - - CAST ( + MIN ( ALL col2 ) AS INTEGER ) FROM tab2
----
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 / + col1 * + 91 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) <> - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + col2 * col1 FROM tab0 WHERE NOT - col0 IS NULL
----
196
297
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - COUNT( * ) FROM tab2 WHERE 95 >= + col1 + + col2
----
-1

skipif mysql # not compatible
query I rowsort label-1731
SELECT - COUNT ( * ) FROM tab2 WHERE 95 >= + col1 + + col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1732
SELECT * FROM tab2 AS cor0 WHERE 62 NOT BETWEEN ( 35 * + CAST( NULL AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1732
SELECT * FROM tab2 AS cor0 WHERE 62 NOT BETWEEN ( 35 * + CAST ( NULL AS INTEGER ) ) AND ( NULL )
----

query I rowsort
SELECT 17 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - - col2 - 91 - + col2 AS col2 FROM tab0 AS cor0
----
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND ( col1 + + col1 / 43 )
----

query I rowsort
SELECT 63 * + ( + ( + col2 ) ) FROM tab1 cor0
----
3717
4284
6048

query I rowsort
SELECT - + 64 FROM tab2 cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT DISTINCT - COUNT( 39 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1738
SELECT DISTINCT - COUNT ( 39 ) col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 81 >= + ( - - 71 ) + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT + 13 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 13 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 69 + - 38 + col0 / + 18 + 81 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( col1 ) * + col0 FROM tab1 cor0 WHERE NOT + col1 / - col0 NOT BETWEEN NULL AND - ( - + col2 ) * - 12
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT ALL - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1743
SELECT ALL - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1744
SELECT + - COUNT ( * ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL - - ( + + COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL - - ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT - MIN( DISTINCT col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1746
SELECT - MIN ( DISTINCT col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT ALL + MAX( col2 ) + + + 48 - + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL + MAX ( col2 ) + + + 48 - + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT 12 + + 80 * + col1 - col1 AS col2 FROM tab2
----
4041
5305
6095

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 15
----

query I rowsort
SELECT ALL ( - col2 ) + - ( ( - col2 ) ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1752
SELECT ALL * FROM tab0 WHERE - col0 IN ( CAST( col1 AS SIGNED ) - - 94 )
----

skipif mysql # not compatible
query III rowsort label-1752
SELECT ALL * FROM tab0 WHERE - col0 IN ( CAST ( col1 AS INTEGER ) - - 94 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 17 < + - col2 + + 29 + - + 32 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 32 * - + 95 NOT BETWEEN - 34 * col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1756
SELECT ALL 17, ( + CAST( col0 AS SIGNED ) ) * - 17 AS col2 FROM tab1 AS cor0
----
17
-1445
17
-1547
17
-867

skipif mysql # not compatible
query II rowsort label-1756
SELECT ALL 17, ( + CAST ( col0 AS INTEGER ) ) * - 17 AS col2 FROM tab1 AS cor0
----
17
-1445
17
-1547
17
-867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1757
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 62 - 23 - + col0 / - col1 + - col0 * ( CAST( + col0 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1757
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 62 - 23 - + col0 / - col1 + - col0 * ( CAST ( + col0 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + ( + - 21 ) FROM tab2 AS cor0
----
-21
-21
-21

query II rowsort
SELECT DISTINCT col1, + col2 + + col0 AS col0 FROM tab0 AS cor0
----
1
196
21
97
81
62

query I rowsort
SELECT + - 17 * + 28 FROM tab0 cor0
----
-476
-476
-476

query I rowsort
SELECT DISTINCT - - 97 + + + col0 FROM tab2 cor0
----
143
161
172

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 73 IN ( - col2 * 79 * + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT + - COUNT( * ) + + + 88 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1764
SELECT + - COUNT ( * ) + + + 88 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1766
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 NOT IN ( - ( + CAST( col1 AS SIGNED ) ) - + 63 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1766
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - col2 NOT IN ( - ( + CAST ( col1 AS INTEGER ) ) - + 63 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT - 44 + ( - col0 ) / col0 col0 FROM tab2 AS cor0 WHERE NOT + col2 + 57 / CAST( + col2 AS SIGNED ) * col0 + + 69 NOT BETWEEN 77 AND + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT DISTINCT - 44 + ( - col0 ) / col0 col0 FROM tab2 AS cor0 WHERE NOT + col2 + 57 / CAST ( + col2 AS INTEGER ) * col0 + + 69 NOT BETWEEN 77 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1768
SELECT + + 87 DIV + col0 + col0 + - col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1768
SELECT + + 87 / + col0 + col0 + - col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - ( + - ( + - col0 ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT + - 94 * COUNT( * ) FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT + - 94 * COUNT ( * ) FROM tab2 AS cor0
----
-282

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 9 - + ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + COUNT( - col1 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1772
SELECT + COUNT ( - col1 ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 52 IS NOT NULL
----

query I rowsort
SELECT ( + + 1 ) / - col1 / + 2 + - - col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col1 - 23 FROM tab1
----
-18
-9
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT ALL col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT ALL col2 * + 79 * + col2 DIV - col2 AS col2 FROM tab2
----
-1817
-3160
-4582

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL col2 * + 79 * + col2 / - col2 AS col2 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT DISTINCT ( - col2 ) * - - col0 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - - ( + ( - 55 ) ) FROM tab1 AS cor0
----
-55

query I rowsort
SELECT - ( - 52 ) AS col0 FROM tab0 AS cor0
----
52
52
52

query II rowsort
SELECT DISTINCT + col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT + + col0 DIV - 95 + - - 80 * ( col2 ) FROM tab0 AS cor0
----
3760
7919
800

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + + col0 / - 95 + - - 80 * ( col2 ) FROM tab0 AS cor0
----
3760
7919
800

query I rowsort
SELECT DISTINCT 17 * - col0 AS col0 FROM tab2 AS cor0
----
-1088
-1275
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT - + MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - + MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + AVG ( col1 ) + - 96 FROM tab0 WHERE NOT + 1 <> NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > + ( - + 36 )
----

query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 99 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 * - col0 col2 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1791
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - MIN( - 73 ) AS col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1792
SELECT - MIN ( - 73 ) AS col1 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT + ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1793
SELECT + ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 99 + + - 11 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 > col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1797
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col1 * - col2 + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
2
2
2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 40 FROM tab0 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT MAX( 37 ) AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT MAX ( 37 ) AS col2 FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + MAX( ALL 65 ) col1 FROM tab0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT + MAX ( ALL 65 ) col1 FROM tab0
----
65

query I rowsort
SELECT DISTINCT col2 * ( - col1 ) + col2 FROM tab1
----
-1248
-236
-3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col1 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT DISTINCT 74 * - MIN( - 82 ) + + MIN( ALL 59 ) AS col1, 54 FROM tab0
----
6127
54

skipif mysql # not compatible
query II rowsort label-1806
SELECT DISTINCT 74 * - MIN ( - 82 ) + + MIN ( ALL 59 ) AS col1, 54 FROM tab0
----
6127
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT + 18 DIV - + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + 18 / - + col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL - 84 DIV col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - 84 / col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT MAX( - 36 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-1811
SELECT MAX ( - 36 ) FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1812
SELECT - COUNT ( * ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1814
SELECT ALL + 49 * 74 + - col0 DIV col0 AS col2 FROM tab0 cor0
----
3625
3625
3625

skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL + 49 * 74 + - col0 / col0 AS col2 FROM tab0 cor0
----
3625
3625
3625

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1815
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - - + 33 < + 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT + col1 - - col1 - + ( + 70 ) + + col2 AS col1 FROM tab1 AS cor0
----
-1
54
92

query I rowsort
SELECT - + col1 * + 96 - - col0 AS col2 FROM tab2 AS cor0
----
-4850
-6357
-7328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT + + CAST( - ( 48 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) - - COUNT( * ) + - 71 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1822
SELECT + + CAST ( - ( 48 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - 71 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT col2 + + + col2 + + CAST( + col1 AS SIGNED ) col1 FROM tab0
----
175
199
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1823
SELECT col2 + + + col2 + + CAST ( + col1 AS INTEGER ) col1 FROM tab0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT DISTINCT MIN( DISTINCT + + 30 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT MIN ( DISTINCT + + 30 ) FROM tab2
----
30

query I rowsort
SELECT DISTINCT + 84 * - col0 AS col1 FROM tab1
----
-4284
-7140
-7644

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1827
SELECT * FROM tab2 WHERE NOT col2 * - + 57 NOT IN ( - CAST( - + col2 AS SIGNED ) * + + col1 )
----

skipif mysql # not compatible
query III rowsort label-1827
SELECT * FROM tab2 WHERE NOT col2 * - + 57 NOT IN ( - CAST ( - + col2 AS INTEGER ) * + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT + SUM( DISTINCT col1 ) * SUM( ALL - 96 ) * COUNT( * ) - + + COUNT( ALL - + col2 ) AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1828
SELECT + SUM ( DISTINCT col1 ) * SUM ( ALL - 96 ) * COUNT ( * ) - + + COUNT ( ALL - + col2 ) AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) >= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT DISTINCT + MAX( ALL + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1829
SELECT DISTINCT + MAX ( ALL + col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT COUNT( * ), - 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-86

skipif mysql # not compatible
query II rowsort label-1830
SELECT COUNT ( * ), - 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 41 col0 FROM tab1 cor0
----
-41
-41
-41

query II rowsort
SELECT ALL + col0 AS col0, 25 AS col2 FROM tab0 AS cor0
----
15
25
87
25
97
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT col2 DIV + 27 FROM tab1 cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-1833
SELECT col2 / + 27 FROM tab1 cor0
----
2
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1835
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 col1 FROM tab2 AS cor0
----
-56

query II rowsort
SELECT - col0 AS col0, 36 FROM tab2 AS cor0
----
-46
36
-64
36
-75
36

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE col0 + - 9 + - col1 * - col2 BETWEEN NULL AND - col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + 36 + + + COUNT( * ) * - + MAX( + col2 ) FROM tab0 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 36 + + + COUNT ( * ) * - + MAX ( + col2 ) FROM tab0 cor0
----
-261

query I rowsort
SELECT + - col0 + ( + - 57 ) * - col1 AS col0 FROM tab1 AS cor0
----
200
2588
747

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( ( - col1 ) ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL 82 * COUNT( col1 ) AS col0 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 82 * COUNT ( col1 ) AS col0 FROM tab2
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT + COUNT( col0 ) + + - 56 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-1843
SELECT + COUNT ( col0 ) + + - 56 FROM tab2
----
-53

query II rowsort
SELECT DISTINCT + col2, + ( + col1 ) AS col0 FROM tab2 WHERE + - ( + col1 ) * - - 95 + col2 BETWEEN NULL AND col2 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT - 9 + MAX( - - 44 ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-1845
SELECT - 9 + MAX ( - - 44 ) AS col1 FROM tab0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1846
SELECT ALL + 57 + + - 13 DIV - CAST( MAX( ALL - + col0 ) AS SIGNED ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + 57 + + - 13 / - CAST ( MAX ( ALL - + col0 ) AS INTEGER ) AS col0 FROM tab2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT DISTINCT - MIN( - 85 ) + + MAX( + + col2 ) FROM tab1
----
181

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT - MIN ( - 85 ) + + MAX ( + + col2 ) FROM tab1
----
181

query I rowsort
SELECT + + 97 FROM tab0 WHERE NULL IS NULL
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT SUM( + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-1849
SELECT SUM ( + col0 ) FROM tab2
----
185

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1850
SELECT + 57 * + col2 + - + 88 + col2 + + - col2 * - col1 * - col2 * + col1 DIV - - CAST( col1 AS SIGNED ) + - ( ( + - col2 ) ) * + 58 AS col2 FROM tab0 AS cor0
----
-1028
-173565
1595

skipif mysql # not compatible
query I rowsort label-1850
SELECT + 57 * + col2 + - + 88 + col2 + + - col2 * - col1 * - col2 * + col1 / - - CAST ( col1 AS INTEGER ) + - ( ( + - col2 ) ) * + 58 AS col2 FROM tab0 AS cor0
----
-1028
-173565
1595

query I rowsort
SELECT + 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query III rowsort
SELECT * FROM tab2 WHERE - 51 * + col2 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT col0 + + - col1 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT ALL - col2 - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1855
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1856
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST( 2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1856
SELECT * FROM tab2 AS cor0 WHERE NULL <= CAST ( 2 AS INTEGER )
----

query I rowsort
SELECT + col2 + + - 67 AS col1 FROM tab1 AS cor0
----
-8
1
29

query I rowsort
SELECT DISTINCT 47 + + 45 AS col2 FROM tab0 AS cor0
----
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 51 <= col0 / + + 81 + 41 + + col0 + - col2 * + 29 + + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT - - COUNT( * ) - - 5 AS col2 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - - COUNT ( * ) - - 5 AS col2 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT ( + 43 ) * - 27 + 88 + + + 26 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + 60 AND - col0
----

query II rowsort
SELECT ALL - + col1 AS col1, 45 * 63 FROM tab1 cor0
----
-14
2835
-47
2835
-5
2835

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + + MAX( ALL col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1863
SELECT + + MAX ( ALL col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT + - MIN( + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT + - MIN ( + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT col2 > + col2
----
10
47
99

query I rowsort
SELECT DISTINCT - 54 FROM tab0 cor0
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-1867
SELECT DISTINCT - COUNT( * ) AS col0, 30 AS col0 FROM tab2 AS cor0
----
-3
30

skipif mysql # not compatible
query II rowsort label-1867
SELECT DISTINCT - COUNT ( * ) AS col0, 30 AS col0 FROM tab2 AS cor0
----
-3
30

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT + MAX( ALL - CAST( - - col0 AS SIGNED ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1869
SELECT + MAX ( ALL - CAST ( - - col0 AS INTEGER ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT - 21 * + SUM( + + 23 ) FROM tab0
----
-1449

skipif mysql # not compatible
query I rowsort label-1870
SELECT - 21 * + SUM ( + + 23 ) FROM tab0
----
-1449

query I rowsort
SELECT + col1 * 82 AS col1 FROM tab0
----
1722
6642
82

query II rowsort
SELECT ALL 59 AS col2, - col0 * - + col1 * col1 FROM tab1 AS cor0
----
59
201019
59
2125
59
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT COUNT( ALL - - 58 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1873
SELECT COUNT ( ALL - - 58 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1874
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) / col0 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-1874
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) / col0 IS NOT NULL
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col2 ) * col0 * - 23 col0 FROM tab1 AS cor0
----
112608
115345
142324

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT - + SUM( ALL - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT - + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT ALL + - col0 * + col1 * + - 55 + + 10 + - col2 * 16 - - 30 DIV + + 36 FROM tab1 AS cor0
----
22441
234157
37744

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL + - col0 * + col1 * + - 55 + + 10 + - col2 * 16 - - 30 / + + 36 FROM tab1 AS cor0
----
22441
234157
37744

query III rowsort
SELECT ALL * FROM tab1 WHERE 3 <> 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 96 + - - 54 AS col1 FROM tab1
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 * + - col0 col2 FROM tab0
----
-624
-849
-9602

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1884
SELECT ALL - COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL - MIN( + col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL - MIN ( + col1 ) FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT - 85 DIV + ( + col1 ) + + col0 - + col2 DIV - col2 FROM tab0
----
13
15
84

skipif mysql # not compatible
query I rowsort label-1886
SELECT - 85 / + ( + col1 ) + + col0 - + col2 / - col2 FROM tab0
----
13
15
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT ALL + COUNT( * ) + + 97 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + COUNT ( * ) + + 97 FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL SUM( ALL + - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL SUM ( ALL + - col0 ) AS col1 FROM tab0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT DISTINCT col0 + + - col0 * + ( + col0 ) FROM tab1 AS cor0
----
-2550
-7140
-8190

query I rowsort
SELECT - col2 + + - col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT col2 + + - col0 AS col1 FROM tab2 cor0
----
-17
-23
-24

query II rowsort
SELECT col1 * - col2, col2 AS col2 FROM tab1
----
-1344
96
-295
59
-3196
68

query III rowsort
SELECT * FROM tab2 WHERE - + col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT DISTINCT + + MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT + + MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col0 * - 12 * 22 AS col1 FROM tab2 AS cor0
----
-12144
-16896
-19800

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0, - col0 * - 6 / - + 70, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - SUM( - + 2 ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1899
SELECT - SUM ( - + 2 ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT - - ( + col1 ) DIV - col0 + + 13 AS col1 FROM tab2 cor0
----
12
12
13

skipif mysql # not compatible
query I rowsort label-1901
SELECT - - ( + col1 ) / - col0 + + 13 AS col1 FROM tab2 cor0
----
12
12
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT ALL - MIN( ALL - col0 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - MIN ( ALL - col0 ) AS col1 FROM tab1 cor0
----
91

query I rowsort
SELECT ( - col0 ) * - 54 * 11 FROM tab1
----
30294
50490
54054

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 * - ( - 71 ), col1 AS col2 FROM tab2
----
1633
51
2840
77
4118
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT - col0 DIV + - 91 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1906
SELECT - col0 / + - 91 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT CAST( NULL AS SIGNED ) * - 96 / + + 33 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT CAST ( NULL AS INTEGER ) * - 96 / + + 33 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * - 7 FROM tab2
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1910
SELECT * FROM tab2 WHERE NOT NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1910
SELECT * FROM tab2 WHERE NOT NULL <= + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 41, + col0 * - - 53 + 41 AS col2 FROM tab2 AS cor0
----
41
2479
41
3433
41
4016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT ALL CAST( + - col0 AS SIGNED ) * + 39 AS col1 FROM tab2 AS cor0
----
-1794
-2496
-2925

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL CAST ( + - col0 AS INTEGER ) * + 39 AS col1 FROM tab2 AS cor0
----
-1794
-2496
-2925

query II rowsort
SELECT DISTINCT + col2 * - col1 AS col1, 98 FROM tab2
----
-1173
98
-3080
98
-3886
98

query I rowsort
SELECT DISTINCT - 24 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-24

query I rowsort
SELECT ALL col1 / + ( + col0 ) FROM tab0 WHERE - col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 19 * - + col1 col0 FROM tab0 AS cor0
----
-1539
-19
-399

query I rowsort
SELECT + col0 + + 6 FROM tab1 AS cor0
----
57
91
97

query I rowsort
SELECT 3 + - col0 AS col1 FROM tab0 AS cor0
----
-12
-84
-94

query I rowsort
SELECT + - col2 + 7 AS col2 FROM tab0 AS cor0
----
-3
-40
-92

query I rowsort
SELECT + - col1 + - - 61 + col1 FROM tab2 AS cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL ( + MAX( + 97 ) ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL ( + MAX ( + 97 ) ) FROM tab1 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT DISTINCT - - col2 * - - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT + 85 / - + col2 + 20 - 79 * - CAST( + col1 AS SIGNED ) + col2 + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT - - col2 * - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT + 85 / - + col2 + 20 - 79 * - CAST ( + col1 AS INTEGER ) + col2 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT - COUNT( - - col1 ) * - COUNT( * ) + - - 49 + + 97 AS col0 FROM tab2 cor0
----
155

skipif mysql # not compatible
query I rowsort label-1924
SELECT - COUNT ( - - col1 ) * - COUNT ( * ) + - - 49 + + 97 AS col0 FROM tab2 cor0
----
155

query I rowsort
SELECT + 73 + col2 * + 44 * 83 FROM tab2 AS cor0
----
146153
211889
84069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 51 * col2 * - + col1 col0 FROM tab2 AS cor0
----
-157144
-198261
-59869

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + 16 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( 60 ) < + col1
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 + + col2 col2 FROM tab2 WHERE col1 <= 97 - + 49 + + + col2 * col1
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 * - 5 * col0 AS col1 FROM tab1 AS cor0
----
-2125
-21385
-3570

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 + col1 >= - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - MIN( - - 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1934
SELECT - MIN ( - - 62 ) FROM tab0 AS cor0
----
-62

query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab0 AS cor0 WHERE - col0 >= - 90
----
162
42

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT NULL <= 61 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1937
SELECT DISTINCT - col2 DIV + CAST( - + col1 AS SIGNED ) + - 21 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT - col2 / + CAST ( - + col1 AS INTEGER ) + - 21 FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL + 51 + - + COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + 51 + - + COUNT ( * ) AS col2 FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT ALL 61 / + CAST( NULL AS SIGNED ) + + - AVG ( + - col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL 61 / + CAST ( NULL AS INTEGER ) + + - AVG ( + - col1 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - 81 AND NULL
----

query I rowsort
SELECT ALL + col1 * + 47 AS col2 FROM tab1
----
2209
235
658

query II rowsort
SELECT col2, col0 + col0 FROM tab0 AS cor0
----
10
174
47
30
99
194

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL MIN( + - col1 ) * - - MAX( + col1 ) AS col1 FROM tab1 AS cor0
----
-2209

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL MIN ( + - col1 ) * - - MAX ( + col1 ) AS col1 FROM tab1 AS cor0
----
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 26 * - + col2 * ( - - col1 ) FROM tab1
----
-34944
-7670
-83096

query I rowsort
SELECT DISTINCT col1 * - 21 FROM tab0
----
-1701
-21
-441

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT - col2 DIV - 57 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1947
SELECT - col2 / - 57 AS col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + col2 col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT 67 DIV 14 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1949
SELECT 67 / 14 FROM tab1
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL COUNT( * ) * 10 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-1950
SELECT ALL COUNT ( * ) * 10 FROM tab2
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL col0 AS col1, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT 50 * + 83 AS col0 FROM tab0
----
4150
4150
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1954
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT + - MIN( DISTINCT + 90 ) FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-1957
SELECT + - MIN ( DISTINCT + 90 ) FROM tab2 AS cor0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + - 14 col2 FROM tab1
----
45
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - COUNT( * ) - + + 32 * + + MIN( 48 ) FROM tab0
----
-1539

skipif mysql # not compatible
query I rowsort label-1959
SELECT - COUNT ( * ) - + + 32 * + + MIN ( 48 ) FROM tab0
----
-1539

query I rowsort
SELECT + ( + + 20 ) - col2 FROM tab1
----
-39
-48
-76

query I rowsort
SELECT 96 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col0 * + col1 * + col1 AND NULL OR + - col1 IS NOT NULL
----
96
96
96

query I rowsort
SELECT ALL col2 + - + 50 + + 88 + - col0 + + 95 AS col1 FROM tab1
----
107
110
178

query I rowsort
SELECT - col1 + col0 * - + col0 AS col2 FROM tab1
----
-2615
-7230
-8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT - CAST( NULL AS SIGNED ) + + 40 + - 67 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT - CAST ( NULL AS INTEGER ) + + 40 + - 67 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT + col0 * col0 DIV col2 - + ( col2 ) FROM tab2
----
38
62
69

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + col0 * col0 / col2 - + ( col2 ) FROM tab2
----
38
62
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1966
SELECT ALL 25 + - ( - 81 ) DIV col2 + col2 * - 18 FROM tab0 AS cor0
----
-147
-1757
-820

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 25 + - ( - 81 ) / col2 + col2 * - 18 FROM tab0 AS cor0
----
-147
-1757
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT ALL + + COUNT( - col2 ) + + + 41 col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1967
SELECT ALL + + COUNT ( - col2 ) + + + 41 col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
41

query I rowsort
SELECT - col2 * - + 16 FROM tab2 AS cor0
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + - MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1969
SELECT + - MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1970
SELECT ALL + col2 AS col2, + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1970
SELECT ALL + col2 AS col2, + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1971
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / + - 38 + CAST( NULL AS SIGNED ) NOT BETWEEN 36 AND + 26 + + - CAST( - - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1971
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / + - 38 + CAST ( NULL AS INTEGER ) NOT BETWEEN 36 AND + 26 + + - CAST ( - - col2 AS INTEGER )
----

query I rowsort
SELECT 3 * + - 44 * - col2 FROM tab2
----
3036
5280
7656

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

query I rowsort
SELECT DISTINCT - 1 AS col1 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1976
SELECT - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 70 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1978
SELECT - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1979
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT ALL - + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1982
SELECT DISTINCT + - 21 + - ( + - AVG ( - - col2 ) ) FROM tab0 AS cor0 WHERE - col1 * - - col2 + - CAST( - col1 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT + - 21 + - ( + - AVG ( - - col2 ) ) FROM tab0 AS cor0 WHERE - col1 * - - col2 + - CAST ( - col1 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT ALL - ( - ( - + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - ( - ( - + COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL 23 * + col1 * - + col2 AS col1 FROM tab1
----
-30912
-6785
-73508

query I rowsort
SELECT 64 * - col1 FROM tab1
----
-3008
-320
-896

query III rowsort
SELECT * FROM tab0 WHERE - 39 IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT + SUM( ALL + col0 ) * + + COUNT( * ) AS col1 FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-1987
SELECT + SUM ( ALL + col0 ) * + + COUNT ( * ) AS col1 FROM tab2
----
555

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN - col2 AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT ALL - col0 DIV + 94 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL - col0 / + 94 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 10 AS col1, col2 col1 FROM tab2
----
10
23
10
40
10
58

query II rowsort
SELECT - + col1, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT + + COUNT( 91 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1993
SELECT + + COUNT ( 91 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 92 * - col0 * - 26 AS col1, - col1 + col2 FROM tab2 AS cor0
----
110032
-28
153088
-37
179400
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT COUNT( * ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1995
SELECT DISTINCT COUNT ( * ) col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT + + 62 * - MIN( ALL - ( - 7 ) ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-437

skipif mysql # not compatible
query I rowsort label-1997
SELECT + + 62 * - MIN ( ALL - ( - 7 ) ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-437

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT 29 * - COUNT( * ) * + - MIN( DISTINCT ( + 85 ) ) + + 88 + + COUNT( * ) FROM tab2 AS cor0
----
7486

skipif mysql # not compatible
query I rowsort label-1999
SELECT 29 * - COUNT ( * ) * + - MIN ( DISTINCT ( + 85 ) ) + + 88 + + COUNT ( * ) FROM tab2 AS cor0
----
7486

query I rowsort
SELECT ALL + - 38 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - 10 + + + col1 FROM tab1 AS cor0
----
-5
37
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col2 FROM tab2 AS cor0 WHERE NOT - col0 * col1 + ( + - 10 ) BETWEEN NULL AND + + 26
----

query I rowsort
SELECT ALL + 50 * - col1 + + ( - 43 ) FROM tab1
----
-2393
-293
-743

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2004
SELECT ALL * FROM tab1 WHERE NOT - + CAST( NULL AS DECIMAL ) * - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2004
SELECT ALL * FROM tab1 WHERE NOT - + CAST ( NULL AS REAL ) * - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT DISTINCT + COUNT( * ) + + - ( - 96 ) + + 79 FROM tab1
----
178

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + COUNT ( * ) + + - ( - 96 ) + + 79 FROM tab1
----
178

query I rowsort
SELECT DISTINCT col2 + - + 73 - + col0 * col0 * - col0 + + - col1 FROM tab0
----
3268
658419
912698

query II rowsort
SELECT ALL col2 * + col0 + + 28, - 81 AS col2 FROM tab0
----
733
-81
898
-81
9631
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2008
SELECT ALL + col1 * - col1 - col0 - - - 69 * - 53 * col0 + + CAST( + col0 AS SIGNED ) AS col0, + ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
165621
NULL
228119
NULL
269786
NULL

skipif mysql # not compatible
query II rowsort label-2008
SELECT ALL + col1 * - col1 - col0 - - - 69 * - 53 * col0 + + CAST ( + col0 AS INTEGER ) AS col0, + ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
165621
NULL
228119
NULL
269786
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + 63 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - - col0 col1 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2012
SELECT - col2 * + ( + - ( - col1 ) ) + - 71, - CAST( + col1 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
-1244
-5
-3151
-13
-3957
8

skipif mysql # not compatible
query II rowsort label-2012
SELECT - col2 * + ( + - ( - col1 ) ) + - 71, - CAST ( + col1 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
-1244
-5
-3151
-13
-3957
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + 36 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 69 * + col2 FROM tab2
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - SUM( + col0 ) col2 FROM tab0 cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2019
SELECT - SUM ( + col0 ) col2 FROM tab0 cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT DISTINCT + - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - - COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2021
SELECT - - COUNT ( * ) col1 FROM tab0 cor0
----
3

query II rowsort
SELECT - + col1 AS col0, 23 AS col2 FROM tab0 AS cor0
----
-1
23
-21
23
-81
23

query II rowsort
SELECT ALL + + col1 AS col1, 5 FROM tab0 AS cor0
----
1
5
21
5
81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT 4 * + 48 + - + COUNT( * ) - COUNT( - ( + 29 ) ) - + COUNT( * ) FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 4 * + 48 + - + COUNT ( * ) - COUNT ( - ( + 29 ) ) - + COUNT ( * ) FROM tab1 AS cor0
----
183

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 < - col1 * + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + - 53 AS col0 FROM tab2
----
-13
-30
5

query I rowsort
SELECT + col2 * - - col1 AS col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT + + COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT ALL 47 DIV + col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT ALL 47 / + col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 0 * - col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT + - COUNT( ALL - 52 ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT + - COUNT ( ALL - 52 ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL COUNT( * ) + + ( MAX( ALL col2 ) ) FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL COUNT ( * ) + + ( MAX ( ALL col2 ) ) FROM tab2 cor0
----
61

query I rowsort
SELECT ALL + 81 + - 61 FROM tab1
----
20
20
20

query II rowsort
SELECT ALL col2, col2 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT - col1 * col0 * 75 AS col1, - col1 + - ( - - ( + + col2 ) ) + + col0 * - + 28 FROM tab0
----
-137025
-2467
-7275
-2816
-91125
-548

query I rowsort
SELECT ALL + - 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT - - 17 + + COUNT( ALL 89 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
26

skipif mysql # not compatible
query I rowsort label-2037
SELECT - - 17 + + COUNT ( ALL 89 ) FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 AS col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT 6 * - - col0 AS col1 FROM tab1 AS cor0
----
306
510
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 * + col2 col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + + - col0 * - col0 + - col2 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT + 72 + ( - COUNT( * ) ) AS col2 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2043
SELECT + 72 + ( - COUNT ( * ) ) AS col2 FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 2 * - 40 - + - col0 * col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 2 * - 40 - + - col0 * col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 88 + + ( - col2 ) AS col0 FROM tab1
----
-8
20
29

query III rowsort
SELECT * FROM tab1 WHERE col2 IS NULL
----

query II rowsort
SELECT ALL + 59 AS col2, 79 * + 25 FROM tab2 WHERE - + col0 IS NOT NULL
----
59
1975
59
1975
59
1975

query I rowsort
SELECT - ( - + ( + 30 ) ) FROM tab0
----
30
30
30

query I rowsort
SELECT ALL 52 AS col2 FROM tab2 cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 WHERE + ( + col2 ) + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col0 * - 16 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT COUNT( * ) * + - 14 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) * + - 14 FROM tab1
----
-42

query I rowsort
SELECT DISTINCT ( + 75 ) FROM tab1
----
75

query II rowsort
SELECT DISTINCT - 61 AS col1, + 70 + + 64 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-61
134

query I rowsort
SELECT ALL + - ( + col2 ) AS col1 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 + + - 34 * ( + col1 ) >= - 7 * - CAST( + - col2 AS SIGNED )
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-2058
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 + + - 34 * ( + col1 ) >= - 7 * - CAST ( + - col2 AS INTEGER )
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) > + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col0 * + 63 AS col2 FROM tab1 AS cor0
----
-3213
-5355
-5733

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL < - col0 + - col0 / - + 98 * + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2062
SELECT + CAST( 47 AS SIGNED ) FROM tab0 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-2062
SELECT + CAST ( 47 AS INTEGER ) FROM tab0 AS cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - - MIN( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - - MIN ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-97

query II rowsort
SELECT + col1 AS col2, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col2 * - col1 col0 FROM tab2 AS cor0
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2066
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 + - CAST( - + col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2066
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 + - CAST ( - + col0 AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL - ( 42 ) + + col1 AS col1 FROM tab2
----
25
35
9

query I rowsort
SELECT + - col2 + + ( + - col0 ) FROM tab0 WHERE NOT + + 59 IS NULL
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT DISTINCT - COUNT( * ) + - - ( - 79 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - COUNT ( * ) + - - ( - 79 ) FROM tab1
----
-82

query I rowsort
SELECT DISTINCT - col2 * + + col2 * + col2 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2071
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab0 WHERE + 86 - - col0 * + col0 * - - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT - CAST ( NULL AS REAL ) col2 FROM tab0 WHERE + 86 - - col0 * + col0 * - - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + - col1 * - - 22, 99 - + - col2 col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ( 72 ) * col2 FROM tab0 WHERE ( + col0 IS NULL )
----

query I rowsort
SELECT - col2 * + + col2 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT ALL + MIN( - 81 ) * COUNT( * ) AS col0, 70 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL
70

skipif mysql # not compatible
query II rowsort label-2076
SELECT ALL + MIN ( - 81 ) * COUNT ( * ) AS col0, 70 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
NULL
70

query I rowsort
SELECT + + ( + 78 ) * - - col0 AS col2 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - + col0 * - col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 26 - col0 > - col1
----

query I rowsort
SELECT DISTINCT - col2 * - - 37 * + col1 FROM tab2 AS cor0
----
-113960
-143782
-43401

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2082
SELECT COUNT ( * ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 94 + col0 AS col0 FROM tab0 AS cor0
----
-7
-79
3

query I rowsort
SELECT DISTINCT + 31 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT + 40 / - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + 40 / - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT ALL + + col0 * - - 11 * - + col0, - 45 AS col0 FROM tab0 AS cor0
----
-103499
-45
-2475
-45
-83259
-45

query I rowsort
SELECT - col1 * - col2 * + + col2 + + col2 FROM tab0 AS cor0
----
178976
2110
9900

query I rowsort
SELECT - - ( 71 ) * - + col0 AS col0 FROM tab1 AS cor0
----
-3621
-6035
-6461

query I rowsort
SELECT col0 * - 75 AS col0 FROM tab1 AS cor0
----
-3825
-6375
-6825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT DISTINCT + ( - 25 ) * CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + ( - 25 ) * CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 70 + 67 AS col1 FROM tab1 AS cor0
----
137
137
137

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT + SUM( DISTINCT - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2092
SELECT + SUM ( DISTINCT - col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT MAX( - - 65 ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2093
SELECT MAX ( - - 65 ) FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2094
SELECT ALL * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2094
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2095
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab1
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - - ( col1 ) AND NULL
----

query II rowsort
SELECT - col2 AS col2, - col0 + - 38 AS col1 FROM tab2 AS cor0
----
-23
-84
-40
-102
-58
-113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL + + col1 * col0 * col1 AS col2, - col1 * - 35 AS col1 FROM tab2 cor0
----
119646
1785
336675
2345
379456
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT 80 * + 97 FROM tab2
----
7760
7760
7760

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2103
SELECT - COUNT ( * ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 60 * - col2 >= - - col0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + 67 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + col1 + 86 IS NOT NULL
----
67

skipif mysql # not compatible
query I rowsort label-2107
SELECT + 67 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + col1 + 86 IS NOT NULL
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT - - 0 + - COUNT( * ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2108
SELECT DISTINCT - - 0 + - COUNT ( * ) col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2109
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT ALL COUNT( * ) * - 34 AS col0 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-2110
SELECT ALL COUNT ( * ) * - 34 AS col0 FROM tab0
----
-102

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab1
----
41

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT COUNT( ALL + + col2 ) * - COUNT( * ) * COUNT( * ) col0 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2113
SELECT COUNT ( ALL + + col2 ) * - COUNT ( * ) * COUNT ( * ) col0 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT + col2 + + 77 * + 79 FROM tab1
----
6142
6151
6179

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT - SUM( - 93 ) AS col0 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT - SUM ( - 93 ) AS col0 FROM tab1
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT - CAST( + - 55 AS SIGNED ) AS col0 FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2116
SELECT - CAST ( + - 55 AS INTEGER ) AS col0 FROM tab1
----
55
55
55

query I rowsort
SELECT 64 + - + 94 AS col2 FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT + SUM( ALL - - col2 ) + 23 AS col1 FROM tab0 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-2118
SELECT + SUM ( ALL - - col2 ) + 23 AS col1 FROM tab0 AS cor0
----
179

query I rowsort
SELECT col0 * - 83 + 74 + col0 * + col1 * 0 * col0 FROM tab1 AS cor0
----
-4159
-6981
-7479

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - MIN( + 20 ) AS col0 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-2120
SELECT - MIN ( + 20 ) AS col0 FROM tab0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT ALL + ( 87 ) + 25 * - 95 * - - SUM( - col1 ) AS col1 FROM tab0 AS cor0
----
244712

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL + ( 87 ) + 25 * - 95 * - - SUM ( - col1 ) AS col1 FROM tab0 AS cor0
----
244712

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2122
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2122
SELECT - CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2123
SELECT ALL + - col1 DIV - - col1 col1, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2123
SELECT ALL + - col1 / - - col1 col1, col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

query I rowsort
SELECT ALL col2 * col1 + - col2 + - - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 94 * + 99 / - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * col2 * - - col1 * + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-441000
-681182703
-970299

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2127
SELECT MIN( - 39 ) DIV + 84 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2127
SELECT MIN ( - 39 ) / + 84 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - ( + 46 ) AS col2 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT CAST( - 10 AS SIGNED ) FROM tab1
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-2130
SELECT CAST ( - 10 AS INTEGER ) FROM tab1
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT ALL 85 DIV - 76 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL 85 / - 76 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 46 ) + col0 IS NOT NULL
----

query I rowsort
SELECT - ( + 93 ) * - 7 AS col1 FROM tab1
----
651
651
651

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - + 57 > - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2135
SELECT - ( + + SUM( + - col0 ) ) col1, 68 FROM tab2
----
185
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2135
SELECT - ( + + SUM ( + - col0 ) ) col1, 68 FROM tab2
----
185
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - MAX( ALL 62 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

skipif mysql # not compatible
query I rowsort label-2136
SELECT - MAX ( ALL 62 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT + 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2138
SELECT - - COUNT( * ) DIV 61 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2138
SELECT - - COUNT ( * ) / 61 col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT col0 * 14, - col0 - - 91 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - + COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2140
SELECT - + COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT ALL - COUNT( ALL col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL - COUNT ( ALL col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 11 * - - ( - col0 ) + - + col0 FROM tab2 cor0
----
-552
-768
-900

query II rowsort
SELECT DISTINCT col1, + 26 AS col1 FROM tab0 AS cor0
----
1
26
21
26
81
26

query I rowsort
SELECT DISTINCT col1 + + 9 FROM tab2 AS cor0
----
60
76
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT - - 39 + - - MAX( DISTINCT 6 ) AS col1, ( + 64 ) AS col0 FROM tab1 AS cor0
----
45
64

skipif mysql # not compatible
query II rowsort label-2145
SELECT - - 39 + - - MAX ( DISTINCT 6 ) AS col1, ( + 64 ) AS col0 FROM tab1 AS cor0
----
45
64

query I rowsort
SELECT ALL + ( - 44 ) AS col1 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT + 89 + - col2 FROM tab2 AS cor0
----
31
49
66

query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 - - + 24 * - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT DISTINCT 74 * col2 * 5 + - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT 74 * col2 * 5 + - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT col0 + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2151
SELECT col0 + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL COUNT( * ) + 98 AS col2 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL COUNT ( * ) + 98 AS col2 FROM tab2
----
101

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + + col2 + 66 * col2
----

query I rowsort
SELECT ALL - 98 * col0 FROM tab0
----
-1470
-8526
-9506

query II rowsort
SELECT ALL - 54 * col2 AS col1, - 31 * - col1 FROM tab0
----
-2538
2511
-5346
31
-540
651

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT - + 60 - + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-2157
SELECT - + 60 - + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT ALL 92 AS col2 FROM tab0 cor0
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2159
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 60 + - MAX( CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 60 + - MAX ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT 49 + - AVG ( DISTINCT col1 ) FROM tab0 WHERE NULL <> + - col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 98 * + col0 = col1
----

query II rowsort
SELECT ALL + - 58, 68 AS col2 FROM tab0 AS cor0
----
-58
68
-58
68
-58
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col0 col2 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT DISTINCT + + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + + COUNT ( * ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 76 * + col0 FROM tab1 AS cor0
----
-3876
-6460
-6916

query I rowsort
SELECT DISTINCT ( - - 80 ) AS col0 FROM tab0
----
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT 95 * + COUNT( * ) col2 FROM tab2
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2169
SELECT DISTINCT 95 * + COUNT ( * ) col2 FROM tab2
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL COUNT( * ) * 91 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL COUNT ( * ) * 91 FROM tab1
----
273

query I rowsort
SELECT DISTINCT - col0 * + 91 * - col0 * col0 AS col1 FROM tab1
----
12071241
55885375
68574961

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT - 10 DIV + - col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2172
SELECT - 10 / + - col1 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL COUNT( 65 ) * - 17 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL COUNT ( 65 ) * - 17 AS col0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT + + col1 * col1 + + col0 * - col2 + + 15 + - col2 AS col2 FROM tab2 cor0
----
1535
3344
96

query II rowsort
SELECT DISTINCT + col1 AS col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT * FROM tab1 WHERE 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT DISTINCT 95 DIV 13 * - col2 FROM tab1
----
-413
-476
-672

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT 95 / 13 * - col2 FROM tab1
----
-413
-476
-672

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 44 * + 12 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT - - COUNT( + - 63 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2181
SELECT - - COUNT ( + - 63 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 42 + + + 29 * + col2 AS col0 FROM tab0 AS cor0
----
1321
248
2829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2183
SELECT ALL + CAST( + col0 AS SIGNED ) + 67 FROM tab0 cor0
----
154
164
82

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + CAST ( + col0 AS INTEGER ) + 67 FROM tab0 cor0
----
154
164
82

query I rowsort
SELECT - col2 - 11 * - col1 FROM tab1
----
-4
449
58

query I rowsort
SELECT ALL col2 + - + ( - col1 ) * - 43 AS col2 FROM tab1
----
-156
-1953
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col1 ) + - col2, - col2 col0 FROM tab2
----
28
-23
37
-40
9
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL MIN( ALL - col0 ) + - + 54 AS col1 FROM tab1
----
-145

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL MIN ( ALL - col0 ) + - + 54 AS col1 FROM tab1
----
-145

query I rowsort
SELECT ALL - 20 + 16 AS col2 FROM tab1
----
-4
-4
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2189
SELECT - 13 + - CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2189
SELECT - 13 + - CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab2
----
-16

query I rowsort
SELECT + col2 + 86 + - col2 AS col2 FROM tab2
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + - col2 col0 FROM tab2
----
23
41
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - col2 * + col0 * - 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col1 FROM tab2 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - 10 col2 FROM tab2
----
21
21
21

query I rowsort
SELECT DISTINCT col0 - 1 FROM tab1
----
50
84
90

query I rowsort
SELECT ALL col0 + 16 AS col2 FROM tab1
----
101
107
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT DISTINCT + 7 + ( COUNT( * ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT + 7 + ( COUNT ( * ) ) FROM tab0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2200
SELECT ALL - 91 + + CAST( - AVG ( DISTINCT col2 ) AS SIGNED ) col1 FROM tab1
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2200
SELECT ALL - 91 + + CAST ( - AVG ( DISTINCT col2 ) AS INTEGER ) col1 FROM tab1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT COUNT( 77 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2201
SELECT COUNT ( 77 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 37 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 16 FROM tab0 WHERE ( 23 ) < - 80 * - col2 - col1 * + ( + 76 )
----
16

query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab1 WHERE NOT - 99 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab2 WHERE NOT ( - col1 ) BETWEEN NULL AND 36
----

query I rowsort
SELECT col2 FROM tab2 WHERE 17 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - SUM( DISTINCT 53 ) FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-2210
SELECT - SUM ( DISTINCT 53 ) FROM tab2
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT + MAX( DISTINCT + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT + MAX ( DISTINCT + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT + MIN( ALL + ( col0 ) ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2212
SELECT + MIN ( ALL + ( col0 ) ) AS col2 FROM tab2
----
46

query I rowsort
SELECT 88 - + 22 * col1 AS col1 FROM tab1
----
-22
-220
-946

query III rowsort
SELECT * FROM tab2 WHERE + 39 * 33 <= ( col1 )
----

query I rowsort
SELECT ALL ( 2 ) FROM tab0 AS cor0
----
2
2
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 NOT IN ( + col1 * - col2 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( + 18 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT + MAX( DISTINCT + 98 ) AS col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2218
SELECT + MAX ( DISTINCT + 98 ) AS col2 FROM tab0 AS cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> - 13
----

query I rowsort
SELECT ALL + col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
528
6576
98

query I rowsort
SELECT - 59 FROM tab2 AS cor0 WHERE NOT + 28 <> NULL
----

query I rowsort
SELECT - col0 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND ( + ( - col2 ) ) / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL - MAX( ALL 91 ) col2 FROM tab2 WHERE ( - 49 ) = ( - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2223
SELECT ALL - MAX ( ALL 91 ) col2 FROM tab2 WHERE ( - 49 ) = ( - col0 )
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - col0 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2225
SELECT ALL col0 + col0 * + CAST( col1 AS SIGNED ) FROM tab0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL col0 + col0 * + CAST ( col1 AS INTEGER ) FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT DISTINCT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT ALL - 23 * + CAST( + 74 AS SIGNED ) FROM tab1 AS cor0
----
-1702
-1702
-1702

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - 23 * + CAST ( + 74 AS INTEGER ) FROM tab1 AS cor0
----
-1702
-1702
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT - + MIN( ALL + col1 ) + + 1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT - + MIN ( ALL + col1 ) + + 1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 + + ( 3 ) FROM tab2 AS cor0
----
54
70
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT - COUNT( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IN ( col2 * 34 + 68 )
----
-3

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - COUNT ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IN ( col2 * 34 + 68 )
----
-3

query I rowsort
SELECT - - 89 + 72 FROM tab1 AS cor0
----
161
161
161

query I rowsort
SELECT ALL col2 + - 67 FROM tab2 AS cor0
----
-27
-44
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT + + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2234
SELECT + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + 89 FROM tab0 AS cor0
----
110
170
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2237
SELECT CAST( NULL AS DECIMAL ) + + 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT CAST ( NULL AS REAL ) + + 46 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT DISTINCT COUNT( * ) + + + 54 DIV - COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT COUNT ( * ) + + + 54 / - COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT 81 * + 66 FROM tab2 WHERE NULL IS NULL
----
5346

query I rowsort
SELECT ALL + 71 - col1 * col2 AS col1 FROM tab1
----
-1273
-224
-3125

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN ( 84 ) AND ( - 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 79 ) FROM tab0 WHERE ( col0 * 84 ) NOT IN ( 18 / ( + 90 ) )
----
-79
-79
-79

query I rowsort
SELECT ALL col0 - + col1 AS col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 19 + COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 19 + COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT + - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2246
SELECT + - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT col1 - 7 FROM tab2 cor0
----
44
60
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 cor0 WHERE ( - col0 ) < ( col2 )
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT - 12 DIV col2 - col0 AS col0 FROM tab0 AS cor0
----
-15
-88
-97

skipif mysql # not compatible
query I rowsort label-2249
SELECT - 12 / col2 - col0 AS col0 FROM tab0 AS cor0
----
-15
-88
-97

query I rowsort
SELECT - - col2 - + col2 * col0 AS col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 59 col0 FROM tab0 AS cor0
----
140
60
80

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT ALL - MIN( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2253
SELECT ALL - MIN ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT DISTINCT + + MIN( ALL + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT + + MIN ( ALL + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT + COUNT( * ) * - - 74 * - ( - ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-2255
SELECT + COUNT ( * ) * - - 74 * - ( - ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-666

query I rowsort
SELECT ALL - + ( + - ( + - col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col1 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 - 42 * - 92 ) IS NOT NULL
----

query I rowsort
SELECT - col0 * + - col0 AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + ( - ( - 23 ) ) FROM tab2
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT DISTINCT - SUM( DISTINCT - + CAST( + col2 AS SIGNED ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - SUM ( DISTINCT - + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
156

query II rowsort
SELECT col2 * - col1 AS col2, + col0 FROM tab2
----
-1173
46
-3080
64
-3886
75

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT + ( + - SUM( ALL + ( - col0 ) ) ) * - 57 AS col1 FROM tab2 AS cor0
----
-10545

skipif mysql # not compatible
query I rowsort label-2265
SELECT + ( + - SUM ( ALL + ( - col0 ) ) ) * - 57 AS col1 FROM tab2 AS cor0
----
-10545

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 NOT IN ( ( col2 ) + + 60 ) )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN col0 * + 95 AND ( 0 * col2 )
----

query I rowsort
SELECT ALL ( + col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 - - - col1 NOT IN ( - 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT + + 14 * + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT + + 14 * + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT MAX( 33 ) + - ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT MAX ( 33 ) + - ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - MAX( DISTINCT - + ( + - ( 71 ) ) ) FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-2273
SELECT - MAX ( DISTINCT - + ( + - ( 71 ) ) ) FROM tab0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif mysql # not compatible
query I rowsort label-2274
SELECT + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 / - col0 IS NOT NULL
----

query II rowsort
SELECT col1, - col1 + - 41 FROM tab0 AS cor0
----
1
-42
21
-62
81
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL + MIN( - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + MIN ( - col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE - col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> - col0 / + 10
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 25 / + col0 )
----

query I rowsort
SELECT - col0 - col0 + + - 62 FROM tab1 AS cor0
----
-164
-232
-244

query I rowsort
SELECT DISTINCT - - col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - + col1 + + + col1 * + - 33 * + - col0 AS col1 FROM tab2 AS cor0
----
162547
165758
77367

query I rowsort
SELECT + 48 - + col0 AS col0 FROM tab1 AS cor0
----
-3
-37
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT + col1 * CAST( NULL AS SIGNED ) + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT + col1 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - col2 + + + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2289
SELECT col1 + + 73 * 42 + - - col2 + - col0 + col0 DIV + col2 AS col0 FROM tab2
----
3096
3117
3120

skipif mysql # not compatible
query I rowsort label-2289
SELECT col1 + + 73 * 42 + - - col2 + - col0 + col0 / + col2 AS col0 FROM tab2
----
3096
3117
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col2 FROM tab1 WHERE NULL >= - - 54
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 WHERE NULL NOT IN ( + 56 + + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - COUNT( * ) * - COUNT( * ) + ( + - COUNT( * ) ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2292
SELECT - COUNT ( * ) * - COUNT ( * ) + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2293
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) = col2
----

skipif mysql # not compatible
query III rowsort label-2293
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) = col2
----

query I rowsort
SELECT ( - 96 ) FROM tab0 AS cor0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT - col1 IN ( + col0, - 20 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT - - SUM( - 73 ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT - - SUM ( - 73 ) FROM tab2 AS cor0
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab1
----
9
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2299
SELECT ALL CAST( + MAX( DISTINCT + col1 ) AS SIGNED ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL CAST ( + MAX ( DISTINCT + col1 ) AS INTEGER ) AS col0 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 <= 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2301
SELECT ALL + - CAST( + MIN( 20 ) AS SIGNED ) DIV - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + - CAST ( + MIN ( 20 ) AS INTEGER ) / - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT - 40 * - + col1 AS col1 FROM tab1
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - COUNT( + 96 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2303
SELECT - COUNT ( + 96 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT DISTINCT - ( - col1 ) DIV + + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - ( - col1 ) / + + col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 30 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + col0 * - col0 col0 FROM tab2 cor0
----
163840
326250
48668

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - - COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2307
SELECT - - COUNT ( * ) FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2308
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col1 FROM tab0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2310
SELECT ALL 49 DIV - + COUNT( * ) + - COUNT( * ) + + ( + COUNT( * ) ) * + ( + COUNT( ALL + - col0 ) ) col2 FROM tab2
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2310
SELECT ALL 49 / - + COUNT ( * ) + - COUNT ( * ) + + ( + COUNT ( * ) ) * + ( + COUNT ( ALL + - col0 ) ) col2 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT DISTINCT - COUNT( DISTINCT col0 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT - COUNT ( DISTINCT col0 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - MAX( DISTINCT + - col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2312
SELECT - MAX ( DISTINCT + - col1 ) FROM tab1
----
5

query I rowsort
SELECT ALL - - col1 + 94 AS col1 FROM tab0 AS cor0
----
115
175
95

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2314
SELECT - CAST( NULL AS DECIMAL ) AS col1, - 93 DIV - 7 AS col0 FROM tab2 cor0
----
NULL
13
NULL
13
NULL
13

skipif mysql # not compatible
query II rowsort label-2314
SELECT - CAST ( NULL AS REAL ) AS col1, - 93 / - 7 AS col0 FROM tab2 cor0
----
NULL
13
NULL
13
NULL
13

query I rowsort
SELECT ALL + ( + + 53 ) AS col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT - col0 DIV - 76 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2316
SELECT - col0 / - 76 FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + col2 + - col2 > + - ( col1 ) * + 56 * - col2 * col0 - - 6
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + - col0
----

query I rowsort
SELECT ALL ( + 67 ) + + col2 - - 45 AS col1 FROM tab2
----
135
152
170

query I rowsort
SELECT - col1 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT - + col1 * - + col2 * 33 FROM tab2 AS cor0
----
101640
128238
38709

query I rowsort
SELECT + col1 + + + 95 FROM tab1 AS cor0
----
100
109
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col2 col2 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT col0, 47 FROM tab0 AS cor0 WHERE col0 * ( + + col0 ) + ( - col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT ALL + ( - - SUM( - - 17 ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + ( - - SUM ( - - 17 ) ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2326
SELECT - CAST( CAST( + 79 AS SIGNED ) AS SIGNED ) DIV + 95 AS col2, + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2326
SELECT - CAST ( CAST ( + 79 AS INTEGER ) AS INTEGER ) / + 95 AS col2, + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
0
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2328
SELECT DISTINCT col1 col1 FROM tab2 WHERE - - ( + + CAST( NULL AS SIGNED ) ) IS NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2328
SELECT DISTINCT col1 col1 FROM tab2 WHERE - - ( + + CAST ( NULL AS INTEGER ) ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NULL NOT IN ( - 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - 76 - - + COUNT( * ) AS col0 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - 76 - - + COUNT ( * ) AS col0 FROM tab0
----
-73

query II rowsort
SELECT ALL col2 * - ( col2 ) AS col0, col2 FROM tab2
----
-1600
40
-3364
58
-529
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT - + col1 ) col1 FROM tab2 WHERE + col0 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2332
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT - + col1 ) col1 FROM tab2 WHERE + col0 + + col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT - 91 DIV - col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2333
SELECT - 91 / - col2 AS col0 FROM tab1
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 17 < + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( + 95 ) AS col2 FROM tab1 WHERE NOT - 5 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2336
SELECT DISTINCT + 49 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT + 49 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + + MIN( ALL - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2337
SELECT + + MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2338
SELECT ALL - col0 * 90 DIV - 22 col2 FROM tab0 AS cor0
----
355
396
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2338
SELECT ALL - col0 * 90 / - 22 col2 FROM tab0 AS cor0
----
355
396
61

query I rowsort
SELECT + 95 * - 54 AS col2 FROM tab1 AS cor0 WHERE NOT ( 16 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT ALL - COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL - COUNT ( * ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2342
SELECT DISTINCT - SUM( col1 ) AS col1, 55 * + COUNT( * ) + - - 14 col0 FROM tab2
----
-195
179

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2342
SELECT DISTINCT - SUM ( col1 ) AS col1, 55 * + COUNT ( * ) + - - 14 col0 FROM tab2
----
-195
179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * + col0 col2 FROM tab0 AS cor0
----
158949
18225
9409

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE - 70 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 42 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT COUNT( * ) + - 85 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT COUNT ( * ) + - 85 FROM tab2 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2348
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( col2 AS DECIMAL ) * - col0 * - CAST( + - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2348
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( col2 AS REAL ) * - col0 * - CAST ( + - col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT + ( - 90 ) AS col0, - 53 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-90
-53
-90
-53
-90
-53

query I rowsort
SELECT ALL - 12 FROM tab1 WHERE - - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) <= - col2 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2352
SELECT DISTINCT 9 * CAST( - - col1 AS SIGNED ) col2 FROM tab0
----
189
729
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT DISTINCT 9 * CAST ( - - col1 AS INTEGER ) col2 FROM tab0
----
189
729
9

query III rowsort
SELECT * FROM tab1 WHERE 63 * - col2 >= + - col0 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT + col1 + - 9 DIV + + 50 + - - col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT + col1 + - 9 / + + 50 + - - col1 FROM tab0
----
162
2
42

query III rowsort
SELECT ALL * FROM tab0 WHERE + 33 >= + 30 + + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ( + COUNT( 13 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2356
SELECT ( + COUNT ( 13 ) ) FROM tab2
----
3

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * 29 * + - col2 * - + 37 col1 FROM tab1
----
-6014165
-6931580
-9785760

query I rowsort
SELECT col2 + - - ( - - col0 ) + 95 AS col0 FROM tab0
----
157
192
291

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT 81 * + 62 + COUNT( * ) FROM tab2
----
5025

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT 81 * + 62 + COUNT ( * ) FROM tab2
----
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL COUNT( DISTINCT ( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL COUNT ( DISTINCT ( - col0 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 68 + + ( col1 ) + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + + ( + 61 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL + CAST( + 89 AS SIGNED ) + - + 12 + - col2 FROM tab0
----
-22
30
67

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + CAST ( + 89 AS INTEGER ) + - + 12 + - col2 FROM tab0
----
-22
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2365
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - col0 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT ALL SUM( DISTINCT + 49 ) - 2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL SUM ( DISTINCT + 49 ) - 2 FROM tab0 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2370
SELECT ( - + 24 ) + COUNT( * ) DIV COUNT( DISTINCT + 40 ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2370
SELECT ( - + 24 ) + COUNT ( * ) / COUNT ( DISTINCT + 40 ) AS col2 FROM tab1 AS cor0
----
-21

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + col1 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2372
SELECT CAST( col1 AS SIGNED ) * - 22 FROM tab0
----
-1782
-22
-462

skipif mysql # not compatible
query I rowsort label-2372
SELECT CAST ( col1 AS INTEGER ) * - 22 FROM tab0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT COUNT( * ) FROM tab2 WHERE NOT col0 / + 53 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2373
SELECT COUNT ( * ) FROM tab2 WHERE NOT col0 / + 53 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL COUNT( * ) * + 90 * - ( 70 ) FROM tab1
----
-18900

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL COUNT ( * ) * + 90 * - ( 70 ) FROM tab1
----
-18900

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT COUNT( * ) col1 FROM tab1 WHERE NOT + 38 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2375
SELECT COUNT ( * ) col1 FROM tab1 WHERE NOT + 38 IS NULL
----
3

query I rowsort
SELECT DISTINCT - AVG ( ALL + - col1 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2377
SELECT DISTINCT + MIN( ALL - col0 ) * - ( - - 45 ) col2, - 16 + + + 92 FROM tab2 AS cor0
----
3375
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2377
SELECT DISTINCT + MIN ( ALL - col0 ) * - ( - - 45 ) col2, - 16 + + + 92 FROM tab2 AS cor0
----
3375
76

query I rowsort
SELECT ALL col2 * + 80 AS col2 FROM tab1
----
4720
5440
7680

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( 50 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2380
SELECT COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 + 55 IS NOT NULL
----

query I rowsort
SELECT ALL - - 42 * - 99 AS col0 FROM tab2 AS cor0
----
-4158
-4158
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT + SUM( ALL - col0 ) + + COUNT( * ) + + 49 FROM tab1 cor0
----
-175

skipif mysql # not compatible
query I rowsort label-2383
SELECT + SUM ( ALL - col0 ) + + COUNT ( * ) + + 49 FROM tab1 cor0
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT 69 + - COUNT( * ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2384
SELECT 69 + - COUNT ( * ) FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT DISTINCT MAX( - 50 ) AS col0 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT MAX ( - 50 ) AS col0 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT ALL col2 * + col0 + 22 FROM tab0
----
727
892
9625

query I rowsort
SELECT + col2 + + 27 FROM tab2
----
50
67
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL COUNT( ALL col0 ) + - - 67 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL COUNT ( ALL col0 ) + - - 67 FROM tab1
----
70

query II rowsort
SELECT col0 AS col2, col1 + + + col0 FROM tab1
----
51
65
85
90
91
138

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2, 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2391
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + 11 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 - + - col0 * - 23 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2393
SELECT - 69 DIV + COUNT( * ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2393
SELECT - 69 / + COUNT ( * ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> col2
----

query I rowsort
SELECT - - col2 AS col0 FROM tab1 AS cor0 WHERE + 66 >= - + 17
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 92 - - col2 - col1 + ( + 21 ) * + 28 + + + col2 * - - ( - - ( + 31 ) ) AS col2 FROM tab1
----
2563
2809
3738

query I rowsort
SELECT ALL - ( + 8 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 69 * + col0 IS NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT ALL 99 FROM tab0 WHERE NOT - col0 * - 92 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( - + 67 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( ( - col1 ) ) IS NULL
----

query II rowsort
SELECT ALL - col2, col2 AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
-23
23
-40
40
-58
58

query I rowsort
SELECT + ( + 9 ) FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + COUNT( ALL col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + COUNT ( ALL col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + MAX( DISTINCT + - 56 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-2407
SELECT + MAX ( DISTINCT + - 56 ) FROM tab2
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, col1 * 65 col0 FROM tab1
----
51
910
85
325
91
3055

onlyif mysql # aggregate syntax: 
query II rowsort label-2409
SELECT - COUNT( * ) AS col0, ( - MAX( ALL + col1 ) ) + + COUNT( * ) + - ( - SUM( ALL col2 ) ) * COUNT( * ) + - + 64 FROM tab1 AS cor0
----
-3
561

skipif mysql # not compatible
query II rowsort label-2409
SELECT - COUNT ( * ) AS col0, ( - MAX ( ALL + col1 ) ) + + COUNT ( * ) + - ( - SUM ( ALL col2 ) ) * COUNT ( * ) + - + 64 FROM tab1 AS cor0
----
-3
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66, ( - col2 ) col0 FROM tab2 AS cor0
----
66
-23
66
-40
66
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2411
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - 98 + - + col0, col1 FROM tab2
----
-144
51
-162
77
-173
67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + + + col1 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + + + col1 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2416
SELECT + 64 DIV - - COUNT( * ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2416
SELECT + 64 / - - COUNT ( * ) AS col0 FROM tab1
----
21

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT - - 86 DIV + + 67 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2418
SELECT - - 86 / + + 67 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col2 * + + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL + MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT col1 * + 49 FROM tab2 cor0
----
2499
3283
3773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 + - col1 col1 FROM tab2 AS cor0
----
-28
-44
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 25 AND + - col0
----

query I rowsort
SELECT DISTINCT 31 + ( + 4 ) FROM tab0
----
35

query I rowsort
SELECT 53 AS col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
53
53
53

query I rowsort
SELECT DISTINCT ( ( col1 ) ) * - + col0 + + col0 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT ALL 16 + + - col1 * - 98 * - - col1 FROM tab2
----
254914
439938
581058

query I rowsort
SELECT col2 + + 81 FROM tab0
----
128
180
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT MAX( + 46 ) + 45 - - 49 AS col1 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT MAX ( + 46 ) + 45 - - 49 AS col1 FROM tab2
----
140

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col0 + - col0 * - - 77 * + 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2434
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - 45 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2434
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - 45 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT DISTINCT COUNT( - CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT COUNT ( - CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 92 * + col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query II rowsort
SELECT - col0 AS col1, col0 * col2 - - col0 FROM tab1
----
-51
4947
-85
5100
-91
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 14 * col1 * + col2 + + - col0 / - 94 * col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + 61 * - + col1 / - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT ALL - 88 * + + 42 - + COUNT( * ) FROM tab2 AS cor0
----
-3699

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - 88 * + + 42 - + COUNT ( * ) FROM tab2 AS cor0
----
-3699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT + ( + col1 ) * + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2442
SELECT DISTINCT + ( + col1 ) * + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL < col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( + col1 ), 61 - col0 + + 33, + col2, + 57 )
----

query II rowsort
SELECT + col2 AS col2, col2 * col0 AS col2 FROM tab0 cor0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 <> col0
----

query II rowsort
SELECT + 61, - col0 * col2 * + 37 + ( - + col1 ) AS col2 FROM tab1 AS cor0
----
61
-181166
61
-185560
61
-229003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT ALL + ( + CAST( + + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL + ( + CAST ( + + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2449
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col0, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-2449
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col0, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab2
----
-30

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + ( col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2454
SELECT DISTINCT MIN( DISTINCT - - CAST( NULL AS SIGNED ) ), 85 DIV - COUNT( * ) AS col0 FROM tab0
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-2454
SELECT DISTINCT MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ), 85 / - COUNT ( * ) AS col0 FROM tab0
----
NULL
-28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 >= + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2456
SELECT COUNT ( * ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - + 43 FROM tab2 WHERE NOT + + col2 + - ( + col0 ) IS NULL
----
-43
-43
-43

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / - 64 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2461
SELECT 44, 56 + - + CAST( NULL AS SIGNED ) + 17 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 94e6d8bf69f4124cb368d25ed7fc43d9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2461
SELECT 44, 56 + - + CAST ( NULL AS INTEGER ) + 17 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 94e6d8bf69f4124cb368d25ed7fc43d9

query II rowsort
SELECT ALL col0 AS col1, 47 + - + col1 AS col2 FROM tab2 AS cor0
----
46
-4
64
-30
75
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 * - 95 * - - col0 col0 FROM tab1 AS cor0
----
-281010
-468350
-501410

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT 62 + - + col0 + 87 AS col0 FROM tab1 AS cor0
----
58
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + - COUNT( * ) + 73 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-2467
SELECT + - COUNT ( * ) + 73 FROM tab0 AS cor0
----
70

query I rowsort
SELECT DISTINCT col1 * - col0 + 19 AS col2 FROM tab2 AS cor0
----
-2327
-4909
-5006

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 3 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT CAST( - 30 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort label-2470
SELECT CAST ( - 30 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query III rowsort
SELECT * FROM tab0 WHERE 10 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2473
SELECT + MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + col0 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 * + col0 - - - col0 FROM tab1
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + SUM( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2477
SELECT + SUM ( ALL col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - + 25 AS col1 FROM tab0 AS cor0
----
-10
62
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2480
SELECT ALL - 36 DIV - + CAST( - col1 AS SIGNED ) - - + col1 AS col0, - col1 + + col2 + col2 col0 FROM tab2 AS cor0
----
51
-5
67
49
77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2480
SELECT ALL - 36 / - + CAST ( - col1 AS INTEGER ) - - + col1 AS col0, - col1 + + col2 + col2 col0 FROM tab2 AS cor0
----
51
-5
67
49
77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT + 81 * - 76 * 31 * 12 + - - COUNT( * ) FROM tab2 AS cor0
----
-2290029

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + 81 * - 76 * 31 * 12 + - - COUNT ( * ) FROM tab2 AS cor0
----
-2290029

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + 63 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT + - 85 DIV 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-2484
SELECT + - 85 / 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - col1 * + col0 * col2 AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 * col2 * 62 - + - col1 FROM tab2 AS cor0 WHERE col2 > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT CAST( - - 26 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2488
SELECT CAST ( - - 26 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col0 AS col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT - 78 FROM tab1 AS cor0 WHERE NOT NULL < + col0 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL MAX( col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2492
SELECT ALL MAX ( col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2494
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2495
SELECT + col1 DIV - - col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2495
SELECT + col1 / - - col1 AS col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 7 col0, - col2 FROM tab1
----
7
-59
7
-68
7
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-2497
SELECT col1 AS col0, col1 DIV + col0 + + 59 + - col1 FROM tab2
----
51
9
67
-8
77
-17

skipif mysql # not compatible
query II rowsort label-2497
SELECT col1 AS col0, col1 / + col0 + + 59 + - col1 FROM tab2
----
51
9
67
-8
77
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL COUNT( ALL + + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL COUNT ( ALL + + col1 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT + 48 AS col1, col1 AS col1 FROM tab0
----
48
1
48
21
48
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 3 FROM tab0 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2502
SELECT + col0 + - - 44 FROM tab2 WHERE + 69 * - ( ( col2 ) ) * + + 71 + col2 + CAST( NULL AS SIGNED ) IS NULL
----
108
119
90

skipif mysql # not compatible
query I rowsort label-2502
SELECT + col0 + - - 44 FROM tab2 WHERE + 69 * - ( ( col2 ) ) * + + 71 + col2 + CAST ( NULL AS INTEGER ) IS NULL
----
108
119
90

query I rowsort
SELECT DISTINCT - 32 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2504
SELECT + CAST( NULL AS DECIMAL ) AS col0, + ( MIN( DISTINCT 15 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
15

skipif mysql # not compatible
query II rowsort label-2504
SELECT + CAST ( NULL AS REAL ) AS col0, + ( MIN ( DISTINCT 15 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT - COUNT( * ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2505
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT COUNT( * ) * 72 * + 93 FROM tab1 cor0
----
20088

skipif mysql # not compatible
query I rowsort label-2506
SELECT COUNT ( * ) * 72 * + 93 FROM tab1 cor0
----
20088

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT 9 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT 9 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT + + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE - 51 * - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2508
SELECT + + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE - 51 * - - col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL - + 77 * 34 FROM tab2 cor0
----
-2618
-2618
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT 13 + - COUNT( * ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2510
SELECT 13 + - COUNT ( * ) AS col1 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 50 col1 FROM tab0
----
-3
-40
49

query III rowsort
SELECT ALL * FROM tab2 WHERE - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 96 - - + col2 FROM tab2 AS cor0
----
119
136
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT - MIN( DISTINCT - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2514
SELECT - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL ( + 66 ) AS col2 FROM tab0 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 50 * - - col0 col1 FROM tab2
----
117300
246400
251250

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT DISTINCT COUNT( * ) * 19 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT COUNT ( * ) * 19 FROM tab0
----
57

query I rowsort
SELECT - ( 8 ) * + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 74 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL 18 * - 99 AS col1 FROM tab0 AS cor0
----
-1782
-1782
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + - COUNT( + - col1 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + - COUNT ( + - col1 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2521
SELECT DISTINCT + col1 DIV 56 + - col2 FROM tab2 cor0
----
-23
-39
-57

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + col1 / 56 + - col2 FROM tab2 cor0
----
-23
-39
-57

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2523
SELECT - - ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + + col0 * + col2 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2523
SELECT - - ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + + col0 * + col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT + + COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2524
SELECT + + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 50 ) col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 42 col2 FROM tab0 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col1 col2 FROM tab1
----
210
705
75

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * 98 / + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL BETWEEN 75 + - - col2 + + - col2 AND - col1 - + 71 )
----

query I rowsort
SELECT 4 * - - col1 FROM tab0
----
324
4
84

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 92 <> NULL )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NULL <= ( + col2 + - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col1, 20 AS col1 FROM tab1 AS cor0
----
-14
20
-47
20
-5
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2535
SELECT - 78 / CAST( + 2 AS SIGNED ) + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT - 78 / CAST ( + 2 AS INTEGER ) + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + + 65 ) FROM tab1 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL + COUNT( * ) * 16 * - 99 + - + 10 FROM tab1 AS cor0
----
-4762

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL + COUNT ( * ) * 16 * - 99 + - + 10 FROM tab1 AS cor0
----
-4762

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 5 + + - col0 AS col2 FROM tab0
----
-10
-82
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2540
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2540
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 * + col0 * 33 * + ( - - col1 ) col0 FROM tab1 WHERE NULL IS NULL
----
329964
6633695
70184

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT - + 84 + + COUNT( * ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - + 84 + + COUNT ( * ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 5 AS col0 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + col2 * + col2 + + col1 * - 19 FROM tab1 cor0
----
3386
3731
8950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2546
SELECT + - 41 + + SUM( ALL 74 ) DIV - COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-2546
SELECT + - 41 + + SUM ( ALL 74 ) / - COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-2547
SELECT ALL + col1, + 79 DIV + + col2 FROM tab0 AS cor0
----
1
0
21
7
81
1

skipif mysql # not compatible
query II rowsort label-2547
SELECT ALL + col1, + 79 / + + col2 FROM tab0 AS cor0
----
1
0
21
7
81
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - MIN( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - MIN ( + col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT col0 - + - ( + col1 ) AS col0 FROM tab0
----
108
96
98

query II rowsort
SELECT ( col2 ) * + 68 - - + 56 * - col0, + col0 AS col2 FROM tab0
----
-4192
87
1300
97
2356
15

query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab2 AS cor0
----
64

query I rowsort
SELECT - col0 * 63 + + col0 AS col0 FROM tab0 AS cor0
----
-5394
-6014
-930

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 18 + + 86 / - - 8 * + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - - col0 / col1 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 77 * - - col0 FROM tab2
----
3542
4928
5775

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2557
SELECT - col0 AS col2, 80 + - CAST( - + 80 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
160
-87
160
-97
160

skipif mysql # not compatible
query II rowsort label-2557
SELECT - col0 AS col2, 80 + - CAST ( - + 80 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
160
-87
160
-97
160

query II rowsort
SELECT + col2 AS col1, + ( 40 ) AS col1 FROM tab0 AS cor0
----
10
40
47
40
99
40

query II rowsort
SELECT DISTINCT + 96 AS col2, + col0 AS col2 FROM tab0 AS cor0 WHERE - col0 * - + col0 * + 2 NOT BETWEEN col1 AND + + 4 * + col0
----
96
15
96
87
96
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - col0 < 0 + + 26
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2561
SELECT 55 DIV + col0 col0, + col2 AS col1 FROM tab2
----
0
40
0
58
1
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2561
SELECT 55 / + col0 col0, + col2 AS col1 FROM tab2
----
0
40
0
58
1
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2562
SELECT ALL + 67 DIV 19 * - col0 AS col1 FROM tab1
----
-153
-255
-273

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + 67 / 19 * - col0 AS col1 FROM tab1
----
-153
-255
-273

query I rowsort
SELECT DISTINCT col1 * - col1 + 58 + - + 62 AS col2 FROM tab1
----
-200
-2213
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 41 col2 FROM tab1
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + COUNT( * ) FROM tab0 WHERE NOT - + 97 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2565
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - + 97 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 36 * + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 37 + 51 AS col2 FROM tab1
----
88

query I rowsort
SELECT ALL 10 + + col1 FROM tab1
----
15
24
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + MAX( ALL col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2571
SELECT + MAX ( ALL col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + 25 + + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
34

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + 25 + + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
34

query I rowsort
SELECT - - 78 * + col0 AS col0 FROM tab1 AS cor0
----
3978
6630
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + - col0 IS NULL AND NOT NULL <> col1 + + - 51 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + - col0 IS NULL AND NOT NULL <> col1 + + - 51 + - col0
----
0

query I rowsort
SELECT DISTINCT + - 66 * - col1 AS col1 FROM tab1 cor0
----
3102
330
924

query I rowsort
SELECT - col1 + - col0 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
-158970
-18306
-9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2577
SELECT ALL - - ( - CAST( + - 82 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL - - ( - CAST ( + - 82 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT ALL MIN( ALL - - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL MIN ( ALL - - col1 ) FROM tab2
----
51

query I rowsort
SELECT + 59 * col1 + col1 * + - ( - - col1 ) + col1 AS col2 FROM tab1
----
275
611
644

query I rowsort
SELECT DISTINCT + 34 + - col2 AS col1 FROM tab0
----
-13
-65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
9

query II rowsort
SELECT ALL - col0, col1 AS col1 FROM tab2
----
-46
51
-64
77
-75
67

query II rowsort
SELECT + col2, - col0 FROM tab0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 47 col2 FROM tab2 AS cor0
----
47
47
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 IS NOT NULL ) OR NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT + COUNT( * ) * + 64 FROM tab0 cor0
----
192

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT + COUNT ( * ) * + 64 FROM tab0 cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - COUNT( * ) * - + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2587
SELECT - COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT - MAX( - col2 ) col2 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2588
SELECT DISTINCT - MAX ( - col2 ) col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT col1 + + + ( + ( col2 ) ) + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 64 AS col2 FROM tab1 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT ALL + MAX( ALL - 22 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2591
SELECT ALL + MAX ( ALL - 22 ) FROM tab1 AS cor0
----
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 80 / col1 >= NULL
----

query I rowsort
SELECT + col0 + + ( - - col0 ) + - 75 FROM tab1 AS cor0
----
107
27
95

query I rowsort
SELECT 60 + - + col2 FROM tab0 cor0
----
-39
13
50

query I rowsort
SELECT DISTINCT 3 + col1 + - - col2 * 64 AS col2 FROM tab1
----
3784
4402
6161

query I rowsort
SELECT DISTINCT + col0 + - 87 FROM tab0
----
-72
0
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT DISTINCT CAST( 35 AS SIGNED ) AS col0 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT CAST ( 35 AS INTEGER ) AS col0 FROM tab2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2598
SELECT ALL + + 82 FROM tab0 WHERE NULL <= - - CAST( + 47 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + + 82 FROM tab0 WHERE NULL <= - - CAST ( + 47 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + - col2 BETWEEN + col1 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab1 WHERE NOT + col1 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + COUNT( * ) * - MIN( ALL - + col0 ) col2 FROM tab2
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2601
SELECT + COUNT ( * ) * - MIN ( ALL - + col0 ) col2 FROM tab2
----
225

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND + - col2
----
97
1
99

query I rowsort
SELECT DISTINCT col1 * - + col0 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - - 92 * - - 54 AS col1 FROM tab1 AS cor0
----
4968
4968
4968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT + col0 * + - 68 AS col1 FROM tab2 cor0 WHERE - CAST( col2 AS SIGNED ) > col2
----

skipif mysql # not compatible
query I rowsort label-2605
SELECT + col0 * + - 68 AS col1 FROM tab2 cor0 WHERE - CAST ( col2 AS INTEGER ) > col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 28 - col0 AS col0 FROM tab1 AS cor0
----
-23
-57
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL ( + + ( 70 ) ) + MIN( DISTINCT 10 ) AS col0 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL ( + + ( 70 ) ) + MIN ( DISTINCT 10 ) AS col0 FROM tab1
----
80

query I rowsort
SELECT - - 32 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2611
SELECT - col1 + + col1 AS col1, + col0 * + CAST( - ( + 89 ) AS SIGNED ) AS col0 FROM tab0
----
0
-1335
0
-7743
0
-8633

skipif mysql # not compatible
query II rowsort label-2611
SELECT - col1 + + col1 AS col1, + col0 * + CAST ( - ( + 89 ) AS INTEGER ) AS col0 FROM tab0
----
0
-1335
0
-7743
0
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL - - COUNT( ALL + col0 ) * - 70 AS col1 FROM tab1 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL - - COUNT ( ALL + col0 ) * - 70 AS col1 FROM tab1 AS cor0
----
-210

query I rowsort
SELECT + 50 * + 99 FROM tab0 AS cor0
----
4950
4950
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT DISTINCT + 1 - - col1 DIV - 75 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + 1 - - col1 / - 75 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL - COUNT( * ) * - 8 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL - COUNT ( * ) * - 8 FROM tab0 AS cor0
----
24

query I rowsort
SELECT + 60 * col2 + + 62 FROM tab2 AS cor0
----
1442
2462
3542

query II rowsort
SELECT - col2 * + + 59, - 25 AS col2 FROM tab0 AS cor0
----
-2773
-25
-5841
-25
-590
-25

query I rowsort
SELECT - 64 FROM tab1 AS cor0 WHERE NULL NOT IN ( 34, 42 * + - 26, + + 57 )
----

query I rowsort
SELECT - col2 * + 17 FROM tab0 AS cor0
----
-1683
-170
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + col1 * 61 col0 FROM tab1 cor0
----
240828
25620
71736

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + MAX( ALL - 98 ) col0 FROM tab2
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2621
SELECT + MAX ( ALL - 98 ) col0 FROM tab2
----
-98

query I rowsort
SELECT ALL 61 AS col0 FROM tab2 WHERE NOT NULL <= + 21
----

query II rowsort
SELECT ALL col0 AS col0, - col0 * - col2 * col1 * - - 4 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0, 22 * + + col1 AS col1 FROM tab1
----
51
308
85
110
91
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - MAX( + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2625
SELECT - MAX ( + col1 ) FROM tab2
----
-77

query I rowsort
SELECT + 60 * + 14 AS col2 FROM tab1
----
840
840
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT MIN( - - ( + col2 ) ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2627
SELECT MIN ( - - ( + col2 ) ) AS col2 FROM tab0
----
10

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 83 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN + - col1 AND - col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2631
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1
----
-9

query II rowsort
SELECT DISTINCT 92, - col1 * + + col0 AS col1 FROM tab1
----
92
-425
92
-4277
92
-714

query II rowsort
SELECT col1, + 31 + - col0 AS col0 FROM tab2
----
51
-15
67
-44
77
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT + ( col0 ) DIV + - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2636
SELECT + ( col0 ) / + - col1 AS col0 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT DISTINCT + COUNT( * ) AS col2, 42 AS col0 FROM tab0 cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-2637
SELECT DISTINCT + COUNT ( * ) AS col2, 42 AS col0 FROM tab0 cor0
----
3
42

query I rowsort
SELECT DISTINCT + ( + 37 ) FROM tab2 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 / 81 IS NULL
----

query I rowsort
SELECT - - 64 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT DISTINCT + 19 * - 79 + col2 DIV + - 8 + - 63 * - + ( col0 ) FROM tab1 AS cor0
----
1700
3847
4224

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + 19 * - 79 + col2 / + - 8 + - 63 * - + ( col0 ) FROM tab1 AS cor0
----
1700
3847
4224

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 71 * + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2646
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2646
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT - 56 DIV 5 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif mysql # not compatible
query I rowsort label-2647
SELECT - 56 / 5 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # DIV for integer division: 
query II rowsort label-2648
SELECT - 98 + - + col1, + col0 DIV col2 AS col2 FROM tab1
----
-103
1
-112
0
-145
1

skipif mysql # not compatible
query II rowsort label-2648
SELECT - 98 + - + col1, + col0 / col2 AS col2 FROM tab1
----
-103
1
-112
0
-145
1

query I rowsort
SELECT col1 + col1 + col0 AS col0 FROM tab2
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT - col0 + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

skipif mysql # not compatible
query II rowsort label-2650
SELECT - col0 + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-37
NULL
-44
NULL
-80
NULL

query I rowsort
SELECT ALL - 48 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL + 78 + - COUNT( * ) + - - COUNT( * ) * + - COUNT( * ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + 78 + - COUNT ( * ) + - - COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + MIN( - - 98 ) + + 19 * ( COUNT( ALL - + col0 ) ) FROM tab1
----
155

skipif mysql # not compatible
query I rowsort label-2653
SELECT + MIN ( - - 98 ) + + 19 * ( COUNT ( ALL - + col0 ) ) FROM tab1
----
155

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 69
----

query I rowsort
SELECT ALL + col0 * 6 - - 45 * 21 FROM tab2 cor0
----
1221
1329
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-2656
SELECT ALL - 61 * - 19 + 50 DIV + 79 FROM tab0
----
1159
1159
1159

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - 61 * - 19 + 50 / + 79 FROM tab0
----
1159
1159
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL - - SUM( ALL - 35 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-315

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - - SUM ( ALL - 35 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT - COUNT( DISTINCT col2 ) - - 91 - - 11 * + - 64 AS col1 FROM tab0
----
-616

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT - COUNT ( DISTINCT col2 ) - - 91 - - 11 * + - 64 AS col1 FROM tab0
----
-616

query I rowsort
SELECT DISTINCT - col0 - - + col2 AS col0 FROM tab0
----
-77
2
32

query I rowsort
SELECT col1 - - - 34 FROM tab1 AS cor0
----
-20
-29
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT - + 19 * - + COUNT( * ) AS col1 FROM tab1 cor0
----
57

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT - + 19 * - + COUNT ( * ) AS col1 FROM tab1 cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT COUNT( * ) * - 97 FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-2662
SELECT COUNT ( * ) * - 97 FROM tab1 AS cor0
----
-291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2664
SELECT - + CAST( + col2 AS SIGNED ) * col0 * 83 AS col0 FROM tab2 AS cor0
----
-212480
-361050
-87814

skipif mysql # not compatible
query I rowsort label-2664
SELECT - + CAST ( + col2 AS INTEGER ) * col0 * 83 AS col0 FROM tab2 AS cor0
----
-212480
-361050
-87814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT DISTINCT - 91 * + CAST( NULL AS SIGNED ) * + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT - 91 * + CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - + col2 ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT DISTINCT - col0 * - + CAST( + 95 AS SIGNED ) FROM tab0
----
1425
8265
9215

skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - col0 * - + CAST ( + 95 AS INTEGER ) FROM tab0
----
1425
8265
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-2668
SELECT col1 * - col0 * 6 * + col0 * - col0 DIV col0 FROM tab1
----
216750
218484
2335242

skipif mysql # not compatible
query I rowsort label-2668
SELECT col1 * - col0 * 6 * + col0 * - col0 / col0 FROM tab1
----
216750
218484
2335242

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT col2 DIV - 94 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2669
SELECT col2 / - 94 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - COUNT( - 29 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2670
SELECT - COUNT ( - 29 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT COUNT( - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2671
SELECT COUNT ( - col1 ) FROM tab1
----
3

query I rowsort
SELECT ALL + 38 * - col2 FROM tab2
----
-1520
-2204
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT - col1 DIV - 85 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2673
SELECT - col1 / - 85 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( - + col1 ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT - CAST( AVG ( ALL 34 ) AS SIGNED ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - CAST ( AVG ( ALL 34 ) AS INTEGER ) FROM tab1
----
-34

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab0 cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT - + SUM( + 73 ) col1 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT - + SUM ( + 73 ) col1 FROM tab1 AS cor0
----
-219

query I rowsort
SELECT + 50 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT + SUM( DISTINCT - 91 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-2679
SELECT + SUM ( DISTINCT - 91 ) FROM tab0
----
-91

query I rowsort
SELECT DISTINCT - 40 + + col0 FROM tab1
----
11
45
51

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 - + col1 - col1 + 63 * + col0 - col1 col2 FROM tab0 AS cor0
----
5515
6304
764

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT - CAST( + + 67 AS SIGNED ) FROM tab2
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-2686
SELECT - CAST ( + + 67 AS INTEGER ) FROM tab2
----
-67
-67
-67

query I rowsort
SELECT DISTINCT 14 + col1 FROM tab2
----
65
81
91

query I rowsort
SELECT DISTINCT - + 78 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT - SUM( ALL + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2689
SELECT - SUM ( ALL + col0 ) FROM tab1
----
-227

query I rowsort
SELECT ALL col2 + 72 + - col0 AS col2 FROM tab1
----
117
46
49

query I rowsort
SELECT + col1 * - - col1 AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT ( - - col0 ) - + - 16 FROM tab0 AS cor0
----
103
113
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE + CAST( - col2 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL col2 * col2 * + col2 + - col2 AS col1 FROM tab0
----
103776
970200
990

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2697
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT + - 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2700
SELECT + - AVG ( + CAST( 13 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT + - AVG ( + CAST ( 13 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col1 FROM tab0 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2702
SELECT - + ( + + 37 ) AS col1, 60 * - COUNT( * ) FROM tab0 AS cor0
----
-37
-180

skipif mysql # not compatible
query II rowsort label-2702
SELECT - + ( + + 37 ) AS col1, 60 * - COUNT ( * ) FROM tab0 AS cor0
----
-37
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2703
SELECT ALL col1 DIV - - col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL col1 / - - col0 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + + col2 NOT BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2705
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT 54 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57 AS col0, - col2 col0 FROM tab0 AS cor0 WHERE NOT col0 * - + col0 BETWEEN col2 AND - col2 + - col1
----
-57
-10
-57
-47
-57
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL 14 * + MAX( DISTINCT + - col1 ) * 22 FROM tab1
----
-1540

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 14 * + MAX ( DISTINCT + - col1 ) * 22 FROM tab1
----
-1540

query I rowsort
SELECT DISTINCT + 78 * 82 FROM tab2
----
6396

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT + + col0 NOT BETWEEN + ( - 72 ) AND 8
----
0

skipif mysql # not compatible
query I rowsort label-2710
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + col0 NOT BETWEEN + ( - 72 ) AND 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT SUM( ALL col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2711
SELECT SUM ( ALL col0 ) FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT ALL col0 DIV + col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL col0 / + col2 AS col1 FROM tab2
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT - 86 DIV + 85 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2713
SELECT - 86 / + 85 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2714
SELECT DISTINCT + 31 AS col0, - ( + + MIN( DISTINCT CAST( + + col1 AS SIGNED ) ) ) FROM tab0
----
31
-1

skipif mysql # not compatible
query II rowsort label-2714
SELECT DISTINCT + 31 AS col0, - ( + + MIN ( DISTINCT CAST ( + + col1 AS INTEGER ) ) ) FROM tab0
----
31
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT COUNT( * ) * - COUNT( DISTINCT - + ( 99 ) ) * + COUNT( * ) + - 73 + + + COUNT( * ) AS col2 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-2715
SELECT COUNT ( * ) * - COUNT ( DISTINCT - + ( 99 ) ) * + COUNT ( * ) + - 73 + + + COUNT ( * ) AS col2 FROM tab1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL 87 * + SUM( DISTINCT - CAST( + - col1 AS SIGNED ) ) AS col2 FROM tab2
----
16965

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL 87 * + SUM ( DISTINCT - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab2
----
16965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 / + col0 AS col1, col1 * col1 + + - 2 + - 61 col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 16 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) >= + col1 + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT SUM( DISTINCT + col1 ) * - - 75 AS col0 FROM tab2 AS cor0
----
14625

skipif mysql # not compatible
query I rowsort label-2719
SELECT SUM ( DISTINCT + col1 ) * - - 75 AS col0 FROM tab2 AS cor0
----
14625

query I rowsort
SELECT ALL + + col0 * col2 + 98 + 52 FROM tab1 AS cor0
----
5046
5165
6338

query II rowsort
SELECT DISTINCT + col0 * - + col2 + + col1 AS col1, col2 * 18 FROM tab0 AS cor0
----
-624
846
-849
180
-9602
1782

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT col0 + 51 * 11 FROM tab1
----
612
646
652

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT - 5 DIV col1 + col2 * + col1 FROM tab1
----
1344
294
3196

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - 5 / col1 + col2 * + col1 FROM tab1
----
1344
294
3196

query III rowsort
SELECT * FROM tab1 WHERE NOT - 39 * 95 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT - COUNT( col0 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2726
SELECT - COUNT ( col0 ) col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT DISTINCT - col1 DIV col1 + - col0 AS col1 FROM tab0 WHERE NOT col1 IN ( + 47 )
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - col1 / col1 + - col0 AS col1 FROM tab0 WHERE NOT col1 IN ( + 47 )
----
-16
-88
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2728
SELECT - 90 DIV col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 90 / col2 AS col2 FROM tab2
----
-1
-2
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 - - col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2730
SELECT 1 DIV COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2730
SELECT 1 / COUNT ( * ) col0 FROM tab0
----
0

query I rowsort
SELECT ALL 98 - 36 FROM tab1 WHERE 7 * - 56 + + col1 IS NOT NULL
----
62
62
62

query I rowsort
SELECT 8 - - ( - col1 ) FROM tab2
----
-43
-59
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT 76 * - COUNT( * ) AS col1 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-2733
SELECT 76 * - COUNT ( * ) AS col1 FROM tab2
----
-228

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2734
SELECT DISTINCT - COUNT( * ) * 89 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - COUNT ( * ) * 89 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + ( 96 ) * col0 FROM tab0
----
1440
8352
9312

query I rowsort
SELECT - 80 * - 95 FROM tab2
----
7600
7600
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT ( + 92 ) * - col0 FROM tab2
----
-4232
-5888
-6900

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ALL col0 DIV 55 + - col2 * + col0 AS col1 FROM tab0 WHERE + 85 NOT IN ( col1 * col1 )
----
-705
-869
-9602

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL col0 / 55 + - col2 * + col0 AS col1 FROM tab0 WHERE + 85 NOT IN ( col1 * col1 )
----
-705
-869
-9602

query I rowsort
SELECT 31 * + ( col0 ) AS col1 FROM tab2
----
1426
1984
2325

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT ALL + COUNT( * ) * COUNT( * ) + MIN( DISTINCT + 14 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2741
SELECT ALL + COUNT ( * ) * COUNT ( * ) + MIN ( DISTINCT + 14 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab1 WHERE + 75 - col2 <> ( - col0 )
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( + col2 - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2744
SELECT SUM( col0 ) DIV + SUM( ALL col0 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2744
SELECT SUM ( col0 ) / + SUM ( ALL col0 ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 53 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2746
SELECT COUNT( CAST( 46 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2746
SELECT COUNT ( CAST ( 46 AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2747
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2748
SELECT - 10 DIV COUNT( DISTINCT + 12 * + col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 10 / COUNT ( DISTINCT + 12 * + col2 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT DISTINCT COUNT( ALL + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT COUNT ( ALL + col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab2 cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT + SUM( ALL - col0 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col1 + col0 ) AND ( + col0 / col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT DISTINCT + SUM ( ALL - col0 ) col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col1 + col0 ) AND ( + col0 / col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( 75 ) + + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * col1 * + col2 AS col0 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND col1 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT col2 * 65 FROM tab0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2757
SELECT col2 * 65 FROM tab0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 84 * - ( + 25 ) * + 3 FROM tab0
----
-6300
-6300
-6300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 28 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + 30 AS col1 FROM tab0
----
-1410
-2970
-300

query I rowsort
SELECT ALL 11 * 24 FROM tab2
----
264
264
264

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT DISTINCT 29 DIV col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT 29 / col2 FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / col2 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + ( - col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( + col1 * + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT + SUM( ALL - + col1 ) * MIN( ALL + 90 DIV - col1 + - 23 ) FROM tab0 cor0
----
11639

skipif mysql # not compatible
query I rowsort label-2769
SELECT + SUM ( ALL - + col1 ) * MIN ( ALL + 90 / - col1 + - 23 ) FROM tab0 cor0
----
11639

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2770
SELECT - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT MIN( ALL - 90 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-2771
SELECT MIN ( ALL - 90 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE ( NULL ) IS NULL
----
51
67
77

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( + 92 ) IS NOT NULL
----

query I rowsort
SELECT 37 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - 71 + 36 BETWEEN - 60 AND ( NULL )
----
91
47
68

query I rowsort
SELECT - 81 + + 72 FROM tab0 AS cor0
----
-9
-9
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 83 * col2 AS col2 FROM tab1 AS cor0 WHERE NULL <> ( ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT 25 + - - COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-2779
SELECT 25 + - - COUNT ( * ) FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT ALL - ( COUNT( * ) ) * + 99 + - COUNT( * ) * + 16 FROM tab2 cor0 WHERE NOT - 49 NOT IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL - ( COUNT ( * ) ) * + 99 + - COUNT ( * ) * + 16 FROM tab2 cor0 WHERE NOT - 49 NOT IN ( - col1 )
----
0

query I rowsort
SELECT DISTINCT - col2 - col2 AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab0 AS cor0 WHERE - 78 < ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + + 32 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col0 + - - col1 + + - col1 + 11 * 65 FROM tab2 AS cor0
----
761
779
790

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 49 * ( 3 ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT - 78 * + COUNT( ALL col1 ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2786
SELECT - 78 * + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT 57 * - col1 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT 57 * - col1 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 - col0 + ( - 85 ) * 90 <= ( + 12 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( - col0 / - 39 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 63 * - col2 - col1 FROM tab1
----
-3722
-4331
-6062

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT COUNT( * ) * COUNT( * ) FROM tab2 WHERE ( + 85 / + - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT COUNT ( * ) * COUNT ( * ) FROM tab2 WHERE ( + 85 / + - col2 ) IS NULL
----
0

query I rowsort
SELECT ALL 15 + - - ( 74 ) + + 40 AS col1 FROM tab1
----
129
129
129

query III rowsort
SELECT * FROM tab1 WHERE - - col0 + - 22 + + col0 * - col1 * col0 NOT IN ( col0 * - 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 FROM tab0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + col1 + 76 FROM tab0
----
157
77
97

query I rowsort
SELECT 17 - col1 * - col0 + - col0 AS col1 FROM tab0
----
1217
17
1757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2798
SELECT ALL CAST( NULL AS SIGNED ) - 29 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL CAST ( NULL AS INTEGER ) - 29 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT - CAST( - - 98 AS SIGNED ) - + + CAST( + - 29 AS SIGNED ) FROM tab2 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-2799
SELECT - CAST ( - - 98 AS INTEGER ) - + + CAST ( + - 29 AS INTEGER ) FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2800
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2800
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + - col0 col0 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT + COUNT( * ) + COUNT( * ) + + - 52 AS col0 FROM tab1 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2803
SELECT + COUNT ( * ) + COUNT ( * ) + + - 52 AS col0 FROM tab1 cor0
----
-46

query I rowsort
SELECT 48 * col2 + 86 FROM tab0 AS cor0
----
2342
4838
566

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL col2 DIV - + 38 + col1 * + - 29 FROM tab1 AS cor0
----
-1364
-146
-408

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL col2 / - + 38 + col1 * + - 29 FROM tab1 AS cor0
----
-1364
-146
-408

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT + ( 15 ) IN ( - + col1 / 19 )
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE 84 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + MIN( DISTINCT + + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2808
SELECT + MIN ( DISTINCT + + col2 ) FROM tab2
----
23

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + MIN( ALL + col2 ) col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT + MIN ( ALL + col2 ) col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 ) NOT IN ( - 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + 40 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + - 17 + - col2 NOT IN ( - col2 )
----

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE NOT - col0 <> - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + + 59 * - + 54 FROM tab2 cor0
----
-3186

query I rowsort
SELECT + - col2 * - - col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + + col0 + + 66 FROM tab1
----
131
156
204

onlyif mysql # DIV for integer division: 
query I rowsort label-2822
SELECT 15 DIV ( - col2 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2822
SELECT 15 / ( - col2 ) AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT 87 AS col1, col0 AS col1 FROM tab0
----
87
15
87
87
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( col1 + col0, 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 92 * - + col0 FROM tab1 AS cor0
----
-4692
-7820
-8372

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL ( + col0 ) AS col2 FROM tab2 WHERE - col1 - - + 45 = NULL
----

query II rowsort
SELECT DISTINCT col0 - - + col0, col0 FROM tab2 AS cor0
----
128
64
150
75
92
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT - COUNT( * ) + 20 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT - COUNT ( * ) + 20 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT + COUNT( * ) - - COUNT( * ) col0, 75 AS col0 FROM tab2 AS cor0
----
6
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2832
SELECT + COUNT ( * ) - - COUNT ( * ) col0, 75 AS col0 FROM tab2 AS cor0
----
6
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 3 > ( - 88 * col0 )
----

query I rowsort
SELECT + col2 * + col2 + + col1 * - col1 FROM tab0 AS cor0
----
-341
-4352
9800

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL <= - + 79
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 = ( - - 85 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2837
SELECT CAST( 52 AS SIGNED ) + 0, col1 FROM tab1
----
52
14
52
47
52
5

skipif mysql # not compatible
query II rowsort label-2837
SELECT CAST ( 52 AS INTEGER ) + 0, col1 FROM tab1
----
52
14
52
47
52
5

query I rowsort
SELECT col2 + - - 35 FROM tab1
----
103
131
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT DISTINCT col2 * col0 * + 66 + - 63 DIV - 49 FROM tab2
----
168961
287101
69829

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT col2 * col0 * + 66 + - 63 / - 49 FROM tab2
----
168961
287101
69829

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT - MAX( ALL - 4 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2840
SELECT - MAX ( ALL - 4 ) AS col2 FROM tab1
----
4

query I rowsort
SELECT DISTINCT col1 * col0 * - - col2 - - - 73 FROM tab0
----
18197
57032
9530

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 * 3 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL + MAX( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

query II rowsort
SELECT ALL col1, + col1 AS col2 FROM tab2 cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - col2 * - - col0 + 45 FROM tab1 cor0
----
-4851
-4970
-6143

query II rowsort
SELECT + ( + col2 ) AS col1, ( - 84 ) FROM tab0
----
10
-84
47
-84
99
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT + - COUNT( * ) col1 FROM tab2 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-2847
SELECT + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL 44 - - - col2 FROM tab0 cor0 WHERE ( NULL ) = col0 OR NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 4 NOT IN ( + 84, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2849
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 4 NOT IN ( + 84, col1 )
----
0

query I rowsort
SELECT - ( 35 ) + 1 + - col0 AS col0 FROM tab0 AS cor0 WHERE - 97 IS NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT DISTINCT 39 * - COUNT( * ) - - + 48 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT 39 * - COUNT ( * ) - - + 48 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - COUNT( * ) + - ( COUNT( * ) ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2852
SELECT - COUNT ( * ) + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT col0 * CAST( 61 AS SIGNED ) + + ( + 3 ) AS col1 FROM tab0 AS cor0
----
5310
5920
918

skipif mysql # not compatible
query I rowsort label-2853
SELECT col0 * CAST ( 61 AS INTEGER ) + + ( + 3 ) AS col1 FROM tab0 AS cor0
----
5310
5920
918

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT SUM( col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT SUM ( col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT 3 + + - 26 FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + COUNT( ALL col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2856
SELECT + COUNT ( ALL col0 ) col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT DISTINCT CAST( - 10 AS SIGNED ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2858
SELECT DISTINCT CAST ( - 10 AS INTEGER ) col0 FROM tab0
----
-10

query I rowsort
SELECT ALL + 51 AS col1 FROM tab0
----
51
51
51

query II rowsort
SELECT DISTINCT - - col2 * - + ( - 23 ) AS col1, 63 - - col2 AS col1 FROM tab2 AS cor0
----
1334
121
529
86
920
103

query I rowsort
SELECT - col1 * col1 + + - 91 FROM tab1 AS cor0
----
-116
-2300
-287

query I rowsort
SELECT 12 + - - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
35
52
70

query II rowsort
SELECT + col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL 61 * - col2 * - 17 * + col0 FROM tab2 AS cor0
----
1097146
2654720
4510950

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 * + col2 / + col0 ) BETWEEN col1 - + col1 AND + col1 - + col2
----

query I rowsort
SELECT DISTINCT col2 - - col1 AS col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - col0 + - 17 FROM tab1 AS cor0
----
-102
-108
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 75 + - col1 + + col2, 59, 14 * col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2869
SELECT 78, - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
78
0
78
0
78
0

skipif mysql # not compatible
query II rowsort label-2869
SELECT 78, - col2 / col0 AS col2 FROM tab2 AS cor0
----
78
0
78
0
78
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col1 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2871
SELECT COUNT( * ) DIV + 50 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT COUNT ( * ) / + 50 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT col0 DIV + + 48 col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2872
SELECT col0 / + + 48 col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query II rowsort
SELECT ALL - - col1, 27 AS col1 FROM tab0 AS cor0
----
1
27
21
27
81
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT ALL - col1 + 35 + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-106
-107
-62

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - col1 + 35 + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-106
-107
-62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2877
SELECT col2 DIV - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2877
SELECT col2 / - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-99
0
0

query I rowsort
SELECT DISTINCT col1 - col0 + - 58 * + 45 + + + col0 AS col0 FROM tab0
----
-2529
-2589
-2609

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - - col0 * - + 16 * + 12 * - 12 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - - 43 col1, + col1 * col1 FROM tab2
----
2193
2601
2881
4489
3311
5929

query II rowsort
SELECT - col2 * - 19, + col1 FROM tab1
----
1121
5
1292
47
1824
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2882
SELECT ALL * FROM tab2 WHERE + 87 > + 35 * + ( - + CAST( + 15 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2882
SELECT ALL * FROM tab2 WHERE + 87 > + 35 * + ( - + CAST ( + 15 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT DISTINCT MIN( + col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT MIN ( + col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT COUNT ( * ) col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT COUNT( ALL - col0 ) * 75 AS col0 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT COUNT ( ALL - col0 ) * 75 AS col0 FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2886
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT 62 * + + ( ( + col0 ) ) * + col0 + - 40 AS col2 FROM tab2
----
131152
253912
348710

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + + col0, col2, + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2890
SELECT ALL - 28 DIV - col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2890
SELECT ALL - 28 / - col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT + 57 >= NULL
----

query I rowsort
SELECT 98 * + 20 AS col2 FROM tab1 AS cor0
----
1960
1960
1960

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > + col1 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 AS col2, + 0 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2896
SELECT + - COUNT( * ), + CAST( - ( 2 ) AS SIGNED ) + + 67 AS col1 FROM tab1 AS cor0
----
-3
65

skipif mysql # not compatible
query II rowsort label-2896
SELECT + - COUNT ( * ), + CAST ( - ( 2 ) AS INTEGER ) + + 67 AS col1 FROM tab1 AS cor0
----
-3
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 93 col0, - 40 col0 FROM tab0 AS cor0
----
93
-40
93
-40
93
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT - + SUM( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2898
SELECT - + SUM ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
-185

query II rowsort
SELECT DISTINCT 49, + col2 FROM tab2 cor0
----
49
23
49
40
49
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = col2
----

query II rowsort
SELECT DISTINCT + 6 + + - 89, col2 FROM tab0
----
-83
10
-83
47
-83
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + 6 + 39
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL - COUNT( * ) + + - 0 DIV - 8 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL - COUNT ( * ) + + - 0 / - 8 AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + - COUNT( * ) FROM tab1 WHERE NOT + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + - COUNT ( * ) FROM tab1 WHERE NOT + col1 >= NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + 77 AS col2 FROM tab2
----
100
117
135

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 86 IN ( - col1 * col2 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * - - col0 * + 12 AS col0 FROM tab0
----
1164
14580
21924

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT - + 36 * + MIN( ALL col2 ) AS col0 FROM tab1 WHERE NOT + + col2 * - 94 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - + 36 * + MIN ( ALL col2 ) AS col0 FROM tab1 WHERE NOT + + col2 * - 94 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + 84 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT - 95 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2911
SELECT - 95 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - col2 ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39, 37 col2 FROM tab2
----
39
37
39
37
39
37

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 83 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2918
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2918
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 72 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 64 IS NULL
----

query I rowsort
SELECT DISTINCT ( + + col0 ) - + 47 AS col1 FROM tab0 AS cor0
----
-32
40
50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 20 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + + col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT + + AVG ( + CAST( NULL AS SIGNED ) ) * - + 46 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT + + AVG ( + CAST ( NULL AS INTEGER ) ) * - + 46 AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 > NULL
----

query II rowsort
SELECT DISTINCT 53, ( + col2 ) FROM tab0
----
53
10
53
47
53
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT - ( + + COUNT( * ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL col0 * - 71 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT + 73 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2929
SELECT + 73 / + col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT 15 * ( + + 47 ) + - col2 FROM tab0 WHERE NULL IS NULL
----
606
658
695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2931
SELECT ALL COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) * - - 49 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) * - - 49 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
3
NULL

query I rowsort
SELECT ALL + 78 * - col0 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT DISTINCT - AVG ( - 3 ) * CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT DISTINCT - AVG ( - 3 ) * CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT ALL + 11 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
11
15
11
87
11
97

query I rowsort
SELECT DISTINCT ( - + ( 42 ) ) FROM tab2 AS cor0
----
-42

query II rowsort
SELECT + 0 AS col2, 79 FROM tab2 AS cor0
----
0
79
0
79
0
79

query I rowsort
SELECT - 35 * + col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + MAX( DISTINCT - 71 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-68

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + MAX ( DISTINCT - 71 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-68

query I rowsort
SELECT AVG ( 32 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2941
SELECT - COUNT( * ) * + 13 + + + CAST( NULL AS SIGNED ) + 59 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT - COUNT ( * ) * + 13 + + + CAST ( NULL AS INTEGER ) + 59 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 8 + - - col2 * + 91 * + + 21 AS col0 FROM tab1 AS cor0
----
112757
129956
183464

query II rowsort
SELECT ALL 76 + - + col2 + - + col2 AS col2, ( + ( + - col0 ) ) FROM tab0 AS cor0
----
-122
-97
-18
-15
56
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2944
SELECT + + col1 + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-2944
SELECT + + col1 + col1 / - col2 AS col2 FROM tab0 AS cor0
----
1
19
80

query II rowsort
SELECT ALL + col0 AS col0, col1 * + col0 AS col1 FROM tab0
----
15
1215
87
1827
97
97

query I rowsort
SELECT ALL - ( - - ( + AVG ( - 63 ) ) ) FROM tab2 WHERE NOT NULL >= col1 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL + SUM( - col0 ) + + + 4 AS col1 FROM tab2
----
-181

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL + SUM ( - col0 ) + + + 4 AS col1 FROM tab2
----
-181

query I rowsort
SELECT DISTINCT - 45 - + col1 FROM tab2
----
-112
-122
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT DISTINCT CAST( MAX( DISTINCT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT CAST ( MAX ( DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2950
SELECT - + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - MAX( ALL - col2 ) + MIN( col2 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2951
SELECT - MAX ( ALL - col2 ) + MIN ( col2 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2952
SELECT * FROM tab0 WHERE + 98 * CAST( - col0 AS DECIMAL ) - - - col0 + - 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2952
SELECT * FROM tab0 WHERE + 98 * CAST ( - col0 AS REAL ) - - - col0 + - 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - MAX( ALL - - 18 ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-2953
SELECT - MAX ( ALL - - 18 ) AS col0 FROM tab2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2954
SELECT DISTINCT - MAX( - CAST( NULL AS DECIMAL ) ) - COUNT( * ) + - 9 * + - 60 * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - MAX ( - CAST ( NULL AS REAL ) ) - COUNT ( * ) + - 9 * + - 60 * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) <= - + col0
----

query I rowsort
SELECT 91 * + + col1 * - col0 AS col0 FROM tab2 cor0
----
-213486
-448448
-457275

query I rowsort
SELECT - - 92 AS col2 FROM tab1 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL - MAX( ALL - 6 ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - MAX ( ALL - 6 ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL col2 * + - col2 * - col0 * + - col2 AS col1 FROM tab1
----
-17457215
-28613312
-45121536

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT COUNT( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 22 * - + 58 FROM tab2
----
-1276
-1276
-1276

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT - ( + SUM( ALL + - col2 ) ) FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT - ( + SUM ( ALL + - col2 ) ) FROM tab2 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL - COUNT( * ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2964
SELECT ALL - COUNT ( * ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT ALL COUNT( DISTINCT + 80 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL COUNT ( DISTINCT + 80 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT col1 * col2 * + 70 FROM tab0
----
14700
266490
6930

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <> NULL
----

query I rowsort
SELECT ALL 17 * - + col0 AS col2 FROM tab1 AS cor0
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT ALL - - SUM( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2970
SELECT ALL - - SUM ( DISTINCT + col2 ) col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL + col2 * - + 69 FROM tab2 cor0
----
-1587
-2760
-4002

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT ALL - 29 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2974
SELECT ALL - + 82 col1, col0 + - + col1 DIV col0 FROM tab1 AS cor0
----
-82
51
-82
85
-82
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2974
SELECT ALL - + 82 col1, col0 + - + col1 / col0 FROM tab1 AS cor0
----
-82
51
-82
85
-82
91

query II rowsort
SELECT - - col2, - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - 73 FROM tab0 cor0
----
15
-73
87
-73
97
-73

query I rowsort
SELECT - - col2 * - - 39 FROM tab1 cor0
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL - COUNT( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL - COUNT ( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * + - 20 + + + col2 col2 FROM tab2 AS cor0
----
1320
1558
943

query I rowsort
SELECT DISTINCT col0 + + 61 * - - col1 FROM tab2
----
3157
4162
4761

query I rowsort
SELECT - col2 + + + 15 AS col1 FROM tab2
----
-25
-43
-8

query I rowsort
SELECT ( + col2 ) + - 79 * - col1 AS col2 FROM tab2
----
4052
5351
6123

query I rowsort
SELECT col0 + 63 FROM tab1
----
114
148
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT - COUNT( * ) * - + 2 AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - COUNT ( * ) * - + 2 AS col0 FROM tab2
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT 40 + + col0 FROM tab0 AS cor0
----
127
137
55

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - - 67 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT ALL - col1 + + ( 34 ) DIV col0 FROM tab0
----
-1
-21
-79

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL - col1 + + ( 34 ) / col0 FROM tab0
----
-1
-21
-79

query I rowsort
SELECT DISTINCT - 0 * - col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT - - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > - 38 * col0 / + col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2991
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE ( - 30 ) = ( - 6 + - CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE ( - 30 ) = ( - 6 + - CAST ( NULL AS REAL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL CAST( - AVG ( DISTINCT - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL CAST ( - AVG ( DISTINCT - col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 54 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2994
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2994
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT COUNT( * ) * 57 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2996
SELECT COUNT ( * ) * 57 FROM tab0 AS cor0
----
171

query II rowsort
SELECT col1 AS col0, + col2 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2998
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - CAST( NULL AS SIGNED ) + 97 + + col2 + col2 + - col0 / + 69 * + 52
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - CAST ( NULL AS INTEGER ) + 97 + + col2 + col2 + - col0 / + 69 * + 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT 17 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT 17 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - + col2 ) * - col0 * col0 AS col1 FROM tab0
----
10575
75690
931491

query I rowsort
SELECT ALL + 14 AS col0 FROM tab2
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT 88 * - - 92 * COUNT( * ) FROM tab2
----
24288

skipif mysql # not compatible
query I rowsort label-3002
SELECT 88 * - - 92 * COUNT ( * ) FROM tab2
----
24288

query I rowsort
SELECT 11 * 3 AS col0 FROM tab1
----
33
33
33

query I rowsort
SELECT 29 * - + col1 AS col2 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL + + MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL + + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3006
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - CAST( + - col0 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3006
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - CAST ( + - col0 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT DISTINCT - CAST( + - 49 AS SIGNED ) + + + col0 AS col0 FROM tab1 AS cor0
----
100
134
140

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - CAST ( + - 49 AS INTEGER ) + + + col0 AS col0 FROM tab1 AS cor0
----
100
134
140

query II rowsort
SELECT DISTINCT + 8 * col0 * - col1 * - + col0 AS col2, 26 + + 72 - + + 79 - col2 * + + 19 + col1 AS col0 FROM tab1 AS cor0
----
289000
-1097
291312
-1791
3113656
-1226

query II rowsort
SELECT + col2 AS col0, col1 * 75 + + ( - + col0 ) + - 47 + - col1 FROM tab1
----
59
238
68
3340
96
938

query I rowsort
SELECT DISTINCT + 19 * - 96 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-1824

query I rowsort
SELECT - 71 + - - col0 FROM tab0
----
-56
16
26

query I rowsort
SELECT ALL + 57 + - - 75 FROM tab1 AS cor0
----
132
132
132

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + ( - COUNT( * ) ) + + 89 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-3013
SELECT + ( - COUNT ( * ) ) + + 89 FROM tab1 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * - 28 col1 FROM tab1 AS cor0
----
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT + COUNT( * ) + 36 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3016
SELECT + COUNT ( * ) + 36 FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL + 46 * + 75 AS col0 FROM tab2 AS cor0 WHERE + col0 < - + col2 * - col2
----
3450
3450
3450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3018
SELECT ALL - + col0 * CAST( - 63 AS SIGNED ), - col0 DIV + - col1 col2 FROM tab0 AS cor0
----
5481
4
6111
97
945
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3018
SELECT ALL - + col0 * CAST ( - 63 AS INTEGER ), - col0 / + - col1 col2 FROM tab0 AS cor0
----
5481
4
6111
97
945
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT - ( + + 28 ) >= NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 / + - col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1, + col2 FROM tab1 WHERE 35 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + - 3 AS col0 FROM tab0
----
12
84
94

query I rowsort
SELECT ALL col2 * + - col0 + + col0 * + + col1 AS col1 FROM tab0
----
-9506
510
957

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT ALL CAST( NULL AS SIGNED ) * + ( + 24 ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL CAST ( NULL AS INTEGER ) * + ( + 24 ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 - + 6 - 29 FROM tab1
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT - col2 - + col2 * 56 AS col0 FROM tab2 AS cor0
----
-1311
-2280
-3306

query II rowsort
SELECT ALL ( - - 27 ) * ( 0 ) AS col1, col1 AS col2 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3029
SELECT + col0 - + + CAST( NULL AS SIGNED ) + - ( - + 77 ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3029
SELECT + col0 - + + CAST ( NULL AS INTEGER ) + - ( - + 77 ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - + col0, 29 col2 FROM tab2 AS cor0
----
1058
29
2560
29
4350
29

query I rowsort
SELECT ALL + 19 * - - 97 + - 89 AS col0 FROM tab0 AS cor0
----
1754
1754
1754

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT ALL 91 DIV + col2 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL 91 / + col2 AS col0 FROM tab1 cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT + - ( - - col0 ) DIV col1 * col1 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-4958
51
77

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + - ( - - col0 ) / col1 * col1 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-4958
51
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3035
SELECT + MAX( 44 ) AS col1, 9 AS col2 FROM tab0 cor0
----
44
9

skipif mysql # not compatible
query II rowsort label-3035
SELECT + MAX ( 44 ) AS col1, 9 AS col2 FROM tab0 cor0
----
44
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT DISTINCT - - COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3037
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) * + ( - + 38 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3037
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) * + ( - + 38 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-3038
SELECT ALL + CAST( NULL AS SIGNED ), + col2 + - col0 * - col1 AS col2, - - 72 DIV col2 AS col0 FROM tab0
----
9 values hashing to a4c593f4222067a3284653de27d83161

skipif mysql # not compatible
query III rowsort label-3038
SELECT ALL + CAST ( NULL AS INTEGER ), + col2 + - col0 * - col1 AS col2, - - 72 / col2 AS col0 FROM tab0
----
9 values hashing to a4c593f4222067a3284653de27d83161

query III rowsort
SELECT * FROM tab1 WHERE NOT + 44 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col2 FROM tab0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT + SUM( DISTINCT 16 ) AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + SUM ( DISTINCT 16 ) AS col2 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT MIN( 96 ) * 43 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4128

skipif mysql # not compatible
query I rowsort label-3042
SELECT MIN ( 96 ) * 43 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4128

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT COUNT( * ) * - - 42 AS col2 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-3043
SELECT COUNT ( * ) * - - 42 AS col2 FROM tab2
----
126

query I rowsort
SELECT - 4 + + col1 * - col1 * 93 + - col1 AS col0 FROM tab0 WHERE NOT + + col0 > - 79 * ( - - 13 ) * + col0
----

query I rowsort
SELECT + col1 * - + col1 AS col0 FROM tab0
----
-1
-441
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 57 + ( col1 ) FROM tab0
----
1
58
21
78
81
138

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col2 * col1 + + 69
----

query I rowsort
SELECT DISTINCT + col2 + - 41 * - + ( + - col1 ) AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-146
-1859
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 15 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 * - col2, - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-100
870
-2209
705
-9801
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3052
SELECT ALL + - CAST( NULL AS SIGNED ) + MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT DISTINCT - 31 DIV - col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - 31 / - col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - col0 * + - ( + col1 ) + - + col1 AS col2 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT + 89 * 31 + - col1 DIV col1 col2 FROM tab1
----
2758
2758
2758

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3055
SELECT + 89 * 31 + - col1 / col1 col2 FROM tab1
----
2758
2758
2758

query I rowsort
SELECT col2 + + + col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - COUNT( * ) + - MAX( DISTINCT - col1 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT - col1 ) FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT - CAST( NULL AS SIGNED ) + + ( + col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT - CAST ( NULL AS INTEGER ) + + ( + col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 44 + col0 * - col2 AS col2 FROM tab0
----
-9559
2859
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ( - ( - COUNT( * ) ) ) * - SUM( ALL - col1 ) + + 62 + - + COUNT( * ) AS col2 FROM tab1
----
257

skipif mysql # not compatible
query I rowsort label-3060
SELECT ( - ( - COUNT ( * ) ) ) * - SUM ( ALL - col1 ) + + 62 + - + COUNT ( * ) AS col2 FROM tab1
----
257

query I rowsort
SELECT 38 + + col1 FROM tab0
----
119
39
59

query I rowsort
SELECT DISTINCT 97 - - col1 * 47 FROM tab2 AS cor0
----
2494
3246
3716

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL - SUM( ALL 24 ) FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL - SUM ( ALL 24 ) FROM tab2
----
-72

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 3
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3065
SELECT ALL - - CAST( NULL AS DECIMAL ), col1 * + 33 * + - col0 AS col2 FROM tab1 cor0
----
NULL
-14025
NULL
-141141
NULL
-23562

skipif mysql # not compatible
query II rowsort label-3065
SELECT ALL - - CAST ( NULL AS REAL ), col1 * + 33 * + - col0 AS col2 FROM tab1 cor0
----
NULL
-14025
NULL
-141141
NULL
-23562

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + + ( - - SUM( - 99 ) ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-3066
SELECT + + ( - - SUM ( - 99 ) ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT ALL + 60 AS col2, ( - COUNT( * ) ) FROM tab1 AS cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-3067
SELECT ALL + 60 AS col2, ( - COUNT ( * ) ) FROM tab1 AS cor0
----
60
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 51 * + - col2 + - 17 + - 51 + col1 + - col0 + 83 * - + 30 AS col2 FROM tab1 AS cor0 WHERE col1 <= - col2 + + ( - - col1 )
----

query I rowsort
SELECT ALL - - 5 AS col2 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT - col1 * + ( + 8 ) AS col1 FROM tab2 AS cor0
----
-408
-536
-616

query I rowsort
SELECT + + 53 * - + 48 AS col2 FROM tab0 AS cor0
----
-2544
-2544
-2544

onlyif mysql # aggregate syntax: 
query II rowsort label-3073
SELECT DISTINCT SUM( DISTINCT - col1 ) * + MIN( - col1 ) AS col0, - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3102
9

skipif mysql # not compatible
query II rowsort label-3073
SELECT DISTINCT SUM ( DISTINCT - col1 ) * + MIN ( - col1 ) AS col0, - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3102
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - ( + MAX( ALL + col0 ) ) * - + COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3074
SELECT - ( + MAX ( ALL + col0 ) ) * - + COUNT ( * ) FROM tab1
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * 1 col0 FROM tab1
----
-19
-19
-19

query I rowsort
SELECT ALL 31 FROM tab2 WHERE NOT + col1 > col0 / col0 + col0 + - - 48 + - 3
----
31
31
31

onlyif mysql # DIV for integer division: 
query II rowsort label-3077
SELECT ALL + col1 DIV col1, + col1 * - col0 AS col1 FROM tab1
----
1
-425
1
-4277
1
-714

skipif mysql # not compatible
query II rowsort label-3077
SELECT ALL + col1 / col1, + col1 * - col0 AS col1 FROM tab1
----
1
-425
1
-4277
1
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 74 * - 27 AS col2, col0 col2 FROM tab1
----
-1998
51
-1998
85
-1998
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL + CAST( NULL AS SIGNED ) + + + COUNT( col2 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL + CAST ( NULL AS INTEGER ) + + + COUNT ( col2 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < + 35 * + col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + 41 + - 42 FROM tab2 AS cor0
----
2049
2705
3115

query II rowsort
SELECT ALL - 38, col1 AS col1 FROM tab1 AS cor0
----
-38
14
-38
47
-38
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + - col0 AS col1, + ( - - col1 ) + - - 46 col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-2601
60
-7225
51
-8281
93

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 cor0 WHERE NULL NOT IN ( - col1, + 91, + - ( ( - + 9 ) ) - col1 / + col0 )
----

query II rowsort
SELECT ALL - col0 AS col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT + SUM( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3087
SELECT + SUM ( - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT DISTINCT - + 0 AS col0, ( - 42 ) + col2 + - + 32 AS col2 FROM tab0 AS cor0
----
0
-27
0
-64
0
25

query I rowsort
SELECT DISTINCT 40 * + col2 + + 92 FROM tab2 cor0 WHERE NOT + + col1 IS NOT NULL OR NULL IS NULL
----
1012
1692
2412

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT MAX( DISTINCT - 46 ) FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-3091
SELECT MAX ( DISTINCT - 46 ) FROM tab1
----
-46

query I rowsort
SELECT ALL + 8 + col1 FROM tab0
----
29
89
9

query I rowsort
SELECT DISTINCT col2 - 68 + + col0 FROM tab1
----
76
79
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT - col2 - + col0 DIV - + col1 - + - 52 FROM tab0
----
46
5
50

skipif mysql # not compatible
query I rowsort label-3094
SELECT - col2 - + col0 / - + col1 - + - 52 FROM tab0
----
46
5
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT COUNT( - + 11 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3095
SELECT COUNT ( - + 11 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - ( - - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT ALL + COUNT( col0 ) * - COUNT( * ) + COUNT( - col0 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL + COUNT ( col0 ) * - COUNT ( * ) + COUNT ( - col0 ) FROM tab0
----
-6

query I rowsort
SELECT col0 * 39 AS col2 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT DISTINCT + col0 * + 35 FROM tab2
----
1610
2240
2625

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 80 * + 72 col2, 30 FROM tab1 AS cor0 WHERE - 94 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) + + col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT ( COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + col2 * - col2 * - col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL - COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - COUNT ( * ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3107
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) + - 10 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - 10 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + - + col2 + - + col1 AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3109
SELECT ALL ( - col0 ) DIV - - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL ( - col0 ) / - - col2 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab0 AS cor0
----
-71

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col0
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT + COUNT( * ) - - 68 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3113
SELECT + COUNT ( * ) - - 68 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL - + col0 - + + col2 + - - col0 AS col1 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3116
SELECT - 87 - 5 AS col1, + CAST( - + col2 AS SIGNED ) * - col2 col0 FROM tab0 AS cor0
----
-92
100
-92
2209
-92
9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3116
SELECT - 87 - 5 AS col1, + CAST ( - + col2 AS INTEGER ) * - col2 col0 FROM tab0 AS cor0
----
-92
100
-92
2209
-92
9801

query I rowsort
SELECT ALL - col2 + + ( + + col0 ) FROM tab1 AS cor0 WHERE NOT col2 * - + col2 IS NULL
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3118
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3118
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3119
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 + - 38 + + - col1 * - + ( col2 ) AS col1 FROM tab1 AS cor0
----
1255
172
3067

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT + - col1 + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-3121
SELECT + - col1 + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT ALL + CAST( col2 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL + CAST ( col2 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col0, - 33 AS col2 FROM tab2
----
23
-33
40
-33
58
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + col0 * + 82 col0 FROM tab1
----
14195
15743
6783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT col0 + - - 18 + 48 * col1 FROM tab0
----
1113
163
3921

query I rowsort
SELECT - col0 + + col0 + + col2 + col0 * + - col2 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT 93 + - 94 AS col1 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3129
SELECT CAST( - 34 AS SIGNED ) AS col0 FROM tab0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-3129
SELECT CAST ( - 34 AS INTEGER ) AS col0 FROM tab0
----
-34
-34
-34

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col0, 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT + COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3131
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col1, - col2 AS col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query I rowsort
SELECT ALL + + ( + - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col0 col0, + 71 AS col2 FROM tab1
----
-425
71
-4277
71
-714
71

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND + - 70 - - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - ( col1 ) + - + 99 AS col0 FROM tab0 AS cor0
----
-100
-120
-180

query I rowsort
SELECT - col1 + - 98 FROM tab0 AS cor0
----
-119
-179
-99

query I rowsort
SELECT DISTINCT + - 6 * ( 67 ) FROM tab2 cor0
----
-402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT + 70 + - + CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT + 70 + - + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT + 99 * COUNT( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT + 99 * COUNT ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
297

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = + + ( 11 ) * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL 50 DIV - col1 AS col1 FROM tab0 AS cor0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL 50 / - col1 AS col1 FROM tab0 AS cor0
----
-2
-50
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL 66 + COUNT( ALL + 42 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL 66 + COUNT ( ALL + 42 ) FROM tab1
----
69

query I rowsort
SELECT DISTINCT + ( - 60 ) + + col0 FROM tab0
----
-45
27
37

query III rowsort
SELECT * FROM tab1 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - MAX( ALL + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - MAX ( ALL + col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT + + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT + + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 86 - + col0 AS col0 FROM tab0 AS cor0
----
-1
-11
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT - - CAST( - col2 AS SIGNED ) - + 83 FROM tab2 AS cor0
----
-106
-123
-141

skipif mysql # not compatible
query I rowsort label-3151
SELECT - - CAST ( - col2 AS INTEGER ) - + 83 FROM tab2 AS cor0
----
-106
-123
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL + SUM( ALL 93 ) * + 90 * COUNT( * ) * 53 AS col2 FROM tab0 AS cor0
----
3992490

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + SUM ( ALL 93 ) * + 90 * COUNT ( * ) * 53 AS col2 FROM tab0 AS cor0
----
3992490

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL COUNT( * ) * + 3 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL COUNT ( * ) * + 3 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - col1 * - + 20 AS col2 FROM tab0 AS cor0
----
1620
20
420

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 97 col0 FROM tab2 AS cor0
----
4462
6208
7275

query II rowsort
SELECT ALL + - col2, 64 AS col0 FROM tab2 AS cor0
----
-23
64
-40
64
-58
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT MIN( ALL - - 44 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3159
SELECT MIN ( ALL - - 44 ) FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL + COUNT( * ) * - + 64 * + 71 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-13635

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + COUNT ( * ) * - + 64 * + 71 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-13635

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - + col2 * 60 FROM tab2 AS cor0
----
-1380
-2400
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-3163
SELECT ALL col1 DIV - 20 AS col2 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL col1 / - 20 AS col2 FROM tab0 AS cor0
----
-1
-4
0

query II rowsort
SELECT DISTINCT ( - - 82 ), 14 * 0 AS col0 FROM tab2
----
82
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 70 * + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND - col0 * ( + - col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 20 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 40 AS col2 FROM tab0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT + MAX( - 71 ) AS col0 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT + MAX ( - 71 ) AS col0 FROM tab2
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3172
SELECT DISTINCT + MAX( CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT + MAX ( CAST ( NULL AS REAL ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - COUNT( ALL 80 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3173
SELECT - COUNT ( ALL 80 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL + 80 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - ( - 88 ) FROM tab1 AS cor0
----
88
88
88

query II rowsort
SELECT 32, col2 FROM tab1 AS cor0
----
32
59
32
68
32
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - col0 + - - col2 FROM tab0 AS cor0
----
-178
-7559
-9310

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT + - col0 DIV 84 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3179
SELECT + - col0 / 84 AS col1 FROM tab0 AS cor0
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + + 89 ) + 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3181
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - col2 ) > CAST( NULL AS SIGNED ) / + col1 + + col1
----

skipif mysql # not compatible
query III rowsort label-3181
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - col2 ) > CAST ( NULL AS INTEGER ) / + col1 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3182
SELECT ALL * FROM tab1 WHERE + + col0 * + CAST( NULL AS SIGNED ) + 62 = NULL
----

skipif mysql # not compatible
query III rowsort label-3182
SELECT ALL * FROM tab1 WHERE + + col0 * + CAST ( NULL AS INTEGER ) + 62 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + + + col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3185
SELECT ALL 95 * ( + 16 ) * + CAST( + ( + - ( MIN( - CAST( NULL AS SIGNED ) ) ) ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL 95 * ( + 16 ) * + CAST ( + ( + - ( MIN ( - CAST ( NULL AS INTEGER ) ) ) ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3186
SELECT col0 * + + col2 + - ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3186
SELECT col0 * + + col2 + - ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 * - - col1 + - + 24 FROM tab0
----
-3102
-62
-822

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3188
SELECT ALL col1 * - col2, col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-3188
SELECT ALL col1 * - col2, col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
-1344
NULL
-295
NULL
-3196
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT COUNT( * ) + + 82 col0 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3189
SELECT COUNT ( * ) + + 82 col0 FROM tab1 AS cor0
----
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col2 IS NULL
----

query I rowsort
SELECT - - col2 + - col1 + + 44 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3192
SELECT + col2 DIV + ( - col1 ) AS col1, + col2 * - col1 - - - col0 FROM tab0
----
-99
-196
0
-297
0
-3822

skipif mysql # not compatible
query II rowsort label-3192
SELECT + col2 / + ( - col1 ) AS col1, + col2 * - col1 - - - col0 FROM tab0
----
-99
-196
0
-297
0
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 - + + 27 AS col2 FROM tab1
----
32
41
69

query II rowsort
SELECT ALL 47 - - + 27 * 83 AS col0, + 91 FROM tab2 AS cor0
----
2288
91
2288
91
2288
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ALL - col2 DIV + + col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - col2 / + + col1 AS col0 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT + COUNT( * ) * + - MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT + COUNT ( * ) * + - MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 col0 FROM tab0 AS cor0
----
31

query I rowsort
SELECT + col0 * - 18 * + 59 * + col1 AS col1 FROM tab2 AS cor0
----
-2491452
-5233536
-5336550

query I rowsort
SELECT - col1 * - 83 AS col1 FROM tab0 AS cor0
----
1743
6723
83

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 58 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT + COUNT( - 24 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3203
SELECT + COUNT ( - 24 ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + col2, - 30 FROM tab2 AS cor0
----
23
-30
40
-30
58
-30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3205
SELECT CAST( - col0 AS SIGNED ) DIV + + 4 AS col0 FROM tab2
----
-11
-16
-18

skipif mysql # not compatible
query I rowsort label-3205
SELECT CAST ( - col0 AS INTEGER ) / + + 4 AS col0 FROM tab2
----
-11
-16
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3206
SELECT + CAST( NULL AS DECIMAL ) * + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT + CAST ( NULL AS REAL ) * + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT DISTINCT + 97 * - COUNT( * ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + 97 * - COUNT ( * ) FROM tab0
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - col0 col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3209
SELECT ALL + 28 AS col2, COUNT( * ) AS col0 FROM tab2
----
28
3

skipif mysql # not compatible
query II rowsort label-3209
SELECT ALL + 28 AS col2, COUNT ( * ) AS col0 FROM tab2
----
28
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT col2 DIV col0 * + col2 FROM tab1
----
0
0
96

skipif mysql # not compatible
query I rowsort label-3210
SELECT col2 / col0 * + col2 FROM tab1
----
0
0
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3212
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) / 58 + - col0 * - col2
----

skipif mysql # not compatible
query III rowsort label-3212
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) / 58 + - col0 * - col2
----

query II rowsort
SELECT ALL - 88, col2 FROM tab1 AS cor0
----
-88
59
-88
68
-88
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT + SUM( + 22 ) AS col2 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3214
SELECT + SUM ( + 22 ) AS col2 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT SUM( ALL col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3215
SELECT SUM ( ALL col1 ) AS col2 FROM tab2 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 5 AS col1, 57 * - + col1 col0 FROM tab0 AS cor0
----
5
-1197
5
-4617
5
-57

query II rowsort
SELECT + col1 AS col1, - col0 AS col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 16 AS col0 FROM tab1 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT - col1 * + col0 + - col0 FROM tab1 AS cor0
----
-4368
-510
-765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 2 + - 44 col2, - col2 FROM tab2 AS cor0
----
-46
-23
-46
-40
-46
-58

query I rowsort
SELECT - 9 + 20 - 56 AS col0 FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT - 32 col2, COUNT( * ) AS col2 FROM tab2
----
-32
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3225
SELECT - 32 col2, COUNT ( * ) AS col2 FROM tab2
----
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + 55 - ( - COUNT( * ) ) FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + 55 - ( - COUNT ( * ) ) FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----
55

query I rowsort
SELECT - 72 - - col1 - - - 42 * + col1 + + col1 FROM tab0 AS cor0
----
-112
-3312
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT ALL - - COUNT( * ) * + 17 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL - - COUNT ( * ) * + 17 AS col0 FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + 24 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + + 12 + - 81 col0 FROM tab2 AS cor0
----
1059
1059
1059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + 10 col2 FROM tab0 AS cor0
----
107
25
97

query I rowsort
SELECT DISTINCT - col2 * - 1 FROM tab0
----
10
47
99

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + col2 <= NULL
----

query I rowsort
SELECT DISTINCT col1 * ( - col2 ) FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ( col1 ) * col1 AS col1 FROM tab2
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-3236
SELECT DISTINCT 84 DIV - col0 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT 84 / - col0 AS col2 FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) > 11 - 73
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col0 ) + + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT col1 * - 77 AS col0 FROM tab1 WHERE 0 NOT BETWEEN CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3239
SELECT col1 * - 77 AS col0 FROM tab1 WHERE 0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT 21 + + COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3240
SELECT 21 + + COUNT ( * ) FROM tab2
----
24

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 / 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT ALL ( SUM( DISTINCT 30 ) ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL ( SUM ( DISTINCT 30 ) ) FROM tab0
----
30

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col1 + - col2 >= + col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT MAX( DISTINCT col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3244
SELECT MAX ( DISTINCT col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT + 70 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT MAX( DISTINCT 6 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3246
SELECT MAX ( DISTINCT 6 ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3247
SELECT ALL CAST( - col0 AS SIGNED ) DIV - col0 - + col0 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL CAST ( - col0 AS INTEGER ) / - col0 - + col0 FROM tab2
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3248
SELECT DISTINCT * FROM tab1 WHERE CAST( col2 AS SIGNED ) NOT IN ( col2 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3248
SELECT DISTINCT * FROM tab1 WHERE CAST ( col2 AS INTEGER ) NOT IN ( col2 / col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL SUM( ALL + col0 ) - ( - 56 ) AS col0 FROM tab1
----
283

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL SUM ( ALL + col0 ) - ( - 56 ) AS col0 FROM tab1
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT + MAX( DISTINCT 27 ) FROM tab0 WHERE NOT ( + ( col2 ) * + col2 ) IS NULL
----
27

skipif mysql # not compatible
query I rowsort label-3250
SELECT + MAX ( DISTINCT 27 ) FROM tab0 WHERE NOT ( + ( col2 ) * + col2 ) IS NULL
----
27

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( col0 ) IN ( + col2 )
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 - - 0 ) IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ALL COUNT( * ) + + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL COUNT ( * ) + + 80 FROM tab0
----
83

query I rowsort
SELECT ALL - 74 * col1 FROM tab1 WHERE NULL NOT BETWEEN - 28 + col2 AND + col0
----

query I rowsort
SELECT DISTINCT - 66 + col0 * 93 AS col2 FROM tab2
----
4212
5886
6909

query III rowsort
SELECT * FROM tab0 WHERE ( 66 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( col2 * - col2 + - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( col2 * - col2 + - col2 ) IS NOT NULL
----
0

query I rowsort
SELECT - 57 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <= 91 * + 82 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT + MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT + SUM( DISTINCT 75 ) * - 34 FROM tab1 AS cor0
----
-2550

skipif mysql # not compatible
query I rowsort label-3263
SELECT + SUM ( DISTINCT 75 ) * - 34 FROM tab1 AS cor0
----
-2550

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * - col0 BETWEEN NULL AND - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT DISTINCT - 57 + COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - 57 + COUNT ( * ) FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3266
SELECT DISTINCT col0 FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3266
SELECT DISTINCT col0 FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - SUM( 21 ) + COUNT( * ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - SUM ( 21 ) + COUNT ( * ) FROM tab2
----
-60

query I rowsort
SELECT DISTINCT - 99 FROM tab0 AS cor0 CROSS JOIN tab1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT DISTINCT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3271
SELECT DISTINCT + + 18 DIV col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT + + 18 / col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT col2 DIV 15 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3272
SELECT col2 / 15 FROM tab2 AS cor0
----
1
2
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL - + col1 * col0 + + col2 DIV + 38 FROM tab0 AS cor0
----
-1214
-1827
-95

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL - + col1 * col0 + + col2 / + 38 FROM tab0 AS cor0
----
-1214
-1827
-95

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + 90 * - 13 + ( 48 + COUNT( * ) ) FROM tab2 AS cor0
----
-1119

skipif mysql # not compatible
query I rowsort label-3278
SELECT + 90 * - 13 + ( 48 + COUNT ( * ) ) FROM tab2 AS cor0
----
-1119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3279
SELECT 83 + + CAST( NULL AS SIGNED ) * 99 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3279
SELECT 83 + + CAST ( NULL AS INTEGER ) * 99 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 4 * col0 + ( col1 ) AS col0 FROM tab0
----
141
369
389

query I rowsort
SELECT DISTINCT ( + - 87 ) + - col1 * 78 FROM tab1
----
-1179
-3753
-477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT DISTINCT 78 * - - 79 + COUNT( * ) DIV COUNT( * ) FROM tab0
----
6163

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT 78 * - - 79 + COUNT ( * ) / COUNT ( * ) FROM tab0
----
6163

query I rowsort
SELECT col1 + - + col0 FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 ) > ( - col0 )
----
75
67
58

query I rowsort
SELECT DISTINCT + 34 + - 99 AS col0 FROM tab0
----
-65

query I rowsort
SELECT - col0 + - col0 + col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - 82 + + col0 AS col0 FROM tab1
----
-31
3
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) * 0 + - 26 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 0 + - 26 FROM tab0
----
NULL

query I rowsort
SELECT 31 + - - col0 FROM tab0
----
118
128
46

query III rowsort
SELECT * FROM tab2 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT + 49 + COUNT( * ) + - MIN( col0 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3291
SELECT + 49 + COUNT ( * ) + - MIN ( col0 ) FROM tab1
----
1

query I rowsort
SELECT col0 * + - 55 + col1 * + 61 AS col2 FROM tab1
----
-1951
-2138
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL - 8 + + COUNT( * ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - 8 + + COUNT ( * ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + COUNT( * ) * + - 59 + - COUNT( * ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-3295
SELECT + COUNT ( * ) * + - 59 + - COUNT ( * ) FROM tab0
----
-180

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 88 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * - + col2 - col2 FROM tab0 AS cor0
----
-110
-2256
-9900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 AS cor0 WHERE NOT ( 71 / 34 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL - MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - col0 * + col0 FROM tab2 AS cor0 WHERE NULL >= col0
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IN ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL + + COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3303
SELECT ALL + + COUNT ( * ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT 97 / - 29 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3308
SELECT ALL - + col2 col0, CAST( NULL AS SIGNED ) * col2 * - col2 + 14 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3308
SELECT ALL - + col2 col0, CAST ( NULL AS INTEGER ) * col2 * - col2 + 14 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 25 * 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - COUNT( * ) * 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3310
SELECT - COUNT ( * ) * 29 FROM tab0 AS cor0
----
-87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * - 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 46 * - - col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

query I rowsort
SELECT col2 * - + col1 * - col0 FROM tab0 cor0
----
18270
57105
9603

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT DISTINCT - 26 * MAX( + col1 ) FROM tab0
----
-2106

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - 26 * MAX ( + col1 ) FROM tab0
----
-2106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT - COUNT( * ) DIV SUM( - - col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - COUNT ( * ) / SUM ( - - col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 44 * col0 AS col1 FROM tab2 WHERE NOT + col0 * + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3318
SELECT ALL CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 * + col2 AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 ) <> ( + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab0 WHERE NOT - ( + - 17 ) * col2 + - 5 * - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT MIN( - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3323
SELECT MIN ( - + col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - COUNT( * ) + + MIN( + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-3324
SELECT - COUNT ( * ) + + MIN ( + col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT DISTINCT + COUNT( * ) * + + 94 AS col2 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + COUNT ( * ) * + + 94 AS col2 FROM tab0 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT + COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9

skipif mysql # not compatible
query II rowsort label-3326
SELECT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - col2 )
----

query II rowsort
SELECT DISTINCT + - col2 AS col0, 38 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL ( - 48 ) AS col2 FROM tab1 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3331
SELECT * FROM tab1 cor0 WHERE + col1 * - CAST( - 12 AS SIGNED ) + - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-3331
SELECT * FROM tab1 cor0 WHERE + col1 * - CAST ( - 12 AS INTEGER ) + - CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT + MIN( + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3333
SELECT + MIN ( + col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT + col2 * - col2 * 74 <= ( + col0 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT + 59 DIV col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3335
SELECT + 59 / col2 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL 7 + col1 FROM tab1
----
12
21
54

onlyif mysql # DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT col1 * - + col1 + + col0 + + col2 DIV col2 * + 36 + col2 AS col0 FROM tab1
----
-13
-2014
155

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT col1 * - + col1 + + col0 + + col2 / col2 * + 36 + col2 AS col0 FROM tab1
----
-13
-2014
155

query III rowsort
SELECT * FROM tab0 WHERE - col0 + 60 NOT BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT ALL 27 AS col2 FROM tab0 WHERE ( - col1 * + 42 * 17 * + 63 - + 31 * col2 + + 86 ) IS NOT NULL
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3340
SELECT + SUM( - col0 ) FROM tab1 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT + SUM ( - col0 ) FROM tab1 WHERE ( col2 ) IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + - ( - - 72 ) + - 33 col2, 16 * - - col2 FROM tab2
----
103
640
114
928
85
368

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3343
SELECT DISTINCT + COUNT( * ) AS col2, 42 AS col1 FROM tab1
----
3
42

skipif mysql # not compatible
query II rowsort label-3343
SELECT DISTINCT + COUNT ( * ) AS col2, 42 AS col1 FROM tab1
----
3
42

query I rowsort
SELECT + 96 * - 82 AS col1 FROM tab1 AS cor0 WHERE ( ( 23 * + 12 * + col1 + - col1 ) IS NULL ) OR NOT NULL IS NOT NULL
----
-7872
-7872
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT ALL + + MIN( - 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL + + MIN ( - 39 ) FROM tab0 AS cor0
----
-39

query I rowsort
SELECT + 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 6 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * - col1, 41 AS col2 FROM tab2
----
-1173
41
-3080
41
-3886
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3348
SELECT + + CAST( + ( - col0 ) AS SIGNED ) col0, - CAST( + 23 AS SIGNED ) FROM tab1 AS cor0
----
-51
-23
-85
-23
-91
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3348
SELECT + + CAST ( + ( - col0 ) AS INTEGER ) col0, - CAST ( + 23 AS INTEGER ) FROM tab1 AS cor0
----
-51
-23
-85
-23
-91
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT + ( + CAST( + col1 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3349
SELECT + ( + CAST ( + col1 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT SUM( 50 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT SUM ( 50 ) FROM tab2 AS cor0
----
150

query I rowsort
SELECT + 57 * + 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT + SUM( ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + SUM ( ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < ( + 71 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - MAX( ALL + col1 ) * + 52 FROM tab2 cor0
----
-4004

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - MAX ( ALL + col1 ) * + 52 FROM tab2 cor0
----
-4004

onlyif mysql # aggregate syntax: 
query II rowsort label-3357
SELECT ALL MAX( - + col0 ) AS col2, + ( + + SUM( - col2 ) ) FROM tab2 AS cor0
----
-46
-121

skipif mysql # not compatible
query II rowsort label-3357
SELECT ALL MAX ( - + col0 ) AS col2, + ( + + SUM ( - col2 ) ) FROM tab2 AS cor0
----
-46
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 ) IN ( ( - + col0 ) + + col1 * - + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 90 ) FROM tab2
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * + col0 col2 FROM tab0
----
1365
7917
8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT - CAST( + - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab0 WHERE NOT - col0 <= - + col2 OR NOT 67 IS NULL
----
10
47
99

query II rowsort
SELECT DISTINCT col0, + ( - col1 ) AS col1 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL + 26 * - + col1 FROM tab0
----
-2106
-26
-546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3366
SELECT DISTINCT - + col2 + - - CAST( - 68 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
3149
6633
670

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - + col2 + - - CAST ( - 68 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
3149
6633
670

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT ALL - 52 * + COUNT( * ) + + 44 FROM tab1
----
-112

skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL - 52 * + COUNT ( * ) + + 44 FROM tab1
----
-112

query I rowsort
SELECT - 51 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query II rowsort label-3369
SELECT + SUM( DISTINCT - col2 ) AS col2, 17 FROM tab0
----
-156
17

skipif mysql # not compatible
query II rowsort label-3369
SELECT + SUM ( DISTINCT - col2 ) AS col2, 17 FROM tab0
----
-156
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 - 75 + + col1 FROM tab1 AS cor0
----
-10
15
63

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 99 - - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - - col2 * - + col0, 92 * - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
-705
111780
-870
168084
-9603
8924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3374
SELECT ALL - 37 DIV - - MIN( + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL - 37 / - - MIN ( + col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= ( CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3375
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= ( CAST ( col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT - - col1 col2 FROM tab2 AS cor0 WHERE ( - CAST( col0 AS SIGNED ) ) >= ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3376
SELECT - - col1 col2 FROM tab2 AS cor0 WHERE ( - CAST ( col0 AS INTEGER ) ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - - 39 FROM tab1 cor0
----
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + - col0 ) BETWEEN col1 / col2 * col1 + - ( - - col1 ) AND - col1 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT ALL - + ( - + col0 ) * - 41 - col2 + + + col0 DIV + + 24 col0 FROM tab1 cor0
----
-2185
-3541
-3796

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3379
SELECT ALL - + ( - + col0 ) * - 41 - col2 + + + col0 / + + 24 col0 FROM tab1 cor0
----
-2185
-3541
-3796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL <= col1
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL <= col1
----
0

query II rowsort
SELECT DISTINCT col2 * - + col2, col1 FROM tab1 AS cor0
----
-3481
5
-4624
47
-9216
14

query I rowsort
SELECT + col1 + 66 FROM tab1
----
113
71
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3383
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) * 30 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) * 30 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 67 NOT IN ( - 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + - + col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT DISTINCT 22 + + 11 * - 5 AS col0 FROM tab2
----
-33

query I rowsort
SELECT + col0 + - col1 AS col2 FROM tab1 WHERE NOT col1 * 97 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL + - 22 * - COUNT( * ) col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT ALL + - 22 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - ( - 52 ) FROM tab0 AS cor0
----
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

query II rowsort
SELECT ALL + col2 AS col1, 81 FROM tab2 AS cor0
----
23
81
40
81
58
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3392
SELECT + 41 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT + 41 / + col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 33 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 33 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT - col2, col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-15

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + + 80 + 15 * - col0 > NULL
----

query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab2 cor0
----
83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT - col2 + + ( - 42 ) + - col1 FROM tab1 AS cor0
----
-106
-152
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT ALL - CAST( + 89 AS SIGNED ) FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL - CAST ( + 89 AS INTEGER ) FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT col1 + 33 FROM tab0 AS cor0
----
114
34
54

query I rowsort
SELECT - 16 + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-7
12
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3403
SELECT + + col0 * CAST( NULL AS DECIMAL ) + col2 * col0 * - + ( col0 ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT + + col0 * CAST ( NULL AS REAL ) + col2 * col0 * - + ( col0 ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( - col2 * ( - - col2 ) * + - col2 <> NULL )
----

query II rowsort
SELECT + ( col2 ) AS col2, + 31 AS col1 FROM tab1
----
59
31
68
31
96
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL - col1 + CAST( 80 AS SIGNED ) AS col2 FROM tab0
----
-1
59
79

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - col1 + CAST ( 80 AS INTEGER ) AS col2 FROM tab0
----
-1
59
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 55 AS col1 FROM tab2 AS cor0
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT MIN( ALL + + 0 ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3412
SELECT MIN ( ALL + + 0 ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col0 + 17 * - col0 FROM tab1 AS cor0
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT 46 + 82 - + COUNT( * ) * - 15 * - COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3414
SELECT 46 + 82 - + COUNT ( * ) * - 15 * - COUNT ( * ) FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT MIN( + 35 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
35

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT MIN ( + 35 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT COUNT( * ) * + + 8 * + COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3416
SELECT COUNT ( * ) * + + 8 * + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 86 + + col1 AS col1 FROM tab2
----
137
153
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT - MIN( ALL - 37 ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT - MIN ( ALL - 37 ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
46

query I rowsort
SELECT DISTINCT 14 + ( - - col1 ) FROM tab1
----
19
28
61

query I rowsort
SELECT + 53 + - col2 AS col2 FROM tab0
----
-46
43
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 - col2 + - 65 * - - 61 col2 FROM tab0
----
-3943
-3980
-4032

query I rowsort
SELECT + 18 * + 91 AS col1 FROM tab0 AS cor0
----
1638
1638
1638

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT MAX( + CAST( NULL AS SIGNED ) ) / 9 * COUNT( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) / 9 * COUNT ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT - col0, + col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT - col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3426
SELECT - col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 10 AS col0, - 64 * - 91 * + 24 AS col0 FROM tab2 AS cor0
----
-10
139776
-10
139776
-10
139776

query II rowsort
SELECT ALL - - col2, col2 FROM tab2 AS cor0 WHERE NOT col0 IN ( - ( + - 3 ) * + + col1, col0 + - col2 )
----
23
23
40
40
58
58

query I rowsort
SELECT col0 * + 84 AS col1 FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT DISTINCT + + col1 * + + 86 FROM tab2 AS cor0
----
4386
5762
6622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col0 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL - MIN( ALL + 8 ) + - COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL - MIN ( ALL + 8 ) + - COUNT ( * ) FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT SUM( + col1 ) * - ( - COUNT( * ) ) AS col2 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-3433
SELECT SUM ( + col1 ) * - ( - COUNT ( * ) ) AS col2 FROM tab2
----
585

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 42 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL COUNT( * ) * + - 37 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL COUNT ( * ) * + - 37 FROM tab2
----
-111

query II rowsort
SELECT col0 * 92 AS col0, col0 AS col1 FROM tab1
----
4692
51
7820
85
8372
91

query I rowsort
SELECT ALL col0 * 57 AS col2 FROM tab1
----
2907
4845
5187

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3438
SELECT DISTINCT - MAX( DISTINCT + col1 ) * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT - MAX ( DISTINCT + col1 ) * CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 30 * + col0 + + 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT DISTINCT - + COUNT( * ) DIV - 97 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - + COUNT ( * ) / - 97 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 67 * - 82 FROM tab0 AS cor0
----
-5494

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3443
SELECT ALL col2 DIV - CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL col2 / - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3444
SELECT ALL 5, - 23 + + col0 AS col0 FROM tab1 cor0 WHERE col1 / - + ( + + col0 ) + + col0 * + CAST( NULL AS SIGNED ) + + - 98 * col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3444
SELECT ALL 5, - 23 + + col0 AS col0 FROM tab1 cor0 WHERE col1 / - + ( + + col0 ) + + col0 * + CAST ( NULL AS INTEGER ) + + - 98 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3445
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL - CAST( + - col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) BETWEEN - col2 + 89 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 74 ) col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - + 13 AS col1 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT ALL + 22 AS col1 FROM tab1 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT ALL + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3452
SELECT DISTINCT COUNT( * ) * + 42 DIV COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT COUNT ( * ) * + 42 / COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - - 79 col2 FROM tab1 AS cor0
----
32
65
74

query I rowsort
SELECT DISTINCT 77 + + 46 AS col2 FROM tab0
----
123

query II rowsort
SELECT ALL + col2, 21 FROM tab2
----
23
21
40
21
58
21

query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE ( ( - col2 ) - + - col2 ) <= NULL
----

query I rowsort
SELECT 69 * 58 + - 35 AS col2 FROM tab2
----
3967
3967
3967

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT 63 + COUNT( * ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3461
SELECT 63 + COUNT ( * ) AS col1 FROM tab1
----
66

query I rowsort
SELECT ALL col2 + + 71 * col1 * - 71 AS col0 FROM tab0
----
-105851
-408274
-4942

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 8 / - + col1 AND - + 80
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + + 80 + - col0 FROM tab0 AS cor0
----
-16
14
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - SUM( col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3466
SELECT - SUM ( col1 ) FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 col1 FROM tab1 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT DISTINCT + COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + COUNT ( - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL 44 * COUNT( * ) FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL 44 * COUNT ( * ) FROM tab2
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT - 83 DIV + COUNT( * ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3470
SELECT - 83 / + COUNT ( * ) AS col1 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT - ( + COUNT( * ) ) AS col1 FROM tab0 WHERE NOT ( - col2 / + + 58 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3471
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT ( - col2 / + + 58 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - ( - COUNT( * ) ) AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3472
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 54 * + + col0 AS col0 FROM tab0
----
4698
5238
810

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 55 col2, col0 col2 FROM tab2
----
55
46
55
64
55
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 31 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
19

query I rowsort
SELECT col2 * + + 48 AS col0 FROM tab0
----
2256
4752
480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3482
SELECT ALL - COUNT( * ) DIV - ( + 32 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - COUNT ( * ) / - ( + 32 ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT DISTINCT col2 DIV + - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT col2 / + - col0 FROM tab1
----
-1
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT SUM( DISTINCT - + col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3485
SELECT SUM ( DISTINCT - + col0 ) AS col2 FROM tab0
----
-199

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 90 / - col0 * 29 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE + 86 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE + 86 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + ( + col0 ) * - col1 + + col1 FROM tab0
----
-1134
-1806
-96

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col2 + 4 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3490
SELECT DISTINCT - 47 DIV col0 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT - 47 / col0 AS col2 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE - 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3492
SELECT COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col1 + - col0 + col0 - + col0 * + col0 * - col1 * col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
20185165
28265692
4964187

query I rowsort
SELECT DISTINCT - + col0 + + + 2 + + + col0 + - 14 + + 79 FROM tab0 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT col0 * + CAST( NULL AS SIGNED ) + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT col0 * + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT DISTINCT + ( + col0 ) - + + ( - col0 ) + col1 + + - col0 + 52 DIV + 53 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT + ( + col0 ) - + + ( - col0 ) + col1 + + - col0 + 52 / + 53 FROM tab1
----
138
65
90

query I rowsort
SELECT + 34 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 92 IS NULL
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - - col2 * col0 - - col0 + - - 11 + + col2 AS col1 FROM tab0 AS cor0
----
778
978
9810

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT col1 + - col0 NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT col1 + - col0 NOT IN ( col0 )
----
0

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - COUNT( - + col1 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3501
SELECT - COUNT ( - + col1 ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE NOT + 62 IS NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT + 66 * + + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT + 66 * + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT col2 AS col0, col2 + + 0 + + - col2 AS col0 FROM tab0 AS cor0
----
10
0
47
0
99
0

query I rowsort
SELECT DISTINCT + col0 + + + 98 FROM tab0 AS cor0 WHERE col1 BETWEEN + col1 AND 17 / col0 + + 96 + + 64 * col2
----
113
185
195

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN - col0 AND + + col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT - col1 + - col0 + + + col1 / - 5 * - - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT - col1 + - col0 + + + col1 / - 5 * - - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + 22 AS col1 FROM tab0 AS cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL + + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - - 29 AS col1 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT ALL 33 - - col1 / - col1 AS col2 FROM tab2 AS cor0 WHERE 91 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL + COUNT( + 3 ) + + 82 AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL + COUNT ( + 3 ) + + 82 AS col1 FROM tab2
----
85

query I rowsort
SELECT + - 8 AS col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT MIN( ALL 4 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT MIN ( ALL 4 ) AS col2 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL - - MIN( DISTINCT - 97 ) + - 51 * - 67 * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30656

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - - MIN ( DISTINCT - 97 ) + - 51 * - 67 * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
30656

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3519
SELECT - 64, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-3519
SELECT - 64, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-64
NULL
-64
NULL
-64
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 * col2 + + ( - - col1 ) IN ( - col2, + col2 + - 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 cor0 WHERE NOT + col2 = - col0 * - + 89 + - - col0
----
-15
-87
-97

query I rowsort
SELECT 51 * + col1 AS col1 FROM tab0 AS cor0
----
1071
4131
51

query I rowsort
SELECT ALL col0 * + col1 + - - col0 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT DISTINCT ( - + 76 ) FROM tab1 cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT 35 + + + COUNT( * ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3525
SELECT 35 + + + COUNT ( * ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT ALL col2 + - + col0 * col2 * col1 AS col0 FROM tab1
----
-25016
-290768
-68448

onlyif mysql # DIV for integer division: 
query I rowsort label-3527
SELECT ALL + 72 DIV + 3 + 79 AS col0 FROM tab1
----
103
103
103

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL + 72 / + 3 + 79 AS col0 FROM tab1
----
103
103
103

onlyif mysql # DIV for integer division: 
query I rowsort label-3528
SELECT col2 DIV - col2 - col2 + 30 + - col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-2
-71
-99

skipif mysql # not compatible
query I rowsort label-3528
SELECT col2 / - col2 - col2 + 30 + - col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-2
-71
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3529
SELECT 32 * + col2 + + col0 - + - 43 * - 65 + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT 32 * + col2 + + col0 - + - 43 * - 65 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 - + + col0 col1 FROM tab2
----
-2647
-4564
-5993

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT + CAST( col2 AS SIGNED ) + 33 - + 71 * - - ( - - 11 ) FROM tab0
----
-649
-701
-738

skipif mysql # not compatible
query I rowsort label-3531
SELECT + CAST ( col2 AS INTEGER ) + 33 - + 71 * - - ( - - 11 ) FROM tab0
----
-649
-701
-738

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3532
SELECT * FROM tab2 AS cor0 WHERE 94 + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3532
SELECT * FROM tab2 AS cor0 WHERE 94 + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3533
SELECT + - col1 * - CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3533
SELECT + - col1 * - CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT - 70 - col2, - col1 AS col2 FROM tab0 AS cor0
----
-117
-81
-169
-1
-80
-21

query III rowsort
SELECT * FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT ( - col2 ) - - ( + + col0 ) AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT + col1 * - + 46 AS col1 FROM tab0
----
-3726
-46
-966

query II rowsort
SELECT DISTINCT + col2, 70 AS col0 FROM tab0
----
10
70
47
70
99
70

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
52

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + COUNT( ALL + + 31 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( ALL + + 31 ) FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3543
SELECT DISTINCT + + CAST( - + 32 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT + + CAST ( - + 32 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - ( - + SUM( ALL - + ( + + col2 ) ) ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3544
SELECT - ( - + SUM ( ALL - + ( + + col2 ) ) ) col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT DISTINCT - - COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3545
SELECT DISTINCT - - COUNT ( * ) FROM tab0 cor0
----
3

query II rowsort
SELECT - col2 AS col1, 88 FROM tab0
----
-10
88
-47
88
-99
88

query II rowsort
SELECT + col2 * + 90, + col2 * - + 50 AS col2 FROM tab2
----
2070
-1150
3600
-2000
5220
-2900

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 88 / col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * + 28 FROM tab0
----
-1316
-2772
-280

query II rowsort
SELECT - 3 * - col2 AS col0, + ( + + col2 ) AS col1 FROM tab0
----
141
47
297
99
30
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT DISTINCT - SUM( ALL + CAST( + col2 AS SIGNED ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT - SUM ( ALL + CAST ( + col2 AS INTEGER ) ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT + col2 * - CAST( + 81 AS SIGNED ) * + + col1 FROM tab1
----
-108864
-23895
-258876

skipif mysql # not compatible
query I rowsort label-3554
SELECT + col2 * - CAST ( + 81 AS INTEGER ) * + + col1 FROM tab1
----
-108864
-23895
-258876

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT ALL - COUNT( * ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3555
SELECT ALL - COUNT ( * ) col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL - CAST( - 33 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL - CAST ( - 33 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33
33
33

onlyif mysql # DIV for integer division: 
query II rowsort label-3557
SELECT - - col0, col0 DIV - + ( 86 ) AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-3557
SELECT - - col0, col0 / - + ( 86 ) AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT ALL 22 * col2 + - + ( - col2 ) FROM tab1 AS cor0
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL + MIN( DISTINCT + col0 ) col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT ALL + MIN ( DISTINCT + col0 ) col2 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL - - 87 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL - - 87 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT ALL + MIN( ALL col1 ) * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL + MIN ( ALL col1 ) * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT + - 26 * col1 * ( 79 ) AS col2 FROM tab1 AS cor0
----
-10270
-28756
-96538

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 WHERE + col0 * + - 15 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 14 ) FROM tab2 WHERE - 59 = NULL
----

query I rowsort
SELECT ALL 28 + 4 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL + COUNT( * ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + COUNT ( * ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT DISTINCT 82 - 79 DIV + col0 AS col2 FROM tab1
----
81
82

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT 82 - 79 / + col0 AS col2 FROM tab1
----
81
82

query II rowsort
SELECT col1 * - col1 - + col0 + + 27 * + ( - + col1 ) AS col2, col2 AS col0 FROM tab1
----
-245
59
-3569
68
-625
96

query I rowsort
SELECT + col1 - 14 * + col1 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT ALL - col1 * 76 FROM tab1 AS cor0
----
-1064
-3572
-380

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT COUNT( * ) + 98 * - + 90 AS col1, 75 + + 55 col1 FROM tab1 AS cor0
----
-8817
130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3572
SELECT COUNT ( * ) + 98 * - + 90 AS col1, 75 + + 55 col1 FROM tab1 AS cor0
----
-8817
130

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= + - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3575
SELECT ALL + - 99 DIV - + 42 AS col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + - 99 / - + 42 AS col0 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT DISTINCT - 52 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT - 52 / - col0 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3577
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + + col1 >= - - col0
----

skipif mysql # not compatible
query III rowsort label-3577
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + + col1 >= - - col0
----

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE NOT col1 * + + 66 / + + 20 IS NULL
----
51
85
91

query I rowsort
SELECT ALL - 93 FROM tab2, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT 76 > - - 31
----

query I rowsort
SELECT ALL - 49 AS col0 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT col0 * 83 * + col0 FROM tab2
----
175628
339968
466875

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + COUNT( * ) * - 93 AS col1 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-3583
SELECT + COUNT ( * ) * - 93 AS col1 FROM tab1
----
-279

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3585
SELECT + + 77 + - + MAX( DISTINCT - col2 ) + - CAST( COUNT( DISTINCT + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-3585
SELECT + + 77 + - + MAX ( DISTINCT - col2 ) + - CAST ( COUNT ( DISTINCT + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3586
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + ( - - col0 ) FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3586
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + ( - - col0 ) FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL - col0 * + 41 FROM tab0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT + 13 * + COUNT( * ) - - - 87 AS col0 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3588
SELECT + 13 * + COUNT ( * ) - - - 87 AS col0 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + + col0 * - ( + col1 ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) col0 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL ( + - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT 33 * - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-3592
SELECT 33 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
99

query I rowsort
SELECT ALL + + 72 - - - col2 + + col2 * - col0 AS col2 FROM tab0 AS cor0 WHERE - col1 + - col0 IS NULL
----

query I rowsort
SELECT ALL + col1 * - - col2 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT - col2 * col1 - + - 67 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
-143
-32
-3740

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT 40 + - + MAX( - 12 ) - + 84 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-3597
SELECT 40 + - + MAX ( - 12 ) - + 84 FROM tab1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT DISTINCT - col0 + + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT - col0 + + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL COUNT( * ) - + + 55 + COUNT( * ) + + 14 + - 25 * + COUNT( * ) AS col1 FROM tab0
----
-110

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL COUNT ( * ) - + + 55 + COUNT ( * ) + + 14 + - 25 * + COUNT ( * ) AS col1 FROM tab0
----
-110

query I rowsort
SELECT DISTINCT - 44 - + col0 FROM tab0
----
-131
-141
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + 25 + + COUNT( * ) AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3601
SELECT + 25 + + COUNT ( * ) AS col1 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT MIN( - col2 ) + + SUM( + col2 ) AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3602
SELECT MIN ( - col2 ) + + SUM ( + col2 ) AS col2 FROM tab2
----
63

query I rowsort
SELECT col1 FROM tab1 WHERE col2 > NULL
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * + 49 AS col2 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3605
SELECT ALL - COUNT( * ) DIV - - SUM( + - 46 ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - COUNT ( * ) / - - SUM ( + - 46 ) AS col1 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + MIN( ALL + 85 ) col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT + MIN ( ALL + 85 ) col2 FROM tab1 AS cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 55 BETWEEN NULL AND col0
----
46
51
23

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col0 * - - col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL 92 * + - col1 * + 12 FROM tab1
----
-15456
-51888
-5520

query I rowsort
SELECT 83 * + 98 * - + 15 AS col0 FROM tab2
----
-122010
-122010
-122010

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT + MAX( ALL - 59 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3613
SELECT + MAX ( ALL - 59 ) FROM tab1
----
-59

query II rowsort
SELECT col0 AS col1, col0 FROM tab1
----
51
51
85
85
91
91

query II rowsort
SELECT ALL col2, - col1 AS col2 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT - col0 + 14 + + + 20 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-12
-30
-41

query I rowsort
SELECT DISTINCT - ( col1 ) * - 77 + + - 60 + - 62 * + col0 FROM tab1 AS cor0
----
-2083
-2144
-4945

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT + MIN( ALL + 57 ) col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT DISTINCT + MIN ( ALL + 57 ) col0 FROM tab0 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT ALL col2 DIV - 70 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3619
SELECT ALL col2 / - 70 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3620
SELECT ALL + SUM( ALL + 71 ) FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + SUM ( ALL + 71 ) FROM tab0 AS cor0
----
213

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT DISTINCT + - col0 DIV 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT + - col0 / 99 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3622
SELECT + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( 87 ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - SUM( DISTINCT - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3624
SELECT - SUM ( DISTINCT - col1 ) FROM tab1
----
66

query I rowsort
SELECT ALL + col1 + + col2 + ( - 59 ) FROM tab1
----
5
51
56

query II rowsort
SELECT ALL - ( 42 ) AS col2, - col1 - col1 FROM tab0
----
-42
-162
-42
-2
-42
-42

query I rowsort
SELECT col1 * - - col1 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT 67 * - COUNT( * ) FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-3628
SELECT 67 * - COUNT ( * ) FROM tab1
----
-201

query III rowsort
SELECT * FROM tab0 WHERE NOT - 84 IN ( col1 * - col1 - - + ( - - col0 ) + col1 * + 1, + ( - 46 ) * - col2 + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - ( - + 36 ), - 9 - - col1 AS col0 FROM tab2 cor0
----
36
42
36
58
36
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col1 FROM tab1 WHERE NULL IS NULL
----
-54
-54
-54

query I rowsort
SELECT ALL + 93 + + 27 FROM tab0
----
120
120
120

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 15 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( 17 ) FROM tab2 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + ( - 13 ) col2 FROM tab1 AS cor0
----
-14
-13
-47
-13
-5
-13

query II rowsort
SELECT ALL col0, ( + + col0 ) FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT - col0 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - - 87 * - 33 AS col2 FROM tab2 AS cor0
----
-2871
-2871
-2871

query I rowsort
SELECT ALL + - ( + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL COUNT( * ) + + 87 col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3640
SELECT ALL COUNT ( * ) + + 87 col1 FROM tab0 AS cor0
----
90

query I rowsort
SELECT col1 - + col1 - - ( col2 ) + + 61 FROM tab2
----
101
119
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL - COUNT( * ) + + 89 * + + 71 AS col0 FROM tab2
----
6316

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - COUNT ( * ) + + 89 * + + 71 AS col0 FROM tab2
----
6316

query I rowsort
SELECT DISTINCT - col1 + + - col0 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3644
SELECT - 17 AS col1, COUNT( * ) AS col0 FROM tab0
----
-17
3

skipif mysql # not compatible
query II rowsort label-3644
SELECT - 17 AS col1, COUNT ( * ) AS col0 FROM tab0
----
-17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL - 21 * - - COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - 21 * - - COUNT ( * ) AS col0 FROM tab0
----
-63

query I rowsort
SELECT DISTINCT + - col2 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
-1536
-3289
-483

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3647
SELECT 64 AS col0, CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
query II rowsort label-3647
SELECT 64 AS col0, CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
64
NULL
64
NULL
64
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT + COUNT( ALL - 64 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT + COUNT ( ALL - 64 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3650
SELECT - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col1 FROM tab1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT ( COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3652
SELECT ( COUNT ( * ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3653
SELECT * FROM tab0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3653
SELECT * FROM tab0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 58 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + 61 FROM tab1 WHERE NOT - 10 / - col2 + col1 IS NULL
----
61
61
61

query I rowsort
SELECT ALL 99 - col2 + + col0 * col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3657
SELECT col1 DIV + - col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
1057
2559
4349

skipif mysql # not compatible
query I rowsort label-3657
SELECT col1 / + - col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
1057
2559
4349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT - + CAST( - MAX( DISTINCT - ( + col2 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3658
SELECT - + CAST ( - MAX ( DISTINCT - ( + col2 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT + 98 + - - COUNT( - + 70 ) FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT + 98 + - - COUNT ( - + 70 ) FROM tab0 AS cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL + COUNT( * ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + MIN( col2 ) col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3661
SELECT + MIN ( col2 ) col1 FROM tab2 cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * 64 col2 FROM tab0 AS cor0
----
4864

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3664
SELECT * FROM tab1 WHERE NOT + - ( - 54 ) <= + col1 / - col2 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3664
SELECT * FROM tab1 WHERE NOT + - ( - 54 ) <= + col1 / - col2 - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 = ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT ALL col2 + col1 DIV - 86 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL col2 + col1 / - 86 AS col1 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3667
SELECT + CAST( 83 AS SIGNED ) * 10 + + - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN - - col2 + 7 AND 56
----
830

skipif mysql # not compatible
query I rowsort label-3667
SELECT + CAST ( 83 AS INTEGER ) * 10 + + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN - - col2 + 7 AND 56
----
830

query I rowsort
SELECT DISTINCT + col1 + - col2 * - 5 FROM tab1
----
300
387
494

query I rowsort
SELECT col2 * - 44 * - col2 FROM tab0
----
431244
4400
97196

query I rowsort
SELECT 49 * - 84 AS col0 FROM tab0
----
-4116
-4116
-4116

query I rowsort
SELECT - 91 + 99 FROM tab1
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT ALL col2 DIV col2 + - - col1 AS col1 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL col2 / col2 + - - col1 AS col1 FROM tab0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT + SUM( + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT + SUM ( + col1 ) AS col2 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT + COUNT( * ) * - 57 + + 8 FROM tab0
----
-163

skipif mysql # not compatible
query I rowsort label-3674
SELECT + COUNT ( * ) * - 57 + + 8 FROM tab0
----
-163

query I rowsort
SELECT 97 + - col1 AS col2 FROM tab1
----
50
83
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 = + 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + col0 + col0 + 74 + 69 FROM tab2
----
281
335
368

query I rowsort
SELECT DISTINCT - 27 + - 19 FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 <> + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT ALL - 54 - + MIN( col0 ) FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL - 54 - + MIN ( col0 ) FROM tab2 AS cor0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT + COUNT( * ) + COUNT( * ) col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3681
SELECT + COUNT ( * ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
6

query II rowsort
SELECT DISTINCT - + ( - col2 ) AS col1, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= + 6
----

query I rowsort
SELECT col2 + + 46 FROM tab0
----
145
56
93

query III rowsort
SELECT * FROM tab1 WHERE - - 47 BETWEEN + col0 + - - col0 * col1 AND + 19
----

query II rowsort
SELECT 71, + col2 FROM tab1
----
71
59
71
68
71
96

query I rowsort
SELECT 11 * + 2 FROM tab2
----
22
22
22

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT DISTINCT + COUNT( - - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT + COUNT ( - - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT - SUM( + 17 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT - SUM ( + 17 ) FROM tab1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3691
SELECT + 79 DIV - 17 FROM tab2
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-3691
SELECT + 79 / - 17 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT + 48 AS col2 FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT - MAX( DISTINCT + 43 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-3693
SELECT - MAX ( DISTINCT + 43 ) FROM tab2
----
-43

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - + MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3696
SELECT - + MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + col2 IS NULL ) )
----

query I rowsort
SELECT ( + 95 ) AS col2 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT ALL + 81 * + + col1 + col0 AS col1 FROM tab0 AS cor0
----
178
1788
6576

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT COUNT( * ) * - + 54 AS col1 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-3701
SELECT COUNT ( * ) * - + 54 AS col1 FROM tab0
----
-162

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3703
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT - SUM( 1 ) * - + 31 col0 FROM tab2 cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT DISTINCT - SUM ( 1 ) * - + 31 col0 FROM tab2 cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT - col2 + - CAST( + col0 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
-2697
-7284
-8349

skipif mysql # not compatible
query I rowsort label-3705
SELECT - col2 + - CAST ( + col0 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT DISTINCT + + 44 AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-3706
SELECT DISTINCT + + 44 AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
44
3

query II rowsort
SELECT col1 + - col1, 65 AS col1 FROM tab2 AS cor0
----
0
65
0
65
0
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3708
SELECT - CAST( NULL AS SIGNED ), - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-3708
SELECT - CAST ( NULL AS INTEGER ), - col0 AS col1 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 + + col2 col1 FROM tab2
----
25
42
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + 27 + - ( - col1 ) FROM tab1
----
32
41
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL - COUNT( * ) * MAX( DISTINCT col1 ) FROM tab0 WHERE NOT - col0 IS NULL
----
-243

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - COUNT ( * ) * MAX ( DISTINCT col1 ) FROM tab0 WHERE NOT - col0 IS NULL
----
-243

query I rowsort
SELECT DISTINCT - 63 * - + 90 FROM tab2, tab1 AS cor0
----
5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col0 FROM tab0
----
28
28
28

query II rowsort
SELECT DISTINCT - + 33 * 79, - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2607
-1215
-2607
-1827
-2607
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 + + 63, col1 col0 FROM tab2 AS cor0
----
121
51
121
67
121
77

query I rowsort
SELECT DISTINCT + col0 + - + col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT - MAX( DISTINCT col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT - - ( - + COUNT( * ) ) FROM tab1 WHERE NOT col2 + + + 73 IS NOT NULL AND NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3719
SELECT - - ( - + COUNT ( * ) ) FROM tab1 WHERE NOT col2 + + + 73 IS NOT NULL AND NOT col2 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT ALL col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT + 56 AS col1, + 44 FROM tab1
----
56
44
56
44
56
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3723
SELECT + + CAST( NULL AS SIGNED ) * + SUM( ALL + - col0 ) AS col1, + 56 AS col1 FROM tab0 AS cor0
----
NULL
56

skipif mysql # not compatible
query II rowsort label-3723
SELECT + + CAST ( NULL AS INTEGER ) * + SUM ( ALL + - col0 ) AS col1, + 56 AS col1 FROM tab0 AS cor0
----
NULL
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 71 <> + col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 AS col2, 71 AS col1 FROM tab1 AS cor0
----
14
71
47
71
5
71

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE 91 * - col2 > NULL
----

query II rowsort
SELECT DISTINCT 30, 23 - - + col2 AS col2 FROM tab2 AS cor0
----
30
46
30
63
30
81

query I rowsort
SELECT + + 91 AS col1 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT - ( + col2 ) FROM tab0 cor0 WHERE ( NULL ) BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + 12 + + col1 FROM tab1 AS cor0
----
1025
1139
626

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT - ( + CAST( NULL AS SIGNED ) ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 * + 94 FROM tab0 cor0
----
2538
2538
2538

query I rowsort
SELECT 1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - col1 * + col0 + - + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL <= 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT COUNT( - col1 ) * - 93 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-837

skipif mysql # not compatible
query I rowsort label-3735
SELECT COUNT ( - col1 ) * - 93 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-837

query I rowsort
SELECT ALL col0 + ( 51 ) FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3737
SELECT ALL ( col1 ) AS col2, 27 DIV - col1 FROM tab0
----
1
-27
21
-1
81
0

skipif mysql # not compatible
query II rowsort label-3737
SELECT ALL ( col1 ) AS col2, 27 / - col1 FROM tab0
----
1
-27
21
-1
81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT + col1 DIV + - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT + col1 / + - col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT - 90 + - 35 + - - col2 AS col2 FROM tab1 WHERE NOT 72 < + - col1 * + 44 - - 86 - + col0
----
-29
-57
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 col2 FROM tab1 AS cor0
----
74

query II rowsort
SELECT + ( col0 ) * - 4 + + - col1, col0 * - col0 AS col2 FROM tab0 AS cor0
----
-141
-225
-369
-7569
-389
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3742
SELECT DISTINCT CAST( - col2 AS SIGNED ) * 98 FROM tab1 AS cor0
----
-5782
-6664
-9408

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * 98 FROM tab1 AS cor0
----
-5782
-6664
-9408

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT ALL + COUNT( * ), + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-3743
SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
9

query II rowsort
SELECT DISTINCT - 1 AS col0, 90 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT + + COUNT( - 67 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3745
SELECT + + COUNT ( - 67 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT + ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL + COUNT( * ) * - + 2 + + SUM( DISTINCT - - col2 ) * + COUNT( - 89 ) * + 43 AS col1 FROM tab1 AS cor0
----
28761

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + COUNT ( * ) * - + 2 + + SUM ( DISTINCT - - col2 ) * + COUNT ( - 89 ) * + 43 AS col1 FROM tab1 AS cor0
----
28761

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 12 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - 50 + col0 FROM tab1 AS cor0
----
1
35
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 55 + - col2 AS col1 FROM tab0
----
-44
45
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + - ( + col0 ) col2 FROM tab0
----
-21
-31
51

query I rowsort
SELECT ALL + 61 + + + 39 + col2 * + - 64 AS col0 FROM tab2
----
-1372
-2460
-3612

query I rowsort
SELECT col1 + - + col0 AS col2 FROM tab1
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3756
SELECT CAST( NULL AS DECIMAL ) * - col1 + CAST( + col0 AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3756
SELECT CAST ( NULL AS REAL ) * - col1 + CAST ( + col0 AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT ALL - + col1 AS col0 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - + col1 AS col0 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = + col1
----

query I rowsort
SELECT + ( - - col1 ) FROM tab0 WHERE - - col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL IS NULL ) OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT COUNT( ALL + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3761
SELECT COUNT ( ALL + - col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + 15 FROM tab1 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT DISTINCT SUM( 5 ) DIV + 38 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT SUM ( 5 ) / + 38 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * + col2 * + col1 FROM tab1 AS cor0
----
1475
150212
18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 41 ) col0 FROM tab1 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col2 AS col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + ( - COUNT( col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3767
SELECT + ( - COUNT ( col1 ) ) FROM tab0
----
-3

query II rowsort
SELECT ALL - col0, - ( - col0 ) AS col0 FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT + col1, - 75 FROM tab2
----
51
-75
67
-75
77
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT - 53 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - 53 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3771
SELECT 11 DIV COUNT( * ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3771
SELECT 11 / COUNT ( * ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL MIN( ALL + - col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL MIN ( ALL + - col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3773
SELECT ALL + CAST( - - 0 AS SIGNED ) DIV - + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + CAST ( - - 0 AS INTEGER ) / - + COUNT ( * ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT ALL col1 + - - col0 - + col0 AS col0 FROM tab2 cor0
----
51
67
77

query II rowsort
SELECT - - col2, - col2 AS col1 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3777
SELECT ALL + CAST( NULL AS DECIMAL ) * - col1 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3777
SELECT ALL + CAST ( NULL AS REAL ) * - col1 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3778
SELECT ALL COUNT ( * ) col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 98 * + 53 FROM tab1
----
5194
5194
5194

query I rowsort
SELECT + 81 + - col2 AS col1 FROM tab2
----
23
41
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT COUNT( * ) * MIN( ALL col2 ) AS col2 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
177

skipif mysql # not compatible
query I rowsort label-3781
SELECT COUNT ( * ) * MIN ( ALL col2 ) AS col2 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col1 FROM tab0 WHERE NOT col1 * - 13 <= ( - 4 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col2 * col0 <= 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT 93 AS col0 FROM tab1 WHERE ( col0 - CAST( col0 + + col2 AS SIGNED ) ) IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT 93 AS col0 FROM tab1 WHERE ( col0 - CAST ( col0 + + col2 AS INTEGER ) ) IS NOT NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - 40 * COUNT( * ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 40 * COUNT ( * ) FROM tab1
----
-120

query I rowsort
SELECT col2 * - 58 AS col2 FROM tab1
----
-3422
-3944
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col1 FROM tab1
----
37
44
80

query I rowsort
SELECT 75 * 15 AS col0 FROM tab0
----
1125
1125
1125

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT ALL col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT DISTINCT ( - COUNT( * ) ) * 84 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT ( - COUNT ( * ) ) * 84 FROM tab0
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3793
SELECT + CAST( NULL AS SIGNED ) - + 41 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT + CAST ( NULL AS INTEGER ) - + 41 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT ALL AVG ( DISTINCT - 33 ) + + 63 * 89 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL AVG ( DISTINCT - 33 ) + + 63 * 89 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT - col1 - - 66 FROM tab2
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT MIN( col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3796
SELECT MIN ( col0 ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3797
SELECT DISTINCT - COUNT( * ) DIV 52 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT - COUNT ( * ) / 52 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 * - 59 FROM tab1
----
2773
295
826

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT 76 NOT IN ( + 89 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + ( col2 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3801
SELECT COUNT( * ) DIV MIN( col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3801
SELECT COUNT ( * ) / MIN ( col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col2 * 55 - col2 AS col0 FROM tab2
----
-1288
-2240
-3248

onlyif mysql # DIV for integer division: 
query I rowsort label-3803
SELECT col1 DIV - ( - ( 58 ) ) FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3803
SELECT col1 / - ( - ( 58 ) ) FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT CAST( NULL AS SIGNED ) / 72 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( NULL AS INTEGER ) / 72 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3805
SELECT 16 DIV col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3805
SELECT 16 / col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + COUNT( * ) - + 71 AS col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3806
SELECT + COUNT ( * ) - + 71 AS col0 FROM tab2 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 32 ) col1 FROM tab0 AS cor0 WHERE NOT NULL < - col2
----

query I rowsort
SELECT 64 * 52 + - col2 AS col0 FROM tab0 AS cor0
----
3229
3281
3318

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 <= 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL + 16 * + COUNT( * ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + 16 * + COUNT ( * ) AS col1 FROM tab1
----
48

query I rowsort
SELECT - 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3814
SELECT ALL - ( - col0 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - ( - col0 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT DISTINCT 83 * - ( + 11 DIV col1 + + 10 * col1 ) FROM tab2 AS cor0
----
-42330
-55610
-63910

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT 83 * - ( + 11 / col1 + + 10 * col1 ) FROM tab2 AS cor0
----
-42330
-55610
-63910

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + ( + 12 ) FROM tab0 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL - ( ( SUM( - 69 ) ) ) * 45 FROM tab2 AS cor0
----
9315

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - ( ( SUM ( - 69 ) ) ) * 45 FROM tab2 AS cor0
----
9315

query I rowsort
SELECT + col0 * - 34 AS col0 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT ALL - 78 * 43 FROM tab1 AS cor0
----
-3354
-3354
-3354

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE col0 * + col2 <> - 53
----
3

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 * + col2 <> - 53
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT + - COUNT( ( - 3 ) ) * - 61 AS col1 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3823
SELECT + - COUNT ( ( - 3 ) ) * - 61 AS col1 FROM tab1 AS cor0
----
183

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 63 * + col1 + - col2 ) < ( ( + col1 ) + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN - col1 AND - col2 - col1 * + 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col1 FROM tab2 WHERE NOT ( - 77 ) BETWEEN col2 AND 55 + + col1 / col2
----
-26
-26
-26

query I rowsort
SELECT DISTINCT - 99 * 88 AS col1 FROM tab0
----
-8712

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / 18 - + col1 * - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT ALL + ( + COUNT( * ) ) col1 FROM tab1 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT ALL + ( + COUNT ( * ) ) col1 FROM tab1 WHERE NULL <> ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT col1 DIV col0 col2 FROM tab0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3830
SELECT DISTINCT col1 / col0 col2 FROM tab0
----
0
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT - MAX( + - 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3832
SELECT - MAX ( + - 79 ) FROM tab0 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + + col2 + - 71 FROM tab1 AS cor0
----
121
47
65

query I rowsort
SELECT DISTINCT + col0 - col1 * col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 55 + col1 FROM tab2 cor0
----
-4
12
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT - MIN( - - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3839
SELECT - MIN ( - - col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - + 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-26

query II rowsort
SELECT DISTINCT 11 AS col2, col2 AS col2 FROM tab1
----
11
59
11
68
11
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 * 0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 56 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query II rowsort
SELECT col2, col0 + - col0 AS col1 FROM tab2
----
23
0
40
0
58
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL <> ( NULL ) )
----

query I rowsort
SELECT 12 AS col1 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3849
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - 96 )
----

skipif mysql # not compatible
query III rowsort label-3849
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - 96 )
----

query II rowsort
SELECT DISTINCT 29 AS col2, col0 FROM tab0 AS cor0
----
29
15
29
87
29
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - COUNT( + + 90 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - COUNT ( + + 90 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * + + col1 + - 25 - + + col0 * col0 FROM tab2
----
-1161
1808
460

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT - + COUNT( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT - + COUNT ( * ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col2 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3855
SELECT ALL - 10 - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL - 10 - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT 71 + + - 59 AS col2 FROM tab0
----
12
12
12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 58 + + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT DISTINCT + CAST( + ( - col2 ) AS SIGNED ) - col2 + col1 * col2 FROM tab1
----
1152
177
3060

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + CAST ( + ( - col2 ) AS INTEGER ) - col2 + col1 * col2 FROM tab1
----
1152
177
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + SUM( + + col0 ) + - + COUNT( * ) AS col2 FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-3859
SELECT + SUM ( + + col0 ) + - + COUNT ( * ) AS col2 FROM tab2
----
182

query I rowsort
SELECT ALL + 83 - - + col0 FROM tab0
----
170
180
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( + 27 ) ) IN ( 19 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT + - ( - COUNT( * ) ) * - + COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + - ( - COUNT ( * ) ) * - + COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + - - col0 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 - col1 * - + col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3865
SELECT - CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3865
SELECT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( * ) * COUNT( col1 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3866
SELECT - COUNT ( * ) * COUNT ( col1 ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 + - + ( + col2 ) * col0 ) BETWEEN ( col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + ( - - col2 ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - - col1 * 65 AS col1 FROM tab0 cor0
----
1365
5265
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 23 * + + 67 + - - 52 + + + col1 * - 85 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 70 ) * ( - 43 ) * + 19 * col2 col2 FROM tab0 AS cor0
----
-2687930
-5661810
-571900

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - 42 * + COUNT( * ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3873
SELECT - 42 * + COUNT ( * ) FROM tab1 AS cor0
----
-126

query I rowsort
SELECT ALL + + col2 * 79 AS col2 FROM tab0 AS cor0
----
3713
7821
790

query I rowsort
SELECT 11 + + 65 AS col2 FROM tab1 AS cor0 WHERE NOT col2 >= col0
----
76
76

query II rowsort
SELECT - 13, + 37 AS col0 FROM tab0
----
-13
37
-13
37
-13
37

query I rowsort
SELECT ALL col0 * 73 FROM tab2
----
3358
4672
5475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 * - ( col2 ) FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT - COUNT( * ) * - - 72 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - COUNT ( * ) * - - 72 FROM tab1
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-3880
SELECT - col0 * 17 DIV + + 31 FROM tab2
----
-25
-35
-41

skipif mysql # not compatible
query I rowsort label-3880
SELECT - col0 * 17 / + + 31 FROM tab2
----
-25
-35
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-3881
SELECT ALL + col2 AS col2, + col2 + - 64 + col1 DIV + - 92 * + col1 + col0 AS col0 FROM tab2
----
23
5
40
40
58
69

skipif mysql # not compatible
query II rowsort label-3881
SELECT ALL + col2 AS col2, + col2 + - 64 + col1 / + - 92 * + col1 + col0 AS col0 FROM tab2
----
23
5
40
40
58
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3882
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND ( + 96 - col2 )
----

skipif mysql # not compatible
query III rowsort label-3882
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND ( + 96 - col2 )
----

query I rowsort
SELECT ALL - 77 * col1 AS col0 FROM tab1
----
-1078
-3619
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-3884
SELECT DISTINCT + COUNT( * ) AS col0, + MIN( DISTINCT - col1 ) FROM tab0
----
3
-81

skipif mysql # not compatible
query II rowsort label-3884
SELECT DISTINCT + COUNT ( * ) AS col0, + MIN ( DISTINCT - col1 ) FROM tab0
----
3
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT ( - col1 ) DIV col0 * - col1 * - + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT ( - col1 ) / col0 * - col1 * - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 + col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
104
133
69

query I rowsort
SELECT - - 60 FROM tab1 cor0
----
60
60
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + 44 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT + MIN( DISTINCT - col2 ) + + 15 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT + MIN ( DISTINCT - col2 ) + + 15 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT DISTINCT + + 92 AS col1, - col0 * - - col1 * col1 * - 78 AS col0 FROM tab2 AS cor0
----
92
26260650
92
29597568
92
9332388

query II rowsort
SELECT - col1 AS col0, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT DISTINCT COUNT( * ) + 8 * - COUNT( * ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT COUNT ( * ) + 8 * - COUNT ( * ) FROM tab1
----
-21

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( 20 ) / + + 15 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - + COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - + COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - - 83 AS col2 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT ALL - + CAST( + - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 58 * col1 + - 18 FROM tab0 AS cor0
----
-1236
-4716
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE ( ( CAST( + + col2 AS SIGNED ) * - + col1 ) <= NULL )
----

skipif mysql # not compatible
query I rowsort label-3900
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE ( ( CAST ( + + col2 AS INTEGER ) * - + col1 ) <= NULL )
----

query I rowsort
SELECT 64 * col2 + + col1 + 38 FROM tab0 AS cor0
----
3127
6375
699

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - COUNT( + - ( + col1 ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( + - ( + col1 ) ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT - 52 AS col1 FROM tab2 AS cor0 WHERE - 54 * - col1 * col1 BETWEEN col1 * + 96 + col1 AND NULL
----

query I rowsort
SELECT + col1 * 65 AS col2 FROM tab1 AS cor0
----
3055
325
910

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT + - 24 DIV + 76 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT + - 24 / + 76 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * - ( 50 ) FROM tab0 AS cor0
----
-2350
-4950
-500

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 64 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3908
SELECT ALL - COUNT( * ) DIV - COUNT( * ) - 73 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - COUNT ( * ) / - COUNT ( * ) - 73 FROM tab0
----
-72

query III rowsort
SELECT * FROM tab0 WHERE 75 IN ( col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE 49 + + - col0 + - 56 * ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL + col1 FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN + 91 * + col0 AND - col2 * + col0 * + - col1
----

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL + col1 FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN + 91 * + col0 AND - col2 * + col0 * + - col1
----

query I rowsort
SELECT DISTINCT col2 + 51 AS col2 FROM tab2
----
109
74
91

query I rowsort
SELECT DISTINCT + col1 - + + 46 AS col1 FROM tab1
----
-32
-41
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( 75 * - + 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3915
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + col0 + + + col1 + col0 FROM tab0 AS cor0
----
NULL
111
NULL
195
NULL
195

skipif mysql # not compatible
query II rowsort label-3915
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + col0 + + + col1 + col0 FROM tab0 AS cor0
----
NULL
111
NULL
195
NULL
195

query I rowsort
SELECT - ( - - col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT - col2 AS col2, col0 + + + 35 FROM tab2 AS cor0
----
-23
81
-40
99
-58
110

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 52 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT - MAX( + col0 ), 90 col2 FROM tab1 AS cor0
----
-91
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3921
SELECT - MAX ( + col0 ), 90 col2 FROM tab1 AS cor0
----
-91
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3922
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + ( col1 ) ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + col2 * - - 66 FROM tab0 AS cor0
----
3102
6534
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab1 AS cor0
----
55
55
55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 33 + + - col2 + + + col1 * ( col2 ) < + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - col0 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NULL > + col0 * + - 27 - col0 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NULL > + col0 * + - 27 - col0 - + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col2 * - + 44 / col0 - - + 21 NOT IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT + - 15 / - SUM( DISTINCT + col1 ) AS col0, - COUNT( + 13 ) FROM tab2 WHERE NOT + - 93 + - - 15 BETWEEN NULL AND - col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3931
SELECT + - 15 / - SUM ( DISTINCT + col1 ) AS col0, - COUNT ( + 13 ) FROM tab2 WHERE NOT + - 93 + - - 15 BETWEEN NULL AND - col1
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT ALL + COUNT( * ) DIV + 47 * - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL + COUNT ( * ) / + 47 * - - COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 7 * - + 72 AS col2 FROM tab0
----
504
504
504

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT - 96 * col1 + - - 30 DIV col2 FROM tab0
----
-2013
-7776
-96

skipif mysql # not compatible
query I rowsort label-3934
SELECT - 96 * col1 + - - 30 / col2 FROM tab0
----
-2013
-7776
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - 19 + col0 - - col1 * - 12 col2 FROM tab1
----
-1001
-1143
-1499

query I rowsort
SELECT - col0 + + 15 AS col1 FROM tab2 AS cor0
----
-31
-49
-60

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL >= - 51
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT + + 18 * + col0 + + + col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3939
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + col1 + + col2 + - CAST( NULL AS SIGNED ) - + 96 / - col0 * - 86 * - col1 * - col2 AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3939
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NULL NOT BETWEEN + col1 + + col2 + - CAST ( NULL AS INTEGER ) - + 96 / - col0 * - 86 * - col1 * - col2 AND ( col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL > NULL )
----

query I rowsort
SELECT ALL + 26 + + col2 FROM tab1
----
122
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT DISTINCT - COUNT( * ) + MAX( - col2 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT - COUNT ( * ) + MAX ( - col2 ) FROM tab2
----
-26

query I rowsort
SELECT - col0 FROM tab2 WHERE 27 IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT COUNT( * ) * MAX( ALL - col2 ) + - + 13 + + - SUM( ALL - + col1 ) FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT COUNT ( * ) * MAX ( ALL - col2 ) + - + 13 + + - SUM ( ALL - + col1 ) FROM tab2
----
113

query I rowsort
SELECT DISTINCT - + 34 - - col1 * + 16 AS col1 FROM tab1 AS cor0
----
190
46
718

query I rowsort
SELECT - 24 + col0 + + 41 AS col1 FROM tab2 AS cor0
----
63
81
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL 30 - + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 30 - + COUNT ( * ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = ( - ( + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT ( NULL ) <= + col1 ) )
----

query I rowsort
SELECT DISTINCT - 73 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3951
SELECT 3 * - 93 + + - 41 DIV - - col2 + col1, col1 DIV col0 AS col2 FROM tab1
----
-232
0
-265
0
-274
0

skipif mysql # not compatible
query II rowsort label-3951
SELECT 3 * - 93 + + - 41 / - - col2 + col1, col1 / col0 AS col2 FROM tab1
----
-232
0
-265
0
-274
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + 48 IS NULL
----

query II rowsort
SELECT ALL - col0 + - col1 AS col0, 49 AS col2 FROM tab2
----
-141
49
-142
49
-97
49

query I rowsort
SELECT ALL col0 - + col2 + + + 87 * - - col1 AS col2 FROM tab1
----
1173
4112
461

query II rowsort
SELECT + + col2 AS col0, - ( + 1 ) - - 42 AS col2 FROM tab2 WHERE NOT + 20 * + + 55 + - 43 - - 49 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col0 * - col0 * + - 61 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT DISTINCT 0 * + COUNT( * ), - COUNT( * ) AS col1 FROM tab2
----
0
-3

skipif mysql # not compatible
query II rowsort label-3957
SELECT DISTINCT 0 * + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + COUNT( DISTINCT + + 23 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3958
SELECT + COUNT ( DISTINCT + + 23 ) AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3959
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 46 - 11, 31 + + - col2 + 37, + CAST( - 38 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-3959
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 46 - 11, 31 + + - col2 + 37, + CAST ( - 38 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3960
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 43 IN ( + - col0 * - - col0, ( + - 21 ) / col1, CAST( 63 AS SIGNED ), - + 48 / - col2 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3960
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 43 IN ( + - col0 * - - col0, ( + - 21 ) / col1, CAST ( 63 AS INTEGER ), - + 48 / - col2 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3961
SELECT DISTINCT - COUNT( * ) AS col0, + 4 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
0
4

skipif mysql # not compatible
query II rowsort label-3961
SELECT DISTINCT - COUNT ( * ) AS col0, + 4 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col0 ) col2, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - + ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - 25 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - 25 FROM tab1 AS cor0
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3965
SELECT DISTINCT col2 DIV + - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT col2 / + - col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 54 ) = ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3967
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2, - col2 + + 10 + - - 69 AS col1, - col2 + + 64 AS col2 FROM tab2 AS cor0
----
9 values hashing to 442348b7b0f8e8be13c4ffd0b7ccb047

skipif mysql # not compatible
query III rowsort label-3967
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2, - col2 + + 10 + - - 69 AS col1, - col2 + + 64 AS col2 FROM tab2 AS cor0
----
9 values hashing to 442348b7b0f8e8be13c4ffd0b7ccb047

query II rowsort
SELECT DISTINCT + col0 + 19 - col2 AS col0, col1 * - col0 + col1 FROM tab0 AS cor0
----
-13
-1134
17
-96
96
-1806

query I rowsort
SELECT ALL + 63 FROM tab1 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT SUM( DISTINCT + col1 ) + + 76 + + COUNT( + col0 ) - - 37 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
293

skipif mysql # not compatible
query I rowsort label-3970
SELECT SUM ( DISTINCT + col1 ) + + 76 + + COUNT ( + col0 ) - - 37 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
293

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - col2, col0 + + col0 + + 94 )
----

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( - col2, col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3974
SELECT ( COUNT( * ) ) DIV + COUNT( * ) FROM tab2 WHERE NOT - 72 * col1 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-3974
SELECT ( COUNT ( * ) ) / + COUNT ( * ) FROM tab2 WHERE NOT - 72 * col1 IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT 5 + - - COUNT( ALL - + col1 ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT 5 + - - COUNT ( ALL - + col1 ) AS col0 FROM tab2
----
8

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 NOT IN ( col2, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + 40 ) * - col2 FROM tab2
----
-1600
-2320
-920

query I rowsort
SELECT ALL col2 + 72 FROM tab1
----
131
140
168

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT ALL - col2 DIV + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL - col2 / + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT MIN( DISTINCT + + 67 ) * - + 47 FROM tab0 AS cor0
----
-3149

skipif mysql # not compatible
query I rowsort label-3981
SELECT MIN ( DISTINCT + + 67 ) * - + 47 FROM tab0 AS cor0
----
-3149

query I rowsort
SELECT ALL + col1 + - - col2 AS col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT ALL + 93 DIV + + col1 - + col1 AS col0 FROM tab1
----
-46
-8
13

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + 93 / + + col1 - + col1 AS col0 FROM tab1
----
-46
-8
13

query I rowsort
SELECT col0 + + col1 - + col1 * col0 + 89 FROM tab1 AS cor0 WHERE + col1 < NULL
----

query I rowsort
SELECT ALL 13 * - - 42 * - + col0 - - + 42 * + + col0 AS col1 FROM tab1 cor0
----
-25704
-42840
-45864

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 = - + col1
----

query I rowsort
SELECT DISTINCT - - 16 * + - col2 AS col0 FROM tab1 AS cor0
----
-1088
-1536
-944

query I rowsort
SELECT + + 9 * col1 * - col0 AS col2 FROM tab0 AS cor0
----
-10935
-16443
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + ( COUNT( * ) ) + 71 FROM tab1 AS cor0 WHERE - col0 + - col2 IN ( - 95 )
----
71

skipif mysql # not compatible
query I rowsort label-3989
SELECT + ( COUNT ( * ) ) + 71 FROM tab1 AS cor0 WHERE - col0 + - col2 IN ( - 95 )
----
71

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + 26
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - - 79 FROM tab0 WHERE - + col1 - + - col0 = NULL
----

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) FROM tab1
----
196
2209
25

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL AND NOT + + col2 <= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT MAX( 96 ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-3995
SELECT MAX ( 96 ) AS col1 FROM tab0
----
96

query I rowsort
SELECT DISTINCT 97 * + col0 AS col2 FROM tab1
----
4947
8245
8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT + MIN( DISTINCT + 91 ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + MIN ( DISTINCT + 91 ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + + 14 * + 42 AS col0 FROM tab0 AS cor0
----
588
588
588

query I rowsort
SELECT - 29 * - 47 FROM tab1
----
1363
1363
1363

query I rowsort
SELECT - 84 * col1 * - col0 AS col1 FROM tab2 AS cor0
----
197064
413952
422100

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 63 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col1, ( + 62 ) AS col0 FROM tab2 AS cor0
----
-77
62

skipif mysql # not compatible
query II rowsort label-4002
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col1, ( + 62 ) AS col0 FROM tab2 AS cor0
----
-77
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT + + CAST( - 99 AS SIGNED ) FROM tab2 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-4003
SELECT + + CAST ( - 99 AS INTEGER ) FROM tab2 AS cor0
----
-99
-99
-99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 2 IS NULL
----

query I rowsort
SELECT ALL + 98 / col2 + - + col0 + col1 AS col2 FROM tab1 AS cor0 WHERE + 35 IS NULL
----

query I rowsort
SELECT ALL - + col2 * + 91 * + 92 AS col1 FROM tab1 AS cor0
----
-493948
-569296
-803712

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + - 32 AS col1 FROM tab0
----
-17
55
65

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IN ( - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4010
SELECT DISTINCT + CAST( COUNT( ALL + - col2 ) AS SIGNED ) + COUNT( * ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + CAST ( COUNT ( ALL + - col2 ) AS INTEGER ) + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
6

query II rowsort
SELECT DISTINCT col2, + 21 + + col0 AS col1 FROM tab2
----
23
67
40
85
58
96

query II rowsort
SELECT ALL 52, + col0 FROM tab0
----
52
15
52
87
52
97

query I rowsort
SELECT + - 59 + + 74 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 69 OR NOT - + col2 <> - col2
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col1 ) OR NULL <> NULL
----

query I rowsort
SELECT ALL - 5 * + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1475
-15980
-6720

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT ALL COUNT( * ) - - 50 DIV 37 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
10

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL COUNT ( * ) - - 50 / 37 AS col1 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
10

query I rowsort
SELECT DISTINCT - col2 - + 18 FROM tab2 AS cor0
----
-41
-58
-76

query II rowsort
SELECT - col2 AS col1, ( - 40 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59
-40
-68
-40
-96
-40

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 / + - 90 IS NOT NULL
----

query I rowsort
SELECT + 38 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + 40 BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT + + col0 DIV + col2 col0 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4023
SELECT + + col0 / + col2 col0 FROM tab0 AS cor0
----
0
0
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT - 75 DIV - + COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4024
SELECT - 75 / - + COUNT ( * ) FROM tab2
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT + ( - + col1 ) DIV 54 - - - col1 col0 FROM tab0
----
-1
-21
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4026
SELECT + ( - + col1 ) / 54 - - - col1 col0 FROM tab0
----
-1
-21
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT COUNT( * ) * - 66 col2 FROM tab0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4027
SELECT DISTINCT COUNT ( * ) * - 66 col2 FROM tab0
----
-198

query II rowsort
SELECT col0 AS col2, - 23 AS col0 FROM tab1
----
51
-23
85
-23
91
-23

query I rowsort
SELECT + 39 * 92 AS col1 FROM tab1
----
3588
3588
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL - COUNT( * ) * + - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT DISTINCT 6 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT 6 / - col2 FROM tab1
----
0

query I rowsort
SELECT ALL + col0 * col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-262144
-421875
-97336

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - col0 + + ( + - 47 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> ( + col0 * - 87 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL - 87 + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - 87 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4038
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT COUNT( 14 ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT COUNT ( 14 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 47 + - + col0 FROM tab2 AS cor0
----
-17
-28
1

query I rowsort
SELECT ALL - + 35 * - col0 + - col1 FROM tab1 AS cor0
----
1771
2970
3138

query I rowsort
SELECT ALL col1 + + + col2 * + col2 * 65 - - col2 * col1 AS col0 FROM tab1
----
226565
303803
600398

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT 25 + - SUM( col2 ) FROM tab0
----
-131

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT 25 + - SUM ( col2 ) FROM tab0
----
-131

query I rowsort
SELECT ALL 88 * + + col0 + - col1 FROM tab2
----
3997
5555
6533

query III rowsort
SELECT * FROM tab0 WHERE - + ( - - col0 ) / 46 >= - col1
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT ALL col0 + + 82 - - - col2 DIV + - 17 FROM tab2
----
129
148
160

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL col0 + + 82 - - - col2 / + - 17 FROM tab2
----
129
148
160

query I rowsort
SELECT ALL - 83 * + + 57 * + col2 * col0 + - - col1 AS col1 FROM tab1
----
-23162962
-23725960
-29275381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT - CAST( + AVG ( - + col1 ) AS SIGNED ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT - CAST ( + AVG ( - + col1 ) AS INTEGER ) AS col2 FROM tab0
----
34

query I rowsort
SELECT - 33 - 20 FROM tab0 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4052
SELECT DISTINCT + SUM( + - col1 ) col1, COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-195
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4052
SELECT DISTINCT + SUM ( + - col1 ) col1, COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-195
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4053
SELECT 42 - - CAST( NULL AS DECIMAL ) + + 81 * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT 42 - - CAST ( NULL AS REAL ) + + 81 * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 89 + col1 FROM tab1 AS cor0
----
103
136
94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4055
SELECT + MIN( col0 ) + - - 41 + - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT + MIN ( col0 ) + - - 41 + - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT 98 + - - CAST( - col1 AS SIGNED ) FROM tab0
----
17
77
97

skipif mysql # not compatible
query I rowsort label-4056
SELECT 98 + - - CAST ( - col1 AS INTEGER ) FROM tab0
----
17
77
97

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 73, col2 - col2 + col1, 51 )
----

query I rowsort
SELECT - col1 - - 88 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 * - 13 col1 FROM tab1 cor0 WHERE NULL IS NULL
----
63648
65195
80444

query I rowsort
SELECT ALL - - 57 AS col2 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT + COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4063
SELECT + COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + 37 * + - COUNT( * ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4064
SELECT + 37 * + - COUNT ( * ) FROM tab0 AS cor0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT + + COUNT( * ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4065
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT DISTINCT AVG ( ALL - col0 ) * + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT 70 + - - col1 / + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT AVG ( ALL - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT 70 + - - col1 / + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL - - 13 AS col0 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT ALL + 22 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT + + COUNT( * ) col0 FROM tab0 WHERE NOT + - 25 NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4069
SELECT + + COUNT ( * ) col0 FROM tab0 WHERE NOT + - 25 NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4070
SELECT col0 * - col1 AS col0, - CAST( - 25 AS SIGNED ) FROM tab1
----
-425
25
-4277
25
-714
25

skipif mysql # not compatible
query II rowsort label-4070
SELECT col0 * - col1 AS col0, - CAST ( - 25 AS INTEGER ) FROM tab1
----
-425
25
-4277
25
-714
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 8 AS col1 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT ALL + 39 * + col1 + + - col1 * - + col1 FROM tab1 cor0
----
220
4042
742

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - 7 = - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query III rowsort
SELECT * FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( 78 ) FROM tab1 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT + - col2 DIV - 3 AS col2 FROM tab2 cor0
----
13
19
7

skipif mysql # not compatible
query I rowsort label-4078
SELECT + - col2 / - 3 AS col2 FROM tab2 cor0
----
13
19
7

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT - + COUNT( + + 85 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4080
SELECT - + COUNT ( + + 85 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 95 * + - col2 FROM tab1 AS cor0
----
-5605
-6460
-9120

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT - 36 DIV 30 + + 37 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4082
SELECT - 36 / 30 + + 37 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - + 96 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT MIN( + col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4085
SELECT DISTINCT CAST( - + SUM( DISTINCT 1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT CAST ( - + SUM ( DISTINCT 1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

query I rowsort
SELECT - ( + + 63 ) + + + col0 AS col1 FROM tab2 AS cor0
----
-17
1
12

query I rowsort
SELECT ALL + 5 AS col2 FROM tab2 WHERE col2 > + 99 * + - 77 + col1
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT ALL col1 DIV + - 5 + col1 * + 33 AS col2 FROM tab2
----
1673
2198
2526

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL col1 / + - 5 + col1 * + 33 AS col2 FROM tab2
----
1673
2198
2526

query I rowsort
SELECT 37 + col2 + - + col1 AS col0 FROM tab2
----
0
28
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT COUNT( - 69 ) + + MAX( DISTINCT + + col1 ) AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-4091
SELECT COUNT ( - 69 ) + + MAX ( DISTINCT + + col1 ) AS col2 FROM tab1
----
50

query I rowsort
SELECT - 61 + + + col2 FROM tab2
----
-21
-3
-38

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col1 + - col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE + col0 IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL + COUNT( * ) * - 82 AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + COUNT ( * ) * - 82 AS col1 FROM tab1
----
-246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 col1, col2 FROM tab2 cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 - + + 32 col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT ALL - 51 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT MIN( - 1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT MIN ( - 1 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4101
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----
0

query I rowsort
SELECT + 0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT ( + + ( + col1 ) ), 22 FROM tab1 AS cor0
----
14
22
47
22
5
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT 99 * 71 * + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= 29
----

query II rowsort
SELECT DISTINCT - col1, col1 AS col1 FROM tab1
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT - col0 AS col1, ( + - col1 ) + 39 + + - col0 FROM tab0
----
-15
-57
-87
-69
-97
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 WHERE NOT NULL < + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * 62 col1 FROM tab0
----
-558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4109
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * 62 col1 FROM tab0
----
-558

query I rowsort
SELECT - ( ( - + 48 ) ) * col0 FROM tab2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT COUNT( * ) * + + ( COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4111
SELECT COUNT ( * ) * + + ( COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT + 57 * + col2 AS col0 FROM tab0
----
2679
5643
570

query I rowsort
SELECT 84 * - + col1 FROM tab1
----
-1176
-3948
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT - MAX( DISTINCT + 60 ) AS col1 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-4114
SELECT - MAX ( DISTINCT + 60 ) AS col1 FROM tab0
----
-60

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 / - 1 + - 94 + - 10 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab0
----
27
27
27

query I rowsort
SELECT DISTINCT - col2 * + col0 / - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + 67 ) AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT ALL + col2 + + col2 * + - col1 * + + col0 FROM tab1 cor0
----
-25016
-290768
-68448

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL - COUNT( * ) * + - 18 + - 85 AS col2 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - COUNT ( * ) * + - 18 + - 85 AS col2 FROM tab1 cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT + col1 FROM tab1 cor0 WHERE NOT col2 * CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4121
SELECT + col1 FROM tab1 cor0 WHERE NOT col2 * CAST ( NULL AS INTEGER ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col1 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - + MAX( ALL - col1 ) * - SUM( - 53 ) AS col1 FROM tab1 AS cor0
----
795

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - + MAX ( ALL - col1 ) * - SUM ( - 53 ) AS col1 FROM tab1 AS cor0
----
795

query I rowsort
SELECT DISTINCT + col0 + - + col2 AS col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT MAX( ALL + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT MAX ( ALL + col2 ) FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4127
SELECT ALL col0 * 54 DIV col2 FROM tab0 AS cor0
----
17
469
52

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL col0 * 54 / col2 FROM tab0 AS cor0
----
17
469
52

query I rowsort
SELECT DISTINCT - 88 * + col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT + 3 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4129
SELECT + 3 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + 37 AS col0 FROM tab1 cor0
----
37
37
37

query I rowsort
SELECT ALL - + 12 + - col1 * 86 AS col1 FROM tab1 AS cor0
----
-1216
-4054
-442

query I rowsort
SELECT DISTINCT + + 42 - col1 * - - col0 + + 76 FROM tab1 cor0 WHERE NULL < + 43 * - col1 * - 56
----

query II rowsort
SELECT DISTINCT + col1 + col1, - 25 AS col2 FROM tab1 AS cor0
----
10
-25
28
-25
94
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + + COUNT( * ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4134
SELECT + + COUNT ( * ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT ALL col1 DIV - 88 + - + col2 - - col1 AS col2 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL col1 / - 88 + - + col2 - - col1 AS col2 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + COUNT( * ) + + 81 + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) + + 81 + - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 - 82 AS col1 FROM tab2 AS cor0
----
-128
-146
-157

query I rowsort
SELECT - + col1 + - 24 FROM tab2 AS cor0
----
-101
-75
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT - 55 DIV + col1 FROM tab1 AS cor0
----
-1
-11
-3

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - 55 / + col1 FROM tab1 AS cor0
----
-1
-11
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT ( + MAX( + col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT ( + MAX ( + col1 ) ) AS col2 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4143
SELECT DISTINCT + COUNT( * ) * + 79 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
711
9

skipif mysql # not compatible
query II rowsort label-4143
SELECT DISTINCT + COUNT ( * ) * + 79 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
711
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT + ( + SUM( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4146
SELECT + ( + SUM ( ALL - + col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT SUM( + 55 ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT SUM ( + 55 ) FROM tab2 AS cor0
----
165

query I rowsort
SELECT ALL ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-4150
SELECT + col0, - ( col1 ) + col1 DIV + - col0 FROM tab2 AS cor0
----
46
-52
64
-78
75
-67

skipif mysql # not compatible
query II rowsort label-4150
SELECT + col0, - ( col1 ) + col1 / + - col0 FROM tab2 AS cor0
----
46
-52
64
-78
75
-67

query III rowsort
SELECT ALL + col1, - 68, col0 FROM tab1 AS cor0
----
9 values hashing to 93883c8912ca8faeeb300a68b12c4d74

query II rowsort
SELECT - 20 AS col2, + col2 AS col0 FROM tab1 AS cor0
----
-20
59
-20
68
-20
96

query II rowsort
SELECT DISTINCT + 78, col2 FROM tab0 cor0
----
78
10
78
47
78
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT MIN( + col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4155
SELECT DISTINCT MIN ( + col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT col0 * + + col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4158
SELECT * FROM tab0 WHERE NOT NULL < + col2 / col1 + + - ( - + 47 ) * - 88 + + + CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-4158
SELECT * FROM tab0 WHERE NOT NULL < + col2 / col1 + + - ( - + 47 ) * - 88 + + + CAST ( NULL AS INTEGER ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col1 / + + col1 + + + col1 * - + 71 - - - 32 * + ( + - 91 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4159
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col1 / + + col1 + + + col1 * - + 71 - - - 32 * + ( + - 91 ) <= NULL
----
0

query I rowsort
SELECT col2 + + col0 + - col1 FROM tab0 cor0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab2 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-4161
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + MIN( ALL - + col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4163
SELECT + MIN ( ALL - + col1 ) FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT CAST( 85 AS SIGNED ) col0 FROM tab1
----
85
85
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4164
SELECT CAST ( 85 AS INTEGER ) col0 FROM tab1
----
85
85
85

query II rowsort
SELECT - col2, + 47 AS col2 FROM tab2
----
-23
47
-40
47
-58
47

query II rowsort
SELECT DISTINCT col1 * - + 11 AS col2, col2 + + col2 * + + 92 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-561
2139
-737
5394
-847
3720

query I rowsort
SELECT + 85 - - 75 AS col2 FROM tab1 AS cor0
----
160
160
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 49 col0, + 21 * + - col2 AS col0 FROM tab2 AS cor0
----
49
-1218
49
-483
49
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT ALL - CAST( - col1 AS SIGNED ) * + + col1 + col1 AS col0 FROM tab1 AS cor0
----
210
2256
30

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - CAST ( - col1 AS INTEGER ) * + + col1 + col1 AS col0 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - 70 + - COUNT( * ) FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4170
SELECT - 70 + - COUNT ( * ) FROM tab2 cor0
----
-73

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL 68 + + 94 FROM tab2
----
162
162
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT 21 * - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4174
SELECT 21 * - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
-66

query I rowsort
SELECT + col1 + + - col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT - MAX( DISTINCT col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4176
SELECT - MAX ( DISTINCT col2 ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 66 NOT BETWEEN NULL AND col2 - - 14
----
46
51
23
64
77
40

query I rowsort
SELECT ALL col1 - + ( - col1 ) AS col0 FROM tab2
----
102
134
154

query II rowsort
SELECT ALL col2 + + - col0 AS col2, + col1 AS col1 FROM tab2
----
-17
67
-23
51
-24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT COUNT( ALL - - 95 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4180
SELECT COUNT ( ALL - - 95 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT - 11 DIV col1 + col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - 11 / col1 + col2 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL + COUNT( - 10 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + COUNT ( - 10 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT ALL - 38 DIV + - MAX( 32 ) col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4184
SELECT ALL - 38 / + - MAX ( 32 ) col0 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4187
SELECT ALL col1 DIV + col2 * + col0 col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT ALL col1 / + col2 * + col0 col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 33 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 92 * col0 * + col0 IN ( - + 39, - 37, - col1 + 48 )
----

query II rowsort
SELECT ALL col2 * + + col2 AS col2, + 25 FROM tab2
----
1600
25
3364
25
529
25

query I rowsort
SELECT ALL + col2 * + ( + 92 ) FROM tab2
----
2116
3680
5336

query I rowsort
SELECT + ( + - 42 ) * + col2 AS col2 FROM tab1
----
-2478
-2856
-4032

query I rowsort
SELECT ALL + col1 + 54 + col2 AS col0 FROM tab0
----
154
182
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4195
SELECT col1 AS col0, CAST( - 60 AS SIGNED ) * col0 FROM tab0
----
1
-5820
21
-5220
81
-900

skipif mysql # not compatible
query II rowsort label-4195
SELECT col1 AS col0, CAST ( - 60 AS INTEGER ) * col0 FROM tab0
----
1
-5820
21
-5220
81
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + COUNT( ALL col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + COUNT ( ALL col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + 67 * - SUM( ALL col2 ) FROM tab2
----
-8107

skipif mysql # not compatible
query I rowsort label-4197
SELECT + 67 * - SUM ( ALL col2 ) FROM tab2
----
-8107

query I rowsort
SELECT + col0 FROM tab2 WHERE ( NULL IS NULL )
----
46
64
75

query I rowsort
SELECT ALL col1 * + - 75 AS col1 FROM tab1 cor0
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - COUNT( * ) * 87 * + - COUNT( * ) col1 FROM tab2 AS cor0
----
783

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4200
SELECT - COUNT ( * ) * 87 * + - COUNT ( * ) col1 FROM tab2 AS cor0
----
783

query I rowsort
SELECT + col1 * - col1 + 98 - 53 + + 23 FROM tab0 AS cor0
----
-373
-6493
67

query I rowsort
SELECT DISTINCT - 87 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-87

query I rowsort
SELECT - 80 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT - ( + 93 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + 54 * - 62 AS col0, - 39 AS col1 FROM tab2 AS cor0
----
-3348
-39
-3348
-39
-3348
-39

query I rowsort
SELECT - col2 * + col0 * - 37 FROM tab2 AS cor0
----
160950
39146
94720

query I rowsort
SELECT 60 - + - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 + + - 95 FROM tab1 AS cor0
----
-48
-81
-90

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT + - 38 < - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4212
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4212
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > ( + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT NULL = col2
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL >= + - 86
----

query I rowsort
SELECT DISTINCT col1 * - - 40 + - 4 AS col2 FROM tab2
----
2036
2676
3076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4216
SELECT DISTINCT + 72 + SUM( - - CAST( + 8 AS SIGNED ) ) * + 8 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + 72 + SUM ( - - CAST ( + 8 AS INTEGER ) ) * + 8 FROM tab1
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * + ( - 95 ) col0 FROM tab2
----
-4370

query I rowsort
SELECT ( - + col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT DISTINCT + COUNT( * ), + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT ALL 27 AS col0, col2 * ( - col2 ) + + - col2 FROM tab0 AS cor0
----
27
-110
27
-2256
27
-9900

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 93 * 96 FROM tab2 AS cor0
----
-8928
-8928
-8928

query II rowsort
SELECT DISTINCT col0 * + 38 AS col1, col2 AS col1 FROM tab0
----
3306
10
3686
99
570
47

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4225
SELECT DISTINCT CAST( - 63 AS SIGNED ) DIV - + col1 AS col0 FROM tab0
----
0
3
63

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT CAST ( - 63 AS INTEGER ) / - + col1 AS col0 FROM tab0
----
0
3
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT DISTINCT - col0 DIV 18 * - col1 FROM tab0 AS cor0
----
0
5
84

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT - col0 / 18 * - col1 FROM tab0 AS cor0
----
0
5
84

query I rowsort
SELECT DISTINCT col2 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT + + 21 AS col2 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT + MAX( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4229
SELECT + MAX ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4230
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4230
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT + col1 AS col1, col2 * + col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 * col1 + - col1 + + col1 * + - 40 AS col1 FROM tab2 AS cor0
----
-4692
-7236
-9086

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 86 col0 FROM tab2
----
11
22
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4234
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <= + CAST( - 99 AS DECIMAL ) AND - col1 + - 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4234
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <= + CAST ( - 99 AS REAL ) AND - col1 + - 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT ALL - ( 97 ) + - COUNT( col2 ) FROM tab1
----
-100

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL - ( 97 ) + - COUNT ( col2 ) FROM tab1
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-4236
SELECT + COUNT( ALL - col1 ) + - 92 AS col0, - COUNT( * ) AS col2 FROM tab2
----
-89
-3

skipif mysql # not compatible
query II rowsort label-4236
SELECT + COUNT ( ALL - col1 ) + - 92 AS col0, - COUNT ( * ) AS col2 FROM tab2
----
-89
-3

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT DISTINCT CAST( NULL AS SIGNED ), + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4238
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col1 col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - 4 + + col0 FROM tab1
----
47
81
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT + COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4241
SELECT + COUNT ( - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT + - MAX( DISTINCT col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + - MAX ( DISTINCT col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT - - col0 / + 42 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + - ( 60 ) + + 90 AND + - col1
----

query I rowsort
SELECT ALL + 24 AS col2 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + COUNT( + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + COUNT ( + col2 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT + col1 AS col1, - 97 AS col1 FROM tab1 AS cor0
----
14
-97
47
-97
5
-97

query I rowsort
SELECT - - 51 + - + 55 FROM tab0 AS cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * - 69 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4250
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL + + COUNT( - col0 ) FROM tab0 WHERE NOT - + col0 / - 52 + 89 * + col1 NOT BETWEEN NULL AND - - col2
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL + + COUNT ( - col0 ) FROM tab0 WHERE NOT - + col0 / - 52 + 89 * + col1 NOT BETWEEN NULL AND - - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 95 ) IS NOT NULL
----

query I rowsort
SELECT - 75 * + 90 AS col0 FROM tab1
----
-6750
-6750
-6750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4254
SELECT - COUNT( * ) AS col2, + AVG ( ALL + - ( - CAST( - - 21 AS SIGNED ) ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4254
SELECT - COUNT ( * ) AS col2, + AVG ( ALL + - ( - CAST ( - - 21 AS INTEGER ) ) ) FROM tab1 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT col0 DIV + + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4255
SELECT col0 / + + col2 FROM tab1
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * - 78 / + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----
0

query I rowsort
SELECT col2 * - + 19 AS col1 FROM tab0
----
-1881
-190
-893

query II rowsort
SELECT ALL - col1 AS col0, + col2 + col2 * col0 AS col0 FROM tab1
----
-14
4992
-47
6256
-5
5074

query I rowsort
SELECT DISTINCT - col1 * + + 43 AS col1 FROM tab0
----
-3483
-43
-903

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + - 65 ) < ( - - ( + - 59 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4262
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT + + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT + + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT + 11 AS col1 FROM tab2 cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 56 ) <= col1
----
64
77
40
75
67
58

query I rowsort
SELECT ALL - 30 + + - 88 + - col0 AS col1 FROM tab0 AS cor0
----
-133
-205
-215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab0 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT - 80 + - - col0 FROM tab0 AS cor0
----
-65
17
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT DISTINCT 22 DIV col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT 22 / col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT COUNT( ALL - - 91 ) * - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4272
SELECT COUNT ( ALL - - 91 ) * - COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL - 52 + + 44 AS col0 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT ALL 21 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + - 92 FROM tab1 AS cor0
----
-143
-177
-183

query I rowsort
SELECT - ( 77 ) + 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 - 69 col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-73

query I rowsort
SELECT DISTINCT + 99 - col0 FROM tab0 AS cor0
----
12
2
84

query I rowsort
SELECT DISTINCT - 84 - + + ( - + 36 ) FROM tab2 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT - - MAX( - ( - ( col2 ) ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4281
SELECT - - MAX ( - ( - ( col2 ) ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT - - 94 * - col1 AS col2 FROM tab1 AS cor0
----
-1316
-4418
-470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4283
SELECT + + COUNT( * ) DIV + ( + 30 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4283
SELECT + + COUNT ( * ) / + ( + 30 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 18 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > - 30 * - + col1
----

query I rowsort
SELECT - col1 * + 69 AS col0 FROM tab2 cor0
----
-3519
-4623
-5313

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( + + col1, col1 * - 71 * - 13, 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4287
SELECT COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 82 - + col2 - - ( + 69 ) * col1 - + ( + + col0 ) / + ( 72 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL COUNT( ALL + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL COUNT ( ALL + col0 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 / col0 + - 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4291
SELECT COUNT( * ), + 3 * + 99 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
3
297

skipif mysql # not compatible
query II rowsort label-4291
SELECT COUNT ( * ), + 3 * + 99 AS col1 FROM tab1 WHERE NOT + col0 IS NULL
----
3
297

query II rowsort
SELECT ALL + col2, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4293
SELECT + - COUNT ( * ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4294
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 / + - col0 * - - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0 + - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT + MAX( DISTINCT + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4296
SELECT + MAX ( DISTINCT + 27 ) FROM tab2 AS cor0
----
27

query II rowsort
SELECT + col1 * - 13 AS col0, 21 + + col2 AS col1 FROM tab0
----
-1053
68
-13
120
-273
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4298
SELECT col1 DIV + 74 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4298
SELECT col1 / + 74 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - COUNT( - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4299
SELECT - COUNT ( - - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col2 * + 55 + col2 + col1 FROM tab0 AS cor0
----
-2457
-519
-5345

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4301
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4303
SELECT + 95 DIV - SUM( DISTINCT - col1 ) + + 8 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4303
SELECT + 95 / - SUM ( DISTINCT - col1 ) + + 8 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT + + 62 + 63 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT DISTINCT 76 + - COUNT( * ) AS col0, MIN( DISTINCT - - 49 ) AS col1 FROM tab2 AS cor0
----
73
49

skipif mysql # not compatible
query II rowsort label-4305
SELECT DISTINCT 76 + - COUNT ( * ) AS col0, MIN ( DISTINCT - - 49 ) AS col1 FROM tab2 AS cor0
----
73
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col1 = - - col2
----

query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col1 FROM tab2 cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + col2 + 21 FROM tab1 AS cor0
----
117
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - - 45 NOT IN ( ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 44 + - 1 FROM tab2
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT + 40 DIV col2 + - + ( - - ( 82 ) ) FROM tab0
----
-78
-82
-82

skipif mysql # not compatible
query I rowsort label-4312
SELECT + 40 / col2 + - + ( - - ( 82 ) ) FROM tab0
----
-78
-82
-82

query I rowsort
SELECT DISTINCT + 50 + 72 - - col2 AS col1 FROM tab1
----
181
190
218

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL + - ( - ( AVG ( DISTINCT - + col2 ) ) ) AS col0 FROM tab0 WHERE NOT + - col1 + col0 * + col2 BETWEEN + CAST( + col0 AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + - ( - ( AVG ( DISTINCT - + col2 ) ) ) AS col0 FROM tab0 WHERE NOT + - col1 + col0 * + col2 BETWEEN + CAST ( + col0 AS INTEGER ) AND NULL
----
NULL

query I rowsort
SELECT ALL + 17 - + - col0 AS col1 FROM tab1
----
102
108
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4317
SELECT DISTINCT COUNT( * ), - COUNT( * ) AS col2 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4317
SELECT DISTINCT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ALL + 68 * COUNT( * ) AS col2 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL + 68 * COUNT ( * ) AS col2 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT DISTINCT - col1 DIV + - col2 - + + col2 - col0 + - 77 - + - 45 col2 FROM tab0 cor0
----
-127
-228
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT DISTINCT - col1 / + - col2 - + + col2 - col0 + - 77 - + - 45 col2 FROM tab0 cor0
----
-127
-228
-93

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT - 78 DIV col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT - 78 / col0 AS col1 FROM tab0
----
-5
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IN ( - ( + 34 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 16 col1 FROM tab1
----
-35
-69
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT + 68 DIV + 10 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 68 / + 10 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT + 75 * COUNT( * ) AS col2 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT + 75 * COUNT ( * ) AS col2 FROM tab0
----
225

query I rowsort
SELECT ( 51 ) FROM tab1 WHERE 93 > col2 * 24
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL + ( COUNT( col1 ) ) FROM tab2 WHERE col2 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + ( COUNT ( col1 ) ) FROM tab2 WHERE col2 + - col2 IS NULL
----
0

query I rowsort
SELECT ALL - col2 - col2 * col1 FROM tab2 WHERE 95 IS NOT NULL
----
-1196
-3120
-3944

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL - ( COUNT( * ) ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - ( COUNT ( * ) ) + - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT + ( - 60 ) - col1 FROM tab2
----
-111
-127
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MIN( col2 ) + ( + COUNT( * ) ) AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-4334
SELECT MIN ( col2 ) + ( + COUNT ( * ) ) AS col1 FROM tab1
----
62

query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab2 WHERE - 78 * + 35 IS NOT NULL
----
17
23
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 * col2 + 46 col0 FROM tab1
----
-2255
-2606
-3698

query I rowsort
SELECT - 98 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4338
SELECT DISTINCT COUNT ( * ) col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1 WHERE NOT - col0 BETWEEN col0 - - col2 AND ( col0 * col1 )
----
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * col2 NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT col0 - + 43 FROM tab2 WHERE NOT + col2 - 91 IN ( 68 )
----
21
3
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT ALL - CAST( 37 AS SIGNED ) AS col1 FROM tab1
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL - CAST ( 37 AS INTEGER ) AS col1 FROM tab1
----
-37
-37
-37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 41 * 67 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 98 - + col2 FROM tab2
----
40
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - 36 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - 36 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 87 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT + ( + COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4347
SELECT + ( + COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4348
SELECT + col2 + + col1 DIV - 51 FROM tab0 WHERE NOT - col1 * - col1 + - 82 IS NULL
----
10
46
99

skipif mysql # not compatible
query I rowsort label-4348
SELECT + col2 + + col1 / - 51 FROM tab0 WHERE NOT - col1 * - col1 + - 82 IS NULL
----
10
46
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4349
SELECT * FROM tab2 WHERE + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4349
SELECT * FROM tab2 WHERE + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - ( + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4350
SELECT - ( + COUNT ( * ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4351
SELECT ALL ( - COUNT( * ) ) - + COUNT( * ) DIV 80 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL ( - COUNT ( * ) ) - + COUNT ( * ) / 80 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT + CAST( 73 AS SIGNED ) FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-4352
SELECT + CAST ( 73 AS INTEGER ) FROM tab1
----
73
73
73

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + col1 + 28 < ( ( - ( - 48 ) ) )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT - COUNT( * ) FROM tab0 WHERE NOT col2 >= col2
----
0

skipif mysql # not compatible
query I rowsort label-4354
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col2 >= col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN 13 - - 41 AND ( + 16 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT ( 35 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col1 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ( + col1 ) FROM tab0 WHERE ( + col0 / 79 ) > NULL
----

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 29 * 3 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab0
----
94

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab0 cor0
----
19

query I rowsort
SELECT + 65 AS col1 FROM tab1 cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT ALL + col0 DIV 92 FROM tab2 AS cor0 WHERE NOT ( + 75 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL + col0 / 92 FROM tab2 AS cor0 WHERE NOT ( + 75 ) IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT - 64 DIV + col0 AS col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT - 64 / + col0 AS col0 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL 36 * + col0 AS col0 FROM tab0 AS cor0 WHERE col0 <> col2
----
3132
3492
540

query I rowsort
SELECT DISTINCT + col2 * 20 AS col2 FROM tab1 AS cor0
----
1180
1360
1920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col0 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + - 3 IS NOT NULL
----

query I rowsort
SELECT + + 49 AS col1 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE ( col0 ) IN ( col0 )
----
-46
-64
-75

query I rowsort
SELECT ALL col1 + + col2 FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
117
125
74

query I rowsort
SELECT ALL col0 + - 82 AS col2 FROM tab1
----
-31
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL BETWEEN NULL AND ( + 23 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL BETWEEN NULL AND ( + 23 * - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col0 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + 83 + + col1 AS col1 FROM tab2
----
134
150
160

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT ALL + 61 DIV - 78 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + 61 / - 78 + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - SUM( ALL - col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4381
SELECT - SUM ( ALL - col1 ) AS col1 FROM tab0
----
103

query I rowsort
SELECT DISTINCT col2 + 52 FROM tab0
----
151
62
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4383
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( 31 AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( 31 AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT COUNT( * ) * - MIN( + col2 ) + 66 col1 FROM tab0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4384
SELECT DISTINCT COUNT ( * ) * - MIN ( + col2 ) + 66 col1 FROM tab0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + MAX( 29 ) FROM tab1 WHERE + 16 > - col1 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT + MAX ( 29 ) FROM tab1 WHERE + 16 > - col1 + + col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 / + 34 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT + COUNT( * ) + 72 AS col1 FROM tab2 WHERE NULL NOT IN ( col1 )
----
72

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + COUNT ( * ) + 72 AS col1 FROM tab2 WHERE NULL NOT IN ( col1 )
----
72

query I rowsort
SELECT ALL col0 - + col1 * - col2 FROM tab1
----
1395
3287
380

query I rowsort
SELECT + 40 - + - col2 * ( col0 ) AS col2 FROM tab0
----
745
910
9643

query I rowsort
SELECT DISTINCT ( 89 ) * 21 FROM tab1 cor0
----
1869

onlyif mysql # DIV for integer division: 
query I rowsort label-4391
SELECT - + col2 + - - 11 DIV col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4391
SELECT - + col2 + - - 11 / col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + - col2 * 14 AS col2 FROM tab0 AS cor0
----
-1386
-140
-658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT ALL + - ( + 43 ) / - 9 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL + - ( + 43 ) / - 9 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT - COUNT( ALL col0 ) + + ( - 17 ) col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4394
SELECT - COUNT ( ALL col0 ) + + ( - 17 ) col0 FROM tab2 AS cor0
----
-20

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT DISTINCT - SUM( 66 ) * - COUNT( * ) + 95 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
5441

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - SUM ( 66 ) * - COUNT ( * ) + 95 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
5441

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN - 21 + col1 AND NULL
----

query I rowsort
SELECT - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 42 / - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4400
SELECT ALL 8 * + SUM( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL 8 * + SUM ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * - col1 + + - col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-4402
SELECT DISTINCT - + 94 DIV 39 + + - col0 AS col2 FROM tab1 AS cor0
----
-53
-87
-93

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT - + 94 / 39 + + - col0 AS col2 FROM tab1 AS cor0
----
-53
-87
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT col0 + + col0 * 64 IS NULL
----
23
40
58

query I rowsort
SELECT - 36 * + col1 FROM tab0 AS cor0
----
-2916
-36
-756

onlyif mysql # aggregate syntax: 
query II rowsort label-4407
SELECT ALL 68 AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
68
-3

skipif mysql # not compatible
query II rowsort label-4407
SELECT ALL 68 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
68
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4408
SELECT - 11 AS col0, - 62 DIV COUNT( * ) FROM tab1 cor0
----
-11
-20

skipif mysql # not compatible
query II rowsort label-4408
SELECT - 11 AS col0, - 62 / COUNT ( * ) FROM tab1 cor0
----
-11
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT + COUNT( * ) * + + 5 * - COUNT( - col0 ) - - SUM( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-4409
SELECT + COUNT ( * ) * + + 5 * - COUNT ( - col0 ) - - SUM ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT col0 * - - col0 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col0 ) BETWEEN NULL AND ( ( 57 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT MIN( - 8 ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT MIN ( - 8 ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT DISTINCT + 1 * col2 * + col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4415
SELECT - col2 DIV + 25 AS col2 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4415
SELECT - col2 / + 25 AS col2 FROM tab1
----
-2
-2
-3

query II rowsort
SELECT ALL - ( - - 31 ) AS col2, 39 * - col0 + - col0 AS col0 FROM tab2
----
-31
-1840
-31
-2560
-31
-3000

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab1 WHERE NULL IS NULL
----
93

query III rowsort
SELECT * FROM tab1 WHERE NOT + 48 NOT BETWEEN ( - col2 + - col2 ) AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4419
SELECT ( - + col2 ) AS col0, col2 DIV - col0 AS col2 FROM tab2
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-4419
SELECT ( - + col2 ) AS col0, col2 / - col0 AS col2 FROM tab2
----
-23
0
-40
0
-58
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 13 <> col1 * + 15
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / + 57 / + col1 + 16 / - 7 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT + SUM( 41 ) * + MIN( + - col1 ) FROM tab2
----
-9471

skipif mysql # not compatible
query I rowsort label-4423
SELECT + SUM ( 41 ) * + MIN ( + - col1 ) FROM tab2
----
-9471

query I rowsort
SELECT + 45 + + + 48 * + + col0 - col2 FROM tab1
----
2397
4066
4345

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - - col2 * col0 * col2 - - 76 * 78 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 - + + ( - col1 ) + col2 IN ( - col1 * + 23 )
----
-51
-67
-77

query I rowsort
SELECT - col0 * + col2 + + col1 + 52 AS col1 FROM tab0 AS cor0
----
-572
-797
-9550

query I rowsort
SELECT ALL col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL + ( + ( - COUNT( * ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL + ( + ( - COUNT ( * ) ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + - col2 - + - 16 AS col2 FROM tab1 WHERE NULL IS NULL
----
-43
-52
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 20 - + + col2 * + 17 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col2 < NULL
----

query I rowsort
SELECT 98 AS col0 FROM tab1 WHERE NULL BETWEEN - + 74 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT DISTINCT - CAST( + 9 AS SIGNED ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - CAST ( + 9 AS INTEGER ) AS col2 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4436
SELECT 74 + + - col2 + - 56 - 58 DIV + 98 FROM tab2 AS cor0
----
-22
-40
-5

skipif mysql # not compatible
query I rowsort label-4436
SELECT 74 + + - col2 + - 56 - 58 / + 98 FROM tab2 AS cor0
----
-22
-40
-5

query I rowsort
SELECT + - 68 + col0 * - 63 AS col0 FROM tab2 cor0
----
-2966
-4100
-4793

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( + col2 ) col1 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4440
SELECT - 84 + - - col2 DIV col0 - + col0 * 36 col1 FROM tab0
----
-3216
-3575
-621

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT - 84 + - - col2 / col0 - + col0 * 36 col1 FROM tab0
----
-3216
-3575
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4441
SELECT + 38 / + + ( - COUNT( * ) ) * 16 * + ( + + COUNT( * ) ) + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT + 38 / + + ( - COUNT ( * ) ) * 16 * + ( + + COUNT ( * ) ) + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2 WHERE 12 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT ALL - col1 DIV ( col1 ) + + - col1 DIV + 62 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL - col1 / ( col1 ) + + - col1 / + 62 FROM tab1
----
-1
-1
-1

query II rowsort
SELECT col2, + 62 FROM tab0
----
10
62
47
62
99
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL - col0 * - + 86 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL - col0 * - + 86 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + - col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT DISTINCT 62 * - col2 + - col2 FROM tab0
----
-2961
-6237
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT DISTINCT - - 40 DIV - col1 - - 45 * + col0 FROM tab1 AS cor0
----
2293
3817
4095

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - - 40 / - col1 - - 45 * + col0 FROM tab1 AS cor0
----
2293
3817
4095

query I rowsort
SELECT DISTINCT - col0 - - col2 AS col2 FROM tab0 cor0
----
-77
2
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT col1 * + 71 FROM tab0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 WHERE NOT 19 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT 19 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4453
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT ( + CAST( NULL AS SIGNED ) + - 63 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4453
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT ( + CAST ( NULL AS INTEGER ) + - 63 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT DISTINCT + ( + - 84 ) FROM tab1 AS cor0
----
-84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 24 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 60 * + ( - + col0 ) = - 59 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 * + + col0 * + 3 col2 FROM tab2 cor0
----
-4140
-5760
-6750

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 73 = - + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT ALL + COUNT( * ) * - - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 2 * col1 AS col2 FROM tab1
----
10
28
94

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 84 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT + MIN( - - 33 ) DIV + + MIN( DISTINCT - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4465
SELECT + MIN ( - - 33 ) / + + MIN ( DISTINCT - col0 ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT + col1 DIV 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + col1 / 97 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - 13 * + + MIN( - - col0 ) FROM tab1
----
-663

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - 13 * + + MIN ( - - col0 ) FROM tab1
----
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col0 col1 FROM tab2
----
-51
-46
-67
-75
-77
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 7, 65 col2 FROM tab0 AS cor0
----
7
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + + COUNT( + - 99 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4470
SELECT + + COUNT ( + - 99 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 > - 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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-4473
SELECT - 96 + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-105

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 96 + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-105

query I rowsort
SELECT + + 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + + MIN( col2 ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4475
SELECT + + MIN ( col2 ) AS col1 FROM tab1 cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT + ( + + col1 ) DIV 41 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT + ( + + col1 ) / 41 AS col0 FROM tab0 cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4477
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4477
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT ALL + 25 * + COUNT( * ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + 25 * + COUNT ( * ) FROM tab0 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL - + MIN( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL - + MIN ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL - 86 + + + col1 FROM tab2 AS cor0
----
-19
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT + MAX( - ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4482
SELECT + MAX ( - ( - + col0 ) ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT - ( + - col2 ) * - 37 * - col2 * - 16 AS col0 FROM tab2 AS cor0
----
-1991488
-313168
-947200

query I rowsort
SELECT + col1 - - col0 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL IS NULL AND + - col0 <= NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE col2 * + + ( + col0 ) NOT BETWEEN - - col1 AND ( NULL )
----

query I rowsort
SELECT ALL col2 + - ( col1 ) * + 39 FROM tab0
----
-3112
-809
60

query III rowsort
SELECT * FROM tab2 WHERE + col1 * col2 * 17 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE col1 * 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + col1 * + 77 AS col0 FROM tab0
----
1638
6318
78

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT 29 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 46 + + - 76 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + + 41 * - + 30 FROM tab0 AS cor0
----
-1230
-1230
-1230

query I rowsort
SELECT - col2 * 52 + + col2 FROM tab2 cor0
----
-1173
-2040
-2958

query II rowsort
SELECT col0, - col0 AS col1 FROM tab1 cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - 25 + + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4499
SELECT col2 col2, + col1 * - - col0 * col0 * col2 DIV - col0 FROM tab1 AS cor0
----
59
-25075
68
-290836
96
-68544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4499
SELECT col2 col2, + col1 * - - col0 * col0 * col2 / - col0 FROM tab1 AS cor0
----
59
-25075
68
-290836
96
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT ALL + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 >= - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - ( MIN( DISTINCT + col2 ) ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT - ( MIN ( DISTINCT + col2 ) ) FROM tab2 cor0 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT DISTINCT col2 DIV - 87 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT col2 / - 87 AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 + 78 AS col2 FROM tab1
----
137
146
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + MAX( ALL + - 13 ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + MAX ( ALL + - 13 ) AS col2 FROM tab2
----
-13

query I rowsort
SELECT 93 * + col2 + + col0 FROM tab0
----
1017
4386
9304

query I rowsort
SELECT - + 36 + + col2 AS col0 FROM tab0 AS cor0
----
-26
11
63

query I rowsort
SELECT - ( col1 ) * + 4 FROM tab1
----
-188
-20
-56

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 IS NULL
----

query II rowsort
SELECT DISTINCT 46 AS col1, - col1 - - col0 * - col0 AS col2 FROM tab1
----
46
-2615
46
-7230
46
-8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT - ( col0 ) - - - CAST( col1 AS SIGNED ) FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-4511
SELECT - ( col0 ) - - - CAST ( col1 AS INTEGER ) FROM tab1
----
-138
-65
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT - col0 * col1 * - + CAST( NULL AS SIGNED ) - - 18 + + col1 * + 61 * - - col2 * - 80 / ( + - 94 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT - col0 * col1 * - + CAST ( NULL AS INTEGER ) - - 18 + + col1 * + 61 * - - col2 * - 80 / ( + - 94 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 22 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
22
22
22

query I rowsort
SELECT - 10 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
-109
-236
-538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0 WHERE + col0 * col1 < - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 97 col0, + 47 * col0 FROM tab0 AS cor0
----
-97
4089
-97
4559
-97
705

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL - col2 DIV + ( + 39 ) + + col2 + + col0 * - - col0 AS col0 FROM tab2 AS cor0
----
2139
4135
5682

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - col2 / + ( + 39 ) + + col2 + + col0 * - - col0 AS col0 FROM tab2 AS cor0
----
2139
4135
5682

query I rowsort
SELECT DISTINCT + col1 + + ( - col2 ) AS col1 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT + MIN( 89 ) AS col0, MIN( 5 ) FROM tab2
----
89
5

skipif mysql # not compatible
query II rowsort label-4519
SELECT + MIN ( 89 ) AS col0, MIN ( 5 ) FROM tab2
----
89
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - + 16 < + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + SUM( ALL + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4521
SELECT + SUM ( ALL + - col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 56 * - - col2 FROM tab0
----
2632
5544
560

query I rowsort
SELECT - col0 * 76 AS col1 FROM tab0
----
-1140
-6612
-7372

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 40 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4528
SELECT ALL + 45 + + - COUNT( * ) + + 98 DIV SUM( DISTINCT - col1 ) + MAX( DISTINCT - col1 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL + 45 + + - COUNT ( * ) + + 98 / SUM ( DISTINCT - col1 ) + MAX ( DISTINCT - col1 ) FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT ( + + COUNT( + - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT ( + + COUNT ( + - col0 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL >= col1 / + 19
----

query II rowsort
SELECT + 92, col1 FROM tab2
----
92
51
92
67
92
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT MIN( 76 ) AS col2 FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT MIN ( 76 ) AS col2 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT DISTINCT - 85 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4533
SELECT DISTINCT - 85 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98 col0, col1 AS col0 FROM tab2 AS cor0
----
-98
51
-98
67
-98
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4535
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( CAST( NULL AS SIGNED ), col1, ( + col0 ) + - ( - col1 ) * + 62, - - col2, + - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4535
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ), col1, ( + col0 ) + - ( - col1 ) * + 62, - - col2, + - CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-4537
SELECT - col1 + + 54 DIV - col2 + + 44 + + col1 * - col2 + - col2 AS col1, col1 * col1 AS col0 FROM tab0
----
-155
1
-202
441
-3892
6561

skipif mysql # not compatible
query II rowsort label-4537
SELECT - col1 + + 54 / - col2 + + 44 + + col1 * - col2 + - col2 AS col1, col1 * col1 AS col0 FROM tab0
----
-155
1
-202
441
-3892
6561

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 58 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col0
----

query I rowsort
SELECT ALL + col0 * - - col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT DISTINCT + 0 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT + 0 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - 97 * COUNT( * ) FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-4543
SELECT - 97 * COUNT ( * ) FROM tab1 AS cor0
----
-291

query I rowsort
SELECT col0 * + ( col1 ) - + - col0 FROM tab0 AS cor0
----
1230
1914
194

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 - + col2 col2 FROM tab2 cor0
----
-21
-38
-56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 36 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT 91 * - + COUNT( * ) AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-4548
SELECT 91 * - + COUNT ( * ) AS col1 FROM tab2
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT SUM( 61 ) AS col0 FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT SUM ( 61 ) AS col0 FROM tab2
----
183

query II rowsort
SELECT ALL - 99 AS col2, - 75 FROM tab1
----
-99
-75
-99
-75
-99
-75

query II rowsort
SELECT 59, + ( col0 ) AS col0 FROM tab2
----
59
46
59
64
59
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4552
SELECT DISTINCT ( - ( - col1 ) ) DIV col0 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT ( - ( - col1 ) ) / col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NULL BETWEEN + 19 - - + col2 + + + 62 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT - 49 AS col1 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + - 86 AS col0 FROM tab0 AS cor0
----
-86
-86
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col2 <= + col0 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4559
SELECT - + CAST( NULL AS SIGNED ) * 66 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT - + CAST ( NULL AS INTEGER ) * 66 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( - - 3 ) AS col1 FROM tab2 AS cor0 WHERE ( + col0 + - 8 + + col0 ) IS NULL
----

query I rowsort
SELECT ALL + 65 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
65
65
65

query II rowsort
SELECT ALL - + col0 * col1 + - - 46 * + - col2 + - + col0 AS col2, + 54 AS col1 FROM tab0 AS cor0
----
-2374
54
-3392
54
-4748
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT CAST( NULL AS SIGNED ) + 39 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT CAST ( NULL AS INTEGER ) + 39 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 45 AS col1 FROM tab2
----
-22
-5
13

query III rowsort
SELECT * FROM tab0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT DISTINCT COUNT( * ) * - 44 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT COUNT ( * ) * - 44 FROM tab2
----
-132

query I rowsort
SELECT - - 67 * + col0 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT ALL - + 29 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT DISTINCT + col2 / + col2 + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + col2 / + col2 + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NOT ( 23 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT - - col2 AS col0, - col0 * col1 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT 34 DIV - - MAX( col0 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT 34 / - - MAX ( col0 ) AS col1 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT - col2 DIV - 75 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4577
SELECT - col2 / - 75 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT DISTINCT col2 DIV - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT DISTINCT col2 / - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT 60 DIV + ( 8 ) AS col0 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-4579
SELECT 60 / + ( 8 ) AS col0 FROM tab2
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT COUNT( 88 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4580
SELECT COUNT ( 88 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 * + col2 AS col1 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query II rowsort label-4582
SELECT COUNT( * ) * - MAX( ALL - col1 ) AS col2, MIN( - - 4 ) + - MIN( + 48 ) col2 FROM tab0
----
3
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4582
SELECT COUNT ( * ) * - MAX ( ALL - col1 ) AS col2, MIN ( - - 4 ) + - MIN ( + 48 ) col2 FROM tab0
----
3
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT 97 DIV + col0 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT 97 / + col0 AS col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT MAX( DISTINCT - + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4584
SELECT MAX ( DISTINCT - + col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4585
SELECT COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0, - 96 AS col1 FROM tab2
----
0
-96

skipif mysql # not compatible
query II rowsort label-4585
SELECT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0, - 96 AS col1 FROM tab2
----
0
-96

query I rowsort
SELECT col1 - 34 FROM tab1 cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4588
SELECT + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - + SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4590
SELECT - + SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 95 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT + ( - CAST( - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4592
SELECT + ( - CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL COUNT( ALL - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL COUNT ( ALL - col1 ) FROM tab0
----
3

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 89 col2, - col2 FROM tab2 AS cor0
----
89
-23
89
-40
89
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT 34 * + COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4596
SELECT 34 * + COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
102

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + MAX( 73 ) col1 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4598
SELECT + MAX ( 73 ) col1 FROM tab2 AS cor0
----
73

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL <= + 62
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) + - col2 * + 61 + - col0 * - - col2 NOT BETWEEN NULL AND + col1 + + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4601
SELECT - ( 74 ) AS col2, - COUNT( * ) DIV MAX( + col1 ) AS col1 FROM tab2
----
-74
0

skipif mysql # not compatible
query II rowsort label-4601
SELECT - ( 74 ) AS col2, - COUNT ( * ) / MAX ( + col1 ) AS col1 FROM tab2
----
-74
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT MAX( DISTINCT - 91 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-4602
SELECT MAX ( DISTINCT - 91 ) FROM tab2
----
-91

query I rowsort
SELECT DISTINCT ( col0 ) + + + col1 * - col0 + + col2 FROM tab2
----
-2277
-4824
-4892

query I rowsort
SELECT DISTINCT 89 * ( + 52 ) FROM tab1
----
4628

query I rowsort
SELECT DISTINCT + ( - - col2 ) * + col2 + - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
3396
4533
9165

query I rowsort
SELECT col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT - SUM( ALL 79 ) AS col1 FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - SUM ( ALL 79 ) AS col1 FROM tab0
----
-237

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT + + col0 DIV - 55 + - + 76 * + - col2 + + col1 * - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-130903
-296356
-453494

skipif mysql # not compatible
query I rowsort label-4608
SELECT + + col0 / - 55 + - + 76 * + - col2 + + col1 * - - col1 * - col1 AS col2 FROM tab2 AS cor0
----
-130903
-296356
-453494

query II rowsort
SELECT DISTINCT 97 + col0 AS col0, col0 AS col2 FROM tab2 AS cor0
----
143
46
161
64
172
75

query I rowsort
SELECT DISTINCT 35 * + ( ( + 93 ) ) + - 94 + col1 AS col0 FROM tab1
----
3166
3175
3208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT ALL 8 + + - COUNT( * ) DIV - 53 - + 74 AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL 8 + + - COUNT ( * ) / - 53 - + 74 AS col0 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT - 97 * - COUNT( * ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT - 97 * - COUNT ( * ) FROM tab1
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - - COUNT( + col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4613
SELECT - - COUNT ( + col1 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 53 * col2 * col2 * - col0 AS col1 FROM tab0 cor0
----
-1756155
-461100
-50386941

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT DISTINCT + + CAST( + COUNT( DISTINCT + + col2 ) 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-4616
SELECT DISTINCT + + CAST ( + COUNT ( DISTINCT + + col2 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( + 44 ) FROM tab1 AS cor0
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4619
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * - 75 AS col0 FROM tab2
----
-3450
-4800
-5625

query II rowsort
SELECT DISTINCT - ( - + col2 ) * col0 + + col2 AS col0, ( - - 7 ) AS col2 FROM tab2
----
1081
7
2600
7
4408
7

query I rowsort
SELECT ALL - col1 * + - col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL - COUNT( col1 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4623
SELECT ALL - COUNT ( col1 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * - col2 * - 41 FROM tab1
----
200736
205615
253708

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT DISTINCT - 42 DIV - + col2 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - 42 / - + col2 FROM tab0
----
0
4

query I rowsort
SELECT ALL + col2 * - - col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT DISTINCT - 40 * + COUNT( + - CAST( 37 AS SIGNED ) ) AS col2 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT - 40 * + COUNT ( + - CAST ( 37 AS INTEGER ) ) AS col2 FROM tab0
----
-120

query I rowsort
SELECT ALL col0 * 80 FROM tab2
----
3680
5120
6000

query II rowsort
SELECT DISTINCT + col1 AS col0, - col0 AS col0 FROM tab1
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 64 * - + ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - col1 * + 76 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT - col1 * + 76 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4632
SELECT - 71 + - - COUNT( * ) AS col2, 86 AS col1 FROM tab2 AS cor0
----
-68
86

skipif mysql # not compatible
query II rowsort label-4632
SELECT - 71 + - - COUNT ( * ) AS col2, 86 AS col1 FROM tab2 AS cor0
----
-68
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT - 25 + + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
-22

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 25 + + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4635
SELECT ( + + 44 ) DIV - + col2, 65 * 92 * - col2 - + - 13 * + col1 - - 62 AS col2 FROM tab0
----
-4
-59465
0
-279945
0
-591945

skipif mysql # not compatible
query II rowsort label-4635
SELECT ( + + 44 ) / - + col2, 65 * 92 * - col2 - + - 13 * + col1 - - 62 AS col2 FROM tab0
----
-4
-59465
0
-279945
0
-591945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4636
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4637
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 19 > + + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4639
SELECT col0 * + + 7 * 82 / - CAST( 38 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-4639
SELECT col0 * + + 7 * 82 / - CAST ( 38 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + 42 + - + 77 + - col1 AS col0 FROM tab2
----
-102
-112
-86

query I rowsort
SELECT ALL - ( + 15 ) + col0 FROM tab1
----
36
70
76

query I rowsort
SELECT ALL col0 + + - col0 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 91 + - 9, 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT DISTINCT CAST( - AVG ( 77 ) AS SIGNED ) col1 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4644
SELECT DISTINCT CAST ( - AVG ( 77 ) AS INTEGER ) col1 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4645
SELECT col2 * col0 / + - CAST( NULL AS SIGNED ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4645
SELECT col2 * col0 / + - CAST ( NULL AS INTEGER ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL col0 * + col0 + + + col2 FROM tab2
----
2139
4136
5683

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4647
SELECT + 72, MIN( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
72
NULL

skipif mysql # not compatible
query II rowsort label-4647
SELECT + 72, MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
72
NULL

query I rowsort
SELECT 61 * 58 FROM tab1
----
3538
3538
3538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4649
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) + - 51 - - MAX( ALL - + ( + + 93 ) ) col1 FROM tab2
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4649
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + - 51 - - MAX ( ALL - + ( + + 93 ) ) col1 FROM tab2
----
-135

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + - 30
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 36 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT MAX( + + 73 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4652
SELECT MAX ( + + 73 ) FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT - SUM( ALL - 12 ) AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4654
SELECT - SUM ( ALL - 12 ) AS col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL + + col1 / - 42 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = + col2 * col2 * + + col2 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col0 ) * - col0 * col0 + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col0 ) * - col0 * col0 + + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4657
SELECT - col2 * - CAST( 95 AS SIGNED ) FROM tab0
----
4465
9405
950

skipif mysql # not compatible
query I rowsort label-4657
SELECT - col2 * - CAST ( 95 AS INTEGER ) FROM tab0
----
4465
9405
950

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT ALL - col2 * col2 DIV - col1 FROM tab0
----
27
4
9801

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - col2 * col2 / - col1 FROM tab0
----
27
4
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * 31 col1 FROM tab2
----
-124
-124
-124

query II rowsort
SELECT DISTINCT ( + + 78 ) * - - col1, + 30 AS col1 FROM tab0
----
1638
30
6318
30
78
30

query I rowsort
SELECT ALL - 15 * 93 FROM tab0
----
-1395
-1395
-1395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4662
SELECT DISTINCT ( - + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT ( - + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - 13 * col2 AS col0 FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-4664
SELECT DISTINCT 15 AS col2, SUM( DISTINCT 94 ) AS col1 FROM tab0
----
15
94

skipif mysql # not compatible
query II rowsort label-4664
SELECT DISTINCT 15 AS col2, SUM ( DISTINCT 94 ) AS col1 FROM tab0
----
15
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT COUNT( * ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4665
SELECT COUNT ( * ) AS col2 FROM tab1 cor0
----
3

query II rowsort
SELECT ALL - 21 * - col1 + 97 AS col0, col2 AS col0 FROM tab0 cor0
----
118
99
1798
47
538
10

query I rowsort
SELECT + ( + - 27 ) FROM tab0 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col2 FROM tab0 WHERE NOT - 73 * + + 25 + - 64 IS NULL
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4669
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col2 * - col0 / 39 + - - col2 - - CAST( - + col1 AS SIGNED ) AND + 6 * + col1 + - col1 + 92 + - col2 - - col1
----

skipif mysql # not compatible
query III rowsort label-4669
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col2 * - col0 / 39 + - - col2 - - CAST ( - + col1 AS INTEGER ) AND + 6 * + col1 + - col1 + 92 + - col2 - - col1
----

query I rowsort
SELECT + col0 * - col2 * + 47 FROM tab2 cor0
----
-120320
-204450
-49726

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab0 AS cor0 WHERE NOT + ( - 51 ) - + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT - COUNT( * ) AS col0, + 92 AS col1 FROM tab1 AS cor0
----
-3
92

skipif mysql # not compatible
query II rowsort label-4672
SELECT - COUNT ( * ) AS col0, + 92 AS col1 FROM tab1 AS cor0
----
-3
92

query I rowsort
SELECT ALL - + ( + - col2 ) * - + 69 + - col2 AS col2 FROM tab2 AS cor0
----
-1610
-2800
-4060

query I rowsort
SELECT DISTINCT - + col2 * + 39 AS col1 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT ( - - col2 ) DIV col0 col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4675
SELECT ( - - col2 ) / col0 col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT + col0 DIV - col2 + + ( - col1 ) AS col1 FROM tab0 cor0
----
-1
-29
-81

skipif mysql # not compatible
query I rowsort label-4676
SELECT + col0 / - col2 + + ( - col1 ) AS col1 FROM tab0 cor0
----
-1
-29
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4677
SELECT + + CAST( NULL AS SIGNED ) AS col1, 6 - COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4677
SELECT + + CAST ( NULL AS INTEGER ) AS col1, 6 - COUNT ( * ) FROM tab2 cor0
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) * col0 * + 6 + 1 col2 FROM tab0 AS cor0
----
-1349
-45413
-56453

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT - COUNT( * ) + 33 AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT - COUNT ( * ) + 33 AS col0 FROM tab2
----
30

query III rowsort
SELECT * FROM tab2 WHERE 53 * + 60 * + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT - CAST( NULL AS SIGNED ) - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4681
SELECT - CAST ( NULL AS INTEGER ) - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 80 + + + 67 + - col1 FROM tab0
----
-14
-34
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT DISTINCT + COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4683
SELECT DISTINCT + COUNT ( * ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT col1 + - - col2 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT col0 DIV + ( ( + ( + 71 ) ) ) + 42 FROM tab0 AS cor0
----
42
43
43

skipif mysql # not compatible
query I rowsort label-4685
SELECT col0 / + ( ( + ( + 71 ) ) ) + 42 FROM tab0 AS cor0
----
42
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT col0 * - col2 * - col0 + CAST( - ( 89 ) AS SIGNED ) FROM tab2 AS cor0
----
163751
326161
48579

skipif mysql # not compatible
query I rowsort label-4686
SELECT col0 * - col2 * - col0 + CAST ( - ( 89 ) AS INTEGER ) FROM tab2 AS cor0
----
163751
326161
48579

query I rowsort
SELECT ALL 33 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4689
SELECT + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT COUNT( ALL 12 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4690
SELECT COUNT ( ALL 12 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( col1 ) ) col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL SUM( ALL col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL SUM ( ALL col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4695
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + col1 AS SIGNED ) / + 55 + + 52 * + col0 + 18 * col2 BETWEEN - col0 + 46 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4695
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + col1 AS INTEGER ) / + 55 + + 52 * + col0 + 18 * col2 BETWEEN - col0 + 46 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4696
SELECT - COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) * COUNT( * ) * MIN( - col2 ) * MIN( col2 ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-4696
SELECT - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * MIN ( - col2 ) * MIN ( col2 ) FROM tab1 AS cor0
----
-3
NULL

query II rowsort
SELECT DISTINCT ( + + col2 ) * + + col2, - col2 AS col2 FROM tab0 cor0
----
100
-10
2209
-47
9801
-99

query II rowsort
SELECT + col1, col1 AS col1 FROM tab2 cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL - col0, + 58 * col0 AS col2 FROM tab0 cor0
----
-15
870
-87
5046
-97
5626

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT SUM( DISTINCT + 29 ) * + + 71 + 59 FROM tab0 AS cor0
----
2118

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT SUM ( DISTINCT + 29 ) * + + 71 + 59 FROM tab0 AS cor0
----
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT + MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - - col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT + MAX( - 32 ) col0 FROM tab2
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4705
SELECT DISTINCT + MAX ( - 32 ) col0 FROM tab2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT SUM( + CAST( ( + 29 ) AS SIGNED ) ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4706
SELECT SUM ( + CAST ( ( + 29 ) AS INTEGER ) ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT - col0 + - + col0 DIV col0 * - 55 AS col2 FROM tab0 cor0
----
-32
-42
40

skipif mysql # not compatible
query I rowsort label-4707
SELECT - col0 + - + col0 / col0 * - 55 AS col2 FROM tab0 cor0
----
-32
-42
40

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND + 85 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col0 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE ( 38 BETWEEN - + col1 + + col0 AND - + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT DISTINCT - col2 DIV - 90 + + 70 AS col0 FROM tab0 AS cor0
----
70
71

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - col2 / - 90 + + 70 AS col0 FROM tab0 AS cor0
----
70
71

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT col2, - col2 FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + - COUNT( ALL col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4714
SELECT DISTINCT + - COUNT ( ALL col0 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 * 76 - - + ( - col2 ) FROM tab1 AS cor0
----
3780
6401
6848

query I rowsort
SELECT - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT - - col2 + ( col2 ) FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ALL - - 98 * + col1 FROM tab0 AS cor0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - COUNT( * ) + + - ( + 76 ) FROM tab2 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-4719
SELECT - COUNT ( * ) + + - ( + 76 ) FROM tab2 cor0
----
-79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 BETWEEN - col1 * col1 + - - 75 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - 57 FROM tab2 AS cor0 WHERE NOT 46 IS NULL
----
-57

query I rowsort
SELECT ALL + col1 * - - 7 * - 80 AS col0 FROM tab1
----
-26320
-2800
-7840

query II rowsort
SELECT + 23 AS col0, - col2 * + + col1 FROM tab2
----
23
-1173
23
-3080
23
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4725
SELECT COUNT( * ) DIV + ( + CAST( + COUNT( - - col0 ) AS SIGNED ) ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4725
SELECT COUNT ( * ) / + ( + CAST ( + COUNT ( - - col0 ) AS INTEGER ) ) col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - col2 * - col2 col0 FROM tab1
----
-14
9216
-47
4624
-5
3481

query II rowsort
SELECT ( - 97 ) AS col1, 34 FROM tab1
----
-97
34
-97
34
-97
34

query II rowsort
SELECT ALL col0 - + col1 + - - 71 * + 49 AS col1, col0 FROM tab1
----
3516
51
3523
91
3559
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL + CAST( NULL AS SIGNED ) * + 57 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + CAST ( NULL AS INTEGER ) * + 57 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT DISTINCT - 31 DIV + col1 FROM tab0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT - 31 / + col1 FROM tab0
----
-1
-31
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL - 79 * - CAST( - - 71 AS SIGNED ) + 71 FROM tab2 AS cor0
----
5680
5680
5680

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL - 79 * - CAST ( - - 71 AS INTEGER ) + 71 FROM tab2 AS cor0
----
5680
5680
5680

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4732
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - 76 > + - CAST( + + col2 AS SIGNED ) + + 43
----

skipif mysql # not compatible
query III rowsort label-4732
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / - 76 > + - CAST ( + + col2 AS INTEGER ) + + 43
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT DISTINCT + CAST( + MAX( DISTINCT - - col2 ) AS SIGNED ) col1 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4733
SELECT DISTINCT + CAST ( + MAX ( DISTINCT - - col2 ) AS INTEGER ) col1 FROM tab2
----
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 43 <> + col2 / col0
----

query I rowsort
SELECT - col2 * - - col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + - 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT CAST( + ( + ( - 8 ) ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

skipif mysql # not compatible
query I rowsort label-4737
SELECT CAST ( + ( + ( - 8 ) ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4738
SELECT ALL + col2 FROM tab0 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) / + 28 + + + col0 + + - col0 IN ( col1, col2 + + ( col0 ) + + + 21 * - + col0 / + 5 * - col1 + col2, col2, - - 5 ) )
----

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL + col2 FROM tab0 AS cor0 WHERE ( CAST ( NULL AS REAL ) / + 28 + + + col0 + + - col0 IN ( col1, col2 + + ( col0 ) + + + 21 * - + col0 / + 5 * - col1 + col2, col2, - - 5 ) )
----

query II rowsort
SELECT ALL ( - + col1 ), - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL - + 58 AS col2 FROM tab1 cor0
----
-58
-58
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT COUNT( ALL + ( ( + + col2 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT COUNT ( ALL + ( ( + + col2 ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 * col2 + - ( + + 31 ) + col1 + + col1 * - col2 AND + + col2 * ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4743
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 * col2 + - ( + + 31 ) + col1 + + col1 * - col2 AND + + col2 * ( + col1 )
----

query I rowsort
SELECT - 52 * - col0 AS col1 FROM tab2 cor0
----
2392
3328
3900

onlyif mysql # DIV for integer division: 
query II rowsort label-4745
SELECT ALL - ( - - col0 ) AS col0, - 23 DIV - + col2 AS col1 FROM tab0 AS cor0
----
-15
0
-87
2
-97
0

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL - ( - - col0 ) AS col0, - 23 / - + col2 AS col1 FROM tab0 AS cor0
----
-15
0
-87
2
-97
0

query II rowsort
SELECT DISTINCT - col0, 75 AS col0 FROM tab2
----
-46
75
-64
75
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT - 28 / + SUM( col1 ) * - - ( + 93 ) AS col0 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT - 28 / + SUM ( col1 ) * - - ( + 93 ) AS col0 FROM tab1 WHERE NOT + + col0 IS NOT NULL
----
NULL

query II rowsort
SELECT + col2 AS col2, + col2 * col2 + + + 65 FROM tab2
----
23
594
40
1665
58
3429

query I rowsort
SELECT DISTINCT - + 85 + 43 FROM tab2 WHERE NOT 57 IS NULL
----
-42

query I rowsort
SELECT col2 * - 36 FROM tab2
----
-1440
-2088
-828

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4752
SELECT DISTINCT - COUNT( * ) * COUNT( ALL 62 ) DIV - 49 + COUNT( * ) * - 50 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT - COUNT ( * ) * COUNT ( ALL 62 ) / - 49 + COUNT ( * ) * - 50 FROM tab2 AS cor0
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT col0 * - col0 DIV - col0 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT col0 * - col0 / - col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + 54 * - - COUNT( * ) FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4754
SELECT + 54 * - - COUNT ( * ) FROM tab0 AS cor0
----
162

query II rowsort
SELECT 5 * + - col1 AS col1, - col2 FROM tab0 AS cor0
----
-105
-10
-405
-47
-5
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4756
SELECT + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-4757
SELECT + col2 DIV 25, 75 AS col2 FROM tab0 cor0
----
0
75
1
75
3
75

skipif mysql # not compatible
query II rowsort label-4757
SELECT + col2 / 25, 75 AS col2 FROM tab0 cor0
----
0
75
1
75
3
75

query I rowsort
SELECT DISTINCT + 52 + - col0 FROM tab0 AS cor0
----
-35
-45
37

query I rowsort
SELECT + col2 / col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 43 + - 10 + + - col1 * + col2 + - 97 FROM tab0 AS cor0
----
-163
-274
-3871

query I rowsort
SELECT col2 * + 65 - + 74 AS col1 FROM tab2 AS cor0
----
1421
2526
3696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 38 * - ( 49 ) + + + MIN( + ( + + 59 ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 38 * - ( 49 ) + + + MIN ( + ( + + 59 ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 82 - - - col1 FROM tab0
----
1
61
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 3 * - col1 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT DISTINCT + col2 * + + 74 FROM tab2
----
1702
2960
4292

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 78 * - + 44 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + ( 87 ) FROM tab1 AS cor0
----
-4437
-7395
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT COUNT ( * ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 + 8 / col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = + ( - - 62 ) + col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 15 + + 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4772
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST( - + ( + col1 ) AS SIGNED ) + - col1 <> ( col1 )
----

skipif mysql # not compatible
query III rowsort label-4772
SELECT ALL * FROM tab0 cor0 WHERE NOT - CAST ( - + ( + col1 ) AS INTEGER ) + - col1 <> ( col1 )
----

query II rowsort
SELECT - - col0, 12 AS col0 FROM tab1 AS cor0
----
51
12
85
12
91
12

query I rowsort
SELECT + 15 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 33 * - - 37 < + 11
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT - MAX( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4775
SELECT - MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT - - MIN( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - - MIN ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-91

query II rowsort
SELECT DISTINCT + 98 * col2 AS col1, + col0 FROM tab1 AS cor0
----
5782
85
6664
91
9408
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4778
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4780
SELECT DISTINCT - + CAST( NULL AS SIGNED ), - 35 * col2 AS col0 FROM tab0 AS cor0
----
NULL
-1645
NULL
-3465
NULL
-350

skipif mysql # not compatible
query II rowsort label-4780
SELECT DISTINCT - + CAST ( NULL AS INTEGER ), - 35 * col2 AS col0 FROM tab0 AS cor0
----
NULL
-1645
NULL
-3465
NULL
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT 73 + + COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-4781
SELECT 73 + + COUNT ( * ) FROM tab2
----
76

query III rowsort
SELECT * FROM tab0 WHERE - 12 > ( col1 ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT ALL - - CAST( NULL AS SIGNED ) + + - ( ( + col2 ) ) + 35 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - - CAST ( NULL AS INTEGER ) + + - ( ( + col2 ) ) + 35 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4785
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - + 16 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT COUNT( * ) + 4 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4787
SELECT COUNT ( * ) + 4 FROM tab0 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 * col2 * - 89 + col1, col2 col1 FROM tab2 AS cor0
----
-18372
23
-31963
40
-46391
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT + CAST( NULL AS SIGNED ) + 92 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT + CAST ( NULL AS INTEGER ) + 92 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT MAX( ALL + col2 ) col2 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4790
SELECT MAX ( ALL + col2 ) col2 FROM tab2
----
58

query II rowsort
SELECT DISTINCT + 43 * col0, col2 + col1 - + - 7 AS col1 FROM tab2
----
1978
81
2752
124
3225
132

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4792
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col0 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL + - col0 AS col0 FROM tab1 WHERE - 52 BETWEEN col1 AND - + CAST( NULL AS SIGNED ) + - + col2
----

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL + - col0 AS col0 FROM tab1 WHERE - 52 BETWEEN col1 AND - + CAST ( NULL AS INTEGER ) + - + col2
----

query I rowsort
SELECT + 86 AS col0 FROM tab1
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL - MAX( ALL + 72 ) AS col0 FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - MAX ( ALL + 72 ) AS col0 FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT DISTINCT + ( 41 ) * MAX( DISTINCT + + 86 ) AS col0 FROM tab2 AS cor0
----
3526

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT + ( 41 ) * MAX ( DISTINCT + + 86 ) AS col0 FROM tab2 AS cor0
----
3526

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT + MAX( - col1 ) * 84 AS col2 FROM tab1 WHERE NOT col0 * - col1 + 94 + - col2 BETWEEN + 43 AND - 87 + + col2
----
-420

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT + MAX ( - col1 ) * 84 AS col2 FROM tab1 WHERE NOT col0 * - col1 + 94 + - col2 BETWEEN + 43 AND - 87 + + col2
----
-420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT DISTINCT CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT + 95 + + col2 * - CAST( NULL AS SIGNED ) * - 64 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT + 95 + + col2 * - CAST ( NULL AS INTEGER ) * - 64 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - + 36 + + col2 * + + 14 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4802
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 2 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 2 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4803
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + + 3 AS col0 FROM tab0 AS cor0
----
-44
-7
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT DISTINCT 63 * + - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 WHERE + + 33 + + col1 * - 33 >= - 39
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT 63 * + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 WHERE + + 33 + + col1 * - 33 >= - 39
----
0

query II rowsort
SELECT DISTINCT - col1, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT COUNT( col0 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4807
SELECT COUNT ( col0 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + 99 * col2 AS col1 FROM tab0
----
4653
9801
990

onlyif mysql # DIV for integer division: 
query II rowsort label-4809
SELECT DISTINCT 65 * - col2 + + + 26 DIV + - col2, col0 FROM tab1
----
-3835
85
-4420
91
-6240
51

skipif mysql # not compatible
query II rowsort label-4809
SELECT DISTINCT 65 * - col2 + + + 26 / + - col2, col0 FROM tab1
----
-3835
85
-4420
91
-6240
51

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + 83 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT + 83 * COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-4811
SELECT + 83 * COUNT ( * ) AS col0 FROM tab0
----
249

query I rowsort
SELECT DISTINCT - 42 + col0 AS col2 FROM tab0
----
-27
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT DISTINCT - MAX( col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT DISTINCT - MAX ( col2 ) col2 FROM tab2
----
-58

query I rowsort
SELECT + 37 FROM tab0 WHERE ( NULL ) IS NULL
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 9 AS col2 FROM tab2
----
51
9
67
9
77
9

query I rowsort
SELECT - col2 + - 31 AS col1 FROM tab0 AS cor0
----
-130
-41
-78

query I rowsort
SELECT - 35 + + 15 FROM tab2 cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT - MAX( + 11 ) * COUNT( * ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - MAX ( + 11 ) * COUNT ( * ) FROM tab1 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT ALL + 14 + + COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL + 14 + + COUNT ( * ) FROM tab0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 * + col1 * + col0 - + 16 + + 18 + + + col2 col0 FROM tab1
----
33211
333676
55790

query I rowsort
SELECT ALL 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT + 1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - - ( + 70 ) * col2 col1 FROM tab2 WHERE + + 35 * 16 + + - 74 * - + 40 IS NULL
----

query I rowsort
SELECT + - 39 AS col0 FROM tab1 AS cor0 WHERE col1 * col1 IS NOT NULL
----
-39
-39
-39

query I rowsort
SELECT - col0 * + + ( + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT COUNT( ALL + 12 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4826
SELECT COUNT ( ALL + 12 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + + SUM( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + + SUM ( - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + + MAX( ALL + - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4828
SELECT + + MAX ( ALL + - 75 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 <> - - 23 * 52 * + + 65 + + col1 * - - 89
----

query I rowsort
SELECT + + 29 * col0 * - + 69 FROM tab1 AS cor0
----
-102051
-170085
-182091

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT MAX( ALL ( + col1 ) ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT MAX ( ALL ( + col1 ) ) AS col0 FROM tab0
----
81

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT - 61 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT + 34 / - col1 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <> - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4835
SELECT + col1 DIV + - col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT + col1 / + - col2 FROM tab0
----
-1
-2
0

query II rowsort
SELECT col0 AS col1, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query II rowsort
SELECT DISTINCT - 36 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-36
46
-36
64
-36
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4838
SELECT DISTINCT - - ( - col2 ) * col0 * - 17 - - CAST( NULL AS DECIMAL ) + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - - ( - col2 ) * col0 * - 17 - - CAST ( NULL AS REAL ) + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 48 * - col0 + + col0 FROM tab2
----
-2162
-3008
-3525

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 86 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT + MIN( ALL col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + MIN ( ALL col2 ) AS col2 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT + CAST( 0 AS SIGNED ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT + CAST ( 0 AS INTEGER ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 56 * col0 - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2805
4675
5005

query I rowsort
SELECT ( + 46 ) AS col1 FROM tab2 WHERE NOT ( col0 + col1 / - col2 ) IS NULL
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + ( COUNT( * ) ) + + ( ( SUM( + ( - col0 ) ) ) ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-196

skipif mysql # not compatible
query I rowsort label-4846
SELECT + ( COUNT ( * ) ) + + ( ( SUM ( + ( - col0 ) ) ) ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4847
SELECT + col0 / + col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT + col0 / + col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4848
SELECT + 61 DIV col2 + col1 FROM tab1
----
14
47
6

skipif mysql # not compatible
query I rowsort label-4848
SELECT + 61 / col2 + col1 FROM tab1
----
14
47
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 29 <> + col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT COUNT( * ) * 26 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-4850
SELECT COUNT ( * ) * 26 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( - col0 + col2 ) AND col0
----

query I rowsort
SELECT 84 * col1 AS col0 FROM tab0
----
1764
6804
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT - MIN( ALL 83 ) * MIN( - 14 ) - COUNT( * ) FROM tab2
----
1159

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - MIN ( ALL 83 ) * MIN ( - 14 ) - COUNT ( * ) FROM tab2
----
1159

query I rowsort
SELECT 90 + - col0 * 96 FROM tab1
----
-4806
-8070
-8646

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL IN ( + ( col2 ) / 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT - 55 DIV - col1 AS col1 FROM tab0 WHERE NOT col1 + - col1 = - 25
----
0
2
55

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 55 / - col1 AS col1 FROM tab0 WHERE NOT col1 + - col1 = - 25
----
0
2
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4857
SELECT + COUNT( * ) FROM tab2 WHERE NOT + 1 NOT BETWEEN col1 + - 51 AND CAST( col2 AS DECIMAL )
----
1

skipif mysql # not compatible
query I rowsort label-4857
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + 1 NOT BETWEEN col1 + - 51 AND CAST ( col2 AS REAL )
----
1

query III rowsort
SELECT * FROM tab0 WHERE 66 NOT BETWEEN NULL AND ( + col1 + + 25 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col0 + 87 FROM tab0 WHERE + col0 >= + col2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - COUNT( - col1 ) * - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4860
SELECT - COUNT ( - col1 ) * - COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT - 11 * col0 FROM tab0
----
-1067
-165
-957

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 39 * + col2 BETWEEN + 71 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL - COUNT( * ) + 44 AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - COUNT ( * ) + 44 AS col2 FROM tab2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4864
SELECT 51 * CAST( + ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4864
SELECT 51 * CAST ( + ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 + 48 col0 FROM tab1
----
118
118
118

query I rowsort
SELECT DISTINCT - 95 * 36 FROM tab0
----
-3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ALL + col1 * - 40 FROM tab1 cor0
----
-1880
-200
-560

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 4 ) NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - 11 AS col0 FROM tab0 AS cor0
----
-1089
-110
-517

query I rowsort
SELECT DISTINCT ( - 97 ) * - 49 + col1 AS col1 FROM tab1
----
4758
4767
4800

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4872
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4872
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 61 FROM tab0 AS cor0 CROSS JOIN tab2
----
61

query I rowsort
SELECT + 61 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + col1
----

query I rowsort
SELECT 0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + col1 - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > col2 * + 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 BETWEEN + col0 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
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-4879
SELECT - ( + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT ALL + 75 DIV 70 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + 75 / 70 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 7 * - - col1 AS col1 FROM tab2
----
-357
-469
-539

query I rowsort
SELECT + 22 AS col2 FROM tab1 WHERE NOT NULL IN ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT - 73 * + ( - 59 ) * + MAX( ALL col1 ) FROM tab2
----
331639

skipif mysql # not compatible
query I rowsort label-4884
SELECT - 73 * + ( - 59 ) * + MAX ( ALL col1 ) FROM tab2
----
331639

query I rowsort
SELECT + col1 + col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
110
115
64

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab1
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 * col0 col0 FROM tab0 WHERE NOT 11 + 18 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT MAX( DISTINCT 91 ) AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT MAX ( DISTINCT 91 ) AS col0 FROM tab2
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4890
SELECT 84 DIV + + col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-4890
SELECT 84 / + + col2 FROM tab0
----
0
1
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( ( 98 ) * 42 ) AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= ( col0 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4894
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( - 59 AS SIGNED ) + + 76 ) NOT IN ( 60 * - 18 )
----

skipif mysql # not compatible
query III rowsort label-4894
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - 59 AS INTEGER ) + + 76 ) NOT IN ( 60 * - 18 )
----

query I rowsort
SELECT + 84 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4896
SELECT - MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT - COUNT( * ) * + 5 + + + COUNT( * ) AS col0 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4898
SELECT - COUNT ( * ) * + 5 + + + COUNT ( * ) AS col0 FROM tab2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 WHERE + CAST( - col0 AS SIGNED ) * + col0 <= + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 WHERE + CAST ( - col0 AS INTEGER ) * + col0 <= + col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT + MIN( ALL + + 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + MIN ( ALL + + 71 ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL - col0 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 56 * - 12 * + col1 FROM tab1 AS cor0
----
-31584
-3360
-9408

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + SUM( 82 ) / MAX( ALL 55 * + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( - 96 - col1 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + SUM ( 82 ) / MAX ( ALL 55 * + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN ( - 96 - col1 ) AND NULL
----
NULL

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE col0 - - - col0 + - col2 IS NULL
----

query I rowsort
SELECT + col2 * - 59 FROM tab0 cor0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4908
SELECT + CAST( - - col2 AS SIGNED ) DIV col0 + - 77 col0 FROM tab2 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4908
SELECT + CAST ( - - col2 AS INTEGER ) / col0 + - 77 col0 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4909
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL - col2 * - + ( col1 ) * col2 + 28 AS col0 FROM tab1 AS cor0
----
129052
17433
217356

query I rowsort
SELECT 26 * ( - 51 ) AS col1 FROM tab2
----
-1326
-1326
-1326

query I rowsort
SELECT DISTINCT col1 + + 32 FROM tab1
----
37
46
79

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 78 - - col2 / + 65 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - col1 AS col0 FROM tab0 WHERE - + col2 <= NULL
----

query I rowsort
SELECT ALL - 15 + + + 33 * 82 + - 31 + col1 * + col0 * - col2 FROM tab1
----
-22415
-288176
-65884

onlyif mysql # DIV for integer division: 
query I rowsort label-4916
SELECT col2 + + 85 * - col0 - 25 DIV - 58 FROM tab2
----
-3887
-5400
-6317

skipif mysql # not compatible
query I rowsort label-4916
SELECT col2 + + 85 * - col0 - 25 / - 58 FROM tab2
----
-3887
-5400
-6317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT - 42 - + col2 FROM tab2 cor0 WHERE ( col1 ) BETWEEN - CAST( + ( 85 ) AS SIGNED ) AND 53 * - 59
----

skipif mysql # not compatible
query I rowsort label-4917
SELECT - 42 - + col2 FROM tab2 cor0 WHERE ( col1 ) BETWEEN - CAST ( + ( 85 ) AS INTEGER ) AND 53 * - 59
----

query I rowsort
SELECT ALL - col2 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + ( + col0 ) col2 FROM tab1 cor0
----
-2550
-7140
-8190

query I rowsort
SELECT ALL 0 + col2 + + col2 + + + col2 * 64 * + col0 FROM tab2 AS cor0
----
163920
278516
67758

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4921
SELECT ALL 3, ( - COUNT( * ) ) DIV + - SUM( ALL - 68 ) + 56 AS col1 FROM tab2
----
3
56

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL 3, ( - COUNT ( * ) ) / + - SUM ( ALL - 68 ) + 56 AS col1 FROM tab2
----
3
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4922
SELECT ALL COUNT( * ) AS col1, + 31 AS col0 FROM tab2
----
3
31

skipif mysql # not compatible
query II rowsort label-4922
SELECT ALL COUNT ( * ) AS col1, + 31 AS col0 FROM tab2
----
3
31

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - 2
----

query I rowsort
SELECT DISTINCT col1 * + - col0 + - 65 * - col2 FROM tab2 AS cor0
----
-1255
-2328
-851

query I rowsort
SELECT ALL col1 * + 87 + - - 42 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1260
4131
477

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + - COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4927
SELECT + - COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - 31 + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4929
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) * 9 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 9 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 93 - - col1 * - col2 ) = ( - 93 )
----

query I rowsort
SELECT - ( + 49 ) AS col0 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + 29 * + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 col0 FROM tab1 cor0
----
-44
-44
-44

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > + + 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4936
SELECT * FROM tab0 WHERE NOT - + col0 + 32 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4936
SELECT * FROM tab0 WHERE NOT - + col0 + 32 <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT + MIN( ALL - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + MIN ( ALL - col0 ) AS col1 FROM tab2
----
-75

query I rowsort
SELECT 12 * - - col1 FROM tab0
----
12
252
972

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE ( + col1 * - col2 / 88 ) <> ( NULL )
----

query I rowsort
SELECT + - col1 + col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <> ( + col0 )
----

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab2 cor0
----
-51
-67
-77

query II rowsort
SELECT ALL - + 91, col0 FROM tab0 AS cor0
----
-91
15
-91
87
-91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT + COUNT( * ) + - 86 - - - 13 - 14 FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT + COUNT ( * ) + - 86 - - - 13 - 14 FROM tab0 AS cor0
----
-110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 15 ) col2 FROM tab2
----
15
15
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4946
SELECT + ( 34 ) + - 9 * CAST( NULL AS DECIMAL ) * col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT + ( 34 ) + - 9 * CAST ( NULL AS REAL ) * col0 * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + + 65 FROM tab1 AS cor0 WHERE NULL IS NULL
----
112
70
79

query I rowsort
SELECT 46 AS col0 FROM tab1 AS cor0 WHERE ( ( - 87 + - col1 ) IS NOT NULL )
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT 18 + - MIN( - - col1 ) AS col2 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4949
SELECT 18 + - MIN ( - - col1 ) AS col2 FROM tab0 AS cor0
----
17

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + col1
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col1 ) AS col1, col2 + - - col1 col2 FROM tab2 AS cor0
----
-51
74
-67
125
-77
117

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 20 IN ( + 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 52 FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT ALL + 12 AS col0 FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL = ( - + col0 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT DISTINCT - - COUNT( * ) + + CAST( MAX( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - - COUNT ( * ) + + CAST ( MAX ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4959
SELECT MAX( DISTINCT - + 89 ) DIV + COUNT( + 22 ) + - - ( 7 ) - - 33 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4959
SELECT MAX ( DISTINCT - + 89 ) / + COUNT ( + 22 ) + - - ( 7 ) - - 33 FROM tab1
----
11

query II rowsort
SELECT col1, + 77 AS col0 FROM tab2
----
51
77
67
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT CAST( - col1 AS SIGNED ) col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4961
SELECT CAST ( - col1 AS INTEGER ) col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE - col0 >= - col0 - - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT COUNT( * ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT COUNT ( * ) col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 97 - 98 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 WHERE + ( - col1 ) IS NULL
----

query I rowsort
SELECT - ( + 29 ) FROM tab2 cor0
----
-29
-29
-29

query II rowsort
SELECT ALL + col2, - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT MIN( ALL + - col1 ) FROM tab2 AS cor0 WHERE NULL IN ( col1 * - - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT MIN ( ALL + - col1 ) FROM tab2 AS cor0 WHERE NULL IN ( col1 * - - 69 )
----
NULL

query I rowsort
SELECT ALL + + col2 - - + ( col0 ) + + 38 FROM tab1 AS cor0
----
182
185
197

query I rowsort
SELECT DISTINCT + 66 FROM tab2 AS cor0 WHERE NOT + 43 + - col1 - - 75 = col0 * - col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL + ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT ALL + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NULL > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL COUNT( * ) * + 13 col1 FROM tab2
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4974
SELECT ALL COUNT ( * ) * + 13 col1 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4975
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT - SUM( DISTINCT - 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4976
SELECT - SUM ( DISTINCT - 14 ) FROM tab2
----
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 <= - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 8 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 * - - 47 AS col2 FROM tab2 AS cor0
----
-2397
-3149
-3619

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4980
SELECT * FROM tab1 AS cor0 WHERE NOT 94 IN ( + 40, CAST( NULL AS SIGNED ) * + col0, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4980
SELECT * FROM tab1 AS cor0 WHERE NOT 94 IN ( + 40, CAST ( NULL AS INTEGER ) * + col0, - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT - col2 * col0, + ( - 88 ) AS col2 FROM tab1 AS cor0
----
-4896
-88
-5015
-88
-6188
-88

query I rowsort
SELECT + + 82 FROM tab2 cor0
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col2 ) col2, col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL - col0 * - + 2 FROM tab2 cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT COUNT( * ) * 45 AS col2 FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-4985
SELECT COUNT ( * ) * 45 AS col2 FROM tab1 AS cor0
----
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT col2 / - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT col2 / - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 92 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + 41 ) FROM tab0
----
41
41
41

query I rowsort
SELECT ALL 81 + AVG ( - 64 ) AS col1 FROM tab0 WHERE NOT ( 41 * col0 * col2 + + + col2 * col2 + - 54 + + col2 / - 26 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT - COUNT( ALL + - col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4991
SELECT - COUNT ( ALL + - col2 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - - col1 AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT - col1 DIV - 29 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4994
SELECT - col1 / - 29 FROM tab2
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4995
SELECT ALL COUNT( * ) DIV COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL COUNT ( * ) / COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL - COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE - 58 + + col1 + + - 29 < NULL
----

query I rowsort
SELECT DISTINCT + 42 + - + 7 FROM tab2
----
35

query I rowsort
SELECT - 91 FROM tab0 WHERE NULL <= - col2 + ( + col2 ) - col1 * + col1
----

query I rowsort
SELECT ALL col2 - + 66 AS col1 FROM tab0
----
-19
-56
33

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL + - MAX( + 63 ) FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL + - MAX ( + 63 ) FROM tab0 cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT ALL COUNT( - 31 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL COUNT ( - 31 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - + SUM( - + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5004
SELECT - + SUM ( - + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT col2 DIV - 80 * + 81 * 71 * + 75 * col1 DIV + + col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5005
SELECT col2 / - 80 * + 81 * 71 * + 75 * col1 / + + col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ( - + COUNT( * ) ) - + 99 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5006
SELECT ( - + COUNT ( * ) ) - + 99 FROM tab1 AS cor0
----
-102

query I rowsort
SELECT DISTINCT - col0 + - + col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5008
SELECT + CAST( NULL AS SIGNED ) - + col1 - + 11 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT + CAST ( NULL AS INTEGER ) - + col1 - + 11 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT 16 - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-5009
SELECT 16 - COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT - col1 / - + col1 * col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT 54 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5012
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT 54 IS NULL
----
3

query I rowsort
SELECT + + col0 * col2 + - col1 + + 94 FROM tab0 AS cor0
----
718
943
9696

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - col0 - - col0 + ( col0 ) + - 35 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - - ( - col2 ) - 85 col0 FROM tab2 AS cor0 WHERE NOT 8 * + - 96 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 94 NOT BETWEEN NULL AND 2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= + ( - col2 ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT DISTINCT - SUM( DISTINCT - 94 ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - SUM ( DISTINCT - 94 ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT - + SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5020
SELECT - + SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT DISTINCT - + col0, + 45 AS col1 FROM tab1 AS cor0
----
-51
45
-85
45
-91
45

query I rowsort
SELECT col0 * - col1 + - col1 * - - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-196
-309582
-6237

query I rowsort
SELECT ALL - - col2 + 25 AS col0 FROM tab1 AS cor0
----
121
84
93

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 99 * - 52 / 10 NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5025
SELECT col2, 96 DIV 73 + + col2 - - - 20 AS col2 FROM tab1 AS cor0
----
59
40
68
49
96
77

skipif mysql # not compatible
query II rowsort label-5025
SELECT col2, 96 / 73 + + col2 - - - 20 AS col2 FROM tab1 AS cor0
----
59
40
68
49
96
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5026
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, col1 * - col1 * + col1 FROM tab1 AS cor0
----
NULL
-103823
NULL
-125
NULL
-2744

skipif mysql # not compatible
query II rowsort label-5026
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col1 * - col1 * + col1 FROM tab1 AS cor0
----
NULL
-103823
NULL
-125
NULL
-2744

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab0 cor0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 39 IS NOT NULL
----

query I rowsort
SELECT ALL - + 38 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5031
SELECT col2 DIV - 1 + + - 75 * + - 15 + + + ( + col2 ) - - 80 FROM tab0
----
1205
1205
1205

skipif mysql # not compatible
query I rowsort label-5031
SELECT col2 / - 1 + + - 75 * + - 15 + + + ( + col2 ) - - 80 FROM tab0
----
1205
1205
1205

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5032
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) + + 70 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5032
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + + 70 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 73 + - col1 AS col2 FROM tab0 AS cor0
----
-154
-74
-94

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 61 <= NULL
----

query I rowsort
SELECT + - 30 * ( + 71 ) AS col1 FROM tab2 AS cor0
----
-2130
-2130
-2130

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT + 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query II rowsort
SELECT DISTINCT col2 AS col1, 8 AS col1 FROM tab1
----
59
8
68
8
96
8

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 89 * - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT ALL SUM( ALL - 47 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-423

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL SUM ( ALL - 47 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-423

query I rowsort
SELECT DISTINCT - col2 * + 7 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
21560
27202
8211

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 96 + - 60 AS col2 FROM tab0 AS cor0
----
-156
-156
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT + - COUNT( - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT + - COUNT ( - col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL + SUM( ALL + + col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + SUM ( ALL + + col2 ) FROM tab1 cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT ALL 10 + - + ( - - col1 ) - + ( - + col0 ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL 10 + - + ( - - col1 ) - + ( - + col0 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL col2 * 10 * + col2 FROM tab2
----
16000
33640
5290

query III rowsort
SELECT * FROM tab0 WHERE NOT 12 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 col0, col0 + + + 12 + + + col0 * - 14 FROM tab1
----
-45
-1093
-45
-1171
-45
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - MAX( ALL - 84 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5051
SELECT - MAX ( ALL - 84 ) AS col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5052
SELECT ALL 7 AS col0, COUNT( * ) col1 FROM tab0
----
7
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5052
SELECT ALL 7 AS col0, COUNT ( * ) col1 FROM tab0
----
7
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5053
SELECT ALL + - CAST( CAST( - 46 AS DECIMAL ) AS SIGNED ) DIV + 5 + + - 63 * + col1 AS col2 FROM tab0 WHERE + 34 - - 58 NOT IN ( + col1, + col0 * - col1 * col1, - 24 )
----
-1314
-5094
-54

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + - CAST ( CAST ( - 46 AS REAL ) AS INTEGER ) / + 5 + + - 63 * + col1 AS col2 FROM tab0 WHERE + 34 - - 58 NOT IN ( + col1, + col0 * - col1 * col1, - 24 )
----
-1314
-5094
-54

query I rowsort
SELECT ( - col1 ) * + col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT - SUM( ALL - 97 ) AS col1, ( + 81 ) * 63 + - COUNT( * ) AS col2 FROM tab0
----
291
5100

skipif mysql # not compatible
query II rowsort label-5055
SELECT - SUM ( ALL - 97 ) AS col1, ( + 81 ) * 63 + - COUNT ( * ) AS col2 FROM tab0
----
291
5100

query II rowsort
SELECT + ( - col2 ), + col1 AS col2 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT DISTINCT + + 42 AS col2 FROM tab0 AS cor0
----
42

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NOT col2 NOT IN ( - col0 * col2 - + + col1, - col0, 95 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5059
SELECT col1 DIV - 40 AS col2, + 84 AS col1 FROM tab0
----
-2
84
0
84
0
84

skipif mysql # not compatible
query II rowsort label-5059
SELECT col1 / - 40 AS col2, + 84 AS col1 FROM tab0
----
-2
84
0
84
0
84

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5060
SELECT * FROM tab2 WHERE NOT + 62 > col1 * + 28 + CAST( NULL AS DECIMAL ) - col1
----

skipif mysql # not compatible
query III rowsort label-5060
SELECT * FROM tab2 WHERE NOT + 62 > col1 * + 28 + CAST ( NULL AS REAL ) - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT DISTINCT + 67 * - ( + col0 ) + + ( col1 ) DIV col2 FROM tab0 AS cor0
----
-1004
-5827
-6499

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT + 67 * - ( + col0 ) + + ( col1 ) / col2 FROM tab0 AS cor0
----
-1004
-5827
-6499

query I rowsort
SELECT - - 21 FROM tab0 cor0
----
21
21
21

query I rowsort
SELECT ALL - col0 + + - 63 AS col2 FROM tab1 AS cor0 WHERE NULL <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab1 WHERE + 31 IS NOT NULL
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + ( + col2 ) AS col1 FROM tab2
----
51
23
67
58
77
40

query II rowsort
SELECT 34, col0 FROM tab1
----
34
51
34
85
34
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) IN ( + col1, - col0, - + col1 / - - col0, col1 * col1, + - col2 )
----

query II rowsort
SELECT DISTINCT - col0 + + col1, col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - + ( - - col1 ) AND NULL
----

query II rowsort
SELECT ALL + col2 AS col2, - 4 * + 11 AS col0 FROM tab1
----
59
-44
68
-44
96
-44

query I rowsort
SELECT col0 FROM tab0 WHERE + 39 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT COUNT( * ) + - 44 AS col0 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-5072
SELECT COUNT ( * ) + - 44 AS col0 FROM tab1
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 - - + col0 + + + col1 col2 FROM tab1 AS cor0
----
125
150
198

query I rowsort
SELECT ALL - col1 * - ( + + 70 ) + col1 FROM tab0 AS cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - + COUNT( * ) * + - COUNT( * ) - - 31 AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5075
SELECT - + COUNT ( * ) * + - COUNT ( * ) - - 31 AS col0 FROM tab1 AS cor0
----
40

query I rowsort
SELECT + + col0 AS col2 FROM tab1 AS cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT 99 - - 12 * - col2 * + + col2 FROM tab0 AS cor0
----
-1101
-117513
-26409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 75 col2 FROM tab2 AS cor0
----
-75
-75
-75

query I rowsort
SELECT DISTINCT + 39 * 73 * + 37 AS col1 FROM tab2 AS cor0
----
105339

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - + 21 * - MIN( DISTINCT col1 ) + + SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - + 21 * - MIN ( DISTINCT col1 ) + + SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
-118

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5081
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * - 23 * col1 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE NOT ( + - col0 ) NOT IN ( + + col0 * - col0 * - col2, CAST( + - 14 AS SIGNED ) + + 2 - - 95, - + 60 + 59 - col0, + col0 )
----

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * - 23 * col1 - CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE NOT ( + - col0 ) NOT IN ( + + col0 * - col0 * - col2, CAST ( + - 14 AS INTEGER ) + + 2 - - 95, - + 60 + 59 - col0, + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <= + 85
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL + COUNT( DISTINCT + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL + COUNT ( DISTINCT + col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5085
SELECT ALL - + ( - - col0 ) DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - + ( - - col0 ) / - col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT + CAST( NULL AS SIGNED ) * 73 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT + CAST ( NULL AS INTEGER ) * 73 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 57 / + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 ) * + col1 + col1 + + col2
----
0

skipif mysql # not compatible
query I rowsort label-5088
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( col2 ) * + col1 + col1 + + col2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NOT + - col0 IS NOT NULL )
----

query II rowsort
SELECT - col2 AS col0, col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL 46 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5093
SELECT - 97 * MIN( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT - 97 * MIN ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT ( + col1 ) DIV + 7 AS col2 FROM tab2
----
11
7
9

skipif mysql # not compatible
query I rowsort label-5094
SELECT ( + col1 ) / + 7 AS col2 FROM tab2
----
11
7
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT MAX( - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5095
SELECT MAX ( - - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT ALL COUNT( ALL - 14 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5096
SELECT ALL COUNT ( ALL - 14 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT - 11 AS col2 FROM tab1 cor0 WHERE NOT CAST( + col0 AS SIGNED ) * - + 41 * 3 + + 7 > NULL
----

skipif mysql # not compatible
query I rowsort label-5097
SELECT - 11 AS col2 FROM tab1 cor0 WHERE NOT CAST ( + col0 AS INTEGER ) * - + 41 * 3 + + 7 > NULL
----

query I rowsort
SELECT - 56 * - 30 FROM tab2 AS cor0
----
1680
1680
1680

query I rowsort
SELECT DISTINCT + col2 * 89 AS col1 FROM tab2 AS cor0
----
2047
3560
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL - MAX( 77 ) AS col1 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - MAX ( 77 ) AS col1 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
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-5101
SELECT ALL ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab2 AS cor0 WHERE + 59 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5103
SELECT * FROM tab2 AS cor0 WHERE + col2 + col0 * - 9 - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5103
SELECT * FROM tab2 AS cor0 WHERE + col2 + col0 * - 9 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT DISTINCT SUM( ALL + - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT SUM ( ALL + - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5105
SELECT ALL + col1 FROM tab1 WHERE + CAST( - col1 AS DECIMAL ) / - 2 >= 55 * + 81 * - col0 * col1 * - + col2
----

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + col1 FROM tab1 WHERE + CAST ( - col1 AS REAL ) / - 2 >= 55 * + 81 * - col0 * col1 * - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 >= col1
----
15
81
47
87
21
10

query I rowsort
SELECT - + col0 + ( + col1 ) AS col1 FROM tab2 WHERE + + col1 IS NOT NULL
----
-8
13
5

query I rowsort
SELECT DISTINCT 16 * + col2 AS col2 FROM tab2
----
368
640
928

query I rowsort
SELECT 89 * - - col1 + col2 FROM tab0
----
1879
188
7256

query I rowsort
SELECT ALL + 61 * 99 FROM tab1
----
6039
6039
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT - COUNT( * ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5111
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1
----
-3

query I rowsort
SELECT 12 * - col0 FROM tab1 cor0
----
-1020
-1092
-612

onlyif mysql # DIV for integer division: 
query II rowsort label-5113
SELECT DISTINCT 68 DIV + - 15 AS col0, - col2 AS col1 FROM tab1 cor0
----
-4
-59
-4
-68
-4
-96

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT 68 / + - 15 AS col0, - col2 AS col1 FROM tab1 cor0
----
-4
-59
-4
-68
-4
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL 76 * + SUM( + CAST( - - 44 AS SIGNED ) ) * - 16 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL 76 * + SUM ( + CAST ( - - 44 AS INTEGER ) ) * - 16 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT + 68 + col1 * + col0 * - 22 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT + 68 + col1 * + col0 * - 22 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 68 ) FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ( - 45 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 6 / col1 AND NULL
----

query II rowsort
SELECT - 49 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-49
51
-49
67
-49
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - + col2
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) - - 39 NOT IN ( + col1 + col2, 72 * + col1 + + ( - - 13 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 35 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 83 / + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 23 * - - 19 FROM tab1
----
437
437
437

query I rowsort
SELECT DISTINCT + ( + 44 ) * + - 89 AS col1 FROM tab0
----
-3916

onlyif mysql # DIV for integer division: 
query I rowsort label-5130
SELECT + 41 DIV col2 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5130
SELECT + 41 / col2 AS col2 FROM tab0
----
0
0
4

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT MIN( col0 ) * - COUNT( * ) col2 FROM tab2
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5132
SELECT MIN ( col0 ) * - COUNT ( * ) col2 FROM tab2
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col1 ) * - + col1 col1 FROM tab1
----
1475
150212
18816

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT + 26 * + COUNT( * ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT + 26 * + COUNT ( * ) AS col0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + - 52 AS col1 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT DISTINCT 20 + + col1 AS col1 FROM tab0 cor0
----
101
21
41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 IN ( + col2, - col0 + + col0, col0 + 99 )
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE + col0 * 1 * - ( - + col2 ) = NULL
----

query I rowsort
SELECT + + 83 AS col1 FROM tab0 cor0
----
83
83
83

query II rowsort
SELECT DISTINCT - 27 + + 40 AS col2, + col2 AS col1 FROM tab2
----
13
23
13
40
13
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT ALL + CAST( NULL AS SIGNED ) * - + 24 - col0 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 24 - col0 col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 7, col1 FROM tab0
----
7
1
7
21
7
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT DISTINCT 80 * - COUNT( ALL + - 22 ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT 80 * - COUNT ( ALL + - 22 ) FROM tab1
----
-240

query I rowsort
SELECT col1 - + + 98 FROM tab1
----
-51
-84
-93

query II rowsort
SELECT - col2 AS col0, + 3 FROM tab1 WHERE + - col1 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + + 26 ) AS col2 FROM tab2
----
26
26
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT + COUNT( * ) + + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5150
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab0 cor0
----
6

query II rowsort
SELECT + 60 + - + col1 AS col2, col2 * - - 74 AS col0 FROM tab0 AS cor0
----
-21
3478
39
740
59
7326

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL <= - 40
----

query III rowsort
SELECT * FROM tab0 WHERE + + 79 * 41 >= NULL
----

query I rowsort
SELECT ( - 37 ) FROM tab2, tab1 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + - - 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 49 * - - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL - SUM( ALL + - 4 ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - SUM ( ALL + - 4 ) AS col1 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5158
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL < col1 * - ( + col1 )
----

query I rowsort
SELECT 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - - col0 * + - ( col0 ) * - + col0 + - col2 * + 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5162
SELECT DISTINCT + AVG ( - + 37 ) AS col0 FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) > - + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT + AVG ( - + 37 ) AS col0 FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) > - + 44
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5163
SELECT ALL 18 DIV 36 AS col0, - col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

skipif mysql # not compatible
query II rowsort label-5163
SELECT ALL 18 / 36 AS col0, - col1 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5164
SELECT + 68 * + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT + 68 * + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - COUNT( + col1 ) FROM tab1 WHERE - col1 BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT - COUNT ( + col1 ) FROM tab1 WHERE - col1 BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IN ( - 91 + col0 - col2, + 85, 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT DISTINCT + COUNT( - col0 ) + + 77 AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT + COUNT ( - col0 ) + + 77 AS col0 FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5168
SELECT + 67 AS col2, MIN( DISTINCT - 47 ) * - - COUNT( * ) FROM tab0
----
67
-141

skipif mysql # not compatible
query II rowsort label-5168
SELECT + 67 AS col2, MIN ( DISTINCT - 47 ) * - - COUNT ( * ) FROM tab0
----
67
-141

query III rowsort
SELECT * FROM tab1 WHERE + 83 IS NULL
----

query I rowsort
SELECT ALL + col2 + + col2 + - col0 AS col2 FROM tab2
----
0
16
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5171
SELECT COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL MAX( DISTINCT - col1 ) - COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL MAX ( DISTINCT - col1 ) - COUNT ( * ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT DISTINCT col0 - + col0 + + 60 FROM tab0 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5174
SELECT + + CAST( col2 AS SIGNED ) - 49 DIV col1 * - - col2 FROM tab1 AS cor0
----
-192
-472
0

skipif mysql # not compatible
query I rowsort label-5174
SELECT + + CAST ( col2 AS INTEGER ) - 49 / col1 * - - col2 FROM tab1 AS cor0
----
-192
-472
0

query II rowsort
SELECT DISTINCT + 24 AS col0, + col2 + - 4 - + 55 FROM tab0 AS cor0
----
24
-12
24
-49
24
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT MAX( DISTINCT + col0 ) AS col1, 64 FROM tab2
----
75
64

skipif mysql # not compatible
query II rowsort label-5176
SELECT MAX ( DISTINCT + col0 ) AS col1, 64 FROM tab2
----
75
64

query III rowsort
SELECT * FROM tab2 WHERE NULL > col0 AND ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT MIN( - 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-5178
SELECT MIN ( - 93 ) FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT DISTINCT - - 83 AS col2, + COUNT( + - 11 ) AS col0 FROM tab1 AS cor0
----
83
3

skipif mysql # not compatible
query II rowsort label-5179
SELECT DISTINCT - - 83 AS col2, + COUNT ( + - 11 ) AS col0 FROM tab1 AS cor0
----
83
3

query II rowsort
SELECT - + col0 AS col2, 43 FROM tab2 AS cor0
----
-46
43
-64
43
-75
43

query I rowsort
SELECT DISTINCT + col2 * - - 92 FROM tab2 AS cor0
----
2116
3680
5336

query II rowsort
SELECT - col1 AS col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query I rowsort
SELECT DISTINCT 26 * + 51 FROM tab1 AS cor0 WHERE NOT - 67 NOT IN ( - col1, + col0, + 71 - col0 + col1 )
----

query I rowsort
SELECT DISTINCT 88 * + col0 AS col2 FROM tab1 AS cor0
----
4488
7480
8008

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN + 25 AND 83 - - + 57 )
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 WHERE NOT + + col2 * - col2 + - 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT COUNT( * ) * - - 30 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-5187
SELECT COUNT ( * ) * - - 30 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL - 95 + + SUM( + 59 ) AS col0 FROM tab1 WHERE NOT + col1 BETWEEN + 22 AND NULL
----
23

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - 95 + + SUM ( + 59 ) AS col0 FROM tab1 WHERE NOT + col1 BETWEEN + 22 AND NULL
----
23

query I rowsort
SELECT col2 * 38 FROM tab1
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL - 71 * + COUNT( * ) AS col1 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - 71 * + COUNT ( * ) AS col1 FROM tab2
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5191
SELECT DISTINCT + col1 * col2 * + col2 AS col0, - CAST( - 53 AS SIGNED ) + col0 + - 0 FROM tab1
----
129024
104
17405
138
217328
144

skipif mysql # not compatible
query II rowsort label-5191
SELECT DISTINCT + col1 * col2 * + col2 AS col0, - CAST ( - 53 AS INTEGER ) + col0 + - 0 FROM tab1
----
129024
104
17405
138
217328
144

query I rowsort
SELECT DISTINCT + ( + 20 ) AS col2 FROM tab0
----
20

query I rowsort
SELECT - col1 * + - ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT - 1 + - + col1 + - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5194
SELECT - 1 + - + col1 + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( + 15 ) + + ( + col0 ) FROM tab1
----
100
106
66

query II rowsort
SELECT ALL - 57 AS col2, 0 * col0 FROM tab0 AS cor0
----
-57
0
-57
0
-57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - 80 * - + SUM( - + col0 ) FROM tab2 AS cor0
----
-14800

skipif mysql # not compatible
query I rowsort label-5197
SELECT - 80 * - + SUM ( - + col0 ) FROM tab2 AS cor0
----
-14800

query I rowsort
SELECT ALL - col0 * col0 + + + col0 FROM tab1 AS cor0
----
-2550
-7140
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - 15 * - + 62 AS col2 FROM tab2 AS cor0
----
-46
930
-64
930
-75
930

query I rowsort
SELECT DISTINCT 55 + + 14 AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + MIN( DISTINCT + 60 ) - + 82 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-5201
SELECT + MIN ( DISTINCT + 60 ) - + 82 FROM tab0
----
-22

query I rowsort
SELECT col2 - - + col1 AS col1 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 85 * - + col0 col0 FROM tab2
----
3864
5376
6300

query III rowsort
SELECT * FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 6 + 72 FROM tab2
----
66
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5207
SELECT - col0 / 17 + + - CAST( NULL AS SIGNED ) + - col2 col1, - 81 AS col0 FROM tab0
----
NULL
-81
NULL
-81
NULL
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5207
SELECT - col0 / 17 + + - CAST ( NULL AS INTEGER ) + - col2 col1, - 81 AS col0 FROM tab0
----
NULL
-81
NULL
-81
NULL
-81

query I rowsort
SELECT DISTINCT + col0 - + - col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT - - col1 * - col1 DIV - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5209
SELECT - - col1 * - col1 / - col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5210
SELECT - 75 AS col1, CAST( - 87 AS SIGNED ) FROM tab2 AS cor0
----
-75
-87
-75
-87
-75
-87

skipif mysql # not compatible
query II rowsort label-5210
SELECT - 75 AS col1, CAST ( - 87 AS INTEGER ) FROM tab2 AS cor0
----
-75
-87
-75
-87
-75
-87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 = col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 BETWEEN ( - col0 ) AND ( NULL )
----

query I rowsort
SELECT ALL 75 * - 95 FROM tab2 AS cor0
----
-7125
-7125
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT COUNT( DISTINCT + 36 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5214
SELECT COUNT ( DISTINCT + 36 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 64 - - - col0 / col0 AND - col0 + - col0 * + - 51 * - 26
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * - + col0, - 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5218
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL <> + CAST( NULL AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-5218
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL <> + CAST ( NULL AS INTEGER ) + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 93 + - col2 + - col2 FROM tab0
----
4277
9009
910

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col0 >= NULL )
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE - 34 + 20 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - - 55 + + COUNT( + col0 ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5224
SELECT - - 55 + + COUNT ( + col0 ) FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT DISTINCT + MIN( DISTINCT - ( - - 7 ) ) col1 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5225
SELECT DISTINCT + MIN ( DISTINCT - ( - - 7 ) ) col1 FROM tab0 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - + col2 col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) = + - col0
----
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE ( NULL ) = + - col0
----
0

query II rowsort
SELECT ALL col0, - col0 AS col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query I rowsort
SELECT ALL 7 + 20 FROM tab2 AS cor0
----
27
27
27

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT DISTINCT - + col1 * 1 * 40 + - + 77 FROM tab1 AS cor0
----
-1957
-277
-637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
27
27
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - 42 + - MIN( DISTINCT - - 44 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5234
SELECT - 42 + - MIN ( DISTINCT - - 44 ) FROM tab2 AS cor0
----
-86

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 + 2 col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT + 55, + col1 * - - ( col1 ) * + - col0 + col2 AS col0 FROM tab0
----
55
-38357
55
-98368
55
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5238
SELECT - + SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - 18 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT - + SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - 18 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT + col1 DIV - 3 FROM tab0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT + col1 / - 3 FROM tab0
----
-27
-7
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - MIN( - - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5240
SELECT - MIN ( - - col0 ) AS col2 FROM tab2
----
-46

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 FROM tab1
----
59
-5
68
-47
96
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 35, col2 col0 FROM tab0
----
35
10
35
47
35
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - + col0, 80 AS col2 FROM tab2 AS cor0
----
-46
80
-64
80
-75
80

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( 67 - - + 24 ) IS NULL )
----

query I rowsort
SELECT ( - 96 ) FROM tab2
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND - col0 + + ( - col0 )
----

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 WHERE NOT NULL <= col2 + col1 * ( col1 ) * 24 * + 86 * col0 + + - col1 + + 72 + + 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL - 10 * col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - 10 * col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT col2 / + + 60 + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT col2 / + + 60 + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 47 col0 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - ( + + col0 ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT - MAX( DISTINCT 98 ) AS col1 FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-5254
SELECT - MAX ( DISTINCT 98 ) AS col1 FROM tab2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - 35 * + SUM( - col1 ) FROM tab1
----
2310

skipif mysql # not compatible
query I rowsort label-5255
SELECT - 35 * + SUM ( - col1 ) FROM tab1
----
2310

query III rowsort
SELECT * FROM tab0 WHERE - ( ( - + col2 ) ) <= - 67 / col1
----

query I rowsort
SELECT ALL + + 89 + col2 * + - col1 FROM tab2 AS cor0
----
-1084
-2991
-3797

query I rowsort
SELECT DISTINCT - 79 * + + 72 * - + col0 + col1 FROM tab1
----
290102
483485
517655

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 22 * + 38 FROM tab2
----
836
836
836

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 22 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + 67 * + col2 - + - col1 FROM tab2 AS cor0
----
1592
2757
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * 54 col1, 83 AS col2 FROM tab1 AS cor0
----
2538
83
270
83
756
83

query I rowsort
SELECT DISTINCT - - col1 + + - col1 + + + ( col0 ) * - 46 FROM tab0 AS cor0
----
-4002
-4462
-690

query I rowsort
SELECT col0 - - col0 * col2 AS col2 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT + col1 * - col1 - + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-2652
-4556
-6006

skipif mysql # not compatible
query I rowsort label-5267
SELECT + col1 * - col1 - + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-2652
-4556
-6006

query I rowsort
SELECT - - col1 - ( + + 70 ) + + col2 * - col1 FROM tab1 AS cor0
----
-1400
-3219
-360

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 38 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - col2, 91 AS col1 FROM tab1
----
-4896
91
-5015
91
-6188
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + 60 * + - COUNT( * ) AS col2 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + 60 * + - COUNT ( * ) AS col2 FROM tab1
----
-180

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - col1 ) * - col0 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query II rowsort label-5274
SELECT DISTINCT col0 DIV + - 53 AS col2, + col2 * + 9 AS col2 FROM tab2 AS cor0
----
-1
360
-1
522
0
207

skipif mysql # not compatible
query II rowsort label-5274
SELECT DISTINCT col0 / + - 53 AS col2, + col2 * + 9 AS col2 FROM tab2 AS cor0
----
-1
360
-1
522
0
207

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT + 33 * - + COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + 33 * - + COUNT ( * ) FROM tab2
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - - 47 ) * 5 col1, 14 AS col1 FROM tab2 AS cor0
----
235
14

query I rowsort
SELECT ALL - 40 AS col1 FROM tab1 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 WHERE 88 + - col0 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE 88 + - col0 * + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT + - SUM( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5279
SELECT + - SUM ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 81 IS NOT NULL
----

query I rowsort
SELECT + 95 FROM tab2 WHERE NULL < - + col1 - + col0
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE 65 * + - 57 * col1 - - ( - + col1 ) + + - col0 * - + ( + col2 ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT + col0 * - + CAST( NULL AS SIGNED ) + - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + col0 * - + CAST ( NULL AS INTEGER ) + - - col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5284
SELECT ALL col0 + + col1 DIV + col2 AS col2 FROM tab2
----
48
65
76

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL col0 + + col1 / + col2 AS col2 FROM tab2
----
48
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5285
SELECT + 5 * + 48 * 23 + col2, + col1 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / + - 71 * + ( + col1 ) + - col0 AS col0 FROM tab1
----
5579
NULL
5588
NULL
5616
NULL

skipif mysql # not compatible
query II rowsort label-5285
SELECT + 5 * + 48 * 23 + col2, + col1 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / + - 71 * + ( + col1 ) + - col0 AS col0 FROM tab1
----
5579
NULL
5588
NULL
5616
NULL

query I rowsort
SELECT ALL - ( - - col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT + CAST( NULL AS SIGNED ) + - + col0 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CAST ( NULL AS INTEGER ) + - + col0 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT 99 + - COUNT( DISTINCT col1 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT 99 + - COUNT ( DISTINCT col1 ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 95 + + 99 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT - ( - col0 ) * + col0 + - col0 * + col1 * col2 * + col0 - + 53 + + col0 + + 45 DIV 12 * + + col0 AS col1 FROM tab0
----
-1581626
-856343
-921747

skipif mysql # not compatible
query I rowsort label-5291
SELECT - ( - col0 ) * + col0 + - col0 * + col1 * col2 * + col0 - + 53 + + col0 + + 45 / 12 * + + col0 AS col1 FROM tab0
----
-1581626
-856343
-921747

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5292
SELECT - 10 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5292
SELECT - 10 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT DISTINCT + 29 + - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT + 29 + - COUNT ( * ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + COUNT( * ) + 84 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-5294
SELECT + COUNT ( * ) + 84 FROM tab2
----
87

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE + col1 * + col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT MAX( ALL - - 30 ) + - 28 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5296
SELECT MAX ( ALL - - 30 ) + - 28 FROM tab1 AS cor0
----
2

query I rowsort
SELECT - + col1 * 71 + - 81 + - - col0 * - col0 * col2 FROM tab0 AS cor0
----
-16407
-77262
-931643

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT DISTINCT - CAST( MIN( DISTINCT + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT - CAST ( MIN ( DISTINCT + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - col2 * + col0 * 42 AS col0 FROM tab0 AS cor0
----
-29610
-36540
-403326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5301
SELECT DISTINCT ( COUNT( DISTINCT - CAST( - + CAST( 41 AS SIGNED ) AS SIGNED ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT ( COUNT ( DISTINCT - CAST ( - + CAST ( 41 AS INTEGER ) AS INTEGER ) ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT MAX( ALL - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5302
SELECT MAX ( ALL - - col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5304
SELECT CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) col1 FROM tab2
----
3

query II rowsort
SELECT col0, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5306
SELECT DISTINCT + COUNT( * ) AS col1, 74 FROM tab0 WHERE - + col1 * 10 + + - 14 / - + CAST( + - 94 AS SIGNED ) <> + - col1 / + col1 + - 6
----
3
74

skipif mysql # not compatible
query II rowsort label-5306
SELECT DISTINCT + COUNT ( * ) AS col1, 74 FROM tab0 WHERE - + col1 * 10 + + - 14 / - + CAST ( + - 94 AS INTEGER ) <> + - col1 / + col1 + - 6
----
3
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5307
SELECT 16 AS col1, + CAST( - col1 AS SIGNED ) FROM tab2
----
16
-51
16
-67
16
-77

skipif mysql # not compatible
query II rowsort label-5307
SELECT 16 AS col1, + CAST ( - col1 AS INTEGER ) FROM tab2
----
16
-51
16
-67
16
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5308
SELECT ALL 47, CAST( NULL AS SIGNED ) col1 FROM tab2
----
47
NULL
47
NULL
47
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5308
SELECT ALL 47, CAST ( NULL AS INTEGER ) col1 FROM tab2
----
47
NULL
47
NULL
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL MIN( ALL - + 2 ) col1 FROM tab1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5309
SELECT ALL MIN ( ALL - + 2 ) col1 FROM tab1
----
-2

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND + 89
----

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab0 cor0
----
6

query I rowsort
SELECT - + col1 * + 17 AS col1 FROM tab0 cor0
----
-1377
-17
-357

query I rowsort
SELECT + col2 * + col2 * - ( col2 ) AS col1 FROM tab1
----
-205379
-314432
-884736

query I rowsort
SELECT ALL + - 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT ALL - 22 * 37 * + - col1 FROM tab0
----
17094
65934
814

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( - 68 + + col1 + - + 44 / + col2 + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - 36 AS col1 FROM tab1
----
-2124
-2448
-3456

query II rowsort
SELECT + - ( + + 42 ) + col1 AS col0, col1 AS col0 FROM tab1 AS cor0
----
-28
14
-37
5
5
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 31 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 94 AS col0 FROM tab2 cor0
----
94
94
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1 AS cor0 WHERE + col2 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - 95 / - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 95 / - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT ALL SUM( + + CAST( - + ( - col1 ) AS SIGNED ) ) col1 FROM tab0 AS cor0 WHERE NULL <> + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5325
SELECT ALL SUM ( + + CAST ( - + ( - col1 ) AS INTEGER ) ) col1 FROM tab0 AS cor0 WHERE NULL <> + col0
----
NULL

query I rowsort
SELECT ALL - 26 + 90 AS col0 FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL col0 * CAST( - 13 AS SIGNED ) AS col0 FROM tab1
----
-1105
-1183
-663

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL col0 * CAST ( - 13 AS INTEGER ) AS col0 FROM tab1
----
-1105
-1183
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT + COUNT( * ) FROM tab2 WHERE + 15 * + 6 > col2 / col2 / + - col0
----
3

skipif mysql # not compatible
query I rowsort label-5328
SELECT + COUNT ( * ) FROM tab2 WHERE + 15 * + 6 > col2 / col2 / + - col0
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT 34 IS NOT NULL
----

query II rowsort
SELECT ALL - col0, + col0 + + col0 AS col1 FROM tab1
----
-51
102
-85
170
-91
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5332
SELECT - + CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) + - + col2 AS col0, 99 * + - 60 * + - col1 FROM tab2 AS cor0
----
-104
457380
-133
397980
-69
302940

skipif mysql # not compatible
query II rowsort label-5332
SELECT - + CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) + - + col2 AS col0, 99 * + - 60 * + - col1 FROM tab2 AS cor0
----
-104
457380
-133
397980
-69
302940

query I rowsort
SELECT - 34 + + 85 AS col0 FROM tab2 cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT col2 + + CAST( 22 AS SIGNED ) FROM tab0
----
121
32
69

skipif mysql # not compatible
query I rowsort label-5334
SELECT col2 + + CAST ( 22 AS INTEGER ) FROM tab0
----
121
32
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + 90 * col1 col2 FROM tab1
----
1358
4328
548

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( col2 - + 61 * + 2 )
----

query I rowsort
SELECT - 17 AS col1 FROM tab2 WHERE NOT NULL IN ( - 90 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT MAX( DISTINCT - 5 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-5339
SELECT MAX ( DISTINCT - 5 ) AS col2 FROM tab0
----
-5

query I rowsort
SELECT + 10 + 38 FROM tab1
----
48
48
48

query I rowsort
SELECT DISTINCT + col2 + 78 AS col1 FROM tab2
----
101
118
136

query I rowsort
SELECT DISTINCT - 55 FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - col2 - col2 * col0 AS col1 FROM tab2
----
-1081
-2600
-4408

query III rowsort
SELECT * FROM tab1 WHERE NOT 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT + COUNT( * ) col2 FROM tab1 WHERE ( col2 / + col0 ) NOT IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5345
SELECT + COUNT ( * ) col2 FROM tab1 WHERE ( col2 / + col0 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE - 66 + + col1 * col1 IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5348
SELECT DISTINCT - 91 + CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT - 91 + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT IN ( - 19 - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT 71 - 13 FROM tab0
----
58
58
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5352
SELECT ALL - COUNT( col0 ) * - COUNT( * ) FROM tab1 WHERE NOT ( - col2 + + CAST( NULL AS DECIMAL ) * + col2 ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL - COUNT ( col0 ) * - COUNT ( * ) FROM tab1 WHERE NOT ( - col2 + + CAST ( NULL AS REAL ) * + col2 ) IS NOT NULL
----
9

query I rowsort
SELECT DISTINCT 69 + - ( + col0 ) AS col1 FROM tab1
----
-16
-22
18

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> col1
----

query III rowsort
SELECT * FROM tab1 WHERE 63 * + 78 >= + col0 * - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT DISTINCT - MIN( DISTINCT - 92 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - MIN ( DISTINCT - 92 ) FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT 58 + - COUNT( * ) AS col2 FROM tab1 WHERE NOT + 20 * 7 IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT 58 + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 20 * 7 IS NULL
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT CAST( - 34 AS SIGNED ) AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT CAST ( - 34 AS INTEGER ) AS col0 FROM tab1
----
-34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + MAX( ALL 60 ) FROM tab2 WHERE ( NULL ) <> - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT + MAX ( ALL 60 ) FROM tab2 WHERE ( NULL ) <> - 69
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( 74 ) AND + 78 / + 98
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT MIN( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 + - col1 ) >= CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT MIN ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - col0 + - col1 ) >= CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5364
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE - col0 NOT IN ( - 41 )
----
3

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE - col0 NOT IN ( - 41 )
----
3

query I rowsort
SELECT ALL + - 56 * col1 AS col2 FROM tab0 AS cor0
----
-1176
-4536
-56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 57 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL col0 * 66 + + col0 * 9 FROM tab1 AS cor0
----
3825
6375
6825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL MAX( col0 ) AS col2 FROM tab2 WHERE - col0 NOT BETWEEN ( col1 ) AND NULL
----
75

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL MAX ( col0 ) AS col2 FROM tab2 WHERE - col0 NOT BETWEEN ( col1 ) AND NULL
----
75

query I rowsort
SELECT col1 + - col1 FROM tab2 WHERE 77 IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( - 65 ) IS NULL
----

query I rowsort
SELECT ALL col1 * + - 57 + + 8 AS col1 FROM tab2
----
-2899
-3811
-4381

query I rowsort
SELECT DISTINCT + 33 + - + col0 * - ( + 41 + - 26 ) FROM tab2
----
1158
723
993

query I rowsort
SELECT - col2 * 29 - - col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT DISTINCT + col0 DIV - 11 - 73 FROM tab1
----
-77
-80
-81

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT + col0 / - 11 - 73 FROM tab1
----
-77
-80
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT DISTINCT col2 + - 47 DIV col0 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT col2 + - 47 / col0 AS col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT MIN( col2 ) * 58 col2 FROM tab2
----
1334

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5380
SELECT MIN ( col2 ) * 58 col2 FROM tab2
----
1334

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND ( + col1 + col1 )
----
59
96

query I rowsort
SELECT + ( 52 ) FROM tab1
----
52
52
52

query I rowsort
SELECT ALL + 75 * + col1 AS col0 FROM tab2 WHERE NOT col1 = 7
----
3825
5025
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT - MIN( - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5384
SELECT - MIN ( - col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT + CAST( col0 AS SIGNED ) * 43 FROM tab0
----
3741
4171
645

skipif mysql # not compatible
query I rowsort label-5385
SELECT + CAST ( col0 AS INTEGER ) * 43 FROM tab0
----
3741
4171
645

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <= + 88
----

query I rowsort
SELECT col2 * - 64 AS col0 FROM tab0 AS cor0
----
-3008
-6336
-640

query I rowsort
SELECT + ( 31 ) AS col1 FROM tab2 cor0
----
31
31
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 cor0 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + + - 12 FROM tab2 AS cor0
----
34
52
63

query I rowsort
SELECT ALL + - 25 + - - col1 + 63 * + col1 FROM tab1 cor0
----
295
2983
871

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL + col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) / + col2 + col1 )
----

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) / + col2 + col1 )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + - col2 = NULL
----

query I rowsort
SELECT DISTINCT - 22 * + - 0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 55 * + 41 + 10 * + 10 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2355

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE + - col0 - - col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( col1 * - + 15 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 < ( - + col0 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + - col1 ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT + 29 * + 91 + + col1 * 80 AS col2 FROM tab1 AS cor0
----
3039
3759
6399

query I rowsort
SELECT 85 AS col0 FROM tab1 AS cor0 WHERE NOT 71 <> ( + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5406
SELECT ALL col0 DIV + CAST( 35 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL col0 / + CAST ( 35 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT ( + 0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - 15 AS col1 FROM tab0 AS cor0 WHERE - col1 IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT 78 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + col1 * - ( CAST( + ( + 1 ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5409
SELECT 78 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + col1 * - ( CAST ( + ( + 1 ) AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5410
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 - - 94 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT + 44 DIV + col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5412
SELECT + 44 / + col0 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL + 78 + - col2 AS col2 FROM tab1 WHERE NOT + - col2 - - 5 NOT BETWEEN ( NULL ) AND ( ( 20 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT DISTINCT + CAST( - 95 AS SIGNED ) col1 FROM tab0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5415
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) col1 FROM tab0
----
-95

query I rowsort
SELECT + AVG ( ALL col1 ) - + 32 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * + col0 * + 68 AS col0 FROM tab1
----
332928
341020
420784

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT col2 <= NULL
----

query II rowsort
SELECT ( col0 ) AS col2, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM tab2
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT - ( - COUNT( * ) ) * 43 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5422
SELECT - ( - COUNT ( * ) ) * 43 AS col0 FROM tab2
----
129

query I rowsort
SELECT ALL - ( 48 ) AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + ( - ( col2 ) ) ) AND ( + 85 * - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5424
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + ( - ( col2 ) ) ) AND ( + 85 * - CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - col2 * - - 20 * 44 + col2 AS col1 FROM tab1 AS cor0
----
-51861
-59772
-84384

query I rowsort
SELECT col0 + + col2 + + col1 FROM tab0 AS cor0
----
118
143
197

query II rowsort
SELECT + - col2 + 48 AS col0, col2 * + col1 AS col0 FROM tab0 AS cor0
----
-51
99
1
3807
38
210

query I rowsort
SELECT + col0 + - + col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT - CAST( + col0 AS SIGNED ) * - - col2 + ( 87 ) + 9 AS col2 FROM tab0
----
-609
-774
-9507

skipif mysql # not compatible
query I rowsort label-5430
SELECT - CAST ( + col0 AS INTEGER ) * - - col2 + ( 87 ) + 9 AS col2 FROM tab0
----
-609
-774
-9507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col1 FROM tab0
----
3
3
3

query I rowsort
SELECT col2 * - ( + ( 61 ) ) FROM tab2 cor0 WHERE NULL IN ( 15 * + + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5433
SELECT COUNT ( * ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - + ( AVG ( DISTINCT + + col0 ) ) FROM tab0 AS cor0 WHERE NULL < + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT MAX( + 99 ) AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5435
SELECT MAX ( + 99 ) AS col1 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col2 * + 33 AS col0 FROM tab0 AS cor0 WHERE - 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5437
SELECT * FROM tab2 AS cor0 WHERE - 71 IN ( - ( - + CAST( col1 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5437
SELECT * FROM tab2 AS cor0 WHERE - 71 IN ( - ( - + CAST ( col1 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5438
SELECT + col1 DIV + + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5438
SELECT + col1 / + + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 * 38 AS col0 FROM tab2 AS cor0
----
-1520
-2204
-874

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 46 + + col1 + - 68 AS col0 FROM tab1 AS cor0
----
-100
-109
-67

query II rowsort
SELECT - col0 AS col1, col2 + 78 * + ( + + ( - 37 ) ) FROM tab1 AS cor0
----
-51
-2790
-85
-2827
-91
-2818

query I rowsort
SELECT DISTINCT - col0 * + col2 * 84 FROM tab2
----
-215040
-365400
-88872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT 80 AS col2 FROM tab0 WHERE + CAST( + col0 AS SIGNED ) / col2 - + - ( + col1 ) + - col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5444
SELECT 80 AS col2 FROM tab0 WHERE + CAST ( + col0 AS INTEGER ) / col2 - + - ( + col1 ) + - col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT 36 / + CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT 36 / + CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 36 * - - col1 + - col0 FROM tab0
----
-133
-2931
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT COUNT( * ) + + 17 col2 FROM tab0, tab1 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT COUNT ( * ) + + 17 col2 FROM tab0, tab1 AS cor0
----
26

query I rowsort
SELECT + 50 - + col0 FROM tab0
----
-37
-47
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT - COUNT( * ) + - - MIN( DISTINCT + - col2 ) FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5449
SELECT - COUNT ( * ) + - - MIN ( DISTINCT + - col2 ) FROM tab1
----
-99

query I rowsort
SELECT ALL col0 - + 78 FROM tab2
----
-14
-3
-32

query I rowsort
SELECT DISTINCT 77 * + col2 + col1 * - 1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 74 * col1 AS col1 FROM tab0 cor0
----
1554
5994
74

query I rowsort
SELECT - 6 + 69 AS col1 FROM tab2 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT 28 + - + COUNT( - col1 ) FROM tab0 AS cor0 WHERE col2 >= NULL
----
28

skipif mysql # not compatible
query I rowsort label-5454
SELECT 28 + - + COUNT ( - col1 ) FROM tab0 AS cor0 WHERE col2 >= NULL
----
28

query I rowsort
SELECT DISTINCT 86 * - - 70 AS col1 FROM tab2 AS cor0
----
6020

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( - 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5457
SELECT COUNT( * ) DIV ( 21 ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( * ) / ( 21 ) AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + ( 73 ) FROM tab2 AS cor0
----
73
73
73

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col1 / + + 95 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * 24 * col2 FROM tab1 cor0
----
32256
7080
76704

onlyif mysql # DIV for integer division: 
query II rowsort label-5461
SELECT DISTINCT - 20 DIV - col0 AS col0, ( - 53 ) * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
0
-2749
0
-3626
0
-4145

skipif mysql # not compatible
query II rowsort label-5461
SELECT DISTINCT - 20 / - col0 AS col0, ( - 53 ) * + col1 + - col0 AS col0 FROM tab2 AS cor0
----
0
-2749
0
-3626
0
-4145

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 >= - 30 + - + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5463
SELECT ( + - col1 ) AS col1, col1 DIV col1 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-5463
SELECT ( + - col1 ) AS col1, col1 / col1 FROM tab2 AS cor0
----
-51
1
-67
1
-77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT DISTINCT + + MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT + + MAX ( col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT 52 * + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5465
SELECT 52 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
156

query I rowsort
SELECT + 92 AS col1 FROM tab0
----
92
92
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE NOT 16 / - col1 NOT IN ( + col2, col1, col2 * - col0 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5467
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE NOT 16 / - col1 NOT IN ( + col2, col1, col2 * - col0 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45 col2, - 1 AS col0 FROM tab1
----
-45
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 > NULL
----

query II rowsort
SELECT - ( 39 ) + - col1, col2 FROM tab1
----
-44
59
-53
96
-86
68

query I rowsort
SELECT - 95 + + col1 AS col0 FROM tab0
----
-14
-74
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 94 ) IN ( - 47 - col1 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT MAX( DISTINCT CAST( + col2 AS SIGNED ) ) - + 16 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5475
SELECT MAX ( DISTINCT CAST ( + col2 AS INTEGER ) ) - + 16 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT 49 + + - COUNT( * ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5476
SELECT 49 + + - COUNT ( * ) AS col1 FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 23 + + + col1 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT COUNT( * ) + 15 AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5478
SELECT COUNT ( * ) + 15 AS col0 FROM tab1 AS cor0
----
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 * + col2 + 94 ) NOT BETWEEN NULL AND + col1 * 68 + - + 21 + - col0 + - + 26 * - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - 80 * col1 IS NOT NULL OR NOT NULL < - 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - + ( - col2 ) col0 FROM tab0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT COUNT( - 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5483
SELECT COUNT ( - 24 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * + + col1 ) = - col2 + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col1 * + - col0 * + - col2 * - col1 * - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT DISTINCT - MAX( DISTINCT - + col1 ) - - SUM( - + col1 ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) - - SUM ( - + col1 ) FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL SUM( col0 ) col0 FROM tab2 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5487
SELECT ALL SUM ( col0 ) col0 FROM tab2 WHERE ( NULL ) = NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 * + - col2 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 / + - 52 + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT - + COUNT( * ) + + MIN( DISTINCT + col2 ) * 89 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + col0 IS NULL
----
5248

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT - + COUNT ( * ) + + MIN ( DISTINCT + col2 ) * 89 AS col2 FROM tab1 AS cor0 WHERE NOT col2 + + col0 IS NULL
----
5248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + col2 - + - 26 AS col2 FROM tab1
----
51
122
85
85
91
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT - col0 * col0 DIV col1 FROM tab2
----
-41
-53
-83

skipif mysql # not compatible
query I rowsort label-5492
SELECT - col0 * col0 / col1 FROM tab2
----
-41
-53
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5493
SELECT col1, ( - - col0 ) DIV 64 * 68 + - - 4 + + - col0 * - + col1 + - CAST( - - col0 AS SIGNED ) AS col2 FROM tab0
----
1
72
21
1812
81
1204

skipif mysql # not compatible
query II rowsort label-5493
SELECT col1, ( - - col0 ) / 64 * 68 + - - 4 + + - col0 * - + col1 + - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0
----
1
72
21
1812
81
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL - - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT 41 * - + col1 FROM tab1 AS cor0
----
-1927
-205
-574

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT DISTINCT + + COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + + COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 + 30 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 86 * col0 FROM tab0 AS cor0
----
1290
7482
8342

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT DISTINCT - COUNT( * ) + + + 36 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - COUNT ( * ) + + + 36 FROM tab1
----
33

query I rowsort
SELECT DISTINCT + 15 FROM tab1 WHERE NOT col0 BETWEEN NULL AND - - col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5505
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) col1, - 68 FROM tab0
----
NULL
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5505
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) col1, - 68 FROM tab0
----
NULL
-68

query I rowsort
SELECT DISTINCT col0 * + + ( + col1 ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT 73 * - col0 AS col2 FROM tab1
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT DISTINCT + 28 * + COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT + 28 * + COUNT ( * ) FROM tab2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5509
SELECT col1 DIV 75 DIV + ( + 29 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT col1 / 75 / + ( + 29 ) FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL 4 * - CAST( - col0 AS SIGNED ) col1 FROM tab2
----
184
256
300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5510
SELECT ALL 4 * - CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
184
256
300

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT DISTINCT + MIN( 14 ) FROM tab0 WHERE NULL <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT + MIN ( 14 ) FROM tab0 WHERE NULL <= + col1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( - 91 ) BETWEEN 16 + + - col1 * + + ( - - 68 ) - col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT DISTINCT MIN( col1 ) AS col0, 53 AS col0 FROM tab2 AS cor0
----
51
53

skipif mysql # not compatible
query II rowsort label-5513
SELECT DISTINCT MIN ( col1 ) AS col0, 53 AS col0 FROM tab2 AS cor0
----
51
53

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( col1, col2 * + 15, col2 - col0 )
----
-51
-67
-77

query I rowsort
SELECT + 58 + 62 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL - 30 + - col1 AS col0 FROM tab0 AS cor0
----
-111
-31
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 37 * + 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT + col0, + col2 * + 90 + + 93 FROM tab0 AS cor0
----
15
4323
87
993
97
9003

query II rowsort
SELECT DISTINCT + 50, col0 FROM tab2 AS cor0
----
50
46
50
64
50
75

query II rowsort
SELECT - col2, col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 8 <= col2 + - ( - 24 )
----

query I rowsort
SELECT ALL 99 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 col2, 37 col1 FROM tab2 AS cor0
----
51
37
67
37
77
37

query I rowsort
SELECT DISTINCT col2 * + - col0 - - col1 + col2 + - 47 * + 13 + col2 FROM tab1 AS cor0
----
-5301
-5503
-6616

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT + + 1 DIV + - 36 - - + 20 col2 FROM tab2 cor0
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5528
SELECT + + 1 / + - 36 - - + 20 col2 FROM tab2 cor0
----
20
20
20

query I rowsort
SELECT - + col0 - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - + 23 * + - COUNT( * ) + - ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT col2 + - col1 + + + col0 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - + 23 * + - COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT col2 + - col1 + + + col0 IS NULL
----
66

query II rowsort
SELECT - + col0 - - 79 * - - col0 AS col1, - col1 FROM tab2 AS cor0
----
3588
-51
4992
-77
5850
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT + 22 + COUNT( DISTINCT col1 ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT + 22 + COUNT ( DISTINCT col1 ) AS col0 FROM tab0
----
25

query I rowsort
SELECT col1 - - 37 FROM tab0
----
118
38
58

query I rowsort
SELECT ALL + col0 - col1 + + + col1 * - + col0 + + col0 AS col0 FROM tab1
----
-260
-4142
-626

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + COUNT( - col1 ) - - 10 AS col0 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + COUNT ( - col1 ) - - 10 AS col0 FROM tab0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT + 79 * - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5536
SELECT + 79 * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL col2 * - - col0 AS col0 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT ALL + 22 FROM tab2 cor0
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT - + CAST( - 25 AS SIGNED ) * + 48 - + 88 + SUM( CAST( NULL AS SIGNED ) ) * ( + - SUM( ALL 38 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5540
SELECT - + CAST ( - 25 AS INTEGER ) * + 48 - + 88 + SUM ( CAST ( NULL AS INTEGER ) ) * ( + - SUM ( ALL 38 ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5541
SELECT - ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5541
SELECT - ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + ( COUNT( * ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5542
SELECT + ( COUNT ( * ) ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT DISTINCT - - COUNT( * ), - MIN( + ( - - 19 ) ) AS col1 FROM tab1 WHERE NOT + 48 * + col2 NOT BETWEEN - + 81 AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT - - COUNT ( * ), - MIN ( + ( - - 19 ) ) AS col1 FROM tab1 WHERE NOT + 48 * + col2 NOT BETWEEN - + 81 AND NULL
----
0
NULL

query I rowsort
SELECT + col0 * - 69 AS col1 FROM tab2 cor0
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query II rowsort label-5546
SELECT ALL - COUNT( * ) * + SUM( DISTINCT + col1 ) * - 81 * + MAX( - ( - col0 ) ), 14 AS col1 FROM tab0 cor0 WHERE + col1 * - 13 IS NULL
----
NULL
14

skipif mysql # not compatible
query II rowsort label-5546
SELECT ALL - COUNT ( * ) * + SUM ( DISTINCT + col1 ) * - 81 * + MAX ( - ( - col0 ) ), 14 AS col1 FROM tab0 cor0 WHERE + col1 * - 13 IS NULL
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT - + MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5547
SELECT - + MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL + MIN( - - col0 ) * - ( ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL + MIN ( - - col0 ) * - ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
153

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + + 51 + - col1 FROM tab0 AS cor0
----
675
900
9653

query I rowsort
SELECT ALL + col2 * - col2 + + 97 * 13 AS col0 FROM tab2 AS cor0
----
-2103
-339
732

query I rowsort
SELECT DISTINCT 14 + - - col2 * - 51 FROM tab0
----
-2383
-496
-5035

query I rowsort
SELECT - + col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + col0 + 87 AS col1 FROM tab0
----
102
174
184

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5555
SELECT DISTINCT + 78 AS col0, - col1 + + col2 + - ( + - CAST( NULL AS DECIMAL ) ) + - 72 AS col0 FROM tab2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5555
SELECT DISTINCT + 78 AS col0, - col1 + + col2 + - ( + - CAST ( NULL AS REAL ) ) + - 72 AS col0 FROM tab2
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col0 * 91 - 63 * + + col1 FROM tab0 AS cor0
----
-3738
6594
8764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col0 * - col2 FROM tab1 AS cor0
----
51
-4896
85
-5015
91
-6188

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NULL < col1 + - col0
----

query I rowsort
SELECT DISTINCT + 31 FROM tab1 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT + col1 - + - col1 AS col2 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT + CAST( NULL AS SIGNED ) + + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT + CAST ( NULL AS INTEGER ) + + + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5564
SELECT DISTINCT + + 98 - 5, + 34 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
93
-102

skipif mysql # not compatible
query II rowsort label-5564
SELECT DISTINCT + + 98 - 5, + 34 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
93
-102

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + 43 + - ( 82 ) AS col2 FROM tab0 AS cor0
----
-39

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 < + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 57 / - + col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 / + + col0 AND col2
----

query I rowsort
SELECT ALL col2 * + + col1 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col0 * - + col1 AS col1 FROM tab0 cor0
----
1215
1827
97

query II rowsort
SELECT ALL + 30 + - 62 * - col0 * + + col0 + + - 80 AS col0, + col2 FROM tab1 AS cor0
----
161212
96
447900
59
513372
68

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2 cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5574
SELECT - 75, MIN( 32 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5574
SELECT - 75, MIN ( 32 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
-75
NULL

query I rowsort
SELECT + 61 AS col2 FROM tab1
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL COUNT( * ) FROM tab0 WHERE col0 <= - - 87
----
2

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL COUNT ( * ) FROM tab0 WHERE col0 <= - - 87
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5577
SELECT 94 AS col0, col2 * 48 + CAST( NULL AS SIGNED ) FROM tab1
----
94
NULL
94
NULL
94
NULL

skipif mysql # not compatible
query II rowsort label-5577
SELECT 94 AS col0, col2 * 48 + CAST ( NULL AS INTEGER ) FROM tab1
----
94
NULL
94
NULL
94
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5578
SELECT ALL + 51 AS col0, CAST( - - col2 AS SIGNED ) AS col2 FROM tab2
----
51
23
51
40
51
58

skipif mysql # not compatible
query II rowsort label-5578
SELECT ALL + 51 AS col0, CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2
----
51
23
51
40
51
58

query I rowsort
SELECT DISTINCT + 13 * 67 + + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
46
64
75

query II rowsort
SELECT ALL + + 4 AS col0, - ( + 1 ) * 8 + 7 FROM tab0 AS cor0
----
4
-1
4
-1
4
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col1, 65 col0 FROM tab2 cor0
----
51
65
67
65
77
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 99 col1, + 9 AS col1 FROM tab1 AS cor0
----
-99
9
-99
9
-99
9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > ( + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 21 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 - + col2 < col1
----

skipif mysql # not compatible
query I rowsort label-5589
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 - + col2 < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col0 FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT 41 + 13 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT col2 + - - 33 AS col1 FROM tab1 AS cor0
----
101
129
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + col0 / - 24 NOT BETWEEN - - col2 * + 85 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT - COUNT( * ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5594
SELECT - COUNT ( * ) col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5595
SELECT ALL + 32 DIV - - 12 + - 65 AS col0 FROM tab1
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + 32 / - - 12 + - 65 AS col0 FROM tab1
----
-63
-63
-63

query II rowsort
SELECT col1, col1 AS col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT ALL COUNT( * ) AS col1, + 49 col1 FROM tab0
----
3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5597
SELECT ALL COUNT ( * ) AS col1, + 49 col1 FROM tab0
----
3
49

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 + - col2 FROM tab2 AS cor0
----
46
-46
64
-80
75
-116

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 BETWEEN - - 48 AND - col0 / + ( - - ( + col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5600
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE - ( + + col0 ) / + 33 + - + CAST( NULL AS SIGNED ) + - - ( - col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE - ( + + col0 ) / + 33 + - + CAST ( NULL AS INTEGER ) + - - ( - col2 ) > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL + - COUNT( * ) * + 34 FROM tab1 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL + - COUNT ( * ) * + 34 FROM tab1 cor0
----
-102

query I rowsort
SELECT 23 + + 99 AS col2 FROM tab0 AS cor0
----
122
122
122

query I rowsort
SELECT col0 + - col2 - - col2 * 75 AS col2 FROM tab0 AS cor0
----
3493
7423
827

query I rowsort
SELECT - col1 + 22 + - col0 FROM tab1 AS cor0
----
-116
-43
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT - COUNT( * ) + - 23 AS col0 FROM tab0, tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT - COUNT ( * ) + - 23 AS col0 FROM tab0, tab1 AS cor0
----
-32

query I rowsort
SELECT DISTINCT - col2 * + - 89 FROM tab2 WHERE + col0 / + col0 <> ( + ( - 84 ) + + col1 )
----
2047
3560
5162

query I rowsort
SELECT ALL col2 + + + col1 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5608
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL AVG ( DISTINCT - 92 ) AS col0 FROM tab2 WHERE NULL < + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT MAX( col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5610
SELECT MAX ( col2 ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT - MAX( col1 ) FROM tab0 AS cor0 WHERE NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT - MAX ( col1 ) FROM tab0 AS cor0 WHERE NULL >= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL + + COUNT( * ) - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL + + COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 28 - 83 AS col1 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL - 71 - - col2 * - 68 FROM tab0 AS cor0
----
-3267
-6803
-751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5616
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL MIN( col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL MIN ( col2 ) FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5618
SELECT 79 DIV + 28 AS col2, - 46 + - 68 + + COUNT( DISTINCT + + col2 ) FROM tab0 AS cor0
----
2
-111

skipif mysql # not compatible
query II rowsort label-5618
SELECT 79 / + 28 AS col2, - 46 + - 68 + + COUNT ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
2
-111

query I rowsort
SELECT 41 * + col0 * + - col0 * + col1 + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 17 * + 20 AS col1 FROM tab1 AS cor0
----
340
340
340

onlyif mysql # DIV for integer division: 
query I rowsort label-5621
SELECT - - col1 DIV + + col2 col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5621
SELECT - - col1 / + + col2 col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 cor0 WHERE NOT 45 * ( - col0 ) * + col1 + - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 26 <= NULL
----

query I rowsort
SELECT col1 * + col0 * - col0 AS col2 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ALL + 30 AS col0 FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT COUNT( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5626
SELECT COUNT ( - col1 ) FROM tab0
----
3

query I rowsort
SELECT ALL + - col1 * + col0 - - col2 + col2 * + col2 AS col1 FROM tab2 WHERE NULL IS NULL
----
-1603
-1794
-3288

query I rowsort
SELECT - - 6 FROM tab2 AS cor0 WHERE NOT - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + + col1 AS col2 FROM tab0 cor0 WHERE NOT - col1 BETWEEN + col1 AND - col1 + + 47
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5631
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5631
SELECT DISTINCT + CAST ( NULL AS REAL ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - MAX( DISTINCT - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5632
SELECT - MAX ( DISTINCT - col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + ( + 2 ) AS col2 FROM tab1 AS cor0
----
2

query II rowsort
SELECT DISTINCT - col1 AS col1, - 20 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT - MIN( - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5636
SELECT - MIN ( - - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT - 77 + - ( + COUNT( * ) ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - 77 + - ( + COUNT ( * ) ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT MAX( - 75 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5638
SELECT MAX ( - 75 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT - + COUNT( * ) * - - 17 AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5639
SELECT - + COUNT ( * ) * - - 17 AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT col2 + 93 + 49 AS col1 FROM tab1 AS cor0
----
201
210
238

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5641
SELECT + - 58 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5641
SELECT + - 58 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + ( - - col0 ) FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + - 36 ) * 6 + + col0 AS col2 FROM tab2 AS cor0
----
-141
-152
-170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 4 * + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT ALL + COUNT( * ) + - 1 + - 84 + - - SUM( - + 59 ) AS col2 FROM tab1, tab2 AS cor0
----
-607

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + COUNT ( * ) + - 1 + - 84 + - - SUM ( - + 59 ) AS col2 FROM tab1, tab2 AS cor0
----
-607

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT DISTINCT CAST( + col0 AS SIGNED ) * CAST( NULL AS SIGNED ) - - - col0 + - + col0 * + 47 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * CAST ( NULL AS INTEGER ) - - - col0 + - + col0 * + 47 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 * - + 16 AS col1 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT - col0 * + - 29 * col2 AS col1 FROM tab1
----
141984
145435
179452

onlyif mysql # DIV for integer division: 
query I rowsort label-5651
SELECT + 41 DIV + col1 AS col2 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-5651
SELECT + 41 / + col1 AS col2 FROM tab1
----
0
2
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT ALL + col1 + - ( - CAST( + ( + col1 ) AS SIGNED ) ) * col2 * - - col2 AS col2 FROM tab2
----
123277
225455
27030

skipif mysql # not compatible
query I rowsort label-5652
SELECT ALL + col1 + - ( - CAST ( + ( + col1 ) AS INTEGER ) ) * col2 * - - col2 AS col2 FROM tab2
----
123277
225455
27030

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - col0 * - 94 BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT + + 37 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-3219
-3589
-555

query I rowsort
SELECT DISTINCT + 98 * - 17 AS col1 FROM tab0 AS cor0
----
-1666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT 92 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT 92 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 35 ) * + 6 FROM tab2 cor0
----
-210

query I rowsort
SELECT DISTINCT + col0 * - + 69 AS col1 FROM tab2 AS cor0
----
-3174
-4416
-5175

query II rowsort
SELECT DISTINCT - - 55 + col0, col2 FROM tab0 AS cor0
----
142
10
152
99
70
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT DISTINCT - 43 * + - CAST( NULL AS SIGNED ) + + + ( + 94 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT - 43 * + - CAST ( NULL AS INTEGER ) + + + ( + 94 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT - SUM( DISTINCT - 4 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5662
SELECT - SUM ( DISTINCT - 4 ) FROM tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + ( 52 ) * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= 59
----

query I rowsort
SELECT - 93 AS col1 FROM tab2 cor0
----
-93
-93
-93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * + - col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT col1, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT ALL col2 DIV + - col1 * + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL col2 / + - col1 * + col1 FROM tab0
----
-99
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( 83 ) >= ( 24 )
----

query I rowsort
SELECT DISTINCT + col0 * - - 35 FROM tab1
----
1785
2975
3185

query II rowsort
SELECT 54, col1 * - 7 AS col1 FROM tab2
----
54
-357
54
-469
54
-539

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE col2 <> + - col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT DISTINCT ( + MIN( ALL - - col2 ) ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT ( + MIN ( ALL - - col2 ) ) AS col1 FROM tab2 cor0
----
23

query II rowsort
SELECT ALL 61 AS col0, - col0 FROM tab1 AS cor0
----
61
-51
61
-85
61
-91

query I rowsort
SELECT 99 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0, + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + + 83 FROM tab0 AS cor0
----
130
182
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5679
SELECT + MAX( DISTINCT - + 94 ) + - 81 DIV - 74 AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5679
SELECT + MAX ( DISTINCT - + 94 ) + - 81 / - 74 AS col0 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT - col1 / - col1 * + CAST( NULL AS SIGNED ) + - 72 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT - col1 / - col1 * + CAST ( NULL AS INTEGER ) + - 72 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + + col1 AS col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5682
SELECT ALL MAX( ALL + - 77 ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL MAX ( ALL + - 77 ) / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5683
SELECT DISTINCT - COUNT( * ), - COUNT( * ) DIV - - 10 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND - ( - col1 ) * col1
----
0
0

skipif mysql # not compatible
query II rowsort label-5683
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) / - - 10 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col0 AND - ( - col1 ) * col1
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT DISTINCT - - ( - 83 ) + - + col0 + 18 DIV - col0 * 68 AS col0 FROM tab2 AS cor0
----
-129
-147
-158

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT - - ( - 83 ) + - + col0 + 18 / - col0 * 68 AS col0 FROM tab2 AS cor0
----
-129
-147
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT ALL COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 57, + col1 col2 FROM tab0
----
-57
1
-57
21
-57
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT - 17 - + + COUNT( * ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5687
SELECT - 17 - + + COUNT ( * ) FROM tab1
----
-20

query II rowsort
SELECT DISTINCT 47 AS col1, col0 AS col2 FROM tab0
----
47
15
47
87
47
97

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0 * - 69, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT DISTINCT + CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5690
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL IN ( - - col2 + - 40 / - col0 * + - col1, + col2, - 3 / + 97 + + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / - 56 ) )
----

skipif mysql # not compatible
query I rowsort label-5691
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL IN ( - - col2 + - 40 / - col0 * + - col1, + col2, - 3 / + 97 + + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 56 ) )
----

query I rowsort
SELECT DISTINCT col0 + - - col2 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5693
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - + ( + - 96 ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - ( - + col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * - col2 AS col2, + col1 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT - ( 41 ) FROM tab2 AS cor0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5699
SELECT ALL MIN( + 60 ) DIV + COUNT( * ) - + - COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL MIN ( + 60 ) / + COUNT ( * ) - + - COUNT ( * ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT + col0 * - col2 * - 31 FROM tab1 AS cor0
----
151776
155465
191828

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT - MAX( 37 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37

skipif mysql # not compatible
query I rowsort label-5701
SELECT - MAX ( 37 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37

query I rowsort
SELECT ALL - 52 AS col1 FROM tab2 cor0
----
-52
-52
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= 63
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - 51 <> - + col0
----

query I rowsort
SELECT - 37 * 82 AS col0 FROM tab2
----
-3034
-3034
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL - SUM( ALL + 69 ) col0 FROM tab1
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5706
SELECT ALL - SUM ( ALL + 69 ) col0 FROM tab1
----
-207

query I rowsort
SELECT DISTINCT + col2 + 24 FROM tab2 WHERE NOT NULL IN ( - - col2, + col1 * + 10 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 93 / + - 43 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT ALL COUNT( ALL - - col2 ) DIV 72 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL COUNT ( ALL - - col2 ) / 72 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT DISTINCT COUNT( * ) DIV - 29 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5710
SELECT DISTINCT COUNT ( * ) / - 29 col0 FROM tab1
----
0

query I rowsort
SELECT - - ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE - 3 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT 40 + + COUNT( * ) col2 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5713
SELECT 40 + + COUNT ( * ) col2 FROM tab0
----
43

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) > - col2 * - col2
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ( + AVG ( - + col0 ) ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5715
SELECT ( + AVG ( - + col0 ) ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, + 25 col0 FROM tab1 AS cor0
----
51
25
85
25
91
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 * - col2 IS NULL
----

query I rowsort
SELECT + + col1 + + - col1 * - + col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-5719
SELECT DISTINCT - + col0 * + + 30 + + 0 DIV + - 49 * - 92 AS col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT - + col0 * + + 30 + + 0 / + - 49 * - 92 AS col0 FROM tab1 AS cor0
----
-1530
-2550
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT CAST( - + col1 AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5720
SELECT CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 55 NOT IN ( - + col1 / col0, + col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL SUM( + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL SUM ( + col0 ) AS col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5725
SELECT CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - ( - col0 ) FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab1 AS cor0 WHERE NOT + 74 IS NULL AND ( NULL ) IS NULL
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 - + ( - 45 ) + - + col2 * + col0 col0 FROM tab0 WHERE NOT ( - col0 + col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT - 8 * + ( MIN( DISTINCT ( + 45 ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-360

skipif mysql # not compatible
query I rowsort label-5730
SELECT - 8 * + ( MIN ( DISTINCT ( + 45 ) ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-360

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT ALL - col0 * + - col2 * 56 * + 94 + + col2 AS col0 FROM tab1 AS cor0
----
25772640
26399019
32573700

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT ALL - + 50 AS col1 FROM tab1 cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT ALL CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 * + 82 * - - 14 AS col0 FROM tab2
----
26404
45920
66584

query I rowsort
SELECT DISTINCT - 41 FROM tab0 WHERE NOT col0 IS NULL
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5738
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT + col0 * - + 11 FROM tab0
----
-1067
-165
-957

query I rowsort
SELECT + + 30 * - + col2 + 92 FROM tab2 AS cor0 WHERE NULL <> col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( ( col2 ) ) + - 83 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) > NULL
----

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5744
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 77 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT + MIN( + + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT + MIN ( + + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT ALL + ( + + 54 ) * + col1 + - col0 + - col1 AS col1 FROM tab0 AS cor0 WHERE + col0 NOT IN ( + + col2 )
----
-44
1026
4278

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT col2 - - + col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT + 73 + + col0 * - 97 AS col0 FROM tab2 AS cor0
----
-4389
-6135
-7202

query I rowsort
SELECT col0 - - + 75 FROM tab0
----
162
172
90

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + 75 - - 48 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT ALL + col0 - CAST( - col1 AS SIGNED ) + - - col2 * - - 6 AS col1 FROM tab0
----
168
378
692

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL + col0 - CAST ( - col1 AS INTEGER ) + - - col2 * - - 6 AS col1 FROM tab0
----
168
378
692

query I rowsort
SELECT DISTINCT col0 + + col1 + + - col2 AS col2 FROM tab1
----
-31
31
70

query I rowsort
SELECT col2 + + - col2 + + 18 * col0 * - col0 AS col1 FROM tab1
----
-130050
-149058
-46818

query II rowsort
SELECT ALL col1 AS col2, + col1 * + 54 FROM tab1
----
14
756
47
2538
5
270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5761
SELECT col0 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT col0 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT - MAX( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - MAX ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT COUNT( * ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5763
SELECT COUNT ( * ) col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + 70 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT ALL + SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 56 BETWEEN + col0 AND + col1
----
3

skipif mysql # not compatible
query I rowsort label-5766
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 56 BETWEEN + col0 AND + col1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + ( ( - + 63 ) ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT - col1 * + - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL - CAST( 4 AS SIGNED ) * - col1 FROM tab1
----
188
20
56

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL - CAST ( 4 AS INTEGER ) * - col1 FROM tab1
----
188
20
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5771
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 WHERE NOT - + 56 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5771
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab1 WHERE NOT - + 56 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT DISTINCT ( - + 90 ) DIV + + 50 + + + col0 + + col1 AS col2 FROM tab0
----
107
95
97

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT ( - + 90 ) / + + 50 + + + col0 + + col1 AS col2 FROM tab0
----
107
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT COUNT( * ) + - 47 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-5773
SELECT COUNT ( * ) + - 47 FROM tab1
----
-44

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + - col1 <= 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT ALL + CAST( + + col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

query II rowsort
SELECT + col2 AS col2, ( - + col1 ) FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5777
SELECT ALL 7 + + 72 + - + 46 DIV - col0 FROM tab2 AS cor0
----
79
79
80

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL 7 + + 72 + - + 46 / - col0 FROM tab2 AS cor0
----
79
79
80

query I rowsort
SELECT DISTINCT 54 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT DISTINCT + 49 DIV - 10 + + 45 AS col1 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + 49 / - 10 + + 45 AS col1 FROM tab0
----
41

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * - 95 AS col0, - col1 AS col1 FROM tab1
----
-1330
-14
-4465
-47
-475
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT ALL 89 - col0 DIV - col0 AS col2 FROM tab2
----
90
90
90

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL 89 - col0 / - col0 AS col2 FROM tab2
----
90
90
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT ALL + COUNT( * ) DIV 24 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + COUNT ( * ) / 24 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT + - 68 + - MAX( + + col1 ) FROM tab1 cor0
----
-115

skipif mysql # not compatible
query I rowsort label-5784
SELECT + - 68 + - MAX ( + + col1 ) FROM tab1 cor0
----
-115

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT - 4 IS NOT NULL
----

query I rowsort
SELECT + 57 + - col2 * - 10 * + col2 FROM tab0 AS cor0
----
1057
22147
98067

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL MAX( - 73 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL MAX ( - 73 ) FROM tab1 AS cor0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 64 * + col0 FROM tab0 AS cor0
----
-5568
-6208
-960

query I rowsort
SELECT DISTINCT + + 89 * + ( + col2 ) FROM tab2 cor0
----
2047
3560
5162

query I rowsort
SELECT ALL + - col2 + + ( + + col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT DISTINCT + COUNT( DISTINCT + 74 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT + COUNT ( DISTINCT + 74 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT + 54 * + - col1 AS col1 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT + 95 AS col1 FROM tab1
----
95
95
95

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5797
SELECT - 51 AS col0, COUNT( - + col1 ) FROM tab2
----
-51
3

skipif mysql # not compatible
query II rowsort label-5797
SELECT - 51 AS col0, COUNT ( - + col1 ) FROM tab2
----
-51
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT ALL + COUNT( * ) AS col0, 5 AS col2 FROM tab0
----
3
5

skipif mysql # not compatible
query II rowsort label-5799
SELECT ALL + COUNT ( * ) AS col0, 5 AS col2 FROM tab0
----
3
5

query I rowsort
SELECT DISTINCT + 79 * + 42 FROM tab2
----
3318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ALL - 46 DIV - COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - 46 / - COUNT ( * ) FROM tab2
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL - MIN( DISTINCT - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - MIN ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE NOT + col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + col2 col0 FROM tab2
----
-12167
-195112
-64000

query II rowsort
SELECT + 61 * - col0 * col0 * - col2 AS col0, - col0 FROM tab2
----
19901250
-75
2968748
-46
9994240
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5808
SELECT ALL MIN( CAST( - - col0 AS SIGNED ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL MIN ( CAST ( - - col0 AS INTEGER ) ) FROM tab2
----
46

query II rowsort
SELECT DISTINCT col1, + 5 + - - 86 AS col2 FROM tab0
----
1
91
21
91
81
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT + col1 / - CAST( NULL AS SIGNED ) * - + col1 * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT + col1 / - CAST ( NULL AS INTEGER ) * - + col1 * + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 30 AS col1 FROM tab2 cor0
----
-30

query II rowsort
SELECT ALL + col0, - 93 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
-93
87
-93
97
-93

query I rowsort
SELECT ALL + 82 + + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
2428
5010
5107

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 8 IS NOT NULL
----

query II rowsort
SELECT ( - + col1 ) AS col2, col1 + + - col1 + + 86 + col2 FROM tab0
----
-1
185
-21
96
-81
133

query I rowsort
SELECT + col2 * col1 * + 94 * + 39 AS col0 FROM tab0
----
13956462
362934
769860

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT ALL + SUM( + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL + SUM ( + col0 ) AS col1 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + 58 * + 45 * - - ( COUNT( * ) ) AS col2 FROM tab1
----
7830

skipif mysql # not compatible
query I rowsort label-5819
SELECT + 58 * + 45 * - - ( COUNT ( * ) ) AS col2 FROM tab1
----
7830

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5820
SELECT ALL ( + - 65 ) + + + CAST( COUNT( * ) AS SIGNED ) + - - 45 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL ( + - 65 ) + + + CAST ( COUNT ( * ) AS INTEGER ) + - - 45 FROM tab0
----
-17

query I rowsort
SELECT col0 * - col2 * - - col2 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL - col2 / - col0 + + + col0 + + CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL - col2 / - col0 + + + col0 + + CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5823
SELECT CAST( NULL AS SIGNED ) * 77 + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT CAST ( NULL AS INTEGER ) * 77 + + COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 11 + - col1 * col2 + + 95
----
0

skipif mysql # not compatible
query I rowsort label-5825
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 11 + - col1 * col2 + + 95
----
0

query I rowsort
SELECT ALL + col1 - - - 66 AS col1 FROM tab2 AS cor0
----
-15
1
11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT + 26 - + - COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-5828
SELECT + 26 - + - COUNT ( * ) FROM tab1 AS cor0
----
29

query II rowsort
SELECT + 37, col2 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + + 6 AS col2 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - + SUM( DISTINCT col1 ) - + + MIN( - + col2 ) FROM tab2 AS cor0
----
-137

skipif mysql # not compatible
query I rowsort label-5831
SELECT - + SUM ( DISTINCT col1 ) - + + MIN ( - + col2 ) FROM tab2 AS cor0
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT col2 - - ( + + col1 ) DIV + 39 AS col0 FROM tab0 AS cor0
----
10
49
99

skipif mysql # not compatible
query I rowsort label-5832
SELECT col2 - - ( + + col1 ) / + 39 AS col0 FROM tab0 AS cor0
----
10
49
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5833
SELECT ALL + col1 + - + CAST( - 32 AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
24
37
45

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL + col1 + - + CAST ( - 32 AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
24
37
45

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE - 45 NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 45 AS col2 FROM tab1 WHERE NOT ( - 12 ) * col0 / - - col2 - - col0 > ( - col1 )
----

query I rowsort
SELECT DISTINCT 17 * - - 38 * col0 AS col2 FROM tab1
----
32946
54910
58786

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT ALL ( + COUNT( * ) ) DIV 20 DIV + 13 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL ( + COUNT ( * ) ) / 20 / + 13 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5839
SELECT DISTINCT 5 DIV - MAX( ALL col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5839
SELECT DISTINCT 5 / - MAX ( ALL col2 ) FROM tab0
----
0

query I rowsort
SELECT + ( + col1 ) * col1 * - col1 + - - col1 FROM tab1 AS cor0 WHERE NOT 14 < - + col1
----
-103776
-120
-2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT DISTINCT + CAST( + - 19 AS SIGNED ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + CAST ( + - 19 AS INTEGER ) FROM tab2 AS cor0
----
-19

query I rowsort
SELECT + + ( - col1 ) * + col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT col2 DIV + 20 FROM tab1 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-5845
SELECT col2 / + 20 FROM tab1 AS cor0
----
2
3
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT + col2 DIV + ( + col2 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + col2 / + ( + col2 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 79 col2 FROM tab2 cor0
----
1817
3160
4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT ALL - CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 cor0 WHERE - 87 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 cor0 WHERE - 87 + + col1 IS NULL
----

query II rowsort
SELECT DISTINCT + + col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT - ( - 57 ) + + - col1 - col0 + col0 FROM tab2 AS cor0
----
-10
-20
6

query I rowsort
SELECT ALL + - col2 + col0 * + ( 22 ) FROM tab1 AS cor0
----
1026
1811
1934

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> + col1 + + + col2
----

query I rowsort
SELECT ALL - col1 - - + 23 + 40 * col2 + - ( - - 32 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 BETWEEN 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT + COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5855
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - + col2 AND + col0 + col0
----

query I rowsort
SELECT - 77 + + col2 FROM tab0
----
-30
-67
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5858
SELECT DISTINCT + col0 col0, 93 * col0 + col1 + - CAST( NULL AS SIGNED ) * - col2 * 60 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5858
SELECT DISTINCT + col0 col0, 93 * col0 + col1 + - CAST ( NULL AS INTEGER ) * - col2 * 60 AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 * 50 BETWEEN - ( + col2 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT MAX( DISTINCT + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5860
SELECT MAX ( DISTINCT + col0 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT + 75 * + - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5861
SELECT + 75 * + - COUNT ( * ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL - 73 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL - 73 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - 19 + + col2 + - + col2 * - 42 AS col0 FROM tab0 AS cor0
----
2002
411
4238

query II rowsort
SELECT 91, + col2 AS col0 FROM tab2 cor0
----
91
23
91
40
91
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5866
SELECT + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5866
SELECT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT MAX( ( + col2 ) ) + - CAST( 73 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT MAX ( ( + col2 ) ) + - CAST ( 73 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 cor0 WHERE 78 - - 12 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 73 <> + 99 + + col0 + + col1 * + 26
----

query I rowsort
SELECT 21 + ( - col2 ) AS col1 FROM tab1
----
-38
-47
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + 89 + - COUNT( ALL - col0 ) FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 89 + - COUNT ( ALL - col0 ) FROM tab0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - COUNT( * ) + - 37 * - - 16 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-595

skipif mysql # not compatible
query I rowsort label-5872
SELECT - COUNT ( * ) + - 37 * - - 16 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-595

query I rowsort
SELECT ALL + 18 AS col1 FROM tab0 cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL - COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5874
SELECT ALL - COUNT ( * ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT + - ( ( col0 ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ( - - col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 52 * + + col1 FROM tab0
----
-1092
-4212
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT DISTINCT col2 * - col2 DIV + + col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT col2 * - col2 / + + col2 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT col0 AS col2, col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( NOT ( NULL ) <> col1 * - 87 + - 65 - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( - 67 IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5882
SELECT ALL COUNT( * ) DIV 87 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL COUNT ( * ) / 87 AS col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - col0, - 7 * + + col0 AS col2 FROM tab0 AS cor0
----
-15
-105
-87
-609
-97
-679

query II rowsort
SELECT DISTINCT - col2, ( - + 67 ) + + 15 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT - 40 AS col1, 21 FROM tab2 AS cor0
----
-40
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT + SUM( ALL - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5886
SELECT + SUM ( ALL - col0 ) AS col2 FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5888
SELECT 79 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5888
SELECT 79 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL 20 * COUNT( + col1 ) FROM tab1 WHERE 14 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL 20 * COUNT ( + col1 ) FROM tab1 WHERE 14 IS NOT NULL
----
60

query I rowsort
SELECT 4 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + col2
----

query I rowsort
SELECT - 63 * col2 FROM tab1
----
-3717
-4284
-6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 + 83 col1 FROM tab2
----
108

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 85 / - col2 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5895
SELECT + CAST( NULL AS SIGNED ) + - col0 * - ( + col0 * ( + 53 * col2 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5895
SELECT + CAST ( NULL AS INTEGER ) + - col0 * - ( + col0 * ( + 53 * col2 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * 70 AS col2 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT 78 AS col0 FROM tab0 WHERE NOT ( NULL ) = - 29
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL - 12 FROM tab1 WHERE NOT + col1 + col1 IN ( - CAST( col2 AS SIGNED ) - col1 )
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-5900
SELECT ALL - 12 FROM tab1 WHERE NOT + col1 + col1 IN ( - CAST ( col2 AS INTEGER ) - col1 )
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL - 91 * + COUNT( * ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - 91 * + COUNT ( * ) AS col1 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT 87 DIV - col1 FROM tab0
----
-1
-4
-87

skipif mysql # not compatible
query I rowsort label-5903
SELECT 87 / - col1 FROM tab0
----
-1
-4
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT COUNT( DISTINCT col1 ) FROM tab0 WHERE NULL BETWEEN - 50 AND col2 - + col2
----
0

skipif mysql # not compatible
query I rowsort label-5904
SELECT COUNT ( DISTINCT col1 ) FROM tab0 WHERE NULL BETWEEN - 50 AND col2 - + col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * 32 FROM tab2 WHERE - 32 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * 32 FROM tab2 WHERE - 32 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 10 - col2 col0 FROM tab0
----
-1069
-197
-880

query I rowsort
SELECT col2 * - ( 78 ) FROM tab1
----
-4602
-5304
-7488

query I rowsort
SELECT DISTINCT col1 * + col2 + col0 FROM tab2
----
1219
3144
3961

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - ( - col1 ) ) BETWEEN NULL AND + col2 * + 44
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 95 NOT BETWEEN NULL AND ( - 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT 29 * col1 + + 54 AS col1 FROM tab1 AS cor0
----
1417
199
460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5913
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> ( + CAST( col1 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-5913
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> ( + CAST ( col1 AS INTEGER ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT - SUM( DISTINCT - 64 ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT - SUM ( DISTINCT - 64 ) FROM tab2 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - 17 * COUNT( * ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5916
SELECT - 17 * COUNT ( * ) col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT SUM( ALL 73 ) AS col1 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-5917
SELECT SUM ( ALL 73 ) AS col1 FROM tab2
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5918
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE ( - col2 * - col2 + 66 ) BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col2 * 26 AS col1 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT - COUNT( * ) * + 82 AS col0 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5921
SELECT - COUNT ( * ) * + 82 AS col0 FROM tab0 AS cor0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5922
SELECT COUNT( ALL CAST( + 59 AS DECIMAL ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5922
SELECT COUNT ( ALL CAST ( + 59 AS REAL ) ) FROM tab2
----
3

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL BETWEEN col0 * - col1 AND NULL
----

query I rowsort
SELECT ALL col2 * - col1 FROM tab0 WHERE NOT ( + 65 ) <> col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT DISTINCT 9 * + MIN( + 23 ) + COUNT( * ) AS col1 FROM tab2 WHERE ( + CAST( - col1 AS SIGNED ) ) NOT BETWEEN + 88 AND + col0
----
210

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT 9 * + MIN ( + 23 ) + COUNT ( * ) AS col1 FROM tab2 WHERE ( + CAST ( - col1 AS INTEGER ) ) NOT BETWEEN + 88 AND + col0
----
210

query I rowsort
SELECT DISTINCT + ( - ( 18 ) ) FROM tab0 WHERE NOT col2 >= ( col0 )
----
-18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT + MAX( DISTINCT - - col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5928
SELECT + MAX ( DISTINCT - - col2 ) col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT MIN( - 6 ) + 36 FROM tab2 WHERE NOT - col2 IN ( col1 )
----
30

skipif mysql # not compatible
query I rowsort label-5929
SELECT MIN ( - 6 ) + 36 FROM tab2 WHERE NOT - col2 IN ( col1 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL MIN( col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT DISTINCT + col2 DIV col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + col2 / col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
21
54
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT - col0 / 95 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 51 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 BETWEEN NULL AND ( + col1 + - 15 * col1 )
----
15
81
47
87
21
10

query II rowsort
SELECT DISTINCT - + col2 AS col0, + col0 * col1 FROM tab0 AS cor0
----
-10
1827
-47
1215
-99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT ALL - + col0 DIV - col2 + + 58 AS col0 FROM tab2 AS cor0
----
59
59
60

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - + col0 / - col2 + + 58 AS col0 FROM tab2 AS cor0
----
59
59
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT - COUNT( * ) + + 87 AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5939
SELECT - COUNT ( * ) + + 87 AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT - 80 FROM tab0 AS cor0 WHERE ( - 8 ) <> - ( col0 )
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - COUNT( * ) + + - ( SUM( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5941
SELECT - COUNT ( * ) + + - ( SUM ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
192

query II rowsort
SELECT ALL + - col0, col0 * - col1 AS col1 FROM tab2 AS cor0
----
-46
-2346
-64
-4928
-75
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5943
SELECT + CAST( - - ( + SUM( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) + 40 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT + CAST ( - - ( + SUM ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) + 40 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - 55 FROM tab0 AS cor0 WHERE NULL < ( + 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 * + 18 col0 FROM tab1 AS cor0
----
990

query I rowsort
SELECT ALL - col2 * + 71 + - col2 AS col1 FROM tab2
----
-1656
-2880
-4176

query I rowsort
SELECT - col2 * 31 AS col2 FROM tab0 WHERE + 85 * - + col0 + 57 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - - 1 + col1 + col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * col2 + - - col2 FROM tab1
----
4992
5074
6256

query II rowsort
SELECT - col2 * - + 53, col0 * col2 AS col0 FROM tab1
----
3127
5015
3604
6188
5088
4896

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 1 NOT BETWEEN ( - col0 ) AND 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5953
SELECT - CAST( COUNT( * ) AS SIGNED ) FROM tab0 WHERE + col1 / - 16 + - 15 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5953
SELECT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 WHERE + col1 / - 16 + - 15 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT col1 * + - col2 + + col1 + + col1 AS col1 FROM tab0
----
-168
-3645
-97

query I rowsort
SELECT ALL 14 * col0 * + col0 - + col0 * 69 FROM tab2
----
26450
52928
73575

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 75 * + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-367200
-376125
-464100

query I rowsort
SELECT DISTINCT + + col2 + + col0 * - col0 + - 56 FROM tab1 cor0
----
-2561
-7222
-8269

query I rowsort
SELECT DISTINCT + 91 + col1 AS col0 FROM tab1 cor0
----
105
138
96

query I rowsort
SELECT ALL ( + col1 ) FROM tab0 WHERE NULL BETWEEN ( col0 ) AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - MIN( DISTINCT - - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-5961
SELECT - MIN ( DISTINCT - - col2 ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5962
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5962
SELECT ALL * FROM tab0 WHERE col0 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5963
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - + CAST( NULL AS SIGNED ) * - col0 NOT IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-5963
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - + CAST ( NULL AS INTEGER ) * - col0 NOT IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col2 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 * + 54 * col0 AS col1, - 96 AS col1 FROM tab1 AS cor0
----
22950
-96
230958
-96
38556
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT MAX( col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT DISTINCT + + ( + + COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5969
SELECT DISTINCT + + ( + + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col2 * col2 BETWEEN col1 * 23 AND - col1 + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( 71 ) = col0 * 43 * col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 0, + col2 + + ( - + col2 ) FROM tab0
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) * - SUM( + 48 ) col1 FROM tab0 WHERE NOT - - 68 >= + + col1
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5973
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) * - SUM ( + 48 ) col1 FROM tab0 WHERE NOT - - 68 >= + + col1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( DISTINCT 65 ) col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

query II rowsort
SELECT - col0 AS col0, + 99 FROM tab1
----
-51
99
-85
99
-91
99

query I rowsort
SELECT 98 * + col1 * + col0 * - col0 AS col1 FROM tab0
----
-15577002
-1786050
-922082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5977
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) * + + ( CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5977
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + + ( CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT - + 32 + col2 FROM tab2 AS cor0
----
-9
26
8

onlyif mysql # DIV for integer division: 
query II rowsort label-5981
SELECT col2 + + col0 col0, + col1 + + col0 + - ( - ( col0 ) ) DIV 81 AS col0 FROM tab1
----
144
91
147
65
159
139

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5981
SELECT col2 + + col0 col0, + col1 + + col0 + - ( - ( col0 ) ) / 81 AS col0 FROM tab1
----
144
91
147
65
159
139

query I rowsort
SELECT col0 * - - col1 + - 98 * + + col2 FROM tab0
----
-3391
-9605
847

query II rowsort
SELECT 87 + - + 45, col2 AS col2 FROM tab2
----
42
23
42
40
42
58

query III rowsort
SELECT ALL * FROM tab1 WHERE + 57 > + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( - 90 ) IS NULL
----

query I rowsort
SELECT + - 69 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 * - col0 BETWEEN col2 AND + 3 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 84 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT - SUM( + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT - SUM ( + col2 ) FROM tab1 AS cor0
----
-223

query II rowsort
SELECT 36 * col1 AS col0, + col0 * - col2 AS col1 FROM tab0 AS cor0
----
2916
-705
36
-9603
756
-870

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) <= col2 / + col0 / + - col2 / col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + + - col1 + - - col0, + col2 * + - col0 )
----

skipif mysql # not compatible
query III rowsort label-5992
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + + - col1 + - - col0, + col2 * + - col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - ( - - col1 ) AS col0 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT DISTINCT - 18 + - - MIN( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT - 18 + - - MIN ( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-114

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT + col1 - col1 + + 60 + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-25
-31
9

skipif mysql # not compatible
query I rowsort label-5996
SELECT + col1 - col1 + + 60 + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-25
-31
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 17 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5998
SELECT + col2 - - + 9 DIV + 31 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5998
SELECT + col2 - - + 9 / + 31 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT + 28 - + 76 * + ( + col0 ) FROM tab0
----
-1112
-6584
-7344

query I rowsort
SELECT ALL + 62 + 21 + + - col2 FROM tab0
----
-16
36
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6001
SELECT DISTINCT col2 * - - ( col2 ) * + col0 * - + col0 * - + ( + - CAST( + 22 AS SIGNED ) ) + col0 * col0 AS col1 FROM tab2
----
-144175104
-24623892
-416289375

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT col2 * - - ( col2 ) * + col0 * - + col0 * - + ( + - CAST ( + 22 AS INTEGER ) ) + col0 * col0 AS col1 FROM tab2
----
-144175104
-24623892
-416289375

query I rowsort
SELECT ALL - col2 * - + col2 * col0 * col2 FROM tab2
----
14633400
4096000
559682

onlyif mysql # DIV for integer division: 
query I rowsort label-6003
SELECT + - 4 DIV - ( 85 ) - + - ( - - 11 ) * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1090
-131
-598

skipif mysql # not compatible
query I rowsort label-6003
SELECT + - 4 / - ( 85 ) - + - ( - - 11 ) * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-1090
-131
-598

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE - 7 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 57 ) col0 FROM tab1
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL - 83 * - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL - 83 * - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
249

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + 72 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT DISTINCT + MIN( DISTINCT - col1 ) DIV 90 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT + MIN ( DISTINCT - col1 ) / 90 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6009
SELECT MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col1 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 42 ) FROM tab2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT ALL - SUM( - + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL - SUM ( - + col2 ) FROM tab2
----
121

query II rowsort
SELECT - 20 AS col1, 91 AS col0 FROM tab1 AS cor0
----
-20
91
-20
91
-20
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - + col0 ) IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col0 * - + col2 AS col0 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 23 + - col0 + + - 65 FROM tab2 AS cor0
----
-134
-152
-163

query I rowsort
SELECT ALL - 10 + + col1 + - + 78 AS col2 FROM tab1 AS cor0
----
-41
-74
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6020
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT - + col0 + - 37 + + col1 * - col2 + col1 FROM tab2 AS cor0
----
-1205
-3104
-3931

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL AND ( 70 ) IS NOT NULL
----

query I rowsort
SELECT + - ( - 81 ) + + col0 AS col1 FROM tab2 AS cor0
----
127
145
156

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 25 * + col1 FROM tab1 AS cor0
----
1175
125
350

query I rowsort
SELECT ALL - 11 * col1 + 3 + + + 48 FROM tab0 AS cor0
----
-180
-840
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT DISTINCT - + 17 * - 99 + - - COUNT( + - col0 ) AS col2 FROM tab2 AS cor0
----
1686

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT - + 17 * - 99 + - - COUNT ( + - col0 ) AS col2 FROM tab2 AS cor0
----
1686

query I rowsort
SELECT 90 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT DISTINCT - 7 - + COUNT( * ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT - 7 - + COUNT ( * ) FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 * 67 + + ( + 66 ) + col1 col0, + ( - - 34 ) + + + 66 + - ( col1 ) FROM tab0
----
4824
99
4844
79
4904
19

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6031
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + + col1, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-6031
SELECT DISTINCT CAST ( NULL AS REAL ) + + + col1, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT col2 - - 22 * - col1 AS col1 FROM tab2
----
-1099
-1416
-1654

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 93 * + 44 > 50 * + - 61 * ( + 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col0 * - 63, + 0 FROM tab1 WHERE col1 < NULL
----

query II rowsort
SELECT + col2 - - - col0, + col0 FROM tab1
----
-23
91
-26
85
45
51

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 40 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT ALL + 0 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL + 0 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT COUNT( * ) * + 44 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-6038
SELECT COUNT ( * ) * + 44 FROM tab1 AS cor0
----
132

query I rowsort
SELECT ALL - col1 * 27 AS col0 FROM tab1 AS cor0
----
-1269
-135
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT ALL - - COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL - - COUNT ( * ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - - 28 ) col0 FROM tab1 cor0
----
-28

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT - col0 AS col2, 99 AS col0 FROM tab1 cor0 WHERE NOT + 21 + + + 5 NOT IN ( col1, + col2 )
----

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab0 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT - + MIN( + col2 ) col1 FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6045
SELECT - + MIN ( + col2 ) col1 FROM tab0 AS cor0 WHERE NOT 83 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 75 AS col0 FROM tab1 AS cor0 WHERE 76 + + col0 > - + 24
----
-75

query I rowsort
SELECT DISTINCT + + 5 AS col2 FROM tab0 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - MAX( ALL + col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6048
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL - + ( + - MAX( + 56 ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= 90 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL - + ( + - MAX ( + 56 ) ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= 90 + 34
----
NULL

query I rowsort
SELECT - col1 * - + col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT ALL COUNT( * ) * 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL COUNT ( * ) * 41 FROM tab0
----
123

query I rowsort
SELECT col0 * - + col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - col0 * - + col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + ( + - col1 ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT MIN( + + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6055
SELECT MIN ( + + col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + MAX( ALL + 74 ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-6056
SELECT + MAX ( ALL + 74 ) AS col2 FROM tab2
----
74

query I rowsort
SELECT + + 58 FROM tab0 WHERE + 35 + + col0 + 99 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT ALL - col1 FROM tab2 WHERE 18 * + 68 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL - col1 FROM tab2 WHERE 18 * + 68 * - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT - col2 + ( 46 ) AS col2 FROM tab0
----
-1
-53
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6060
SELECT DISTINCT + col0 + + + CAST( - 99 AS SIGNED ) + - col1 DIV 11 * + 92 FROM tab1
----
-14
-140
-376

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + col0 + + + CAST ( - 99 AS INTEGER ) + - col1 / 11 * + 92 FROM tab1
----
-14
-140
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT - 6 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - 6 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6062
SELECT + + AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT + + AVG ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6063
SELECT col1 DIV - + 25 + 63 FROM tab1 AS cor0
----
62
63
63

skipif mysql # not compatible
query I rowsort label-6063
SELECT col1 / - + 25 + 63 FROM tab1 AS cor0
----
62
63
63

query I rowsort
SELECT ALL - col0 * - col1 * col1 * + col2 FROM tab0 cor0
----
383670
4625505
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6065
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6065
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 5 + 29 FROM tab1 AS cor0 WHERE 85 + - col2 < NULL
----

query I rowsort
SELECT - + 64 - + 4 * + - 30 FROM tab1 cor0
----
56
56
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6068
SELECT CAST( NULL AS DECIMAL ) - - 84 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT CAST ( NULL AS REAL ) - - 84 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - col1 - + col2 col1 FROM tab1 AS cor0
----
-123
-183
-206

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT ALL 87 DIV - 33 - - + 43 + - - 22 FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL 87 / - 33 - - + 43 + - - 22 FROM tab1
----
63
63
63

query I rowsort
SELECT col0 + col2 * + + col1 FROM tab1
----
1395
3287
380

query I rowsort
SELECT 26 AS col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6073
SELECT ALL + col0, 97 * + CAST( 36 AS SIGNED ) + 85 AS col0 FROM tab0 WHERE NULL BETWEEN - CAST( + + col1 AS SIGNED ) * col2 + - 12 AND - 1 + + + col2
----

skipif mysql # not compatible
query II rowsort label-6073
SELECT ALL + col0, 97 * + CAST ( 36 AS INTEGER ) + 85 AS col0 FROM tab0 WHERE NULL BETWEEN - CAST ( + + col1 AS INTEGER ) * col2 + - 12 AND - 1 + + + col2
----

query I rowsort
SELECT ALL col0 * - col1 * - - col2 AS col2 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col2 ) / + col2 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - ( + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6076
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 1 NOT IN ( - 0, + 33 + + 94 + col2 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT COUNT( * ) * - + 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-171

skipif mysql # not compatible
query I rowsort label-6078
SELECT COUNT ( * ) * - + 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6079
SELECT - COUNT( * ), + 54 DIV + 1 AS col0 FROM tab0 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-6079
SELECT - COUNT ( * ), + 54 / + 1 AS col0 FROM tab0 AS cor0
----
-3
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6080
SELECT COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6080
SELECT COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL ( col0 ) AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 + - col1 = NULL
----

query I rowsort
SELECT DISTINCT - - 10 + - 82 FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL <> 56
----

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL <> 56
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL + COUNT( * ) + + + CAST( MIN( + 28 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL + COUNT ( * ) + + + CAST ( MIN ( + 28 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + col1 + + - 57 * + 66 FROM tab1 AS cor0
----
-3715
-3748
-3757

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT ALL 3 * COUNT( * ) DIV 31 + - 46 AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL 3 * COUNT ( * ) / 31 + - 46 AS col0 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT - + col2 > + col2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6091
SELECT CAST( - MAX( DISTINCT col0 ) AS SIGNED ) / 90 FROM tab1 WHERE ( NOT - col0 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT CAST ( - MAX ( DISTINCT col0 ) AS INTEGER ) / 90 FROM tab1 WHERE ( NOT - col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL )
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab2 WHERE NOT - col2 IS NULL
----
2116
4096
5625

query I rowsort
SELECT - 24 * - + col1 FROM tab0
----
1944
24
504

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT + COUNT( * ) FROM tab1 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6094
SELECT + COUNT ( * ) FROM tab1 WHERE + col0 IS NOT NULL
----
3

query I rowsort
SELECT + col0 * + 4 FROM tab1 cor0
----
204
340
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col1 FROM tab0 AS cor0
----
49
49
49

query II rowsort
SELECT DISTINCT - - col2, + 97 + col1 AS col0 FROM tab2 AS cor0
----
23
148
40
174
58
164

query III rowsort
SELECT * FROM tab2 WHERE - col0 / + ( + - ( - col0 ) ) NOT BETWEEN + col1 AND - + 92 / + + 96 + - col0 + + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - - col0 ) + + - 61 * - 50 FROM tab2
----
3096
3114
3125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6100
SELECT DISTINCT CAST( 70 AS SIGNED ), CAST( + - col1 AS SIGNED ) * - 48 + + + col2 AS col0 FROM tab1
----
70
2324
70
299
70
768

skipif mysql # not compatible
query II rowsort label-6100
SELECT DISTINCT CAST ( 70 AS INTEGER ), CAST ( + - col1 AS INTEGER ) * - 48 + + + col2 AS col0 FROM tab1
----
70
2324
70
299
70
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col1 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT 64 + + - COUNT( * ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6102
SELECT 64 + + - COUNT ( * ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6103
SELECT COUNT( * ) DIV - + 9 + - 2 + 70 * - SUM( ALL - col1 ) FROM tab0 AS cor0
----
7208

skipif mysql # not compatible
query I rowsort label-6103
SELECT COUNT ( * ) / - + 9 + - 2 + 70 * - SUM ( ALL - col1 ) FROM tab0 AS cor0
----
7208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - 83 + + - 53
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT ALL + col2 * 94 DIV col0 AS col1 FROM tab0 AS cor0
----
10
294
95

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL + col2 * 94 / col0 AS col1 FROM tab0 AS cor0
----
10
294
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6106
SELECT DISTINCT + 61 + CAST( col1 AS SIGNED ) - 83 + + 44 FROM tab2 cor0
----
73
89
99

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + 61 + CAST ( col1 AS INTEGER ) - 83 + + 44 FROM tab2 cor0
----
73
89
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL - COUNT( * ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3

query II rowsort
SELECT + col0 AS col0, - 75 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL + COUNT( * ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6109
SELECT ALL + COUNT ( * ) col1 FROM tab1
----
3

query I rowsort
SELECT - 96 * + 1 FROM tab0
----
-96
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col0 FROM tab1
----
83
83
83

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + col2 IS NOT NULL
----

query II rowsort
SELECT col0 AS col2, - col2 AS col0 FROM tab1
----
51
-96
85
-59
91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 col1, col2 * - 99 FROM tab1
----
45
-5841
45
-6732
45
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT ALL 67 * - + COUNT( * ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL 67 * - + COUNT ( * ) FROM tab0 AS cor0
----
-201

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 93 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT DISTINCT + 43, + COUNT( * ) * + 39 AS col0 FROM tab0 cor0
----
43
117

skipif mysql # not compatible
query II rowsort label-6117
SELECT DISTINCT + 43, + COUNT ( * ) * + 39 AS col0 FROM tab0 cor0
----
43
117

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT DISTINCT COUNT( * ) col2, 7 * - COUNT( * ) FROM tab2
----
3
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6118
SELECT DISTINCT COUNT ( * ) col2, 7 * - COUNT ( * ) FROM tab2
----
3
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6119
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6119
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6120
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query II rowsort
SELECT - 58, col0 FROM tab1 AS cor0
----
-58
51
-58
85
-58
91

query II rowsort
SELECT ALL - + 31, - 38 AS col2 FROM tab0 AS cor0
----
-31
-38
-31
-38
-31
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL - - 49 * - CAST( NULL AS SIGNED ) * col0 + + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6123
SELECT ALL - - 49 * - CAST ( NULL AS INTEGER ) * col0 + + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 64 AS col0 FROM tab1 AS cor0 WHERE + col2 IN ( - - col0 + col2 )
----

query II rowsort
SELECT col2, + col0 + - - 85 AS col1 FROM tab1 AS cor0
----
59
170
68
176
96
136

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6126
SELECT CAST( NULL AS SIGNED ), 57 AS col0 FROM tab2 cor0
----
NULL
57
NULL
57
NULL
57

skipif mysql # not compatible
query II rowsort label-6126
SELECT CAST ( NULL AS INTEGER ), 57 AS col0 FROM tab2 cor0
----
NULL
57
NULL
57
NULL
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6127
SELECT DISTINCT * FROM tab0 WHERE - col0 <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6127
SELECT DISTINCT * FROM tab0 WHERE - col0 <> CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col1, 1 + + + col0 col2 FROM tab2
----
2601
47
4489
76
5929
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN 85 * + CAST( NULL AS SIGNED ) * + col1 AND - - col0 + + 15 + + col2
----

skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN 85 * + CAST ( NULL AS INTEGER ) * + col1 AND - - col0 + + 15 + + col2
----

query I rowsort
SELECT 20 + 55 + 75 FROM tab2 AS cor0
----
150
150
150

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 - + 87
----

query II rowsort
SELECT - col0 + - - col2, ( + 71 ) AS col1 FROM tab1 AS cor0
----
-23
71
-26
71
45
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6133
SELECT DISTINCT - 65 * + - COUNT( * ) - - 41 AS col1, - 32 FROM tab2
----
236
-32

skipif mysql # not compatible
query II rowsort label-6133
SELECT DISTINCT - 65 * + - COUNT ( * ) - - 41 AS col1, - 32 FROM tab2
----
236
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT SUM( + 63 ) - - 47 FROM tab1
----
236

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT SUM ( + 63 ) - - 47 FROM tab1
----
236

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6135
SELECT ALL + SUM( + col1 ) * - - 22, + COUNT( * ) DIV + MIN( + col0 ) AS col2 FROM tab0
----
2266
0

skipif mysql # not compatible
query II rowsort label-6135
SELECT ALL + SUM ( + col1 ) * - - 22, + COUNT ( * ) / + MIN ( + col0 ) AS col2 FROM tab0
----
2266
0

query II rowsort
SELECT ALL col1 * - col0 * 47, + col1 AS col1 FROM tab2 AS cor0
----
-110262
51
-231616
77
-236175
67

query I rowsort
SELECT + col0 * + col1 * + col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT - - 94 DIV 46 * + - col0 AS col0 FROM tab1 cor0
----
-102
-170
-182

skipif mysql # not compatible
query I rowsort label-6138
SELECT - - 94 / 46 * + - col0 AS col0 FROM tab1 cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL + MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT + MIN( ALL + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-6141
SELECT + MIN ( ALL + col0 ) FROM tab1 cor0
----
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - - 48 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6143
SELECT - 93 DIV - COUNT( * ) + COUNT( * ) * ( + COUNT( DISTINCT 27 ) ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-6143
SELECT - 93 / - COUNT ( * ) + COUNT ( * ) * ( + COUNT ( DISTINCT 27 ) ) FROM tab2 AS cor0
----
34

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 >= + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col2 * - ( 37 ) / - - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT MIN( DISTINCT + 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT MIN ( DISTINCT + 91 ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6147
SELECT ALL - - CAST( + - col0 AS SIGNED ) AS col0, - col1 + + 63 FROM tab1 AS cor0
----
-51
49
-85
58
-91
16

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - - CAST ( + - col0 AS INTEGER ) AS col0, - col1 + + 63 FROM tab1 AS cor0
----
-51
49
-85
58
-91
16

query II rowsort
SELECT DISTINCT + 83 AS col2, - col1 FROM tab2
----
83
-51
83
-67
83
-77

query I rowsort
SELECT - col0 * - 54 FROM tab0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT MIN( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6150
SELECT MIN ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - + ( - 91 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6152
SELECT col2 + - + 84 DIV + 89 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6152
SELECT col2 + - + 84 / + 89 AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col2 + - col1 + ( col2 ) FROM tab0 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT + + col0 + col2 + - col1 AS col2 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT + + col2 + + col2 * 31 AS col0 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT DISTINCT ( + 81 ) + + 37 AS col0 FROM tab1
----
118

query III rowsort
SELECT * FROM tab2 WHERE - 74 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6159
SELECT * FROM tab1 WHERE - - 49 = - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6159
SELECT * FROM tab1 WHERE - - 49 = - + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * col1 col0 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT ALL col2 AS col2, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - - ( + 31 ) <> - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6163
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + + col2 / + CAST( NULL AS SIGNED ) + col1 + col1 = col1 AND NOT 67 + col0 + col0 + - + col1 = col1
----

skipif mysql # not compatible
query III rowsort label-6163
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + + col2 / + CAST ( NULL AS INTEGER ) + col1 + col1 = col1 AND NOT 67 + col0 + col0 + - + col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL 40 * + - MIN( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
-600

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 40 * + - MIN ( DISTINCT col0 ) AS col0 FROM tab0 cor0
----
-600

query III rowsort
SELECT * FROM tab1 WHERE - - col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT ALL col0 + + CAST( ( + ( + 93 ) ) AS SIGNED ) FROM tab0
----
108
180
190

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL col0 + + CAST ( ( + ( + 93 ) ) AS INTEGER ) FROM tab0
----
108
180
190

query I rowsort
SELECT - col0 * + col1 + + col1 FROM tab2 AS cor0 WHERE NOT - 56 IS NULL
----
-2295
-4851
-4958

query I rowsort
SELECT 76 * - col0 AS col0 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT 94 * 39 AS col2 FROM tab1
----
3666
3666
3666

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6172
SELECT DISTINCT - COUNT( * ) AS col1, 12 AS col2 FROM tab2
----
-3
12

skipif mysql # not compatible
query II rowsort label-6172
SELECT DISTINCT - COUNT ( * ) AS col1, 12 AS col2 FROM tab2
----
-3
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT + SUM( ALL + col1 ) + - SUM( col1 ) FROM tab1 WHERE col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT + SUM ( ALL + col1 ) + - SUM ( col1 ) FROM tab1 WHERE col0 >= NULL
----
NULL

query I rowsort
SELECT ( 82 ) * col2 AS col0 FROM tab2
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT COUNT( DISTINCT + + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6175
SELECT COUNT ( DISTINCT + + col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col0, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 37
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 81 IN ( + + col0 + + - col2, + col0, - - col0 / + - 66 - + col1 + col0 * + - col0 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 83 * - col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

query I rowsort
SELECT DISTINCT - col0 + - ( col1 ) + col1 FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT ALL - - 96 + col2 + 54 - - 60 AS col2, + 83 AS col1 FROM tab0 AS cor0
----
220
83
257
83
309
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 col2 FROM tab1 cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6185
SELECT * FROM tab0 AS cor0 WHERE CAST( - 36 AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6185
SELECT * FROM tab0 AS cor0 WHERE CAST ( - 36 AS INTEGER ) * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL - COUNT( * ) + - 76 AS col2 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL - COUNT ( * ) + - 76 AS col2 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT COUNT( * ) - - - COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT COUNT ( * ) - - - COUNT ( * ) col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( 81 ) ) + + col0 + + 91 col0 FROM tab2
----
218
236
247

onlyif mysql # DIV for integer division: 
query II rowsort label-6189
SELECT - col0 DIV - col1 - + col0 AS col0, - col2 AS col2 FROM tab1
----
-48
-96
-68
-59
-90
-68

skipif mysql # not compatible
query II rowsort label-6189
SELECT - col0 / - col1 - + col0 AS col0, - col2 AS col2 FROM tab1
----
-48
-96
-68
-59
-90
-68

query I rowsort
SELECT DISTINCT col2 + + 38 FROM tab2
----
61
78
96

query I rowsort
SELECT 23 + col1 AS col0 FROM tab0
----
104
24
44

query I rowsort
SELECT DISTINCT 95 + - col2 FROM tab0
----
-4
48
85

query I rowsort
SELECT DISTINCT - 65 * - - col1 AS col0 FROM tab2
----
-3315
-4355
-5005

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + - col0 IS NULL
----
138
65
90

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 * + - col0 IS NULL
----
138
65
90

query I rowsort
SELECT + 37 * - col1 AS col0 FROM tab0 AS cor0
----
-2997
-37
-777

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 19 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * + - ( - col1 ) col2 FROM tab2
----
1938
2546
2926

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT + SUM( ALL + + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-6199
SELECT + SUM ( ALL + + col2 ) FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT col0 + - 16 * col0 / - CAST( - ( col1 ) AS SIGNED ) + col1 - - ( - + 78 ) + - ( - col2 ) / + col0 / - - 55 AS col0 FROM tab2 AS cor0 WHERE NOT 68 * + 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6200
SELECT col0 + - 16 * col0 / - CAST ( - ( col1 ) AS INTEGER ) + col1 - - ( - + 78 ) + - ( - col2 ) / + col0 / - - 55 AS col0 FROM tab2 AS cor0 WHERE NOT 68 * + 10 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 18 NOT IN ( - col1, col2, + 7 + - col2, + 78, - + ( + + col0 ) * - + col1, + - 79, 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - - 6 ) AS col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT - 81 * + col2 AS col0 FROM tab0 AS cor0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - + SUM( DISTINCT - + 67 ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - + SUM ( DISTINCT - + 67 ) FROM tab2 AS cor0
----
67

query I rowsort
SELECT + + ( - - 91 ) FROM tab1 AS cor0
----
91
91
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6207
SELECT col1 * - + 15 AS col1, col1 DIV + col0 AS col1 FROM tab0
----
-1215
5
-15
0
-315
0

skipif mysql # not compatible
query II rowsort label-6207
SELECT col1 * - + 15 AS col1, col1 / + col0 AS col1 FROM tab0
----
-1215
5
-15
0
-315
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT COUNT( * ) * + + ( - 82 ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-6208
SELECT COUNT ( * ) * + + ( - 82 ) AS col1 FROM tab1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT - 15 * + COUNT( * ) col2 FROM tab2
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT DISTINCT - 15 * + COUNT ( * ) col2 FROM tab2
----
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN + 82 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT + MAX( DISTINCT + 79 ) col0 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6211
SELECT + MAX ( DISTINCT + 79 ) col0 FROM tab1
----
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + col2, - ( - 99 ) col2 FROM tab2 AS cor0
----
117
99
125
99
74
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT - MIN( - 80 ) DIV + 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-6215
SELECT - MIN ( - 80 ) / + 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

query I rowsort
SELECT DISTINCT - 49 * - 52 AS col1 FROM tab1 WHERE - col0 / + ( col1 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT DISTINCT - COUNT( * ) AS col2, - 59 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
-59

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT - COUNT ( * ) AS col2, - 59 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
-59

query I rowsort
SELECT + 84 * - col2 + - 84 FROM tab2
----
-2016
-3444
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL - MAX( + 9 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - MAX ( + 9 ) FROM tab1
----
-9

query I rowsort
SELECT - col0 + + 72 AS col2 FROM tab0 AS cor0
----
-15
-25
57

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( col2 ) / col2 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + - 89 * - col1 FROM tab2 AS cor0
----
4585
6038
6917

onlyif mysql # aggregate syntax: 
query II rowsort label-6224
SELECT + COUNT( * ) + - + SUM( - - 31 ) col1, - 3 AS col1 FROM tab0 AS cor0
----
-90
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6224
SELECT + COUNT ( * ) + - + SUM ( - - 31 ) col1, - 3 AS col1 FROM tab0 AS cor0
----
-90
-3

query I rowsort
SELECT + col2 + 72 AS col2 FROM tab0 cor0
----
119
171
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT DISTINCT - 53 + - - COUNT( * ) FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6228
SELECT DISTINCT - 53 + - - COUNT ( * ) FROM tab0 cor0
----
-50

query I rowsort
SELECT ALL + col2 * + 21 + col0 AS col0 FROM tab0
----
1002
2176
297

query II rowsort
SELECT DISTINCT 92 + - + col1, + 96 + - 96 AS col1 FROM tab2
----
15
0
25
0
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL - 87 + - COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - 87 + - COUNT ( * ) FROM tab0
----
-90

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab1 WHERE NULL <= - ( - 38 )
----

query I rowsort
SELECT ALL + col0 - - ( + col1 ) FROM tab1
----
138
65
90

query I rowsort
SELECT - ( + - col0 ) AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col2 + - col0 * - + 73 + + 39 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 - - col1 NOT BETWEEN + - 21 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + + col0 AS col0, + col2 col2 FROM tab1 AS cor0
----
-425
59
-4277
68
-714
96

query I rowsort
SELECT + + col1 * - col0 * ( + - col0 ) AS col0 FROM tab1 AS cor0
----
36125
36414
389207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + 40 NOT BETWEEN + 82 AND - + 90
----

query II rowsort
SELECT + 76 AS col0, + ( - - col1 ) AS col2 FROM tab2 cor0
----
76
51
76
67
76
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 21 AS col1 FROM tab2 AS cor0
----
51
21
67
21
77
21

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab2 AS cor0 WHERE - 8 + - col0 <> 82 + + col2
----
-60

query I rowsort
SELECT + - ( - + 41 ) AS col2 FROM tab2 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL + COUNT( * ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6245
SELECT ALL + COUNT ( * ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6247
SELECT ALL + CAST( - + COUNT( * ) AS DECIMAL ) / SUM( DISTINCT + col1 ) * - COUNT( * ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + CAST ( - + COUNT ( * ) AS REAL ) / SUM ( DISTINCT + col1 ) * - COUNT ( * ) * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 * + + col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL - 54 * + 10 AS col0 FROM tab2
----
-540
-540
-540

query I rowsort
SELECT - 10 * col1 FROM tab2
----
-510
-670
-770

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6251
SELECT 83 DIV - + COUNT( * ) AS col1, 44 * 85 AS col0 FROM tab0
----
-27
3740

skipif mysql # not compatible
query II rowsort label-6251
SELECT 83 / - + COUNT ( * ) AS col1, 44 * 85 AS col0 FROM tab0
----
-27
3740

query I rowsort
SELECT DISTINCT + 86 * + col2 FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL MAX( ( - 31 ) ) AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL MAX ( ( - 31 ) ) AS col2 FROM tab2
----
-31

query I rowsort
SELECT + col2 * + - 54 * - col0 FROM tab2
----
138240
234900
57132

query I rowsort
SELECT ALL - col1 * + 11 * - col0 AS col0 FROM tab0
----
1067
13365
20097

query I rowsort
SELECT ALL + 6 AS col1 FROM tab2
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6257
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - col1 + + - 81 FROM tab1 cor0
----
-34
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT + col2 + + CAST( + col0 AS SIGNED ) + 18 - + col0 * + ( + col1 ) FROM tab1 AS cor0
----
-263
-4100
-549

skipif mysql # not compatible
query I rowsort label-6259
SELECT + col2 + + CAST ( + col0 AS INTEGER ) + 18 - + col0 * + ( + col1 ) FROM tab1 AS cor0
----
-263
-4100
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT ALL + 82 + MIN( - col1 ) AS col1 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + 82 + MIN ( - col1 ) AS col1 FROM tab1
----
35

query I rowsort
SELECT + - 65 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 33 col1 FROM tab2 WHERE NOT - col1 - 74 BETWEEN NULL AND - 22
----

query I rowsort
SELECT col1 * - + 53 FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT ALL 29 + col0 AS col2 FROM tab1 AS cor0
----
114
120
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6265
SELECT - SUM( - CAST( NULL AS SIGNED ) ) AS col1, 5 AS col1 FROM tab0 AS cor0
----
NULL
5

skipif mysql # not compatible
query II rowsort label-6265
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1, 5 AS col1 FROM tab0 AS cor0
----
NULL
5

query I rowsort
SELECT DISTINCT - + 65 / AVG ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 14 AND col2
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 69 FROM tab0 AS cor0
----
156
166
84

query I rowsort
SELECT DISTINCT col2 + + 8 * - 68 FROM tab2 AS cor0
----
-486
-504
-521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT - CAST( col1 AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-6269
SELECT - CAST ( col1 AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - col1 - - + 37 FROM tab2 AS cor0
----
-14
-30
-40

query II rowsort
SELECT - - 85 - - col1 AS col0, - col1 FROM tab1 AS cor0
----
132
-47
90
-5
99
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT + col2 + + col1 * 72 * ( - col0 ) * col1 DIV - + col1 FROM tab0
----
131554
7083
87527

skipif mysql # not compatible
query I rowsort label-6272
SELECT + col2 + + col1 * 72 * ( - col0 ) * col1 / - + col1 FROM tab0
----
131554
7083
87527

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL < - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + 74 col0 FROM tab2
----
-120
-138
-149

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6275
SELECT ALL ( + col1 ) * col1 * + 95 - - col1 + + - col1 * - + 33 / CAST( NULL AS DECIMAL ) + col0 + - CAST( + col1 AS SIGNED ) + - col2 * + 69 + 54 AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL ( + col1 ) * col1 * + 95 - - col1 + + - col1 * - + 33 / CAST ( NULL AS REAL ) + col0 + - CAST ( + col1 AS INTEGER ) + - col2 * + 69 + 54 AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT ALL - col0 DIV - col0 + + + 66 FROM tab2
----
67
67
67

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL - col0 / - col0 + + + 66 FROM tab2
----
67
67
67

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + - 83 > NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 - + 98 AS col1 FROM tab1
----
-3579
-4722
-9314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 39 + - col1 FROM tab1
----
51
25
85
34
91
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT - + COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - + COUNT ( * ) FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - 75
----

query I rowsort
SELECT ALL + 73 AS col0 FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6283
SELECT ALL + CAST( - AVG ( 13 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + CAST ( - AVG ( 13 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT ALL col2 FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) * - CAST( + + col0 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL col2 FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) * - CAST ( + + col0 AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT - SUM( - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT - SUM ( - col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6286
SELECT COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT + SUM( ALL + - col2 ) + + 4 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6287
SELECT + SUM ( ALL + - col2 ) + + 4 FROM tab2 AS cor0
----
-117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + 83 ) col0 FROM tab1
----
83

query I rowsort
SELECT + 27 * 22 FROM tab0
----
594
594
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6290
SELECT ALL + CAST( NULL AS SIGNED ) * + 57 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL + CAST ( NULL AS INTEGER ) * + 57 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + COUNT( * ) * - + 22 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-6291
SELECT + COUNT ( * ) * - + 22 FROM tab0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 25 + col2 + + ( - - 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT MIN( ALL + + 7 ) AS col0 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-6293
SELECT MIN ( ALL + + 7 ) AS col0 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL - col1 + 69 FROM tab1 AS cor0
----
22
55
64

query I rowsort
SELECT DISTINCT - - 59 AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6296
SELECT DISTINCT - 2 DIV - 69 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT - 2 / - 69 + + col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6297
SELECT - col1 FROM tab2 WHERE - ( + + 74 ) / CAST( col1 AS DECIMAL ) BETWEEN + + col2 + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6297
SELECT - col1 FROM tab2 WHERE - ( + + 74 ) / CAST ( col1 AS REAL ) BETWEEN + + col2 + col2 AND NULL
----

query II rowsort
SELECT - col2 + 65, 83 AS col0 FROM tab0
----
-34
83
18
83
55
83

query I rowsort
SELECT - 25 + + - col1 FROM tab0 AS cor0
----
-106
-26
-46

query I rowsort
SELECT - - col2 + - 42 + - - col1 FROM tab1 AS cor0
----
22
68
73

query I rowsort
SELECT ALL + 87 * + col2 - - col0 FROM tab2 AS cor0
----
2047
3544
5121

query I rowsort
SELECT ALL - - col0 / - col2 FROM tab1 AS cor0 WHERE NOT col1 + 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6303
SELECT - MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT + - SUM( DISTINCT + + 32 ) FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + - SUM ( DISTINCT + + 32 ) FROM tab0 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT MAX( + 53 ) col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6305
SELECT MAX ( + 53 ) col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT - - col2 AS col2 FROM tab2 WHERE NOT ( NULL < ( - - 80 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT + col1 DIV + col2 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6308
SELECT + col1 / + col2 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col0 FROM tab0
----
1
21
81

query II rowsort
SELECT DISTINCT - 4 * 9 AS col1, col2 * col1 + - col1 AS col1 FROM tab2
----
-36
1122
-36
3003
-36
3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab2
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col2 FROM tab2 AS cor0
----
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 / col0 + + 42 * + col0, + 12 + + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT + - COUNT( - + 32 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT + - COUNT ( - + 32 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6316
SELECT - COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col1 * - col0 IN ( - col1, col2, 58, - - col2, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT ALL - 44 * - COUNT( + col2 ) AS col1 FROM tab0 cor0
----
132

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - 44 * - COUNT ( + col2 ) AS col1 FROM tab0 cor0
----
132

query II rowsort
SELECT col0 AS col1, - 72 AS col1 FROM tab1 AS cor0
----
51
-72
85
-72
91
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, 48 AS col2 FROM tab2 AS cor0
----
51
48
67
48
77
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6322
SELECT ALL + 36 + CAST( 16 AS SIGNED ) + + 52 AS col2 FROM tab1
----
104
104
104

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + 36 + CAST ( 16 AS INTEGER ) + + 52 AS col2 FROM tab1
----
104
104
104

query III rowsort
SELECT * FROM tab2 WHERE - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab1
----
6

query II rowsort
SELECT col1 * + 8 AS col2, + col1 AS col0 FROM tab2
----
408
51
536
67
616
77

query I rowsort
SELECT col1 + ( + col1 ) - + 94 AS col0 FROM tab0
----
-52
-92
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL - COUNT( * ) + + - ( - 63 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - COUNT ( * ) + + - ( - 63 ) FROM tab2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6328
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT COUNT( * ) + - 94 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6329
SELECT COUNT ( * ) + - 94 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT 33 + col1 AS col2 FROM tab1 AS cor0
----
38
47
80

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT ALL + 90 + + + 68 + + + 22 DIV + + 38 AS col0 FROM tab0 AS cor0
----
158
158
158

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + 90 + + + 68 + + + 22 / + + 38 AS col0 FROM tab0 AS cor0
----
158
158
158

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + 36 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 41 * - - col2 + + - col0 AS col1, col2 col0 FROM tab2 WHERE - 89 IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE - col1 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 15 NOT BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 54 col0 FROM tab2 AS cor0
----
-100
-118
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab0 AS cor0
----
73

query I rowsort
SELECT - + 0 - - 62 + + col2 + + col0 * col2 FROM tab1 AS cor0
----
5054
5136
6318

query I rowsort
SELECT + - 5 * 31 - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-201
-219
-230

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6343
SELECT ALL + col2, + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6343
SELECT ALL + col2, + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT - + ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6344
SELECT - + ( COUNT ( * ) ) FROM tab1 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 + - 73 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6346
SELECT ALL col0 col1, CAST( - 68 AS SIGNED ) + - col1 + - ( - col2 ) FROM tab1
----
51
14
85
-14
91
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6346
SELECT ALL col0 col1, CAST ( - 68 AS INTEGER ) + - col1 + - ( - col2 ) FROM tab1
----
51
14
85
-14
91
-47

query I rowsort
SELECT ALL ( + + col2 ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT MIN( + 46 ) col2 FROM tab0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6348
SELECT DISTINCT MIN ( + 46 ) col2 FROM tab0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT 46 DIV COUNT( * ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6349
SELECT 46 / COUNT ( * ) AS col2 FROM tab0
----
15

query I rowsort
SELECT ALL - + 58 AS col0 FROM tab0 WHERE - col1 / - 6 + - col2 - + + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 * + 34 NOT BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT - MIN( DISTINCT - col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT - MIN ( DISTINCT - col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT ALL - 35 AS col1 FROM tab0
----
-35
-35
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT ALL + 94 * + COUNT( - + col2 ) DIV - COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL + 94 * + COUNT ( - + col2 ) / - COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
-94

query II rowsort
SELECT 48 AS col0, + 20 * - - col2 * col0 AS col2 FROM tab2 AS cor0
----
48
21160
48
51200
48
87000

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - - col2 < col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6358
SELECT DISTINCT + + col1 DIV + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + + col1 / + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6359
SELECT DISTINCT + col0, 91 DIV col2 AS col1 FROM tab0 AS cor0
----
15
1
87
9
97
0

skipif mysql # not compatible
query II rowsort label-6359
SELECT DISTINCT + col0, 91 / col2 AS col1 FROM tab0 AS cor0
----
15
1
87
9
97
0

query I rowsort
SELECT ALL + 47 * - col1 FROM tab0
----
-3807
-47
-987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 53 * 49, ( + col1 ) * - col0 col1 FROM tab2
----
2597
-2346
2597
-4928
2597
-5025

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 4 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6363
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + col1 * + 92 / + + ( - col0 ), 61 * - - CAST( col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6363
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + col1 * + 92 / + + ( - col0 ), 61 * - - CAST ( col1 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL - SUM( ALL + - 95 ) col0 FROM tab1
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6364
SELECT ALL - SUM ( ALL + - 95 ) col0 FROM tab1
----
285

query I rowsort
SELECT - 89 * + col2 AS col2 FROM tab0 AS cor0
----
-4183
-8811
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT COUNT( 17 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6366
SELECT COUNT ( 17 ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= col0
----

query I rowsort
SELECT ALL - + col0 + - col0 * + col1 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 + + - 93 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT - 49 + + + SUM( ALL + ( - ( - 28 ) ) ) AS col2 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - 49 + + + SUM ( ALL + ( - ( - 28 ) ) ) AS col2 FROM tab2
----
35

query I rowsort
SELECT ALL 34 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT ALL - col2 FROM tab1 WHERE + col2 + - col2 * + CAST( 81 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - col2 FROM tab1 WHERE + col2 + - col2 * + CAST ( 81 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT DISTINCT 0 + + + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6373
SELECT DISTINCT 0 + + + COUNT ( * ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT DISTINCT - SUM( - - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6374
SELECT DISTINCT - SUM ( - - col2 ) FROM tab1
----
-223

query I rowsort
SELECT - + ( - col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT MIN( - - 46 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-6376
SELECT MIN ( - - 46 ) AS col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT DISTINCT + + 5 + + COUNT( * ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT + + 5 + + COUNT ( * ) FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6379
SELECT DISTINCT - - col0 + + col2 + + col0 DIV - 52 FROM tab1 AS cor0
----
143
147
158

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT - - col0 + + col2 + + col0 / - 52 FROM tab1 AS cor0
----
143
147
158

query I rowsort
SELECT + col1 + - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( col2 + + col2 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE ( 49 / col1 ) IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 23 * 50 ) <> 29 + + col1 * - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT + COUNT( * ) + MIN( DISTINCT + 65 ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + COUNT ( * ) + MIN ( DISTINCT + 65 ) FROM tab1
----
68

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + col1 > col2
----

query I rowsort
SELECT ALL col1 + - ( col1 + + col1 ) AS col0 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + col0 col0 FROM tab2
----
117
135
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT DISTINCT 61 DIV - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT 61 / - col2 FROM tab2
----
-1
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( - col0 ) ) IN ( - col2 )
----

query I rowsort
SELECT ALL - col1 + 71 AS col1 FROM tab1
----
24
57
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT col2 * - CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6391
SELECT col2 * - CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT col0 FROM tab1 WHERE - 48 + + col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT ALL COUNT( * ) col2 FROM tab1 WHERE NOT + col0 * 52 NOT IN ( - 26 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6393
SELECT ALL COUNT ( * ) col2 FROM tab1 WHERE NOT + col0 * 52 NOT IN ( - 26 )
----
0

query I rowsort
SELECT ALL 50 + + col0 FROM tab1
----
101
135
141

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 47 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT + SUM( col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6397
SELECT + SUM ( col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT - 40 + + col1 * col2 FROM tab1
----
1304
255
3156

query I rowsort
SELECT - 74 + - 64 FROM tab2
----
-138
-138
-138

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( col2 * - col2 + - col0 * - col1 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - col2 FROM tab0 WHERE + col1 IS NOT NULL
----
705
870
9603

query III rowsort
SELECT * FROM tab0 WHERE NOT 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + MIN( ALL - ( + col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6405
SELECT + MIN ( ALL - ( + col2 ) ) AS col0 FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 - - col0 * + 9 FROM tab2
----
363
499
608

query I rowsort
SELECT ALL 99 - col0 FROM tab1
----
14
48
8

query I rowsort
SELECT + col0 * ( + col2 * col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 53 ) ) BETWEEN - 17 + + 3 AND + 93
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 98 col2 FROM tab2 AS cor0
----
2254
3920
5684

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6411
SELECT - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT - col0 + - 72 DIV - 64 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-6412
SELECT - col0 + - 72 / - 64 FROM tab2
----
-45
-63
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT ALL - CAST( NULL AS SIGNED ) * 43 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6413
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT + 59 + + col2 DIV col2 AS col2 FROM tab1
----
60
60
60

skipif mysql # not compatible
query I rowsort label-6414
SELECT + 59 + + col2 / col2 AS col2 FROM tab1
----
60
60
60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 25 * + 25 IN ( + 25 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT SUM( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( + 41 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT SUM ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( + 41 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( + 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 71 * 58 IN ( col2 + - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT DISTINCT + MAX( + 89 ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT + MAX ( + 89 ) FROM tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT - + col0 + 56 AS col2 FROM tab0 cor0
----
-31
-41
41

query I rowsort
SELECT DISTINCT + 4 + - col2 AS col0 FROM tab0 cor0
----
-43
-6
-95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 92 NOT IN ( + col2 * col2 + 60 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT - - COUNT( * ) + SUM( col0 ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - - COUNT ( * ) + SUM ( col0 ) FROM tab1 AS cor0
----
230

query I rowsort
SELECT ALL 57 + 69 AS col2 FROM tab1 AS cor0
----
126
126
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL - 4 / + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL - 4 / + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT 88 - - - col1 * + col1 FROM tab2
----
-2513
-4401
-5841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL col1 + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 WHERE 9 IS NOT NULL
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL col1 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 WHERE 9 IS NOT NULL
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6429
SELECT + CAST( NULL AS SIGNED ) * - + 43 * col0 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6429
SELECT + CAST ( NULL AS INTEGER ) * - + 43 * col0 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - + - col2 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE col1 / + 29 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6432
SELECT DISTINCT MIN( ALL + col0 ) DIV 67 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT MIN ( ALL + col0 ) / 67 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - col0 + - ( 37 ) > - col1
----
14
47
5

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = + 95 - + col1 / 18
----

query I rowsort
SELECT - + 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= ( NULL )
----

query II rowsort
SELECT ALL - col1 AS col2, 61 * + col0 FROM tab1 AS cor0
----
-14
3111
-47
5551
-5
5185

query II rowsort
SELECT ALL - col0, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT ALL - 12 * - + 69 AS col1 FROM tab0 AS cor0
----
828
828
828

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + COUNT( * ) * + 31 AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + COUNT ( * ) * + 31 AS col1 FROM tab0 AS cor0
----
93

query II rowsort
SELECT + 31 AS col0, col2 AS col2 FROM tab0 AS cor0
----
31
10
31
47
31
99

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / col2 + + col1 < ( - 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 29 = col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - + col0 AND ( col2 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT ALL - ( - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - ( - COUNT ( * ) ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 / + col2 * 75 + 98 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + 5 AS col2 FROM tab0
----
-235
-495
-50

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + - - col2 <> - col1 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT - COUNT( * ) + SUM( - 74 ) FROM tab2 AS cor0 WHERE - 53 * - + col0 NOT IN ( - 31 )
----
-225

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT - COUNT ( * ) + SUM ( - 74 ) FROM tab2 AS cor0 WHERE - 53 * - + col0 NOT IN ( - 31 )
----
-225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - 73 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + 63
----

query I rowsort
SELECT - + 69 AS col2 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT ALL col2 * + col1 * + 10 * - 33 + + col0 * col1 FROM tab2 AS cor0
----
-1011472
-1277355
-384744

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 47 <> ( + 35 )
----

query I rowsort
SELECT - 69 * col1 AS col0 FROM tab2 AS cor0
----
-3519
-4623
-5313

query III rowsort
SELECT * FROM tab0 WHERE + + col0 NOT IN ( + 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # DIV for integer division: 
query I rowsort label-6459
SELECT 99 DIV + + col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6459
SELECT 99 / + + col2 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6460
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + - col1 BETWEEN col0 * + col2 + + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 7 + + col0 AS col2 FROM tab1 AS cor0
----
44
78
84

query I rowsort
SELECT ALL 19 + + + 97 FROM tab0 AS cor0
----
116
116
116

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * ( + 11 ) IS NULL
----

query I rowsort
SELECT - col2 * 89 FROM tab2
----
-2047
-3560
-5162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0 col0, 41 AS col0, + col2 + 65 FROM tab2
----
9 values hashing to 3e828ff78e6afb08b97e7a989df5041a

query I rowsort
SELECT - col2 + + 73 AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
-23
14
5

query II rowsort
SELECT DISTINCT ( - 5 ) AS col2, - 46 * + ( col1 ) + + + ( + 30 ) AS col0 FROM tab2
----
-5
-2316
-5
-3052
-5
-3512

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6472
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6472
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> ( - 6 )
----

query I rowsort
SELECT ALL - col2 + + - col1 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT DISTINCT - - COUNT( * ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6475
SELECT DISTINCT - - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + - 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 22 * - - col0 BETWEEN NULL AND ( 93 - + col2 * - col1 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query I rowsort
SELECT ALL + 12 + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6480
SELECT + MIN( DISTINCT - + 46 ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-6480
SELECT + MIN ( DISTINCT - + 46 ) FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6481
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT ALL COUNT( ALL + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 * + - 67 FROM tab1 AS cor0
----
3417
5695
6097

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + 27 = + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + col2 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT + col2 IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT CAST( + COUNT( col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6486
SELECT CAST ( + COUNT ( col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT - COUNT( * ) AS col2, 74 FROM tab2
----
-3
74

skipif mysql # not compatible
query II rowsort label-6487
SELECT - COUNT ( * ) AS col2, 74 FROM tab2
----
-3
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 70 * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - 81 col0 FROM tab0 WHERE NOT + + 0 NOT IN ( + 48, + col0, 60, - + col0 )
----

query I rowsort
SELECT - col0 * 73 FROM tab1
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT ALL MIN( ALL - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL MIN ( ALL - col1 ) FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT IN ( - col0 + + - col1, + col1 * - 59, + ( - 20 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT + CAST( col0 AS SIGNED ) + + + ( - 50 ) FROM tab2 AS cor0
----
-4
14
25

skipif mysql # not compatible
query I rowsort label-6494
SELECT + CAST ( col0 AS INTEGER ) + + + ( - 50 ) FROM tab2 AS cor0
----
-4
14
25

query I rowsort
SELECT - ( + + 30 ) + + col1 * - 66 FROM tab1 AS cor0
----
-3132
-360
-954

query I rowsort
SELECT 22 + + ( - - col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 48 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

query II rowsort
SELECT ( + + 76 ), + col2 * - 59 AS col2 FROM tab0 AS cor0
----
76
-2773
76
-5841
76
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT + + 72 * + 90 + COUNT( * ) + - 25 FROM tab0 AS cor0
----
6458

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + + 72 * + 90 + COUNT ( * ) + - 25 FROM tab0 AS cor0
----
6458

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT 78 * + COUNT( * ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT 78 * + COUNT ( * ) FROM tab2 AS cor0
----
234

query I rowsort
SELECT - col0 - ( col2 ) * - 83 AS col0 FROM tab0 AS cor0
----
3886
743
8120

query I rowsort
SELECT - - col0 - 13 FROM tab1 AS cor0
----
38
72
78

query I rowsort
SELECT ALL - col0 + - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * - 92 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 50 - - col1 + col2 * + 38 AS col1, col1 * + col0 FROM tab1 AS cor0
----
2297
425
2681
4277
3712
714

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT ALL 96 DIV + col2 + - 15 FROM tab0
----
-13
-15
-6

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL 96 / + col2 + - 15 FROM tab0
----
-13
-15
-6

query II rowsort
SELECT + 51 - 38 + 30, + 99 + 24 + - 36 AS col1 FROM tab2
----
43
87
43
87
43
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6510
SELECT ALL - col0 + - + col1 * - 86 + - ( - + 23 ) AS col0, 55 * + 88 + - - CAST( NULL AS SIGNED ) + - col0 + - 25 + 4 col0 FROM tab0
----
12
NULL
1742
NULL
6974
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6510
SELECT ALL - col0 + - + col1 * - 86 + - ( - + 23 ) AS col0, 55 * + 88 + - - CAST ( NULL AS INTEGER ) + - col0 + - 25 + 4 col0 FROM tab0
----
12
NULL
1742
NULL
6974
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
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-6511
SELECT ALL COUNT ( * ) + + COUNT ( * ) col2 FROM tab0
----
6

query I rowsort
SELECT - col0 + + + 72 FROM tab1
----
-13
-19
21

query I rowsort
SELECT ALL col0 * + 25 FROM tab0
----
2175
2425
375

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6514
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT - - CAST( - CAST( col2 AS SIGNED ) AS DECIMAL ) IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT - - CAST ( - CAST ( col2 AS INTEGER ) AS REAL ) IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6515
SELECT ALL - + col0 * - col0 DIV + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL - + col0 * - col0 / + + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + - col0 * - ( + 51 ) AS col0 FROM tab1 AS cor0
----
2601
4335
4641

query II rowsort
SELECT ALL 58 * - - 36 + - col0 AS col0, - 59 AS col0 FROM tab0 AS cor0
----
1991
-59
2001
-59
2073
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT + 33 * - + COUNT( col1 ) FROM tab2 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6518
SELECT + 33 * - + COUNT ( col1 ) FROM tab2 cor0
----
-99

query I rowsort
SELECT 59 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 58 < NULL )
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT + ( + + COUNT( DISTINCT col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + ( + + COUNT ( DISTINCT col2 ) ) FROM tab2
----
3

query I rowsort
SELECT 11 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT 95 AS col0, + COUNT( * ) FROM tab0
----
95
3

skipif mysql # not compatible
query II rowsort label-6524
SELECT 95 AS col0, + COUNT ( * ) FROM tab0
----
95
3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT MIN( DISTINCT - ( + 68 ) ) AS col2 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-6526
SELECT MIN ( DISTINCT - ( + 68 ) ) AS col2 FROM tab1 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6527
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) BETWEEN NULL AND - + col1
----

skipif mysql # not compatible
query III rowsort label-6527
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - + col1
----

query II rowsort
SELECT DISTINCT - col1, - 9 AS col0 FROM tab2 cor0
----
-51
-9
-67
-9
-77
-9

query II rowsort
SELECT DISTINCT col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT ALL + CAST( + 16 AS SIGNED ) FROM tab2 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6532
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6532
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - 80 * COUNT( + col0 ) - + COUNT( * ) FROM tab1 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6533
SELECT - 80 * COUNT ( + col0 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-243

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT DISTINCT + 76 AS col2, col0 AS col0 FROM tab2 AS cor0
----
76
46
76
64
76
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - + col2 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6538
SELECT - SUM( - + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6538
SELECT - SUM ( - + col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col1 FROM tab1
----
80

query I rowsort
SELECT - col0 + - ( - + 47 ) * col0 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT COUNT( ( col2 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6542
SELECT COUNT ( ( col2 ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6543
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6545
SELECT SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6546
SELECT CAST( + 88 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-6546
SELECT CAST ( + 88 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT 81 + + 41 AS col0 FROM tab0
----
122
122
122

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 <> - + 82
----

query I rowsort
SELECT + 74 + - col2 FROM tab1 cor0
----
-22
15
6

query I rowsort
SELECT ALL - + 98 * + - 76 FROM tab1 AS cor0
----
7448
7448
7448

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 - + 63 + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 40 NOT BETWEEN + ( - col2 ) / - 18 AND - 40
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 + col1 + - col0 * + + col0 AS col1 FROM tab1
----
-2638
-7305
-8325

query I rowsort
SELECT DISTINCT col2 + + + 27 FROM tab0
----
126
37
74

query I rowsort
SELECT ALL 14 + - col2 AS col0 FROM tab0
----
-33
-85
4

query I rowsort
SELECT 49 - + col2 * - col0 + + col1 FROM tab2
----
1158
2686
4466

query I rowsort
SELECT ALL + 28 - - - col0 FROM tab1
----
-23
-57
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE 76 + - 13 * - 17 * + + col0 * - 63 + - col2 * 60 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT CAST( NULL AS SIGNED ) - 26 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col1 + - ( - 95 ) AND col1
----

skipif mysql # not compatible
query I rowsort label-6562
SELECT CAST ( NULL AS INTEGER ) - 26 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col1 + - ( - 95 ) AND col1
----

query I rowsort
SELECT col1 * - col2 + + + 31 FROM tab0 AS cor0
----
-179
-3776
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT + COUNT( ALL 12 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + COUNT ( ALL 12 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 72 * 20 AS col1 FROM tab0
----
-1440

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 - - col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 53 * + - AVG ( ALL + 73 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT + - col1 AS col1, 12 FROM tab0 AS cor0
----
-1
12
-21
12
-81
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT ALL + COUNT( * ) + + - 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL + COUNT ( * ) + + - 47 FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT ALL + ( - - MAX( + col1 ) ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL + ( - - MAX ( + col1 ) ) FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT ALL 72 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL 72 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, + col0 AS col2 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT col2 + + col0 - - - 98 * col1 * col1 AS col2 FROM tab0
----
-43121
-642916
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT COUNT( * ) + + + 63 AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6574
SELECT COUNT ( * ) + + + 63 AS col1 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 45 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab2 cor0
----
-59
-59
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT DISTINCT - - CAST( COUNT( DISTINCT - 79 ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT - - CAST ( COUNT ( DISTINCT - 79 ) AS INTEGER ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6580
SELECT + col0 / col2 * CAST( NULL AS SIGNED ) / + 78 - + - 67, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6580
SELECT + col0 / col2 * CAST ( NULL AS INTEGER ) / + 78 - + - 67, col1 FROM tab0 cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT + 48 - 66 FROM tab1 cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col2 col1, 58 * 16 + 77 AS col2 FROM tab2 AS cor0
----
0
1005
0
1005
0
1005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL 79 + - 60 * 89 + - col1 + CAST( - - col1 AS SIGNED ) + + col1 col0 FROM tab2
----
-5184
-5194
-5210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6583
SELECT ALL 79 + - 60 * 89 + - col1 + CAST ( - - col1 AS INTEGER ) + + col1 col0 FROM tab2
----
-5184
-5194
-5210

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT MIN( DISTINCT col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6584
SELECT MIN ( DISTINCT col2 ) FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + 75 col2 FROM tab0
----
-1125
-6525
-7275

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 BETWEEN + - col1 AND - col0 * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT DISTINCT - col1 * ( - - col0 ) DIV - 51 AS col2 FROM tab2
----
46
96
98

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - col1 * ( - - col0 ) / - 51 AS col2 FROM tab2
----
46
96
98

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - 61 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
61
-15
61
-87
61
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-6592
SELECT ALL + COUNT( * ) col0, - 12 AS col1 FROM tab2 AS cor0
----
3
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6592
SELECT ALL + COUNT ( * ) col0, - 12 AS col1 FROM tab2 AS cor0
----
3
-12

query II rowsort
SELECT DISTINCT col2 * + 7 AS col0, + col0 + + + 91 AS col1 FROM tab2
----
161
137
280
155
406
166

query I rowsort
SELECT ALL ( col1 ) * - col0 * + + col1 AS col2 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL + col1 + - col0 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) + - - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + col1 + - col0 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) + - - col1 IS NULL
----

query I rowsort
SELECT + ( + - col2 ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT + ( + col2 ) DIV + 87 * - col1 + col0 AS col2 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT + ( + col2 ) / + 87 * - col1 + col0 AS col2 FROM tab0
----
15
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT + + CAST( - 1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6599
SELECT + + CAST ( - 1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6600
SELECT - + CAST( 64 AS SIGNED ), + col0 AS col2 FROM tab1 AS cor0
----
-64
51
-64
85
-64
91

skipif mysql # not compatible
query II rowsort label-6600
SELECT - + CAST ( 64 AS INTEGER ), + col0 AS col2 FROM tab1 AS cor0
----
-64
51
-64
85
-64
91

query II rowsort
SELECT ALL + + ( 85 ) AS col2, col0 + - + col2 FROM tab0 AS cor0
----
85
-2
85
-32
85
77

query I rowsort
SELECT ALL col1 + 13 + 40 FROM tab2 AS cor0
----
104
120
130

query I rowsort
SELECT ( - col1 ) + + 8 FROM tab0 AS cor0
----
-13
-73
7

query I rowsort
SELECT - col1 / - col1 - 31 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT ALL col1 * - - col0 * 34 + + col0 AS col1 FROM tab2
----
167616
170925
79810

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col2 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6607
SELECT ALL SUM( 86 ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6607
SELECT ALL SUM ( 86 ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - 82 * + MAX( DISTINCT - + 74 ) FROM tab2
----
6068

skipif mysql # not compatible
query I rowsort label-6609
SELECT - 82 * + MAX ( DISTINCT - + 74 ) FROM tab2
----
6068

onlyif mysql # DIV for integer division: 
query I rowsort label-6610
SELECT DISTINCT - col1 DIV + + 20 AS col1 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT - col1 / + + 20 AS col1 FROM tab1
----
-2
0

query I rowsort
SELECT ALL ( 18 ) FROM tab0
----
18
18
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6612
SELECT 39 DIV COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6612
SELECT 39 / COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + 39 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-6613
SELECT + 39 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT - COUNT( * ) + COUNT( * ) + + + COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6617
SELECT - COUNT ( * ) + COUNT ( * ) + + + COUNT ( * ) col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6619
SELECT ALL + COUNT( - 64 ) AS col2, - COUNT( * ) - - MAX( DISTINCT - + 34 ) FROM tab1 AS cor0
----
3
-37

skipif mysql # not compatible
query II rowsort label-6619
SELECT ALL + COUNT ( - 64 ) AS col2, - COUNT ( * ) - - MAX ( DISTINCT - + 34 ) FROM tab1 AS cor0
----
3
-37

query I rowsort
SELECT + - 43 AS col2 FROM tab2 cor0
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT - MAX( + 48 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6622
SELECT - MAX ( + 48 ) FROM tab0 AS cor0
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col1 + 36 + - - col1 + + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL 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-6624
SELECT ALL CAST ( + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6625
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + 94 * - + 32 + + col0 BETWEEN + col1 * + 75 + col2 * col0 + - col1 AND + + 16 * col0 + - col1 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6625
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + 94 * - + 32 + + col0 BETWEEN + col1 * + 75 + col2 * col0 + - col1 AND + + 16 * col0 + - col1 - - + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - 85 col0 FROM tab0 AS cor0
----
-185
-2294
-9886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6627
SELECT * FROM tab1 AS cor0 WHERE NOT 5 < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6627
SELECT * FROM tab1 AS cor0 WHERE NOT 5 < - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ( - + 22 ) * - col0 * + col2 FROM tab0
----
15510
19140
211266

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT - MIN( DISTINCT - + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6629
SELECT - MIN ( DISTINCT - + col0 ) AS col0 FROM tab1
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN - + 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ( + COUNT( * ) ) * + SUM( ALL + 95 ) AS col2 FROM tab0
----
855

skipif mysql # not compatible
query I rowsort label-6631
SELECT ( + COUNT ( * ) ) * + SUM ( ALL + 95 ) AS col2 FROM tab0
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT MAX( - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6632
SELECT MAX ( - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6633
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - 58 AS SIGNED ) + col1 = - col2 - col2 + + col1 + + col1 + 54 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6633
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - 58 AS INTEGER ) + col1 = - col2 - col2 + + col1 + + col1 + 54 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT DISTINCT MIN( DISTINCT + + ( 65 ) ) FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT MIN ( DISTINCT + + ( 65 ) ) FROM tab0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col0 FROM tab2
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - MIN( + - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6636
SELECT - MIN ( + - col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT - col2 / 54 - - + 37 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 < + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1 WHERE NOT ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT 17 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT + MIN( DISTINCT + 63 ) FROM tab1 WHERE NULL NOT BETWEEN col2 - + 22 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + MIN ( DISTINCT + 63 ) FROM tab1 WHERE NULL NOT BETWEEN col2 - + 22 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT DISTINCT - + COUNT( ALL - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - + COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE ( NULL ) >= + - col1
----

query I rowsort
SELECT DISTINCT 17 + - - 88 AS col0 FROM tab0 cor0
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= 29
----

skipif mysql # not compatible
query I rowsort label-6645
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= 29
----

query II rowsort
SELECT col2, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT SUM( DISTINCT - + 92 ) + + - 37 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-6647
SELECT SUM ( DISTINCT - + 92 ) + + - 37 FROM tab1
----
-129

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6649
SELECT - ( - + CAST( NULL AS SIGNED ) ) + + col0 + - 23, col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6649
SELECT - ( - + CAST ( NULL AS INTEGER ) ) + + col0 + - 23, col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT DISTINCT + ( - col1 ) * + col0 + - col1 - - - col2 + - - 53 DIV 99 DIV - - col1 FROM tab2
----
-2420
-5045
-5150

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + ( - col1 ) * + col0 + - col1 - - - col2 + - - 53 / 99 / - - col1 FROM tab2
----
-2420
-5045
-5150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 + - - col1 BETWEEN - col0 AND NULL
----

query II rowsort
SELECT DISTINCT col2 - - + col0 AS col2, + 76 * - - col1 / 81 * + + ( + col2 ) * 29 + + 36 AS col0 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - + 15 + + - col2 AS col0 FROM tab0 AS cor0
----
-114
-25
-62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + col1, - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT - - COUNT( * ) + + 7 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT - - COUNT ( * ) + + 7 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * - col0 + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab0 cor0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6659
SELECT + 94 DIV - 38 + - 73 * + col2 AS col1 FROM tab1 AS cor0
----
-4309
-4966
-7010

skipif mysql # not compatible
query I rowsort label-6659
SELECT + 94 / - 38 + - 73 * + col2 AS col1 FROM tab1 AS cor0
----
-4309
-4966
-7010

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL - - 84 * COUNT( * ) FROM tab2 cor0
----
252

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - - 84 * COUNT ( * ) FROM tab2 cor0
----
252

query I rowsort
SELECT - 97 * - col0 AS col1 FROM tab2
----
4462
6208
7275

query II rowsort
SELECT DISTINCT + ( + col2 ) AS col2, + 80 FROM tab0
----
10
80
47
80
99
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6663
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + + CAST( - col2 AS SIGNED ), 6 )
----

skipif mysql # not compatible
query III rowsort label-6663
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + + CAST ( - col2 AS INTEGER ), 6 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL - ( - AVG ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL - ( - AVG ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT ALL + CAST( - - col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT + ( MAX( col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6666
SELECT + ( MAX ( col2 ) ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6667
SELECT ALL + col2 col1, col0 * + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6667
SELECT ALL + col2 col1, col0 * + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * - 69
----

query I rowsort
SELECT 36 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT + 91 + COUNT( * ) + + - COUNT( * ) * - - 9 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6671
SELECT + 91 + COUNT ( * ) + + - COUNT ( * ) * - - 9 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT - 96 + + COUNT( * ) col1 FROM tab2 cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6672
SELECT - 96 + + COUNT ( * ) col1 FROM tab2 cor0
----
-93

query I rowsort
SELECT - 0 + - - col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + - col1 + + + 2 FROM tab2 AS cor0
----
-49
-65
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT - COUNT( * ) + 56 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6675
SELECT - COUNT ( * ) + 56 FROM tab1 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col0 * - + col1 + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT ALL col2 DIV + 32 - - 5 * + - 74 AS col2 FROM tab2
----
-369
-369
-370

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL col2 / + 32 - - 5 * + - 74 AS col2 FROM tab2
----
-369
-369
-370

onlyif mysql # DIV for integer division: 
query I rowsort label-6680
SELECT DISTINCT + col1 DIV 77 - + + col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + col1 / 77 - + + col0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 64 col1 FROM tab0
----
3008
6336
640

query I rowsort
SELECT ALL col0 * + 6 FROM tab2
----
276
384
450

query I rowsort
SELECT DISTINCT col0 * - - col1 * - col1 - - col0 FROM tab0
----
-38280
-98400
0

query I rowsort
SELECT DISTINCT + col2 * col2 * - - col2 AS col0 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT - col2 - - 17 FROM tab0 cor0
----
-30
-82
7

query I rowsort
SELECT - col1 - + + col2 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 79 * + col0 * col0 FROM tab1 AS cor0
----
205479
570775
654199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6688
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6688
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 + + col2 + + 83 FROM tab2 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 - + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - - 89 * + col2 * col2 col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + + col0 * + col1 AS col0 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + 14 * - ( COUNT( * ) ) AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 14 * - ( COUNT ( * ) ) AS col2 FROM tab2
----
-42

query I rowsort
SELECT + col1 * + - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT SUM( DISTINCT - + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6697
SELECT SUM ( DISTINCT - + col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT MIN( col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6698
SELECT MIN ( col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT ALL - MAX( 10 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - MAX ( 10 ) AS col0 FROM tab0
----
-10

query I rowsort
SELECT ALL - col1 * - + col0 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6701
SELECT ALL 15 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL 15 / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6702
SELECT - col0 * + ( - col0 ) col2, + CAST( NULL AS SIGNED ) * + - col2 AS col2 FROM tab2
----
2116
NULL
4096
NULL
5625
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6702
SELECT - col0 * + ( - col0 ) col2, + CAST ( NULL AS INTEGER ) * + - col2 AS col2 FROM tab2
----
2116
NULL
4096
NULL
5625
NULL

query II rowsort
SELECT DISTINCT - 27, 9 AS col0 FROM tab0 AS cor0
----
-27
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT DISTINCT 21 + - + COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6704
SELECT DISTINCT 21 + - + COUNT ( * ) FROM tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6705
SELECT DISTINCT 9 * - CAST( 58 AS SIGNED ) col0, col0 AS col2 FROM tab2 AS cor0
----
-522
46
-522
64
-522
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6705
SELECT DISTINCT 9 * - CAST ( 58 AS INTEGER ) col0, col0 AS col2 FROM tab2 AS cor0
----
-522
46
-522
64
-522
75

onlyif mysql # aggregate syntax: 
query II rowsort label-6706
SELECT - + COUNT( * ), 2 AS col2 FROM tab0 cor0 WHERE NOT 15 IS NULL
----
-3
2

skipif mysql # not compatible
query II rowsort label-6706
SELECT - + COUNT ( * ), 2 AS col2 FROM tab0 cor0 WHERE NOT 15 IS NULL
----
-3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT COUNT( * ) * - COUNT( * ) * 29 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-6707
SELECT COUNT ( * ) * - COUNT ( * ) * 29 FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT - MIN( + 93 ) col0 FROM tab0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6708
SELECT DISTINCT - MIN ( + 93 ) col0 FROM tab0
----
-93

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT ALL + col2 * - col1 + 19 FROM tab1 AS cor0
----
-1325
-276
-3177

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + + + col2 + 98 FROM tab2 AS cor0
----
1738
3520
650

query I rowsort
SELECT DISTINCT - col0 + + + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + ( + 48 ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6715
SELECT ALL + col2 - + + col1 + + 50 * - CAST( 47 AS SIGNED ), - 47 * - col1 col0 FROM tab1
----
-2268
658
-2296
235
-2329
2209

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6715
SELECT ALL + col2 - + + col1 + + 50 * - CAST ( 47 AS INTEGER ), - 47 * - col1 col0 FROM tab1
----
-2268
658
-2296
235
-2329
2209

query I rowsort
SELECT + col2 FROM tab0 WHERE + - col2 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT - col2 DIV - + col1 + col2 AS col1 FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-6717
SELECT - col2 / - + col1 + col2 AS col1 FROM tab0
----
10
198
47

query II rowsort
SELECT DISTINCT + 23 * + ( + col0 ) AS col1, + col0 FROM tab2
----
1058
46
1472
64
1725
75

query I rowsort
SELECT ALL - col2 * + 51 AS col1 FROM tab1
----
-3009
-3468
-4896

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6720
SELECT ALL * FROM tab2 WHERE NULL IN ( - 14 * - 18, + col0, col0 + col0 * - 42 + - - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6720
SELECT ALL * FROM tab2 WHERE NULL IN ( - 14 * - 18, + col0, col0 + col0 * - 42 + - - CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT ALL - col0 - - 85 + + col0 AS col1 FROM tab2
----
85
85
85

query I rowsort
SELECT 12 + 86 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT - MIN( ALL 72 ) FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT - MIN ( ALL 72 ) FROM tab1
----
-72

query I rowsort
SELECT ( - - col2 ) * - 11 AS col2 FROM tab0 WHERE - - col1 IS NULL
----

query I rowsort
SELECT ALL col1 * col1 - + col2 AS col2 FROM tab1 cor0
----
-34
100
2141

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6726
SELECT + COUNT ( * ) FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 / + - col1 + - col2 + 29 IS NULL
----

query I rowsort
SELECT DISTINCT + 59 + - 46 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13

query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 WHERE - - col2 > NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NULL < - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6731
SELECT DISTINCT col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT col2 / + col1 AS col1 FROM tab1 AS cor0
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col2 + - + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
-10
-11
-47
-34
-99
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL OR NOT 23 + 35 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 90, col1 + - col1 * 51 * - col1 AS col2 FROM tab0 AS cor0
----
90
22512
90
334692
90
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 73 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( 73 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 44 * 63 AS col0 FROM tab0 AS cor0
----
2772

query I rowsort
SELECT + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT - MIN( + + col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6738
SELECT - MIN ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL col2 * - 71 * + - col1 FROM tab0
----
14910
270297
7029

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT + 3 * - + col2 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT - COUNT( * ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6742
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6743
SELECT ALL + col1 DIV 22 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL + col1 / 22 FROM tab0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT MAX( ALL + ( - + 66 ) ) col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6744
SELECT MAX ( ALL + ( - + 66 ) ) col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6745
SELECT ALL - COUNT( + CAST( - col1 AS SIGNED ) ) + + ( + + 26 ) - + + 68 AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - COUNT ( + CAST ( - col1 AS INTEGER ) ) + + ( + + 26 ) - + + 68 AS col0 FROM tab1
----
-45

query I rowsort
SELECT ALL + 0 + + 79 - - - 17 + col1 AS col0 FROM tab1
----
109
67
76

query I rowsort
SELECT - col0 + - - 4 - - col1 - col2 FROM tab0
----
-191
-72
23

query I rowsort
SELECT + col0 + col2 + + - col0 AS col1 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT - col1 + + + col0 + - col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT - + COUNT( * ) col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6751
SELECT DISTINCT - + COUNT ( * ) col0 FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 * + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + 26 col1 FROM tab1 AS cor0
----
31
40
73

query I rowsort
SELECT ALL col2 * + + col0 + 45 + - 74 + + col0 * + - 21 AS col0 FROM tab0 AS cor0
----
-986
361
7537

query I rowsort
SELECT ALL - - ( - + 15 ) FROM tab1 cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6756
SELECT * FROM tab0 WHERE - + 6 >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6756
SELECT * FROM tab0 WHERE - + 6 >= + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col0, 91 FROM tab2
----
46
91
64
91
75
91

query I rowsort
SELECT DISTINCT 82 - - col1 - 86 + col0 AS col1 FROM tab1
----
134
61
86

query II rowsort
SELECT - 13 * - col1, 73 FROM tab1 WHERE 19 <= + - 18
----

query I rowsort
SELECT ALL - 77 + + 66 AS col1 FROM tab2
----
-11
-11
-11

query II rowsort
SELECT DISTINCT + col1 + - col0 + + col1 + - col2, - 0 AS col2 FROM tab1
----
-119
0
-134
0
-65
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab2, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 - - - col2 col2 FROM tab1
----
-19
-28
-56

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - col1 ) NOT IN ( col2 * + col0 * + col0, col1 / - col1 )
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 96 col0 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT - 53 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - 4 AS col0 FROM tab2 WHERE NOT NULL > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT 2 * + - COUNT( * ) * - + MAX( - - col1 ) AS col0 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT 2 * + - COUNT ( * ) * - + MAX ( - - col1 ) AS col0 FROM tab1
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - AVG ( ALL + + col1 ) col2 FROM tab2 WHERE NOT + 39 * - ( - ( col1 ) ) * - - 48 BETWEEN - - col0 * 44 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT MAX( - 23 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6771
SELECT DISTINCT MAX ( - 23 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL - SUM( ALL - col1 ) col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6772
SELECT ALL - SUM ( ALL - col1 ) col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL 42 AS col2 FROM tab2 AS cor0 WHERE col2 * col1 + col1 = - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <> + ( col2 ) - 61
----

query I rowsort
SELECT col1 * - - col2 + - col0 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL SUM( + col1 ) * + COUNT( * ) AS col1 FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL SUM ( + col1 ) * + COUNT ( * ) AS col1 FROM tab0
----
309

query I rowsort
SELECT col0 * - - col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT DISTINCT - 44 * + - COUNT( * ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-6778
SELECT DISTINCT - 44 * + - COUNT ( * ) FROM tab1
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab2
----
90
90
90

query I rowsort
SELECT ALL + 11 * 92 FROM tab0
----
1012
1012
1012

query I rowsort
SELECT - 88 * + 84 AS col1 FROM tab0
----
-7392
-7392
-7392

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL - COUNT( col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - COUNT ( col0 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + 17 * + + col2 FROM tab2
----
391
680
986

query I rowsort
SELECT ALL + AVG ( ALL 9 ) FROM tab0 AS cor0 WHERE NOT NULL <= col1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 97
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6787
SELECT - + col1 DIV - col0 + - 63 DIV col0 * 44 + 77 FROM tab0 AS cor0
----
-94
77
77

skipif mysql # not compatible
query I rowsort label-6787
SELECT - + col1 / - col0 + - 63 / col0 * 44 + 77 FROM tab0 AS cor0
----
-94
77
77

query I rowsort
SELECT ALL - 1 + - + 29 * col0 FROM tab2
----
-1335
-1857
-2176

query I rowsort
SELECT - 51 FROM tab2 WHERE col2 < - col2 + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 7 - + 16 + - 97 FROM tab1
----
-120

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 + - ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6793
SELECT ALL + 79 DIV COUNT( - + 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + 79 / COUNT ( - + 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
8

query I rowsort
SELECT DISTINCT 70 + - 38 FROM tab2, tab1 AS cor0
----
32

query I rowsort
SELECT + ( + + col2 ) * - - ( col1 ) + - 43 AS col2 FROM tab0 AS cor0
----
167
3764
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT + col1 DIV + col0 - - col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6796
SELECT + col1 / + col0 - - col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT + - col2 DIV col2 - + + col0 * - col0 FROM tab2 AS cor0
----
2115
4095
5624

skipif mysql # not compatible
query I rowsort label-6797
SELECT + - col2 / col2 - + + col0 * - col0 FROM tab2 AS cor0
----
2115
4095
5624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6798
SELECT DISTINCT + + MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT + + MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - + 19 FROM tab2 AS cor0
----
32
48
58

query I rowsort
SELECT - col0 - ( 24 ) AS col1 FROM tab2 AS cor0
----
-70
-88
-99

query I rowsort
SELECT - col0 * - 2 + col2 + + col1 AS col0 FROM tab0 AS cor0 WHERE - col0 < - + col1
----
205
294

query I rowsort
SELECT DISTINCT - ( - 58 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT COUNT( * ) + + - ( + 46 ) col2 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6803
SELECT COUNT ( * ) + + - ( + 46 ) col2 FROM tab0 AS cor0
----
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 + - col2 col0 FROM tab1 AS cor0
----
-18
10
19

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT 63 + + col2 DIV + + 43 FROM tab0
----
63
64
65

skipif mysql # not compatible
query I rowsort label-6805
SELECT 63 + + col2 / + + 43 FROM tab0
----
63
64
65

query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT + 0 * 58 + + 5 + + col1 AS col2 FROM tab2
----
56
72
82

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( col0 ) IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT ALL MAX( ALL + col0 ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL MAX ( ALL + col0 ) AS col0 FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT - COUNT( + - 85 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6811
SELECT - COUNT ( + - 85 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT MIN( - 55 ) * - - 10 col0 FROM tab1
----
-550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT DISTINCT MIN ( - 55 ) * - - 10 col0 FROM tab1
----
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT + CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6813
SELECT + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT ALL + 49, COUNT( * ) AS col2 FROM tab2 AS cor0
----
49
3

skipif mysql # not compatible
query II rowsort label-6814
SELECT ALL + 49, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
49
3

query I rowsort
SELECT DISTINCT + + ( col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * - + col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - ( + 9 ) AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT 55 + ( - col0 ) FROM tab1 AS cor0
----
-30
-36
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6819
SELECT ALL * FROM tab1 cor0 WHERE + 50 <= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6819
SELECT ALL * FROM tab1 cor0 WHERE + 50 <= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT MAX( DISTINCT - ( + col0 ) ) + - 84 FROM tab2 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-6820
SELECT MAX ( DISTINCT - ( + col0 ) ) + - 84 FROM tab2 AS cor0
----
-130

query I rowsort
SELECT DISTINCT + ( - 24 ) * - col0 FROM tab2
----
1104
1536
1800

query III rowsort
SELECT * FROM tab2 WHERE + - col2 IS NULL
----

query I rowsort
SELECT ALL + col0 * + - 47 FROM tab1
----
-2397
-3995
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT DISTINCT - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab0
----
18

query III rowsort
SELECT * FROM tab0 WHERE col2 <= + 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL - SUM( + col1 ) * - 76 AS col0 FROM tab2
----
14820

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - SUM ( + col1 ) * - 76 AS col0 FROM tab2
----
14820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT DISTINCT + - 37 * + col2 + - + 38 * - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-2309
-3676
-7349

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT + - 37 * + col2 + - + 38 * - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-2309
-3676
-7349

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT SUM( + + 88 ) AS col2, 86 AS col0 FROM tab0 AS cor0
----
264
86

skipif mysql # not compatible
query II rowsort label-6830
SELECT SUM ( + + 88 ) AS col2, 86 AS col0 FROM tab0 AS cor0
----
264
86

query I rowsort
SELECT + ( - + 5 ) AS col0 FROM tab2 AS cor0
----
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT - 70 + + - COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - 70 + + - COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL + 46 + - col1 FROM tab0
----
-35
25
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6835
SELECT ALL + COUNT( * ), + 3 - + 25 AS col2 FROM tab2
----
3
-22

skipif mysql # not compatible
query II rowsort label-6835
SELECT ALL + COUNT ( * ), + 3 - + 25 AS col2 FROM tab2
----
3
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT DISTINCT - - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6836
SELECT DISTINCT - - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6837
SELECT - col2 + - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT - col2 + - - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6838
SELECT ALL - 70 + - CAST( - + 47 AS SIGNED ) + MAX( ALL + 17 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - 70 + - CAST ( - + 47 AS INTEGER ) + MAX ( ALL + 17 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL 96 * - col0 AS col2 FROM tab2 AS cor0
----
-4416
-6144
-7200

query I rowsort
SELECT - col1 * + 39 * 42 * col1 + - + 24 * 25 FROM tab2 AS cor0
----
-4261038
-7353582
-9712302

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col0 * + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col2, 10 FROM tab0 AS cor0
----
10
10
47
10
99
10

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 + - + col1 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT - col0 + - col1 AS col0, + 39 AS col0 FROM tab2 AS cor0 WHERE ( ( - 99 + col2 - + col1 IS NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT COUNT( col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6847
SELECT COUNT ( col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ( + 13 ) AS col0 FROM tab1
----
13
13
13

query II rowsort
SELECT ALL - 38, 4 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 74
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 22 / - ( + + ( - col0 ) ) < + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + - ( ( - 2 ) ) ) AS col1 FROM tab0 AS cor0
----
-2

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - SUM( ALL + - 3 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6853
SELECT - SUM ( ALL + - 3 ) AS col1 FROM tab1
----
9

query I rowsort
SELECT + + col1 + + + col1 - - 56 + + 97 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 / col1 - + - ( + 75 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 / col1 - + - ( + 75 ) IS NULL
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + + 60 AS col2 FROM tab0 cor0
----
-1260
-4860
-60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 33 ) IS NULL
----

query I rowsort
SELECT - - col2 + + 48 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
147
58
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT + 6 + - COUNT( * ) * COUNT( * ) col0 FROM tab1 AS cor0 WHERE col2 * - + col2 BETWEEN - col1 AND NULL
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6861
SELECT + 6 + - COUNT ( * ) * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col2 * - + col2 BETWEEN - col1 AND NULL
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 57 col1 FROM tab2 cor0
----
-57

query I rowsort
SELECT ALL 62 + - + col2 AS col1 FROM tab2 AS cor0
----
22
39
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * - col0 col2 FROM tab2
----
-2760
-3840
-4500

query II rowsort
SELECT 32 AS col0, col2 FROM tab0
----
32
10
32
47
32
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + MIN( DISTINCT col2 ) * + + 12 AS col0 FROM tab1
----
708

skipif mysql # not compatible
query I rowsort label-6866
SELECT + MIN ( DISTINCT col2 ) * + + 12 AS col0 FROM tab1
----
708

onlyif mysql # DIV for integer division: 
query I rowsort label-6867
SELECT col0 DIV + 4 FROM tab1
----
12
21
22

skipif mysql # not compatible
query I rowsort label-6867
SELECT col0 / + 4 FROM tab1
----
12
21
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col1 * + col1 AS col2 FROM tab1
----
-14
196
-47
2209
-5
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6869
SELECT ALL 46 AS col1, + MIN( ALL col2 ) - + - 61 AS col2 FROM tab2
----
46
84

skipif mysql # not compatible
query II rowsort label-6869
SELECT ALL 46 AS col1, + MIN ( ALL col2 ) - + - 61 AS col2 FROM tab2
----
46
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT DISTINCT COUNT( * ) * MAX( ALL - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6870
SELECT DISTINCT COUNT ( * ) * MAX ( ALL - col1 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - SUM( ALL - col2 ) * COUNT( * ) + + - 96 FROM tab1
----
573

skipif mysql # not compatible
query I rowsort label-6871
SELECT - SUM ( ALL - col2 ) * COUNT ( * ) + + - 96 FROM tab1
----
573

query II rowsort
SELECT ALL - col0 AS col2, col0 + 31 FROM tab0 AS cor0
----
-15
46
-87
118
-97
128

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT 53 * + - ( - - COUNT( * ) ) + 13 FROM tab2 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-6874
SELECT 53 * + - ( - - COUNT ( * ) ) + 13 FROM tab2 AS cor0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL - + COUNT( - 53 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL - + COUNT ( - 53 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 28 - + col2 AS col0, - col2 - + 9 col2 FROM tab2
----
-12
-49
-30
-67
5
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6879
SELECT ALL + - CAST( NULL AS SIGNED ) * - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 28 * 64 FROM tab2 AS cor0
----
-1792
-1792
-1792

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - 51 * - - MAX( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-4131

skipif mysql # not compatible
query I rowsort label-6881
SELECT - 51 * - - MAX ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
-4131

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6884
SELECT + MIN( ALL - 22 ) col2 FROM tab0
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6884
SELECT + MIN ( ALL - 22 ) col2 FROM tab0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT - 13 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6885
SELECT - 13 / - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6887
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-6887
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT DISTINCT + COUNT( * ) * - 86 FROM tab1, tab1 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT + COUNT ( * ) * - 86 FROM tab1, tab1 AS cor0
----
-774

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN col2 AND - col0
----

query I rowsort
SELECT ALL col0 * + - col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT 86 * + + COUNT( * ) FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT 86 * + + COUNT ( * ) FROM tab2
----
258

query I rowsort
SELECT ALL - col1 * + 21 AS col2 FROM tab2 WHERE NULL NOT BETWEEN - col2 + + col0 * - + 57 AND ( 22 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT col0 IN ( col0 )
----

query I rowsort
SELECT + col2 * + col2 + - 34 FROM tab0 WHERE NOT ( 39 + 29 ) IS NULL
----
2175
66
9767

query I rowsort
SELECT DISTINCT ( - 47 ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + 33 ) AND NULL
----

query I rowsort
SELECT + 27 * - 53 FROM tab2
----
-1431
-1431
-1431

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT - MAX( col0 ) + + COUNT( * ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-6898
SELECT - MAX ( col0 ) + + COUNT ( * ) FROM tab0
----
-94

query I rowsort
SELECT 61 * 89 FROM tab0
----
5429
5429
5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * 30 col0 FROM tab1
----
900
900
900

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 * col2 + col2 FROM tab2
----
1081
2600
4408

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN + 82 / col1 AND col0 / col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <= + col2
----
15
81
47
97
1
99

query I rowsort
SELECT + col1 * 52 FROM tab0
----
1092
4212
52

query I rowsort
SELECT - 97 + col1 AS col2 FROM tab0 WHERE + ( col1 ) * + 9 >= ( col2 ) * - col2
----
-16
-76
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) <> - 59 + - col1
----

query I rowsort
SELECT + 85 * - ( 73 ) FROM tab2
----
-6205
-6205
-6205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN ( + col0 + + 34 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * 16 AS col2 FROM tab0
----
-1296
-16
-336

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6912
SELECT ALL + 77 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + 77 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 2 * - col2 FROM tab2 WHERE NOT col2 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 3 * + 66 FROM tab1
----
-198
-198
-198

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6916
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - col1 >= ( CAST( col0 AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - col1 >= ( CAST ( col0 AS INTEGER ) )
----
-3

query I rowsort
SELECT + col0 * - 36 + - col0 * + col0 FROM tab1 WHERE ( - 27 / + col0 ) IN ( 82 + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * + 81 AS col1 FROM tab0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT + col2 * - 82 AS col1 FROM tab0
----
-3854
-8118
-820

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6921
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + col0 <> CAST( NULL AS DECIMAL ) / + 21 - col1
----

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + col0 <> CAST ( NULL AS REAL ) / + 21 - col1
----

query I rowsort
SELECT col2 - + 70 FROM tab1 AS cor0
----
-11
-2
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE col0 - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6923
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE col0 - col2 <> NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) BETWEEN - 95 AND NULL
----

query I rowsort
SELECT ALL + 38 + + 43 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ( - col0 ) + - col0 AS col0 FROM tab0
----
-174
-194
-30

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT DISTINCT - col0 * CAST( + col0 AS SIGNED ) FROM tab2
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT - col0 * CAST ( + col0 AS INTEGER ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0 WHERE NOT 83 + - 44 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-6929
SELECT + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0 WHERE NOT 83 + - 44 IS NULL
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6930
SELECT ALL + - SUM( DISTINCT + col0 ) DIV + MIN( 11 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL + - SUM ( DISTINCT + col0 ) / + MIN ( 11 ) FROM tab2 AS cor0
----
-16

query I rowsort
SELECT - 61 * + col1 AS col2 FROM tab2 AS cor0
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL MIN( + col1 ) FROM tab2 cor0 WHERE ( ( 95 ) + 69 * - col1 ) NOT IN ( col0 )
----
51

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL MIN ( + col1 ) FROM tab2 cor0 WHERE ( ( 95 ) + 69 * - col1 ) NOT IN ( col0 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT DISTINCT MAX( col0 ) * 44 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT MAX ( col0 ) * 44 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + col0 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 37 * - col2 AS col0 FROM tab1 AS cor0
----
-2183
-2516
-3552

query I rowsort
SELECT + - 11 * col1 AS col2 FROM tab0 AS cor0
----
-11
-231
-891

query I rowsort
SELECT ALL - - 47 FROM tab0 cor0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT DISTINCT + + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 40 AS col0 FROM tab1
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + MAX( + col0 ) AS col2 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6941
SELECT + MAX ( + col0 ) AS col2 FROM tab0
----
97

query I rowsort
SELECT ALL + 67 * + 68 FROM tab2
----
4556
4556
4556

query I rowsort
SELECT DISTINCT - 73 FROM tab1 WHERE col2 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT CAST( - 23 AS SIGNED ) * col2 FROM tab1
----
-1357
-1564
-2208

skipif mysql # not compatible
query I rowsort label-6944
SELECT CAST ( - 23 AS INTEGER ) * col2 FROM tab1
----
-1357
-1564
-2208

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT + SUM( 80 ) FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-6945
SELECT + SUM ( 80 ) FROM tab2
----
240

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT col0 DIV - 93 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT col0 / - 93 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - MIN( + 3 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - MIN ( + 3 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col2 + + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-5
3
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col0 FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) * 84 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
756

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) * 84 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
756

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6951
SELECT DISTINCT 36 * - SUM( ALL CAST( NULL AS SIGNED ) * col2 ) col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6951
SELECT DISTINCT 36 * - SUM ( ALL CAST ( NULL AS INTEGER ) * col2 ) col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 18 ) >= ( - col1 * 83 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL - COUNT( + 41 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - COUNT ( + 41 ) AS col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - - col2 + + col0 FROM tab2 cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6956
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 * - + col1 + - 2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 * - + col1 + - 2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - col1 ) * + + col1 * ( col1 * - col0 ) + col2 AS col0 FROM tab1 cor0
----
10684
140040
9447961

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT DISTINCT - 24 / + col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT - 24 / + col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT MAX( - col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6959
SELECT MAX ( - col0 ) AS col2 FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL ( - + col2 ) + - col1 * - col0 FROM tab1 cor0
----
366
4209
618

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL AND NOT ( NULL ) <= ( col1 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT + 35 + - 11 DIV col0 FROM tab1
----
35
35
35

skipif mysql # not compatible
query I rowsort label-6962
SELECT + 35 + - 11 / col0 FROM tab1
----
35
35
35

query I rowsort
SELECT ALL ( 6 ) + - - col0 + + col0 FROM tab1
----
108
176
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT DISTINCT - MIN( + col2 ) - 91 AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT - MIN ( + col2 ) - 91 AS col2 FROM tab2
----
-114

query I rowsort
SELECT ( ( col2 ) ) + col2 + col2 AS col0 FROM tab0
----
141
297
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT DISTINCT 15 DIV - - 31 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6966
SELECT DISTINCT 15 / - - 31 col0 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT - MIN( ALL + + 31 ) + + 50 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT - MIN ( ALL + + 31 ) + + 50 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 + - - 38 - col0 FROM tab0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT + 89 - COUNT( * ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + 89 - COUNT ( * ) FROM tab1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + ( - 91 ) ) + - col1 col0 FROM tab0
----
-112
-172
-92

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - - 89 + + 19 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT DISTINCT + COUNT( * ) + + + 77 * COUNT( * ) * + CAST( NULL AS SIGNED ) * - MIN( - 12 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + COUNT ( * ) + + + 77 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - MIN ( - 12 ) FROM tab1
----
NULL

query I rowsort
SELECT ( + - col0 ) + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT MIN( DISTINCT + 87 ) AS col2 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-6974
SELECT MIN ( DISTINCT + 87 ) AS col2 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
87

query I rowsort
SELECT ALL + - 74 FROM tab2 AS cor0
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + + col2 col2 FROM tab0 AS cor0
----
-2162
-90
-9702

query I rowsort
SELECT - col0 * - + 29 FROM tab1 AS cor0
----
1479
2465
2639

query I rowsort
SELECT ALL + 19 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT 20 + COUNT( * ) col2 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6979
SELECT DISTINCT 20 + COUNT ( * ) col2 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + + MAX( + 28 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-6980
SELECT + + MAX ( + 28 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT ALL - ( + SUM( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - ( + SUM ( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL - + 11 AS col0 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - + 91 AS col2 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT + ( + - col0 ) * - col0 * + 69 AS col1 FROM tab0 AS cor0
----
15525
522261
649221

query II rowsort
SELECT - col2, col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6987
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6987
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col2 NOT BETWEEN ( - - 32 ) AND ( col2 ) )
----
87
21
10

query II rowsort
SELECT - col2, 7 AS col2 FROM tab0
----
-10
7
-47
7
-99
7

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 + 18 - - col2 )
----

query II rowsort
SELECT DISTINCT + 9 AS col0, + col0 * + 96 FROM tab2
----
9
4416
9
6144
9
7200

query I rowsort
SELECT ALL 38 * - col2 FROM tab0
----
-1786
-3762
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT ALL COUNT( * ) + + CAST( + COUNT( ALL - col2 ) AS SIGNED ) FROM tab2 WHERE NOT ( - col1 + + col1 >= ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL COUNT ( * ) + + CAST ( + COUNT ( ALL - col2 ) AS INTEGER ) FROM tab2 WHERE NOT ( - col1 + + col1 >= ( NULL ) )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ( COUNT( * ) ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6995
SELECT ( COUNT ( * ) ) FROM tab1, tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 29 + - 93 <= NULL
----

query II rowsort
SELECT ALL 2 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
2
-14
2
-47
2
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6999
SELECT DISTINCT - MAX( col0 ) + + COUNT( ALL + - col0 ) * + - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT - MAX ( col0 ) + + COUNT ( ALL + - col0 ) * + - COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT + 24 - col2 / - + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT ( NULL ) <> + col0
----

skipif mysql # not compatible
query I rowsort label-7000
SELECT + 24 - col2 / - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT ( NULL ) <> + col0
----

query I rowsort
SELECT 51 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT col0 * - - 4 FROM tab1
----
204
340
364

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7003
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

skipif mysql # not compatible
query II rowsort label-7003
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2, col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT + SUM( ALL + 76 ) + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7004
SELECT + SUM ( ALL + 76 ) + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + + col2 + + 20 col0 FROM tab0 cor0
----
117
28
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL + + COUNT( * ) * 61 AS col2 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + + COUNT ( * ) * 61 AS col2 FROM tab1 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7007
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 49 <> - ( - col0 ) + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 + + col0, col0 AS col0 FROM tab2 AS cor0
----
-13
64
-5
46
8
75

query I rowsort
SELECT DISTINCT col0 + - + 4 FROM tab1
----
47
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT DISTINCT COUNT( * ) + + - 75 col2 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7011
SELECT DISTINCT COUNT ( * ) + + - 75 col2 FROM tab1
----
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT ALL - 29 + + - 0 FROM tab0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL SUM( ALL + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL SUM ( ALL + col0 ) AS col0 FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7015
SELECT + COUNT( * ) AS col2, + CAST( COUNT( * ) AS SIGNED ) - 40 AS col0 FROM tab0
----
3
-37

skipif mysql # not compatible
query II rowsort label-7015
SELECT + COUNT ( * ) AS col2, + CAST ( COUNT ( * ) AS INTEGER ) - 40 AS col0 FROM tab0
----
3
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT - - 82 FROM tab2 WHERE - CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7016
SELECT - - 82 FROM tab2 WHERE - CAST ( - - col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT + ( - col0 ) * 49 + + CAST( NULL AS SIGNED ) - + 81 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT + ( - col0 ) * 49 + + CAST ( NULL AS INTEGER ) - + 81 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col1 ) - - col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT + + col1 - + col2 AS col2 FROM tab0 cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7020
SELECT DISTINCT 90, col2 * + + 52 AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query II rowsort label-7020
SELECT DISTINCT 90, col2 * + + 52 AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = NULL
----

query I rowsort
SELECT + col0 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( - - col1 ) OR NOT NULL NOT BETWEEN ( NULL ) AND + 61
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - col1 ) * + col0 * col0 + - col0 / + - col2 IS NULL
----

query I rowsort
SELECT - 7 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= 16
----

query I rowsort
SELECT + 21 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ALL + - 85 * SUM( DISTINCT col0 ) * - 12 FROM tab2 cor0
----
188700

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL + - 85 * SUM ( DISTINCT col0 ) * - 12 FROM tab2 cor0
----
188700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 38 >= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN col1 + col2 AND + + col0 + - col1
----

query I rowsort
SELECT ALL ( + + 35 ) FROM tab1
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7032
SELECT col0, + CAST( NULL AS SIGNED ) * - col1 * col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7032
SELECT col0, + CAST ( NULL AS INTEGER ) * - col1 * col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL + ( - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + ( - COUNT ( * ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT 65 DIV - col1 AS col0 FROM tab1
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-7035
SELECT 65 / - col1 AS col0 FROM tab1
----
-1
-13
-4

query I rowsort
SELECT - ( - + col1 ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7037
SELECT - CAST( NULL AS SIGNED ) * + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7037
SELECT - CAST ( NULL AS INTEGER ) * + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT COUNT( ALL 69 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT COUNT ( ALL 69 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 99 * - + 75 + 93 FROM tab0 cor0
----
-7332
-7332
-7332

query I rowsort
SELECT + + col2 + - 39 FROM tab0 AS cor0 WHERE NULL IN ( - col2, 28, + col2 + + 92 - + 56 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query II rowsort
SELECT ALL - col2, + col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + col1 * - col2 NOT IN ( 92 - + 8 + - + col0 )
----
51
85
91

query II rowsort
SELECT 70 AS col2, - 34 + col1 + - 6 * - col1 AS col2 FROM tab2
----
70
323
70
435
70
505

query II rowsort
SELECT - col0 AS col1, 35 FROM tab1
----
-51
35
-85
35
-91
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 74 * + - col0 = - ( col2 ) * + col0 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7047
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT DISTINCT 88 * - 77, COUNT( * ) col2 FROM tab0 AS cor0
----
-6776
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7048
SELECT DISTINCT 88 * - 77, COUNT ( * ) col2 FROM tab0 AS cor0
----
-6776
3

query I rowsort
SELECT ALL + 12 * + col1 FROM tab2 AS cor0
----
612
804
924

query I rowsort
SELECT ALL - col1 + 89 AS col1 FROM tab1 AS cor0
----
42
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT 79 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7051
SELECT 79 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7052
SELECT + CAST( - col1 AS DECIMAL ) AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( + col0 + + - col0, + col1 * 65, + - 3 )
----

skipif mysql # not compatible
query I rowsort label-7052
SELECT + CAST ( - col1 AS REAL ) AS col1 FROM tab2 cor0 WHERE NULL NOT IN ( + col0 + + - col0, + col1 * 65, + - 3 )
----

query I rowsort
SELECT ALL - col1 + - + 62 - - col1 AS col2 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT ALL + col0 * - - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + col0 * - - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT - col0 - - 68 AS col2 FROM tab0 cor0
----
-19
-29
53

query I rowsort
SELECT ALL - + col1 * col0 + - col0 FROM tab0 cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT MIN( - + 64 ) + 37 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-7057
SELECT MIN ( - + 64 ) + 37 FROM tab2
----
-27

query I rowsort
SELECT col0 * + + col2 * - col1 + + col0 AS col0 FROM tab0
----
-18183
-57090
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL ( COUNT( * ) ) + - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL ( COUNT ( * ) ) + - + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE 86 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - col0 + + 30 + + col0 FROM tab0
----
-660
-753
-9476

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IN ( 18 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7064
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7065
SELECT ALL - CAST( - 83 AS SIGNED ) AS col0, + col2 AS col2 FROM tab2 AS cor0
----
83
23
83
40
83
58

skipif mysql # not compatible
query II rowsort label-7065
SELECT ALL - CAST ( - 83 AS INTEGER ) AS col0, + col2 AS col2 FROM tab2 AS cor0
----
83
23
83
40
83
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT ALL + + 91 DIV - 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + + 91 / - 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab1 WHERE NOT + 1 < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7069
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT - ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT - ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col0 FROM tab2 cor0
----
34

query I rowsort
SELECT + + 14 * + + col1 FROM tab2 cor0
----
1078
714
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT DISTINCT + col1 / - + 31 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT + col1 / - + 31 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7074
SELECT ALL - + MAX( ALL - col2 ) DIV 93 AS col2, 11 FROM tab1 AS cor0
----
0
11

skipif mysql # not compatible
query II rowsort label-7074
SELECT ALL - + MAX ( ALL - col2 ) / 93 AS col2, 11 FROM tab1 AS cor0
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ( + SUM( ALL - ( - - col0 ) ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7076
SELECT ( + SUM ( ALL - ( - - col0 ) ) ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab1
----
51

query I rowsort
SELECT ALL 92 AS col2 FROM tab2
----
92
92
92

query I rowsort
SELECT + col1 * - 64 * + + col0 AS col2 FROM tab1
----
-27200
-273728
-45696

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN col1 AND + + col2
----

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7083
SELECT DISTINCT + ( 68 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + ( 68 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7084
SELECT DISTINCT 26 * + - 87 DIV + COUNT( * ) col2 FROM tab2 AS cor0
----
-754

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7084
SELECT DISTINCT 26 * + - 87 / + COUNT ( * ) col2 FROM tab2 AS cor0
----
-754

query I rowsort
SELECT + 44 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 36 + + col1 AS col0 FROM tab1 AS cor0
----
41
50
83

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 88 * + - ( - col0 ) + + col0 / 77 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 74 ) IS NULL
----

query I rowsort
SELECT col0 + 3 FROM tab2
----
49
67
78

query I rowsort
SELECT DISTINCT + col1 * - - col1 * - col2 AS col1 FROM tab2
----
-237160
-260362
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT col2 DIV col2 * col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7091
SELECT col2 / col2 * col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + ( + 97 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - col2 * + + col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query II rowsort label-7094
SELECT ALL + 82 + - 1 + + col1, + 88 * - - col0 * + 22 + 9 + 48 DIV + col1 AS col1 FROM tab1 AS cor0
----
128
176186
86
164578
95
98748

skipif mysql # not compatible
query II rowsort label-7094
SELECT ALL + 82 + - 1 + + col1, + 88 * - - col0 * + 22 + 9 + 48 / + col1 AS col1 FROM tab1 AS cor0
----
128
176186
86
164578
95
98748

query I rowsort
SELECT DISTINCT + - 30 * col2 FROM tab1 AS cor0
----
-1770
-2040
-2880

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

query I rowsort
SELECT - col2 - + - 39 AS col1 FROM tab0
----
-60
-8
29

query I rowsort
SELECT - ( + col0 ) - + 54 FROM tab1
----
-105
-139
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT MIN( DISTINCT + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7099
SELECT MIN ( DISTINCT + col2 ) FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7100
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT ALL - - col0 DIV + col0 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7101
SELECT ALL - - col0 / + col0 col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT DISTINCT + COUNT( ALL col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + COUNT ( ALL col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 49 AND - 73
----

query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab2 WHERE ( col1 ) < NULL
----

query I rowsort
SELECT - 47 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7106
SELECT ALL - COUNT( * ) DIV - + 29 + 28 AS col0 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - COUNT ( * ) / - + 29 + 28 AS col0 FROM tab0 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7107
SELECT ALL * FROM tab2 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND 27 + col0
----

skipif mysql # not compatible
query III rowsort label-7107
SELECT ALL * FROM tab2 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND 27 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7108
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 / + CAST( - - 46 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7108
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 / + CAST ( - - 46 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( - 64 ) FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + 26 * + 39 - col1 * + - 10 FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( - col0 ) < - + col1
----
46
51
23
64
77
40

query I rowsort
SELECT col2 * + - 41 FROM tab2
----
-1640
-2378
-943

query II rowsort
SELECT + 94, 7 AS col2 FROM tab0
----
94
7
94
7
94
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT - col0 DIV - + 62 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7114
SELECT - col0 / - + 62 FROM tab2
----
0
1
1

query I rowsort
SELECT - - col2 AS col2 FROM tab0 WHERE ( NOT + col2 * col2 + - col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT + col1 DIV + 25 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7116
SELECT + col1 / + 25 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE + 32 < + + 21 + + + col1
----
51
14
96
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE + - col2 NOT BETWEEN - col2 * - + 7 + ( - 85 ) AND 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7120
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7121
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 94 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7121
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 94 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL + COUNT( ALL 62 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + COUNT ( ALL 62 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col0 AS col0, - 64 + - col0 FROM tab2 cor0
----
46
-110
64
-128
75
-139

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NULL > - col0 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL 95 + + COUNT( * ) col0 FROM tab0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7125
SELECT ALL 95 + + COUNT ( * ) col0 FROM tab0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT + COUNT( * ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7126
SELECT + COUNT ( * ) col2 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT CAST( NULL AS SIGNED ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT CAST ( NULL AS INTEGER ) - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT ALL 45 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL 45 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7130
SELECT + col1 DIV - - col2 + - col0 FROM tab0 AS cor0
----
-14
-85
-97

skipif mysql # not compatible
query I rowsort label-7130
SELECT + col1 / - - col2 + - col0 FROM tab0 AS cor0
----
-14
-85
-97

query I rowsort
SELECT ALL + col0 + + + ( - - 79 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7132
SELECT ALL - - COUNT( * ) + - COUNT( ALL - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL - - COUNT ( * ) + - COUNT ( ALL - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT COUNT( * ) + 62 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
65

skipif mysql # not compatible
query I rowsort label-7133
SELECT COUNT ( * ) + 62 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
65

query I rowsort
SELECT + - 45 * - - 90 AS col0 FROM tab0 AS cor0
----
-4050
-4050
-4050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - ( - + col1 ) col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT CAST( + + 39 AS SIGNED ) AS col2 FROM tab2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-7136
SELECT CAST ( + + 39 AS INTEGER ) AS col2 FROM tab2
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7137
SELECT DISTINCT - col0 * + col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - col0 * + col2 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * col0 col1 FROM tab2
----
-2162
-3008
-3525

onlyif mysql # aggregate syntax: 
query II rowsort label-7139
SELECT ALL COUNT( * ) AS col2, - COUNT( * ) FROM tab2 WHERE NULL = NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7139
SELECT ALL COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2 WHERE NULL = NULL
----
0
0

query II rowsort
SELECT ALL col2 * + 81 * - 56 AS col2, + 70 FROM tab2
----
-104328
70
-181440
70
-263088
70

query I rowsort
SELECT - ( 53 ) FROM tab2
----
-53
-53
-53

query I rowsort
SELECT ALL 19 AS col2 FROM tab2 cor0
----
19
19
19

query II rowsort
SELECT - + col2, + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 78 * 47 >= NULL
----

query I rowsort
SELECT + ( + + 8 ) AS col1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT - 99 * - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
891

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT - 99 * - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
891

query I rowsort
SELECT - col0 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT ALL + col0 + - col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL + col0 + - col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
15
83

query I rowsort
SELECT + - col2 + + col1 + 85 AS col0 FROM tab1 AS cor0
----
3
31
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL - MIN( + col1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7153
SELECT ALL - MIN ( + col1 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT - CAST( NULL AS SIGNED ) / + + CAST( NULL AS SIGNED ) + ( - 64 ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7154
SELECT - CAST ( NULL AS INTEGER ) / + + CAST ( NULL AS INTEGER ) + ( - 64 ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 + - col1 - - + ( col1 ) - + - 28 AS col1 FROM tab2 AS cor0
----
-18
-36
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7156
SELECT + col0 * - CAST( NULL AS DECIMAL ) + + col1 / + 85 * - col1 * CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT + col0 * - CAST ( NULL AS REAL ) + + col1 / + 85 * - col1 * CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - 36
----

query I rowsort
SELECT + + 25 AS col1 FROM tab0 WHERE + - col2 NOT BETWEEN NULL AND + 57 * - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7159
SELECT DISTINCT 79 DIV + col2 + - col2 + + col1 AS col2 FROM tab2
----
10
31
38

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT 79 / + col2 + - col2 + + col1 AS col2 FROM tab2
----
10
31
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT COUNT( * ) * + - 9 AS col0, + COUNT( * ) + - 27 FROM tab2
----
-27
-24

skipif mysql # not compatible
query II rowsort label-7160
SELECT COUNT ( * ) * + - 9 AS col0, + COUNT ( * ) + - 27 FROM tab2
----
-27
-24

query I rowsort
SELECT ALL - col1 + - col1 * 6 * - col0 * col2 FROM tab2 cor0
----
1182643
1748633
323697

query I rowsort
SELECT + 26 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col1 + + - col2 AS col2 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 6 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( - 39 ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query II rowsort
SELECT ALL col2 AS col1, + col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query II rowsort
SELECT - + 22 AS col0, 68 FROM tab0 AS cor0
----
-22
68
-22
68
-22
68

query I rowsort
SELECT DISTINCT + - 7 AS col2 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT - MIN( - col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - MIN ( - col2 ) FROM tab2 cor0
----
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 77 ) >= NULL
----

query II rowsort
SELECT ALL + col1 AS col2, - col2 + - 51 FROM tab0 AS cor0 WHERE 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL + + COUNT( ALL col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL + + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT DISTINCT + + SUM( + 29 ) AS col2 FROM tab0 cor0
----
87

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT + + SUM ( + 29 ) AS col2 FROM tab0 cor0
----
87

query I rowsort
SELECT ( - + col1 ) FROM tab2 WHERE NOT NULL NOT IN ( 88 + ( col0 ) )
----

query I rowsort
SELECT + col0 * - - col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + 91 * col2 FROM tab1
----
5369
6188
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT ALL COUNT( * ) * + + 41 AS col2 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL COUNT ( * ) * + + 41 AS col2 FROM tab0
----
123

query I rowsort
SELECT + + 80 AS col1 FROM tab2 cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query II rowsort label-7180
SELECT DISTINCT + - MAX( + + col0 ) AS col1, + COUNT( * ) FROM tab2 cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-7180
SELECT DISTINCT + - MAX ( + + col0 ) AS col1, + COUNT ( * ) FROM tab2 cor0
----
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL + COUNT( * ) + + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT + - 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - ( - 58 ) AS col1 FROM tab1
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + MIN( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7184
SELECT + MIN ( ALL - - col1 ) AS col1 FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT DISTINCT MAX( - + col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT MAX ( - + col1 ) FROM tab2 cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT DISTINCT CAST( COUNT( DISTINCT - - col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT CAST ( COUNT ( DISTINCT - - col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - col1 + - - col1 BETWEEN NULL AND - col2 )
----

query II rowsort
SELECT + - 86 AS col2, col0 - col0 FROM tab1 AS cor0
----
-86
0
-86
0
-86
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT + MAX( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7190
SELECT + MAX ( DISTINCT - + col1 ) AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ( col0 ) + + 89 FROM tab0
----
104
176
186

query I rowsort
SELECT DISTINCT col2 + - + 31 AS col1 FROM tab1
----
28
37
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT COUNT( * ) - 17 AS col1 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT COUNT ( * ) - 17 AS col1 FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7194
SELECT DISTINCT CAST( - + 43 AS SIGNED ) * - col2 * - col1 col1 FROM tab1
----
-12685
-137428
-57792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7194
SELECT DISTINCT CAST ( - + 43 AS INTEGER ) * - col2 * - col1 col1 FROM tab1
----
-12685
-137428
-57792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT DISTINCT CAST( + ( - + MAX( - 0 ) ) AS SIGNED ) FROM tab1 WHERE NOT + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT CAST ( + ( - + MAX ( - 0 ) ) AS INTEGER ) FROM tab1 WHERE NOT + 26 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 50 + + col1 AS col2 FROM tab2 cor0
----
101
117
127

query I rowsort
SELECT DISTINCT - 59 * - col0 AS col0 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT DISTINCT + COUNT( ALL + col0 ) * + MAX( - + 34 ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7198
SELECT DISTINCT + COUNT ( ALL + col0 ) * + MAX ( - + 34 ) FROM tab2 AS cor0
----
-102

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT ALL + ( + col2 ) DIV + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + ( + col2 ) / + col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col1 col0, - col0 + + col1 FROM tab0 AS cor0
----
-210
-66
-3807
66
-99
-96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 >= + - 2 * + 31 - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT + MAX( ALL + - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7204
SELECT + MAX ( ALL + - col1 ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, 63 col2 FROM tab1
----
-59
63
-68
63
-96
63

onlyif mysql # DIV for integer division: 
query II rowsort label-7206
SELECT DISTINCT + 12, - 86 * + + col0 DIV + + col0 AS col2 FROM tab2
----
12
-86

skipif mysql # not compatible
query II rowsort label-7206
SELECT DISTINCT + 12, - 86 * + + col0 / + + col0 AS col2 FROM tab2
----
12
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7207
SELECT 42 + + col1 FROM tab0 WHERE NOT ( - ( + - col2 ) - - col1 + + col1 + - col1 / CAST( NULL AS SIGNED ) * 93 * + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7207
SELECT 42 + + col1 FROM tab0 WHERE NOT ( - ( + - col2 ) - - col1 + + col1 + - col1 / CAST ( NULL AS INTEGER ) * 93 * + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7209
SELECT DISTINCT + col2 col2, + 15 DIV - + col0 AS col0 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7209
SELECT DISTINCT + col2 col2, + 15 / - + col0 AS col0 FROM tab2
----
23
0
40
0
58
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 col1 FROM tab2
----
-46
51
-64
77
-75
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 WHERE col0 NOT BETWEEN + col0 AND + 44
----
-10
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT - 76 AS col1, COUNT( * ) FROM tab1
----
-76
3

skipif mysql # not compatible
query II rowsort label-7212
SELECT - 76 AS col1, COUNT ( * ) FROM tab1
----
-76
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7213
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7213
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - ( + CAST ( NULL AS REAL ) )
----

query II rowsort
SELECT - 12 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-12
23
-12
40
-12
58

query II rowsort
SELECT col1 AS col0, 84 * - - 90 FROM tab0 AS cor0
----
1
7560
21
7560
81
7560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7217
SELECT ALL 12, 94 DIV + + 97 AS col1 FROM tab1 AS cor0
----
12
0
12
0
12
0

skipif mysql # not compatible
query II rowsort label-7217
SELECT ALL 12, 94 / + + 97 AS col1 FROM tab1 AS cor0
----
12
0
12
0
12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL + COUNT( col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + COUNT ( col1 ) FROM tab0
----
3

query II rowsort
SELECT + col0 * 40, col2 AS col2 FROM tab0
----
3480
10
3880
99
600
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT DISTINCT AVG ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 97 ) AS col1 FROM tab2
----
97

query I rowsort
SELECT ( + col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - col1 * + 40 AS col0 FROM tab0 AS cor0
----
-3240
-40
-840

query I rowsort
SELECT + + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + - col0 col2 FROM tab1 AS cor0
----
-29
-35
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL col1 * 21 + + col1 * + + 9 AS col1 FROM tab0
----
2430
30
630

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 73 * - col2 < - 73 * - - col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL - 97 + - + MIN( - 92 ) AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL - 97 + - + MIN ( - 92 ) AS col2 FROM tab2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7230
SELECT DISTINCT - col1 - - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT - col1 - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 4 + + + col0 FROM tab1
----
47
81
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7232
SELECT ALL + col2 * + - col2 DIV col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL + col2 * + - col2 / col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7234
SELECT ALL - COUNT( * ) * 96 DIV - COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL - COUNT ( * ) * 96 / - COUNT ( * ) FROM tab1 AS cor0
----
96

query II rowsort
SELECT DISTINCT - - 64 AS col1, col1 / - + col0 FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7236
SELECT 37 * + + 75 / + CAST( NULL AS SIGNED ), col2 + - + 6 FROM tab1 WHERE + + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7236
SELECT 37 * + + 75 / + CAST ( NULL AS INTEGER ), col2 + - + 6 FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT ALL - col0 * - 78 + + 85 + - - col0 + - + col2 AS col0 FROM tab1
----
4018
6741
7206

query II rowsort
SELECT + 22 AS col1, - col2 FROM tab2 cor0
----
22
-23
22
-40
22
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT + ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7239
SELECT + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 5 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL + - 53 FROM tab0 cor0
----
-53
-53
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7244
SELECT - col0 * + - col0 + - - 12 * + + 47 / - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT - col0 * + - col0 + - - 12 * + + 47 / - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7246
SELECT ALL 48, - CAST( NULL AS SIGNED ) + - col1 - - 88 * + col2 + 30 AS col0 FROM tab0 AS cor0
----
48
NULL
48
NULL
48
NULL

skipif mysql # not compatible
query II rowsort label-7246
SELECT ALL 48, - CAST ( NULL AS INTEGER ) + - col1 - - 88 * + col2 + 30 AS col0 FROM tab0 AS cor0
----
48
NULL
48
NULL
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT MIN( 13 ) * + COUNT( * ) AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-7247
SELECT MIN ( 13 ) * + COUNT ( * ) AS col2 FROM tab1
----
39

query I rowsort
SELECT col2 * 9 AS col0 FROM tab1
----
531
612
864

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT MIN( + ( 19 ) ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7249
SELECT MIN ( + ( 19 ) ) AS col2 FROM tab1
----
19

query I rowsort
SELECT + + col1 * - 42 * + 97 + + col2 AS col2 FROM tab1 AS cor0
----
-191410
-20311
-56940

query I rowsort
SELECT - 4 + 62 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT + 58 * col2 + col2 AS col2 FROM tab0
----
2773
5841
590

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT + - COUNT( ALL 38 ) FROM tab2 WHERE NOT + + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT + - COUNT ( ALL 38 ) FROM tab2 WHERE NOT + + col1 > NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 10 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7255
SELECT DISTINCT + - MIN( DISTINCT + 32 ) * - SUM( + + col2 ) FROM tab1 AS cor0 WHERE NOT 59 * + CAST( NULL AS DECIMAL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + - MIN ( DISTINCT + 32 ) * - SUM ( + + col2 ) FROM tab1 AS cor0 WHERE NOT 59 * + CAST ( NULL AS REAL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7256
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 67 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7259
SELECT ALL col2, ( + 37 ) * + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT ALL col2, ( + 37 ) * + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL COUNT( * ) + - - ( + 61 ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL COUNT ( * ) + - - ( + 61 ) AS col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT + 64 * + col1 AS col0 FROM tab0 cor0
----
1344
5184
64

query I rowsort
SELECT DISTINCT + - 32 + + ( - - col2 ) FROM tab2 AS cor0
----
-9
26
8

query I rowsort
SELECT + - 99 AS col0 FROM tab0 AS cor0 WHERE ( - - col2 ) / - - 96 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL - COUNT( * ) + - 19 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL - COUNT ( * ) + - 19 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT - - 95 + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
14
74
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7266
SELECT CAST( NULL AS DECIMAL ) / col2 * - col2 / + - 85 + col2 + + 59 * + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT CAST ( NULL AS REAL ) / col2 * - col2 / + - 85 + col2 + + 59 * + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 37 + - col2 FROM tab1
----
-105
-133
-96

query II rowsort
SELECT 47 + 38 AS col1, + 46 * col0 AS col0 FROM tab2
----
85
2116
85
2944
85
3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 WHERE col0 <= 14 * - col0
----

query I rowsort
SELECT ALL + 63 - 26 FROM tab2
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7271
SELECT * FROM tab1 WHERE + 87 <> - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7271
SELECT * FROM tab1 WHERE + 87 <> - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - 36 - + - 27 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT - 15 * col0 FROM tab1 AS cor0
----
-1275
-1365
-765

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 7 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7275
SELECT - + col0 * + col1 / - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT - + col0 * + col1 / - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT ALL - 52 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - 52 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 59 * col0 FROM tab0
----
5133
5723
885

query II rowsort
SELECT col0 AS col1, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT - + ( + SUM( + ( + col0 ) ) ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT - + ( + SUM ( + ( + col0 ) ) ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL + col1 DIV + - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + col1 / + - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query II rowsort
SELECT ALL col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - - 17 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT + - 85 AS col0 FROM tab2 cor0
----
-85
-85
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 + - 66 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT + 95 * + COUNT( * ) FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-7285
SELECT + 95 * + COUNT ( * ) FROM tab1
----
285

query I rowsort
SELECT DISTINCT col0 * + col0 * col1 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7289
SELECT ALL CAST( AVG ( ALL + - 27 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL CAST ( AVG ( ALL + - 27 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT + 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE 26 IS NOT NULL AND NOT - 87 + - - col2 BETWEEN + 32 AND - + col0 + 64
----
-3

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE 26 IS NOT NULL AND NOT - 87 + - - col2 BETWEEN + 32 AND - + col0 + 64
----
-3

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + - - ( + + col1 ) FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7294
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( + - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( + - col2 IS NOT NULL )
----
NULL

query I rowsort
SELECT + 35 + + col2 + + 93 AS col1 FROM tab0 AS cor0
----
138
175
227

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT DISTINCT 13 * MIN( + col1 ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
663
3

skipif mysql # not compatible
query II rowsort label-7297
SELECT DISTINCT 13 * MIN ( + col1 ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
663
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL - + 66 + + COUNT( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - + 66 + + COUNT ( DISTINCT - - col1 ) AS col0 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT DISTINCT 74 + - COUNT( * ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT 74 + - COUNT ( * ) FROM tab1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7302
SELECT col2, + col0 AS col2 FROM tab2 WHERE - ( - - CAST( - col1 AS SIGNED ) ) < col1 / - + col1
----

skipif mysql # not compatible
query II rowsort label-7302
SELECT col2, + col0 AS col2 FROM tab2 WHERE - ( - - CAST ( - col1 AS INTEGER ) ) < col1 / - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 77 IS NULL
----

query I rowsort
SELECT - 7 - 33 AS col1 FROM tab1
----
-40
-40
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7305
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - 98 / COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - 98 / COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 - + - col1 AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT 8 * ( col2 ) - 32 AS col0 FROM tab1
----
440
512
736

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7308
SELECT + COUNT( * ) - + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT + COUNT ( * ) - + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT DISTINCT SUM( + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT SUM ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7310
SELECT ALL 12 AS col0, 98 * - - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
query II rowsort label-7310
SELECT ALL 12 AS col0, 98 * - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
12
NULL
12
NULL
12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL - COUNT( - + col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - COUNT ( - + col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - - 68 * - + COUNT( * ) col2 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7312
SELECT - - 68 * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
-204

query I rowsort
SELECT - col1 * + col2 FROM tab0 cor0 WHERE NOT ( NULL ) <= + col2
----

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab0, tab2 AS cor0
----
56

query I rowsort
SELECT + 25 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + + MAX( 28 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

skipif mysql # not compatible
query I rowsort label-7316
SELECT + + MAX ( 28 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 24 * - 30 + - + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT - COUNT( DISTINCT - - col1 ) col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7318
SELECT - COUNT ( DISTINCT - - col1 ) col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-3
3

query I rowsort
SELECT - - 74 AS col0 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT - 23 * ( + - COUNT( DISTINCT - col2 ) ) + + 76 AS col0 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT - 23 * ( + - COUNT ( DISTINCT - col2 ) ) + + 76 AS col0 FROM tab0 AS cor0
----
145

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 77 + + 28 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL - - 95 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - + 4 * + col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT SUM( ALL col1 ) * - - ( - - COUNT( * ) ) + - 85 AS col2 FROM tab2
----
500

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT SUM ( ALL col1 ) * - - ( - - COUNT ( * ) ) + - 85 AS col2 FROM tab2
----
500

query I rowsort
SELECT ALL + col0 * - 32 AS col0 FROM tab0
----
-2784
-3104
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7327
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col2 ) * - + col2 col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT + 46 * - - col0 FROM tab1
----
2346
3910
4186

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 AND 75
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + col1 + + col1 col1, 69 * + col1 FROM tab0
----
-45
1449
-95
69
147
5589

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT DISTINCT - 85 * - - 82 + - + COUNT( * ) + - MIN( - col1 ) * 0 FROM tab2 AS cor0
----
-6973

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - 85 * - - 82 + - + COUNT ( * ) + - MIN ( - col1 ) * 0 FROM tab2 AS cor0
----
-6973

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE - col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7334
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE - col0 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL 97 + - COUNT( - - col2 ) AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 97 + - COUNT ( - - col2 ) AS col0 FROM tab0
----
94

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT DISTINCT SUM( + 67 ) AS col2 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT SUM ( + 67 ) AS col2 FROM tab1 AS cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT - 77 - 98 DIV col1 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-7340
SELECT - 77 - 98 / col1 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7341
SELECT + - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT + - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, 36 FROM tab2 cor0
----
-23
36
-40
36
-58
36

query I rowsort
SELECT - ( + 89 ) + col0 FROM tab2 AS cor0
----
-14
-25
-43

query I rowsort
SELECT ALL 91 * - col0 FROM tab2 AS cor0
----
-4186
-5824
-6825

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7345
SELECT ALL - CAST( col1 AS SIGNED ) + + + col2 + + 90 DIV col0 * - 9 AS col2 FROM tab0
----
-20
-88
98

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - CAST ( col1 AS INTEGER ) + + + col2 + + 90 / col0 * - 9 AS col2 FROM tab0
----
-20
-88
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 2 BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7347
SELECT - COUNT( * ) + - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - + SUM( DISTINCT + ( - + 12 ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT - COUNT ( * ) + - CAST ( NULL AS REAL ) + - COUNT ( * ) + - + SUM ( DISTINCT + ( - + 12 ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) = + - 8 )
----

query I rowsort
SELECT ALL - 64 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 60 * + - col2 AS col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

query I rowsort
SELECT DISTINCT + + 37 AS col0 FROM tab2 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL - COUNT( col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL - COUNT ( col2 ) FROM tab0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + ( + - col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + SUM( 31 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7355
SELECT + SUM ( 31 ) FROM tab2 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + 48 IS NOT NULL )
----

query II rowsort
SELECT ALL - col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT + 85 + 81 + + - 17 FROM tab0 cor0
----
149
149
149

query I rowsort
SELECT col1 + - - col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT - + 27 + + 55 * + 68 AS col1 FROM tab2 AS cor0
----
3713
3713
3713

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL IN ( + + col1, col2 / - + col0 * - col2 + - col0 + + + col0 * - 66, - + 29 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7362
SELECT ALL COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) + COUNT( + - ( - col2 ) ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) + COUNT ( + - ( - col2 ) ) AS col1 FROM tab2
----
-6

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - 2 ) FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + COUNT( * ) * ( 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-7365
SELECT + COUNT ( * ) * ( 91 ) FROM tab0
----
273

query I rowsort
SELECT + col1 * + 33 AS col1 FROM tab0
----
2673
33
693

query II rowsort
SELECT ALL 3 * 60 + col0 + 94, col0 FROM tab1 AS cor0
----
325
51
359
85
365
91

query I rowsort
SELECT 14 + - 16 * col1 + 6 AS col0 FROM tab2
----
-1052
-1212
-796

query I rowsort
SELECT DISTINCT - 2 FROM tab1, tab1 cor0
----
-2

query I rowsort
SELECT ALL - - 10 AS col0 FROM tab2 AS cor0 WHERE NOT 20 * - 53 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7371
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7372
SELECT DISTINCT 49 * CAST( 17 AS SIGNED ) + + - 49 - - col2 + col2 + + + col2 AS col0 FROM tab0 AS cor0
----
1081
814
925

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT 49 * CAST ( 17 AS INTEGER ) + + - 49 - - col2 + col2 + + + col2 AS col0 FROM tab0 AS cor0
----
1081
814
925

query I rowsort
SELECT DISTINCT - col2 * + 16 AS col2 FROM tab1 cor0
----
-1088
-1536
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT + MAX( - col1 ) col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7374
SELECT + MAX ( - col1 ) col1 FROM tab2 AS cor0
----
-51

query II rowsort
SELECT - col2, col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query II rowsort
SELECT ALL + col0, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab2
----
-75

query II rowsort
SELECT ALL + col2 AS col2, + 44 FROM tab0
----
10
44
47
44
99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL MIN( DISTINCT + 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL MIN ( DISTINCT + 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7380
SELECT ALL 33 AS col1, COUNT( * ) DIV - ( 74 ) AS col1 FROM tab2
----
33
0

skipif mysql # not compatible
query II rowsort label-7380
SELECT ALL 33 AS col1, COUNT ( * ) / - ( 74 ) AS col1 FROM tab2
----
33
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7381
SELECT + 48 DIV col0 * + - 89 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7381
SELECT + 48 / col0 * + - 89 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT ALL + MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7382
SELECT ALL + MIN ( col0 ) FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48 col1, - col1 AS col0 FROM tab2 cor0
----
48
-51
48
-67
48
-77

query II rowsort
SELECT ALL - - col1 * + + col2 * + 59 AS col2, - col2 FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

query I rowsort
SELECT DISTINCT - + 64 AS col1 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( 89 * + + col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT ALL + 5 + + + COUNT( * ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL + 5 + + + COUNT ( * ) FROM tab1 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col0 FROM tab0, tab2 AS cor0
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7390
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * - + col1 + + + col2 + - + col1 + col1 AS col1 FROM tab0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT - 86 + + COUNT( * ) AS col1 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-7392
SELECT - 86 + + COUNT ( * ) AS col1 FROM tab1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7393
SELECT * FROM tab1 WHERE NULL >= CAST( - - 69 AS SIGNED ) * + col0 + - col2
----

skipif mysql # not compatible
query III rowsort label-7393
SELECT * FROM tab1 WHERE NULL >= CAST ( - - 69 AS INTEGER ) * + col0 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col2 FROM tab0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT + MAX( + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + MAX ( + col1 ) AS col2 FROM tab1
----
47

query II rowsort
SELECT ALL + col1 AS col2, + col0 + col1 FROM tab0
----
1
98
21
108
81
96

query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col2 + + col0 * - 37 + + col0 FROM tab2 AS cor0
----
-1679
-2344
-2758

query I rowsort
SELECT ALL col2 * 24 AS col2 FROM tab1
----
1416
1632
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT ALL COUNT( * ) * + SUM( - col0 ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL COUNT ( * ) * + SUM ( - col0 ) FROM tab1
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT COUNT( ALL + col0 ) + 2 AS col0 FROM tab2 WHERE ( 90 ) NOT BETWEEN ( - 28 ) / 70 - col2 AND ( col0 * + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-7401
SELECT COUNT ( ALL + col0 ) + 2 AS col0 FROM tab2 WHERE ( 90 ) NOT BETWEEN ( - 28 ) / 70 - col2 AND ( col0 * + col1 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL + SUM( - 38 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL + SUM ( - 38 ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7403
SELECT + CAST( 9 AS SIGNED ) * col1 col2 FROM tab0 WHERE ( ( 50 ) * col1 ) BETWEEN - col2 AND - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7403
SELECT + CAST ( 9 AS INTEGER ) * col1 col2 FROM tab0 WHERE ( ( 50 ) * col1 ) BETWEEN - col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT col2 DIV - 15 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7404
SELECT col2 / - 15 AS col0 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT 80 + + 8 FROM tab1
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 + ( + 23 ) col0 FROM tab2
----
102
102
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab1 WHERE NULL IN ( - 99 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT + COUNT( * ) DIV SUM( ALL 55 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT + COUNT ( * ) / SUM ( ALL 55 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 / 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT - CAST( ( + 91 ) AS SIGNED ) + col0 AS col0 FROM tab1
----
-40
-6
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT - CAST ( ( + 91 ) AS INTEGER ) + col0 AS col0 FROM tab1
----
-40
-6
0

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT ( col2 ) NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7412
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 WHERE col1 + - CAST( 37 AS SIGNED ) * 13 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 WHERE col1 + - CAST ( 37 AS INTEGER ) * 13 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 72 FROM tab1 WHERE NOT + col0 IS NULL
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL COUNT( - 96 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL COUNT ( - 96 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE 7 * - col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT DISTINCT - SUM( col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT - SUM ( col0 ) FROM tab2
----
-185

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + 22 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7420
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / col1 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7420
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col0 FROM tab0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 * col1 col1 FROM tab2
----
-1127
-3016
-3811

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( 31 * 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT SUM( ALL 83 ) AS col0 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-7424
SELECT SUM ( ALL 83 ) AS col0 FROM tab0 AS cor0
----
249

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 63 ) < ( - col2 / - ( 26 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN ( col0 + - col1 ) AND NULL
----
14
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7427
SELECT CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7427
SELECT CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT COUNT( 66 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7428
SELECT COUNT ( 66 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT MAX( DISTINCT 64 ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7430
SELECT MAX ( DISTINCT 64 ) AS col1 FROM tab0 AS cor0
----
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 74 * - col0 FROM tab2 AS cor0
----
-3404
-4736
-5550

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT ALL 63 DIV 3 FROM tab2 cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL 63 / 3 FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT - COUNT( * ) * 81 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - COUNT ( * ) * 81 FROM tab0 AS cor0
----
-243

query I rowsort
SELECT ALL - col0 + - col2 AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT + ( + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7436
SELECT + ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 5 + + col2 FROM tab0 AS cor0
----
104
15
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN col1 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL + COUNT( ALL - ( col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL + COUNT ( ALL - ( col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 36 FROM tab0 AS cor0 WHERE ( + 67 ) BETWEEN + col2 AND ( + ( col2 ) + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT ALL - + 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - + col0 + 28 AS col0 FROM tab2 AS cor0
----
-18
-36
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col0 NOT BETWEEN + ( + 97 ) * - col0 AND col0 * 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + 40 * - 78 + COUNT( * ) col1 FROM tab1 AS cor0
----
-3117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7445
SELECT + 40 * - 78 + COUNT ( * ) col1 FROM tab1 AS cor0
----
-3117

onlyif mysql # aggregate syntax: 
query I rowsort label-7446
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab0 cor0 WHERE ( col2 * 93 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab0 cor0 WHERE ( col2 * 93 ) < NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7447
SELECT DISTINCT - SUM( DISTINCT + col1 ) + CAST( NULL AS SIGNED ) * 78 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - SUM ( DISTINCT + col1 ) + CAST ( NULL AS INTEGER ) * 78 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT DISTINCT SUM( - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7448
SELECT DISTINCT SUM ( - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT DISTINCT COUNT( * ) - MIN( col0 ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT COUNT ( * ) - MIN ( col0 ) AS col0 FROM tab0
----
-12

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE + ( + 58 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 * col2 AS col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL ( + col0 ) - - 64 FROM tab2
----
110
128
139

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 * col2 - - 40 * col1 ) BETWEEN col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL COUNT( * ) FROM tab1 WHERE col1 + 12 * 97 NOT BETWEEN ( NULL ) AND col1 * col2
----
1

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL COUNT ( * ) FROM tab1 WHERE col1 + 12 * 97 NOT BETWEEN ( NULL ) AND col1 * col2
----
1

query I rowsort
SELECT DISTINCT col0 * col0 * 97 AS col1 FROM tab1 AS cor0
----
252297
700825
803257

query I rowsort
SELECT ALL + 87 * + 99 FROM tab0 AS cor0
----
8613
8613
8613

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( 31 - - 0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT - - COUNT( DISTINCT + - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT - - COUNT ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7459
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - ( + - col1 ) * + col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT COUNT( * ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT COUNT ( * ) col0 FROM tab2
----
3

query I rowsort
SELECT 19 / - 45 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT - ( + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col2 * + - 27 FROM tab1 AS cor0
----
-1593
-1836
-2592

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT DISTINCT col1 * - col2 DIV + col2 + 65 FROM tab0 AS cor0
----
-16
44
64

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT col1 * - col2 / + col2 + 65 FROM tab0 AS cor0
----
-16
44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT 18 * - COUNT( * ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT 18 * - COUNT ( * ) FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7468
SELECT DISTINCT ( - COUNT( * ) ) DIV 87 AS col1 FROM tab1 AS cor0 WHERE NOT - 12 + + - 76 BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT ( - COUNT ( * ) ) / 87 AS col1 FROM tab1 AS cor0 WHERE NOT - 12 + + - 76 BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7469
SELECT COUNT( * ) * - MAX( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) < + col2 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT COUNT ( * ) * - MAX ( ALL + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) < + col2 * + col2
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL COUNT( 9 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL COUNT ( 9 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * + + col0 * - col2 * - col0 col1 FROM tab0
----
454140
5588946
63450

query I rowsort
SELECT ALL 33 * col0 * - ( + col2 ) AS col0 FROM tab2
----
-143550
-34914
-84480

query I rowsort
SELECT 2 AS col0 FROM tab0 WHERE NOT ( - col2 ) BETWEEN ( NULL ) AND ( 27 * - col2 )
----
2
2
2

query I rowsort
SELECT DISTINCT + 47 FROM tab2 WHERE NOT NULL >= + col0 + 15 + col1 * + 20 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7476
SELECT * FROM tab2 WHERE NOT + 76 = + + CAST( + col1 AS SIGNED ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7476
SELECT * FROM tab2 WHERE NOT + 76 = + + CAST ( + col1 AS INTEGER ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT COUNT( * ) DIV - 31 * 83 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7477
SELECT COUNT ( * ) / - 31 * 83 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT col1 * col0 + col2 / + 99 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IN ( ( + 59 ) )
----

skipif mysql # not compatible
query I rowsort label-7478
SELECT col1 * col0 + col2 / + 99 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IN ( ( + 59 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NULL <> 71
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col2 + + ( + + col1 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 20 + - col0 FROM tab0 AS cor0
----
-67
-77
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL 21 + - - 62 + - COUNT( * ) + 82 * + COUNT( DISTINCT col1 ) * - MAX( 27 + col1 ) FROM tab2
----
-25504

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL 21 + - - 62 + - COUNT ( * ) + 82 * + COUNT ( DISTINCT col1 ) * - MAX ( 27 + col1 ) FROM tab2
----
-25504

query I rowsort
SELECT 42 * - 14 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 37e9ec78c376614ce21291acb63ff3e1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT 84 DIV - col0 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7488
SELECT 84 / - col0 AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + 25 * + - col0 AS col0 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT DISTINCT - - 6 FROM tab0 cor0
----
6

query I rowsort
SELECT DISTINCT 37 * + 55 AS col2 FROM tab1 AS cor0 WHERE + col1 <= - col0 * + 86 * 95
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT - col2 * + - col2 * + ( - 81 ) + col1 FROM tab2 AS cor0
----
-129523
-272417
-42798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT ALL ( - ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0 WHERE + 84 NOT BETWEEN NULL AND + 65 * - col1 AND + col2 NOT BETWEEN ( col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0 WHERE + 84 NOT BETWEEN NULL AND + 65 * - col1 AND + col2 NOT BETWEEN ( col0 ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 * + + 15 + + col2 * - + 7 * col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7498
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
81

query II rowsort
SELECT DISTINCT - 78, - 36 AS col1 FROM tab0
----
-78
-36

query I rowsort
SELECT col2 FROM tab0 WHERE ( ( 89 ) NOT IN ( col0 ) )
----
10
47
99

query I rowsort
SELECT 17 * - 98 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7502
SELECT DISTINCT - COUNT( * ) AS col2, + 31 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
34

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT - COUNT ( * ) AS col2, + 31 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - - col2 * + ( col0 ) * + ( - col1 ) - 99 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7504
SELECT DISTINCT + col1 * - col1 + + 65 DIV 61 FROM tab1 AS cor0
----
-195
-2208
-24

skipif mysql # not compatible
query I rowsort label-7504
SELECT DISTINCT + col1 * - col1 + + 65 / 61 FROM tab1 AS cor0
----
-195
-2208
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT DISTINCT + MIN( + - col0 ) * + 50 FROM tab0
----
-4850

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT + MIN ( + - col0 ) * + 50 FROM tab0
----
-4850

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 WHERE - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 + - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 60 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 20 * - + col0 + + col1 * col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + - MIN( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7510
SELECT + - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT 74 FROM tab2 AS cor0 WHERE NOT + col1 * 37 >= - col2 * + + col2
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT 46 < NULL
----

query II rowsort
SELECT DISTINCT + 95 AS col1, + 6 FROM tab2
----
95
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 + - col1 NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 9 + col0 + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7517
SELECT + 36 DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT + 36 / + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT MAX( DISTINCT + 20 ) AS col0 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT MAX ( DISTINCT + 20 ) AS col0 FROM tab1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT ALL - 27 DIV + + 17 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - 27 / + + 17 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT - + COUNT( * ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - + COUNT ( * ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT - 36 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT - 36 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - col0 * col2 * + col1 FROM tab1 cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - MIN( ALL - + ( + col1 ) ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - MIN ( ALL - + ( + col1 ) ) AS col1 FROM tab2
----
77

query I rowsort
SELECT ALL - - 77 + + 48 - + 89 AS col2 FROM tab1 cor0 WHERE NOT 31 IS NOT NULL
----

query I rowsort
SELECT + 79 * + col0 + 52 AS col0 FROM tab1 cor0
----
4081
6767
7241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 72 col1 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT ALL col2 * + 64 * - col0 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
1169367
3654735
614689

query III rowsort
SELECT ALL * FROM tab0 WHERE + 51 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT - - COUNT( * ) FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND + col0 * 6
----
0

skipif mysql # not compatible
query I rowsort label-7530
SELECT - - COUNT ( * ) FROM tab2 WHERE ( + col1 ) NOT BETWEEN NULL AND + col0 * 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL - SUM( - - 41 ) - + 7 col2 FROM tab2
----
-130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7531
SELECT ALL - SUM ( - - 41 ) - + 7 col2 FROM tab2
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT MAX( + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7532
SELECT MAX ( + col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT + ( - 12 ) FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT ALL COUNT( DISTINCT + - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL COUNT ( DISTINCT + - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT COUNT( 29 ) * - 10 * + COUNT( * ) - + 67 AS col1 FROM tab2
----
-157

skipif mysql # not compatible
query I rowsort label-7535
SELECT COUNT ( 29 ) * - 10 * + COUNT ( * ) - + 67 AS col1 FROM tab2
----
-157

query I rowsort
SELECT + col1 - + 68 AS col1 FROM tab2
----
-1
-17
9

query I rowsort
SELECT ALL col1 - + - col2 AS col1 FROM tab0
----
100
128
31

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col0 + col0, - 82 * - + col2 )
----

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, - 78 FROM tab0
----
-10
-78
-47
-78
-99
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT - SUM( + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7542
SELECT - SUM ( + col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7543
SELECT DISTINCT + - COUNT( * ) FROM tab2 cor0 WHERE CAST( - 76 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT + - COUNT ( * ) FROM tab2 cor0 WHERE CAST ( - 76 AS INTEGER ) IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT + col0, - col0 + - 55 AS col1 FROM tab1 AS cor0
----
51
-106
85
-140
91
-146

query II rowsort
SELECT DISTINCT - 94 AS col2, + col1 AS col1 FROM tab0 AS cor0
----
-94
1
-94
21
-94
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col2 ) * + col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT - col2 AS col1, - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 25 AS col0, - col0 FROM tab0 AS cor0
----
25
-15
25
-87
25
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL - COUNT( DISTINCT - + col2 ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL - COUNT ( DISTINCT - + col2 ) * COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7553
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 7 col0 FROM tab2
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - 93 * MIN( DISTINCT + col1 ) FROM tab2
----
-4743

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - 93 * MIN ( DISTINCT + col1 ) FROM tab2
----
-4743

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - + 97
----

query II rowsort
SELECT col0 * - - 92, col1 FROM tab2
----
4232
51
5888
77
6900
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT - 27 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT - 27 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT SUM( ALL col2 ) * - 5 AS col0 FROM tab2
----
-605

skipif mysql # not compatible
query I rowsort label-7560
SELECT SUM ( ALL col2 ) * - 5 AS col0 FROM tab2
----
-605

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT + - 6 DIV - + col1 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7561
SELECT + - 6 / - + col1 + + col2 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL ( 84 ) AS col2 FROM tab1 AS cor0
----
84
84
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 / col0 BETWEEN + 74 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT ( + - col2 ) + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT ( + - col2 ) + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 NOT IN ( + col1, col1, col0 )
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 AS cor0 WHERE NOT - 14 BETWEEN NULL AND 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 - col0 col2 FROM tab1 cor0 WHERE ( NOT ( col1 * + 92 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 - - 92 + + + col1 AS col0 FROM tab1 AS cor0
----
156
202
207

query I rowsort
SELECT DISTINCT col1 + - + col0 + - col2 * - col0 FROM tab0 AS cor0
----
771
804
9507

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT - - 11 + + - COUNT( * ) FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-7572
SELECT - - 11 + + - COUNT ( * ) FROM tab2 cor0
----
8

query I rowsort
SELECT + + ( col1 ) + - - col2 FROM tab2 AS cor0 WHERE 51 + 1 IS NULL
----

query II rowsort
SELECT col0 + - col0 + + + col0 * + 11 AS col2, + col1 + + - col0 + - 63 AS col2 FROM tab1
----
1001
-107
561
-100
935
-143

query I rowsort
SELECT DISTINCT - 60 + - col0 + + 29 AS col2 FROM tab2
----
-106
-77
-95

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + + 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 12 - - col2 - 84 AS col1 FROM tab0
----
-25
-62
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7578
SELECT + MAX( DISTINCT + col1 ) + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT + MAX ( DISTINCT + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7579
SELECT - col0 DIV - + col0 + col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-7579
SELECT - col0 / - + col0 + col0 FROM tab0
----
16
88
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT DISTINCT + col2 * 35 DIV - ( - 11 ) - + + col1 FROM tab0
----
10
314
68

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT + col2 * 35 / - ( - 11 ) - + + col1 FROM tab0
----
10
314
68

query I rowsort
SELECT + col1 + + + col2 * - + col0 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT - 54 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 92 / - ( col1 ) * - - 58 * ( - col0 ) * + + col1 + + 79 + + col1 AND - 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7583
SELECT DISTINCT - + 27 DIV - 44 * + 30 + 30 * - col2 * - col1 FROM tab1 AS cor0
----
40320
8850
95880

skipif mysql # not compatible
query I rowsort label-7583
SELECT DISTINCT - + 27 / - 44 * + 30 + 30 * - col2 * - col1 FROM tab1 AS cor0
----
40320
8850
95880

query I rowsort
SELECT - 10 * - - col0 FROM tab2 AS cor0
----
-460
-640
-750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7585
SELECT ALL * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7585
SELECT ALL * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + + ( col2 ) * 81 AS col0 FROM tab1 AS cor0
----
4779
5508
7776

query I rowsort
SELECT + col2 * 17 * 38 FROM tab0 AS cor0
----
30362
63954
6460

query I rowsort
SELECT ( + 80 ) AS col1 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT - 23 AS col0 FROM tab0 cor0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 * + 62 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 + - - 8 FROM tab2 AS cor0
----
-2292
-4856
-4942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7592
SELECT ( col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ( col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 73 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND - col0
----

query I rowsort
SELECT - col2 + 81 FROM tab1 AS cor0
----
-15
13
22

query II rowsort
SELECT col2, col1 AS col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT COUNT( * ) AS col0, 83 * - + 10 AS col0 FROM tab1
----
3
-830

skipif mysql # not compatible
query II rowsort label-7596
SELECT COUNT ( * ) AS col0, 83 * - + 10 AS col0 FROM tab1
----
3
-830

query II rowsort
SELECT ALL col2, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT ALL + col1, 37 FROM tab2
----
51
37
67
37
77
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT ALL - 92 AS col1, COUNT( * ) FROM tab1
----
-92
3

skipif mysql # not compatible
query II rowsort label-7599
SELECT ALL - 92 AS col1, COUNT ( * ) FROM tab1
----
-92
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / col2 * + 46 NOT IN ( - ( + 71 ) - - 77, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL - ( - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - ( - COUNT ( * ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT MIN( - - col2 ) * - + MIN( - col1 ) FROM tab2
----
1771

skipif mysql # not compatible
query I rowsort label-7602
SELECT MIN ( - - col2 ) * - + MIN ( - col1 ) FROM tab2
----
1771

query I rowsort
SELECT DISTINCT + col0 + + - 76 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-61
11
21

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 14 + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 14 + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT + COUNT( * ) + + 19 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT + COUNT ( * ) + + 19 FROM tab1
----
22

query I rowsort
SELECT col0 + - + col0 * - col0 - - col0 FROM tab0 AS cor0
----
255
7743
9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) + - - 96 IN ( - 8 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT ALL + - col2 * col0 DIV + col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + - col2 * col0 / + col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - + ( - col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT DISTINCT col2 + 92 * - col2 FROM tab0 AS cor0
----
-4277
-9009
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT ALL col0 DIV col1 * + col0 - + - col0 + col2 * + 37 col1 FROM tab1 AS cor0
----
2698
3713
3756

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7613
SELECT ALL col0 / col1 * + col0 - + - col0 + col2 * + 37 col1 FROM tab1 AS cor0
----
2698
3713
3756

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 64 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 * + - col2 + 35 AS col2 FROM tab0 cor0
----
-152
-2189
-9863

query I rowsort
SELECT ALL col1 * - - ( col1 ) AS col0 FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 - + 28 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT COUNT( * ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7618
SELECT COUNT ( * ) FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1, tab1 cor0
----
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-7620
SELECT + col0 AS col0, col1 DIV - + 43 AS col2 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-7620
SELECT + col0 AS col0, col1 / - + 43 AS col2 FROM tab2
----
46
-1
64
-1
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT + COUNT( - - col1 ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + COUNT ( - - col1 ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + + - col1 * - 37 BETWEEN - 7 AND 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT MIN( ALL - 12 ) col1 FROM tab1
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7623
SELECT MIN ( ALL - 12 ) col1 FROM tab1
----
-12

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 WHERE NULL NOT IN ( col2, col2, + ( + - col1 ) )
----

query I rowsort
SELECT + 75 * - 27 FROM tab2 AS cor0
----
-2025
-2025
-2025

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7626
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7626
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + COUNT( DISTINCT - + 41 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT + COUNT ( DISTINCT - + 41 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT - col2 * 96 DIV + col0 AS col2 FROM tab0
----
-11
-300
-97

skipif mysql # not compatible
query I rowsort label-7629
SELECT - col2 * 96 / + col0 AS col2 FROM tab0
----
-11
-300
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + COUNT( * ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7630
SELECT ALL + COUNT ( * ) col1 FROM tab2
----
3

query I rowsort
SELECT + col1 * col0 * 97 * + - col2 AS col0 FROM tab0
----
-1772190
-5539185
-931491

query I rowsort
SELECT ALL - - 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + 86 * col0 FROM tab1
----
4386
7310
7826

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT DISTINCT + - col1 DIV + + col0 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT + - col1 / + + col0 AS col1 FROM tab2 AS cor0
----
-1
0

query II rowsort
SELECT DISTINCT - col0 + + ( - - 34 ), 15 AS col0 FROM tab2 AS cor0 WHERE ( NOT 91 * + - col0 - + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT ALL - - MAX( - 56 ) FROM tab2 cor0
----
-56

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL - - MAX ( - 56 ) FROM tab2 cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7637
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 32, - 7 col1 FROM tab1 AS cor0
----
NULL
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7637
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 32, - 7 col1 FROM tab1 AS cor0
----
NULL
-7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 10 * - 11 * col0 * + 19 < NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * 78 FROM tab1
----
4602
5304
7488

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7643
SELECT + CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT + CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT - CAST( NULL AS SIGNED ) + + + 37 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT - CAST ( NULL AS INTEGER ) + + + 37 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col2 * col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT 13 + 72 FROM tab0
----
85
85
85

query I rowsort
SELECT col2 + - - ( - + 79 ) AS col1 FROM tab2
----
-21
-39
-56

query I rowsort
SELECT + 82 + - col0 + - col2 * - - col1 AS col1 FROM tab2
----
-1137
-3062
-3879

query I rowsort
SELECT DISTINCT col1 - + + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT - CAST( - ( 1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7651
SELECT - CAST ( - ( 1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7652
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7652
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * - col2 + + + col0 + + 89 * + ( 47 ) - - col0 * - 96 * + 9 FROM tab0 AS cor0
----
-71768
-89131
-9467

query II rowsort
SELECT - col1, - 15 - - col2 * - col0 * - + col0 + + + col2 AS col1 FROM tab0
----
-1
931575
-21
75685
-81
10607

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT 89 - COUNT( * ) + - 68 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7655
SELECT 89 - COUNT ( * ) + - 68 FROM tab0
----
18

query I rowsort
SELECT ALL col0 - - - 61 AS col1 FROM tab2 cor0
----
-15
14
3

query II rowsort
SELECT DISTINCT + col2 AS col1, 24 AS col1 FROM tab1 AS cor0
----
59
24
68
24
96
24

query I rowsort
SELECT DISTINCT + + col0 + 73 AS col0 FROM tab1 cor0
----
124
158
164

query I rowsort
SELECT ( col2 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 15 col1 FROM tab2 AS cor0
----
-61
-79
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL + + SUM( + ( col0 ) ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL + + SUM ( + ( col0 ) ) FROM tab2 cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ALL - 7 * - COUNT( * ) col1 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7662
SELECT ALL - 7 * - COUNT ( * ) col1 FROM tab1 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 97 col1, - 94 FROM tab2 AS cor0
----
-97
-94
-97
-94
-97
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7665
SELECT col2 DIV + col0 col0, + col1 AS col1 FROM tab1
----
0
47
0
5
1
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7665
SELECT col2 / + col0 col0, + col1 AS col1 FROM tab1
----
0
47
0
5
1
14

query II rowsort
SELECT col1 * + col2, + col0 FROM tab0
----
210
87
3807
15
99
97

query II rowsort
SELECT ALL - col2 * + col2 AS col1, col2 + col0 FROM tab2
----
-1600
104
-3364
133
-529
69

query I rowsort
SELECT ALL + + 81 * col2 + + col0 FROM tab2 AS cor0
----
1909
3304
4773

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT SUM( 88 ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT SUM ( 88 ) AS col1 FROM tab2
----
264

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 12 * - - col1 * - 89 FROM tab0
----
-1068
-22428
-86508

onlyif mysql # DIV for integer division: 
query I rowsort label-7672
SELECT ALL col2 DIV + - 8 FROM tab2
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL col2 / + - 8 FROM tab2
----
-2
-5
-7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT DISTINCT - 72 DIV + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7674
SELECT DISTINCT - 72 / + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7675
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * + col0, + col2 / + CAST( + 25 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7675
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 * + col0, + col2 / + CAST ( + 25 AS INTEGER ) )
----

query II rowsort
SELECT 5 + - 6 * - + col1 + - + 68 + col0 * + + col1, ( - ( - - 89 ) ) * + - col0 + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
1638
1416
1890
7764
40
8634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT ALL col1 + CAST( - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT ALL col1 + CAST ( - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 49 * + col0 + - - col0 + - - 38 + - col0 FROM tab0 AS cor0
----
4301
4791
773

query I rowsort
SELECT DISTINCT col2 + - col0 * col2 + - col1 AS col0 FROM tab1
----
-4814
-4961
-6167

onlyif mysql # DIV for integer division: 
query II rowsort label-7681
SELECT ALL - ( - 13 ) DIV col0 - col0 * + - col0 AS col0, col0 FROM tab2
----
2116
46
4096
64
5625
75

skipif mysql # not compatible
query II rowsort label-7681
SELECT ALL - ( - 13 ) / col0 - col0 * + - col0 AS col0, col0 FROM tab2
----
2116
46
4096
64
5625
75

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT - ( + COUNT( * ) ) DIV - SUM( 75 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT - ( + COUNT ( * ) ) / - SUM ( 75 ) FROM tab1
----
0

query I rowsort
SELECT - col2 * col2 - + - col2 * + 43 FROM tab0 AS cor0
----
-188
-5544
330

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN + - 53 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7686
SELECT ALL CAST( NULL AS SIGNED ) + 5 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL CAST ( NULL AS INTEGER ) + 5 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 26 - - col1 FROM tab2
----
103
77
93

query III rowsort
SELECT * FROM tab0 WHERE - 45 * - - 3 * col1 + - - 89 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7689
SELECT DISTINCT ( - MIN( CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT ( - MIN ( CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT - MIN( - - 26 ) col0 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7690
SELECT - MIN ( - - 26 ) col0 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7691
SELECT + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7692
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT + MIN( + 86 ) FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT + MIN ( + 86 ) FROM tab1 AS cor0
----
86

query I rowsort
SELECT DISTINCT + 26 FROM tab0 AS cor0 WHERE NOT + 47 - - 1 IS NOT NULL
----

query I rowsort
SELECT col2 * + + 25 FROM tab1 AS cor0
----
1475
1700
2400

query I rowsort
SELECT ALL + + col2 - - 30 FROM tab2 AS cor0 WHERE ( NOT - - col2 IS NOT NULL )
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col2 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 73 + 13, + col1 + + + 89 - + + col0, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 50 col2, + 82 col1 FROM tab0
----
50
82
50
82
50
82

query I rowsort
SELECT ALL 36 * + col1 * - col0 AS col1 FROM tab1
----
-15300
-153972
-25704

query III rowsort
SELECT ALL * FROM tab0 WHERE 62 - - - col2 + ( + - col1 ) * - col1 + col1 * - 35 * - - 51 IS NULL
----

query I rowsort
SELECT ALL 2 * + col1 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7703
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT - COUNT( * ) * + - 48 FROM tab2 WHERE NOT + + ( - + col2 ) IS NULL
----
144

skipif mysql # not compatible
query I rowsort label-7704
SELECT - COUNT ( * ) * + - 48 FROM tab2 WHERE NOT + + ( - + col2 ) IS NULL
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 28 ) col0 FROM tab0
----
28
28
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT ALL + 22 DIV - - COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7706
SELECT ALL + 22 / - - COUNT ( * ) FROM tab2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7707
SELECT ALL CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7707
SELECT ALL CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab2
----
NULL
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 29 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT + 41 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT + 41 / col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT COUNT( * ) * + ( + 79 ) * MIN( ALL + - col1 ) FROM tab0
----
-19197

skipif mysql # not compatible
query I rowsort label-7710
SELECT COUNT ( * ) * + ( + 79 ) * MIN ( ALL + - col1 ) FROM tab0
----
-19197

query I rowsort
SELECT 56 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT - COUNT( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE - col2 / - col1 = ( + - ( - + col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 cor0 WHERE - col2 / - col1 = ( + - ( - + col0 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT DISTINCT CAST( + 60 AS SIGNED ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT CAST ( + 60 AS INTEGER ) FROM tab2 AS cor0
----
60

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 20 + + + col2 IN ( + ( - col2 ) * + col0 * - col2, col2 * 60, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT COUNT( 52 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7715
SELECT COUNT ( 52 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT DISTINCT - 16 DIV - col1 AS col1 FROM tab0
----
0
16

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - 16 / - col1 AS col1 FROM tab0
----
0
16

query II rowsort
SELECT ALL + col2 + + col0 + - 49 AS col0, 53 AS col2 FROM tab1
----
110
53
95
53
98
53

query II rowsort
SELECT ALL 94, 0 * + col1 AS col0 FROM tab2
----
94
0
94
0
94
0

query I rowsort
SELECT - col0 + col0 * + - 15 AS col0 FROM tab0
----
-1392
-1552
-240

query I rowsort
SELECT - 8 + + - 97 FROM tab0
----
-105
-105
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 1 col1, col0 * - 46 AS col0 FROM tab0
----
1
-4002
1
-4462
1
-690

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 66 * + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab2 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 7 * col0 / - - 34 * 94 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 7 * col0 / - - 34 * 94 <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7727
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 57 col0, col1 + - col1 + - - col2 AS col2 FROM tab1 WHERE NULL > - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 44 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT COUNT( ALL col0 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7730
SELECT COUNT ( ALL col0 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT + + col0 * - - 56 * - col1 FROM tab2 AS cor0
----
-131376
-275968
-281400

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 4 + - 56 - - col2
----

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab2 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT SUM( DISTINCT - col2 ) * - COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-7734
SELECT SUM ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab1
----
669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7735
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7735
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL + col1 * 23 FROM tab0
----
1863
23
483

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 45 * 96 AS col0 FROM tab1
----
-4320
-4320
-4320

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab2
----
-76

query II rowsort
SELECT DISTINCT + 1 AS col2, col1 FROM tab1
----
1
14
1
47
1
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7742
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7742
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL 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-7743
SELECT ALL SUM ( col1 ) col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7744
SELECT COUNT ( col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 83 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN + - 83 AND NULL
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 16 - + 42 + - col0 BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7749
SELECT ALL 76 AS col0, COUNT( * ) * + 46 FROM tab1
----
76
138

skipif mysql # not compatible
query II rowsort label-7749
SELECT ALL 76 AS col0, COUNT ( * ) * + 46 FROM tab1
----
76
138

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE + 84 <= col2
----
-14

query II rowsort
SELECT ALL + 65, - col2 AS col2 FROM tab0 AS cor0
----
65
-10
65
-47
65
-99

query I rowsort
SELECT - 68 + - col0 - ( ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
-55
-63
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT - 72 + + MIN( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7754
SELECT - 72 + + MIN ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7755
SELECT col2 + - col2 + + CAST( NULL AS SIGNED ) + - 81 * + CAST( NULL AS SIGNED ) / - 47 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7755
SELECT col2 + - col2 + + CAST ( NULL AS INTEGER ) + - 81 * + CAST ( NULL AS INTEGER ) / - 47 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT + CAST( + 73 AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7756
SELECT + CAST ( + 73 AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
76

query I rowsort
SELECT ALL - 55 + col2 AS col0 FROM tab2
----
-15
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT + 22 + - 30 + + COUNT( * ) col0 FROM tab2
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7758
SELECT DISTINCT + 22 + - 30 + + COUNT ( * ) col0 FROM tab2
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col0 col2 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT - ( - + 7 ) AS col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7760
SELECT - ( - + 7 ) AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 37 + + - 4 * + - 40 FROM tab1
----
197
197
197

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT + ( - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7763
SELECT + ( - COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT + COUNT( * ) - - 52 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT + COUNT ( * ) - - 52 FROM tab0
----
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + col2 * - col1 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7766
SELECT ALL - ( - 53 ) DIV CAST( 47 AS SIGNED ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL - ( - 53 ) / CAST ( 47 AS INTEGER ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 93 + - - 7 AS col2 FROM tab1 cor0
----
100
100
100

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 IN ( - 68, col2, - ( col2 ) + + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - MIN( + 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-7769
SELECT - MIN ( + 73 ) FROM tab2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT ALL + 59 * - COUNT( * ) FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + 59 * - COUNT ( * ) FROM tab2 AS cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7771
SELECT - CAST( - ( - col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7771
SELECT - CAST ( - ( - col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT ALL - col2 * + 36 - - CAST( - 69 AS SIGNED ) FROM tab1 AS cor0
----
-2193
-2517
-3525

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL - col2 * + 36 - - CAST ( - 69 AS INTEGER ) FROM tab1 AS cor0
----
-2193
-2517
-3525

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT - - 40 DIV - col0 AS col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7773
SELECT - - 40 / - col0 AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT DISTINCT COUNT( * ) DIV - 24 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT COUNT ( * ) / - 24 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 45 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL - COUNT( DISTINCT + - 94 ) + + + ( - MAX( - col2 ) ) FROM tab0 AS cor0 WHERE NOT col1 * - + 39 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - COUNT ( DISTINCT + - 94 ) + + + ( - MAX ( - col2 ) ) FROM tab0 AS cor0 WHERE NOT col1 * - + 39 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2 cor0
----
72

query I rowsort
SELECT DISTINCT col1 * - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + ( 51 ) * + - col1 * 6 * - 82 AS col2 FROM tab1
----
1179324
125460
351288

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT + MAX( DISTINCT 62 ) AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + MAX ( DISTINCT 62 ) AS col0 FROM tab0
----
62

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> ( + - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT DISTINCT - COUNT( col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7784
SELECT DISTINCT - COUNT ( col1 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT CAST( - - col2 AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7785
SELECT CAST ( - - col2 AS INTEGER ) FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 51 AND - 52 * col1
----

query I rowsort
SELECT ( + + 61 ) * 90 * + ( - AVG ( + 82 ) ) AS col1 FROM tab1 cor0 WHERE NOT + 2 IS NOT NULL
----
NULL

query I rowsort
SELECT - ( - 25 ) AS col1 FROM tab1
----
25
25
25

query I rowsort
SELECT col0 * ( + 78 ) AS col1 FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT COUNT( ALL - 56 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT COUNT ( ALL - 56 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT - 27 * + ( - COUNT( * ) ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7792
SELECT - 27 * + ( - COUNT ( * ) ) FROM tab2
----
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN ( + ( + col0 ) ) AND col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT - + COUNT( * ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7794
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab1 cor0
----
-3

query II rowsort
SELECT ALL - + col2 + + - 56 + - col1 AS col1, - col2 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-130
0
-173
0
-181
0

query I rowsort
SELECT - ( + col1 ) * col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT + - col2 + + ( col0 ) FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - + col2 * col2 + + col2 + - 66 FROM tab1 AS cor0
----
-3488
-4622
-9186

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + + 71 FROM tab0 cor0
----
118
170
81

query I rowsort
SELECT col0 * + col0 + + col1 + - col2 AS col2 FROM tab1 AS cor0
----
2519
7171
8260

query I rowsort
SELECT DISTINCT + ( - - col0 ) + col2 + + col2 AS col2 FROM tab1 AS cor0
----
203
227
243

query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query II rowsort
SELECT col2 + - col2, 20 AS col0 FROM tab2
----
0
20
0
20
0
20

query I rowsort
SELECT ALL 1 + - 30 FROM tab0
----
-29
-29
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7806
SELECT DISTINCT - 21 - + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT - 21 - + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + + col1 * - - 75 + - col0 AS col1 FROM tab2
----
3733
4875
5647

query I rowsort
SELECT ALL - 38 * - - col2 * + col1 FROM tab1
----
-11210
-121448
-51072

query I rowsort
SELECT - col1 FROM tab1 WHERE + + col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * col1 - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ( COUNT( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7812
SELECT ( COUNT ( * ) ) AS col2 FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE ( NOT ( + ( + col0 ) = NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT ALL + 67 DIV - + col1 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7814
SELECT ALL + 67 / - + col1 col0 FROM tab2 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 5 / - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL + COUNT( * ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + + 58 * + ( - 98 ) AS col2 FROM tab1 AS cor0
----
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - COUNT( * ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7818
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * + col1 * 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 50 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col0 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT DISTINCT - 32 DIV - - col1 * - + col1 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - 32 / - - col1 * - + col1 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - + 3 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL COUNT( * ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7824
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 col2 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - 85 FROM tab1 cor0 WHERE NULL IS NULL
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 col1 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - - col1 * col2 * 48 AS col0 FROM tab1 AS cor0
----
14160
153408
64512

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT ALL - 93 + + - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - 93 + + - COUNT ( * ) FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL MAX( ALL - - col0 ) * + - COUNT( * ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL MAX ( ALL - - col0 ) * + - COUNT ( * ) AS col1 FROM tab1
----
-273

query I rowsort
SELECT ALL ( - ( + col1 ) ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 - col1 + + - 89 IN ( + col2, 15 - - 60 + col1 * - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT + + COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7833
SELECT + + COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - AVG ( DISTINCT + - 85 ) - 99 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT col0 DIV + 71 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7835
SELECT col0 / + 71 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col2 FROM tab0 WHERE + 22 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT col2 * CAST( NULL AS SIGNED ) + + col2 + - col2 + + 90 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT col2 * CAST ( NULL AS INTEGER ) + + col2 + - col2 + + 90 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + MIN( + + 97 ) + + + 52 AS col2 FROM tab2 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-7838
SELECT + MIN ( + + 97 ) + + + 52 AS col2 FROM tab2 AS cor0
----
149

query I rowsort
SELECT ALL + col2 + - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query II rowsort label-7840
SELECT ALL + ( - col1 ) * + col0 + + + 70 DIV col0 AS col1, 71 AS col2 FROM tab2 AS cor0
----
-2345
71
-4927
71
-5025
71

skipif mysql # not compatible
query II rowsort label-7840
SELECT ALL + ( - col1 ) * + col0 + + + 70 / col0 AS col1, 71 AS col2 FROM tab2 AS cor0
----
-2345
71
-4927
71
-5025
71

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 59 + col1 AS col2 FROM tab1 AS cor0
----
-12
-45
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - 8 * - COUNT( * ) FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-7843
SELECT - 8 * - COUNT ( * ) FROM tab0 cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7844
SELECT ALL + + 23 + 96 + + SUM( + col0 ) AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
318
3

skipif mysql # not compatible
query II rowsort label-7844
SELECT ALL + + 23 + 96 + + SUM ( + col0 ) AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
318
3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7846
SELECT ALL + CAST( - + 35 AS SIGNED ) - - 95 - - col1 * + 15 FROM tab1
----
135
270
765

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL + CAST ( - + 35 AS INTEGER ) - - 95 - - col1 * + 15 FROM tab1
----
135
270
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 + ( col2 ) col1 FROM tab2
----
-2
-20
-37

query I rowsort
SELECT ALL col1 * - 72 + + ( col0 ) FROM tab0
----
-1425
-5817
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT - 51 * + + COUNT( * ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - 51 * + + COUNT ( * ) AS col0 FROM tab1
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7850
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7851
SELECT - + CAST( NULL AS SIGNED ) * COUNT( - col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT - + CAST ( NULL AS INTEGER ) * COUNT ( - col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 47 / col1 + - - col2 - - 54 + + - ( col1 ) + 10 * + 49 * 69 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT + ( + col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT + ( + col0 ) <= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT MAX( - col1 ) * + + COUNT( * ) - + 29 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-7857
SELECT MAX ( - col1 ) * + + COUNT ( * ) - + 29 FROM tab0
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7858
SELECT 19 * + col2 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT 19 * + col2 * - + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL - 15 DIV - - 11 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - 15 / - - 11 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT + + SUM( ALL - col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7860
SELECT + + SUM ( ALL - col1 ) col1 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT ALL + col2, col1 * - 17 AS col1 FROM tab0 AS cor0
----
10
-357
47
-1377
99
-17

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 37 + + col1 col1 FROM tab2 cor0
----
104
114
88

query II rowsort
SELECT DISTINCT - - 90 AS col0, col0 FROM tab2 AS cor0
----
90
46
90
64
90
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 3 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL 98 + - ( + - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL 98 + - ( + - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
101

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT CAST( - - COUNT( * ) AS SIGNED ) * 63 * - 46 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) * 63 * - 46 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( - 98 ) IS NOT NULL )
----

query I rowsort
SELECT - col1 + - 38 - 4 + + - col1 * col2 + col2 FROM tab0
----
-263
-3883
-43

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL + - col1 + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT + - 95 FROM tab1 cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT MAX( DISTINCT + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7875
SELECT MAX ( DISTINCT + col1 ) AS col2 FROM tab1
----
47

query II rowsort
SELECT ( - - 95 ) * col2 AS col2, col0 AS col2 FROM tab0
----
4465
15
9405
97
950
87

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT JOIN tab2 AS cor1 ON NOT ( NOT ( NULL ) IS NOT NULL )
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 69 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2, ( + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - 48 * - col1 col2 FROM tab2 AS cor0
----
46
2448
64
3696
75
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT ( - 70 ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7881
SELECT DISTINCT ( - 70 ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT 27 * - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 + 33, 95, + col1 )
----

query I rowsort
SELECT DISTINCT 61 + col1 AS col2 FROM tab0 AS cor0
----
142
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT MAX( + 58 ) + - - SUM( - 59 ) FROM tab0 cor0
----
-119

skipif mysql # not compatible
query I rowsort label-7884
SELECT MAX ( + 58 ) + - - SUM ( - 59 ) FROM tab0 cor0
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT ALL col0 + + - 58 DIV - 15 AS col0 FROM tab0
----
100
18
90

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL col0 + + - 58 / - 15 AS col0 FROM tab0
----
100
18
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT 69 + - + col1 DIV col0 * + col0 FROM tab2
----
23
5
69

skipif mysql # not compatible
query I rowsort label-7886
SELECT 69 + - + col1 / col0 * + col0 FROM tab2
----
23
5
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + COUNT( DISTINCT col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7887
SELECT + COUNT ( DISTINCT col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL col0 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL col0 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT ( + 38 ), - ( + col2 ) AS col1 FROM tab0
----
38
-10
38
-47
38
-99

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab0
----
-35

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 4 * col0 IS NOT NULL
----

query I rowsort
SELECT + + 60 * - - col1 * 13 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 + col1 col1, col2 FROM tab2 WHERE NULL IS NULL
----
141
40
142
58
97
23

query I rowsort
SELECT + col1 * col2 * - col2 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7895
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7895
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, - 16 col0 FROM tab1
----
14
-16
47
-16
5
-16

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT col2 * + - 91 * + + col1 + + 23 AS col0 FROM tab2 AS cor0
----
-106720
-280257
-353603

query I rowsort
SELECT ALL + - ( - + col2 ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 53 + - 18 FROM tab0 AS cor0
----
-71
-71
-71

query II rowsort
SELECT ALL - col0 + - + col0 + - + col2, col2 AS col0 FROM tab0 AS cor0 WHERE NULL < + col1
----

query I rowsort
SELECT ALL col0 * ( - - 48 ) + - col0 AS col0 FROM tab2 AS cor0
----
2162
3008
3525

query I rowsort
SELECT 75 * 84 FROM tab2
----
6300
6300
6300

query I rowsort
SELECT - + 6 FROM tab0 WHERE NULL IS NULL
----
-6
-6
-6

query II rowsort
SELECT - 9 AS col2, + col1 FROM tab2
----
-9
51
-9
67
-9
77

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL + ( 79 ) + - - 4 FROM tab1 AS cor0
----
83
83
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7910
SELECT - + ( - col0 ) DIV + 29 + - - col2 * 76 + + col1 + + col0 col2 FROM tab1 AS cor0
----
4576
5309
7362

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7910
SELECT - + ( - col0 ) / + 29 + - - col2 * 76 + + col1 + + col0 col2 FROM tab1 AS cor0
----
4576
5309
7362

query I rowsort
SELECT DISTINCT + col2 + 12 FROM tab0 AS cor0
----
111
22
59

query I rowsort
SELECT ALL col2 + - + col0 AS col0 FROM tab0
----
-77
2
32

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT ALL - COUNT( * ) - - + COUNT( - ( + - col2 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - COUNT ( * ) - - + COUNT ( - ( + - col2 ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 * + col1 * 2 FROM tab1 AS cor0
----
-392
-4418
-50

query II rowsort
SELECT col2 * col1 AS col1, + 97 AS col0 FROM tab2 cor0
----
1173
97
3080
97
3886
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7917
SELECT ALL COUNT( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) / col0 - - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL COUNT ( - + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) / col0 - - CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL + + 30 FROM tab1 AS cor0
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) >= - col1 + col0 + - - col2 )
----

query I rowsort
SELECT DISTINCT + ( + 4 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT + COUNT( * ) FROM tab0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7921
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NULL
----
3

query II rowsort
SELECT DISTINCT + 82 AS col2, 69 FROM tab2
----
82
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT ALL + COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7923
SELECT ALL + COUNT ( * ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 89 BETWEEN - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 - + 73 FROM tab1
----
-124
-158
-164

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( col0 / col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT DISTINCT COUNT( * ) + 78 AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT COUNT ( * ) + 78 AS col0 FROM tab1
----
81

query I rowsort
SELECT DISTINCT col2 + + 66 FROM tab0
----
113
165
76

query I rowsort
SELECT + col0 - 25 FROM tab1
----
26
60
66

query I rowsort
SELECT DISTINCT 2 * col2 AS col2 FROM tab0 WHERE 68 / + col1 > ( + 68 / col2 )
----
198

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7933
SELECT DISTINCT * FROM tab2 WHERE ( + 95 / col0 ) > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7933
SELECT DISTINCT * FROM tab2 WHERE ( + 95 / col0 ) > CAST ( NULL AS REAL )
----

query I rowsort
SELECT + ( ( - ( - col0 ) ) ) AS col2 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 / - col2 col2 FROM tab2 WHERE col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7937
SELECT + CAST( - col2 AS SIGNED ) col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7937
SELECT + CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 + - col0 * + col2 AS col0 FROM tab2
----
-1081
-2600
-4408

query I rowsort
SELECT DISTINCT 27 + col1 FROM tab2 WHERE col2 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL + COUNT( * ) + - 85 AS col1 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL + COUNT ( * ) + - 85 AS col1 FROM tab2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT COUNT( * ) * + 6 AS col2 FROM tab0 WHERE NULL >= + 51
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT COUNT ( * ) * + 6 AS col2 FROM tab0 WHERE NULL >= + 51
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col0 >= col1 + - col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= + 2 + col1 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 99 * col0 AS col0 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT ALL ( 37 ) + col0 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 7 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 80 + 18 < ( NULL )
----

query I rowsort
SELECT ALL + col0 + - 14 AS col0 FROM tab0
----
1
73
83

query I rowsort
SELECT - col2 - - col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT ALL - 88 + - 89 FROM tab2
----
-177
-177
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT CAST( - col0 AS SIGNED ) * - 61 AS col0 FROM tab2
----
2806
3904
4575

skipif mysql # not compatible
query I rowsort label-7951
SELECT CAST ( - col0 AS INTEGER ) * - 61 AS col0 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL - MIN( DISTINCT - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT DISTINCT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col1 FROM tab2 WHERE col0 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 72 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 15 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7957
SELECT ALL * FROM tab0 WHERE - CAST( col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7957
SELECT ALL * FROM tab0 WHERE - CAST ( col2 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + 11 ) - + col0 FROM tab0
----
-4
-76
-86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 + + 18 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 9 + + col0 * + 87 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL - MAX( col2 ) * COUNT( CAST( NULL AS SIGNED ) * - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 33 * col1 NOT BETWEEN ( 83 + - 11 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - MAX ( col2 ) * COUNT ( CAST ( NULL AS INTEGER ) * - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 33 * col1 NOT BETWEEN ( 83 + - 11 ) AND NULL
----
NULL

query I rowsort
SELECT col0 * col2 AS col1 FROM tab0 cor0 WHERE 91 < ( + col1 )
----

query I rowsort
SELECT DISTINCT - 27 * - col1 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT SUM( 81 ) * + ( MIN( 92 ) ) - COUNT( * ) AS col1 FROM tab0
----
22353

skipif mysql # not compatible
query I rowsort label-7965
SELECT SUM ( 81 ) * + ( MIN ( 92 ) ) - COUNT ( * ) AS col1 FROM tab0
----
22353

query I rowsort
SELECT - 42 - col1 AS col1 FROM tab1
----
-47
-56
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 / + col2 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7967
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 / + col2 col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col2 - - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = col0 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + 15 * - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT - MIN( col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7972
SELECT - MIN ( col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - COUNT( - 7 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - COUNT ( - 7 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----
0

query I rowsort
SELECT col2 * 97 FROM tab0 AS cor0
----
4559
9603
970

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT col0 DIV ( + 13 ) FROM tab1 AS cor0 WHERE NOT col2 >= 52 + col0 * + col2
----
3
6
7

skipif mysql # not compatible
query I rowsort label-7975
SELECT col0 / ( + 13 ) FROM tab1 AS cor0 WHERE NOT col2 >= 52 + col0 * + col2
----
3
6
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT 74 * + COUNT( * ) FROM tab0 cor0
----
222

skipif mysql # not compatible
query I rowsort label-7976
SELECT 74 * + COUNT ( * ) FROM tab0 cor0
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7977
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 NOT BETWEEN ( NULL ) AND - col1 + ( CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7977
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 NOT BETWEEN ( NULL ) AND - col1 + ( CAST ( - col0 AS INTEGER ) )
----

query I rowsort
SELECT ALL 8 AS col1 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + col2 + - col1 FROM tab2 AS cor0 WHERE NOT 11 + - col2 IN ( 77 * - 55 )
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN col2 + - col0 AND 49 + col2
----

query I rowsort
SELECT - 23 * - col0 FROM tab1 AS cor0
----
1173
1955
2093

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT 20 + col0 FROM tab2 AS cor0 WHERE NOT 5 IS NOT NULL
----

query I rowsort
SELECT 86 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( + 30 )
----

query I rowsort
SELECT col0 * + - 83 FROM tab2
----
-3818
-5312
-6225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IS NOT NULL OR ( ( - col0 ) * col1 ) NOT IN ( + col1 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - - col1 AS col0 FROM tab0 WHERE 3 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT ALL - ( + COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL - ( + COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( + 5 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + 59 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7993
SELECT + 59 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
177

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 7 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-7
-7
-7

query I rowsort
SELECT 71 + + col2 FROM tab2
----
111
129
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 46 ) BETWEEN NULL AND ( 58 / - col2 )
----

query I rowsort
SELECT - + col1 + 43 AS col2 FROM tab2 AS cor0
----
-24
-34
-8

query I rowsort
SELECT ALL - + col0 * - 29 + - + 78 AS col1 FROM tab0 AS cor0
----
2445
2735
357

query I rowsort
SELECT col1 * - col1 + + col1 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
-2094
-86
39

query I rowsort
SELECT DISTINCT + col2 + - + col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT ALL + col2 * - col2 + 47 * col2 FROM tab1 AS cor0 WHERE - ( 27 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( ( 8 ) ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 73 + col2 AS col1 FROM tab1
----
132
141
169

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN + 35 AND - 8 * + 78 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT MIN( DISTINCT + col1 ) * - MIN( ( - 84 ) ) FROM tab1
----
420

skipif mysql # not compatible
query I rowsort label-8007
SELECT MIN ( DISTINCT + col1 ) * - MIN ( ( - 84 ) ) FROM tab1
----
420

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT - 6 DIV col2 AS col2 FROM tab2 WHERE col0 >= ( 93 - col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 6 / col2 AS col2 FROM tab2 WHERE col0 >= ( 93 - col1 )
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8009
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) / - + 6 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) / - + 6 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8010
SELECT DISTINCT col0 * CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT col0 * CAST ( CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 - - 52 AS col1 FROM tab1
----
57
66
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT col0 - - col1 DIV - col1 col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8013
SELECT col0 - - col1 / - col1 col1 FROM tab2
----
45
63
74

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 ) <= col1
----
97
1
99

query I rowsort
SELECT col0 - - 20 * + col2 * + + col2 AS col0 FROM tab0 AS cor0
----
196117
2087
44195

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT - COUNT( * ) * - + COUNT( * ) + - MAX( + - col1 ) AS col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8016
SELECT - COUNT ( * ) * - + COUNT ( * ) + - MAX ( + - col1 ) AS col0 FROM tab2 AS cor0
----
60

query I rowsort
SELECT - col2 + + - ( - col0 ) FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT - col0 + - 71 AS col0 FROM tab2 AS cor0
----
-117
-135
-146

query I rowsort
SELECT + + col0 * + 82 + - col0 AS col2 FROM tab1 AS cor0
----
4131
6885
7371

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT ALL - 77 * - 12 FROM tab1
----
924
924
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT - - COUNT( + + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8023
SELECT - - COUNT ( + + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 65 * + + col2 AS col2 FROM tab2 AS cor0
----
1495
2600
3770

query I rowsort
SELECT ALL + col2 * - 90 + + 31 * + + col2 FROM tab1 AS cor0
----
-3481
-4012
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8026
SELECT + CAST( NULL AS SIGNED ) * + + 20 + + 57 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT + CAST ( NULL AS INTEGER ) * + + 20 + + 57 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 3 FROM tab2 AS cor0 WHERE NOT + col1 * - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8028
SELECT ALL + - col2 DIV + + col2 - - col0 col1, 71 * + 10 + - 9 col2 FROM tab0 AS cor0
----
14
701
86
701
96
701

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8028
SELECT ALL + - col2 / + + col2 - - col0 col1, 71 * + 10 + - 9 col2 FROM tab0 AS cor0
----
14
701
86
701
96
701

query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab2 AS cor0
----
19

query I rowsort
SELECT ALL - ( + + col1 ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - 86 ) AS col2 FROM tab1 AS cor0
----
86
86
86

query II rowsort
SELECT ALL col0 AS col2, 75 FROM tab0
----
15
75
87
75
97
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL MAX( DISTINCT + 3 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL MAX ( DISTINCT + 3 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT 30 DIV + - 3 AS col1 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8035
SELECT 30 / + - 3 AS col1 FROM tab2
----
-10
-10
-10

query II rowsort
SELECT col0, col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT - ( - col1 ), col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 25 * - col2 FROM tab2
----
-1000
-1450
-575

query II rowsort
SELECT col0 AS col1, - col1 AS col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8040
SELECT ALL SUM( ALL - col1 ) DIV 73 AS col2 FROM tab0 AS cor0 WHERE NOT ( + + col0 ) IS NULL OR NOT NULL BETWEEN - 3 AND ( NULL )
----
-1

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL SUM ( ALL - col1 ) / 73 AS col2 FROM tab0 AS cor0 WHERE NOT ( + + col0 ) IS NULL OR NOT NULL BETWEEN - 3 AND ( NULL )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT DISTINCT 16 DIV col2 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT 16 / col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col0 + + col2 AS col0 FROM tab2 WHERE ( + + col2 ) IN ( + col1 / - col1 * - col2 * 4 + - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + + 89 + 77 = ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + ( + - 40 ) ) AS col0 FROM tab0 AS cor0
----
40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 AND + col2
----

query I rowsort
SELECT - ( 49 ) AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 58, - col2 * - col1 + - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col0 AND col1
----

query I rowsort
SELECT DISTINCT + 28 + 36 + + 38 AS col1 FROM tab1 AS cor0
----
102

query I rowsort
SELECT DISTINCT - col2 + col1 + + + 43 + - - 16 AS col1 FROM tab2 cor0
----
68
87
96

query I rowsort
SELECT col1 + + - col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT + COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT COUNT( ALL - col2 ) + MIN( col2 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-8053
SELECT COUNT ( ALL - col2 ) + MIN ( col2 ) FROM tab2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 77 * + 2 AS col0 FROM tab1
----
154
154
154

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT - - 83 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8056
SELECT - - 83 / col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT COUNT( * ) - 65 AS col0 FROM tab1 cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8057
SELECT COUNT ( * ) - 65 AS col0 FROM tab1 cor0
----
-62

query II rowsort
SELECT - col0 * - - col1 AS col0, - 31 * + col1 AS col2 FROM tab0
----
-1215
-2511
-1827
-651
-97
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8059
SELECT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT DISTINCT - ( + col2 ) * - col1 * - 85 * + + 36 FROM tab2
----
-11891160
-3589380
-9424800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 72 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 * + 52 <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT + - MIN( col0 ) AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8063
SELECT + - MIN ( col0 ) AS col1 FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 10 + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8064
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT 10 + col0 IS NULL
----
3

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8066
SELECT ALL COUNT ( * ) col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8067
SELECT COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + 65 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-3894
-4488
-6336

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + - 79 NOT BETWEEN NULL AND ( + col0 )
----

query I rowsort
SELECT ALL col0 * + 54 AS col0 FROM tab1
----
2754
4590
4914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col0 col1 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT col0, col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8073
SELECT - + 92, - COUNT( - col1 ) col0 FROM tab2 AS cor0
----
-92
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8073
SELECT - + 92, - COUNT ( - col1 ) col0 FROM tab2 AS cor0
----
-92
-3

query I rowsort
SELECT DISTINCT 93 + col1 FROM tab2
----
144
160
170

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - - 63 * + 89 NOT BETWEEN + col1 + + - 78 * - 68 + - + col1 * + + 87 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT DISTINCT + col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col2 * 46 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + COUNT( + col2 ) + MAX( ALL - col1 ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8078
SELECT + COUNT ( + col2 ) + MAX ( ALL - col1 ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT - 94 * - + col0 * - 83 >= - 49
----
10
47
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) <> col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - ( - - col2 )
----

query I rowsort
SELECT - col0 * + + col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query II rowsort
SELECT - 43, col0 AS col0 FROM tab2 AS cor0
----
-43
46
-43
64
-43
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 7 col0, + 94 * - col0 * - + col0 - - col0 FROM tab0 AS cor0
----
7
21165
7
711573
7
884543

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + + 54 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT - + MAX( - + 83 ) AS col2 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-8087
SELECT - + MAX ( - + 83 ) AS col2 FROM tab0 AS cor0
----
83

query I rowsort
SELECT + 63 * + + col2 + + + col1 + - + col2 FROM tab0 AS cor0
----
2995
6139
641

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT + 46 - + COUNT( - - col0 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT + 46 - + COUNT ( - - col0 ) FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT ALL + col1 * - + col0 + - + CAST( - 19 AS SIGNED ) AS col2 FROM tab2
----
-2327
-4909
-5006

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + col1 * - + col0 + - + CAST ( - 19 AS INTEGER ) AS col2 FROM tab2
----
-2327
-4909
-5006

query I rowsort
SELECT ALL col0 - + col0 * - + col2 * col2 + - 24 + - col0 - + col0 + - col1 * col0 FROM tab1
----
295351
416392
469227

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT + COUNT( * ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8092
SELECT + COUNT ( * ) FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL 62 * - MIN( DISTINCT + col0 ) - + 54 * - COUNT( * ) * + - 43 FROM tab0
----
-7896

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL 62 * - MIN ( DISTINCT + col0 ) - + 54 * - COUNT ( * ) * + - 43 FROM tab0
----
-7896

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL - SUM( - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL - SUM ( - col2 ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 49 FROM tab1 cor0
----
49
49
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= ( col0 )
----

query I rowsort
SELECT ALL 43 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 29 )
----

query II rowsort
SELECT - 34, - col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT MIN( ALL 27 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-8100
SELECT MIN ( ALL 27 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT + - SUM( DISTINCT + 61 ) FROM tab2 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8102
SELECT + - SUM ( DISTINCT + 61 ) FROM tab2 cor0
----
-61

query I rowsort
SELECT + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT DISTINCT col1, col0 AS col0 FROM tab0 cor0
----
1
97
21
87
81
15

query II rowsort
SELECT ALL col1, + col2 * col0 AS col2 FROM tab0 AS cor0
----
1
9603
21
870
81
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 50, 49 col2 FROM tab1 AS cor0
----
50
49
50
49
50
49

query I rowsort
SELECT - col0 * + - col0 FROM tab2
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query II rowsort label-8108
SELECT ALL 70 DIV + + 46, + col2 FROM tab1
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-8108
SELECT ALL 70 / + + 46, + col2 FROM tab1
----
1
59
1
68
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT ALL MAX( ALL ( + + col0 ) ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL MAX ( ALL ( + + col0 ) ) AS col0 FROM tab1
----
91

query I rowsort
SELECT + col2 * + 78 * + 42 AS col2 FROM tab0
----
153972
324324
32760

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * ( + 85 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT - 29 DIV + 91 + + + col0 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8112
SELECT - 29 / + 91 + + + col0 AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <= NULL
----

query I rowsort
SELECT ALL - col1 + - + 37 FROM tab1 AS cor0
----
-42
-51
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT SUM( col2 ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-8115
SELECT SUM ( col2 ) FROM tab1 cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT + 36 DIV - - 40 FROM tab2 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8116
SELECT + 36 / - - 40 FROM tab2 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT MIN( + 9 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8117
SELECT MIN ( + 9 ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL - - MAX( DISTINCT - 73 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-73

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - - MAX ( DISTINCT - 73 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * + col0 col0 FROM tab0
----
-105
-609
-679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT ALL - 51 AS col2 FROM tab0 WHERE NOT 10 * + 35 * 13 BETWEEN + + CAST( + col2 AS SIGNED ) AND + col0
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-8120
SELECT ALL - 51 AS col2 FROM tab0 WHERE NOT 10 * + 35 * 13 BETWEEN + + CAST ( + col2 AS INTEGER ) AND + col0
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-8121
SELECT ALL ( - col0 ) - + 35 AS col2, col2 DIV - - col0 FROM tab0 AS cor0
----
-122
0
-132
1
-50
3

skipif mysql # not compatible
query II rowsort label-8121
SELECT ALL ( - col0 ) - + 35 AS col2, col2 / - - col0 FROM tab0 AS cor0
----
-122
0
-132
1
-50
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, - col2 )
----

query I rowsort
SELECT ALL - 24 * + col1 AS col1 FROM tab0 cor0
----
-1944
-24
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8124
SELECT + - 55 + + MIN( + + col2 ) * - 95 + + + COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT + - 55 + + MIN ( + + col2 ) * - 95 + + + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + + col1 col1 FROM tab0
----
-3
17
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - 3 col1 FROM tab1
----
56
65
93

query I rowsort
SELECT - ( 82 ) + + col1 AS col0 FROM tab0
----
-1
-61
-81

query II rowsort
SELECT + col0, - 58 AS col1 FROM tab1
----
51
-58
85
-58
91
-58

query I rowsort
SELECT DISTINCT 23 + - - col0 AS col2 FROM tab1
----
108
114
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT + SUM( ALL - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8130
SELECT + SUM ( ALL - col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-8131
SELECT DISTINCT - col2 DIV + - col1 - + col0 * - col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT - col2 / + - col1 - + col0 * - col0 FROM tab2
----
2116
4096
5625

query II rowsort
SELECT + col0 AS col2, - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT + ( - + MAX( - + ( + col2 ) ) ) DIV - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8133
SELECT + ( - + MAX ( - + ( + col2 ) ) ) / - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 88 = - 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * 72 col2 FROM tab2 AS cor0
----
-5472
-5472
-5472

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL SUM( + 90 ) AS col0 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL SUM ( + 90 ) AS col0 FROM tab0 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8137
SELECT ( COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + COUNT( * ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8138
SELECT + COUNT ( * ) col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + ( - - col1 ), - 24 AS col0 FROM tab0
----
1
-24
21
-24
81
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT DISTINCT + - COUNT( * ) AS col0, - COUNT( * ) * SUM( + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3
-681

skipif mysql # not compatible
query II rowsort label-8140
SELECT DISTINCT + - COUNT ( * ) AS col0, - COUNT ( * ) * SUM ( + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-3
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - - COUNT( - col2 ) + + + 70 + - 27 AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8141
SELECT - - COUNT ( - col2 ) + + + 70 + - 27 AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT DISTINCT - COUNT( + + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT - COUNT ( + + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 8 + + col2 + - 14 FROM tab2 AS cor0
----
17
34
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT ALL col0 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL col0 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab2 AS cor0
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + - col2
----

query II rowsort
SELECT ALL + col2, + col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL MAX( + 35 ) AS col0 FROM tab1, tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL MAX ( + 35 ) AS col0 FROM tab1, tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT MAX( col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT MAX ( col2 ) FROM tab0
----
99

query I rowsort
SELECT - col2 * 58 * col0 * + 93 AS col1 FROM tab1
----
-26409024
-27050910
-33378072

query I rowsort
SELECT + - col2 * + + col1 * col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 35 + + 11 * col2 * - col0 * col2 FROM tab1 AS cor0
----
-3254700
-4628589
-5170141

query I rowsort
SELECT + col1 + - + 38 + col1 + ( col2 ) AS col2 FROM tab1 cor0
----
124
31
86

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE 12 < col1
----
15
87

query I rowsort
SELECT + col2 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
112
133
139

query I rowsort
SELECT ALL 50 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - - 15 * + COUNT( ALL + col1 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8159
SELECT - - 15 * + COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT + - col1 * - - ( - col2 ) FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT + - 75 * col0 AS col0, - col0 + col2 * + 93 FROM tab1 cor0
----
-3825
8877
-6375
5402
-6825
6233

query I rowsort
SELECT ALL 34 * ( + col1 ) FROM tab2 AS cor0
----
1734
2278
2618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 24 + col1 col1 FROM tab2 AS cor0
----
1155
1613
1867

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT - COUNT( * ) * - 2 AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8164
SELECT - COUNT ( * ) * - 2 AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8165
SELECT col2 DIV 1 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8165
SELECT col2 / 1 AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - col1 * + + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - + col0 AS col1 FROM tab0 AS cor0 WHERE 62 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT - 52 * COUNT( * ) col2 FROM tab1 cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8168
SELECT DISTINCT - 52 * COUNT ( * ) col2 FROM tab1 cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8169
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) * - + ( + - 44 ) + + SUM( col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + ( + - 44 ) + + SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, col0 col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + 1 * col0 AS col0 FROM tab0
----
15
87
97

query II rowsort
SELECT - col0 AS col0, 95 + + - ( + col2 ) + - - 71 AS col2 FROM tab1
----
-51
70
-85
107
-91
98

query III rowsort
SELECT ALL * FROM tab1 WHERE - 27 / + 8 + col1 / + ( + + 3 ) + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 30 ) col2 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8175
SELECT 73, - col2 * + - 75 + - CAST( NULL AS SIGNED ) / + col0 + + + col1 + col0 AS col0 FROM tab1
----
73
NULL
73
NULL
73
NULL

skipif mysql # not compatible
query II rowsort label-8175
SELECT 73, - col2 * + - 75 + - CAST ( NULL AS INTEGER ) / + col0 + + + col1 + col0 AS col0 FROM tab1
----
73
NULL
73
NULL
73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL - MIN( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL - MIN ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + - 47 AS col2 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ALL + + col0 * + + col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT col0 AS col1, col2 AS col0 FROM tab1 cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT - col0 FROM tab0 AS cor0 WHERE NOT CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8180
SELECT - col0 FROM tab0 AS cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT + col0 DIV 42 AS col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8182
SELECT + col0 / 42 AS col1 FROM tab1
----
1
2
2

query I rowsort
SELECT ALL col0 * + 70 AS col0 FROM tab1
----
3570
5950
6370

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL >= col1 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT DISTINCT + col0 DIV 82 + col2 + + col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + col0 / 82 + col2 + + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL MAX( - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL MAX ( - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT ALL + 83 + - COUNT( * ) FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL + 83 + - COUNT ( * ) FROM tab0 cor0
----
80

query II rowsort
SELECT DISTINCT 85, col1 * col1 * - + col2 AS col0 FROM tab1 AS cor0
----
85
-1475
85
-150212
85
-18816

onlyif mysql # aggregate syntax: 
query II rowsort label-8190
SELECT DISTINCT - + COUNT( * ) + - + COUNT( * ) AS col1, + 39 AS col0 FROM tab0 AS cor0
----
-6
39

skipif mysql # not compatible
query II rowsort label-8190
SELECT DISTINCT - + COUNT ( * ) + - + COUNT ( * ) AS col1, + 39 AS col0 FROM tab0 AS cor0
----
-6
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col0, ( - ( + 6 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT + 87 + - + 1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 78 * + col2 col1 FROM tab2 AS cor0
----
-1794
-3120
-4524

query I rowsort
SELECT - 25 + - - col2 AS col0 FROM tab2
----
-2
15
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + col0 ) col0 FROM tab0 WHERE NULL NOT BETWEEN - col2 AND + col2 / - - col1 + - col0
----

query I rowsort
SELECT + col1 + + - col2 * - col0 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab2
----
12

query I rowsort
SELECT ALL - 41 * 99 * col1 FROM tab1
----
-190773
-20295
-56826

onlyif mysql # DIV for integer division: 
query I rowsort label-8198
SELECT DISTINCT + 15 * - col0 + col2 DIV + + col1 FROM tab2
----
-1125
-690
-960

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT + 15 * - col0 + col2 / + + col1 FROM tab2
----
-1125
-690
-960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8199
SELECT - 87 DIV 47 - - 85 * - - 4 + COUNT( * ) AS col0 FROM tab0
----
342

skipif mysql # not compatible
query I rowsort label-8199
SELECT - 87 / 47 - - 85 * - - 4 + COUNT ( * ) AS col0 FROM tab0
----
342

query I rowsort
SELECT DISTINCT col2 * col0 + - - 42 - + col0 + + 20 AS col1 FROM tab2 AS cor0
----
1074
2558
4337

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 45 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT DISTINCT + + COUNT( - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + + COUNT ( - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8203
SELECT + 88 DIV + 39 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8203
SELECT + 88 / + 39 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8204
SELECT + + COUNT( * ) AS col2, 54 col2 FROM tab0 AS cor0
----
3
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8204
SELECT + + COUNT ( * ) AS col2, 54 col2 FROM tab0 AS cor0
----
3
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8206
SELECT - ( + col0 ) * 8 DIV col2 + - 89 + + col0 FROM tab1 AS cor0
----
-15
-42
-8

skipif mysql # not compatible
query I rowsort label-8206
SELECT - ( + col0 ) * 8 / col2 + - 89 + + col0 FROM tab1 AS cor0
----
-15
-42
-8

query II rowsort
SELECT col0, + col1 + + 36 AS col2 FROM tab0 cor0
----
15
117
87
57
97
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - 8 * - 56 < - col2 - + 87 + - col1 * - 53
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 97 * - col0 * + 78 FROM tab0
----
-113490
-658242
-733902

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 40 * - col0 AS col2 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT MAX( DISTINCT 13 ), - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8212
SELECT MAX ( DISTINCT 13 ), - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT DISTINCT col0 DIV + 20 AS col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT col0 / + 20 AS col0 FROM tab0
----
0
4

query I rowsort
SELECT DISTINCT col0 * - 2 FROM tab0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 60 col2 FROM tab0 AS cor0
----
5220
5820
900

query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT + + COUNT( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NOT NULL < + 59 + 81 ) ) )
----

query I rowsort
SELECT + 94 + + col1 FROM tab1 AS cor0
----
108
141
99

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - - 65 * + 56 + + col1 * - - col0 FROM tab2 AS cor0
----
5986
8568
8665

query I rowsort
SELECT ALL + - 8 AS col2 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ( - col0 ) * + col1 + + - col0 FROM tab2 AS cor0
----
-2392
-4992
-5100

query I rowsort
SELECT - 98 FROM tab0 AS cor0 WHERE + ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8225
SELECT + col1 + - 61 + + col2 * col0 DIV 44 AS col0 FROM tab0 cor0
----
-21
158
36

skipif mysql # not compatible
query I rowsort label-8225
SELECT + col1 + - 61 + + col2 * col0 / 44 AS col0 FROM tab0 cor0
----
-21
158
36

query I rowsort
SELECT DISTINCT 60 + - col0 FROM tab1 cor0
----
-25
-31
9

query I rowsort
SELECT DISTINCT col0 + ( + 57 ) AS col0 FROM tab2
----
103
121
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8228
SELECT DISTINCT 35 col0, + 86 DIV COUNT( * ) FROM tab1
----
35
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8228
SELECT DISTINCT 35 col0, + 86 / COUNT ( * ) FROM tab1
----
35
28

query I rowsort
SELECT - + col1 FROM tab0 WHERE NULL BETWEEN - 42 + - + ( - + col0 ) - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT + COUNT( * ) - - 20 AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT + COUNT ( * ) - - 20 AS col0 FROM tab1
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT DISTINCT - + MIN( ALL col0 ), COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
3

skipif mysql # not compatible
query II rowsort label-8231
SELECT DISTINCT - + MIN ( ALL col0 ), COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8232
SELECT + CAST( NULL AS DECIMAL ) / + 82 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT + CAST ( NULL AS REAL ) / + 82 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT col0 * col0 DIV + col1 AS col2 FROM tab1
----
1445
176
185

skipif mysql # not compatible
query I rowsort label-8233
SELECT col0 * col0 / + col1 AS col2 FROM tab1
----
1445
176
185

query I rowsort
SELECT col2 - col1 + - col1 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT DISTINCT - 11 + + col2 AS col2 FROM tab0 AS cor0
----
-1
36
88

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + - col0 * - col2 * - col0 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT MIN( + ( + 83 ) ) AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-8237
SELECT MIN ( + ( + 83 ) ) AS col2 FROM tab1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT + COUNT( ALL - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8239
SELECT * FROM tab2 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) * - ( col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8239
SELECT * FROM tab2 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) * - ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT + + 2 * + MAX( - - col2 ) AS col2 FROM tab2 cor0
----
116

skipif mysql # not compatible
query I rowsort label-8240
SELECT + + 2 * + MAX ( - - col2 ) AS col2 FROM tab2 cor0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT 12 * + COUNT( * ) * COUNT( * ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT 12 * + COUNT ( * ) * COUNT ( * ) FROM tab0
----
108

query I rowsort
SELECT DISTINCT - - col1 - - + col1 FROM tab0 WHERE - col2 IS NOT NULL
----
162
2
42

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 91
----

query II rowsort
SELECT - col0, - ( col0 ) FROM tab1
----
-51
-51
-85
-85
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 AS col2, col2 col2 FROM tab2
----
84
23
84
40
84
58

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col2 * col1 + - - 45 * + ( - 6 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 33 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - col1 * + - col1 AS col1 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 32 ) / + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 80 * + + 21 AS col0 FROM tab2
----
107520
126000
77280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8252
SELECT SUM( col1 ) DIV + 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8252
SELECT SUM ( col1 ) / + 84 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 85 * - 60 FROM tab1
----
-5100

query I rowsort
SELECT ALL + ( + 91 ) FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT col1 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT col1 + - col1 IS NOT NULL
----
0

query II rowsort
SELECT - - col2 AS col2, col0 AS col0 FROM tab0 AS cor0 WHERE col0 * - 57 IS NOT NULL
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL + col2 * + 41 + - col2 + - ( - ( + col2 ) ) FROM tab0 AS cor0
----
1927
4059
410

query I rowsort
SELECT ALL 3 / 37 AS col0 FROM tab2 AS cor0 WHERE ( col1 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 19 + col2 * + 14 col0 FROM tab2 AS cor0
----
392
656
898

query I rowsort
SELECT ALL col2 + - col1 - - 61 * + 68 + + col2 FROM tab0 AS cor0
----
4147
4161
4345

query I rowsort
SELECT DISTINCT - 46 + - + col1 FROM tab1
----
-51
-60
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT DISTINCT + MAX( - col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT + MAX ( - col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT COUNT( * ) - + ( + + 71 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8264
SELECT DISTINCT COUNT ( * ) - + ( + + 71 ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
-71

query I rowsort
SELECT col1 * + 88 + - col0 + - col1 FROM tab2
----
4391
5754
6635

query I rowsort
SELECT col0 + + + col0 + col0 + + col2 FROM tab1
----
249
314
341

query I rowsort
SELECT + 38 + + ( - + 1 ) FROM tab1
----
37
37
37

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - col1 BETWEEN - + col1 + col2 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col0 - col1 col1, + ( + 31 ) FROM tab0
----
-147
31
45
31
95
31

query I rowsort
SELECT - 86 + + + col1 FROM tab2
----
-19
-35
-9

query II rowsort
SELECT ALL + col2 + 65 + 64 AS col2, col1 * + 62 FROM tab0
----
139
1302
176
5022
228
62

query I rowsort
SELECT DISTINCT + ( - col0 ) - + col1 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT DISTINCT ( + 28 ) AS col1 FROM tab1
----
28

query I rowsort
SELECT ALL col0 - + 63 - + col0 FROM tab1
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 34 col1, - col2 FROM tab0
----
34
-10
34
-47
34
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - col1 * - col2 + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab1 cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 21 * - col1 + - 89 FROM tab2 AS cor0
----
-1160
-1496
-1706

query I rowsort
SELECT DISTINCT + - col2 * col0 * + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8281
SELECT ALL - COUNT( ALL + + ( - - 84 ) ) - - 45 - 25 AS col1, 29 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-8281
SELECT ALL - COUNT ( ALL + + ( - - 84 ) ) - - 45 - 25 AS col1, 29 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - + COUNT( * ) - MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8282
SELECT - + COUNT ( * ) - MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8283
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT - AVG ( - - col1 ) AS col0 FROM tab1 WHERE NOT 49 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8286
SELECT DISTINCT - 89 AS col2, col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-8286
SELECT DISTINCT - 89 AS col2, col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-89
NULL

query I rowsort
SELECT ALL + col2 * + col2 * - - ( - + col1 ) * + col1 FROM tab0 AS cor0
----
-14493249
-44100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT - + col0 DIV ( 82 ) - - + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8288
SELECT - + col0 / ( 82 ) - - + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8289
SELECT CAST( NULL AS SIGNED ) * + + 43 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT CAST ( NULL AS INTEGER ) * + + 43 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - col2, + col1 * - 85 + ( - - 62 ) )
----

query I rowsort
SELECT ALL + 29 FROM tab0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8292
SELECT ( + + col2 ) col0, 85 DIV ( + col2 ) AS col2 FROM tab2
----
23
3
40
2
58
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8292
SELECT ( + + col2 ) col0, 85 / ( + col2 ) AS col2 FROM tab2
----
23
3
40
2
58
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8293
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( + - col1 AS SIGNED ) = + col1 * 98 / + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8293
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( + - col1 AS INTEGER ) = + col1 * 98 / + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 34 * - col1 AS col1 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + COUNT( DISTINCT + - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8295
SELECT + COUNT ( DISTINCT + - col1 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col0 FROM tab2
----
8
8
8

query I rowsort
SELECT DISTINCT - + 70 FROM tab0 AS cor0
----
-70

query II rowsort
SELECT ALL - - 44 * - + col2 + + col1 AS col0, col1 + - col2 FROM tab1 AS cor0
----
-2591
-54
-2945
-21
-4210
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL - - 45 + MAX( DISTINCT + 61 ) FROM tab2 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL - - 45 + MAX ( DISTINCT + 61 ) FROM tab2 AS cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT - COUNT( col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8301
SELECT DISTINCT - COUNT ( col1 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 43 + - - 54 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT 44 + COUNT( * ) - - 34 AS col0, ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
81
-3

skipif mysql # not compatible
query II rowsort label-8303
SELECT 44 + COUNT ( * ) - - 34 AS col0, ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
81
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 + + 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8305
SELECT DISTINCT col1 * - col0 + + col2 * col1 DIV + + col2 FROM tab0 AS cor0
----
-1134
-1806
-96

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT col1 * - col0 + + col2 * col1 / + + col2 FROM tab0 AS cor0
----
-1134
-1806
-96

query II rowsort
SELECT col1, col1 + + 3 FROM tab0 AS cor0
----
1
4
21
24
81
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8307
SELECT - COUNT( ( + col1 ) ) * COUNT( * ) DIV 48 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8307
SELECT - COUNT ( ( + col1 ) ) * COUNT ( * ) / 48 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - 39 FROM tab1
----
12
46
52

query I rowsort
SELECT 47 * + col1 AS col0 FROM tab1 WHERE - 20 < + + col1 * col1
----
2209
235
658

query I rowsort
SELECT DISTINCT - 35 * - + 70 AS col2 FROM tab1
----
2450

query II rowsort
SELECT col1 - + col2 AS col2, + 40 AS col2 FROM tab2 AS cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT col1 + + - col2 + + - 55 AS col1 FROM tab1 AS cor0
----
-109
-137
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8314
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - + 43 * + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74b2edab7995675faafcd13b794b27db

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT DISTINCT + MIN( col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT + MIN ( col1 ) AS col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8318
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT - MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8319
SELECT - MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + + col2 * + - 91 + - + col0 + + col2 AS col2 FROM tab0 AS cor0 WHERE NOT 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8321
SELECT ALL + 89 DIV - - col1 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + 89 / - - col1 AS col2 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col0, col1 + + 23 FROM tab1
----
51
37
85
28
91
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT - COUNT( * ) * - ( - + 32 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-8324
SELECT - COUNT ( * ) * - ( - + 32 ) FROM tab2
----
-96

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT MAX( + 39 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8327
SELECT MAX ( + 39 ) FROM tab2
----
39

query I rowsort
SELECT DISTINCT + + 45 * + - 45 + + - col1 AS col1 FROM tab1 AS cor0
----
-2030
-2039
-2072

query I rowsort
SELECT DISTINCT - ( + - col2 ) AS col1 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NULL < - 62 - - col2 + - col0
----

query I rowsort
SELECT col1 * + + ( - col0 ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 34 * ( - - 43 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + + ( + col0 ) * 73 AS col0 FROM tab1 cor0
----
3723
6205
6643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT ALL + col1 + - col1 * - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + col1 + - col1 * - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 68 col2 FROM tab2 AS cor0
----
1564
2720
3944

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT ALL + COUNT( * ) + - 12 + - - 87 DIV + - 24 + - + COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL + COUNT ( * ) + - 12 + - - 87 / + - 24 + - + COUNT ( * ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT col0 + 50 AS col1 FROM tab0
----
137
147
65

query III rowsort
SELECT * FROM tab2 WHERE + col0 + + - col0 * 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 * - - col1 - 23 col2 FROM tab1
----
25052
290813
68521

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT - MAX( 82 ) AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-8341
SELECT - MAX ( 82 ) AS col2 FROM tab2
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT DISTINCT 77 DIV col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT 77 / col0 AS col0 FROM tab2
----
1

query I rowsort
SELECT + col2 * 67 AS col0 FROM tab2 AS cor0
----
1541
2680
3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - 79, 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + 63 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 63 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8346
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT - 34 * - 14 FROM tab2 AS cor0
----
476
476
476

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL - + SUM( col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL - + SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL SUM( ALL - - 20 ) FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL SUM ( ALL - - 20 ) FROM tab2 cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - + col2 col1 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT ALL MAX( ALL + 66 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8351
SELECT ALL MAX ( ALL + 66 ) col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - + col2 - col1 - col1 IN ( + 79, - ( col2 ) / + col2 ) ) ) OR NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL 11 * + ( - COUNT( + + col2 ) ) AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 11 * + ( - COUNT ( + + col2 ) ) AS col0 FROM tab1
----
-33

query I rowsort
SELECT + col1 * - + col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT MIN( + 94 ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-8355
SELECT MIN ( + 94 ) AS col1 FROM tab2
----
94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT + 21 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 * + - ( + + col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8358
SELECT ALL - col0 + + col2 DIV col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-8358
SELECT ALL - col0 + + col2 / col0 FROM tab1 AS cor0
----
-50
-85
-91

query I rowsort
SELECT - 28 * + - col0 * + 20 AS col2 FROM tab1 WHERE NULL = NULL
----

query II rowsort
SELECT DISTINCT - 97, col1 FROM tab1
----
-97
14
-97
47
-97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT ALL + - ( + - COUNT( * ) ) + 16 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL + - ( + - COUNT ( * ) ) + 16 FROM tab1 AS cor0
----
19

query I rowsort
SELECT + 4 * + - col2 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT - + COUNT( * ) AS col1, 33 + - 23 AS col1 FROM tab1 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-8363
SELECT - + COUNT ( * ) AS col1, 33 + - 23 AS col1 FROM tab1 AS cor0
----
-3
10

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL + COUNT( + 91 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + COUNT ( + 91 ) AS col1 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 9 * + - col2 + + + col2 AS col1 FROM tab1 AS cor0
----
-472
-544
-768

onlyif mysql # DIV for integer division: 
query II rowsort label-8367
SELECT ALL col2 + - - 82 * 64 DIV - 59, - 60 AS col1 FROM tab2 AS cor0
----
-30
-60
-48
-60
-65
-60

skipif mysql # not compatible
query II rowsort label-8367
SELECT ALL col2 + - - 82 * 64 / - 59, - 60 AS col1 FROM tab2 AS cor0
----
-30
-60
-48
-60
-65
-60

query I rowsort
SELECT - + 46 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-46
-46
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8369
SELECT + MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT + MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1, tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8370
SELECT ALL - COUNT( * ) + + - COUNT( * ) - COUNT( * ) DIV + 63 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) - COUNT ( * ) / + 63 FROM tab2
----
-6

query I rowsort
SELECT ALL col0 * + 10 * - + col2 FROM tab1
----
-48960
-50150
-61880

query I rowsort
SELECT - 54 * - - col1 AS col1 FROM tab2 AS cor0
----
-2754
-3618
-4158

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT ALL - col0 DIV col2 + + - col0 + + col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL - col0 / col2 + + - col0 + + col0 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - COUNT( DISTINCT 69 ) FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8375
SELECT - COUNT ( DISTINCT 69 ) FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT - 76 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8378
SELECT ALL + 30 DIV - - COUNT( * ) AS col1 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL + 30 / - - COUNT ( * ) AS col1 FROM tab2
----
10

query II rowsort
SELECT 78 AS col0, + col2 FROM tab1
----
78
59
78
68
78
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8380
SELECT ALL col1 DIV + 51 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL col1 / + 51 AS col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT - - SUM( DISTINCT + 46 ) FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-8382
SELECT - - SUM ( DISTINCT + 46 ) FROM tab0 cor0
----
46

query II rowsort
SELECT ALL - col1, 3 FROM tab2 AS cor0 WHERE + 6 < NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 45 * 10 AS col2 FROM tab1 AS cor0
----
-450
-450
-450

query I rowsort
SELECT DISTINCT - col0 + ( - col0 ) AS col1 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT MIN( 96 ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-8387
SELECT MIN ( 96 ) AS col0 FROM tab0
----
96

query I rowsort
SELECT 54 + col2 AS col0 FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL + MIN( col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL + MIN ( col0 ) FROM tab2
----
46

query I rowsort
SELECT ALL + 34 * - col2 AS col2 FROM tab1
----
-2006
-2312
-3264

query I rowsort
SELECT col0 + + + col2 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT 6 * 25 * + col0 FROM tab2
----
11250
6900
9600

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT + COUNT( * ) + - 72 + 50 * - 82 col0 FROM tab1
----
-4169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8393
SELECT + COUNT ( * ) + - 72 + 50 * - 82 col0 FROM tab1
----
-4169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT ALL col0 * - - CAST( + + col2 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL col0 * - - CAST ( + + col2 AS INTEGER ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT ALL COUNT( * ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT ALL COUNT ( * ) col0 FROM tab0
----
3

query I rowsort
SELECT - + col1 * - - col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8397
SELECT ALL - 7 DIV - 25 * - SUM( - 14 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - 7 / - 25 * - SUM ( - 14 ) FROM tab0
----
0

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + + ( ( - 46 ) ) < NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab1, tab1 AS cor0
----
74

query I rowsort
SELECT - col0 - - col0 + + 64 * + + col0 FROM tab0
----
5568
6208
960

query I rowsort
SELECT - col0 + - 34 FROM tab2 AS cor0 WHERE 55 IS NULL
----

query I rowsort
SELECT - + 10 + + 74 + - + col1 FROM tab0 AS cor0
----
-17
43
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT col2 + + col0 - col2 DIV col0 * + col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-8405
SELECT col2 + + col0 - col2 / col0 * + col1 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 30
----

query II rowsort
SELECT DISTINCT - 21 + + col1 * - + col0 AS col0, ( col0 ) - - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-118
0
-1236
0
-1848
0

query I rowsort
SELECT - 81 * + 74 * 25 + col1 FROM tab1 AS cor0
----
-149803
-149836
-149845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8409
SELECT ( COUNT( col2 ) ) DIV - + 13 + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8409
SELECT ( COUNT ( col2 ) ) / - + 13 + + COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8410
SELECT col0 AS col1, col0 * CAST( NULL AS SIGNED ) - - 67 AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8410
SELECT col0 AS col1, col0 * CAST ( NULL AS INTEGER ) - - 67 AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col0 FROM tab1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL - + ( + COUNT( ALL - ( col2 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - + ( + COUNT ( ALL - ( col2 ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8415
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL - - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT - MAX( + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8418
SELECT - MAX ( + col0 ) FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 27 - + col2 + - col0 col0 FROM tab0 AS cor0
----
2252
2423
343

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT + 22 FROM tab1 AS cor0 WHERE - col1 * + 85 * + col2 + + col1 NOT BETWEEN + col2 AND NULL
----
22
22
22

query I rowsort
SELECT col2 * - col0 * + - col2 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 43 col1 FROM tab2 cor0
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT + 73 + + + 28 FROM tab0
----
101

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( - 88 * ( + + col2 ) <> - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8429
SELECT DISTINCT - 46 DIV 99 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT - 46 / 99 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 18 - col2 * 27 FROM tab1 WHERE NOT - 85 / ( - - col1 ) * + col2 IS NULL
----
-1575
-1818
-2574

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8432
SELECT + + CAST( NULL AS DECIMAL ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8432
SELECT + + CAST ( NULL AS REAL ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8433
SELECT - col0 + - - ( - - 52 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-54
-92
-95

skipif mysql # not compatible
query I rowsort label-8433
SELECT - col0 + - - ( - - 52 ) / - col1 AS col0 FROM tab1 AS cor0
----
-54
-92
-95

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT ALL + COUNT( * ) + + 76 * + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + COUNT ( * ) + + 76 * + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 42 + + col1 AS col2 FROM tab1
----
47
56
89

query I rowsort
SELECT col1 * - 22 FROM tab0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT 85 * COUNT( * ) AS col2 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-8438
SELECT 85 * COUNT ( * ) AS col2 FROM tab1
----
255

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE ( + col0 * - col2 ) < + col2
----
-46
-64
-75

query I rowsort
SELECT col1 * + 55 AS col2 FROM tab2
----
2805
3685
4235

onlyif mysql # DIV for integer division: 
query I rowsort label-8441
SELECT ALL - col2 DIV + col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - col2 / + col2 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT ALL + col1 DIV + 98 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + col1 / + 98 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT 32 * COUNT( DISTINCT - col1 * + col2 ) + + 77 FROM tab1 WHERE ( NULL ) IS NULL
----
173

skipif mysql # not compatible
query I rowsort label-8443
SELECT 32 * COUNT ( DISTINCT - col1 * + col2 ) + + 77 FROM tab1 WHERE ( NULL ) IS NULL
----
173

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 83 * col1 ) BETWEEN col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + - col2 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8446
SELECT ALL - col0 DIV + 12 FROM tab0
----
-1
-7
-8

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL - col0 / + 12 FROM tab0
----
-1
-7
-8

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT + col2 * 22 NOT BETWEEN - col1 AND ( - ( ( - col1 ) ) )
----

query I rowsort
SELECT + col0 + col0 * 33 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT - 29 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-29
-29
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT DISTINCT - ( + 95 ) DIV 58 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT - ( + 95 ) / 58 FROM tab1
----
-1

query I rowsort
SELECT + col0 + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
128
150
92

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 91 + col2 * + col1 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
1435
3287
386

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( 46 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT MIN( ALL col0 ) FROM tab2 WHERE NOT ( - col1 + - col1 * + col0 ) IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-8455
SELECT MIN ( ALL col0 ) FROM tab2 WHERE NOT ( - col1 + - col1 * + col0 ) IS NULL
----
46

query III rowsort
SELECT * FROM tab2 WHERE + col1 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - 4 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8458
SELECT 14 DIV COUNT( DISTINCT col2 ) + - 85 AS col0 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8458
SELECT 14 / COUNT ( DISTINCT col2 ) + - 85 AS col0 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT + COUNT( ALL + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT - COUNT( DISTINCT 46 ) col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8460
SELECT - COUNT ( DISTINCT 46 ) col2 FROM tab1
----
-1

query I rowsort
SELECT + 25 - col2 FROM tab2
----
-15
-33
2

query I rowsort
SELECT ALL + ( 93 ) FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT ALL COUNT( * ) + + MIN( 50 ) AS col0 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL COUNT ( * ) + + MIN ( 50 ) AS col0 FROM tab0
----
53

query I rowsort
SELECT DISTINCT - ( 64 ) AS col1 FROM tab2 AS cor0 WHERE + col2 BETWEEN - 0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT ALL CAST( + 48 AS SIGNED ) AS col1 FROM tab1 cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL CAST ( + 48 AS INTEGER ) AS col1 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - 47 * col2 AS col1 FROM tab1 WHERE NOT NULL > - col0 * col1
----

query I rowsort
SELECT DISTINCT 64 FROM tab0 AS cor0 CROSS JOIN tab1
----
64

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
18

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT + COUNT( ALL + ( 49 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + COUNT ( ALL + ( 49 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + - 21 AS col0 FROM tab0 AS cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 2 <> ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT + MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8474
SELECT + MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT DISTINCT + - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT + - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL - + ( SUM( - 5 ) ) * 67 FROM tab2 cor0
----
1005

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - + ( SUM ( - 5 ) ) * 67 FROM tab2 cor0
----
1005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 + + col0 col2 FROM tab1 AS cor0
----
101
61
95

query I rowsort
SELECT ALL - col0 + 62 AS col0 FROM tab0 cor0
----
-25
-35
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - 32 AS col1 FROM tab1 AS cor0
----
-117
-123
-83

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - 32 AS col1 FROM tab1 AS cor0
----
-117
-123
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 19 + 58 <> 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 97 + + col0 AS col2 FROM tab0 cor0
----
112
184
194

query I rowsort
SELECT - col1 + - 10 FROM tab0 AS cor0
----
-11
-31
-91

query I rowsort
SELECT 50 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 + + + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT 13 + + + col1 AS col0 FROM tab2
----
64
80
90

query I rowsort
SELECT DISTINCT col0 + ( - 19 ) AS col2 FROM tab2
----
27
45
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT ALL COUNT( * ) + + SUM( + ( + 97 ) ) AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL COUNT ( * ) + + SUM ( + ( + 97 ) ) AS col1 FROM tab1
----
294

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT - col2 - col0 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + ( col1 ) col1 FROM tab2
----
105
121
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT 72 + + MAX( col1 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8491
SELECT 72 + + MAX ( col1 ) FROM tab0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT col2 * - - CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT col2 * - - CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT + CAST( 36 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-8494
SELECT + CAST ( 36 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE - col2 DIV + col1 >= ( col0 DIV col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-8495
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE - col2 / + col1 >= ( col0 / col2 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT - - col0 DIV 40 + - 58 FROM tab2 AS cor0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-8496
SELECT - - col0 / 40 + - 58 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL 76 + - + col0 - col0 AS col2 FROM tab2 cor0
----
-16
-52
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT + + 46 DIV COUNT( ALL 9 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8498
SELECT + + 46 / COUNT ( ALL 9 ) FROM tab2 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8499
SELECT ALL - col1 + ( + - col2 ) + - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL - col1 + ( + - col2 ) + - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 97 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > 23 - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8503
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + 45 * - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + 45 * - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-135

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 10 IN ( + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 45 / ( + 1 ) ) BETWEEN col0 * ( + ( + 27 ) * 11 ) AND + 42 * - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * col0 < NULL OR ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 * - - 23 AS col2 FROM tab0 AS cor0
----
2277
4830
87561

query I rowsort
SELECT + + 31 * + col2 AS col1 FROM tab2 cor0
----
1240
1798
713

query II rowsort
SELECT ALL 95, col1 AS col0 FROM tab2 AS cor0
----
95
51
95
67
95
77

query I rowsort
SELECT DISTINCT + 86 + - col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * + 27 AS col2 FROM tab0 AS cor0
----
2349
2619
405

query II rowsort
SELECT DISTINCT + col2 AS col1, + 24 + - + col0 FROM tab1 AS cor0
----
59
-61
68
-67
96
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT col2 DIV ( - + 28 ) AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8517
SELECT col2 / ( - + 28 ) AS col1 FROM tab2
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT ALL - 79 DIV + col2 AS col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL - 79 / + col2 AS col2 FROM tab2
----
-1
-1
-3

query I rowsort
SELECT col1 * + 11 * col1 + col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8520
SELECT 45 DIV + col0 * - col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8520
SELECT 45 / + col0 * - col1 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 2 >= + col1 * + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT MIN( DISTINCT - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8522
SELECT MIN ( DISTINCT - col2 ) FROM tab0
----
-99

query I rowsort
SELECT DISTINCT + 79 * - ( - 47 ) AS col2 FROM tab1
----
3713

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT 12 < - col0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 23 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( - 83 ) ) IS NOT NULL
----

query I rowsort
SELECT + 56 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + - col0 AND - - col0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT DISTINCT + SUM( DISTINCT - col2 ) + - + 17 AS col2 FROM tab0
----
-173

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT + SUM ( DISTINCT - col2 ) + - + 17 AS col2 FROM tab0
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - MAX( ALL + col1 ) + - + MIN( DISTINCT - + col0 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8529
SELECT - MAX ( ALL + col1 ) + - + MIN ( DISTINCT - + col0 ) FROM tab1
----
44

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT + - 96 + - + 23 + - CAST( + ( col0 ) AS SIGNED ) + - 6 FROM tab2 AS cor0
----
-171
-189
-200

skipif mysql # not compatible
query I rowsort label-8531
SELECT + - 96 + - + 23 + - CAST ( + ( col0 ) AS INTEGER ) + - 6 FROM tab2 AS cor0
----
-171
-189
-200

query I rowsort
SELECT + col2 + 82 AS col0 FROM tab2 cor0
----
105
122
140

query I rowsort
SELECT col0 * - + col2 / - 5 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 37 * - + 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8535
SELECT MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col1 FROM tab2 AS cor0
----
22
22
22

query II rowsort
SELECT ALL col1 AS col1, col0 + col2 AS col1 FROM tab2 AS cor0
----
51
69
67
133
77
104

query I rowsort
SELECT DISTINCT - 38 + + - col2 FROM tab1 AS cor0
----
-106
-134
-97

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 30 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
30

query I rowsort
SELECT ALL - col0 * + 97 - + col0 * col1 AS col0 FROM tab0 AS cor0
----
-10266
-2670
-9506

query I rowsort
SELECT ALL + + ( + col2 ) AS col0 FROM tab2 WHERE NOT - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8543
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8543
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT + COUNT( * ) * - - 35 AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-8544
SELECT + COUNT ( * ) * - - 35 AS col1 FROM tab0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - MAX( + 76 ) - + + MAX( - 6 ) AS col2 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-8545
SELECT - MAX ( + 76 ) - + + MAX ( - 6 ) AS col2 FROM tab0
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8546
SELECT + col1 - - + ( + CAST( NULL AS DECIMAL ) ) + - col2 / 67 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT + col1 - - + ( + CAST ( NULL AS REAL ) ) + - col2 / 67 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 - 38 AS col2 FROM tab0
----
-28
61
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 98 ) NOT BETWEEN + 90 AND + - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - + 23 ) * - col1 FROM tab2 AS cor0
----
1173
1541
1771

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT - - COUNT( * ) + - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT - - COUNT ( * ) + - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * col1 + - 60 AS col0 FROM tab1 cor0
----
-4337
-485
-774

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 77 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT ALL - 68 + - 33 DIV + + 14 + - 16 FROM tab1
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL - 68 + - 33 / + + 14 + - 16 FROM tab1
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT + 96 * - COUNT( * ) FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8556
SELECT + 96 * - COUNT ( * ) FROM tab0 AS cor0
----
-288

query I rowsort
SELECT DISTINCT - 88 * 13 FROM tab1 AS cor0
----
-1144

query I rowsort
SELECT DISTINCT - ( 81 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT COUNT( * ) * MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-8559
SELECT COUNT ( * ) * MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
177

query I rowsort
SELECT ALL - + col1 * + - 82 / - + 70 + + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN - 16 AND + 28
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT DISTINCT - + col2 DIV - ( - col2 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - + col2 / - ( - col2 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT + - 95 AS col2 FROM tab0 cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT + - ( + MAX( DISTINCT - col1 ) ) * + MIN( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8564
SELECT + - ( + MAX ( DISTINCT - col1 ) ) * + MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 3 AS col2, - col1 * - 61 + + col0 + 33 FROM tab1
----
3
2991
3
423
3
938

query I rowsort
SELECT + 69 * - - 11 AS col2 FROM tab2
----
759
759
759

query I rowsort
SELECT ALL - 18 * + 14 AS col1 FROM tab0
----
-252
-252
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT DISTINCT 35 DIV - + 30 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT 35 / - + 30 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL + MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL + MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT DISTINCT 46 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT 46 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 95 col0, col1 AS col0 FROM tab2 cor0
----
-95
51
-95
67
-95
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT COUNT( * ) + ( - - COUNT( * ) ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT COUNT ( * ) + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
6

query I rowsort
SELECT DISTINCT + - 20 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-20

query I rowsort
SELECT + + 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col0 FROM tab1 WHERE NOT ( NULL ) = + ( + col0 )
----

query I rowsort
SELECT + 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE col0 + - - col2 <= NULL
----

query I rowsort
SELECT + 95 * - col1 * + 3 AS col0 FROM tab2 AS cor0
----
-14535
-19095
-21945

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 11 ) col1 FROM tab2 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL - MIN( DISTINCT - 7 ) + - + ( 65 ) AS col1 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - MIN ( DISTINCT - 7 ) + - + ( 65 ) AS col1 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT DISTINCT + + 55 + + 29 * + ( + col1 ) FROM tab1 AS cor0
----
1418
200
461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8586
SELECT ALL + CAST( + 55 AS SIGNED ) FROM tab0 AS cor0 WHERE - 1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL + CAST ( + 55 AS INTEGER ) FROM tab0 AS cor0 WHERE - 1 IS NULL
----

query I rowsort
SELECT + + 1 + 70 FROM tab0 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 33 col1 FROM tab0
----
132
43
80

query I rowsort
SELECT + col2 + + - col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - col1 - - col2 + + + col1 AS col2, col2 AS col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8591
SELECT + col1 + - col1 + CAST( 48 AS SIGNED ) - - 50 DIV - col0 FROM tab0
----
45
48
48

skipif mysql # not compatible
query I rowsort label-8591
SELECT + col1 + - col1 + CAST ( 48 AS INTEGER ) - - 50 / - col0 FROM tab0
----
45
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT SUM( + col1 ) + + CAST( NULL AS SIGNED ) * - 86 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8592
SELECT SUM ( + col1 ) + + CAST ( NULL AS INTEGER ) * - 86 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ( - + col2 ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8594
SELECT - + COUNT( * ) FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT - + COUNT ( * ) FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL ( + + col2 ) FROM tab0 cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 col2 FROM tab2 cor0
----
2346
4928
5025

query III rowsort
SELECT - 71, 8 * - 1 + + 14 * + - col1 + + col1 + col2 AS col2, - col1 AS col1 FROM tab0
----
9 values hashing to c0fbb46acac648d83847e5edb094a602

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8598
SELECT + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT ALL - 61 AS col1 FROM tab1 AS cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 48, - 97 * col0 col0 FROM tab1 AS cor0
----
48
-4947
48
-8245
48
-8827

query II rowsort
SELECT DISTINCT col0 AS col0, col0 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8602
SELECT - 69 AS col1, COUNT( * ) FROM tab2 AS cor0
----
-69
3

skipif mysql # not compatible
query II rowsort label-8602
SELECT - 69 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-69
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8604
SELECT MAX( - col1 ) col0, + COUNT( * ) FROM tab1 cor0
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8604
SELECT MAX ( - col1 ) col0, + COUNT ( * ) FROM tab1 cor0
----
-5
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8605
SELECT * FROM tab0 AS cor0 WHERE NOT 68 + - + 26 * - - CAST( NULL AS SIGNED ) * col1 + + 60 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8605
SELECT * FROM tab0 AS cor0 WHERE NOT 68 + - + 26 * - - CAST ( NULL AS INTEGER ) * col1 + + 60 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT - - MAX( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8607
SELECT - - MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 18 < + - ( 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT + col1 DIV 60 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8610
SELECT + col1 / 60 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL + 37 * col0 AS col1 FROM tab0
----
3219
3589
555

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT DISTINCT - col0 DIV - - col0 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - col0 / - - col0 AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - COUNT( * ) FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8613
SELECT - COUNT ( * ) FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - col2 IS NULL
----
15
87
97

query II rowsort
SELECT DISTINCT - 56 + + col1 AS col2, 67 AS col1 FROM tab2 AS cor0
----
-5
67
11
67
21
67

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT 12 * + ( - ( 18 ) ) * + col2 * - 37 IS NULL
----
1
21
81

query I rowsort
SELECT ALL - - col2 * + 12 AS col0 FROM tab2 AS cor0
----
276
480
696

query I rowsort
SELECT DISTINCT - col0 * + 39 AS col2 FROM tab1
----
-1989
-3315
-3549

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT ALL + - SUM( - 9 ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8619
SELECT ALL + - SUM ( - 9 ) AS col1 FROM tab1 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL + SUM( ALL + ( + col1 ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + SUM ( ALL + ( + col1 ) ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8621
SELECT - MIN( ALL + + col2 ) * + 53 + + COUNT( * ) * + COUNT( col1 ) AS col2, SUM( - 16 ) FROM tab1
----
-3118
-48

skipif mysql # not compatible
query II rowsort label-8621
SELECT - MIN ( ALL + + col2 ) * + 53 + + COUNT ( * ) * + COUNT ( col1 ) AS col2, SUM ( - 16 ) FROM tab1
----
-3118
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT DISTINCT COUNT( * ), + 48 AS col2 FROM tab1 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-8622
SELECT DISTINCT COUNT ( * ), + 48 AS col2 FROM tab1 AS cor0
----
3
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT col2 IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col2 FROM tab1 cor0
----
75
75
75

query II rowsort
SELECT DISTINCT + 23, + col1 FROM tab0 AS cor0
----
23
1
23
21
23
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <> - col1 * - ( - col2 )
----

query I rowsort
SELECT DISTINCT ( - - 41 ) FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT - col0 + col2 + + - 27 + col0 * - col1 FROM tab2 AS cor0
----
-2396
-4979
-5069

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8630
SELECT - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 14 + - 12 AS col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL - 4 - + col2 - + - col2 + + col0 + + col2 FROM tab2
----
100
129
65

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN + col0 AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT + COUNT( * ) + 17 AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT + COUNT ( * ) + 17 AS col2 FROM tab2
----
20

query I rowsort
SELECT DISTINCT col2 - + - ( + ( + + col2 ) ) AS col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT ALL CAST( NULL AS SIGNED ) - - + MIN( - ( 48 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL CAST ( NULL AS INTEGER ) - - + MIN ( - ( 48 ) ) FROM tab0
----
NULL

query I rowsort
SELECT 15 + - col0 FROM tab2
----
-31
-49
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT DISTINCT - col0 - CAST( NULL AS SIGNED ) + 77 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT - col0 - CAST ( NULL AS INTEGER ) + 77 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8639
SELECT CAST( 89 AS SIGNED ) DIV 49 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8639
SELECT CAST ( 89 AS INTEGER ) / 49 AS col0 FROM tab0 cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 73 / + 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 31 ) AS col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + - 82 AS col1 FROM tab2 cor0
----
-82

query I rowsort
SELECT DISTINCT + col0 * - 88 FROM tab2
----
-4048
-5632
-6600

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - - 82 / + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 43 FROM tab1 cor0
----
43
43
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT DISTINCT 23 * - - 46 * + col1 + + CAST( + - 77 AS SIGNED ) + 41 FROM tab0 AS cor0
----
1022
22182
85662

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT 23 * - - 46 * + col1 + + CAST ( + - 77 AS INTEGER ) + 41 FROM tab0 AS cor0
----
1022
22182
85662

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT - COUNT( * ) * 47 * - 68 AS col1 FROM tab0 AS cor0
----
9588

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT - COUNT ( * ) * 47 * - 68 AS col1 FROM tab0 AS cor0
----
9588

query I rowsort
SELECT ALL - 70 * col0 AS col2 FROM tab2 AS cor0
----
-3220
-4480
-5250

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 39
----

query I rowsort
SELECT DISTINCT - - col1 + - 60 AS col0 FROM tab0 cor0
----
-39
-59
21

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * col0 AS col2 FROM tab1
----
25075
290836
68544

query II rowsort
SELECT 46, 20 * col1 AS col1 FROM tab1
----
46
100
46
280
46
940

query I rowsort
SELECT ALL col2 * - 13 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT + col2 * - col0 + - 24 FROM tab1
----
-4920
-5039
-6212

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT DISTINCT + ( - col2 ) DIV + + col2 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT + ( - col2 ) / + + col2 AS col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col2 + + - 96 col1 FROM tab1 AS cor0
----
1248
199
3100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT ALL - - 93 + - MAX( + 31 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL - - 93 + - MAX ( + 31 ) FROM tab2 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8660
SELECT ALL + 89, + CAST( - col1 AS SIGNED ) * - - col1 * + 43 * - CAST( + 28 AS SIGNED ) + - 68 AS col0 FROM tab2 cor0
----
89
3131536
89
5404688
89
7138448

skipif mysql # not compatible
query II rowsort label-8660
SELECT ALL + 89, + CAST ( - col1 AS INTEGER ) * - - col1 * + 43 * - CAST ( + 28 AS INTEGER ) + - 68 AS col0 FROM tab2 cor0
----
89
3131536
89
5404688
89
7138448

query I rowsort
SELECT ALL - col1 + + 3 FROM tab1 cor0
----
-11
-2
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT + COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8662
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 82 * - - col1 FROM tab0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT - MAX( DISTINCT + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8664
SELECT - MAX ( DISTINCT + col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT + + ( - - col0 ) + 17 * col0 FROM tab0 AS cor0
----
1566
1746
270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <> NULL
----

query I rowsort
SELECT ALL col0 + + - col0 * + col2 AS col2 FROM tab2 cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT + - 64 + 73 * - col1 FROM tab1 AS cor0
----
-1086
-3495
-429

query I rowsort
SELECT + - col2 + - + 89 AS col1 FROM tab1 AS cor0
----
-148
-157
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - 67 + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8671
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + ( + COUNT( * ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + ( + COUNT ( * ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 - + - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col1 FROM tab1
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL 27 * - + COUNT( * ) + + + SUM( - + col0 ) FROM tab0
----
-280

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL 27 * - + COUNT ( * ) + + + SUM ( - + col0 ) FROM tab0
----
-280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 95 * + + col1 + + - col0 * + 18 col0 FROM tab1
----
-14
412
-47
2827
-5
-1055

query II rowsort
SELECT + 62, + 15 + + - col2 AS col1 FROM tab0
----
62
-32
62
-84
62
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - - ( + - MIN( DISTINCT + 35 ) ) AS col2 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - - ( + - MIN ( DISTINCT + 35 ) ) AS col2 FROM tab1 cor0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT - CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8679
SELECT - CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + COUNT( + col2 ) * + + 49 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-8680
SELECT + COUNT ( + col2 ) * + + 49 FROM tab0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT - SUM( + 93 ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT - SUM ( + 93 ) FROM tab0 AS cor0
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT 36 + - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 44 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT 36 + - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 44 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 + - - ( - - col2 ) AS col1 FROM tab0 AS cor0
----
113
24
61

query I rowsort
SELECT ALL 90 + + col1 AS col0 FROM tab1 AS cor0
----
104
137
95

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL + MAX( + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + MAX ( + col0 ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL COUNT( + 79 ) + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL COUNT ( + 79 ) + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8688
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + AVG ( + + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + AVG ( + + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + + ( + + 49 ) + + - col2 * + col0 FROM tab1 AS cor0
----
-4847
-4966
-6139

query I rowsort
SELECT ALL + 38 + 22 FROM tab0
----
60
60
60

query II rowsort
SELECT - ( + 45 ), col1 AS col0 FROM tab0
----
-45
1
-45
21
-45
81

query I rowsort
SELECT 81 * + - ( + - col0 ) AS col1 FROM tab0 AS cor0
----
1215
7047
7857

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT 16 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1552
19440
29232

query I rowsort
SELECT ALL - - 18 * + col2 FROM tab0 AS cor0
----
1782
180
846

query I rowsort
SELECT - 5 * - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
235
25
70

query I rowsort
SELECT DISTINCT col1 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

query I rowsort
SELECT ALL - col0 * + - col0 + + col1 AS col1 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 + + + col1 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - COUNT( * ) * + COUNT( * ) col0 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8700
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col0 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - SUM( 99 ) FROM tab2 cor0 WHERE NOT NULL <> + 82 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT - SUM ( 99 ) FROM tab2 cor0 WHERE NOT NULL <> + 82 + col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 62 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8703
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / ( col1 ) + + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) BETWEEN - 95 + - col1 AND - - col2
----

skipif mysql # not compatible
query III rowsort label-8703
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / ( col1 ) + + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) BETWEEN - 95 + - col1 AND - - col2
----

query I rowsort
SELECT ALL 34 AS col2 FROM tab1 cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8705
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( - col2 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8705
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( - col2 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8707
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8707
SELECT - COUNT ( * ) / + COUNT ( * ) FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 - - col2 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT - SUM( DISTINCT - - col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8709
SELECT - SUM ( DISTINCT - - col1 ) AS col2 FROM tab0
----
-103

query II rowsort
SELECT col2 AS col0, 38 FROM tab2
----
23
38
40
38
58
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT DISTINCT + CAST( - - AVG ( DISTINCT - col2 ) AS SIGNED ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + CAST ( - - AVG ( DISTINCT - col2 ) AS INTEGER ) FROM tab2
----
-40

query I rowsort
SELECT ALL ( + 78 ) FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT col1 + 63 + + col2 AS col2 FROM tab1 cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8714
SELECT ALL col1 DIV col2 * + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL col1 / col2 * + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT + COUNT( * ) * - 73 * - COUNT( * ) + 29 AS col0, + COUNT( * ) FROM tab2
----
686
3

skipif mysql # not compatible
query II rowsort label-8717
SELECT + COUNT ( * ) * - 73 * - COUNT ( * ) + 29 AS col0, + COUNT ( * ) FROM tab2
----
686
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT COUNT( * ) col2 FROM tab0 WHERE NULL <= - 48 + + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8718
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 WHERE NULL <= - 48 + + col0
----
0

query I rowsort
SELECT + 21 + 64 AS col0 FROM tab1
----
85
85
85

query I rowsort
SELECT + 48 + - col1 + - 97 - + col2 * + - col0 AS col2 FROM tab1
----
4833
4961
6092

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8721
SELECT + 25 DIV + + CAST( + 42 AS SIGNED ) + - col0 - + 67 * - col0 AS col2 FROM tab1
----
3366
5610
6006

skipif mysql # not compatible
query I rowsort label-8721
SELECT + 25 / + + CAST ( + 42 AS INTEGER ) + - col0 - + 67 * - col0 AS col2 FROM tab1
----
3366
5610
6006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8722
SELECT CAST( + ( + 92 ) AS SIGNED ) + - - col2 AS col1, + col0 * col1 FROM tab1
----
151
425
160
4277
188
714

skipif mysql # not compatible
query II rowsort label-8722
SELECT CAST ( + ( + 92 ) AS INTEGER ) + - - col2 AS col1, + col0 * col1 FROM tab1
----
151
425
160
4277
188
714

query I rowsort
SELECT - - col0 * col1 + + col1 FROM tab2 AS cor0
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT - - SUM( + 90 ) AS col0 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-8724
SELECT - - SUM ( + 90 ) AS col0 FROM tab2 AS cor0
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT DISTINCT ( + COUNT( * ) ) - + + 92 + + 82 - - + 57 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT ( + COUNT ( * ) ) - + + 92 + + 82 - - + 57 FROM tab2 AS cor0
----
50

query I rowsort
SELECT DISTINCT 34 * + 90 FROM tab2
----
3060

query I rowsort
SELECT + - 16 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - col2
----

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT col0 * - - 68 FROM tab1 AS cor0
----
3468
5780
6188

query II rowsort
SELECT ALL - col1 + col0 AS col1, col1 * + 45 AS col0 FROM tab2 AS cor0 WHERE NOT col2 > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8732
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - 29 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8732
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - 29 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + 7 * - 74 * + - 88 * - col0 + + + ( + col1 ) AS col2, col1 * + col0 FROM tab2 AS cor0
----
-2096813
2346
-2917299
4928
-3418733
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + ( - 95 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 60 AS col0 FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + - COUNT( - 58 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8737
SELECT + - COUNT ( - 58 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 * - ( + col2 ) FROM tab1 cor0
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 72 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8740
SELECT + + COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT + SUM( ALL col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8741
SELECT + SUM ( ALL col1 ) AS col2 FROM tab1
----
66

query III rowsort
SELECT * FROM tab0 WHERE NOT 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 32 AS col1, 16 FROM tab1
----
-32
16
-32
16
-32
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT MAX( DISTINCT + + col1 ) * + ( 7 ) + 7 + + + ( 71 ) FROM tab2
----
617

skipif mysql # not compatible
query I rowsort label-8744
SELECT MAX ( DISTINCT + + col1 ) * + ( 7 ) + 7 + + + ( 71 ) FROM tab2
----
617

query II rowsort
SELECT col1 AS col2, col1 * + + 57 AS col2 FROM tab1
----
14
798
47
2679
5
285

query I rowsort
SELECT ALL - 3 * + - col1 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8747
SELECT DISTINCT - 56 DIV - + COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - 56 / - + COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ALL - col0 * - + 0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8749
SELECT * FROM tab2 AS cor0 WHERE NOT + 52 * + CAST( NULL AS SIGNED ) * + col1 * 44 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8749
SELECT * FROM tab2 AS cor0 WHERE NOT + 52 * + CAST ( NULL AS INTEGER ) * + col1 * 44 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT + ( + - SUM( DISTINCT - + 2 ) ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + ( + - SUM ( DISTINCT - + 2 ) ) FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT + MAX( - 21 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + MAX ( - 21 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-8753
SELECT + 59 DIV + + col0, col2 FROM tab2
----
0
40
0
58
1
23

skipif mysql # not compatible
query II rowsort label-8753
SELECT + 59 / + + col0, col2 FROM tab2
----
0
40
0
58
1
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 71 AS col2 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT ALL + 88 * + 40 + - 91 AS col0 FROM tab2 AS cor0
----
3429
3429
3429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8758
SELECT ALL + COUNT( * ) + - SUM( DISTINCT - CAST( + - 84 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + COUNT ( * ) + - SUM ( DISTINCT - CAST ( + - 84 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 18 >= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col0 AS col1, - col0 AS col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT ALL 12 + + - col0 FROM tab2
----
-34
-52
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab1
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab0 WHERE - - 77 * + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 10 + - - col2 AS col2 FROM tab0
----
109
20
57

query II rowsort
SELECT DISTINCT + col2, 59 * + col2 * + ( 33 ) FROM tab1
----
59
114873
68
132396
96
186912

query II rowsort
SELECT ALL - 16, col2 FROM tab1 AS cor0
----
-16
59
-16
68
-16
96

query I rowsort
SELECT col0 - + - col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 70 + + + col1 FROM tab1 cor0
----
-23
-56
-65

query I rowsort
SELECT DISTINCT - 86 - - + col2 AS col1 FROM tab2
----
-28
-46
-63

query I rowsort
SELECT DISTINCT 31 * - - col1 FROM tab0
----
2511
31
651

query I rowsort
SELECT - + col2 * - - 89 AS col2 FROM tab2 AS cor0
----
-2047
-3560
-5162

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT + col0 * col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8773
SELECT + col0 * col2 / - col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8774
SELECT col1 DIV + col1 - + col2 AS col0 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8774
SELECT col1 / + col1 - + col2 AS col0 FROM tab2 cor0
----
-22
-39
-57

query I rowsort
SELECT + + 57 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8776
SELECT - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + col0 * + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) <= - + 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT MIN( - + 36 ) AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8779
SELECT MIN ( - + 36 ) AS col0 FROM tab1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8780
SELECT ALL - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 46 * + - 58 AS col2 FROM tab1
----
-2668
-2668
-2668

query I rowsort
SELECT DISTINCT - 37 * - col0 AS col2 FROM tab1
----
1887
3145
3367

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT - COUNT( ALL col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8783
SELECT - COUNT ( ALL col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT MAX( ALL + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT MAX ( ALL + col2 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ( + ( + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8785
SELECT ( + ( + COUNT ( * ) ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT + ( - ( - col0 ) ) DIV - + col2 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8786
SELECT + ( - ( - col0 ) ) / - + col2 AS col1 FROM tab2
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8788
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) < - col1
----

skipif mysql # not compatible
query III rowsort label-8788
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) < - col1
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE - 10 IS NULL
----

query I rowsort
SELECT ALL + col0 + - - col1 + 53 FROM tab1 AS cor0
----
118
143
191

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8791
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) + - - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) + - - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 7 * + + col2 + + 59 AS col0 FROM tab0 AS cor0
----
129
388
752

query I rowsort
SELECT ALL - col2 * col2 + + + 45 FROM tab1 AS cor0
----
-3436
-4579
-9171

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 89 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT ALL 90 + col2 DIV + col0 AS col0 FROM tab0
----
90
91
93

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL 90 + col2 / + col0 AS col0 FROM tab0
----
90
91
93

query I rowsort
SELECT ALL + 36 + - col2 + + + col1 * + + ( 80 ) AS col1 FROM tab0
----
17
1706
6469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * + col2 + - 18 col0 FROM tab0
----
-159
-315
-48

query I rowsort
SELECT DISTINCT + 83 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT + MIN( - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8799
SELECT + MIN ( - col1 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT DISTINCT CAST( col0 AS SIGNED ) - - col2 AS col1 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT CAST ( col0 AS INTEGER ) - - col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT - - 88 AS col0 FROM tab0 WHERE - 43 IS NOT NULL
----
88
88
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8802
SELECT ALL 95 - + COUNT( * ), + COUNT( * ) AS col2 FROM tab0
----
92
3

skipif mysql # not compatible
query II rowsort label-8802
SELECT ALL 95 - + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0
----
92
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2, tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2, tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + 29 * + + COUNT( * ) + + - COUNT( * ) * 92 FROM tab2, tab0 AS cor0
----
-567

skipif mysql # not compatible
query I rowsort label-8804
SELECT + 29 * + + COUNT ( * ) + + - COUNT ( * ) * 92 FROM tab2, tab0 AS cor0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ( - + COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8805
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT + - COUNT( - col1 ) AS col0 FROM tab0 WHERE NOT - 66 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + - COUNT ( - col1 ) AS col0 FROM tab0 WHERE NOT - 66 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL COUNT( * ) + - 70 * 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-341

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL COUNT ( * ) + - 70 * 5 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT COUNT( * ) * - 29 * + + 84 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7308

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT COUNT ( * ) * - 29 * + + 84 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-7308

query I rowsort
SELECT DISTINCT - 29 FROM tab0 cor0
----
-29

query II rowsort
SELECT - 51, 90 AS col0 FROM tab2 AS cor0
----
-51
90
-51
90
-51
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 63, col2 * - - col0 col0 FROM tab2 AS cor0
----
63
1058
63
2560
63
4350

query II rowsort
SELECT DISTINCT + 98, col0 FROM tab2 AS cor0
----
98
46
98
64
98
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT 15 * COUNT( * ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT 15 * COUNT ( * ) FROM tab1 AS cor0
----
45

query II rowsort
SELECT + 58 AS col0, - col0 FROM tab0 AS cor0
----
58
-15
58
-87
58
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT - + 58 * - COUNT( * ) col2 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT DISTINCT - + 58 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
174

query I rowsort
SELECT ( - col2 ) * + + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - - 5 FROM tab1 WHERE NOT + - col0 / 13 / 75 IS NOT NULL
----

query I rowsort
SELECT ALL - 76 * 29 AS col1 FROM tab0
----
-2204
-2204
-2204

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT BETWEEN NULL AND + - col0 + + 45
----

query I rowsort
SELECT DISTINCT + 30 FROM tab2 WHERE + + col0 - + col0 + - + 81 * + col0 * col2 + - + 44 * + 55 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 34 BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - col0 * - 39 + - - col2 + + col1 * - col2 FROM tab2 AS cor0
----
-544
-903
644

query II rowsort
SELECT ( + + col0 ), + col2 * + 96 FROM tab1 AS cor0
----
51
9216
85
5664
91
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8826
SELECT col2 DIV + CAST( - col0 AS SIGNED ) + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8826
SELECT col2 / + CAST ( - col0 AS INTEGER ) + + col1 FROM tab2
----
51
67
77

query II rowsort
SELECT ALL col1, + 87 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 8 AS col2 FROM tab0 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8830
SELECT ALL - col1 * col0 DIV - col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - col1 * col0 / - col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT - + ( + + 21 ) + SUM( col2 ) FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - + ( + + 21 ) + SUM ( col2 ) FROM tab0 AS cor0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL + + 70 + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + + 70 + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND - 79 - - col0 * - 41
----

query II rowsort
SELECT - col2, - col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query II rowsort
SELECT + col0 AS col2, + 17 - - ( - col1 ) AS col1 FROM tab0 AS cor0
----
15
-64
87
-4
97
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col0 FROM tab1
----
14
51
47
91
5
85

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT COUNT( * ) FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT COUNT ( * ) FROM tab0, tab2 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + - 33 FROM tab0
----
-1551
-3267
-330

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL IN ( + col1 * - col1 / - + ( col1 ), - ( col1 ), ( + col0 ) + - + 58 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT - 67 * - 61 + + - CAST( 10 AS SIGNED ) FROM tab0 AS cor0
----
4077
4077
4077

skipif mysql # not compatible
query I rowsort label-8843
SELECT - 67 * - 61 + + - CAST ( 10 AS INTEGER ) FROM tab0 AS cor0
----
4077
4077
4077

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + + 59 + - 86 * MAX( 64 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5445

skipif mysql # not compatible
query I rowsort label-8844
SELECT + + 59 + - 86 * MAX ( 64 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-5445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col1 FROM tab2 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT - SUM( col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - SUM ( col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - - SUM( ALL + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT - - SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT COUNT( * ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8848
SELECT COUNT ( * ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT - ( 52 ) * - 47 FROM tab0 AS cor0
----
2444
2444
2444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT DISTINCT + col0 * ( CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8850
SELECT DISTINCT + col0 * ( CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( - - col1 IS NOT NULL )
----

query I rowsort
SELECT + col0 * - - col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col0, - col1 + + + col0 AS col1 FROM tab0
----
1
96
21
66
81
-66

query II rowsort
SELECT - 37 AS col1, col1 AS col2 FROM tab2
----
-37
51
-37
67
-37
77

query I rowsort
SELECT ( - 40 ) AS col2 FROM tab0
----
-40
-40
-40

query II rowsort
SELECT DISTINCT + col0, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL 57 + + + CAST( - - MIN( ( + col2 ) ) AS SIGNED ) FROM tab1 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL 57 + + + CAST ( - - MIN ( ( + col2 ) ) AS INTEGER ) FROM tab1 AS cor0
----
116

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8860
SELECT - MIN( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ( + COUNT( ALL - - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8861
SELECT ( + COUNT ( ALL - - col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - COUNT( * ) + 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - COUNT ( * ) + 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT - COUNT( * ) * - - 83 AS col0 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-8863
SELECT - COUNT ( * ) * - - 83 AS col0 FROM tab0
----
-249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8864
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT + CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( ( NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col0 * + - 76 * - col0 AS col1 FROM tab0 cor0
----
17100
575244
715084

query II rowsort
SELECT DISTINCT col2 * col0 * + + 61 * + + col1 AS col0, col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - 26 + + + col1 FROM tab2 cor0
----
25
41
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 3 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 * 80 + + 69 AS col2, col2 col0 FROM tab1
----
1749
59
1749
68
1749
96

query I rowsort
SELECT + col1 + - col2 + + + col0 FROM tab0
----
-1
49
98

query III rowsort
SELECT ALL col0 - - ( + + ( col2 ) ) + - 33 AS col1, + 69, + + 95 AS col1 FROM tab1
----
9 values hashing to 93fc708e12b65d52c04a0976122bcad7

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT ALL + col0 + + col2 AS col1 FROM tab0 WHERE NOT + + 38 <= ( + col0 ) * col0
----

query I rowsort
SELECT DISTINCT - 52 * - col2 AS col0 FROM tab2
----
1196
2080
3016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <= - - col2 / - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8878
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 <= - - col2 / - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT + - 43 * - col1 AS col1 FROM tab2 AS cor0
----
2193
2881
3311

query I rowsort
SELECT ALL - 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
25

query II rowsort
SELECT ALL - col0, + col0 * col1 AS col0 FROM tab0 AS cor0
----
-15
1215
-87
1827
-97
97

query I rowsort
SELECT DISTINCT + 53 * 75 FROM tab2 AS cor0
----
3975

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT - + COUNT( * ) col1, + 1 col2 FROM tab1 AS cor0
----
-3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8886
SELECT - + COUNT ( * ) col1, + 1 col2 FROM tab1 AS cor0
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT + 80 * - COUNT( * ) * 2 FROM tab0 AS cor0
----
-480

skipif mysql # not compatible
query I rowsort label-8887
SELECT + 80 * - COUNT ( * ) * 2 FROM tab0 AS cor0
----
-480

query I rowsort
SELECT ALL - + 60 AS col1 FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT + + MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8889
SELECT + + MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL + col0 AS col2, ( + - col2 ) AS col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

query II rowsort
SELECT ALL - col1, - col2 * + - 30 AS col0 FROM tab2 AS cor0
----
-51
690
-67
1740
-77
1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8893
SELECT - CAST( NULL AS SIGNED ) * - ( + 1 ) AS col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8893
SELECT - CAST ( NULL AS INTEGER ) * - ( + 1 ) AS col2, + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - 40 + - col0 = - + 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + + 56 + - col0 AS col1, col2 FROM tab1 AS cor0
----
-29
59
-35
68
5
96

query I rowsort
SELECT DISTINCT + + 23 * - 53 + + + 36 + 99 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-1084

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8900
SELECT col1 AS col2, + col0 * col0 DIV col2 FROM tab1 AS cor0
----
14
27
47
121
5
122

skipif mysql # not compatible
query II rowsort label-8900
SELECT col1 AS col2, + col0 * col0 / col2 FROM tab1 AS cor0
----
14
27
47
121
5
122

query II rowsort
SELECT ALL + 45 AS col1, col2 FROM tab2 AS cor0
----
45
23
45
40
45
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + MAX( ALL - + 29 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8902
SELECT + MAX ( ALL - + 29 ) FROM tab1 AS cor0
----
-29

query II rowsort
SELECT col0, col2 * + - 94 * 95 AS col2 FROM tab1 AS cor0
----
51
-857280
85
-526870
91
-607240

onlyif mysql # DIV for integer division: 
query I rowsort label-8904
SELECT - col2 DIV + - ( + 86 ) AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8904
SELECT - col2 / + - ( + 86 ) AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ALL - AVG ( - col0 ) + - + CAST( NULL AS SIGNED ) / + 57 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL - AVG ( - col0 ) + - + CAST ( NULL AS INTEGER ) / + 57 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8907
SELECT - 74 * - CAST( NULL AS SIGNED ) * col1 + + col2 * - 17 - - col1 - ( - - col1 ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8907
SELECT - 74 * - CAST ( NULL AS INTEGER ) * col1 + + col2 * - 17 - - col1 - ( - - col1 ), col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8909
SELECT DISTINCT COUNT( * ) * - SUM( ALL + + col1 ) - - 43 AS col0, SUM( DISTINCT + - 53 ) FROM tab0
----
-266
-53

skipif mysql # not compatible
query II rowsort label-8909
SELECT DISTINCT COUNT ( * ) * - SUM ( ALL + + col1 ) - - 43 AS col0, SUM ( DISTINCT + - 53 ) FROM tab0
----
-266
-53

query I rowsort
SELECT ALL 27 + - 12 AS col0 FROM tab1
----
15
15
15

query I rowsort
SELECT col1 - + ( + col0 ) FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-8912
SELECT 38 AS col1, + COUNT( * ) * COUNT( * ) * - - COUNT( DISTINCT - 28 ) FROM tab1 WHERE NOT + - 64 NOT BETWEEN 88 * col2 AND + ( + 35 ) * col2
----
38
0

skipif mysql # not compatible
query II rowsort label-8912
SELECT 38 AS col1, + COUNT ( * ) * COUNT ( * ) * - - COUNT ( DISTINCT - 28 ) FROM tab1 WHERE NOT + - 64 NOT BETWEEN 88 * col2 AND + ( + 35 ) * col2
----
38
0

query II rowsort
SELECT ALL + col1 * col2, 51 AS col0 FROM tab0
----
210
51
3807
51
99
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8914
SELECT ALL - - COUNT( + col1 ) AS col0, 59 AS col0 FROM tab2 AS cor0
----
3
59

skipif mysql # not compatible
query II rowsort label-8914
SELECT ALL - - COUNT ( + col1 ) AS col0, 59 AS col0 FROM tab2 AS cor0
----
3
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT DISTINCT - + SUM( - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - + SUM ( - col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT ALL col0 DIV - ( - 25 ) AS col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL col0 / - ( - 25 ) AS col1 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL - 37 * - + 95 FROM tab1
----
3515
3515
3515

query I rowsort
SELECT - 79 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query II rowsort label-8920
SELECT DISTINCT - - 61 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-8920
SELECT DISTINCT - - 61 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
61
3

query I rowsort
SELECT DISTINCT - col0 * - - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT - + MAX( ALL - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8922
SELECT - + MAX ( ALL - col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 25 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - + col0 ) = + - col2 + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT DISTINCT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 30 * - col1 AS col2 FROM tab0
----
-2430
-30
-630

query I rowsort
SELECT col2 + + + col2 FROM tab2
----
116
46
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8928
SELECT DISTINCT - 59 DIV col0 DIV 15 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT - 59 / col0 / 15 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + + - 8 col2 FROM tab2
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8930
SELECT ALL CAST( + col0 AS SIGNED ) DIV + col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL CAST ( + col0 AS INTEGER ) / + col2 FROM tab0
----
0
0
8

query I rowsort
SELECT - col2 + - - col2 * col2 * + col1 FROM tab2
----
123160
225330
26956

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT SUM( col2 ) + 9 AS col0 FROM tab1
----
232

skipif mysql # not compatible
query I rowsort label-8932
SELECT SUM ( col2 ) + 9 AS col0 FROM tab1
----
232

query II rowsort
SELECT - 31 + - col0 AS col1, 13 AS col0 FROM tab1
----
-116
13
-122
13
-82
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8934
SELECT DISTINCT - COUNT( * ) AS col2, + 53 * COUNT( * ) * + - 25 FROM tab2
----
-3
-3975

skipif mysql # not compatible
query II rowsort label-8934
SELECT DISTINCT - COUNT ( * ) AS col2, + 53 * COUNT ( * ) * + - 25 FROM tab2
----
-3
-3975

query I rowsort
SELECT - col1 + - - 38 AS col2 FROM tab0
----
-43
17
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8937
SELECT col1 AS col0, - 62 + ( + col0 ) + + + col2 DIV - - col1 AS col0 FROM tab0 AS cor0
----
1
134
21
25
81
-47

skipif mysql # not compatible
query II rowsort label-8937
SELECT col1 AS col0, - 62 + ( + col0 ) + + + col2 / - - col1 AS col0 FROM tab0 AS cor0
----
1
134
21
25
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 32 col0, col2 * + 15 FROM tab1 cor0
----
-32
1020
-32
1440
-32
885

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 81 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 58 + 4 col1 FROM tab2 AS cor0
----
2962
3890
4470

query I rowsort
SELECT - + ( + + col2 ) + col1 AS col0 FROM tab2 AS cor0 WHERE + col0 * - - col1 IS NULL
----

query I rowsort
SELECT col2 + 40 AS col1 FROM tab2 AS cor0
----
63
80
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8945
SELECT - col1 + CAST( NULL AS SIGNED ) / 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8945
SELECT - col1 + CAST ( NULL AS INTEGER ) / 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - COUNT( DISTINCT + + 12 ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8946
SELECT - COUNT ( DISTINCT + + 12 ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8948
SELECT 44, - col2 + + - col2 DIV + col0 + - + col1 AS col1 FROM tab1
----
44
-111
44
-115
44
-64

skipif mysql # not compatible
query II rowsort label-8948
SELECT 44, - col2 + + - col2 / + col0 + - + col1 AS col1 FROM tab1
----
44
-111
44
-115
44
-64

query II rowsort
SELECT 50 AS col1, col0 AS col2 FROM tab0
----
50
15
50
87
50
97

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + col2 NOT BETWEEN NULL AND - + col1
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL 10 * + SUM( - - col2 ) AS col0 FROM tab2
----
1210

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL 10 * + SUM ( - - col2 ) AS col0 FROM tab2
----
1210

query I rowsort
SELECT - + 4 * 0 + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT DISTINCT + SUM( col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + SUM ( col1 ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT col2 DIV col1 + - 56 AS col2 FROM tab2
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-8954
SELECT col2 / col1 + - 56 AS col2 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT col1 + + col0 * - col0 FROM tab2
----
-2065
-4019
-5558

query I rowsort
SELECT + col2 * + 67 FROM tab0 WHERE ( col0 * col0 ) <= - col1
----

query I rowsort
SELECT col0 + - 96 / + col2 FROM tab2 WHERE NULL >= + col0
----

query I rowsort
SELECT DISTINCT col2 * 98 + + col1 AS col2 FROM tab0
----
1001
4687
9703

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + SUM( DISTINCT col1 ) + 77 FROM tab2
----
272

skipif mysql # not compatible
query I rowsort label-8959
SELECT + SUM ( DISTINCT col1 ) + 77 FROM tab2
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT ALL - COUNT( * ) + + 43 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - COUNT ( * ) + + 43 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT - col2 BETWEEN + col2 AND ( 28 * 89 )
----
23
40
58

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT col1 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col1 + + col0 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * + 96 col0 FROM tab1
----
-1293
-395
-4421

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT 18 + - 40 * COUNT( * ) AS col1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-8967
SELECT 18 + - 40 * COUNT ( * ) AS col1 FROM tab0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + COUNT( * ) - - MIN( ALL col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + COUNT ( * ) - - MIN ( ALL col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT SUM( DISTINCT + col2 ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8969
SELECT DISTINCT SUM ( DISTINCT + col2 ) col0 FROM tab1
----
223

query I rowsort
SELECT ALL col1 * - 16 AS col0 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 WHERE NOT NULL > - col2
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT col1 * + col1 >= ( - col0 * col1 + - col1 )
----

query I rowsort
SELECT - col0 + - 5 FROM tab2
----
-51
-69
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( 99 ) AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT DISTINCT + MAX( DISTINCT + 99 ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8976
SELECT DISTINCT + MAX ( DISTINCT + 99 ) AS col1 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT MIN( ALL + ( - 2 ) ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-8977
SELECT MIN ( ALL + ( - 2 ) ) FROM tab2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 81 + col2 AS col0 FROM tab2 AS cor0
----
104
121
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT 30 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8982
SELECT 30 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT DISTINCT - col1 DIV - col2 - + col0 AS col2 FROM tab0
----
-14
-85
-97

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT - col1 / - col2 - + col0 AS col2 FROM tab0
----
-14
-85
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL + 75 + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + 75 + COUNT ( * ) FROM tab1
----
78

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT ALL - col1 * CAST( col0 AS SIGNED ) - col0 AS col0 FROM tab1 AS cor0
----
-4368
-510
-765

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - col1 * CAST ( col0 AS INTEGER ) - col0 AS col0 FROM tab1 AS cor0
----
-4368
-510
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL - - MIN( ALL - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT - - 75 - + col2 FROM tab1 AS cor0
----
-21
16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col1 + - 49 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( - 27 + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT ALL - 31 / CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8992
SELECT ALL - 31 / CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= - ( + col0 ) * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8994
SELECT - + 51 DIV SUM( 72 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT - + 51 / SUM ( 72 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL > ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL MAX( DISTINCT + col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT ALL MAX ( DISTINCT + col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab2 WHERE NOT NULL IN ( col1 * 67 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9000
SELECT + 39 DIV + + 32 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9000
SELECT + 39 / + + 32 AS col0 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - SUM( DISTINCT + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9002
SELECT - SUM ( DISTINCT + col2 ) FROM tab0
----
-156

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + COUNT( + 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 18 + 15
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT + COUNT ( + 15 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 18 + 15
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 31 = + ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE NOT ( - 12 ) NOT IN ( col2 * + 50 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col1 * col0 AS col0 FROM tab1 AS cor0 WHERE - 72 > - 84
----
425
4277
714

query I rowsort
SELECT ALL - col2 * - 45 + - + col0 + + 14 FROM tab2 AS cor0
----
1003
1750
2549

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * - 53 AS col1 FROM tab2 cor0
----
-2703
-3551
-4081

query I rowsort
SELECT 52 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col1 * - col1 / col2 )
----

query I rowsort
SELECT ALL col2 * - 63 + col0 FROM tab0 cor0
----
-2946
-543
-6140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT DISTINCT - + 49 * + CAST( NULL AS SIGNED ) * col0 * + col1 + 77 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT - + 49 * + CAST ( NULL AS INTEGER ) * col0 * + col1 + 77 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE ( - col2 ) IN ( + col0 * col2 )
----

query I rowsort
SELECT col2 * + col1 + 19 FROM tab0 WHERE ( col2 ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT 38 + SUM( + col2 ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT 38 + SUM ( + col2 ) FROM tab1
----
261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 + col0 - + 11 col0 FROM tab0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col0 + - + col2 + + ( + col0 ) FROM tab2
----
69
88
92

query II rowsort
SELECT DISTINCT - - 75 * - col1 AS col0, - col0 * - + 94 FROM tab0 AS cor0
----
-1575
8178
-6075
1410
-75
9118

query I rowsort
SELECT ALL + 48 * + - col0 * col0 FROM tab0 AS cor0
----
-10800
-363312
-451632

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT ALL - - MIN( DISTINCT 99 ) + COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - - MIN ( DISTINCT 99 ) + COUNT ( * ) FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9025
SELECT ALL COUNT( DISTINCT + col2 ) DIV COUNT( * ) AS col2 FROM tab1 WHERE - col0 + + col1 >= - col1
----
1

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL COUNT ( DISTINCT + col2 ) / COUNT ( * ) AS col2 FROM tab1 WHERE - col0 + + col1 >= - col1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 41 <> - col1 * 40 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - COUNT( DISTINCT + - col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - COUNT ( DISTINCT + - col1 ) AS col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT 90 * 70 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
6300

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 14 * + + col2 * + 74 / - - 34 + - 30 * - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT DISTINCT + col1 * col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + col1 * col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9031
SELECT - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT ALL col0 DIV - 80 AS col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL col0 / - 80 AS col1 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9034
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

query II rowsort
SELECT col2, 33 + + col2 AS col2 FROM tab1
----
59
92
68
101
96
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT + - 94 NOT IN ( - col0 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT + - 94 NOT IN ( - col0 * col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ( - ( + COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9037
SELECT ( - ( + COUNT ( * ) ) ) FROM tab0
----
-3

query I rowsort
SELECT 93 * + - 78 AS col1 FROM tab2
----
-7254
-7254
-7254

onlyif mysql # DIV for integer division: 
query II rowsort label-9039
SELECT 34 DIV + col1 AS col1, - col2 AS col0 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-9039
SELECT 34 / + col1 AS col1, - col2 AS col0 FROM tab2
----
0
-23
0
-40
0
-58

query II rowsort
SELECT DISTINCT col1 * 7 AS col2, - col2 FROM tab1
----
329
-68
35
-59
98
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9041
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) * 37 = + col1
----

skipif mysql # not compatible
query III rowsort label-9041
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) * 37 = + col1
----

query II rowsort
SELECT - - 82 AS col1, - 68 AS col0 FROM tab2 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col0 + col0 * - 55
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - + COUNT( - ( - - col1 ) ) FROM tab2 AS cor0 WHERE NOT - 13 * + + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9045
SELECT - + COUNT ( - ( - - col1 ) ) FROM tab2 AS cor0 WHERE NOT - 13 * + + col1 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9047
SELECT + COUNT( * ), - 96 AS col2 FROM tab0 cor0
----
3
-96

skipif mysql # not compatible
query II rowsort label-9047
SELECT + COUNT ( * ), - 96 AS col2 FROM tab0 cor0
----
3
-96

query II rowsort
SELECT ALL - + col0, - col2 * - + 11 AS col1 FROM tab0 AS cor0
----
-15
517
-87
110
-97
1089

query I rowsort
SELECT + col0 + - - col1 + col1 * + - col0 AS col0 FROM tab0
----
-1119
-1719
1

query III rowsort
SELECT * FROM tab2 WHERE NULL < + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 94 + + col2 col0, ( col1 ) AS col0 FROM tab2 AS cor0
----
117
51
134
77
152
67

query I rowsort
SELECT DISTINCT - col0 * + col0 + - + col2 + + + col0 FROM tab1 AS cor0
----
-2646
-7199
-8258

query I rowsort
SELECT - 1 + + col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT - - col0 * + 80 - 33 FROM tab2 cor0
----
3647
5087
5967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT + COUNT( * ) DIV - 36 * - 85 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9055
SELECT + COUNT ( * ) / - 36 * - 85 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 + + + col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2647
-4564
-5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col0 FROM tab0 cor0
----
74
74
74

query III rowsort
SELECT * FROM tab1 WHERE NULL = + - col2
----

query I rowsort
SELECT 32 - - col1 FROM tab2
----
109
83
99

query I rowsort
SELECT ( + col2 ) + - col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ALL - COUNT( ALL col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL - COUNT ( ALL col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 + col2 col1 FROM tab0 AS cor0
----
-30
59
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT ALL + - col0 DIV + 88 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL + - col0 / + 88 AS col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT COUNT( * ) * 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - + ( + 73 ) IN ( + + 0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9066
SELECT COUNT ( * ) * 42 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - + ( + 73 ) IN ( + + 0 ) )
----
0

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-42

query I rowsort
SELECT ALL + - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9069
SELECT - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT - CAST( + col0 AS SIGNED ) * - 11 AS col1 FROM tab2 WHERE NOT - col2 >= col2 / - col0
----
506
704
825

skipif mysql # not compatible
query I rowsort label-9070
SELECT - CAST ( + col0 AS INTEGER ) * - 11 AS col1 FROM tab2 WHERE NOT - col2 >= col2 / - col0
----
506
704
825

query I rowsort
SELECT - 65 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query II rowsort
SELECT ALL - + 52 * + col2 AS col2, + col0 AS col2 FROM tab2 AS cor0
----
-1196
46
-2080
64
-3016
75

query I rowsort
SELECT - - 38 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 * + - col1 AND col2 * - 26
----

query I rowsort
SELECT DISTINCT - - 72 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + ( - - col0 ), col1 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT - col1 / + + 10 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT - col1 / + + 10 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * col2 * col0 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT - 55 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT DISTINCT + - CAST( + col0 AS SIGNED ), 44 * - 49 AS col1 FROM tab0 AS cor0
----
-15
-2156
-87
-2156
-97
-2156

skipif mysql # not compatible
query II rowsort label-9078
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ), 44 * - 49 AS col1 FROM tab0 AS cor0
----
-15
-2156
-87
-2156
-97
-2156

query I rowsort
SELECT + ( + - col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT COUNT( * ) DIV + - MAX( DISTINCT col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9080
SELECT COUNT ( * ) / + - MAX ( DISTINCT col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT 50, - COUNT( * ) AS col0 FROM tab1
----
50
-3

skipif mysql # not compatible
query II rowsort label-9081
SELECT 50, - COUNT ( * ) AS col0 FROM tab1
----
50
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT MAX( 78 ) AS col1 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-9082
SELECT MAX ( 78 ) AS col1 FROM tab1
----
78

query I rowsort
SELECT 54 + + col0 + - 94 + 63 FROM tab2
----
69
87
98

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + ( ( - col0 ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - + ( ( - col2 ) ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE col0 * col1 IS NULL
----

query I rowsort
SELECT 66 * - + col1 FROM tab2
----
-3366
-4422
-5082

query I rowsort
SELECT ( - 22 ) * - col1 AS col1 FROM tab0
----
1782
22
462

query I rowsort
SELECT DISTINCT 28 * - 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-728

query II rowsort
SELECT - col1 AS col2, col2 * + col0 + col1 FROM tab2
----
-51
1109
-67
4417
-77
2637

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT 21 AS col1, COUNT( * ) AS col0 FROM tab0
----
21
3

skipif mysql # not compatible
query II rowsort label-9092
SELECT 21 AS col1, COUNT ( * ) AS col0 FROM tab0
----
21
3

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9094
SELECT - 12 DIV + COUNT( * ) AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-9094
SELECT - 12 / + COUNT ( * ) AS col2 FROM tab2
----
-4

query I rowsort
SELECT - col1 + - 26 FROM tab2 AS cor0
----
-103
-77
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT - 63 * - COUNT( * ) + - 84 AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9096
SELECT - 63 * - COUNT ( * ) + - 84 AS col2 FROM tab1 AS cor0
----
105

query I rowsort
SELECT + col2 + col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT - 72 + 16 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9099
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) col0 FROM tab2 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9100
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) col0 FROM tab2 cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - 89 + - ( - col1 ) IS NULL
----

query I rowsort
SELECT + col1 + + + 45 - col1 * - + col1 FROM tab1
----
2301
255
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab0
----
6

query III rowsort
SELECT * FROM tab0 WHERE + col0 IN ( + 12 * + col1 + ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9105
SELECT DISTINCT + col0 - - + col2 - col0 DIV 76 FROM tab1
----
143
147
158

skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + col0 - - + col2 - col0 / 76 FROM tab1
----
143
147
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL SUM( DISTINCT + col1 ) * - COUNT( * ) - COUNT( * ) + - + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL SUM ( DISTINCT + col1 ) * - COUNT ( * ) - COUNT ( * ) + - + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - + col2
----
NULL

query I rowsort
SELECT - col0 * + col0 * + + ( col0 ) FROM tab1
----
-132651
-614125
-753571

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9108
SELECT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL + + 73 * + col2 FROM tab1 AS cor0
----
4307
4964
7008

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / + col0 * + 35 * - - col1 + 47 + + ( + col1 ) IN ( - col1, - col2, - 83 + 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - col0 AS col2, + 34 AS col1 FROM tab1 cor0
----
51
34
85
34
91
34

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT - 53 + col1 - - - ( + col1 ) + col2 * + col1 / - - col0 * col2 + - 32 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9113
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab0 cor0
----
1

query II rowsort
SELECT DISTINCT 56 AS col2, col1 + + - 47 FROM tab2 cor0
----
56
20
56
30
56
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT - SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9115
SELECT - SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 54 col1 FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 50 * - + 27 * + 87 + - 66 AS col0, col0 * - col2 FROM tab1 AS cor0
----
117384
-4896
117384
-5015
117384
-6188

query I rowsort
SELECT - + col1 * + 84 AS col2 FROM tab1 cor0
----
-1176
-3948
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab1
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT col1 DIV - ( col0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT col1 / - ( col0 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9122
SELECT ALL col0 / CAST( NULL AS DECIMAL ) * - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL col0 / CAST ( NULL AS REAL ) * - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( 45 ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - 13 FROM tab2 AS cor0 WHERE col1 * + 85 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <= - col2 + + 27
----

query I rowsort
SELECT 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col1 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT SUM( - 24 ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-9129
SELECT SUM ( - 24 ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
216

query II rowsort
SELECT + col0, + col2 * - 32 * - + ( + col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
15
22513
87
27830
97
307197

query II rowsort
SELECT ALL col1, 92 FROM tab1 AS cor0
----
14
92
47
92
5
92

query I rowsort
SELECT DISTINCT col0 + 5 FROM tab0 AS cor0
----
102
20
92

query I rowsort
SELECT - + ( - 7 ) AS col2 FROM tab0 AS cor0
----
7
7
7

query II rowsort
SELECT DISTINCT + - 30 + - col2, col2 FROM tab1 AS cor0 WHERE NOT col2 * - 24 * + - col1 / - + 81 <= col1
----

query I rowsort
SELECT col1 - - + col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( - - 99 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT + COUNT( * ) + MIN( + col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT + COUNT ( * ) + MIN ( + col2 ) FROM tab1
----
62

query I rowsort
SELECT DISTINCT col0 - + col0 * 4 FROM tab0
----
-261
-291
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9139
SELECT + 18 DIV + + 14 + - col0 * - col0 + + + ( 28 ) col2 FROM tab2
----
2145
4125
5654

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9139
SELECT + 18 / + + 14 + - col0 * - col0 + + + ( 28 ) col2 FROM tab2
----
2145
4125
5654

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT 81 * - 43 * - + COUNT( * ) FROM tab0
----
10449

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT 81 * - 43 * - + COUNT ( * ) FROM tab0
----
10449

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + ( - MIN( DISTINCT + 84 ) ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9142
SELECT + ( - MIN ( DISTINCT + 84 ) ) FROM tab0
----
-84

query I rowsort
SELECT 74 * - + col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-4366
-5032
-7104

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL MAX( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - COUNT( ALL 72 ) * + COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9146
SELECT - COUNT ( ALL 72 ) * + COUNT ( * ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col1 IN ( col1 )
----
-14
-47
-5

query II rowsort
SELECT ALL + ( + - 87 ) AS col0, + col2 FROM tab1
----
-87
59
-87
68
-87
96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT MAX( - 72 ) FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT MAX ( - 72 ) FROM tab1 cor0
----
-72

query I rowsort
SELECT DISTINCT + col2 * + - 78 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col0 / - ( - col1 ) AND 67 + col1 * 34
----
-1794
-3120
-4524

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9153
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT ALL MIN( DISTINCT + - col2 ) + COUNT( * ) + 62 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL MIN ( DISTINCT + - col2 ) + COUNT ( * ) + 62 FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL 86 * - - COUNT( * ) AS col2 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL 86 * - - COUNT ( * ) AS col2 FROM tab1
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT DISTINCT - 66 + + COUNT( * ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT - 66 + + COUNT ( * ) FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT COUNT( * ) * + + 81 AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT COUNT ( * ) * + + 81 AS col0 FROM tab0
----
243

query I rowsort
SELECT ALL - col0 * + 26 AS col2 FROM tab1
----
-1326
-2210
-2366

query I rowsort
SELECT - col2 * col1 * - + col1 + col0 AS col2 FROM tab0
----
196
308382
4497

query I rowsort
SELECT 44 FROM tab1 WHERE NOT col0 + + col0 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 18 + + 20 AS col0 FROM tab2
----
2
2
2

query I rowsort
SELECT ( + - col1 ) * - 50 - 50 + + 5 FROM tab2
----
2505
3305
3805

query I rowsort
SELECT col0 + - - 66 FROM tab2
----
112
130
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT ALL + COUNT( + 42 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + COUNT ( + 42 ) FROM tab2 cor0
----
3

query II rowsort
SELECT col1, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL + + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9168
SELECT ALL + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT ( + COUNT( * ) ) + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT ( + COUNT ( * ) ) + 4 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9170
SELECT ALL - 68 - - COUNT( * ) AS col2, 45 AS col1 FROM tab2 AS cor0
----
-65
45

skipif mysql # not compatible
query II rowsort label-9170
SELECT ALL - 68 - - COUNT ( * ) AS col2, 45 AS col1 FROM tab2 AS cor0
----
-65
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - SUM( col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - SUM ( col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9172
SELECT DISTINCT - + col2 DIV col2 + - + 14 + + - 69 AS col2 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT - + col2 / col2 + - + 14 + + - 69 AS col2 FROM tab2 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT ALL - CAST( 24 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
22
40
51

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - CAST ( 24 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
22
40
51

query I rowsort
SELECT DISTINCT - col0 * 15 * - 11 + - col1 * - + col0 + - - col0 + col2 FROM tab2 cor0
----
10005
15592
17533

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 78 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 0 - - col0 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT 72 AS col1 FROM tab1 WHERE NULL NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT - COUNT( ALL col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9178
SELECT - COUNT ( ALL col0 ) FROM tab2
----
-3

query I rowsort
SELECT ( + 93 ) FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT DISTINCT SUM( ALL + 32 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT SUM ( ALL + 32 ) AS col0 FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9181
SELECT ALL - CAST( + - MIN( DISTINCT col1 ) AS SIGNED ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9181
SELECT ALL - CAST ( + - MIN ( DISTINCT col1 ) AS INTEGER ) col2 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + + 30 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9184
SELECT + + CAST( 9 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + 56 = - - 36
----
9
9
9

skipif mysql # not compatible
query I rowsort label-9184
SELECT + + CAST ( 9 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + 56 = - - 36
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
81

query II rowsort
SELECT 85, 34 * col0 AS col1 FROM tab2 cor0
----
85
1564
85
2176
85
2550

onlyif mysql # DIV for integer division: 
query II rowsort label-9187
SELECT DISTINCT 42 AS col2, 21 DIV + 6 FROM tab1 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-9187
SELECT DISTINCT 42 AS col2, 21 / + 6 FROM tab1 AS cor0
----
42
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 88 + col0 + - + col1 * + - 95 - col0 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT DISTINCT MAX( ALL + 22 ) AS col2 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT MAX ( ALL + 22 ) AS col2 FROM tab1
----
22

query III rowsort
SELECT * FROM tab1 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 + - 36 AS col1, col1 AS col1 FROM tab2
----
10
51
28
77
39
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT - - COUNT( * ) col2 FROM tab1 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9193
SELECT - - COUNT ( * ) col2 FROM tab1 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT - MAX( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - MAX ( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL + ( + ( ( - - COUNT( + + col0 ) ) ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL + ( + ( ( - - COUNT ( + + col0 ) ) ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT - COUNT( * ) + - 35 FROM tab1 cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - COUNT ( * ) + - 35 FROM tab1 cor0
----
-38

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT 2 + + + ( SUM( ALL 30 ) ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-9198
SELECT 2 + + + ( SUM ( ALL 30 ) ) AS col0 FROM tab2 AS cor0
----
92

query I rowsort
SELECT - col1 + - 91 + + col1 AS col2 FROM tab1 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT + - col2 + + col1 * - + col2 FROM tab0 AS cor0
----
-198
-220
-3854

query I rowsort
SELECT ALL 27 + col2 + - + 7 * 83 - - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-554
-554
-554

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE ( + col2 > - col0 )
----
51
67
77

query I rowsort
SELECT DISTINCT + 91 * + col2 FROM tab0 AS cor0
----
4277
9009
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT col0 - + - CAST( NULL AS SIGNED ) - + ( - col2 ) * + + 76 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT col0 - + - CAST ( NULL AS INTEGER ) - + ( - col2 ) * + + 76 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL COUNT( * ) - - COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab1
----
6

query II rowsort
SELECT 76, col1 AS col1 FROM tab2 AS cor0
----
76
51
76
67
76
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9207
SELECT - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) * 23 AS col0, COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9207
SELECT - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * 23 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT 6 * - COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT 6 * - COUNT ( * ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL + col0 + - - 62 AS col1 FROM tab0 AS cor0
----
149
159
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT DISTINCT 59 DIV col1 FROM tab0 AS cor0
----
0
2
59

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT 59 / col1 FROM tab0 AS cor0
----
0
2
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9211
SELECT ALL + + col1 DIV + + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + + col1 / + + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT DISTINCT + + col1 DIV + 64 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT + + col1 / + 64 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE - 32 * - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9215
SELECT DISTINCT MIN( ALL - col0 ) AS col2, - 14 FROM tab0
----
-97
-14

skipif mysql # not compatible
query II rowsort label-9215
SELECT DISTINCT MIN ( ALL - col0 ) AS col2, - 14 FROM tab0
----
-97
-14

query I rowsort
SELECT DISTINCT + 61 FROM tab0, tab1 AS cor0
----
61

query I rowsort
SELECT ALL col0 * - - col0 * col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT - 74 * 55 AS col1 FROM tab0
----
-4070
-4070
-4070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9221
SELECT col1 DIV + 60 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9221
SELECT col1 / + 60 AS col0 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - 44
----

query I rowsort
SELECT 39 * - + 83 FROM tab2
----
-3237
-3237
-3237

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 6 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + + 99 + + col0 + 27 FROM tab2 AS cor0
----
143
149
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 93 + - col2 FROM tab1
----
-152
-161
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT ALL ( SUM( - - col1 ) ) + - 28 FROM tab2
----
167

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL ( SUM ( - - col1 ) ) + - 28 FROM tab2
----
167

query I rowsort
SELECT + col0 + - - col0 * - 57 AS col1 FROM tab0
----
-4872
-5432
-840

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + ( + + col0 ) + col1 AND col0
----

query II rowsort
SELECT DISTINCT + 55 * - - col2, 2 AS col2 FROM tab2
----
1265
2
2200
2
3190
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT 23 DIV - - col0 + - col2 * 6 + col0 col2 FROM tab2 AS cor0 WHERE NOT col2 <= + + col0 * - col1 + 29
----
-176
-273
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9235
SELECT DISTINCT 23 / - - col0 + - col2 * 6 + col0 col2 FROM tab2 AS cor0 WHERE NOT col2 <= + + col0 * - col1 + 29
----
-176
-273
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 / - - ( - ( - 33 ) ) + - 93 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT + MAX( DISTINCT col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9238
SELECT DISTINCT + MAX ( DISTINCT col2 ) col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9239
SELECT col0 DIV + col2 - + col0 * - 94 AS col1 FROM tab0
----
1410
8186
9118

skipif mysql # not compatible
query I rowsort label-9239
SELECT col0 / + col2 - + col0 * - 94 AS col1 FROM tab0
----
1410
8186
9118

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-11

query I rowsort
SELECT + - 69 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT + 93 + - - SUM( + + col1 ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-9242
SELECT + 93 + - - SUM ( + + col1 ) FROM tab2
----
288

query I rowsort
SELECT ALL - col0 * 45 FROM tab0 AS cor0 WHERE NOT col0 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT ALL - COUNT( * ) * - 54 AS col0 FROM tab0 cor0
----
162

skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - COUNT ( * ) * - 54 AS col0 FROM tab0 cor0
----
162

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - col1 ) * 48 AS col0 FROM tab2 cor0
----
2448
3216
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9247
SELECT DISTINCT COUNT( * ) DIV + - 75 * + - 90 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT COUNT ( * ) / + - 75 * + - 90 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT ALL CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - - 0 * - + col1 * + 54 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( + + 98 ) AS col1 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT COUNT( * ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9251
SELECT DISTINCT COUNT ( * ) col1 FROM tab2
----
3

query II rowsort
SELECT - 82 AS col0, + col2 FROM tab0
----
-82
10
-82
47
-82
99

query II rowsort
SELECT ALL col1 AS col0, 14 AS col0 FROM tab2
----
51
14
67
14
77
14

query II rowsort
SELECT col1, - 47 AS col0 FROM tab2
----
51
-47
67
-47
77
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9255
SELECT ALL col0 DIV - - col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL col0 / - - col0 AS col1 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col0, + col1 + + col2 FROM tab0 AS cor0
----
-1
100
-21
31
-81
128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * 70 col1 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9259
SELECT ALL * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) > - 12
----

skipif mysql # not compatible
query III rowsort label-9259
SELECT ALL * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) > - 12
----

query I rowsort
SELECT DISTINCT - col0 / col0 FROM tab2 WHERE NOT NULL <= + 68 + + + col2
----

query I rowsort
SELECT + col2 + - - col0 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - - 74 AS col0 FROM tab2 AS cor0
----
74

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - 67 col1 FROM tab1 AS cor0
----
-8
1
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9266
SELECT DISTINCT + 77 + + COUNT( CAST( - ( + + col0 ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9266
SELECT DISTINCT + 77 + + COUNT ( CAST ( - ( + + col0 ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL 36 + + + 14 AS col1 FROM tab1
----
50
50
50

query I rowsort
SELECT DISTINCT ( - 42 ) AS col1 FROM tab0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT ALL col0 DIV + ( - + 6 ) + - - col1 AS col1 FROM tab1
----
-9
32
6

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL col0 / + ( - + 6 ) + - - col1 AS col1 FROM tab1
----
-9
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL + SUM( ALL + + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + SUM ( ALL + + col1 ) AS col0 FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col0 AS col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL - COUNT( * ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9274
SELECT ALL - COUNT ( * ) col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + col1 - - ( - - 26 ) FROM tab1 WHERE NOT ( NOT col2 IS NULL )
----

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + 87 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9277
SELECT + 87 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9278
SELECT - - CAST( NULL AS DECIMAL ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT - - CAST ( NULL AS REAL ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9279
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col1 + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col1 + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - COUNT( * ) + 51 col0 FROM tab0 cor0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9280
SELECT - COUNT ( * ) + 51 col0 FROM tab0 cor0
----
48

onlyif mysql # DIV for integer division: 
query II rowsort label-9281
SELECT DISTINCT col0 * 39 + - - col1 DIV 94 - - col0 AS col1, + col0 FROM tab0 AS cor0
----
3480
87
3880
97
600
15

skipif mysql # not compatible
query II rowsort label-9281
SELECT DISTINCT col0 * 39 + - - col1 / 94 - - col0 AS col1, + col0 FROM tab0 AS cor0
----
3480
87
3880
97
600
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL + 85 - - ( - COUNT( * ) ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + 85 - - ( - COUNT ( * ) ) FROM tab0
----
82

query I rowsort
SELECT col1 * col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN col2 AND col0 + col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - 19 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 32 * + + ( col1 ) FROM tab2 AS cor0
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL - MAX( - 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - MAX ( - 65 ) FROM tab1 AS cor0
----
65

query II rowsort
SELECT 61 AS col1, - col1 FROM tab1 AS cor0
----
61
-14
61
-47
61
-5

query II rowsort
SELECT ALL + + 47, col2 - - col2 AS col1 FROM tab0 AS cor0
----
47
198
47
20
47
94

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9291
SELECT DISTINCT + col1 col1, 82 DIV - - col2 AS col0 FROM tab2 AS cor0
----
51
3
67
1
77
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9291
SELECT DISTINCT + col1 col1, 82 / - - col2 AS col0 FROM tab2 AS cor0
----
51
3
67
1
77
2

query I rowsort
SELECT ALL 54 * col2 FROM tab1 AS cor0 WHERE NOT col1 <= 83
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - 88 * + + ( col1 ) AS col2 FROM tab2
----
-4488
-5896
-6776

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 + + col2 IS NULL
----

query I rowsort
SELECT ALL col0 * + 85 FROM tab2
----
3910
5440
6375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT DISTINCT + 95 * - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
-4370
-6080
-7125

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT + 95 * - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT + - 11 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9299
SELECT ALL + 62 DIV - - col0, col2 * - - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
0
NULL
0
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-9299
SELECT ALL + 62 / - - col0, col2 * - - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
0
NULL
0
NULL
1
NULL

query I rowsort
SELECT ( - 66 ) FROM tab2
----
-66
-66
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9301
SELECT ALL 14 DIV + COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL 14 / + COUNT ( * ) AS col2 FROM tab1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9302
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 + + col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT ALL col0 DIV col2 * - col2 * - 58 * - col2 * 60 AS col1 FROM tab1
----
-12113880
-16091520
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL col0 / col2 * - col2 * - 58 * - col2 * 60 AS col1 FROM tab1
----
-12113880
-16091520
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT 83 * + - COUNT( * ) FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-9304
SELECT 83 * + - COUNT ( * ) FROM tab0
----
-249

query I rowsort
SELECT + 48 * - col1 FROM tab2
----
-2448
-3216
-3696

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN NULL AND - + 30
----

query I rowsort
SELECT DISTINCT + 24 AS col1 FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT - + 77, - SUM( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-77
-156

skipif mysql # not compatible
query II rowsort label-9308
SELECT - + 77, - SUM ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-77
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT - - 38 / - col0 * col0 * - CAST( NULL AS SIGNED ) + - - col1 FROM tab0 AS cor0 WHERE NOT - col2 * - + col0 BETWEEN + col1 AND + 15 / + ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT - - 38 / - col0 * col0 * - CAST ( NULL AS INTEGER ) + - - col1 FROM tab0 AS cor0 WHERE NOT - col2 * - + col0 BETWEEN + col1 AND + 15 / + ( + col1 )
----
NULL

query I rowsort
SELECT DISTINCT 15 + - col1 FROM tab1 cor0
----
-32
1
10

query I rowsort
SELECT col0 * 22 FROM tab0 AS cor0 WHERE col0 * col1 * col1 IS NOT NULL
----
1914
2134
330

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT - - MAX( DISTINCT col1 ) + + SUM( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE + 51 * - 0 * col0 + - + 36 >= + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - - MAX ( DISTINCT col1 ) + + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE + 51 * - 0 * col0 + - + 36 >= + + 57
----
NULL

query I rowsort
SELECT ALL - - 92 * col2 + + 19 + col0 FROM tab1 cor0
----
5532
6366
8902

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT COUNT( * ) - + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT 73 / col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + + col1 * + col0 AND NULL
----

query I rowsort
SELECT ALL + col1 + - - ( - + col0 ) AS col2 FROM tab0
----
-66
-96
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + col1 col0 FROM tab2
----
36
52
62

query III rowsort
SELECT * FROM tab1 WHERE - - 23 + + ( ( col2 ) ) * + col2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + 36 + + col0 IS NULL
----

query I rowsort
SELECT + col2 + - - col0 * - col0 FROM tab2
----
-2093
-4056
-5567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ( + - col2 ) FROM tab2 WHERE col0 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT + 28 * col0 * col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT + COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9326
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9327
SELECT + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9328
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9328
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT 67 AS col2, col2 AS col0 FROM tab1 AS cor0
----
67
59
67
68
67
96

query I rowsort
SELECT 57 * - - 52 AS col1 FROM tab0 AS cor0
----
2964
2964
2964

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT MAX( ALL + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9331
SELECT MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL - + MIN( ALL - 27 ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - + MIN ( ALL - 27 ) AS col0 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT COUNT( - - col2 ) * - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9333
SELECT COUNT ( - - col2 ) * - COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT COUNT( * ) * - ( - 98 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-9334
SELECT COUNT ( * ) * - ( - 98 ) FROM tab1
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL + COUNT( * ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN col0 / - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL ( SUM( - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL ( SUM ( - col1 ) ) FROM tab2
----
-195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9338
SELECT DISTINCT + - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 + - col2 + col0 FROM tab0 AS cor0
----
10
164
47
-17
99
95

query I rowsort
SELECT - col2 + + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 85 * - + col1 FROM tab1 AS cor0
----
-1190
-3995
-425

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - 51 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - col2 * + 44
----

query I rowsort
SELECT ALL + 37 + col2 FROM tab0 AS cor0
----
136
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL - CAST( - CAST( + col2 AS SIGNED ) AS SIGNED ) + + col2 * - 30 AS col0 FROM tab2 AS cor0
----
-1160
-1682
-667

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) + + col2 * - 30 AS col0 FROM tab2 AS cor0
----
-1160
-1682
-667

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * - + col0 * - col1 / - col0 + + col1 AND - col0
----

query I rowsort
SELECT DISTINCT col0 + - ( - + col2 ) + + ( + col1 ) FROM tab2 AS cor0
----
120
181
200

query I rowsort
SELECT - - 68 FROM tab1 AS cor0 WHERE ( ( NULL > ( NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT + - CAST( NULL AS SIGNED ) / - 86 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT + - CAST ( NULL AS INTEGER ) / - 86 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9353
SELECT * FROM tab0 AS cor0 WHERE CAST( col0 AS SIGNED ) - 60 < NULL
----

skipif mysql # not compatible
query III rowsort label-9353
SELECT * FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) - 60 < NULL
----

query I rowsort
SELECT - + 14 FROM tab2 WHERE NULL IS NULL
----
-14
-14
-14

query II rowsort
SELECT ALL + 54 AS col2, col2 FROM tab1
----
54
59
54
68
54
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT + - 98 * + 33 + 82 + col0 * + + col1 + col2 AS col0 FROM tab1 cor0
----
-2342
-2668
1193

query I rowsort
SELECT DISTINCT + ( - + 39 ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9359
SELECT * FROM tab1 AS cor0 WHERE NOT - ( CAST( - col2 AS SIGNED ) ) BETWEEN col0 * + - 27 + 66 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9359
SELECT * FROM tab1 AS cor0 WHERE NOT - ( CAST ( - col2 AS INTEGER ) ) BETWEEN col0 * + - 27 + 66 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - ( + + 7 ), col2, - col0 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 2 * - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( - 14 ) * + - col1 FROM tab0 AS cor0
----
1134
14
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT DISTINCT + ( + - 73 ) FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * 76 IS NOT NULL
----
-73

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT + ( + - 73 ) FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * 76 IS NOT NULL
----
-73

query I rowsort
SELECT DISTINCT - - 79 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + 55 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT DISTINCT - SUM( + 73 ) * - 11 FROM tab1 AS cor0 WHERE + ( - + col0 ) * + 82 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - SUM ( + 73 ) * - 11 FROM tab1 AS cor0 WHERE + ( - + col0 ) * + 82 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9369
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9369
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT - col0 * - 46 AS col0 FROM tab2
----
2116
2944
3450

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL + MIN( col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9372
SELECT ALL + MIN ( col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT + 21 * col2 AS col2 FROM tab2
----
1218
483
840

query I rowsort
SELECT + col2 + 67 AS col0 FROM tab0
----
114
166
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 BETWEEN NULL AND 75 * - - col1 + + - col2 * - - col1 * + col2 + col2
----

query II rowsort
SELECT DISTINCT - col1 + col1, col0 * + col2 * - 80 * + + 61 AS col0 FROM tab0 AS cor0 WHERE - col1 - + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 74 + - col2 + - col1 BETWEEN NULL AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9378
SELECT col1, CAST( NULL AS SIGNED ) * + + 90 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9378
SELECT col1, CAST ( NULL AS INTEGER ) * + + 90 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT CAST( - AVG ( ALL - 29 ) AS SIGNED ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT CAST ( - AVG ( ALL - 29 ) AS INTEGER ) FROM tab2 cor0
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT - col0 + - - 54 + + col1 + + + 80 DIV 79 * 32 FROM tab1 AS cor0
----
42
49
6

skipif mysql # not compatible
query I rowsort label-9382
SELECT - col0 + - - 54 + + col1 + + + 80 / 79 * 32 FROM tab1 AS cor0
----
42
49
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9383
SELECT DISTINCT - col1 + - col2 AS col1, CAST( - col2 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
-110
-6
-115
-1
-64
-11

skipif mysql # not compatible
query II rowsort label-9383
SELECT DISTINCT - col1 + - col2 AS col1, CAST ( - col2 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
-110
-6
-115
-1
-64
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9384
SELECT DISTINCT + - CAST( - + col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + - CAST ( - + col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - - 11 + - col0 * 3 + col0 AS col0 FROM tab1 AS cor0
----
-159
-171
-91

query I rowsort
SELECT ALL + col0 + - 17 FROM tab2 cor0
----
29
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL COUNT( * ) - + 6 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL COUNT ( * ) - + 6 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT ALL - ( + COUNT( * ) ) AS col1, + SUM( ALL col0 ) + COUNT( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL - ( + COUNT ( * ) ) AS col1, + SUM ( ALL col0 ) + COUNT ( * ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT ALL col2 DIV + ( col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL col2 / + ( col2 ) FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT 15 * + - ( - + col1 ) FROM tab1 AS cor0
----
210
705
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT ALL + - col1 DIV col0 AS col1 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + - col1 / col0 AS col1 FROM tab0 cor0
----
-5
0
0

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 - + 61 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT col0 DIV + - col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9395
SELECT col0 / + - col1 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9396
SELECT ( - - 96 ) * - + col2 AS col0, 6 DIV + col2 * - col1 FROM tab1
----
-5664
0
-6528
0
-9216
0

skipif mysql # not compatible
query II rowsort label-9396
SELECT ( - - 96 ) * - + col2 AS col0, 6 / + col2 * - col1 FROM tab1
----
-5664
0
-6528
0
-9216
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE + 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9399
SELECT DISTINCT - col1 DIV col0 - - + col1 AS col2 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - col1 / col0 - - + col1 AS col2 FROM tab2 AS cor0
----
50
67
76

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0, - 94 )
----

query I rowsort
SELECT ALL col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT - COUNT( ALL 98 ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9403
SELECT - COUNT ( ALL 98 ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 61 + - col2 IS NOT NULL
----

query II rowsort
SELECT + col2 * + ( col2 ) AS col0, col2 * 21 * - - col1 AS col1 FROM tab0 AS cor0
----
100
4410
2209
79947
9801
2079

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - col0 * 77 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col2 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * - 66 col1 FROM tab2
----
-203280
-256476
-77418

query I rowsort
SELECT ALL - - 16 AS col2 FROM tab1 cor0
----
16
16
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT ALL + - CAST( NULL AS SIGNED ) + - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL + - CAST ( NULL AS INTEGER ) + - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + + col2 * + 60 * - col2 AS col0 FROM tab0 AS cor0
----
-132587
-588159
-6010

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 * - col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL - COUNT( * ) * + + ( - CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL - COUNT ( * ) * + + ( - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT + COUNT( * ) + + - 86 FROM tab2, tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9415
SELECT + COUNT ( * ) + + - 86 FROM tab2, tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / + col2 + - 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9418
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) - + + col0 / 86 + + 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) - + + col0 / 86 + + 83 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + ( 83 ) * col0 * + 9 + + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL - SUM( ALL + col1 ) * - 0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - SUM ( ALL + col1 ) * - 0 FROM tab0 cor0
----
0

query I rowsort
SELECT 11 AS col0 FROM tab2 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT COUNT( * ) * ( + + COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT COUNT ( * ) * ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - ( - 46 ) * ( ( + 98 ) ) + col2 FROM tab2 AS cor0
----
4531
4548
4566

query I rowsort
SELECT DISTINCT - 43 + - + col1 AS col0 FROM tab0 AS cor0
----
-124
-44
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9425
SELECT ALL - + col2 * + col1 + - 8 + - CAST( NULL AS SIGNED ) * - 46 AS col1, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9425
SELECT ALL - + col2 * + col1 + - 8 + - CAST ( NULL AS INTEGER ) * - 46 AS col1, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9426
SELECT * FROM tab1 AS cor0 WHERE ( - + CAST( + ( 23 ) AS SIGNED ) ) - + 13 * 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9426
SELECT * FROM tab1 AS cor0 WHERE ( - + CAST ( + ( 23 ) AS INTEGER ) ) - + 13 * 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - - 32 <> + + 89
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + MIN( ALL - + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9428
SELECT + MIN ( ALL - + col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT ALL - 23 * - col2 AS col2 FROM tab1
----
1357
1564
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT MIN( ALL + + 25 ) col1 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT MIN ( ALL + + 25 ) col1 FROM tab1
----
25

query I rowsort
SELECT col1 * - col0 * - col2 * - col2 AS col1 FROM tab1
----
-1479425
-19776848
-6580224

query I rowsort
SELECT DISTINCT col2 * - + 52 AS col1 FROM tab0
----
-2444
-5148
-520

query I rowsort
SELECT ALL + col1 * - 35 * col0 FROM tab0
----
-3395
-42525
-63945

query I rowsort
SELECT 35 * - ( + col0 ) FROM tab1
----
-1785
-2975
-3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9435
SELECT DISTINCT - - MIN( - col1 ) * COUNT( * ) DIV - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT - - MIN ( - col1 ) * COUNT ( * ) / - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - - 93 AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT MIN( DISTINCT - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9437
SELECT MIN ( DISTINCT - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9438
SELECT ALL + + col1 AS col2, - col2 * 72 - CAST( + col0 AS SIGNED ) - - col1 + + + col2 * - col1 + - col1 + 37 + + col0 / + + col1 / + CAST( NULL AS SIGNED ) * + col1 col1 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9438
SELECT ALL + + col1 AS col2, - col2 * 72 - CAST ( + col0 AS INTEGER ) - - col1 + + + col2 * - col1 + - col1 + 37 + + col0 / + + col1 / + CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab2 AS cor0
----
68

query I rowsort
SELECT - ( - + col2 ) * + col2 AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT - col1 * - 82 AS col0 FROM tab2
----
4182
5494
6314

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN - 15 AND NULL
----

query I rowsort
SELECT ALL - 0 * col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 cor0 WHERE NULL <= col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9444
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 cor0 WHERE NULL <= col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9445
SELECT - CAST( + 68 AS SIGNED ) FROM tab2 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9445
SELECT - CAST ( + 68 AS INTEGER ) FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab2 AS cor0
----
40

query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT ALL + COUNT( * ) * + + ( + + 68 ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL + COUNT ( * ) * + + ( + + 68 ) FROM tab1
----
204

query I rowsort
SELECT DISTINCT 8 + - 33 + + 70 AS col2 FROM tab2
----
45

query II rowsort
SELECT ALL - col0, - ( 77 ) AS col1 FROM tab1
----
-51
-77
-85
-77
-91
-77

query I rowsort
SELECT col0 + 93 FROM tab1
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT MIN( 23 ) + + 55 col1 FROM tab1
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9452
SELECT MIN ( 23 ) + + 55 col1 FROM tab1
----
78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT - ( + - 23 ) AS col0 FROM tab1 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col2 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT col2 * - col0 FROM tab0 WHERE NOT col2 BETWEEN NULL AND ( 55 + - ( + 82 ) )
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT 20 DIV + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9457
SELECT 20 / + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT DISTINCT 28 * + 69 + + 18 FROM tab2
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT DISTINCT - MAX( ALL + 46 ) - - 99 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9460
SELECT DISTINCT - MAX ( ALL + 46 ) - - 99 FROM tab2
----
53

query I rowsort
SELECT DISTINCT - col0 + - 82 AS col0 FROM tab1
----
-133
-167
-173

onlyif mysql # DIV for integer division: 
query I rowsort label-9462
SELECT ( + col0 ) DIV - 55 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9462
SELECT ( + col0 ) / - 55 AS col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT col0 FROM tab0 WHERE col2 IN ( 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT - 61 * + COUNT( * ) AS col2 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 61 * + COUNT ( * ) AS col2 FROM tab2
----
-183

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9465
SELECT CAST( NULL AS DECIMAL ) * CAST( col0 AS SIGNED ) + 52 / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9465
SELECT CAST ( NULL AS REAL ) * CAST ( col0 AS INTEGER ) + 52 / - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9466
SELECT col1 DIV + col1 + CAST( 90 AS SIGNED ) AS col2 FROM tab1
----
91
91
91

skipif mysql # not compatible
query I rowsort label-9466
SELECT col1 / + col1 + CAST ( 90 AS INTEGER ) AS col2 FROM tab1
----
91
91
91

query I rowsort
SELECT col2 * - col2 + ( 12 + - col1 ) AS col1 FROM tab0
----
-109
-2278
-9790

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 WHERE NOT col1 IS NULL
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL + MAX( DISTINCT 80 ) AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + MAX ( DISTINCT 80 ) AS col1 FROM tab1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9470
SELECT 10 / - ( CAST( NULL AS SIGNED ) ) + - AVG ( DISTINCT col1 + - 13 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT 10 / - ( CAST ( NULL AS INTEGER ) ) + - AVG ( DISTINCT col1 + - 13 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col1 >= - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > + col1
----

query I rowsort
SELECT DISTINCT - col0 - 90 FROM tab0
----
-105
-177
-187

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT + SUM( DISTINCT col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT + SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
103

query I rowsort
SELECT DISTINCT col0 - ( + 42 ) AS col0 FROM tab1 WHERE - ( + ( + col2 ) ) + - 72 IS NULL
----

query I rowsort
SELECT col2 - - 59 * 20 AS col1 FROM tab1
----
1239
1248
1276

query I rowsort
SELECT DISTINCT + 23 - + col1 FROM tab1
----
-24
18
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col2 FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT COUNT( * ) + SUM( ALL - col2 ) FROM tab0 cor0 WHERE NOT ( + col0 * col1 + - col2 ) IS NULL
----
-153

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT COUNT ( * ) + SUM ( ALL - col2 ) FROM tab0 cor0 WHERE NOT ( + col0 * col1 + - col2 ) IS NULL
----
-153

query I rowsort
SELECT 15 * - col2 FROM tab2 cor0
----
-345
-600
-870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9481
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) + - CAST( + col1 + + CAST( col2 AS SIGNED ) * col1 AS SIGNED ) * + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9481
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) + - CAST ( + col1 + + CAST ( col2 AS INTEGER ) * col1 AS INTEGER ) * + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND 58
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( + 71 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) / + 2 )
----

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) / + 2 )
----

query I rowsort
SELECT + col0 * col0 + - col1 FROM tab1 cor0
----
2587
7220
8234

query I rowsort
SELECT - 6 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9488
SELECT MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT + + MIN( col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT + + MIN ( col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - ( - col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 >= + col2 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 45 AS col0 FROM tab0 cor0
----
3645
45
945

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <= 97 * 36
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 79 + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ( 19 ) * COUNT( * ) AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9495
SELECT ( 19 ) * COUNT ( * ) AS col1 FROM tab0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT col0 DIV + 98 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9496
SELECT DISTINCT col0 / + 98 col0 FROM tab2
----
0

query I rowsort
SELECT ALL + 88 * + col1 + col2 * col2 AS col2 FROM tab0
----
1948
9337
9889

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 AND col0
----

query I rowsort
SELECT + 29 FROM tab1 WHERE col0 IS NOT NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + 61 * + col2 AS col1 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT ALL 74 AS col1 FROM tab0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( * ) FROM tab0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( * ) FROM tab0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT 75 * - col0 + col2 AS col2 FROM tab1
----
-3729
-6316
-6757

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( 1 ) * 49 ) = + col0 / + 1 AND NOT NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT ALL + 34 * + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL + 34 * + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - 30 AS col2 FROM tab2 AS cor0
----
16
34
45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - 76 * 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9510
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 9 NOT IN ( + CAST( 6 AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-9510
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 9 NOT IN ( + CAST ( 6 AS INTEGER ) )
----

query I rowsort
SELECT - col2 * col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT COUNT( - + col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT COUNT ( - + col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 74 - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( 71 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT - COUNT( DISTINCT + col2 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9515
SELECT - COUNT ( DISTINCT + col2 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - ( 73 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - SUM( ALL 27 ) FROM tab2 AS cor0 WHERE NOT - col2 * - - col1 IS NULL
----
-81

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - SUM ( ALL 27 ) FROM tab2 AS cor0 WHERE NOT - col2 * - - col1 IS NULL
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-9518
SELECT ALL + col1 col2, col2 * ( 97 ) DIV col2 FROM tab2 AS cor0
----
51
97
67
97
77
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9518
SELECT ALL + col1 col2, col2 * ( 97 ) / col2 FROM tab2 AS cor0
----
51
97
67
97
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT DISTINCT + COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( - 41 ) AS col0 FROM tab0 AS cor0
----
41

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT MAX( DISTINCT col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9522
SELECT MAX ( DISTINCT col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT 22 * - col1 + + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1735
-452
77

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9525
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL - 73 * - col2 * - 23 + + ( 70 - 53 * + ( + col0 ) ) * - col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - col1 FROM tab1 AS cor0 WHERE ( + col2 ) >= 90 + - col1
----
-196
-2209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 col1 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT - - MAX( + + ( + col0 ) ) * + 67 FROM tab1 AS cor0
----
6097

skipif mysql # not compatible
query I rowsort label-9529
SELECT - - MAX ( + + ( + col0 ) ) * + 67 FROM tab1 AS cor0
----
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT + - COUNT( DISTINCT - 50 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-9532
SELECT + - COUNT ( DISTINCT - 50 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT + ( - 65 ) * - COUNT( * ) + + 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
684

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT + ( - 65 ) * - COUNT ( * ) + + 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9534
SELECT ALL col1 + CAST( NULL AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT - + MAX( ALL - 63 ) col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9535
SELECT - + MAX ( ALL - 63 ) col1 FROM tab0 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + col2
----

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL AND 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT col1 + + 64 AS col1 FROM tab1 AS cor0
----
111
69
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9540
SELECT DISTINCT col1 FROM tab1 WHERE NULL <> CAST( - - 2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT col1 FROM tab1 WHERE NULL <> CAST ( - - 2 AS REAL )
----

query I rowsort
SELECT DISTINCT ( + + col2 ) * 2 AS col0 FROM tab0 WHERE NOT + + 10 IS NULL
----
198
20
94

query II rowsort
SELECT + col2 + col1 AS col1, col1 AS col2 FROM tab1
----
110
14
115
47
64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - 28 * - MIN( ALL + col0 ) + - 40 FROM tab2
----
1248

skipif mysql # not compatible
query I rowsort label-9543
SELECT - 28 * - MIN ( ALL + col0 ) + - 40 FROM tab2
----
1248

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - ( - - COUNT( - + ( - 49 ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9544
SELECT - ( - - COUNT ( - + ( - 49 ) ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT 8 * - col2 AS col2 FROM tab2
----
-184
-320
-464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9546
SELECT ALL CAST( - 27 AS SIGNED ) FROM tab2
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL CAST ( - 27 AS INTEGER ) FROM tab2
----
-27
-27
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9547
SELECT MIN( col0 ) * + SUM( ALL + col0 ) * - + ( + + 97 ) + + 92 DIV + COUNT( * ) AS col2 FROM tab2
----
-825440

skipif mysql # not compatible
query I rowsort label-9547
SELECT MIN ( col0 ) * + SUM ( ALL + col0 ) * - + ( + + 97 ) + + 92 / + COUNT ( * ) AS col2 FROM tab2
----
-825440

query II rowsort
SELECT DISTINCT + col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + col0
----

query I rowsort
SELECT + + ( + col0 ) - 90 FROM tab2 AS cor0
----
-15
-26
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( + ( + 98 ) ), - 7 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 6c1efe9a9e1601d50abd419dd2060d7a

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT SUM( ALL col1 ) * + SUM( + + col0 ) FROM tab0
----
20497

skipif mysql # not compatible
query I rowsort label-9552
SELECT SUM ( ALL col1 ) * + SUM ( + + col0 ) FROM tab0
----
20497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( + 10 ) col0 FROM tab1 AS cor0
----
140
470
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT DISTINCT + COUNT( * ) * 69 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 * - - col1 + - ( - col2 ) ) NOT IN ( col0 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9554
SELECT DISTINCT + COUNT ( * ) * 69 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 * - - col1 + - ( - col2 ) ) NOT IN ( col0 * + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT - + 52 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9555
SELECT - + 52 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + ( ( - col2 ) ) * + 51 FROM tab0 cor0
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query II rowsort label-9557
SELECT ALL + COUNT( * ) AS col0, ( SUM( ALL + col2 ) ) FROM tab1
----
3
223

skipif mysql # not compatible
query II rowsort label-9557
SELECT ALL + COUNT ( * ) AS col0, ( SUM ( ALL + col2 ) ) FROM tab1
----
3
223

query II rowsort
SELECT + col2 AS col0, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - ( - col1 ) * 26 FROM tab0
----
2106
26
546

query II rowsort
SELECT + 88 AS col1, - col0 AS col0 FROM tab1
----
88
-51
88
-85
88
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9561
SELECT * FROM tab2 WHERE NOT ( NOT - ( 85 ) * + col0 + col1 * + col1 <= - col1 + CAST( NULL AS SIGNED ) ) OR NOT ( ( + 16 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9561
SELECT * FROM tab2 WHERE NOT ( NOT - ( 85 ) * + col0 + col1 * + col1 <= - col1 + CAST ( NULL AS INTEGER ) ) OR NOT ( ( + 16 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9562
SELECT COUNT( * ) DIV - + COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9562
SELECT COUNT ( * ) / - + COUNT ( * ) AS col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL COUNT( ALL + - col0 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9564
SELECT ALL COUNT ( ALL + - col0 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 * - 61 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-3599
-4148
-5856

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL MIN( ALL - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - - col2 + - 50 FROM tab0 AS cor0
----
-3
-40
49

query I rowsort
SELECT DISTINCT + - 11 AS col1 FROM tab2 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT ALL + CAST( + - col0 AS SIGNED ) * - col1 + 43 FROM tab1
----
4320
468
757

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + CAST ( + - col0 AS INTEGER ) * - col1 + 43 FROM tab1
----
4320
468
757

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9571
SELECT + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 94 + + 54 + + col2 * - col2 AS col1, - 31 * + - col0 AS col0 FROM tab2
----
-1452
1984
-3216
2325
-381
1426

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 6 <= NULL
----

query II rowsort
SELECT 24, + 50 FROM tab1 AS cor0 WHERE col2 + - 51 * + + 99 + + col0 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT 22 * - - COUNT( * ) + + COUNT( * ) col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9578
SELECT 22 * - - COUNT ( * ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
69

query II rowsort
SELECT ALL col0 + - col1, - 25 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
37
1275
44
2275
80
2125

query II rowsort
SELECT DISTINCT - col0 - + col0, col2 FROM tab2 AS cor0
----
-128
40
-150
58
-92
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 50 + + 77 * ( col2 ) * col1 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9582
SELECT DISTINCT col0 * - col0 - col0 * - CAST( NULL AS DECIMAL ) - 83 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT col0 * - col0 - col0 * - CAST ( NULL AS REAL ) - 83 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT + COUNT( * ) - - + 76 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9583
SELECT + COUNT ( * ) - - + 76 FROM tab0
----
79

query II rowsort
SELECT 71 AS col1, col1 FROM tab1 WHERE + + col2 * - + col1 * - - col2 < NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 80 AS col2 FROM tab0
----
-1200
-6960
-7760

query I rowsort
SELECT 46 * + + col1 + - - col2 FROM tab1
----
2230
289
740

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL + 18 * + COUNT( DISTINCT - - col1 ) col2 FROM tab2
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9587
SELECT ALL + 18 * + COUNT ( DISTINCT - - col1 ) col2 FROM tab2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT - CAST( NULL AS SIGNED ) + - + 38 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT - CAST ( NULL AS INTEGER ) + - + 38 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + COUNT( * ) * + COUNT( * ) * 65 + + MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
538

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * 65 + + MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
538

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT COUNT( DISTINCT + col0 ) + + SUM( ALL 33 ) FROM tab0 cor0
----
102

skipif mysql # not compatible
query I rowsort label-9590
SELECT COUNT ( DISTINCT + col0 ) + + SUM ( ALL 33 ) FROM tab0 cor0
----
102

query II rowsort
SELECT + 89 + col0 + col0, col2 FROM tab1 AS cor0
----
191
96
259
59
271
68

query I rowsort
SELECT + col0 + 18 AS col1 FROM tab1 AS cor0
----
103
109
69

query I rowsort
SELECT - ( - - 32 ) + + + col0 - - col0 + col2 + 50 * - 53 * + - col2 FROM tab0 cor0
----
124595
262611
26652

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 96 * - col2 BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9596
SELECT COUNT( * ) AS col2, + CAST( - - SUM( - 52 ) AS SIGNED ) AS col0 FROM tab1
----
3
-156

skipif mysql # not compatible
query II rowsort label-9596
SELECT COUNT ( * ) AS col2, + CAST ( - - SUM ( - 52 ) AS INTEGER ) AS col0 FROM tab1
----
3
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT ALL - SUM( DISTINCT 46 ) AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-9597
SELECT ALL - SUM ( DISTINCT 46 ) AS col2 FROM tab1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9598
SELECT - col0 AS col0, CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-9598
SELECT - col0 AS col0, CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT DISTINCT COUNT( * ) * + 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT COUNT ( * ) * + 81 FROM tab0 AS cor0
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-9600
SELECT ALL - col0 DIV - col0 + - - col1 AS col2 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL - col0 / - col0 + - - col1 AS col2 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9601
SELECT ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - + 21 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - + 21 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9602
SELECT ALL - col2 * - CAST( - - 84 AS SIGNED ) + - - col0 FROM tab2 AS cor0
----
1978
3424
4947

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - col2 * - CAST ( - - 84 AS INTEGER ) + - - col0 FROM tab2 AS cor0
----
1978
3424
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + SUM( col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9603
SELECT + SUM ( col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 73 * - col2 AS col0 FROM tab0 AS cor0
----
3431
7227
730

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT + SUM( col0 ) AS col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9605
SELECT + SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT COUNT( * ) * ( - - 87 ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT COUNT ( * ) * ( - - 87 ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - 59 ) FROM tab1 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-9610
SELECT DISTINCT COUNT( * ), 23 AS col2 FROM tab0 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-9610
SELECT DISTINCT COUNT ( * ), 23 AS col2 FROM tab0 AS cor0
----
3
23

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9612
SELECT ( + + CAST( NULL AS DECIMAL ) ) AS col1, col0 * - col0 FROM tab2 cor0
----
NULL
-2116
NULL
-4096
NULL
-5625

skipif mysql # not compatible
query II rowsort label-9612
SELECT ( + + CAST ( NULL AS REAL ) ) AS col1, col0 * - col0 FROM tab2 cor0
----
NULL
-2116
NULL
-4096
NULL
-5625

query I rowsort
SELECT ALL + col1 * + col0 * + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + col2 <= col1 + - - col0
----
51
14
96

query I rowsort
SELECT DISTINCT - col2 / - col0 FROM tab0 WHERE ( NOT col2 * - - 28 NOT IN ( - - col2 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 88 * + + col2 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 - - col1 <> NULL
----

query II rowsort
SELECT col1 + + col0, col2 * - 95 AS col2 FROM tab0
----
108
-950
96
-4465
98
-9405

query I rowsort
SELECT - 4 + col0 AS col0 FROM tab1
----
47
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT ALL - MAX( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9620
SELECT ALL - MAX ( DISTINCT col2 ) AS col2 FROM tab1 cor0
----
-96

query II rowsort
SELECT DISTINCT col0 AS col0, - 81 AS col2 FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT - ( + + COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9622
SELECT - ( + + COUNT ( * ) ) FROM tab1
----
-3

query I rowsort
SELECT + 67 + - 98 FROM tab2 AS cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9624
SELECT MAX( + col0 ) AS col1, 46 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
46

skipif mysql # not compatible
query II rowsort label-9624
SELECT MAX ( + col0 ) AS col1, 46 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
46

query I rowsort
SELECT col1 + + - 14 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-9
0
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT + CAST( - - MAX( col1 ) AS SIGNED ) + + 56 AS col1 FROM tab2 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-9626
SELECT + CAST ( - - MAX ( col1 ) AS INTEGER ) + + 56 AS col1 FROM tab2 AS cor0
----
133

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 92 * + 85 + + col0 AS col2 FROM tab0 AS cor0
----
-7723
-7733
-7805

query I rowsort
SELECT ALL - ( - 58 ) * + col0 + - - 64 FROM tab2 AS cor0
----
2732
3776
4414

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - 26 + + COUNT( * ) * - COUNT( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-9630
SELECT - 26 + + COUNT ( * ) * - COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9631
SELECT ALL + col0 DIV col0 - + col2 DIV + col0 AS col1 FROM tab0
----
-2
0
1

skipif mysql # not compatible
query I rowsort label-9631
SELECT ALL + col0 / col0 - + col2 / + col0 AS col1 FROM tab0
----
-2
0
1

query I rowsort
SELECT DISTINCT 22 + col2 AS col0 FROM tab0
----
121
32
69

query II rowsort
SELECT DISTINCT - + col0, + col1 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT + MAX( + - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9634
SELECT + MAX ( + - col2 ) FROM tab2
----
-23

query I rowsort
SELECT ALL 76 - + - col2 AS col1 FROM tab1
----
135
144
172

query I rowsort
SELECT ALL 94 * + + 81 AS col0 FROM tab1
----
7614
7614
7614

query II rowsort
SELECT ( - col2 ), - col2 + - col2 * - + col1 + col2 * + - col2 AS col1 FROM tab0
----
-10
100
-47
1551
-99
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT - col2 * CAST( - col0 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-9638
SELECT - col2 * CAST ( - col0 AS INTEGER ) FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9639
SELECT ALL - ( + col0 ) - - 39 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - ( + col0 ) - - 39 * + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + - col1 * + col2 * 3 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 1 * + col0 * + ( 7 ) - + - col1 AS col2 FROM tab0 AS cor0
----
-24
-588
-678

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT - 37 * SUM( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
8399

skipif mysql # not compatible
query I rowsort label-9643
SELECT - 37 * SUM ( ALL - + col0 ) AS col1 FROM tab1 AS cor0
----
8399

query II rowsort
SELECT + col1 * + ( - col2 ) AS col1, - col2 FROM tab2 AS cor0
----
-1173
-23
-3080
-40
-3886
-58

query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9646
SELECT DISTINCT 0 AS col0, - COUNT( DISTINCT + col0 ) * COUNT( * ) FROM tab0 AS cor0
----
0
-9

skipif mysql # not compatible
query II rowsort label-9646
SELECT DISTINCT 0 AS col0, - COUNT ( DISTINCT + col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
0
-9

query I rowsort
SELECT ALL + 98 + col2 - + col2 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - + COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9648
SELECT - + COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - ( - 6 ) FROM tab1 AS cor0
----
6
6
6

query II rowsort
SELECT col1 * col1 AS col2, col0 FROM tab0
----
1
97
441
87
6561
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9651
SELECT ALL 13 * + col1 * - CAST( NULL AS SIGNED ) * - 95 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL 13 * + col1 * - CAST ( NULL AS INTEGER ) * - 95 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + - col0 * - + col1 + - - 79 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + 51 * COUNT( * ) FROM tab2
----
153

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + 51 * COUNT ( * ) FROM tab2
----
153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 63 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 66 AS col2 FROM tab2
----
66
66
66

query I rowsort
SELECT ALL + col0 * - 83 AS col0 FROM tab1
----
-4233
-7055
-7553

query I rowsort
SELECT ( + + 54 ) AS col1 FROM tab0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT DISTINCT - MAX( 89 ) col1 FROM tab0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9659
SELECT DISTINCT - MAX ( 89 ) col1 FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT COUNT( * ) * 76 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-9660
SELECT COUNT ( * ) * 76 FROM tab2
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT col2 + col1 - col1 * - 18 * + + col0 - - - col0 DIV + col2 FROM tab2
----
42300
88820
90574

skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT col2 + col1 - col1 * - 18 * + + col0 - - - col0 / + col2 FROM tab2
----
42300
88820
90574

query I rowsort
SELECT - 39 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + ( ( col1 ) ) + + + 7 AS col2 FROM tab1 AS cor0
----
117
122
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col1, 77 + - col0 col2 FROM tab1 AS cor0
----
59
-8
68
-14
96
26

query I rowsort
SELECT DISTINCT - col1 + + 22 FROM tab2 AS cor0
----
-29
-45
-55

query I rowsort
SELECT DISTINCT + 4 * - col0 + + + col2 FROM tab2 AS cor0
----
-161
-216
-242

query II rowsort
SELECT DISTINCT ( 96 ) AS col2, col0 AS col1 FROM tab0
----
96
15
96
87
96
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9668
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - + 98 ) / + 22 AND + - 67 + - ( - + col1 ) * - + ( - - 25 ) * + col1 * 11 OR - 66 + - 17 - + CAST( NULL AS SIGNED ) * + 80 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9668
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - + 98 ) / + 22 AND + - 67 + - ( - + col1 ) * - + ( - - 25 ) * + col1 * 11 OR - 66 + - 17 - + CAST ( NULL AS INTEGER ) * + 80 <> NULL
----

query I rowsort
SELECT + - 20 FROM tab1 AS cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL + + col1 FROM tab0 cor0 WHERE NOT NULL BETWEEN 84 AND NULL
----

query I rowsort
SELECT + col1 * - 11 * + 93 FROM tab1 cor0
----
-14322
-48081
-5115

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT COUNT( * ) + 4 AS col1 FROM tab1 AS cor0 WHERE col2 <= - - 49
----
4

skipif mysql # not compatible
query I rowsort label-9672
SELECT COUNT ( * ) + 4 AS col1 FROM tab1 AS cor0 WHERE col2 <= - - 49
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9673
SELECT - - ( + + col0 ) - - + CAST( NULL AS DECIMAL ) * + 71 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9673
SELECT - - ( + + col0 ) - - + CAST ( NULL AS REAL ) * + 71 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 - col2 + + - col0 + - + 82 AS col2 FROM tab0
----
-129
-181
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL - MIN( ALL - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - MIN ( ALL - col2 ) AS col0 FROM tab1
----
96

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 24 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col2, 77 AS col2 FROM tab2
----
46
77
64
77
75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT + + SUM( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + + SUM ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT DISTINCT + col1 / - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + 29 * + col1, - 55, 38 + - col0, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + col1 / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + 29 * + col1, - 55, 38 + - col0, col2 )
----
NULL

query II rowsort
SELECT DISTINCT 31, + col0 FROM tab0 AS cor0
----
31
15
31
87
31
97

query I rowsort
SELECT ALL + - ( + - col0 ) FROM tab0 cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT 83 DIV col1 AS col0 FROM tab0 AS cor0
----
1
3
83

skipif mysql # not compatible
query I rowsort label-9683
SELECT 83 / col1 AS col0 FROM tab0 AS cor0
----
1
3
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 47 col2 FROM tab1 AS cor0
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + COUNT( * ) * - + MAX( - 6 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9685
SELECT + COUNT ( * ) * - + MAX ( - 6 ) AS col1 FROM tab0
----
18

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 10 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT ALL + 4 DIV - - col2 + + + 65 * - - 88 FROM tab2 AS cor0
----
5720
5720
5720

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + 4 / - - col2 + + + 65 * - - 88 FROM tab2 AS cor0
----
5720
5720
5720

query I rowsort
SELECT ALL + - 80 AS col0 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - + 17 FROM tab2 AS cor0 WHERE - 33 <> + - col1
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - 15 * + - col1 + + 84 * 61 * + - col2 + col0 * + col2 FROM tab2 AS cor0
----
-116029
-201245
-291837

query I rowsort
SELECT DISTINCT 0 * - 82 - - col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9692
SELECT DISTINCT - - col1 * + - 23 AS col2, 24 * + CAST( - col1 AS SIGNED ) * + - 93 + + + col0 FROM tab0 AS cor0
----
-1863
180807
-23
2329
-483
46959

skipif mysql # not compatible
query II rowsort label-9692
SELECT DISTINCT - - col1 * + - 23 AS col2, 24 * + CAST ( - col1 AS INTEGER ) * + - 93 + + + col0 FROM tab0 AS cor0
----
-1863
180807
-23
2329
-483
46959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT DISTINCT - ( - col1 ) * - CAST( 9 AS SIGNED ) FROM tab1
----
-126
-423
-45

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT - ( - col1 ) * - CAST ( 9 AS INTEGER ) FROM tab1
----
-126
-423
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT ALL - 64 DIV + + col1 FROM tab0
----
-3
-64
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - 64 / + + col1 FROM tab0
----
-3
-64
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9695
SELECT ALL MIN( DISTINCT + - col0 ) DIV COUNT( * ) col1 FROM tab2
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9695
SELECT ALL MIN ( DISTINCT + - col0 ) / COUNT ( * ) col1 FROM tab2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT + col2 DIV col1 + 27 - + col2 AS col2 FROM tab1
----
-21
-40
-63

skipif mysql # not compatible
query I rowsort label-9696
SELECT + col2 / col1 + 27 - + col2 AS col2 FROM tab1
----
-21
-40
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT COUNT( * ) + - 78 * - COUNT( * ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-9697
SELECT COUNT ( * ) + - 78 * - COUNT ( * ) FROM tab1
----
237

query I rowsort
SELECT ALL 63 + col2 AS col2 FROM tab1 AS cor0
----
122
131
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL >= - col0 - col0
----

skipif mysql # not compatible
query I rowsort label-9699
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL >= - col0 - col0
----

query I rowsort
SELECT + + 74 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL - 18 + - - col0 * + - col1 FROM tab1
----
-4295
-443
-732

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL < ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - MAX( 58 ) AS col1 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - MAX ( 58 ) AS col1 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT DISTINCT col0 * + - col0 FROM tab2 AS cor0 WHERE NOT + col2 * + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT col0 * + - col0 FROM tab2 AS cor0 WHERE NOT + col2 * + CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL + + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9708
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 45 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 45 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT ALL - COUNT( * ) AS col1, 19 FROM tab2 cor0
----
-3
19

skipif mysql # not compatible
query II rowsort label-9710
SELECT ALL - COUNT ( * ) AS col1, 19 FROM tab2 cor0
----
-3
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT MAX( - col1 ) AS col2, MAX( - 81 ) FROM tab0 AS cor0
----
-1
-81

skipif mysql # not compatible
query II rowsort label-9712
SELECT MAX ( - col1 ) AS col2, MAX ( - 81 ) FROM tab0 AS cor0
----
-1
-81

query III rowsort
SELECT * FROM tab0 WHERE + 65 + + 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT + 21 NOT IN ( + col0 * + col2, col1 - - 85 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9716
SELECT - col0 DIV - - 20 AS col0, CAST( + col2 AS SIGNED ) FROM tab0
----
-4
10
-4
99
0
47

skipif mysql # not compatible
query II rowsort label-9716
SELECT - col0 / - - 20 AS col0, CAST ( + col2 AS INTEGER ) FROM tab0
----
-4
10
-4
99
0
47

query I rowsort
SELECT col0 * 13 FROM tab0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT - SUM( ALL col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT - SUM ( ALL col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT DISTINCT MAX( + - 17 ) FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT MAX ( + - 17 ) FROM tab0
----
-17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + col2 - - col0 AND - 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT DISTINCT ( - MAX( DISTINCT CAST( col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT ( - MAX ( DISTINCT CAST ( col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL + - col0 * + - col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9723
SELECT - COUNT( * ) DIV - 29 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT - COUNT ( * ) / - 29 AS col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0, + col2 + + - 99 AS col1 FROM tab1
----
51
-3
85
-40
91
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT MIN( ALL 98 ) FROM tab1 cor0
----
98

skipif mysql # not compatible
query I rowsort label-9725
SELECT MIN ( ALL 98 ) FROM tab1 cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col1 * + ( - - 16 ) + - col0 col1 FROM tab0 cor0
----
1296
16
336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9727
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9727
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT SUM( DISTINCT - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9728
SELECT SUM ( DISTINCT - - col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE NOT - 32 * - + col0 + - 99 <> - col0 + - col2 - + col2
----

query II rowsort
SELECT DISTINCT col2, + col2 * - col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 <= - + col1
----
46
51
23
64
77
40

query I rowsort
SELECT col0 + - 97 * + col2 AS col0 FROM tab2
----
-2185
-3816
-5551

query I rowsort
SELECT 83 * - + 3 * col0 + col1 + + - 98 AS col0 FROM tab2 cor0
----
-11501
-15957
-18706

query I rowsort
SELECT col0 + + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL - 49 + col2 AS col2 FROM tab2 AS cor0
----
-26
-9
9

query I rowsort
SELECT - + col0 + + col0 + - + 36 - col0 FROM tab0 cor0
----
-123
-133
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL - 38 + + COUNT( * ) * - 94 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-884

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL - 38 + + COUNT ( * ) * - 94 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
-884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT + + ( + COUNT( * ) ) * + + CAST( NULL AS SIGNED ) + - + CAST( 58 AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT + + ( + COUNT ( * ) ) * + + CAST ( NULL AS INTEGER ) + - + CAST ( 58 AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT ALL + 19 - SUM( 80 ) AS col0 FROM tab1
----
-221

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + 19 - SUM ( 80 ) AS col0 FROM tab1
----
-221

query I rowsort
SELECT DISTINCT + - 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-28

query I rowsort
SELECT DISTINCT - col1 * 24 AS col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

query II rowsort
SELECT + col2 AS col2, - col1 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col2 - - 76 FROM tab0 cor0
----
123
175
86

query I rowsort
SELECT - 44 - - - col1 + - 85 FROM tab2 AS cor0
----
-180
-196
-206

query I rowsort
SELECT col1 * - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9746
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-9746
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT 90 * - ( - + 52 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
4683

skipif mysql # not compatible
query I rowsort label-9747
SELECT 90 * - ( - + 52 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4683

query I rowsort
SELECT 74 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 * + 92 + col0 > - col0
----

query I rowsort
SELECT ( + - 5 ) AS col2 FROM tab1
----
-5
-5
-5

query II rowsort
SELECT DISTINCT + col2 AS col0, + col2 * + - col2 FROM tab1
----
59
-3481
68
-4624
96
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, col2 * + ( + col0 ) FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

onlyif mysql # aggregate syntax: 
query II rowsort label-9754
SELECT DISTINCT - COUNT( * ), - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9754
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT 0 * - col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 99 col0 FROM tab1 AS cor0
----
5049
8415
9009

query I rowsort
SELECT ALL + 76 + + col0 + + - 17 * + 63 * + - col1 AS col1 FROM tab2 AS cor0
----
54743
71908
82607

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 + - - col2, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - COUNT( DISTINCT col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT - COUNT ( DISTINCT col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL + col2 + CAST( NULL AS SIGNED ) / + ( + ( - 94 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) / + ( + ( - 94 ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 44 FROM tab2
----
108
119
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9764
SELECT + col1 DIV ( - col1 ) + + - col2 AS col2 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-9764
SELECT + col1 / ( - col1 ) + + - col2 AS col2 FROM tab1
----
-60
-69
-97

query III rowsort
SELECT * FROM tab2 WHERE - col1 = - col1 + + col1 * - - 21
----

query I rowsort
SELECT + col1 + - ( - col0 ) FROM tab0
----
108
96
98

query II rowsort
SELECT ( - + col2 ) AS col0, col2 * - + 98 * col2 * - col1 AS col0 FROM tab1 WHERE - col0 / col1 + + + col2 >= 14
----
-59
1705690
-68
21298144
-96
12644352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9768
SELECT 53 + + - SUM( DISTINCT col0 ) * MAX( DISTINCT - col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT 53 + + - SUM ( DISTINCT col0 ) * MAX ( DISTINCT - col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - - col1 NOT IN ( - 78, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT 84 * - COUNT( * ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-9770
SELECT 84 * - COUNT ( * ) FROM tab0
----
-252

query I rowsort
SELECT ALL + 27 AS col2 FROM tab1
----
27
27
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9772
SELECT - 71 AS col2, COUNT( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
-71
0

skipif mysql # not compatible
query II rowsort label-9772
SELECT - 71 AS col2, COUNT ( * ) FROM tab1 WHERE ( NULL ) = ( NULL )
----
-71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT - COUNT( * ) * + - MAX( + col2 ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-9773
SELECT - COUNT ( * ) * + - MAX ( + col2 ) FROM tab2
----
174

query I rowsort
SELECT - col0 * - + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - + COUNT( * ) * - 98 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9776
SELECT - + COUNT ( * ) * - 98 FROM tab2 AS cor0
----
294

query I rowsort
SELECT DISTINCT + 30 * col1 * - 40 * + col2 + + 80 AS col0 FROM tab1 AS cor0
----
-1612720
-353920
-3835120

query II rowsort
SELECT DISTINCT - 91 + - col2 + col2 + + col1, 10 AS col1 FROM tab1
----
-44
10
-77
10
-86
10

query I rowsort
SELECT - + 53 FROM tab0 WHERE + col0 >= NULL
----

query I rowsort
SELECT - - 38 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT ( + col2 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT ( + col2 ) / - col0 AS col1 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL - 90 * ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT - + col2 * + col1 DIV + col1 AS col2 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9783
SELECT - + col2 * + col1 / + col1 AS col2 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT DISTINCT - COUNT( + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT - COUNT ( + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col1 * - - 90 AS col0 FROM tab2 AS cor0
----
4590
6030
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ALL MIN( 17 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL MIN ( 17 ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT ALL + - 2 FROM tab2 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - col2 * + + col1 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL COUNT( - - 4 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL COUNT ( - - 4 ) FROM tab1
----
3

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE ( ( NULL ) IN ( + 2, - 58 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT MAX( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9792
SELECT MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - 86 * col1 FROM tab0
----
-1806
-6966
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 WHERE NOT + col2 NOT IN ( - - col0, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT ALL - col1 * + + col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - col1 * + + col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9796
SELECT DISTINCT SUM( ALL - col1 ) DIV + - COUNT( * ) col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9796
SELECT DISTINCT SUM ( ALL - col1 ) / + - COUNT ( * ) col2 FROM tab0 AS cor0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 28 - col1 * + col2 col1 FROM tab2 AS cor0
----
-1178
-3068
-3856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 AS col1, + ( col0 ) col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT + + col1 AS col0, ( - + col2 ) * + + 73 + + col0 AS col0 FROM tab0 cor0
----
1
-7130
21
-643
81
-3416

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 + + col1 + 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT 79 * + + COUNT( 11 ) AS col0 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-9801
SELECT 79 * + + COUNT ( 11 ) AS col0 FROM tab2
----
237

query I rowsort
SELECT col1 + + 11 AS col2 FROM tab0
----
12
32
92

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0 WHERE NOT ( NOT - ( + col0 ) <= + - 64 )
----
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 AS col2, + 84 * - + col2 col2 FROM tab1 AS cor0
----
90
-4956
90
-5712
90
-8064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 19 + - - 55 AS col1 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9807
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT COUNT( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( DISTINCT - + col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9809
SELECT + + SUM( ALL CAST( 62 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9809
SELECT + + SUM ( ALL CAST ( 62 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
186

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( - 12 ) FROM tab2
----
-12

query I rowsort
SELECT ALL 66 * + 22 * + + 38 FROM tab1
----
55176
55176
55176

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT DISTINCT 14 - - COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT 14 - - COUNT ( * ) FROM tab2
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 28 + + ( - col0 ) + - col0 + + col1 col2 FROM tab2 AS cor0
----
-111
-69
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT DISTINCT COUNT( * ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9815
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 + - - col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < col2
----

query II rowsort
SELECT - col1, col1 AS col2 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + - COUNT( * ) * - + 57 AS col0 FROM tab1 cor0
----
171

skipif mysql # not compatible
query I rowsort label-9819
SELECT + - COUNT ( * ) * - + 57 AS col0 FROM tab1 cor0
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT - - col2 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9820
SELECT - - col2 / - + col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT - 22 * + col2 AS col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + + 98 FROM tab2 AS cor0
----
98
98
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 30 FROM tab2
----
-1530
-2010
-2310

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 12 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 25 * col0 AS col2, col1 AS col0 FROM tab2
----
-1150
51
-1600
77
-1875
67

query I rowsort
SELECT - col2 * - 23 * + 50 AS col1 FROM tab1
----
110400
67850
78200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col0 ) col2, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT 12 FROM tab1 AS cor0 WHERE NULL IS NULL
----
12

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL ( - col0 ) AS col1, + col1 * 37 FROM tab1 cor0
----
-51
518
-85
185
-91
1739

query I rowsort
SELECT 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9834
SELECT + 57 AS col2, - COUNT( * ) DIV - SUM( + + col0 ) AS col2 FROM tab2
----
57
0

skipif mysql # not compatible
query II rowsort label-9834
SELECT + 57 AS col2, - COUNT ( * ) / - SUM ( + + col0 ) AS col2 FROM tab2
----
57
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * 6 col2 FROM tab0
----
294
294
294

query I rowsort
SELECT ALL + col1 * + 21 AS col0 FROM tab0
----
1701
21
441

query I rowsort
SELECT - col1 + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT + - 91 + + 46 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT MIN( - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT MIN ( - 21 ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT col1 * - col2 * - col2 + + - col1 AS col0 FROM tab1 AS cor0
----
129010
17400
217281

query I rowsort
SELECT DISTINCT + - col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 + 73 * - col0 + - + col2 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL SUM( ALL + - col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL SUM ( ALL + - col2 ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 4 NOT BETWEEN + 29 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9845
SELECT + 68 + + CAST( NULL AS SIGNED ) + - col0 + 97 AS col1 FROM tab0 WHERE - col1 + + - 75 * col1 * 29 = - col2
----

skipif mysql # not compatible
query I rowsort label-9845
SELECT + 68 + + CAST ( NULL AS INTEGER ) + - col0 + 97 AS col1 FROM tab0 WHERE - col1 + + - 75 * col1 * 29 = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col2 FROM tab0
----
41
41
41

query I rowsort
SELECT ALL - 92 + - 82 * + 10 FROM tab1
----
-912
-912
-912

query II rowsort
SELECT DISTINCT col2 - col2, 36 AS col0 FROM tab0
----
0
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT ALL col0 DIV + - 54 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL col0 / + - 54 FROM tab0
----
-1
-1
0

query I rowsort
SELECT - ( + - ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9851
SELECT ALL * FROM tab2 WHERE NOT + col2 * + 3 BETWEEN NULL AND - - CAST( col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9851
SELECT ALL * FROM tab2 WHERE NOT + col2 * + 3 BETWEEN NULL AND - - CAST ( col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - 89 ) AS col2 FROM tab1
----
89

query II rowsort
SELECT 86 AS col1, - col0 FROM tab1 AS cor0
----
86
-51
86
-85
86
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 < col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9855
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND + col2 - - - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9857
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 * col1 * - - col0 col2, - col2 AS col2 FROM tab1 AS cor0
----
201019
-68
2125
-59
9996
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - + col2 col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT - COUNT( * ) * + + 17 AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-9862
SELECT - COUNT ( * ) * + + 17 AS col0 FROM tab0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT - col2 DIV + - col1 AS col0 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9863
SELECT - col2 / + - col1 AS col0 FROM tab1
----
1
11
6

query I rowsort
SELECT - 30 * 65 FROM tab2
----
-1950
-1950
-1950

query III rowsort
SELECT * FROM tab1 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + + 41 + - - col2 + col1 FROM tab0 WHERE NOT - 69 IS NULL
----
142
250
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT - 91 * COUNT( * ) FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - 91 * COUNT ( * ) FROM tab2
----
-273

query I rowsort
SELECT ALL - + col1 / + col1 AS col2 FROM tab1 WHERE NULL <> - - 80 * 73
----

query II rowsort
SELECT ALL col0, + col2 FROM tab2
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( ALL 18 ) col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - + col2 AS col2, - col2 + - col2 * + col2 FROM tab2 AS cor0
----
-23
-552
-40
-1640
-58
-3422

query I rowsort
SELECT col1 + + col2 + col1 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab2 WHERE NOT - - col2 * + + 54 / + 45 * - col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT ALL + COUNT( * ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9874
SELECT ALL + COUNT ( * ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 57 > - 50 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 63 - + col1 + - col0 + - 2, col2 AS col0 FROM tab2 AS cor0
----
-162
23
-206
40
-207
58

query I rowsort
SELECT ALL + col0 * + col1 - 71 AS col2 FROM tab0 AS cor0
----
1144
1756
26

query I rowsort
SELECT DISTINCT col1 + + 92 + + col2 * + col0 + ( + col0 ) AS col2 FROM tab1 AS cor0
----
5053
5197
6418

query I rowsort
SELECT - col0 - - 54 * - col0 AS col0 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT + 91 + + + SUM( ALL - col2 ) * - 34 col1 FROM tab2
----
4205

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT DISTINCT + 91 + + + SUM ( ALL - col2 ) * - 34 col1 FROM tab2
----
4205

query III rowsort
SELECT * FROM tab2 WHERE NULL > 44 + + ( + - col0 )
----

query I rowsort
SELECT 68 * + 35 * - 29 FROM tab1 AS cor0
----
-69020
-69020
-69020

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL - + col2, col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL + COUNT( * ) FROM tab0 cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + COUNT ( * ) FROM tab0 cor0 INNER JOIN tab2 AS cor1 ON NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - ( MIN( ALL + 22 ) ) AS col0 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9886
SELECT - ( MIN ( ALL + 22 ) ) AS col0 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9887
SELECT - col0 DIV - 55 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9887
SELECT - col0 / - 55 FROM tab0
----
0
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - 61 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL COUNT( ALL col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL COUNT ( ALL col1 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + MIN( DISTINCT - + 82 ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9890
SELECT + MIN ( DISTINCT - + 82 ) FROM tab2 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, - 95 - col1 + - col1 FROM tab1 AS cor0
----
-51
-123
-85
-105
-91
-189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9893
SELECT - COUNT( * ) * - 31, - 78 + + 35 AS col1 FROM tab1 AS cor0
----
93
-43

skipif mysql # not compatible
query II rowsort label-9893
SELECT - COUNT ( * ) * - 31, - 78 + + 35 AS col1 FROM tab1 AS cor0
----
93
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT DISTINCT - ( + COUNT( DISTINCT col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - ( + COUNT ( DISTINCT col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 71 * 83 FROM tab0 AS cor0
----
5893
5893
5893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT DISTINCT - + CAST( 26 AS SIGNED ) * 62 col2 FROM tab1 AS cor0
----
-1612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9896
SELECT DISTINCT - + CAST ( 26 AS INTEGER ) * 62 col2 FROM tab1 AS cor0
----
-1612

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 69 * + col0 + ( + + col1 ) + 84 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 88 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9900
SELECT - CAST( - col0 AS SIGNED ) + + - col2 + + - 29 * + col1 - + col2 * col2, - 80 + - col1 AS col1 FROM tab0
----
-4590
-161
-632
-101
-9832
-81

skipif mysql # not compatible
query II rowsort label-9900
SELECT - CAST ( - col0 AS INTEGER ) + + - col2 + + - 29 * + col1 - + col2 * col2, - 80 + - col1 AS col1 FROM tab0
----
-4590
-161
-632
-101
-9832
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT MAX( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9901
SELECT MAX ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT ALL - - col1 + - CAST( + 15 AS SIGNED ) + + 46 FROM tab2 cor0
----
108
82
98

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - - col1 + - CAST ( + 15 AS INTEGER ) + + 46 FROM tab2 cor0
----
108
82
98

query I rowsort
SELECT 84 * 28 * col0 * - col1 - + 95 + + + 92 FROM tab2
----
-11590659
-11818803
-5517795

query II rowsort
SELECT DISTINCT + col0, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL - - 37 FROM tab0 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + - col0 * - 95 FROM tab2 AS cor0
----
4370
6080
7125

query II rowsort
SELECT + 78 + - col1 * - ( - 95 ), col0 AS col2 FROM tab0 AS cor0
----
-17
97
-1917
87
-7617
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 6 AS col0 FROM tab2 AS cor0 WHERE ( ( + col0 ) BETWEEN 57 AND + 18 * - - col2 + ( - col0 ) + 75 * - + col0 )
----

query I rowsort
SELECT ( ( - col1 ) ) * - + 20 * 71 + + - 97 FROM tab2
----
109243
72323
95043

query I rowsort
SELECT - ( 96 ) FROM tab0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + + MAX( DISTINCT + ( + 32 ) ) * 90 AS col0 FROM tab2 WHERE NULL < ( + ( 17 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + + MAX ( DISTINCT + ( + 32 ) ) * 90 AS col0 FROM tab2 WHERE NULL < ( + ( 17 ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col0 AS col0, col2 * - col0 + + col1 col2 FROM tab1
----
2601
-4882
7225
-5010
8281
-6141

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col0 + - 58 + col1 FROM tab0 AS cor0
----
-2201
-224
-9955

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT ALL - col1 DIV - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - col1 / - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT + col0 * + col1 + - + col2 AS col1 FROM tab1 AS cor0
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT - MAX( - 18 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9920
SELECT - MAX ( - 18 ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col2 < col0 * - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9922
SELECT ALL - - col0 / + - CAST( NULL AS SIGNED ) + + + col0 AS col0, - CAST( - - col2 AS SIGNED ) - + 85 + col1 * col0 FROM tab2 AS cor0
----
NULL
2238
NULL
4803
NULL
4882

skipif mysql # not compatible
query II rowsort label-9922
SELECT ALL - - col0 / + - CAST ( NULL AS INTEGER ) + + + col0 AS col0, - CAST ( - - col2 AS INTEGER ) - + 85 + col1 * col0 FROM tab2 AS cor0
----
NULL
2238
NULL
4803
NULL
4882

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col1 AS col1, + col2 AS col2 FROM tab0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT 16 * col1 FROM tab2
----
1072
1232
816

query III rowsort
SELECT * FROM tab2 WHERE NOT 13 * - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9927
SELECT DISTINCT 35 + 22 DIV + - 46 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT 35 + 22 / + - 46 FROM tab0
----
35

query I rowsort
SELECT ALL ( - ( - 46 ) ) FROM tab1
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( + col0 ) col1 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 WHERE + col1 > - - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col0, - col2 FROM tab0 cor0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9933
SELECT ALL + + 88, + 4 * - MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
88
232

skipif mysql # not compatible
query II rowsort label-9933
SELECT ALL + + 88, + 4 * - MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
88
232

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - + MAX( - col1 ) + - - 83 AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9934
SELECT - + MAX ( - col1 ) + - - 83 AS col0 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT - + COUNT( + 7 ) + 32 AS col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9935
SELECT - + COUNT ( + 7 ) + 32 AS col1 FROM tab0 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT - COUNT( * ) + 44 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - COUNT ( * ) + 44 FROM tab1
----
41

query I rowsort
SELECT ALL + - 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * - col1 col1 FROM tab0 AS cor0
----
1134
14
294

query I rowsort
SELECT - AVG ( + col0 ) FROM tab2 AS cor0 WHERE + col2 / + col2 * - 97 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 30 ) + + 71 + col0 AS col2 FROM tab2 AS cor0
----
147
165
176

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT ALL 19 DIV - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL 19 / - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT - COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9943
SELECT - COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ALL - + col2 * + 33 AS col0 FROM tab2 WHERE + - 86 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <= - col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT + COUNT( + ( + 40 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9947
SELECT + COUNT ( + ( + 40 ) ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col0 AS col0, - 32 FROM tab1 AS cor0
----
-51
-32
-85
-32
-91
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9949
SELECT ALL * FROM tab1 AS cor0 WHERE 26 / - col2 * col0 * - col1 = + - col0 + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9949
SELECT ALL * FROM tab1 AS cor0 WHERE 26 / - col2 * col0 * - col1 = + - col0 + CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT + ( - COUNT( * ) ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - ( + + 96 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9951
SELECT + ( - COUNT ( * ) ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - ( + + 96 ) AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9952
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + MIN( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9953
SELECT + MIN ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT + MIN( - - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9954
SELECT + MIN ( - - col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * 12 - - 17 IS NOT NULL
----

query I rowsort
SELECT ALL - 46 AS col2 FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT + ( - COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ( + col1 ) + + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL + SUM( ALL col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + SUM ( ALL col1 ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col0 FROM tab2
----
61
61
61

query I rowsort
SELECT 52 / col0 FROM tab1 WHERE - col1 * - 8 <= - col1
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT - col0 + - col0 * col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - 47 * ( - col2 ) AS col1 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT - 38 + 63 FROM tab0
----
25
25
25

query I rowsort
SELECT 53 * 45 FROM tab1 WHERE + 32 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col0 - col0 * + col2 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 95 - 94 FROM tab2
----
-189

query I rowsort
SELECT ALL - ( 76 ) * col2 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT + ( - 28 ) + col1 FROM tab0
----
-27
-7
53

query I rowsort
SELECT ALL - col0 + - 53 FROM tab2
----
-117
-128
-99

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL < - col2 * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9973
SELECT ALL * FROM tab1 WHERE 38 <= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9973
SELECT ALL * FROM tab1 WHERE 38 <= + CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + 52 * - COUNT( * ) AS col2 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-9975
SELECT + 52 * - COUNT ( * ) AS col2 FROM tab2
----
-156

query I rowsort
SELECT 11 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 98 + + col0 FROM tab2
----
144
162
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL - CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ( 84 ) AS col2 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL ( 88 ) + - ( col0 ) FROM tab2 AS cor0
----
13
24
42

query I rowsort
SELECT ALL - 4 - + 75 * 36 FROM tab0 AS cor0
----
-2704
-2704
-2704

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9982
SELECT * FROM tab2 AS cor0 WHERE + CAST( col2 AS SIGNED ) = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9982
SELECT * FROM tab2 AS cor0 WHERE + CAST ( col2 AS INTEGER ) = ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 - - 74 FROM tab2
----
125
141
151

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT + col2 DIV - 98 + - 29 DIV + col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT + col2 / - 98 + - 29 / + col1 FROM tab1
----
-2
-5
0

query I rowsort
SELECT col0 + - col0 * col0 AS col1 FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT ALL col2 + - col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + + 66 * - col0 FROM tab2 AS cor0
----
-3036
-4224
-4950

query I rowsort
SELECT 98 - + col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN 30 + + col2 * col2 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( - ( - col2 ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9990
SELECT CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT CAST ( NULL AS REAL ) + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
NULL

query I rowsort
SELECT ALL - 97 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + COUNT( ALL - - col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9992
SELECT + COUNT ( ALL - - col1 ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( 28 ) AS col1 FROM tab2
----
28
28
28

query III rowsort
SELECT ALL * FROM tab2 WHERE 81 <= - 28
----

query I rowsort
SELECT DISTINCT col2 * + + col2 FROM tab0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - ( col2 ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT SUM( DISTINCT col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9998
SELECT SUM ( DISTINCT col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT - COUNT( * ) + 32 FROM tab1 WHERE + col2 IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT - COUNT ( * ) + 32 FROM tab1 WHERE + col2 IS NULL
----
32

