sqllogictest
Artifact Content
Not logged in

Artifact df1d5d1386c7ab7049a25017ca3d08874e480d24:


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 divisio