sqllogictest
Artifact Content
Not logged in

Artifact 30209ab126559b037848ca4d5b32ef3edd7b4c68:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

query I rowsort
SELECT DISTINCT + ( col2 ) + + + 73 FROM tab0 AS cor0
----
120
172
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT + + col0 DIV col0 + 92 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-1
SELECT + + col0 / col0 + 92 FROM tab2 AS cor0
----
93
93
93

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

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

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

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

query I rowsort
SELECT 50 AS col0 FROM tab1 WHERE col1 * 72 + - + 27 * - col1 NOT BETWEEN + + 81 + + - col1 / 83 AND - col2
----
50
50
50

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 33 FROM tab2 AS cor0 WHERE NOT + 60 >= NULL
----

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

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

query I rowsort
SELECT ALL + 36 + - 23 FROM tab1 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT DISTINCT + + SUM( - 81 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

skipif mysql # not compatible
query I rowsort label-14
SELECT DISTINCT + + SUM ( - 81 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-729

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 69 - - - col2 col0 FROM tab2 AS cor0
----
1564
2720
3944

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

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

query I rowsort
SELECT + 81 * - 60 * col2 * - + col0 * 41 AS col0 FROM tab2 AS cor0
----
210817080
510105600
866781000

query I rowsort
SELECT ALL + 41 * + col1 - - 73 * col1 AS col1 FROM tab0 AS cor0
----
114
2394
9234

query I rowsort
SELECT ALL - 71 * - 45 + - 42 + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
3054
3106
3143

onlyif mysql # DIV for integer division: 
query II rowsort label-22
SELECT DISTINCT + col0 DIV - 73 - 52 + 30, 33 AS col2 FROM tab2 AS cor0
----
-22
33
-23
33

skipif mysql # not compatible
query II rowsort label-22
SELECT DISTINCT + col0 / - 73 - 52 + 30, 33 AS col2 FROM tab2 AS cor0
----
-22
33
-23
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-23
SELECT CAST( + col2 AS SIGNED ) DIV + - 16 + + + col0 FROM tab2
----
45
62
72

skipif mysql # not compatible
query I rowsort label-23
SELECT CAST ( + col2 AS INTEGER ) / + - 16 + + + col0 FROM tab2
----
45
62
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL MIN( DISTINCT - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL MIN ( DISTINCT - - col0 ) FROM tab1
----
51

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 = - 3 - + + 69
----
1
21
81

query I rowsort
SELECT - 68 AS col1 FROM tab1 cor0
----
-68
-68
-68

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

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

query I rowsort
SELECT + 3 + - 95 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL + - 97 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT 69 DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-32
SELECT 69 / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT col1 * + 11 - - 23 AS col1 FROM tab1 AS cor0
----
177
540
78

query I rowsort
SELECT DISTINCT + col2 + - + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - col0 * + col1 * - + col2 + + + col1 AS col0 FROM tab2 AS cor0
----
197197
291517
54009

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 + + + col2 + - + col0 + 47 * col1 col2 FROM tab1 cor0
----
2245
268
762

query I rowsort
SELECT col2 - - + 86 AS col0 FROM tab2
----
109
126
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-39
SELECT 75 + - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-39
SELECT 75 + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
72

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 IS NULL
----

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

query II rowsort
SELECT col1 + col2 * - 88 * + col1 AS col2, 54 AS col2 FROM tab1
----
-118258
54
-25955
54
-281201
54

query I rowsort
SELECT - ( - + col1 ) + col0 FROM tab0
----
108
96
98

query I rowsort
SELECT 9 * - col0 + - 32 AS col0 FROM tab1
----
-491
-797
-851

query I rowsort
SELECT ALL - 4 - - col2 * + col1 AS col2 FROM tab1
----
1340
291
3192

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

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

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 < - + col0
----
-1
-21
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT + CAST( + + col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-49
SELECT + CAST ( + + col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT DISTINCT + 17 * - MIN( ALL 85 ) + + 98 AS col0 FROM tab1 AS cor0
----
-1347

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT + 17 * - MIN ( ALL 85 ) + + 98 AS col0 FROM tab1 AS cor0
----
-1347

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

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

query I rowsort
SELECT ALL 77 * - 18 AS col2 FROM tab1 AS cor0
----
-1386
-1386
-1386

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-53
SELECT ALL - col0 * - CAST( - - ( + + 53 ) AS SIGNED ) * col0 AS col0, col2 col1 FROM tab2 AS cor0
----
112148
23
217088
40
298125
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-53
SELECT ALL - col0 * - CAST ( - - ( + + 53 ) AS INTEGER ) * col0 AS col0, col2 col1 FROM tab2 AS cor0
----
112148
23
217088
40
298125
58

query I rowsort
SELECT + 57 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
57
57
57

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

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

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

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

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

query II rowsort
SELECT - col0 AS col1, + col0 * + 73 FROM tab2
----
-46
3358
-64
4672
-75
5475

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

query I rowsort
SELECT + 97 * - - 53 AS col1 FROM tab2
----
5141
5141
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT - MIN( ALL 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-61
SELECT - MIN ( ALL 76 ) FROM tab0
----
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-63
SELECT DISTINCT col2 * + 53 + - + CAST( 79 AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
1191
2118
3062

skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT col2 * + 53 + - + CAST ( 79 AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
1191
2118
3062

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

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

query I rowsort
SELECT DISTINCT + 68 * ( + - col0 ) FROM tab0 cor0
----
-1020
-5916
-6596

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-66
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) = ( + 90 )
----

skipif mysql # not compatible
query III rowsort label-66
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) = ( + 90 )
----

query II rowsort
SELECT ALL + 19 * + 36 AS col1, + 84 + + 39 - - 74 AS col2 FROM tab0 cor0
----
684
197
684
197
684
197

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT COUNT( * ) + + 49 FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-69
SELECT COUNT ( * ) + + 49 FROM tab2 cor0
----
52

query II rowsort
SELECT + col2 AS col1, 38 + col0 AS col1 FROM tab2
----
23
84
40
102
58
113

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT - SUM( + 63 ) AS col0 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-71
SELECT - SUM ( + 63 ) AS col0 FROM tab2
----
-189

query I rowsort
SELECT DISTINCT + 56 + - - col1 AS col1 FROM tab1
----
103
61
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + COUNT( ALL - 2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-74
SELECT + COUNT ( ALL - 2 ) FROM tab0
----
3

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

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

query I rowsort
SELECT ALL - col2 * - - col2 * - + col1 + + + 69 + - - 59 FROM tab0 AS cor0
----
179057
2228
9929

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-79
SELECT - + MAX( - + 79 ) AS col0 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-79
SELECT - + MAX ( - + 79 ) AS col0 FROM tab0 cor0
----
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - SUM( ALL - 29 ) AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-81
SELECT - SUM ( ALL - 29 ) AS col1 FROM tab0
----
87

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

query I rowsort
SELECT col2 FROM tab2 WHERE 47 <= - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT - MAX( 68 ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - MAX ( 68 ) FROM tab2
----
-68

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

query I rowsort
SELECT col1 + 79 AS col2 FROM tab2
----
130
146
156

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

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

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

query I rowsort
SELECT DISTINCT 15 + ( 3 ) AS col1 FROM tab1
----
18

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 3 * + col0 ) = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 >= - col0
----
46
51
23
64
77
40

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

query I rowsort
SELECT + 95 + + col0 AS col1 FROM tab2
----
141
159
170

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

query I rowsort
SELECT - 90 FROM tab1 AS cor0 WHERE NOT ( 75 ) * + col1 IN ( - 13 )
----
-90
-90
-90

query I rowsort
SELECT 76 AS col1 FROM tab1 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT - 53 + - ( + 62 ) FROM tab1 AS cor0
----
-115

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 + ( col2 ) <= - ( - col1 )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( - 75 ) col1 FROM tab0 AS cor0
----
1575
6075
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-105
SELECT DISTINCT + 21 DIV + CAST( - 8 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT + 21 / + CAST ( - 8 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2

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

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

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + 43 * col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT + - 69 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT + - 69 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT ALL + col0 DIV + col2 FROM tab0 AS cor0 WHERE NOT - 63 + - 9 BETWEEN ( - col0 + ( - col2 ) ) AND ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT ALL + col0 / + col2 FROM tab0 AS cor0 WHERE NOT - 63 + - 9 BETWEEN ( - col0 + ( - col2 ) ) AND ( + col1 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT + SUM( - ( - col0 ) ) * - ( 47 ) - + 92 AS col1 FROM tab1 cor0
----
-10761

skipif mysql # not compatible
query I rowsort label-112
SELECT + SUM ( - ( - col0 ) ) * - ( 47 ) - + 92 AS col1 FROM tab1 cor0
----
-10761

query I rowsort
SELECT DISTINCT - 73 + 21 FROM tab1 AS cor0
----
-52

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

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

query I rowsort
SELECT + 52 + - 9 AS col1 FROM tab2
----
43
43
43

query III rowsort
SELECT * FROM tab0 WHERE col2 > + 14 + col0
----
15
81
47

query I rowsort
SELECT - 70 + + col0 AS col1 FROM tab1
----
-19
15
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col0 FROM tab2 WHERE col1 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT DISTINCT + SUM( - col1 ) * COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-119
SELECT DISTINCT + SUM ( - col1 ) * COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 71 * col1 BETWEEN 41 - + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 / 66 col0 FROM tab0 WHERE NOT NULL NOT IN ( col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT DISTINCT MAX( DISTINCT + + col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-122
SELECT DISTINCT MAX ( DISTINCT + + col2 ) col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + SUM( + 37 ) AS col0 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-123
SELECT + SUM ( + 37 ) AS col0 FROM tab2 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT - COUNT( * ) - 70 FROM tab2 AS cor0 WHERE NOT 6 + 25 NOT IN ( - col2 )
----
-70

skipif mysql # not compatible
query I rowsort label-124
SELECT - COUNT ( * ) - 70 FROM tab2 AS cor0 WHERE NOT 6 + 25 NOT IN ( - col2 )
----
-70

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

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

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

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

query I rowsort
SELECT ALL 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # DIV for integer division: 
query I rowsort label-130
SELECT 84 * - col0 * col2 DIV + col0 AS col2 FROM tab1
----
-4956
-5712
-8064

skipif mysql # not compatible
query I rowsort label-130
SELECT 84 * - col0 * col2 / + col0 AS col2 FROM tab1
----
-4956
-5712
-8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 41 AS col2, + col1 * - - col2 col0 FROM tab0 AS cor0
----
-41
210
-41
3807
-41
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT DISTINCT 10 + COUNT( * ) AS col0 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT 10 + COUNT ( * ) AS col0 FROM tab1 cor0
----
13

query II rowsort
SELECT - col1 AS col2, - col1 FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

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

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

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

query I rowsort
SELECT ALL 4 + - col1 AS col0 FROM tab2
----
-47
-63
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-140
SELECT ALL + MIN( + col1 ) AS col1, - COUNT( * ) FROM tab1
----
5
-3

skipif mysql # not compatible
query II rowsort label-140
SELECT ALL + MIN ( + col1 ) AS col1, - COUNT ( * ) FROM tab1
----
5
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-142
SELECT DISTINCT CAST( - - 96 AS SIGNED ) DIV + - 99 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT CAST ( - - 96 AS INTEGER ) / + - 99 + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 88 * + + 78 FROM tab0
----
-6864

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT + COUNT( * ) + - 45 AS col2 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-145
SELECT + COUNT ( * ) + - 45 AS col2 FROM tab2
----
-42

query I rowsort
SELECT ALL ( - 9 ) AS col0 FROM tab1 WHERE NOT ( + col0 + + - ( - col2 ) ) NOT IN ( ( - 7 ) + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT AVG ( + CAST( NULL AS SIGNED ) ) * - 53 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-147
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) * - 53 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col2 * 8 * 28 FROM tab0
----
10528
22176
2240

query I rowsort
SELECT + 84 FROM tab0 WHERE 99 IS NULL AND NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-150
SELECT ALL 9 * 46 AS col0, - 94 * MIN( - 6 ) FROM tab2
----
414
564

skipif mysql # not compatible
query II rowsort label-150
SELECT ALL 9 * 46 AS col0, - 94 * MIN ( - 6 ) FROM tab2
----
414
564

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

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE - 18 IS NULL
----

query I rowsort
SELECT ALL - 4 * - - col0 + 33 AS col0 FROM tab0 cor0
----
-27
-315
-355

query I rowsort
SELECT DISTINCT - - 27 AS col0 FROM tab0 AS cor0
----
27

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

onlyif mysql # aggregate syntax: 
query II rowsort label-156
SELECT COUNT( * ) - + + SUM( col0 ), 87 + COUNT( * ) AS col2 FROM tab2
----
-182
90

skipif mysql # not compatible
query II rowsort label-156
SELECT COUNT ( * ) - + + SUM ( col0 ), 87 + COUNT ( * ) AS col2 FROM tab2
----
-182
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 35 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - 25 ) FROM tab0 AS cor0
----
-25
-25
-25

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - + 1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-163
SELECT col2 DIV - 84 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-163
SELECT col2 / - 84 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT MAX( DISTINCT + CAST( CAST( + - CAST( + col2 AS SIGNED ) AS SIGNED ) AS SIGNED ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-164
SELECT MAX ( DISTINCT + CAST ( CAST ( + - CAST ( + col2 AS INTEGER ) AS INTEGER ) AS INTEGER ) ) FROM tab1
----
-59

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-168
SELECT - COUNT( DISTINCT - CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-168
SELECT - COUNT ( DISTINCT - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-3

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT MAX( 10 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-172
SELECT MAX ( 10 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
10

query I rowsort
SELECT - - 94 AS col1 FROM tab0 cor0
----
94
94
94

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

query I rowsort
SELECT DISTINCT - + 59 + + col1 FROM tab2 AS cor0
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT ALL + + MAX( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + + MAX ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < - ( - + ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-178
SELECT + MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
-99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT DISTINCT - MIN( DISTINCT + col0 ) + + 74 * COUNT( * ) FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-180
SELECT DISTINCT - MIN ( DISTINCT + col0 ) + + 74 * COUNT ( * ) FROM tab0
----
207

query I rowsort
SELECT + - 38 AS col0 FROM tab2 WHERE - 33 IS NULL
----

query II rowsort
SELECT DISTINCT ( 90 ) * + 1, - col2 AS col0 FROM tab2
----
90
-23
90
-40
90
-58

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

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

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

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

query I rowsort
SELECT col2 * col0 * + + col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT col1 + - - col2 FROM tab2
----
117
125
74

query I rowsort
SELECT col2 + - col1 * + col0 * - col2 * - col1 AS col0 FROM tab0
----
-383660
-4625458
-9504

query II rowsort
SELECT 22 * - - col1 + - 40, col2 FROM tab0 AS cor0
----
-18
99
1742
47
422
10

query I rowsort
SELECT ALL + ( 16 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IN ( 38 )
----

query I rowsort
SELECT - 37 * + ( - - col1 ) FROM tab2
----
-1887
-2479
-2849

query I rowsort
SELECT - - col2 - + col2 + + 46 + + ( 69 ) - - + col2 FROM tab0 cor0
----
125
162
214

query I rowsort
SELECT - - ( - ( - + col1 ) ) - - 76 FROM tab0 AS cor0
----
157
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT - ( - 98 ) - COUNT( * ) + - 6 + + 30 - - 38 - COUNT( ALL - - col0 ) FROM tab1 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-194
SELECT - ( - 98 ) - COUNT ( * ) + - 6 + + 30 - - 38 - COUNT ( ALL - - col0 ) FROM tab1 AS cor0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL - SUM( - 36 ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL - SUM ( - 36 ) FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL - - 79 + + col1 + - + 44 + - - 38 FROM tab0 cor0
----
154
74
94

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

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

query I rowsort
SELECT ALL - 64 * - 63 FROM tab0 AS cor0
----
4032
4032
4032

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

query I rowsort
SELECT 20 / + 17 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 96 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-203
SELECT + MIN ( ALL - 14 ) AS col1 FROM tab1
----
-14

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - SUM( DISTINCT + 41 ) FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-207
SELECT - SUM ( DISTINCT + 41 ) FROM tab2
----
-41

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IN ( col2, + 1 - - col0, - 12 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL + + MIN( DISTINCT + 40 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL + + MIN ( DISTINCT + 40 ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-210
SELECT ( - ( + SUM( + ( col2 ) ) ) ), 88 AS col0 FROM tab2 AS cor0
----
-121
88

skipif mysql # not compatible
query II rowsort label-210
SELECT ( - ( + SUM ( + ( col2 ) ) ) ), 88 AS col0 FROM tab2 AS cor0
----
-121
88

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

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

query I rowsort
SELECT ALL + col1 * + col2 * + 18 AS col2 FROM tab1
----
24192
5310
57528

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-213
SELECT - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-213
SELECT - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-214
SELECT * FROM tab1 WHERE NOT col0 / - ( - + col0 ) NOT IN ( - col1 * - col1 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) / 50 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-214
SELECT * FROM tab1 WHERE NOT col0 / - ( - + col0 ) NOT IN ( - col1 * - col1 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) / 50 + - col0 )
----

query II rowsort
SELECT ALL + col0 AS col0, col1 + col0 FROM tab1 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-216
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-216
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0
----
3

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

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

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

query I rowsort
SELECT ALL + 33 * + col0 - - col0 + + col1 * 63 + + 28 FROM tab0 AS cor0
----
3389
4309
5641

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 - col0 <> 37 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL IN ( + col1, col0 * - col1 / + + col1, 38 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-223
SELECT 71 + - ( + - CAST( 28 AS SIGNED ) ) col0 FROM tab2
----
99
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-223
SELECT 71 + - ( + - CAST ( 28 AS INTEGER ) ) col0 FROM tab2
----
99
99
99

query II rowsort
SELECT - + 5 * - col2 * + 22, + col1 FROM tab1 WHERE 37 IN ( 32, - 17 * col0 * + - col2 )
----

query I rowsort
SELECT ALL 17 + - - col1 FROM tab2
----
68
84
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT col0 * CAST( + + col0 AS SIGNED ) FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-226
SELECT col0 * CAST ( + + col0 AS INTEGER ) FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - - 15 AS col1 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT COUNT( * ) - + MIN( + 70 ) - - SUM( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
128

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT COUNT ( * ) - + MIN ( + 70 ) - - SUM ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
128

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT DISTINCT - COUNT( * ) - - MAX( ALL - 93 ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT - COUNT ( * ) - - MAX ( ALL - 93 ) FROM tab2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT ALL 1 + - COUNT( * ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL 1 + - COUNT ( * ) AS col2 FROM tab1
----
-2

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

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT COUNT ( * ) - + + 18 FROM tab0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-233
SELECT * FROM tab1 WHERE col1 * - - CAST( + col1 AS DECIMAL ) <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-233
SELECT * FROM tab1 WHERE col1 * - - CAST ( + col1 AS REAL ) <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE - ( - col1 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE - ( - col1 ) NOT BETWEEN ( NULL ) AND NULL
----
0

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

query II rowsort
SELECT ALL + 73 AS col0, col1 AS col0 FROM tab1 AS cor0
----
73
14
73
47
73
5

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 NOT BETWEEN NULL AND - col1 - - 14 * - col1
----

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN - 21 * - - 86 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 * + 71 * + 3 AS col0 FROM tab0 AS cor0
----
-17253
-213
-4473

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT + 28 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-243
SELECT + 28 / - col1 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-244
SELECT COUNT ( * ) / 50 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( - col2 ) + col2 * - col2 + - col2 FROM tab0
----
-120
-2303
-9999

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 = + col1 + - col1
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE + ( + col1 ) <> ( 72 ) * - 36 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - 47 + - + col0 FROM tab2 cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-250
SELECT DISTINCT - col0 AS col1, - 90 DIV col2 FROM tab0 AS cor0
----
-15
-1
-87
-9
-97
0

skipif mysql # not compatible
query II rowsort label-250
SELECT DISTINCT - col0 AS col1, - 90 / col2 FROM tab0 AS cor0
----
-15
-1
-87
-9
-97
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - 59 * + col2, - col2, - 33 / - 61, - 98, - + ( - col1 ) )
----

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

query I rowsort
SELECT ALL col0 + + - col1 FROM tab1
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * - 11 IS NULL
----

query II rowsort
SELECT col0 * - + col0 AS col1, 37 FROM tab0 AS cor0
----
-225
37
-7569
37
-9409
37

query II rowsort
SELECT DISTINCT + 38 * - 37, + col0 FROM tab1 AS cor0
----
-1406
51
-1406
85
-1406
91

query I rowsort
SELECT DISTINCT - 69 * + 75 FROM tab1 AS cor0
----
-5175

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 21 + + - col0, col1, - + 55 * 24 / - + ( col0 ) )
----

query I rowsort
SELECT DISTINCT + - 32 * col2 FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT col0 * + 20 AS col2 FROM tab0
----
1740
1940
300

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 + - 11 FROM tab0
----
1
-10
21
10
81
70

onlyif mysql # aggregate syntax: 
query II rowsort label-263
SELECT 80 * - SUM( - col2 ) AS col0, 60 FROM tab1
----
17840
60

skipif mysql # not compatible
query II rowsort label-263
SELECT 80 * - SUM ( - col2 ) AS col0, 60 FROM tab1
----
17840
60

onlyif mysql # DIV for integer division: 
query I rowsort label-264
SELECT + 64 DIV - - 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-264
SELECT + 64 / - - 81 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT DISTINCT ( - MAX( DISTINCT - col0 ) ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-265
SELECT DISTINCT ( - MAX ( DISTINCT - col0 ) ) col0 FROM tab0
----
15

query I rowsort
SELECT DISTINCT 17 * - col2 FROM tab2
----
-391
-680
-986

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 - ( ( - + col2 ) ) ) < NULL
----

query I rowsort
SELECT ( 60 ) FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT 84 * - col2 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT DISTINCT - - col0 DIV ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT - - col0 / ( - col1 ) FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT + SUM( - 64 ) FROM tab0 AS cor0 WHERE NOT ( 34 * - col2 ) IS NULL
----
-192

skipif mysql # not compatible
query I rowsort label-271
SELECT + SUM ( - 64 ) FROM tab0 AS cor0 WHERE NOT ( 34 * - col2 ) IS NULL
----
-192

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT - 41 * + - 57 DIV - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-779

skipif mysql # not compatible
query I rowsort label-273
SELECT - 41 * + - 57 / - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-779

query I rowsort
SELECT + col1 * - ( + 95 ) AS col1 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT DISTINCT + + 12 - 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-73

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( 38 ) IS NOT NULL
----

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

query I rowsort
SELECT ALL + 98 * - - col2 + + 38 FROM tab2 AS cor0
----
2292
3958
5722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-279
SELECT CAST( + col1 AS SIGNED ) + + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-279
SELECT CAST ( + col1 AS INTEGER ) + + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT col1 * 93 + - col1 DIV + col2 AS col2 FROM tab0
----
1951
7532
93

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT col1 * 93 + - col1 / + col2 AS col2 FROM tab0
----
1951
7532
93

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT DISTINCT + SUM( ALL + col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT + SUM ( ALL + col1 ) AS col2 FROM tab1
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-282
SELECT ALL * FROM tab1 WHERE NULL = + - CAST( NULL AS DECIMAL ) - + col0
----

skipif mysql # not compatible
query III rowsort label-282
SELECT ALL * FROM tab1 WHERE NULL = + - CAST ( NULL AS REAL ) - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT DISTINCT MIN( + 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT MIN ( + 19 ) FROM tab0
----
19

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

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

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

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

query I rowsort
SELECT + 77 - 26 + - 77 FROM tab0 AS cor0
----
-26
-26
-26

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

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

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-290
SELECT DISTINCT SUM( + 94 ) * + CAST( NULL AS SIGNED ) * - - COUNT( * ) / + - 54 FROM tab2 WHERE ( + col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT SUM ( + 94 ) * + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) / + - 54 FROM tab2 WHERE ( + col1 ) IS NULL
----
NULL

query I rowsort
SELECT - 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

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

onlyif mysql # aggregate syntax: 
query II rowsort label-293
SELECT ALL + COUNT( ALL - - col0 ) col2, 47 FROM tab2 AS cor0
----
3
47

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

query I rowsort
SELECT - 78 * + 34 * + + ( 43 ) + - - col1 + + col2 * + 46 - + col1 * - 81 FROM tab2 AS cor0
----
-105874
-105882
-108796

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-295
SELECT DISTINCT - MIN ( ALL - col0 ) col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = 3
----

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

skipif mysql # not compatible
query III rowsort label-297
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND ( CAST ( - - col2 AS INTEGER ) ) / - + 54
----

query I rowsort
SELECT DISTINCT + 75 FROM tab2 WHERE NOT - - col0 IN ( + col0, - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 / col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + 22 AS col2 FROM tab0
----
1782
22
462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT ALL col2 * + CAST( + + col2 AS SIGNED ) AS col0 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL col2 * + CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT DISTINCT 14 * 29 AS col2, - col2 AS col1, - 87 FROM tab0
----
9 values hashing to 4285f0b60736f513b8f946af51ee892d

onlyif mysql # aggregate syntax: 
query II rowsort label-304
SELECT - ( + 79 ) AS col2, COUNT( 53 ) AS col0 FROM tab1
----
-79
3

skipif mysql # not compatible
query II rowsort label-304
SELECT - ( + 79 ) AS col2, COUNT ( 53 ) AS col0 FROM tab1
----
-79
3

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT 95 * col2 * col0 - + + 61 / - - 22 AS col2 FROM tab2 AS cor0 WHERE - 67 * - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 24 AS col0, 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
24
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-308
SELECT ALL + SUM ( + - col0 ) col0 FROM tab1
----
-227

query I rowsort
SELECT ( + - 85 ) * + 41 AS col2 FROM tab2 WHERE col1 * - col2 * - 22 + - + col1 IS NOT NULL
----
-3485
-3485
-3485

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-311
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 76 NOT IN ( - col1, 81 / - 42 + col1, col1, - - CAST( CAST( col1 AS SIGNED ) AS SIGNED ) / 21 * col0, + - 78 )
----

skipif mysql # not compatible
query III rowsort label-311
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 76 NOT IN ( - col1, 81 / - 42 + col1, col1, - - CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) / 21 * col0, + - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT + COUNT( * ) + + SUM( - - 22 ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT + COUNT ( * ) + + SUM ( - - 22 ) AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + ( col0 ) * - 66 AS col1 FROM tab2 AS cor0
----
-3036
-4224
-4950

query II rowsort
SELECT DISTINCT col2, - col1 * 16 AS col2 FROM tab1 AS cor0
----
59
-80
68
-752
96
-224

query I rowsort
SELECT DISTINCT col0 + 17 FROM tab2 cor0
----
63
81
92

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT DISTINCT - col0 * + col0 - + ( - 83 ) + - col2 DIV col1 FROM tab1
----
-2524
-7153
-8199

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - col0 * + col0 - + ( - 83 ) + - col2 / col1 FROM tab1
----
-2524
-7153
-8199

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

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

query I rowsort
SELECT DISTINCT col1 * 62 FROM tab0 WHERE NOT + col0 NOT IN ( + 92, col1, - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 58 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NULL IN ( - ( - - col1 ) + + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IN ( - ( - - col1 ) + + - col0 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-322
SELECT 81 + - 5 AS col1, - COUNT( * ) * - MIN( + col0 ) FROM tab0
----
76
45

skipif mysql # not compatible
query II rowsort label-322
SELECT 81 + - 5 AS col1, - COUNT ( * ) * - MIN ( + col0 ) FROM tab0
----
76
45

query I rowsort
SELECT DISTINCT + 4 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT DISTINCT SUM( DISTINCT + 57 ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-324
SELECT DISTINCT SUM ( DISTINCT + 57 ) FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 WHERE NOT + 35 / + col0 < NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 + - 28 + - + 26 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-327
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-327
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 7 + - 4 - + + col2 - - + col2 BETWEEN + col1 AND ( + - ( - - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + ( + + col0 ) AS col0 FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-331
SELECT - MAX( ( + col0 ) ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

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

query I rowsort
SELECT ALL - 12 * col0 * - - ( - ( col0 ) ) AS col0 FROM tab2
----
25392
49152
67500

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

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

query I rowsort
SELECT ALL col1 * - + col1 FROM tab2
----
-2601
-4489
-5929

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

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

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + 57 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT - col0 AS col0, col0 AS col2, - col0 FROM tab0 cor0
----
9 values hashing to 39e2a05685ffe6555f5b7e29755f03a7

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

query I rowsort
SELECT ALL + 46 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IS NOT NULL
----

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT - 7 * + col1 AS col1, + col2 + - 88 AS col0 FROM tab1 AS cor0
----
-329
-20
-35
-29
-98
8

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT MAX( + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-348
SELECT MAX ( + col1 ) FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-349
SELECT - col0 DIV - 9 FROM tab1
----
10
5
9

skipif mysql # not compatible
query I rowsort label-349
SELECT - col0 / - 9 FROM tab1
----
10
5
9

query I rowsort
SELECT ALL - col0 / - 72 FROM tab1 WHERE NULL NOT BETWEEN + - 10 AND ( + - col2 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT ( - - 5 ) - - + 63 + + 96 DIV - col1 FROM tab0
----
-28
64
67

skipif mysql # not compatible
query I rowsort label-351
SELECT ( - - 5 ) - - + 63 + + 96 / - col1 FROM tab0
----
-28
64
67

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-353
SELECT ALL - + MIN ( ALL - + col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - + 49 * + 42 AS col1 FROM tab1 AS cor0
----
-2058
-2058
-2058

query I rowsort
SELECT + col1 * + + col0 + 54 * + col2 AS col0 FROM tab1 AS cor0
----
3611
5898
7949

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

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > ( + col1 + + col2 * + - 92 * - - 32 )
----

query I rowsort
SELECT DISTINCT + ( - ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-363
SELECT MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL 40 + 1 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
41
59
41
68
41
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-365
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - + 23 * col1 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-365
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - + 23 * col1 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 42 + + 33 AS col2 FROM tab1 AS cor0
----
75

query I rowsort
SELECT DISTINCT - 3 * - 5 * + 21 - + ( 74 ) + + col1 * + col2 + + ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
1585
3437
536

query I rowsort
SELECT ( 20 ) FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT ALL AVG ( ALL + 16 ) FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0 * + col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 * + col1 + - 66 * + 3 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 38 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-372
SELECT ALL * FROM tab1 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-372
SELECT ALL * FROM tab1 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT SUM( col1 ) DIV - 27 AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-374
SELECT SUM ( col1 ) / - 27 AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-375
SELECT ALL col1, col1 + col0 DIV + col1 + + 59 AS col2 FROM tab0
----
1
157
21
84
81
140

skipif mysql # not compatible
query II rowsort label-375
SELECT ALL col1, col1 + col0 / + col1 + + 59 AS col2 FROM tab0
----
1
157
21
84
81
140

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT ( - MAX( + col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT ( - MAX ( + col2 ) ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ALL - COUNT( - col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab1
----
-3

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

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

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

query I rowsort
SELECT - 83 + + - col1 * - 90 AS col1 FROM tab1 AS cor0
----
1177
367
4147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-381
SELECT ALL CAST( NULL AS SIGNED ) + ( col0 ) col0, col0 + - 65 AS col1 FROM tab2 AS cor0
----
NULL
-1
NULL
-19
NULL
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-381
SELECT ALL CAST ( NULL AS INTEGER ) + ( col0 ) col0, col0 + - 65 AS col1 FROM tab2 AS cor0
----
NULL
-1
NULL
-19
NULL
10

query I rowsort
SELECT col2 + - col0 * - - col2 * + 11 + - + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-105536
-7870
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-383
SELECT DISTINCT + 56 + - + CAST( NULL AS SIGNED ) + - - col1 + 96 + col1 * + col2 * col2 * + 48 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT + 56 + - + CAST ( NULL AS INTEGER ) + - - col1 + 96 + col1 * + col2 * col2 * + 48 AS col0 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT COUNT( * ) - - 83 * - + 34 FROM tab1 AS cor0
----
-2819

skipif mysql # not compatible
query I rowsort label-385
SELECT COUNT ( * ) - - 83 * - + 34 FROM tab1 AS cor0
----
-2819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT + col2 - + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> + col2 + - col1 + + CAST( + col0 AS SIGNED ) * col0 + - 18
----

skipif mysql # not compatible
query I rowsort label-386
SELECT + col2 - + - col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> + col2 + - col1 + + CAST ( + col0 AS INTEGER ) * col0 + - 18
----

query I rowsort
SELECT DISTINCT 62 + - 61 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT + 14 - - col2 * + - col1 AS col0 FROM tab0 AS cor0
----
-196
-3793
-85

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

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

query I rowsort
SELECT - 19 + col0 FROM tab2 AS cor0
----
27
45
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-394
SELECT - MIN( ALL - 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-394
SELECT - MIN ( ALL - 45 ) FROM tab2
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-395
SELECT DISTINCT + ( + 42 ) / - - CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + ( + 42 ) / - - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT ALL 23 AS col2, - col2 - col1 FROM tab2
----
23
-117
23
-125
23
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT - MIN( DISTINCT - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-398
SELECT - MIN ( DISTINCT - col2 ) AS col0 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-399
SELECT DISTINCT 13, + 72 DIV col0 AS col2 FROM tab1
----
13
0
13
1

skipif mysql # not compatible
query II rowsort label-399
SELECT DISTINCT 13, + 72 / col0 AS col2 FROM tab1
----
13
0
13
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-401
SELECT - 13 DIV MIN( col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-401
SELECT - 13 / MIN ( col2 ) AS col1 FROM tab1
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-402
SELECT + 93 * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-404
SELECT - CAST( - - col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-404
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-406
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED ) + - - col2 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-406
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) + - - col2 - + CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT DISTINCT + col1 + + + 74 FROM tab1 cor0
----
121
79
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-409
SELECT - col2 + - col0 - + + 17 * + 98 * - CAST( col0 AS SIGNED ) * - + col1 AS col0 FROM tab0 AS cor0
----
-161798
-2024252
-3043879

skipif mysql # not compatible
query I rowsort label-409
SELECT - col2 + - col0 - + + 17 * + 98 * - CAST ( col0 AS INTEGER ) * - + col1 AS col0 FROM tab0 AS cor0
----
-161798
-2024252
-3043879

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 12 * - ( + 51 ) AS col0 FROM tab1
----
612

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT ALL + ( + - COUNT( * ) ) * + COUNT( - col0 ) AS col1, - MIN( ALL 49 ) FROM tab1
----
-9
-49

skipif mysql # not compatible
query II rowsort label-415
SELECT ALL + ( + - COUNT ( * ) ) * + COUNT ( - col0 ) AS col1, - MIN ( ALL 49 ) FROM tab1
----
-9
-49

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

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

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( col0 * - col0 IS NULL )
----
23
40
58

query I rowsort
SELECT + 84 FROM tab2 AS cor0 WHERE col0 * + - 57 + + col0 + - + 98 IS NULL
----

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

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

query I rowsort
SELECT + 71 - + + col2 FROM tab2 AS cor0
----
13
31
48

query I rowsort
SELECT DISTINCT + + 42 + col2 FROM tab1 AS cor0
----
101
110
138

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - col1 <= - + col0 + ( - 50 ) * + 53 / 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-427
SELECT + MAX ( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
47

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

query II rowsort
SELECT + 2 AS col0, 64 FROM tab2 AS cor0
----
2
64
2
64
2
64

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

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

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

query I rowsort
SELECT - - 43 * - col2 FROM tab1 cor0
----
-2537
-2924
-4128

query II rowsort
SELECT - 79, 80 AS col2 FROM tab0 AS cor0
----
-79
80
-79
80
-79
80

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT - + MIN( 95 ) * + 11 AS col0 FROM tab2 AS cor0
----
-1045

skipif mysql # not compatible
query I rowsort label-434
SELECT - + MIN ( 95 ) * + 11 AS col0 FROM tab2 AS cor0
----
-1045

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

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

query I rowsort
SELECT DISTINCT 11 FROM tab1, tab0 AS cor0
----
11

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

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

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

query I rowsort
SELECT + col0 - - + 6 + + col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - + 34 )
----

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

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

query I rowsort
SELECT ALL - 57 * - + col2 FROM tab2 AS cor0
----
1311
2280
3306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 75 col1 FROM tab2 AS cor0
----
3450
4800
5625

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-445
SELECT - + MIN( ALL + - CAST( NULL AS SIGNED ) ) col1, 92 * + - 50 FROM tab2 cor0
----
NULL
-4600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-445
SELECT - + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) col1, 92 * + - 50 FROM tab2 cor0
----
NULL
-4600

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

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

query I rowsort
SELECT ALL - col2 * - 46 * - + col2 AS col2 FROM tab0 AS cor0
----
-101614
-450846
-4600

query I rowsort
SELECT DISTINCT - - ( - col0 ) * 73 AS col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT MAX( ALL + col0 ) + + 3 + + ( ( - 78 ) ) col0 FROM tab0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-450
SELECT DISTINCT MAX ( ALL + col0 ) + + 3 + + ( ( - 78 ) ) col0 FROM tab0
----
22

query III rowsort
SELECT * FROM tab1 WHERE ( 19 ) >= col1
----
51
14
96
85
5
59

query I rowsort
SELECT ALL - 45 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT + COUNT( * ) FROM tab2 WHERE + 48 + 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-453
SELECT + COUNT ( * ) FROM tab2 WHERE + 48 + 78 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT DISTINCT + COUNT( * ) * 86 AS col1 FROM tab0
----
258

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT + COUNT ( * ) * 86 AS col1 FROM tab0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + CAST( - col1 AS SIGNED ) + + col1 * col0 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

skipif mysql # not compatible
query I rowsort label-455
SELECT + CAST ( - col1 AS INTEGER ) + + col1 * col0 AS col2 FROM tab2 AS cor0
----
2295
4851
4958

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-458
SELECT ALL + 24 + COUNT( * ) * - - 39 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-458
SELECT ALL + 24 + COUNT ( * ) * - - 39 FROM tab1 AS cor0
----
141

query I rowsort
SELECT DISTINCT col2 + + - ( - + col2 ) AS col2 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT col1 * + + 78 - + - col2 AS col0 FROM tab0
----
1648
177
6365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 84 * col2 + + col1 col2 FROM tab2 cor0
----
-134323
-282509
-44385

query I rowsort
SELECT - + 79 AS col0 FROM tab1 cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + + 59 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
59

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

query I rowsort
SELECT ALL + ( - + col2 ) AS col1 FROM tab0
----
-10
-47
-99

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

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

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

query I rowsort
SELECT ALL col0 * 86 FROM tab1
----
4386
7310
7826

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

query II rowsort
SELECT DISTINCT - - col1 AS col0, 4 FROM tab2 AS cor0
----
51
4
67
4
77
4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT MIN( - 18 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT MIN ( - 18 ) FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + 91 ) <= - 63 - - col0 + + col0
----
15
81
47

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

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

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

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 / - + 89 FROM tab2
----
NULL

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

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

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

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

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

query II rowsort
SELECT ALL + + col0 * col1 + - - 87 + col2 + + col0 * + + col0 AS col0, + col2 + + col2 AS col0 FROM tab0 AS cor0
----
1574
94
9493
20
9692
198

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

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

query I rowsort
SELECT DISTINCT + col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
144
147
159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT COUNT( DISTINCT 27 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-486
SELECT COUNT ( DISTINCT 27 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 90 + + col2 * + col0 * + 63 AS col2 FROM tab2
----
161370
274140
66744

onlyif mysql # DIV for integer division: 
query II rowsort label-488
SELECT DISTINCT + col0 DIV + 75, col2 + - 57 AS col1 FROM tab1
----
0
39
1
11
1
2

skipif mysql # not compatible
query II rowsort label-488
SELECT DISTINCT + col0 / + 75, col2 + - 57 AS col1 FROM tab1
----
0
39
1
11
1
2

onlyif mysql # aggregate syntax: 
query II rowsort label-489
SELECT SUM( - col2 ) AS col2, 53 AS col0 FROM tab0
----
-156
53

skipif mysql # not compatible
query II rowsort label-489
SELECT SUM ( - col2 ) AS col2, 53 AS col0 FROM tab0
----
-156
53

query I rowsort
SELECT DISTINCT + ( + col2 ) - - col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + ( - + 30 ) - - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-491
SELECT + ( - + 30 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT - + ( MIN( DISTINCT - 98 ) ) / + CAST( NULL AS SIGNED ) * + MAX( + - 36 ) * - 95 * + + 51 - + 76 + ( 27 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT - + ( MIN ( DISTINCT - 98 ) ) / + CAST ( NULL AS INTEGER ) * + MAX ( + - 36 ) * - 95 * + + 51 - + 76 + ( 27 ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-493
SELECT col0 + - + 2 DIV + + col0 AS col1, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-493
SELECT col0 + - + 2 / + + col0 AS col1, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

query I rowsort
SELECT DISTINCT col0 + + 81 AS col2 FROM tab0
----
168
178
96

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

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

query I rowsort
SELECT - - 89 * - 2 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 37bcc53ef7633ee53e59d399bacb8ffb

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

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

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

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

query I rowsort
SELECT ALL 48 * - col1 AS col2 FROM tab0 AS cor0
----
-1008
-3888
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-501
SELECT ALL + + col1 DIV 57 DIV col2 AS col1, 32 FROM tab2 AS cor0
----
0
32
0
32
0
32

skipif mysql # not compatible
query II rowsort label-501
SELECT ALL + + col1 / 57 / col2 AS col1, 32 FROM tab2 AS cor0
----
0
32
0
32
0
32

query I rowsort
SELECT DISTINCT + 64 * col0 FROM tab0 AS cor0
----
5568
6208
960

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT - COUNT( * ) * - 7 AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-507
SELECT - COUNT ( * ) * - 7 AS col0 FROM tab2
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT ALL - 89 DIV 45 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - 89 / 45 AS col0 FROM tab0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL + - col0 * + col0 FROM tab2 WHERE NULL <= - 18
----

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

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

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

query II rowsort
SELECT ALL - ( + col1 ) AS col0, - ( - 2 ) FROM tab2 AS cor0
----
-51
2
-67
2
-77
2

query I rowsort
SELECT - - 24 AS col2 FROM tab2 AS cor0
----
24
24
24

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 - 31 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

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

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

query I rowsort
SELECT 60 AS col0 FROM tab1 cor0
----
60
60
60

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

query I rowsort
SELECT + + 48 FROM tab0 cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT 82 DIV col1 AS col2 FROM tab1 AS cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-524
SELECT 82 / col1 AS col2 FROM tab1 AS cor0
----
1
16
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 81 <= - ( - - col2 ) / 10 - - col1 * + - 87 * + - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - col0 - - ( + 85 ) FROM tab1
----
-6
0
34

query I rowsort
SELECT ALL 14 + + - 93 AS col0 FROM tab0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE col0 IS NULL
----

query II rowsort
SELECT ALL - 64, col1 AS col2 FROM tab0
----
-64
1
-64
21
-64
81

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-533
SELECT DISTINCT + col2 AS col0, - col1 * 58 DIV - ( 20 ) + + col2 DIV + col2 AS col0 FROM tab2 AS cor0
----
23
148
40
224
58
195

skipif mysql # not compatible
query II rowsort label-533
SELECT DISTINCT + col2 AS col0, - col1 * 58 / - ( 20 ) + + col2 / + col2 AS col0 FROM tab2 AS cor0
----
23
148
40
224
58
195

query I rowsort
SELECT + col0 * + 7 AS col1 FROM tab2 AS cor0
----
322
448
525

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

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

query I rowsort
SELECT - 71 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

onlyif mysql # DIV for integer division: 
query I rowsort label-539
SELECT ALL - 69 * + col0 DIV - - col0 AS col0 FROM tab1
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-539
SELECT ALL - 69 * + col0 / - - col0 AS col0 FROM tab1
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT MIN( DISTINCT - - col0 ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-540
SELECT MIN ( DISTINCT - - col0 ) col0 FROM tab2
----
46

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

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

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL - col2 * - col2, col0 FROM tab0 AS cor0
----
100
87
2209
15
9801
97

query I rowsort
SELECT ALL - 75 * + - 62 + + + col1 * + col1 - - 91 * + col1 AS col0 FROM tab2 AS cor0
----
11892
15236
17586

query I rowsort
SELECT DISTINCT + col0 * + - 40 * - col2 FROM tab1 AS cor0
----
195840
200600
247520

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

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

query I rowsort
SELECT + 40 * - ( col2 ) FROM tab2
----
-1600
-2320
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col0 FROM tab0
----
12
12
12

query I rowsort
SELECT - 7 * - 17 AS col2 FROM tab2
----
119
119
119

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

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

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

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

skipif mysql # not compatible
query I rowsort label-552
SELECT - COUNT ( * ) / + 27 AS col1 FROM tab2
----
0

query II rowsort
SELECT ALL + col1 * col1 * + col0, col1 AS col0 FROM tab0
----
38367
21
97
1
98415
81

onlyif mysql # aggregate syntax: 
query II rowsort label-554
SELECT + 36 col1, - MAX( DISTINCT - + ( - col1 ) ) FROM tab1
----
36
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-554
SELECT + 36 col1, - MAX ( DISTINCT - + ( - col1 ) ) FROM tab1
----
36
-47

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 + + + col1 >= NULL
----

query I rowsort
SELECT ALL + col2 + - 55 FROM tab2 cor0
----
-15
-32
3

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

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

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

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

query I rowsort
SELECT ALL - 49 * - ( col1 ) FROM tab0
----
1029
3969
49

query I rowsort
SELECT - col1 * 77 AS col0 FROM tab0
----
-1617
-6237
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT + COUNT( * ) * 35 AS col1 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-563
SELECT + COUNT ( * ) * 35 AS col1 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT ALL - COUNT( 40 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - COUNT ( 40 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL ( + COUNT( * ) ) * + 29 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL ( + COUNT ( * ) ) * + 29 FROM tab2
----
87

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

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - COUNT ( col2 ) FROM tab0
----
-3

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

query I rowsort
SELECT col2 * 29 FROM tab1
----
1711
1972
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT 79 * + COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-569
SELECT 79 * + COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
237

query I rowsort
SELECT col2 * 85 AS col0 FROM tab0
----
3995
8415
850

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / - col1 = 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + 23 + + ( + COUNT ( * ) ) FROM tab1
----
26

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

query I rowsort
SELECT - 51 + - 18 FROM tab0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT MAX( 3 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-576
SELECT MAX ( 3 ) FROM tab0
----
3

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( col2 ) ) BETWEEN ( NULL ) AND ( - 17 + col0 )
----
15
81
47
97
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab0 WHERE - col0 + 64 NOT IN ( col2 )
----
-9

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE - col0 + 64 NOT IN ( col2 )
----
-9

query I rowsort
SELECT DISTINCT + col2 + 94 FROM tab2
----
117
134
152

onlyif mysql # DIV for integer division: 
query I rowsort label-585
SELECT col0 DIV + col1 AS col0 FROM tab1 WHERE NOT + 71 IS NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-585
SELECT col0 / + col1 AS col0 FROM tab1 WHERE NOT + 71 IS NULL
----
1
17
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL - MAX( + col0 ) AS col2 FROM tab0 WHERE ( - 12 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL - MAX ( + col0 ) AS col2 FROM tab0 WHERE ( - 12 ) IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-590
SELECT - CAST( NULL AS DECIMAL ) * 39 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT DISTINCT ( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT DISTINCT - 92 FROM tab2 cor0 CROSS JOIN tab0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0
----
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT col0 <= ( + col1 )
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / + 94 - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT + 18 + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-598
SELECT + 18 + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
27

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL MAX( ALL col0 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL MAX ( ALL col0 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT 29 * + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
5365

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT 29 * + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
5365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 77 * col1 col0 FROM tab1 AS cor0
----
-1078
-3619
-385

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + - 80 * COUNT( * ) FROM tab1 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + - 80 * COUNT ( * ) FROM tab1 cor0
----
-240

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

query I rowsort
SELECT DISTINCT col0 - - col2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
104
133
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 4 col2 FROM tab2 AS cor0
----
-204
-268
-308

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col1 * ( + ( + col0 ) ) FROM tab0
----
18270
57105
9603

query I rowsort
SELECT ALL + + col1 * - 86 * + col1 FROM tab2 AS cor0
----
-223686
-386054
-509894

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > NULL AND NOT NULL NOT BETWEEN ( - col1 ) AND 52 + ( - 9 + col0 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT - col0 + + - 50 AS col2 FROM tab1 AS cor0
----
-101
-135
-141

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 90 * - 56 - - 46 * ( - col2 ) col0 FROM tab2 AS cor0
----
-232898
-324400
-380668

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

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

query I rowsort
SELECT - col0 - ( - ( + 52 ) ) * + col2 AS col1 FROM tab0 AS cor0
----
2429
433
5051

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-624
SELECT + - CAST( NULL AS DECIMAL ) * + 87 * + COUNT( * ) - + MAX( DISTINCT + ( - 55 ) ) * COUNT( * ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-624
SELECT + - CAST ( NULL AS REAL ) * + 87 * + COUNT ( * ) - + MAX ( DISTINCT + ( - 55 ) ) * COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - + ( - 50 ) * col1 col0 FROM tab1 AS cor0
----
2441
335
751

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT 10 * - - col0 / col0 NOT BETWEEN - 34 * + 40 AND + 62
----
-51
-67
-77

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + 86 + - - 39 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-630
SELECT col2 * - CAST ( - 25 AS REAL ) + - CAST ( NULL AS REAL ) - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 76 AS col1 FROM tab1 cor0 WHERE NOT ( - col1 ) - col2 * col0 NOT IN ( col0 * col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 + + col0 * 59 ) NOT IN ( 97 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE ( col0 + + - 17 ) < ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + - col2 + 20 * 90 * 62 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + + + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL 95 - col2 + col1 AS col1 FROM tab0
----
-3
106
129

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL - SUM( ALL - 69 ) AS col1 FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - SUM ( ALL - 69 ) AS col1 FROM tab0
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-638
SELECT COUNT( 41 ) DIV - 92 AS col1 FROM tab1 WHERE NOT col1 * + - col0 > col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-638
SELECT COUNT ( 41 ) / - 92 AS col1 FROM tab1 WHERE NOT col1 * + - col0 > col2 * - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-639
SELECT ALL * FROM tab0 WHERE + 68 NOT IN ( + 29 / CAST( ( + 93 ) AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-639
SELECT ALL * FROM tab0 WHERE + 68 NOT IN ( + 29 / CAST ( ( + 93 ) AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL + - ( SUM( 0 ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + - ( SUM ( 0 ) ) FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 94 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / + - 88 >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-645
SELECT - col1 col0 FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) IN ( - - 15 )
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-645
SELECT - col1 col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) IN ( - - 15 )
----
-14
-47
-5

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

query I rowsort
SELECT ALL col0 * + 75 * - col2 * col0 AS col0 FROM tab2 AS cor0
----
-12288000
-24468750
-3650100

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL 73 + 71 + COUNT( col1 ) FROM tab1 cor0
----
147

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL 73 + 71 + COUNT ( col1 ) FROM tab1 cor0
----
147

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 82 * - + col0 * - + 85 + - 89 + - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT ALL - COUNT( * ) * + - COUNT( * ) FROM tab1, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL - COUNT ( * ) * + - COUNT ( * ) FROM tab1, tab2 AS cor0
----
81

query I rowsort
SELECT - 60 + 68 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT SUM( DISTINCT - col2 ) * - + 43 AS col1 FROM tab2
----
5203

skipif mysql # not compatible
query I rowsort label-655
SELECT SUM ( DISTINCT - col2 ) * - + 43 AS col1 FROM tab2
----
5203

query I rowsort
SELECT DISTINCT col2 + + + 10 AS col2 FROM tab0
----
109
20
57

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 * + - col2 * + col0 + col0 ) < ( 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 32 * - 92 AS col1 FROM tab2
----
-2944

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN 48 AND + 14 * - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 55 + 38 - col0 FROM tab2 AS cor0
----
18
29
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + 40 col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-662
SELECT - 99 - + col2, - col2 DIV col1 AS col0 FROM tab0
----
-109
0
-146
0
-198
-99

skipif mysql # not compatible
query II rowsort label-662
SELECT - 99 - + col2, - col2 / col1 AS col0 FROM tab0
----
-109
0
-146
0
-198
-99

query I rowsort
SELECT ALL 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-665
SELECT ALL - MAX( - CAST( col0 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-665
SELECT ALL - MAX ( - CAST ( col0 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
51

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

skipif mysql # not compatible
query III rowsort label-666
SELECT * FROM tab2 AS cor0 WHERE ( + col0 + + CAST ( NULL AS INTEGER ) + ( - + col2 ) / + 92 * + - 15 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - ( 78 ) + + col0 AS col1 FROM tab0 AS cor0
----
-48
116
96

query I rowsort
SELECT ALL + + 72 AS col1 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query II rowsort
SELECT + ( + - col1 ) AS col0, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 29 >= + 74
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + 90 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-673
SELECT + + col0 DIV - col2 + - col2 FROM tab0 AS cor0
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-673
SELECT + + col0 / - col2 + - col2 FROM tab0 AS cor0
----
-18
-47
-99

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-676
SELECT DISTINCT - col1 DIV + + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - col1 / + + col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-677
SELECT ALL + ( - CAST( - 35 AS SIGNED ) ) AS col1, col1 * - - 31 * - - col1 AS col1 FROM tab0
----
35
13671
35
203391
35
31

skipif mysql # not compatible
query II rowsort label-677
SELECT ALL + ( - CAST ( - 35 AS INTEGER ) ) AS col1, col1 * - - 31 * - - col1 AS col1 FROM tab0
----
35
13671
35
203391
35
31

query I rowsort
SELECT DISTINCT + + 38 AS col1 FROM tab0 cor0
----
38

query I rowsort
SELECT ALL - 29 AS col1 FROM tab2 AS cor0 WHERE ( + col2 + + col1 * - - col1 * + ( + + col2 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT + 21 + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - 25 + - col2 > - - col1
----
24

skipif mysql # not compatible
query I rowsort label-680
SELECT + 21 + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - 25 + - col2 > - - col1
----
24

query I rowsort
SELECT - 4 * - 90 AS col0 FROM tab1
----
360
360
360

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT DISTINCT - COUNT( ALL + 98 ) + + 20 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT - COUNT ( ALL + 98 ) + + 20 FROM tab2 AS cor0
----
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-686
SELECT DISTINCT CAST( 93 AS SIGNED ) + col2 - - 57 * - col0 FROM tab2 AS cor0
----
-2506
-3515
-4124

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT CAST ( 93 AS INTEGER ) + col2 - - 57 * - col0 FROM tab2 AS cor0
----
-2506
-3515
-4124

query II rowsort
SELECT DISTINCT - col0, col1 + col1 * 47 AS col2 FROM tab2
----
-46
2448
-64
3696
-75
3216

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

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

query I rowsort
SELECT - + col2 * + col1 + 59 AS col2 FROM tab0 cor0
----
-151
-3748
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT DISTINCT + col0 + col1 DIV + col0 + + + ( - ( + col2 ) ) * + 39 - - 6 FROM tab0 AS cor0 WHERE 9 IS NOT NULL
----
-1807
-297
-3758

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT + col0 + col1 / + col0 + + + ( - ( + col2 ) ) * + 39 - - 6 FROM tab0 AS cor0 WHERE 9 IS NOT NULL
----
-1807
-297
-3758

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 + + col1 - + col0 * col2 + + col2 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 29 + + col0 col0, 72 FROM tab2
----
104
72
75
72
93
72

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

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT ALL 24, SUM( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
24
-195

skipif mysql # not compatible
query II rowsort label-695
SELECT ALL 24, SUM ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
24
-195

query I rowsort
SELECT ALL - 35 - col2 FROM tab0 AS cor0
----
-134
-45
-82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL COUNT( * ) + 96 + + 72 * - - 92 * MIN( + 20 ) AS col2 FROM tab1 AS cor0
----
132579

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL COUNT ( * ) + 96 + + 72 * - - 92 * MIN ( + 20 ) AS col2 FROM tab1 AS cor0
----
132579

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT DISTINCT + MIN( ALL + 50 ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT + MIN ( ALL + 50 ) AS col1 FROM tab1 AS cor0
----
50

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 / - col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-703
SELECT ( COUNT ( * ) ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 61, col0 * col1 col1 FROM tab1
----
-3111
714
-5185
425
-5551
4277

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 12 - - + 23 + + - 35 + + col2 > - + 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 98 < NULL
----

query I rowsort
SELECT DISTINCT - 32 * col0 AS col0 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 > - - 55
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-709
SELECT + col2, CAST( NULL AS SIGNED ) - - 84 + - + col2 AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-709
SELECT + col2, CAST ( NULL AS INTEGER ) - - 84 + - + col2 AS col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT - 25 AS col1, + col1 * col0 - - - 93 + 35 FROM tab1
----
-25
367
-25
4219
-25
656

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

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

query I rowsort
SELECT ALL + + col2 * 27 AS col1 FROM tab0 AS cor0 WHERE - 82 > NULL
----

query I rowsort
SELECT - + col1 * + 20 + col1 AS col1 FROM tab2 AS cor0
----
-1273
-1463
-969

query I rowsort
SELECT + col1 / + + col1 AS col2 FROM tab1 AS cor0 WHERE col2 * + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT COUNT( * ) + + 4 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT COUNT ( * ) + + 4 FROM tab0 cor0
----
7

query I rowsort
SELECT ALL + - col0 + - 81 AS col0 FROM tab0 AS cor0
----
-168
-178
-96

query I rowsort
SELECT - col2 + - + 59 FROM tab2 AS cor0
----
-117
-82
-99

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

query I rowsort
SELECT + - 64 + col1 AS col1 FROM tab0 AS cor0
----
-43
-63
17

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

query I rowsort
SELECT DISTINCT 20 + - 30 AS col2 FROM tab1
----
-10

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 71 ) <= + 76 / + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - 34 AS col2 FROM tab2
----
-1360
-1972
-782

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) BETWEEN NULL AND + 46 OR + + 37 / - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT - 19 * + COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-726
SELECT - 19 * + COUNT ( * ) FROM tab0
----
-57

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

skipif mysql # not compatible
query I rowsort label-727
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) FROM tab2
----
-9

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

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

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

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + 3 * + - CAST ( NULL AS INTEGER ) + 99 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT 67 AS col1 FROM tab1 cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-733
SELECT - 20 / + col1 AS col0, 8 - + CAST( - CAST( + - 44 AS SIGNED ) AS SIGNED ) - - - col1 FROM tab2 AS cor0 WHERE NOT col0 * - - col2 = NULL
----

skipif mysql # not compatible
query II rowsort label-733
SELECT - 20 / + col1 AS col0, 8 - + CAST ( - CAST ( + - 44 AS INTEGER ) AS INTEGER ) - - - col1 FROM tab2 AS cor0 WHERE NOT col0 * - - col2 = NULL
----

query I rowsort
SELECT + - 28 * + col2 FROM tab0 AS cor0
----
-1316
-2772
-280

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

query I rowsort
SELECT DISTINCT 8 * ( - col0 ) FROM tab0 cor0
----
-120
-696
-776

query I rowsort
SELECT - col1 * + 67 AS col2 FROM tab2 AS cor0
----
-3417
-4489
-5159

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

query I rowsort
SELECT - - 59 * - + col1 AS col0 FROM tab0 AS cor0
----
-1239
-4779
-59

query I rowsort
SELECT + col1 * + - 34 FROM tab2 AS cor0
----
-1734
-2278
-2618

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

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT + col0 / - col2 AS col2 FROM tab1 AS cor0
----
-1
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-744
SELECT - CAST( - col1 AS SIGNED ) * - col2 DIV ( + + col2 ) * + - col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-744
SELECT - CAST ( - col1 AS INTEGER ) * - col2 / ( + + col2 ) * + - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL + 23 * col1 AS col0 FROM tab0
----
1863
23
483

query III rowsort
SELECT ALL * FROM tab1 WHERE + 61 * + - 96 + - 74 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - + col1 * - 2 FROM tab2 AS cor0
----
102
134
154

query II rowsort
SELECT ALL - 9, - col2 * 7 + - - 31 * - + col1 * + + col1 + 85 AS col0 FROM tab1 AS cor0
----
-9
-1103
-9
-6663
-9
-68870

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-750
SELECT DISTINCT + ( SUM ( + col1 ) ) col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL 88 * 98 FROM tab1 AS cor0
----
8624
8624
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT SUM( - col2 ) * + + 2 * + ( 96 ) AS col1 FROM tab0 AS cor0
----
-29952

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT SUM ( - col2 ) * + + 2 * + ( 96 ) AS col1 FROM tab0 AS cor0
----
-29952

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-754
SELECT col1 AS col1, + 72 DIV - col1 FROM tab0 AS cor0
----
1
-72
21
-3
81
0

skipif mysql # not compatible
query II rowsort label-754
SELECT col1 AS col1, + 72 / - col1 FROM tab0 AS cor0
----
1
-72
21
-3
81
0

query I rowsort
SELECT + col0 * - + 77 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # DIV for integer division: 
query I rowsort label-756
SELECT DISTINCT - 94 DIV 69 * + col2 AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - 94 / 69 * + col2 AS col0 FROM tab0 cor0
----
-10
-47
-99

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT + CAST( NULL AS SIGNED ) + - 71 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) < + + 30
----

skipif mysql # not compatible
query I rowsort label-759
SELECT + CAST ( NULL AS INTEGER ) + - 71 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) < + + 30
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-761
SELECT ALL + ( + ( - - col0 ) ) + - col2 + 71, - col1 DIV col0 * - 65 * + + 81 AS col0 FROM tab0 AS cor0
----
148
0
39
26325
69
0

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL + ( + ( - - col0 ) ) + - col2 + 71, - col1 / col0 * - 65 * + + 81 AS col0 FROM tab0 AS cor0
----
148
0
39
26325
69
0

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

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

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE - 16 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + COUNT( * ) FROM tab2 WHERE ( + 80 + - 50 * - + 39 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-764
SELECT + COUNT ( * ) FROM tab2 WHERE ( + 80 + - 50 * - + 39 ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-765
SELECT ALL + COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1 WHERE + 73 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1 WHERE + 73 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-766
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-766
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( + - CAST ( - col2 AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT COUNT( * ) + + - 55 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-768
SELECT COUNT ( * ) + + - 55 FROM tab1
----
-52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT DISTINCT - COUNT( * ) - + 73 AS col1 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-770
SELECT DISTINCT - COUNT ( * ) - + 73 AS col1 FROM tab2 AS cor0
----
-76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT - col0 ) col1 FROM tab1 AS cor0
----
-54

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + 44 col1, col1 FROM tab0 cor0 WHERE NULL IS NULL
----
3828
21
4268
1
660
81

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + 57 col1 FROM tab1
----
-1995
-1995
-1995

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT + COUNT( * ) * 72 * COUNT( * ) AS col2 FROM tab1
----
648

skipif mysql # not compatible
query I rowsort label-779
SELECT + COUNT ( * ) * 72 * COUNT ( * ) AS col2 FROM tab1
----
648

query I rowsort
SELECT - col1 * - + col0 + 62 FROM tab0 AS cor0
----
1277
159
1889

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-782
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + ( + CAST( - - col2 AS DECIMAL ) ) * + + col1
----

skipif mysql # not compatible
query III rowsort label-782
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + ( + CAST ( - - col2 AS REAL ) ) * + + col1
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( 8 + + - col1 IN ( - col0 - col0 + - col1 ) ) )
----

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

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - col2 = - - col0 + - 21
----
51
85
91

query I rowsort
SELECT + col1 * 44 FROM tab2
----
2244
2948
3388

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-789
SELECT CAST( NULL AS SIGNED ) / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT CAST ( NULL AS INTEGER ) / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 20 * + + col1 AS col2 FROM tab2
----
1020
1340
1540

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

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT - 70 DIV + col2 + 42 FROM tab2 AS cor0
----
39
41
41

skipif mysql # not compatible
query I rowsort label-792
SELECT - 70 / + col2 + 42 FROM tab2 AS cor0
----
39
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT ALL COUNT( * ) * - + ( + 30 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL COUNT ( * ) * - + ( + 30 ) FROM tab0 AS cor0
----
-90

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

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

query I rowsort
SELECT ALL + col2 + col2 + col2 + + 75 AS col2 FROM tab2 AS cor0
----
144
195
249

query I rowsort
SELECT DISTINCT 4 * - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
184
256
300

onlyif mysql # DIV for integer division: 
query I rowsort label-798
SELECT DISTINCT - col0 DIV col0 + col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT - col0 / col0 + col1 FROM tab2
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT ALL + col2 - - col1 * CAST( - - CAST( - + col2 AS SIGNED ) AS SIGNED ) * - 53 AS col1 FROM tab2
----
163280
206016
62192

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL + col2 - - col1 * CAST ( - - CAST ( - + col2 AS INTEGER ) AS INTEGER ) * - 53 AS col1 FROM tab2
----
163280
206016
62192

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

query I rowsort
SELECT ALL - col1 * + + col2 * - col1 + ( + col0 ) + 43 FROM tab2
----
237267
260480
59912

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT DISTINCT + 87 - + COUNT( * ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT + 87 - + COUNT ( * ) AS col1 FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-803
SELECT CAST( - ( + col0 ) AS SIGNED ) * - col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-803
SELECT CAST ( - ( + col0 ) AS INTEGER ) * - col1 FROM tab2
----
2346
4928
5025

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

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

query I rowsort
SELECT + - col1 * - + 96 + - - 92 - - col0 + - col2 + - + ( - - col2 ) * + ( + col0 ) FROM tab2 AS cor0
----
2191
3953
4948

query I rowsort
SELECT ( ( 45 ) ) FROM tab0
----
45
45
45

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

query I rowsort
SELECT - col0 * + 32 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2784
-3104
-480

query I rowsort
SELECT ALL + - 12 * + 64 * + col2 FROM tab0 AS cor0
----
-36096
-76032
-7680

query I rowsort
SELECT + col1 * - - 22 FROM tab0 AS cor0
----
1782
22
462

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

query I rowsort
SELECT + 83 * - - 81 + col0 FROM tab0 cor0
----
6738
6810
6820

query I rowsort
SELECT ( - ( - 23 ) ) * + 80 * - 96 FROM tab0 AS cor0
----
-176640
-176640
-176640

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

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT 40 * COUNT( DISTINCT + + 72 ) AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-815
SELECT 40 * COUNT ( DISTINCT + + 72 ) AS col0 FROM tab1
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-816
SELECT DISTINCT * FROM tab0 WHERE + + CAST( NULL AS DECIMAL ) = - + col2 + - - col0 + + col0 * + 57
----

skipif mysql # not compatible
query III rowsort label-816
SELECT DISTINCT * FROM tab0 WHERE + + CAST ( NULL AS REAL ) = - + col2 + - - col0 + + col0 * + 57
----

query II rowsort
SELECT DISTINCT + 97 * - col1 AS col0, - 6 - + + 53 FROM tab0 WHERE NOT ( + col0 > + col1 )
----
-7857
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT ALL CAST( + 69 AS SIGNED ) AS col1 FROM tab2 WHERE + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL CAST ( + 69 AS INTEGER ) AS col1 FROM tab2 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT ALL MAX( DISTINCT - - 45 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL MAX ( DISTINCT - - 45 ) FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-820
SELECT CAST( AVG ( DISTINCT col1 ) AS SIGNED ) * - 95 col1 FROM tab2 WHERE NOT ( - + col2 ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-820
SELECT CAST ( AVG ( DISTINCT col1 ) AS INTEGER ) * - 95 col1 FROM tab2 WHERE NOT ( - + col2 ) NOT IN ( col2 )
----
NULL

query I rowsort
SELECT ALL - - 38 AS col2 FROM tab1 AS cor0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT ( col0 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT col1 * - - 65 + + col2 AS col1 FROM tab0 AS cor0
----
1375
164
5312

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

query I rowsort
SELECT ALL col0 FROM tab0 cor0 WHERE NOT 55 = ( col0 )
----
15
87
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT + + 52 DIV col1 + - col0 AS col1 FROM tab2 AS cor0
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-827
SELECT + + 52 / col1 + - col0 AS col1 FROM tab2 AS cor0
----
-45
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT ALL COUNT( * ) * 2 + 75 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-828
SELECT ALL COUNT ( * ) * 2 + 75 FROM tab1 AS cor0
----
81

query I rowsort
SELECT + 76 AS col0 FROM tab2 AS cor0 WHERE NULL >= col2 * + ( - + col2 )
----

query I rowsort
SELECT + + 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT - 43 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-832
SELECT ALL COUNT( * ) + - COUNT( * ) + - COUNT( + 18 ) AS col2 FROM tab1 WHERE NOT - + col2 + + + 61 = CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL COUNT ( * ) + - COUNT ( * ) + - COUNT ( + 18 ) AS col2 FROM tab1 WHERE NOT - + col2 + + + 61 = CAST ( NULL AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT DISTINCT + col0 * col2 * + col2 DIV + col2 + - 46 FROM tab2
----
1012
2514
4304

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT + col0 * col2 * + col2 / + col2 + - 46 FROM tab2
----
1012
2514
4304

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

onlyif mysql # DIV for integer division: 
query I rowsort label-835
SELECT + 94 DIV + - col0 + 5 AS col1 FROM tab2 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-835
SELECT + 94 / + - col0 + 5 AS col1 FROM tab2 AS cor0
----
3
4
4

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

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

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

skipif mysql # not compatible
query I rowsort label-838
SELECT - COUNT ( * ) - - - COUNT ( * ) FROM tab1 AS cor0
----
-6

query II rowsort
SELECT col2 / 73, - col2 * + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - + 28 ) + + col1 AS col0 FROM tab2
----
23
39
49

query III rowsort
SELECT * FROM tab0 WHERE - - col1 + + 52 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT DISTINCT 11 - + + 59 DIV - - ( + col1 ) FROM tab2
----
10
11

skipif mysql # not compatible
query I rowsort label-842
SELECT DISTINCT 11 - + + 59 / - - ( + col1 ) FROM tab2
----
10
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 * - col1 + - + col1 * + + 47 col0 FROM tab1
----
-151
-366
68

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

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

query I rowsort
SELECT 10 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-848
SELECT + + col0 AS col2, + col0 * + 32 * + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

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

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

query I rowsort
SELECT DISTINCT ( 8 ) FROM tab2
----
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 JOIN tab2 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - 65 + + 70 col1 FROM tab0 AS cor0
----
1045
5725
6375

query I rowsort
SELECT + ( - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

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

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

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

query I rowsort
SELECT 70 * - col0 FROM tab1 AS cor0
----
-3570
-5950
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT DISTINCT SUM( + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-857
SELECT DISTINCT SUM ( + col1 ) FROM tab2 AS cor0
----
195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT ALL + 70 * - + COUNT( * ) FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL + 70 * - + COUNT ( * ) FROM tab0
----
-210

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

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

query I rowsort
SELECT ALL + + 83 AS col0 FROM tab0 WHERE - col1 BETWEEN - 26 AND - - col2 / col0
----
83
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT ( + MAX( DISTINCT - col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-864
SELECT ( + MAX ( DISTINCT - col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT DISTINCT COUNT( * ) col0, + MAX( col0 ) + - + 81 AS col1 FROM tab1
----
3
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-865
SELECT DISTINCT COUNT ( * ) col0, + MAX ( col0 ) + - + 81 AS col1 FROM tab1
----
3
10

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

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

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

skipif mysql # not compatible
query I rowsort label-867
SELECT + col2 / - col1 * - col0 * col0 * + + col2 * + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col2 + + - col0 FROM tab1 AS cor0
----
-144
-147
-159

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

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + COUNT ( * ) + COUNT ( * ) / - - SUM ( - 3 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 - + col0 * + 76 * + col0 col1 FROM tab0
----
-17115
-575259
-715099

query I rowsort
SELECT - 1 + col2 AS col2 FROM tab1
----
58
67
95

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

query I rowsort
SELECT - + 3 AS col2 FROM tab2 WHERE NULL IS NULL
----
-3
-3
-3

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

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - - COUNT ( * ) FROM tab0 cor0
----
3

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 col2 FROM tab1 AS cor0 WHERE col0 <> - col2 / + + ( col2 ) + + - col2 + - + 52
----
-51
-85
-91

query I rowsort
SELECT + - 20 * + col2 FROM tab2 cor0
----
-1160
-460
-800

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-879
SELECT - col0 - 54 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT - col0 - 54 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-881
SELECT AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-881
SELECT AVG ( + CAST ( NULL AS REAL ) ) FROM tab2, tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 13 * + col1 FROM tab1 AS cor0
----
182
611
65

query II rowsort
SELECT + 80 * - col0 + - + 24, col2 FROM tab1 AS cor0
----
-4104
96
-6824
59
-7304
68

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT - col2 * - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-889
SELECT - col2 * - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-1058
-2560
-4350

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

onlyif mysql # aggregate syntax: 
query II rowsort label-891
SELECT ALL 74 * - COUNT( * ) * + + COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
-666
3

skipif mysql # not compatible
query II rowsort label-891
SELECT ALL 74 * - COUNT ( * ) * + + COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-666
3

onlyif mysql # DIV for integer division: 
query I rowsort label-892
SELECT ALL - 8 DIV - col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - 8 / - col0 AS col0 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT ALL col2 * 8 * col2 AS col0 FROM tab0
----
17672
78408
800

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

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

query I rowsort
SELECT DISTINCT 9 / + 44 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 )
----

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-902
SELECT CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT 99 * COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-903
SELECT 99 * COUNT ( * ) FROM tab0
----
297

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

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT ( COUNT( * ) ) + + + 80 + 2 FROM tab2 WHERE NOT 92 IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT ( COUNT ( * ) ) + + + 80 + 2 FROM tab2 WHERE NOT 92 IS NOT NULL
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT - COUNT( * ) * + 69 + 19 AS col0 FROM tab1
----
-188

skipif mysql # not compatible
query I rowsort label-906
SELECT - COUNT ( * ) * + 69 + 19 AS col0 FROM tab1
----
-188

query I rowsort
SELECT ALL + 74 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + 70 + + col1 FROM tab2 AS cor0
----
121
137
147

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 >= + col0 * col2 * - 0 / + ( - ( + col0 ) ) * - col0 / col2 * - 35
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * + col0 >= + col0 * col2 * - 0 / + ( - ( + col0 ) ) * - col0 / col2 * - 35
----
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-914
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-914
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT - ( + + 8 ) + + CAST( NULL AS SIGNED ) + - 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - ( + + 8 ) + + CAST ( NULL AS INTEGER ) + - 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - + col2 - ( 85 ) FROM tab2 AS cor0
----
-108
-125
-143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-918
SELECT ALL + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

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

skipif mysql # not compatible
query I rowsort label-919
SELECT - 26 - col0 * + col1 + ( - 20 ) - + + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-920
SELECT + 29 - - 89 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT + 29 - - 89 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - 45 * - - col1 * - + col0 + + 42 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 90 + col0
----

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

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

query I rowsort
SELECT - - ( - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL > - col2 * - col2 + + col0 + + + 26 * - 39
----

query I rowsort
SELECT - 39 - + col2 AS col2 FROM tab2 AS cor0
----
-62
-79
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT + 86 + SUM( ALL - - 20 ) FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-925
SELECT + 86 + SUM ( ALL - - 20 ) FROM tab1 AS cor0
----
146

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-926
SELECT - 22 * col0 + - CAST( 55 AS SIGNED ) DIV - col2 AS col2 FROM tab1 WHERE NOT - col2 - 56 + - + 62 * + col0 * + + ( + + 12 ) IS NULL
----
-1122
-1870
-2002

skipif mysql # not compatible
query I rowsort label-926
SELECT - 22 * col0 + - CAST ( 55 AS INTEGER ) / - col2 AS col2 FROM tab1 WHERE NOT - col2 - 56 + - + 62 * + col0 * + + ( + + 12 ) IS NULL
----
-1122
-1870
-2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 75 ) col2 FROM tab1
----
75

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

query I rowsort
SELECT - ( - - 21 ) FROM tab0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 80 FROM tab1 WHERE NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-931
SELECT ALL + 29 DIV + 91 - - - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + 29 / + 91 - - - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab2 AS cor0 WHERE NOT ( - - 57 IS NOT NULL )
----

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col2 * col0 + 63 + + ( - - 71 ) + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-935
SELECT DISTINCT - COUNT( * ) AS col1, - 70 AS col1 FROM tab0
----
-3
-70

skipif mysql # not compatible
query II rowsort label-935
SELECT DISTINCT - COUNT ( * ) AS col1, - 70 AS col1 FROM tab0
----
-3
-70

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-937
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2
----
3
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL + - COUNT( * ) * - - 12 + - - 59 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL + - COUNT ( * ) * - - 12 + - - 59 FROM tab1 AS cor0
----
23

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 94 - + 90, - 28 * 24, - + col0, + col1 + + - col1, - + ( col0 ) - - + col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + 74 + + COUNT( * ) col2 FROM tab0 cor0
----
77

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

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

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

query I rowsort
SELECT + col1 + 50 - - 8 AS col0 FROM tab1
----
105
63
72

query II rowsort
SELECT ALL col0 * col0, col0 FROM tab2
----
2116
46
4096
64
5625
75

onlyif mysql # DIV for integer division: 
query I rowsort label-949
SELECT 68 + col1 DIV + - col0 FROM tab0
----
63
68
68

skipif mysql # not compatible
query I rowsort label-949
SELECT 68 + col1 / + - col0 FROM tab0
----
63
68
68

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col0 col0 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT 38 * - COUNT( * ) * + COUNT( * ) FROM tab1
----
-342

skipif mysql # not compatible
query I rowsort label-953
SELECT 38 * - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
-342

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

query I rowsort
SELECT DISTINCT - 59 * - col2 + + col2 AS col0 FROM tab1
----
3540
4080
5760

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

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

query II rowsort
SELECT ALL - 16 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
-16
14
-16
47
-16
5

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-959
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-961
SELECT - MIN( DISTINCT - col0 ) DIV 73 + - 21 col0 FROM tab0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-961
SELECT - MIN ( DISTINCT - col0 ) / 73 + - 21 col0 FROM tab0
----
-20

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

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

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

query II rowsort
SELECT DISTINCT - col1 - + - 89 AS col0, col1 AS col0 FROM tab0 AS cor0
----
68
21
8
81
88
1

onlyif mysql # aggregate syntax: 
query II rowsort label-965
SELECT ( - - 36 ) AS col0, + COUNT( * ) - + - 85 FROM tab2 AS cor0
----
36
88

skipif mysql # not compatible
query II rowsort label-965
SELECT ( - - 36 ) AS col0, + COUNT ( * ) - + - 85 FROM tab2 AS cor0
----
36
88

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-967
SELECT + - col1 * - CAST( 4 AS SIGNED ) / CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT + - col1 * - CAST ( 4 AS INTEGER ) / CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 / - + col2 FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( + col0 * + col0, 8 * col1 / - 1, + 98 )
----

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

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

query II rowsort
SELECT - col0, 81 + + col0 AS col1 FROM tab0
----
-15
96
-87
168
-97
178

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT + CAST( - 78 AS SIGNED ) FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-972
SELECT + CAST ( - 78 AS INTEGER ) FROM tab0
----
-78
-78
-78

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

query I rowsort
SELECT - col2 * - ( + 77 ) FROM tab1 cor0
----
4543
5236
7392

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

query I rowsort
SELECT DISTINCT col1 * + 67 FROM tab2 AS cor0
----
3417
4489
5159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT SUM( + col1 ) + - COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-979
SELECT SUM ( + col1 ) + - COUNT ( * ) FROM tab0
----
100

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

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

query I rowsort
SELECT DISTINCT - - col1 * - + col2 + + col2 FROM tab2 cor0
----
-1150
-3040
-3828

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

skipif mysql # not compatible
query I rowsort label-982
SELECT col1 / - - col1 AS col0 FROM tab2 AS cor0
----
1
1
1

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

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

skipif mysql # not compatible
query II rowsort label-984
SELECT + ( + + COUNT ( * ) ) AS col0, ( - + 36 ) FROM tab0 cor0
----
3
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT ALL 74 * - - 30 * 88 DIV + 24 AS col0 FROM tab1 AS cor0
----
8140
8140
8140

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL 74 * - - 30 * 88 / + 24 AS col0 FROM tab1 AS cor0
----
8140
8140
8140

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

query I rowsort
SELECT DISTINCT + 6 + + - 86 FROM tab2 AS cor0
----
-80

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

query I rowsort
SELECT DISTINCT + 15 + + 55 FROM tab1
----
70

query I rowsort
SELECT DISTINCT - 76 * col0 AS col2 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NULL <= NULL AND NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NULL <= NULL AND NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT COUNT( * ) + 17 + COUNT( col0 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-992
SELECT COUNT ( * ) + 17 + COUNT ( col0 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ALL + 14 * + + 95 AS col2 FROM tab0
----
1330
1330
1330

query I rowsort
SELECT - 1 + + col2 AS col1 FROM tab0 AS cor0 WHERE col2 * + col1 <= NULL
----

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

query I rowsort
SELECT + 45 + col0 FROM tab2 AS cor0
----
109
120
91

query II rowsort
SELECT ALL 78 * + col2 AS col0, + col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
4602
59
5304
68
7488
96

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

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

query I rowsort
SELECT + 70 + - 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query I rowsort label-1000
SELECT - - col1 DIV - col1 + col1 * - col1 * - + 99 + col2 + 25 * 25 * - - col2 col2 FROM tab0 AS cor0
----
49918
62072
678960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1000
SELECT - - col1 / - col1 + col1 * - col1 * - + 99 + col2 + 25 * 25 * - - col2 col2 FROM tab0 AS cor0
----
49918
62072
678960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 + + col0 col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
101
72
90

query I rowsort
SELECT ALL - 57 + + + 65 AS col1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1003
SELECT - + col1 DIV 71 * + ( col0 ) * + - col2 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
786

skipif mysql # not compatible
query I rowsort label-1003
SELECT - + col1 / 71 * + ( col0 ) * + - col2 + + col1 AS col1 FROM tab0 AS cor0
----
1
21
786

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT ALL - 53 + - - COUNT( 98 ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - 53 + - - COUNT ( 98 ) FROM tab1
----
-50

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1008
SELECT DISTINCT + 75 DIV + col2, col2 FROM tab2 AS cor0
----
1
40
1
58
3
23

skipif mysql # not compatible
query II rowsort label-1008
SELECT DISTINCT + 75 / + col2, col2 FROM tab2 AS cor0
----
1
40
1
58
3
23

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE col0 BETWEEN ( col2 ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - col1 + 6 FROM tab0 cor0
----
-15
-75
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 AS col2, col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT DISTINCT - + ( COUNT( * ) ) + + ( SUM( col1 ) ) AS col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1013
SELECT DISTINCT - + ( COUNT ( * ) ) + + ( SUM ( col1 ) ) AS col2 FROM tab2 AS cor0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-1014
SELECT DISTINCT + col2 * + col2 - col2 DIV - ( 76 ) AS col0 FROM tab1 cor0
----
3481
4624
9217

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT + col2 * + col2 - col2 / - ( 76 ) AS col0 FROM tab1 cor0
----
3481
4624
9217

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( - col1 - + ( + 6 ) - col2 * + 34 * - 70 * + 70 ) BETWEEN ( + 50 * - - col0 * 74 ) AND NULL
----

query I rowsort
SELECT ALL col2 * + + 76 AS col2 FROM tab2
----
1748
3040
4408

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT NULL NOT IN ( 2 * + + 75 * + col1 * + 59 - - + col1 )
----

skipif mysql # not compatible
query I rowsort label-1020
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT NULL NOT IN ( 2 * + + 75 * + col1 * + 59 - - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT COUNT( DISTINCT + - 32 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL col2 + + + col2 - + col2 FROM tab2 AS cor0 WHERE NOT col2 >= - + col1
----

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

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

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

query I rowsort
SELECT ALL ( - 99 ) FROM tab2
----
-99
-99
-99

query I rowsort
SELECT ALL + + 62 * + 32 FROM tab0 AS cor0
----
1984
1984
1984

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

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

query I rowsort
SELECT 44 * + - col1 + col2 + col2 + - col1 FROM tab0 AS cor0
----
-3551
-925
153

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

query I rowsort
SELECT col1 + - + col2 + 46 FROM tab1
----
-36
-8
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1031
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + col2, col1, CAST( NULL AS SIGNED ), ( - 13 ) )
----

skipif mysql # not compatible
query III rowsort label-1031
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( + col2, col1, CAST ( NULL AS INTEGER ), ( - 13 ) )
----

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col0 AS col1 FROM tab0
----
-107
-109
-295

query I rowsort
SELECT DISTINCT - + col1 * - + col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT + col2 - 77 AS col0 FROM tab0
----
-30
-67
22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT + - SUM( DISTINCT + 97 ) + - COUNT( * ) FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-1036
SELECT + - SUM ( DISTINCT + 97 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-100

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

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

query I rowsort
SELECT ALL + 15 * - 57 AS col1 FROM tab2 AS cor0
----
-855
-855
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 73 col1, 64 FROM tab0 AS cor0
----
-73
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT 43 * + MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-1978

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT 43 * + MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-1978

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

skipif mysql # not compatible
query I rowsort label-1042
SELECT CAST ( NULL AS INTEGER ) / + + 98 * - 40 - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * + + col1 col0, + col1 FROM tab1
----
425
5
4277
47
714
14

query I rowsort
SELECT DISTINCT 76 * - col0 AS col1 FROM tab2
----
-3496
-4864
-5700

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

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

query I rowsort
SELECT col1 + + ( + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
162
2
42

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1047
SELECT ALL CAST ( NULL AS INTEGER ) col2, + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT - + COUNT( DISTINCT - 37 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT - + COUNT ( DISTINCT - 37 ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1051
SELECT 25 DIV - COUNT( * ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-1051
SELECT 25 / - COUNT ( * ) AS col1 FROM tab0
----
-8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) * - col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) * - col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT + COUNT( * ) * + 37 + + 53 + - 18 AS col2 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-1054
SELECT + COUNT ( * ) * + 37 + + 53 + - 18 AS col2 FROM tab1
----
146

query I rowsort
SELECT 97 * - 32 + + 21 FROM tab0
----
-3083
-3083
-3083

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1056
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 1 / - col0 * + ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1056
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 1 / - col0 * + ( CAST ( NULL AS REAL ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1057
SELECT DISTINCT + 65 + + col2 DIV col1 + + 81 FROM tab2 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT + 65 + + col2 / col1 + + 81 FROM tab2 AS cor0
----
146

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

query I rowsort
SELECT + col0 * + 28 FROM tab0 AS cor0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT DISTINCT + 71 + COUNT( * ) AS col0 FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT + 71 + COUNT ( * ) AS col0 FROM tab1 cor0
----
74

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

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

query I rowsort
SELECT + + col0 * + 53 * col1 * + 8 * - ( + col2 ) + + ( + col2 ) FROM tab2 AS cor0
----
-123574742
-22878169
-83578840

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 >= - + 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1064
SELECT ALL col1 * col2 + + col0 DIV 66 - + 89 col1, + 43 col0 FROM tab2 AS cor0
----
1084
43
2991
43
3798
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1064
SELECT ALL col1 * col2 + + col0 / 66 - + 89 col1, + 43 col0 FROM tab2 AS cor0
----
1084
43
2991
43
3798
43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 > col0
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1067
SELECT COUNT( * ), + COUNT( + col0 ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1067
SELECT COUNT ( * ), + COUNT ( + col0 ) FROM tab2
----
3
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1069
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT + 96 + - COUNT( * ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-1070
SELECT + 96 + - COUNT ( * ) AS col2 FROM tab1
----
93

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

query I rowsort
SELECT - col1 + + col0 - + ( + col0 ) FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 + + col1 col0 FROM tab1 cor0
----
15
24
57

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

query I rowsort
SELECT ALL 59 * + col2 - + 1 AS col2 FROM tab2 AS cor0
----
1356
2359
3421

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT ALL - COUNT( * ) * 43 FROM tab0 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL - COUNT ( * ) * 43 FROM tab0 cor0
----
-129

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT DISTINCT - + 62 * + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - + 62 * + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col0
----
NULL

query I rowsort
SELECT DISTINCT + + 11 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * - col1 <= col2
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT DISTINCT - 28 * + COUNT( * ) FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - 28 * + COUNT ( * ) FROM tab1 cor0
----
-84

query I rowsort
SELECT DISTINCT 49 * - + 43 * + col2 FROM tab0 AS cor0
----
-208593
-21070
-99029

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT - 19 DIV - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1084
SELECT - 19 / - col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + 66, + col2 AS col0 FROM tab1
----
66
59
66
68
66
96

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

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

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

skipif mysql # not compatible
query I rowsort label-1088
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT DISTINCT + COUNT( - ( - + col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1089
SELECT DISTINCT + COUNT ( - ( - + col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * + + col0 ) BETWEEN NULL AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1091
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1091
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 86 col0, - col2 AS col1 FROM tab0 AS cor0
----
-86
-10
-86
-47
-86
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 70 ) >= - 30
----

query I rowsort
SELECT + - 57 * + AVG ( ALL - col1 ) FROM tab2 AS cor0 WHERE + 38 * - - col0 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT DISTINCT - COUNT( * ) + + SUM( - + 39 ) AS col2 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT - COUNT ( * ) + + SUM ( - + 39 ) AS col2 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + 32 + col2 AND NULL
----

query II rowsort
SELECT DISTINCT + 38 AS col2, col1 AS col0 FROM tab0 AS cor0
----
38
1
38
21
38
81

query I rowsort
SELECT - - col2 + + 21 FROM tab1 AS cor0
----
117
80
89

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab0
----
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL - 42 - + COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL - 42 - + COUNT ( * ) FROM tab2
----
-45

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 - 12 + + 79 <> - - col2
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1105
SELECT - + COUNT( * ) DIV - SUM( DISTINCT - - 49 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1105
SELECT - + COUNT ( * ) / - SUM ( DISTINCT - - 49 ) FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - 30 * + 31 FROM tab1 AS cor0
----
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT + + COUNT( * ) * 69 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT + + COUNT ( * ) * 69 FROM tab0 AS cor0
----
207

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT DISTINCT - ( COUNT( * ) ) col0 FROM tab0 AS cor0 WHERE NOT + col1 * - col2 BETWEEN + 86 AND - ( 67 ) - - 82
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1109
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab0 AS cor0 WHERE NOT + col1 * - col2 BETWEEN + 86 AND - ( 67 ) - - 82
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL - SUM( 55 ) col1 FROM tab1 cor0
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1110
SELECT ALL - SUM ( 55 ) col1 FROM tab1 cor0
----
-165

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

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

query II rowsort
SELECT DISTINCT - 42, - ( - - 53 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + ( + col2 ) * - ( + col1 ) FROM tab0 AS cor0 WHERE col1 * - ( - col0 ) <> + col0 * + + col2
----
-210
-3807
-99

query I rowsort
SELECT + 69 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
126063
6693
83835

query I rowsort
SELECT DISTINCT - + col2 * 74 - + 91 + 50 AS col1 FROM tab1 cor0
----
-4407
-5073
-7145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1117
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-1117
SELECT ALL col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT 66 AS col2, 31 * col2 AS col0 FROM tab1
----
66
1829
66
2108
66
2976

query I rowsort
SELECT DISTINCT - 14 + + 53 FROM tab1
----
39

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

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

query I rowsort
SELECT - 85 * - - 53 FROM tab0 AS cor0
----
-4505
-4505
-4505

query I rowsort
SELECT ALL + 17 + + 15 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + ( ( 62 ) ) + - col1 FROM tab2 cor0
----
-15
-5
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 97 <= 55 * + 69
----
0

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 97 <= 55 * + 69
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 - + col0 * + - col0 * + col1 col0 FROM tab0
----
158951
18227
9411

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL = - 83 + - + col2
----

query I rowsort
SELECT - col2 - - col2 + 24 AS col1 FROM tab1
----
24
24
24

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

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT + 92 - - COUNT ( * ) FROM tab0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT col1 DIV 20 * 14 * - - col1 + - col0 * + col1 * + col0 DIV + col0 AS col0 FROM tab1
----
-2961
-425
-714

skipif mysql # not compatible
query I rowsort label-1129
SELECT col1 / 20 * 14 * - - col1 + - col0 * + col1 * + col0 / + col0 AS col0 FROM tab1
----
-2961
-425
-714

query II rowsort
SELECT 8 + + - 30 AS col0, + col2 + - - 37 FROM tab1
----
-22
105
-22
133
-22
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT MIN( ALL + + col1 ) + - 87 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-1131
SELECT MIN ( ALL + + col1 ) + - 87 FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT 49 + - SUM( col1 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1132
SELECT 49 + - SUM ( col1 ) FROM tab1
----
-17

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

query I rowsort
SELECT - 69 + col0 AS col2 FROM tab2 AS cor0
----
-23
-5
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1136
SELECT - col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1136
SELECT - col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT ALL - 50 AS col1 FROM tab2 cor0
----
-50
-50
-50

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

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

query III rowsort
SELECT - 5, col1 AS col0, - - col2 + 61 * - 16 AS col0 FROM tab1 AS cor0
----
9 values hashing to 3aae3359ad1f616edc4fd16b745e2f5e

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE + ( - + col1 ) <> + col2
----
14
47
5

query I rowsort
SELECT - ( 19 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1143
SELECT ALL + ( + + SUM ( DISTINCT - col0 ) ) col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1144
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT DISTINCT - col0 * + - 72 FROM tab2 cor0
----
3312
4608
5400

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

skipif mysql # not compatible
query III rowsort label-1146
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + CAST ( CAST ( - col2 AS INTEGER ) AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT 51 * - + 98 AS col1, + 31 AS col1 FROM tab2 cor0
----
-4998
31
-4998
31
-4998
31

query I rowsort
SELECT - col0 * + 9 FROM tab2 AS cor0
----
-414
-576
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT - MAX( DISTINCT 72 ) AS col0 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-1149
SELECT - MAX ( DISTINCT 72 ) AS col0 FROM tab1
----
-72

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

query I rowsort
SELECT DISTINCT ( - + 52 ) AS col1 FROM tab1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT - 26 + col0 DIV - + 83 * - - col1 - col1 AS col0 FROM tab2
----
-103
-77
-93

skipif mysql # not compatible
query I rowsort label-1152
SELECT - 26 + col0 / - + 83 * - - col1 - col1 AS col0 FROM tab2
----
-103
-77
-93

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN ( - + 81 ) AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab0 AS cor0 WHERE + 35 * - - col1 IS NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1158
SELECT + 93 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 93 / - col1 FROM tab2
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT + col0 + ( - - 40 ) FROM tab1 AS cor0
----
125
131
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT DISTINCT + col1 DIV col2 * col1 + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + col1 / col2 * col1 + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT ALL 49 + + SUM( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1164
SELECT ALL 49 + + SUM ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
276

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 31 AS col0, col2 col1 FROM tab2 WHERE NOT + 32 * + 12 BETWEEN + - col0 AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - 30 * - col2 AS col2 FROM tab1
----
1770
2040
2880

query I rowsort
SELECT ALL + col0 + - 61 + + 95 + + col0 FROM tab2 AS cor0
----
126
162
184

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

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

query I rowsort
SELECT DISTINCT - 5 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-5

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

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

query I rowsort
SELECT - ( 82 ) FROM tab1 cor0
----
-82
-82
-82

query II rowsort
SELECT + - 20, - col1 AS col2 FROM tab2 AS cor0
----
-20
-51
-20
-67
-20
-77

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 = ( - - 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 37 <= + + col1 * + - col2 * - col0
----

query II rowsort
SELECT + + col1 AS col0, - ( + col1 ) - - 81 + + col0 AS col2 FROM tab1 AS cor0
----
14
118
47
125
5
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL + ( 60 ) / + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + ( 60 ) / + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - 6 <> NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND col0
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - col0 + + 59 FROM tab2
----
-16
-5
13

query II rowsort
SELECT ALL col0 AS col0, 13 AS col1 FROM tab0 WHERE NULL < 9 + - 46
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 48 NOT IN ( 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT DISTINCT + 13 + - COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT + 13 + - COUNT ( * ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT - + col0 / col0 - 8 FROM tab2 WHERE ( NOT 52 + col2 IS NOT NULL )
----

query I rowsort
SELECT 3 * + 17 AS col1 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - 71 col2 FROM tab1
----
-5325
-5325
-5325

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1193
SELECT + ( + + CAST( NULL AS DECIMAL ) ) * - - 51 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1193
SELECT + ( + + CAST ( NULL AS REAL ) ) * - - 51 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + + - 37 AS col0 FROM tab0 AS cor0
----
-22
50
60

onlyif mysql # DIV for integer division: 
query II rowsort label-1195
SELECT ALL col2 + col2 DIV 16 AS col2, col2 FROM tab0 AS cor0
----
10
10
105
99
49
47

skipif mysql # not compatible
query II rowsort label-1195
SELECT ALL col2 + col2 / 16 AS col2, col2 FROM tab0 AS cor0
----
10
10
105
99
49
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1196
SELECT + CAST( - MIN( DISTINCT - - col0 ) AS SIGNED ) col0 FROM tab0 AS cor0 WHERE 16 * + CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1196
SELECT + CAST ( - MIN ( DISTINCT - - col0 ) AS INTEGER ) col0 FROM tab0 AS cor0 WHERE 16 * + CAST ( NULL AS REAL ) NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 13 + col1 col2 FROM tab2 cor0
----
130
138
87

query I rowsort
SELECT ALL - col2 + - - col0 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT - SUM( + + col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1199
SELECT - SUM ( + + col1 ) FROM tab0 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----
NULL

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

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

skipif mysql # not compatible
query II rowsort label-1201
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0, 6 FROM tab1
----
0
6

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

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

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

query I rowsort
SELECT - ( + 58 ) * + + col2 FROM tab2 AS cor0
----
-1334
-2320
-3364

query I rowsort
SELECT ALL + 5 * - + 74 * + col2 + + + 21 - - 26 * 66 AS col2 FROM tab0 AS cor0
----
-15653
-1963
-34893

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1207
SELECT ALL + 34 * - - MAX( + CAST( col2 AS SIGNED ) ) * + - ( MIN( - + col2 ) ) AS col1 FROM tab0 AS cor0
----
333234

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + 34 * - - MAX ( + CAST ( col2 AS INTEGER ) ) * + - ( MIN ( - + col2 ) ) AS col1 FROM tab0 AS cor0
----
333234

query I rowsort
SELECT + + col0 + 13 AS col0 FROM tab2 AS cor0
----
59
77
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1209
SELECT - CAST( + col0 AS SIGNED ) + - + 45 - - col0 - - 21 * ( - + col1 ) * - CAST( NULL AS SIGNED ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1209
SELECT - CAST ( + col0 AS INTEGER ) + - + 45 - - col0 - - 21 * ( - + col1 ) * - CAST ( NULL AS INTEGER ) AS col0, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

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

query I rowsort
SELECT ALL + 43 * - 72 FROM tab0, tab0 AS cor0
----
9 values hashing to 31112cc444c3af9dbf98e344fafd65ad

query I rowsort
SELECT + - 50 AS col1 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) > NULL OR NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1213
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) > NULL OR NOT ( NULL ) IS NULL
----
0

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

query I rowsort
SELECT 20 + 76 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT SUM( DISTINCT col0 ) * + + COUNT( * ) - + 66 AS col2 FROM tab1
----
615

skipif mysql # not compatible
query I rowsort label-1216
SELECT SUM ( DISTINCT col0 ) * + + COUNT ( * ) - + 66 AS col2 FROM tab1
----
615

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT DISTINCT 8 * - COUNT( * ) * + 95 + + 6 AS col1 FROM tab0 AS cor0
----
-2274

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT 8 * - COUNT ( * ) * + 95 + + 6 AS col1 FROM tab0 AS cor0
----
-2274

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT COUNT( * ) + 35 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1219
SELECT COUNT ( * ) + 35 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL - col2 - + + col0 - - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-170
-182

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

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

query I rowsort
SELECT DISTINCT - 82 - + ( - 58 ) FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1223
SELECT - COUNT( * ) + - + COUNT( * ) + - 66 FROM tab0 WHERE NOT - + CAST( col2 AS SIGNED ) + + col0 IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-1223
SELECT - COUNT ( * ) + - + COUNT ( * ) + - 66 FROM tab0 WHERE NOT - + CAST ( col2 AS INTEGER ) + + col0 IS NOT NULL
----
-66

query II rowsort
SELECT ALL - col0 AS col1, col0 * col0 + + + 83 AS col0 FROM tab2
----
-46
2199
-64
4179
-75
5708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 * col0 col2 FROM tab2
----
1702
2368
2775

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE + col2 * - - col1 + - - 81 / + col1 + - - col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL - COUNT( * ) * 11 AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - COUNT ( * ) * 11 AS col2 FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT - MIN( ALL 93 ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-1228
SELECT - MIN ( ALL 93 ) FROM tab0
----
-93

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1231
SELECT + + 91 DIV - MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1231
SELECT + + 91 / - MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + - 81 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
243

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1236
SELECT ALL SUM( DISTINCT 20 ) AS col1, ( - - CAST( + SUM( col1 ) AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
20
66

skipif mysql # not compatible
query II rowsort label-1236
SELECT ALL SUM ( DISTINCT 20 ) AS col1, ( - - CAST ( + SUM ( col1 ) AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
20
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT DISTINCT + 51 * - col0 + - CAST( - col1 AS SIGNED ) + + ( - - col1 ) + 11 / - + 26 col1 FROM tab0 AS cor0 WHERE + col1 IN ( - col1, - col0, - + col1, - col1, 49 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT DISTINCT + 51 * - col0 + - CAST ( - col1 AS INTEGER ) + + ( - - col1 ) + 11 / - + 26 col1 FROM tab0 AS cor0 WHERE + col1 IN ( - col1, - col0, - + col1, - col1, 49 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 86 * + col0 AS col0 FROM tab2 AS cor0
----
-3956
-5504
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT MIN( - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-1239
SELECT MIN ( - col2 ) FROM tab2 AS cor0
----
-58

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + col0 <> + + 39 + - 93
----

query II rowsort
SELECT - col0 AS col1, - col1 * + - col2 * col2 AS col1 FROM tab2
----
-46
26979
-64
123200
-75
225388

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT + 50 DIV 61 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1243
SELECT + 50 / 61 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col2 + 91 * + col0 * - col0 FROM tab0
----
-20522
-688789
-856318

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - ( + MAX( ALL - col1 ) ) + COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1245
SELECT - ( + MAX ( ALL - col1 ) ) + COUNT ( * ) FROM tab2
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1246
SELECT ALL 82 + col1 DIV - - col1 AS col1 FROM tab2
----
83
83
83

skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL 82 + col1 / - - col1 AS col1 FROM tab2
----
83
83
83

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL - SUM ( DISTINCT + - col1 ) + MAX ( col2 ) AS col1 FROM tab0 AS cor0
----
202

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

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

query I rowsort
SELECT ( - col1 ) FROM tab0 cor0 WHERE + 4 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT col0 - - 25 * - + 4 * + col1 * - - 76 AS col0 FROM tab1 AS cor0
----
-106349
-357109
-37915

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1254
SELECT DISTINCT - - col1 * + col1 + + col2 + + col0 * - 78 + + 12 * col2 * 27 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT - - col1 * + col1 + + col2 + + col0 * - 78 + + 12 * col2 * 27 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - col0 + - - col0 FROM tab1 AS cor0 WHERE + col0 <= - col1 + - - 11 AND NULL IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1257
SELECT - - CAST( + SUM( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT + 54 * + col2 FROM tab0
----
2538
5346
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1260
SELECT 57 * + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NOT + 68 NOT IN ( - - 92, CAST( - ( + col1 ) AS SIGNED ) * col0 ) )
----
171

skipif mysql # not compatible
query I rowsort label-1260
SELECT 57 * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT + 68 NOT IN ( - - 92, CAST ( - ( + col1 ) AS INTEGER ) * col0 ) )
----
171

query II rowsort
SELECT ALL + col0 * col1 AS col0, + 3 AS col2 FROM tab0
----
1215
3
1827
3
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 15, + 78 + - col2 + + 37 * + - col0 * + 87 * 72 * + col0, + col0 / + 57, col0, - col1 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1262
SELECT - + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 15, + 78 + - col2 + + 37 * + - col0 * + 87 * 72 * + col0, + col0 / + 57, col0, - col1 * - col2 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1263
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + ( + col1 ) > - CAST( + col0 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1263
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + ( + col1 ) > - CAST ( + col0 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - + MIN( - 62 ) * + COUNT( + - col2 ) AS col2 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - + MIN ( - 62 ) * + COUNT ( + - col2 ) AS col2 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT SUM( ALL col1 ) + + - COUNT( col2 ) + - 23 - + 57 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT SUM ( ALL col1 ) + + - COUNT ( col2 ) + - 23 - + 57 FROM tab1 AS cor0
----
-17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 + 13 col1 FROM tab0 AS cor0
----
9

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 46 + + + 0 + - col1 * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT DISTINCT + COUNT( * ) col1, + ( + - 71 ) FROM tab1 AS cor0
----
3
-71

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + - - 6 col0 FROM tab0
----
10
10
10

query I rowsort
SELECT + col0 * + - col0 + 71 FROM tab2
----
-2045
-4025
-5554

query I rowsort
SELECT + 82 * - 41 + + + col1 AS col0 FROM tab0
----
-3281
-3341
-3361

query I rowsort
SELECT + col2 * - - 41 AS col1 FROM tab2
----
1640
2378
943

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT COUNT( * ) * + - 87 AS col0 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT COUNT ( * ) * + - 87 AS col0 FROM tab1
----
-261

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL - - MIN( - 9 ) + + 78 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - - MIN ( - 9 ) + + 78 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
225

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

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

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

query I rowsort
SELECT ALL - 23 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1285
SELECT DISTINCT + COUNT ( DISTINCT - + 99 ) col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - 94 * 9 FROM tab2 AS cor0
----
-846
-846
-846

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

skipif mysql # not compatible
query II rowsort label-1287
SELECT ALL - col1, + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT 65 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT 65 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
195

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

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - - col2 * - 87 AS col0 FROM tab1 AS cor0
----
-5133
-5916
-8352

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

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

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

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

query I rowsort
SELECT - 15 FROM tab1 WHERE NOT NULL BETWEEN col1 AND - 63 / col2 - + 97 * - col0
----

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

query I rowsort
SELECT ALL + col1 * + 26 + - col1 + + 11 + - - col1 * - + col2 + + 99 * + col0 FROM tab0 WHERE + col1 + col1 <= + - 2
----

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT + COUNT ( - - col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 * 75 * - + 17 FROM tab0
----
-103275
-1275
-26775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT ALL 31 * + CAST( - col1 AS SIGNED ) FROM tab2
----
-1581
-2077
-2387

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL 31 * + CAST ( - col1 AS INTEGER ) FROM tab2
----
-1581
-2077
-2387

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1302
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + col0 * - CAST( NULL AS DECIMAL ) BETWEEN - 62 AND NULL ) )
----

skipif mysql # not compatible
query III rowsort label-1302
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + col0 * - CAST ( NULL AS REAL ) BETWEEN - 62 AND NULL ) )
----

query II rowsort
SELECT ALL 90 AS col0, col1 FROM tab2 AS cor0
----
90
51
90
67
90
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1304
SELECT DISTINCT + COUNT( * ), 86 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
86

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT + COUNT ( * ), 86 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3
86

query I rowsort
SELECT - ( - 53 ) FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT ALL + col2 + 36 AS col1 FROM tab2 AS cor0
----
59
76
94

query I rowsort
SELECT DISTINCT col2 + + ( - - 93 ) FROM tab0 AS cor0
----
103
140
192

query I rowsort
SELECT ALL - ( - 65 ) FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL COUNT( ALL + + 81 ) * + 10 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL COUNT ( ALL + + 81 ) * + 10 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 96 col2 FROM tab1
----
-28
-37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - COUNT( * ) + - MAX( - ( - + ( + + col1 ) ) ) AS col0 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-1311
SELECT - COUNT ( * ) + - MAX ( - ( - + ( + + col1 ) ) ) AS col0 FROM tab2
----
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT SUM( ALL - + 13 ) + - COUNT( * ) AS col0 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1313
SELECT SUM ( ALL - + 13 ) + - COUNT ( * ) AS col0 FROM tab2
----
-42

query I rowsort
SELECT DISTINCT col0 + - 21 FROM tab1
----
30
64
70

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

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

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

query I rowsort
SELECT DISTINCT - 88 + + col2 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

query II rowsort
SELECT DISTINCT + col2 + col1 * + + col0, + col0 AS col1 FROM tab2 AS cor0
----
2369
46
4968
64
5083
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1319
SELECT ALL + col1 DIV + + col0 AS col0 FROM tab2 AS cor0 WHERE ( - 26 ) < CAST( 70 AS SIGNED )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + col1 / + + col0 AS col0 FROM tab2 AS cor0 WHERE ( - 26 ) < CAST ( 70 AS INTEGER )
----
0
1
1

query I rowsort
SELECT col0 * col0 - + 25 * - 40 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1321
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - 96 AS SIGNED ) >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1321
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - 96 AS INTEGER ) >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT + MIN( ALL + 79 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1322
SELECT + MIN ( ALL + 79 ) FROM tab1 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT - col1 * - ( 71 ) > col2 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT col0 + - col2 DIV 27 FROM tab1
----
48
83
89

skipif mysql # not compatible
query I rowsort label-1324
SELECT col0 + - col2 / 27 FROM tab1
----
48
83
89

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

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

skipif mysql # not compatible
query I rowsort label-1326
SELECT 68 + - COUNT ( * ) FROM tab2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL - COUNT( * ) / SUM( + 92 ) FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) BETWEEN col2 AND + col0 * col2 + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - COUNT ( * ) / SUM ( + 92 ) FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) BETWEEN col2 AND + col0 * col2 + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ( - 21 ) + - SUM( ALL col2 + - col0 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1328
SELECT ( - 21 ) + - SUM ( ALL col2 + - col0 ) FROM tab1
----
-17

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1330
SELECT + ( ( + COUNT( * ) ) ) AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1330
SELECT + ( ( + COUNT ( * ) ) ) AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT - MAX( 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-1331
SELECT - MAX ( 73 ) FROM tab2
----
-73

query I rowsort
SELECT col0 * 57 + col0 FROM tab0
----
5046
5626
870

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

query I rowsort
SELECT 8 * + 20 + col0 FROM tab1
----
211
245
251

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 col0 FROM tab0
----
93
93
93

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

query I rowsort
SELECT - col0 * 6 - - 63 AS col0 FROM tab1
----
-243
-447
-483

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + 15 col0 FROM tab1
----
110

query I rowsort
SELECT ALL col1 FROM tab1 WHERE col1 <> ( 37 )
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + 38 + - 21 < + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 90 - - 19 AS col2 FROM tab0
----
109

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

query I rowsort
SELECT - ( - col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT DISTINCT ( 2 ) * COUNT( * ) + 49 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
49

skipif mysql # not compatible
query I rowsort label-1354
SELECT DISTINCT ( 2 ) * COUNT ( * ) + 49 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
49

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

query I rowsort
SELECT + 38 FROM tab2 WHERE NULL IS NULL
----
38
38
38

query I rowsort
SELECT DISTINCT - 43 * col1 + - 52 FROM tab0 cor0
----
-3535
-95
-955

query I rowsort
SELECT + col1 * + col0 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
12558
3315
7650

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

query I rowsort
SELECT DISTINCT + - col2 + ( + ( - 6 ) ) FROM tab0 AS cor0
----
-105
-16
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + col1 col0 FROM tab0 AS cor0
----
115
35
55

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 IN ( - col2 + - col2 )
----

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

query I rowsort
SELECT - - 17 + + 98 FROM tab2 AS cor0
----
115
115
115

query I rowsort
SELECT DISTINCT - 50 + + - col2 AS col2 FROM tab0
----
-149
-60
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT DISTINCT COUNT( * ) * 46 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT COUNT ( * ) * 46 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT DISTINCT + SUM( ALL 73 ) FROM tab2 WHERE NULL NOT BETWEEN - ( col2 ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + SUM ( ALL 73 ) FROM tab2 WHERE NULL NOT BETWEEN - ( col2 ) AND - col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1370
SELECT ALL - CAST( NULL AS DECIMAL ) - + col1 * 44 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT ALL - CAST ( NULL AS REAL ) - + col1 * 44 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 12 * - 90 AS col0 FROM tab2
----
-1080
-1080
-1080

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

query III rowsort
SELECT * FROM tab2 WHERE 37 * 72 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT COUNT( * ) * 58 AS col0 FROM tab2 WHERE + 92 + 87 IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-1375
SELECT COUNT ( * ) * 58 AS col0 FROM tab2 WHERE + 92 + 87 IS NOT NULL
----
174

query I rowsort
SELECT + 70 - + col1 AS col1 FROM tab2 AS cor0
----
-7
19
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL + col0 * - 87 + - 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-1377
SELECT ALL + col0 * - 87 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - + 75 AS col0 FROM tab2 AS cor0
----
-11
-29
0

query I rowsort
SELECT ALL 80 + - col1 AS col0 FROM tab0 AS cor0
----
-1
59
79

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

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

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

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

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

query I rowsort
SELECT ALL 91 + col0 FROM tab0 WHERE ( NOT + col1 IS NULL )
----
106
178
188

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

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

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

query I rowsort
SELECT ALL + col2 * + col1 + + + 24 - col1 * 37 FROM tab1 AS cor0
----
134
1481
850

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

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

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1390
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST( + col1 AS SIGNED ) IN ( + col0 - 74 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1390
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST ( + col1 AS INTEGER ) IN ( + col0 - 74 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 BETWEEN + - col1 AND + col1
----

query I rowsort
SELECT 6 AS col1 FROM tab2 WHERE NOT ( + 70 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT DISTINCT + col0 FROM tab1 WHERE - - CAST( - col2 AS SIGNED ) NOT IN ( + col2 * col0 )
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + col0 FROM tab1 WHERE - - CAST ( - col2 AS INTEGER ) NOT IN ( + col2 * col0 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL COUNT( * ) + - 76 - + 99 col1 FROM tab1
----
-172

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1394
SELECT ALL COUNT ( * ) + - 76 - + 99 col1 FROM tab1
----
-172

query I rowsort
SELECT 69 AS col0 FROM tab0 WHERE NOT + col0 >= + col1
----
69

query I rowsort
SELECT ALL - ( - col0 ) + col2 AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + 97 + ( col0 ) AS col0 FROM tab0 cor0
----
112
184
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 11 ) / + col0 col2 FROM tab2 AS cor0 WHERE + col0 - - - ( - 82 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - + 63 + - MAX( - - 64 ) AS col2 FROM tab0 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-1399
SELECT - + 63 + - MAX ( - - 64 ) AS col2 FROM tab0 AS cor0
----
-127

query I rowsort
SELECT ALL - 82 AS col1 FROM tab0 cor0
----
-82
-82
-82

query I rowsort
SELECT ALL + + 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 = NULL
----

query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab0 AS cor0 WHERE - col1 + + - col2 <> NULL AND NOT NULL NOT BETWEEN ( + col0 ) AND ( + 18 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL - - COUNT( * ) - - 81 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - - COUNT ( * ) - - 81 FROM tab1 AS cor0
----
84

query I rowsort
SELECT 40 - - col0 * 91 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-2281785
-26466036
-6237464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab1 WHERE ( NULL ) BETWEEN ( - 25 * + col2 * + 61 + + col0 ) AND col2
----

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col1 FROM tab0
----
162
2
42

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

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + + col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT col0 * - + col2 - + ( ( - 19 ) ) AS col1 FROM tab0
----
-686
-851
-9584

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT DISTINCT SUM( ALL 23 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT SUM ( ALL 23 ) AS col1 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1414
SELECT col2 DIV 90 + + 75 col2 FROM tab2
----
75
75
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1414
SELECT col2 / 90 + + 75 col2 FROM tab2
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT - COUNT( * ) * + 81 - COUNT( * ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - COUNT ( * ) * + 81 - COUNT ( * ) AS col1 FROM tab1
----
-246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT ALL ( 62 ) * MIN( + - col1 ) col1 FROM tab1 AS cor0
----
-2914

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1418
SELECT ALL ( 62 ) * MIN ( + - col1 ) col1 FROM tab1 AS cor0
----
-2914

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1419
SELECT 29 AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1419
SELECT 29 AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL COUNT ( DISTINCT - 65 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT COUNT( * ) * + - 31 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1421
SELECT COUNT ( * ) * + - 31 FROM tab1
----
-93

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 30 NOT IN ( - - col2, - 38 - 71 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1424
SELECT ALL + COUNT( ALL - - 56 ) DIV - 55 * - - COUNT( * ) * 88 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + COUNT ( ALL - - 56 ) / - 55 * - - COUNT ( * ) * 88 FROM tab2 cor0
----
0

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT + SUM( - - 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + SUM ( - - 40 ) FROM tab2
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-1431
SELECT ALL - col0, - 78 * col0 + - col1 * col2 DIV - 64 AS col2 FROM tab1
----
-51
-3957
-85
-6626
-91
-7049

skipif mysql # not compatible
query II rowsort label-1431
SELECT ALL - col0, - 78 * col0 + - col1 * col2 / - 64 AS col2 FROM tab1
----
-51
-3957
-85
-6626
-91
-7049

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1432
SELECT ALL CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) col0 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 / + + col1 * - col0 + + 90 ) > - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - - col0 + - + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-1
1119
1719

query I rowsort
SELECT - 53 * - col2 AS col0 FROM tab0 AS cor0
----
2491
5247
530

query II rowsort
SELECT + col0, + col0 * + 25 FROM tab1 AS cor0
----
51
1275
85
2125
91
2275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1437
SELECT + COUNT( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col0 * - col0 * - CAST( NULL AS SIGNED ) * col0 <> + - 20
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT + COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col0 * - col0 * - CAST ( NULL AS INTEGER ) * col0 <> + - 20
----
0

query I rowsort
SELECT col2 + + 97 - col1 FROM tab0 AS cor0
----
195
63
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1439
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + CAST( + col1 AS SIGNED ) ) ) + - 98 NOT BETWEEN + col2 + + col1 AND - + col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1439
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + CAST ( + col1 AS INTEGER ) ) ) + - 98 NOT BETWEEN + col2 + + col1 AND - + col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 40 * 81 FROM tab1
----
3240
3240
3240

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT DISTINCT + - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + + col2 AS col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT - MAX( col1 ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1450
SELECT - MAX ( col1 ) AS col1 FROM tab1 cor0
----
-47

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1452
SELECT CAST( - col2 AS SIGNED ) DIV - 43 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1452
SELECT CAST ( - col2 AS INTEGER ) / - 43 FROM tab2 cor0
----
0
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1453
SELECT + COUNT( DISTINCT 46 ) DIV + 41 * COUNT( * ) + 85, 75 AS col2 FROM tab0 AS cor0
----
85
75

skipif mysql # not compatible
query II rowsort label-1453
SELECT + COUNT ( DISTINCT 46 ) / + 41 * COUNT ( * ) + 85, 75 AS col2 FROM tab0 AS cor0
----
85
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1454
SELECT ALL COUNT( ( - col2 ) ) AS col1, - 41 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----
0
-41

skipif mysql # not compatible
query II rowsort label-1454
SELECT ALL COUNT ( ( - col2 ) ) AS col1, - 41 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----
0
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1455
SELECT + CAST( NULL AS DECIMAL ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1455
SELECT + CAST ( NULL AS REAL ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT + 90 * COUNT( col1 ) AS col2 FROM tab2 cor0
----
270

skipif mysql # not compatible
query I rowsort label-1458
SELECT + 90 * COUNT ( col1 ) AS col2 FROM tab2 cor0
----
270

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 = 53
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1462
SELECT DISTINCT MAX( ALL + + col2 ) AS col2, 59 AS col0 FROM tab1
----
96
59

skipif mysql # not compatible
query II rowsort label-1462
SELECT DISTINCT MAX ( ALL + + col2 ) AS col2, 59 AS col0 FROM tab1
----
96
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab0 WHERE ( ( NULL < + col0 + + - col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( + + col2, col0, + ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT DISTINCT ( - - 68 ) + - + COUNT( * ) - 42 - + COUNT( * ) FROM tab0, tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT ( - - 68 ) + - + COUNT ( * ) - 42 - + COUNT ( * ) FROM tab0, tab2 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT ALL SUM( DISTINCT - 77 ) AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL SUM ( DISTINCT - 77 ) AS col0 FROM tab0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT ( + ( + col1 ) ) DIV - - 5 FROM tab0
----
0
16
4

skipif mysql # not compatible
query I rowsort label-1467
SELECT ( + ( + col1 ) ) / - - 5 FROM tab0
----
0
16
4

query I rowsort
SELECT DISTINCT + col1 * + 66 AS col0 FROM tab2
----
3366
4422
5082

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

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

query I rowsort
SELECT ALL col1 + + - col2 + 96 AS col2 FROM tab0
----
-2
107
130

query I rowsort
SELECT DISTINCT + + ( - col1 ) + + 43 FROM tab2 AS cor0
----
-24
-34
-8

query II rowsort
SELECT DISTINCT col0, + col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT col1 - + 91 * + col2 * + + 35 AS col2 FROM tab1
----
-187910
-216533
-305746

onlyif mysql # DIV for integer division: 
query I rowsort label-1474
SELECT + col0 DIV - - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1474
SELECT + col0 / - - col2 FROM tab0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT ALL - - SUM( DISTINCT col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL - - SUM ( DISTINCT col1 ) FROM tab1 cor0
----
66

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

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

skipif mysql # not compatible
query I rowsort label-1477
SELECT ( CAST ( - col1 AS INTEGER ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 65 * + - col1 AS col1 FROM tab1
----
-3055
-325
-910

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT ALL - + 44 + + CAST( + col1 AS SIGNED ) + - + col1 * - col2 FROM tab2 cor0 WHERE NULL <= 66
----

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - + 44 + + CAST ( + col1 AS INTEGER ) + - + col1 * - col2 FROM tab2 cor0 WHERE NULL <= 66
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1481
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( + + 94 AS DECIMAL ) NOT IN ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-1481
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( + + 94 AS REAL ) NOT IN ( - + col0 )
----

query I rowsort
SELECT + + 66 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88

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

query I rowsort
SELECT ( - 93 ) + + col0 AS col0 FROM tab0
----
-6
-78
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1485
SELECT DISTINCT 55 * col2 DIV - 29 AS col2 FROM tab1
----
-111
-128
-182

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 55 * col2 / - 29 AS col2 FROM tab1
----
-111
-128
-182

query I rowsort
SELECT - col0 + col0 + - 82 FROM tab2
----
-82
-82
-82

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

query I rowsort
SELECT DISTINCT 22 * - col0 FROM tab1
----
-1122
-1870
-2002

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

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

query III rowsort
SELECT * FROM tab2 WHERE 65 + + col0 IN ( + col0, 28, + 25 + + col0 + + col1 )
----

query II rowsort
SELECT - + 11 AS col2, - 55 + - 2 FROM tab1 AS cor0
----
-11
-57
-11
-57
-11
-57

query I rowsort
SELECT DISTINCT + 2 + + - ( - col2 ) + - 14 - + 29 FROM tab2 AS cor0
----
-1
-18
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT - - CAST( + COUNT( * ) AS SIGNED ) - + - 70 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1493
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) - + - 70 FROM tab1 AS cor0
----
73

query I rowsort
SELECT ALL col1 * + + ( + col1 ) FROM tab0
----
1
441
6561

query II rowsort
SELECT DISTINCT + col1 * - 45 AS col2, col0 AS col1 FROM tab2
----
-2295
46
-3015
75
-3465
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT - 41 + - COUNT( * ) AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-1496
SELECT - 41 + - COUNT ( * ) AS col0 FROM tab0
----
-44

query I rowsort
SELECT - 46 + 85 AS col0 FROM tab1 WHERE NULL IS NULL
----
39
39
39

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL COUNT( DISTINCT + - col1 ) FROM tab0 WHERE NOT - col2 - - 88 * - 54 * - - col2 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL COUNT ( DISTINCT + - col1 ) FROM tab0 WHERE NOT - col2 - - 88 * - 54 * - - col2 NOT IN ( col1 )
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + COUNT( * ) * - 26 AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1502
SELECT + COUNT ( * ) * - 26 AS col2 FROM tab1 AS cor0
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT DISTINCT SUM( - 36 ) AS col2 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT SUM ( - 36 ) AS col2 FROM tab0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT ALL + col1 DIV + - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + col1 / + - col2 FROM tab2
----
-1
-1
-2

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

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

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab2 AS cor0
----
23
40
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE CAST( - col2 AS SIGNED ) + - col0 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE CAST ( - col2 AS INTEGER ) + - col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1510
SELECT DISTINCT CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1510
SELECT DISTINCT CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col2 + 12 FROM tab1 AS cor0
----
108
71
80

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - 96 > + 75 + + col2 - col2
----

query I rowsort
SELECT DISTINCT col1 + 1 FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 20 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 87 IN ( - col2, 45 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT 25 + + - COUNT( * ) col2 FROM tab1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1518
SELECT 25 + + - COUNT ( * ) col2 FROM tab1
----
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT 33 * - MIN( - 16 ) + ( COUNT( * ) ) AS col2 FROM tab1
----
531

skipif mysql # not compatible
query I rowsort label-1520
SELECT 33 * - MIN ( - 16 ) + ( COUNT ( * ) ) AS col2 FROM tab1
----
531

onlyif mysql # DIV for integer division: 
query I rowsort label-1521
SELECT + col2 DIV + - col2 + - + col0 AS col2 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-1521
SELECT + col2 / + - col2 + - + col0 AS col2 FROM tab2
----
-47
-65
-76

query I rowsort
SELECT DISTINCT 38 + col1 * + + col0 + + + col2 FROM tab0
----
1300
1875
234

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1523
SELECT + col2 * 37 + CAST( NULL AS SIGNED ) / col0 / - col2 AS col1, CAST( NULL AS SIGNED ) AS col0, - - col1 FROM tab2
----
9 values hashing to 57bed11b9f9aed7118d5791f447413cc

skipif mysql # not compatible
query III rowsort label-1523
SELECT + col2 * 37 + CAST ( NULL AS INTEGER ) / col0 / - col2 AS col1, CAST ( NULL AS INTEGER ) AS col0, - - col1 FROM tab2
----
9 values hashing to 57bed11b9f9aed7118d5791f447413cc

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 16 + 1
----

query I rowsort
SELECT + 57 - - + ( - col0 ) FROM tab1
----
-28
-34
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT DISTINCT + SUM( ALL - 27 ) AS col2 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT + SUM ( ALL - 27 ) AS col2 FROM tab1
----
-81

query II rowsort
SELECT ALL 17, col0 * - - col0 AS col1 FROM tab1
----
17
2601
17
7225
17
8281

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

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

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

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

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

query I rowsort
SELECT + ( - 95 ) + col2 + + col1 * - 43 * + + col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - - col1 ) + col2 + + 76 * + + 25 col2 FROM tab2 WHERE - 7 * col1 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * 6 AS col1, 98 FROM tab2 AS cor0
----
138
98
240
98
348
98

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < 66 * - - col0 - - col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1537
SELECT ALL - 83 * + 32 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + 87 AND + col1 + 26
----

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL - 83 * + 32 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN + 87 AND + col1 + 26
----

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL MAX ( - + col0 ) FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1539
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT DISTINCT - 27 * + COUNT( col2 ) + + MIN( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - 27 * + COUNT ( col2 ) + + MIN ( DISTINCT - - col2 ) AS col1 FROM tab1 cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT COUNT( ALL + - col1 ) + 65 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-1541
SELECT COUNT ( ALL + - col1 ) + 65 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1542
SELECT ALL - col0 + col2 + ( col0 ) DIV col0 FROM tab2 AS cor0
----
-16
-22
-23

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - col0 + col2 + ( col0 ) / col0 FROM tab2 AS cor0
----
-16
-22
-23

query I rowsort
SELECT ALL - - col0 + + + col0 + 18 + 92 * - + col0 - + - col2 AS col1 FROM tab1 AS cor0
----
-4476
-7573
-8104

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

query II rowsort
SELECT + + col0 + 10 + - 95 AS col2, 11 FROM tab2 AS cor0
----
-10
11
-21
11
-39
11

query I rowsort
SELECT ALL + col0 + + - 41 AS col0 FROM tab0 AS cor0
----
-26
46
56

query I rowsort
SELECT DISTINCT + col2 + 28 FROM tab2 AS cor0
----
51
68
86

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab1 AS cor0
----
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT - 86 * + 78 + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
-6699

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - 86 * + 78 + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
-6699

query I rowsort
SELECT - + col2 - 65 FROM tab2 AS cor0
----
-105
-123
-88

query I rowsort
SELECT + + col0 * - 73 - - col1 AS col1 FROM tab2 AS cor0
----
-3307
-4595
-5408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND - 90 + - - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - COUNT( * ) + - COUNT( - ( - 51 ) ) AS col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1554
SELECT - COUNT ( * ) + - COUNT ( - ( - 51 ) ) AS col0 FROM tab0 cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <> ( + 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - MAX( ALL - - col2 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1557
SELECT - MAX ( ALL - - col2 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
174

query I rowsort
SELECT ALL + 53 * + 60 FROM tab0 AS cor0
----
3180
3180
3180

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1560
SELECT 6 DIV - - 34 - - 7 AS col2, + col0 + 53 FROM tab2 AS cor0
----
7
117
7
128
7
99

skipif mysql # not compatible
query II rowsort label-1560
SELECT 6 / - - 34 - - 7 AS col2, + col0 + 53 FROM tab2 AS cor0
----
7
117
7
128
7
99

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1563
SELECT COUNT( * ) col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1563
SELECT COUNT ( * ) col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3
NULL

query I rowsort
SELECT DISTINCT + - col0 * - 32 * + col1 + + 43 FROM tab0 WHERE - 18 + - col0 * - col2 = NULL
----

query I rowsort
SELECT DISTINCT - ( 12 ) AS col0 FROM tab0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * + + 5 col0 FROM tab1
----
-17405
-23120
-46080

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT SUM( DISTINCT + 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1567
SELECT SUM ( DISTINCT + 90 ) FROM tab2
----
90

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

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL COUNT ( * ) / ( 8 ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1569
SELECT COUNT( * ), MIN( ALL + + col1 ) col0 FROM tab2 AS cor0
----
3
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1569
SELECT COUNT ( * ), MIN ( ALL + + col1 ) col0 FROM tab2 AS cor0
----
3
51

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT - + 37 < 71
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1572
SELECT + 19 * + + col0 / - 32 * + 78 AS col1 FROM tab1 WHERE - + col1 * CAST( NULL AS SIGNED ) / - col0 + - ( + + col1 ) + + - col0 <> - col0
----

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 19 * + + col0 / - 32 * + 78 AS col1 FROM tab1 WHERE - + col1 * CAST ( NULL AS INTEGER ) / - col0 + - ( + + col1 ) + + - col0 <> - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1573
SELECT MIN( DISTINCT - col1 ) AS col1, + MIN( - - col2 ) AS col2 FROM tab2
----
-77
23

skipif mysql # not compatible
query II rowsort label-1573
SELECT MIN ( DISTINCT - col1 ) AS col1, + MIN ( - - col2 ) AS col2 FROM tab2
----
-77
23

query I rowsort
SELECT DISTINCT - - 52 + + - 2 AS col0 FROM tab0 AS cor0
----
50

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

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

query II rowsort
SELECT ALL + 74 AS col2, 28 AS col1 FROM tab2
----
74
28
74
28
74
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - 48 * + MIN( + 22 ) + COUNT( * ) + - 79 col1 FROM tab2
----
-1132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1577
SELECT - 48 * + MIN ( + 22 ) + COUNT ( * ) + - 79 col1 FROM tab2
----
-1132

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NOT NULL AND NOT NULL IN ( ( 85 ) + - col0 )
----

query I rowsort
SELECT col0 * + + col1 AS col0 FROM tab0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 87 BETWEEN - - col0 AND - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1581
SELECT ALL + + 42 FROM tab2 WHERE NOT - - col1 IN ( - - 7, + CAST( + 52 AS DECIMAL ) )
----
42
42
42

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL + + 42 FROM tab2 WHERE NOT - - col1 IN ( - - 7, + CAST ( + 52 AS REAL ) )
----
42
42
42

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT - ( MAX( DISTINCT + - col1 ) ) * + COUNT( * ) * - 26 FROM tab1 AS cor0
----
-390

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT - ( MAX ( DISTINCT + - col1 ) ) * + COUNT ( * ) * - 26 FROM tab1 AS cor0
----
-390

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( 14 ) IS NULL
----
-46
-64
-75

query I rowsort
SELECT + 81 * + 64 + + col2 + col0 AS col0 FROM tab2 AS cor0
----
5253
5288
5317

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

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

query I rowsort
SELECT - col1 * + - 43 AS col1 FROM tab2
----
2193
2881
3311

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1590
SELECT DISTINCT 78 AS col1, MIN( DISTINCT + col0 ) FROM tab0
----
78
15

skipif mysql # not compatible
query II rowsort label-1590
SELECT DISTINCT 78 AS col1, MIN ( DISTINCT + col0 ) FROM tab0
----
78
15

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT + ( + col1 ) >= + col0 / - 40 + - + 9 + - 31
----

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

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

query II rowsort
SELECT + col1 AS col2, 44 + - + col1 * col0 AS col2 FROM tab0
----
1
-53
21
-1783
81
-1171

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-1598
SELECT ALL + col2 + - col1 DIV 52 AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + col2 + - col1 / 52 AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1599
SELECT SUM( + ( - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) / - MAX( + + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT SUM ( + ( - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) ) ) / - MAX ( + + col0 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 91 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col0 + + + 66 FROM tab1 AS cor0
----
117
151
157

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1603
SELECT + col0 + + col0 DIV 32 col0 FROM tab1 AS cor0
----
52
87
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1603
SELECT + col0 + + col0 / 32 col0 FROM tab1 AS cor0
----
52
87
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + + 48 * + ( + COUNT( * ) ) + - - 45 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1604
SELECT + + 48 * + ( + COUNT ( * ) ) + - - 45 FROM tab2 AS cor0
----
189

query I rowsort
SELECT DISTINCT - + col1 * 38 AS col0 FROM tab1 AS cor0
----
-1786
-190
-532

query I rowsort
SELECT - - 38 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1211
3118
3924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1607
SELECT DISTINCT ( + + ( + CAST( NULL AS SIGNED ) ) ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT ( + + ( + CAST ( NULL AS INTEGER ) ) ) + col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT + ( + col2 ) AS col0, + 57 AS col0 FROM tab2 AS cor0
----
23
57
40
57
58
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - 31 * - + 4 col0 FROM tab1 AS cor0
----
33
39
73

query II rowsort
SELECT ALL col0 - - - col0 AS col2, 24 FROM tab1 AS cor0
----
0
24
0
24
0
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1612
SELECT DISTINCT 9 + - 61, CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
-52
51
-52
85
-52
91

skipif mysql # not compatible
query II rowsort label-1612
SELECT DISTINCT 9 + - 61, CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
-52
51
-52
85
-52
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - + col2 - - col2 < + col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 > + col2
----
87
21
10

query I rowsort
SELECT DISTINCT 22 + - + col1 * col0 FROM tab0
----
-1193
-1805
-75

query I rowsort
SELECT DISTINCT + 55 * + - col0 FROM tab1
----
-2805
-4675
-5005

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT DISTINCT + col2 DIV + 89 * + col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT + col2 / + 89 * + col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT + 4 * + 85 * COUNT( * ) FROM tab0 AS cor0
----
1020

skipif mysql # not compatible
query I rowsort label-1619
SELECT + 4 * + 85 * COUNT ( * ) FROM tab0 AS cor0
----
1020

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT ALL - SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL - SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT DISTINCT - 64 - - 87 * - col0, col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1623
SELECT - + 3 DIV + - 59 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1623
SELECT - + 3 / + - 59 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 47 * - col1 AS col1 FROM tab2 AS cor0
----
-2397
-3149
-3619

onlyif mysql # aggregate syntax: 
query II rowsort label-1625
SELECT ALL - - 60, COUNT( * ) AS col2 FROM tab2 AS cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-1625
SELECT ALL - - 60, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
60
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1626
SELECT - 58 col2, COUNT( * ) col2 FROM tab0 AS cor0
----
-58
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1626
SELECT - 58 col2, COUNT ( * ) col2 FROM tab0 AS cor0
----
-58
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1627
SELECT + col0 DIV + 80 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT + col0 / + 80 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT + - COUNT( * ) * - 88 * + - COUNT( * ) AS col2 FROM tab0 cor0
----
-792

skipif mysql # not compatible
query I rowsort label-1628
SELECT + - COUNT ( * ) * - 88 * + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1629
SELECT ALL - ( SUM( + - 74 ) ) * CAST( - + ( - COUNT( * ) ) AS SIGNED ) col1 FROM tab2 WHERE NOT - col1 + + ( + 88 ) IS NULL
----
666

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1629
SELECT ALL - ( SUM ( + - 74 ) ) * CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) col1 FROM tab2 WHERE NOT - col1 + + ( + 88 ) IS NULL
----
666

query I rowsort
SELECT - + col1 AS col1 FROM tab1 WHERE NOT NULL < - - ( - 96 )
----

query I rowsort
SELECT ALL col1 * - 55 FROM tab1
----
-2585
-275
-770

query I rowsort
SELECT col2 * col2 * 45 AS col0 FROM tab0
----
441045
4500
99405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1633
SELECT ALL - CAST( NULL AS DECIMAL ) * - 31 + 77 + - col1 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - CAST ( NULL AS REAL ) * - 31 + 77 + - col1 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1634
SELECT - + col2 / + - col0 + + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT - + col2 / + - col0 + + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1635
SELECT ALL + - col1 + + ( CAST( NULL AS SIGNED ) ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL + - col1 + + ( CAST ( NULL AS INTEGER ) ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + 44 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT + 67 DIV + + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 67 / + + col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + + 63 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 70 + 22 AS col2 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT DISTINCT - 30 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - 30 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 9 - - col0 * - - 83 * + col0 FROM tab2 AS cor0
----
175619
339959
466866

query I rowsort
SELECT DISTINCT + col1 - - - col1 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + + ( col2 ) DIV 51 * + col1 DIV + - 67 + + col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1643
SELECT + + ( col2 ) / 51 * + col1 / + - 67 + + col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + 38 * - col1 FROM tab0
----
-3078
-38
-798

query II rowsort
SELECT col1 AS col1, + 85 FROM tab1
----
14
85
47
85
5
85

query II rowsort
SELECT + col1 AS col1, ( + - 20 ) - + 46 AS col2 FROM tab1
----
14
-66
47
-66
5
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT ALL + col1 DIV 16 * - col1 AS col0 FROM tab2
----
-153
-268
-308

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + col1 / 16 * - col1 AS col0 FROM tab2
----
-153
-268
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL + SUM( + 17 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + SUM ( + 17 ) FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL > 87 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT 56 IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + col2, col0 * - - col0 + - 33 FROM tab0 AS cor0
----
10
7536
47
192
99
9376

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1652
SELECT col1, - CAST( NULL AS SIGNED ) / col0 * - col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-1652
SELECT col1, - CAST ( NULL AS INTEGER ) / col0 * - col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1653
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab1 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col0 FROM tab2
----
19
19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT - - MAX( CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1655
SELECT - - MAX ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + 97 + + - col1 AS col2 FROM tab1 cor0
----
50
83
92

query I rowsort
SELECT DISTINCT - + 37 AS col1 FROM tab2 cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - COUNT( * ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1659
SELECT - COUNT ( * ) + + COUNT ( * ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 8 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-4888
-5007
-6180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1661
SELECT DISTINCT + 88 + + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT + 88 + + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1662
SELECT * FROM tab1 WHERE NOT - col0 + - + 71 * - - ( - + 19 ) BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1662
SELECT * FROM tab1 WHERE NOT - col0 + - + 71 * - - ( - + 19 ) BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, col0 col2 FROM tab2
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab1 WHERE - + 20 * + col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE 92 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL col0 + 58 AS col2 FROM tab2 AS cor0
----
104
122
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT DISTINCT + col2 + + - 76 + + col2 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
44
98

skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT + col2 + + - 76 + + col2 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
44
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT COUNT( + + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1671
SELECT COUNT ( + + col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT SUM( + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1672
SELECT SUM ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1673
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT ( col2 ) / + - col2 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT + SUM( 92 ) FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-1675
SELECT + SUM ( 92 ) FROM tab1 AS cor0
----
276

query I rowsort
SELECT ALL + - 90 + ( - - 66 ) FROM tab2 AS cor0
----
-24
-24
-24

query II rowsort
SELECT DISTINCT + - col2 - col0 AS col0, ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-144
-5
-147
-14
-159
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 92
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 73 NOT IN ( - + col1, 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 29 * + + 28 FROM tab2
----
812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 94 col0, + col0 AS col2 FROM tab1
----
94
51
94
85
94
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL SUM( ALL - ( + 6 ) ) AS col1 FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL SUM ( ALL - ( + 6 ) ) AS col1 FROM tab1
----
-18

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT + col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 28 * - - 86 FROM tab1
----
2408

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT + col1 * + - 83 + + - 90 * - col2 * - + 95 + - 12 DIV - + col0 FROM tab2 AS cor0
----
-200883
-348391
-501461

skipif mysql # not compatible
query I rowsort label-1685
SELECT + col1 * + - 83 + + - 90 * - col2 * - + 95 + - 12 / - + col0 FROM tab2 AS cor0
----
-200883
-348391
-501461

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1686
SELECT ALL CAST( + + col1 AS SIGNED ) * - col1 AS col1, col1 FROM tab0 AS cor0
----
-1
1
-441
21
-6561
81

skipif mysql # not compatible
query II rowsort label-1686
SELECT ALL CAST ( + + col1 AS INTEGER ) * - col1 AS col1, col1 FROM tab0 AS cor0
----
-1
1
-441
21
-6561
81

query I rowsort
SELECT DISTINCT + 99 * col2 * col1 FROM tab0 cor0
----
20790
376893
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT - 50 * - COUNT( col0 ) AS col1 FROM tab2 cor0
----
150

skipif mysql # not compatible
query I rowsort label-1688
SELECT - 50 * - COUNT ( col0 ) AS col1 FROM tab2 cor0
----
150

query I rowsort
SELECT ALL + + col1 * + ( + col1 ) + - ( col0 ) * - - 62 FROM tab0 AS cor0
----
-4953
-6013
5631

query I rowsort
SELECT ALL - 69 * + 44 FROM tab2 AS cor0
----
-3036
-3036
-3036

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1691
SELECT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL + MAX( ALL col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + MAX ( ALL col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL + col2 * col1 * - col1 AS col0 FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT - - 8 * + col0 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1695
SELECT + 86 * - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1204
-4042
-430

skipif mysql # not compatible
query I rowsort label-1695
SELECT + 86 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1204
-4042
-430

query I rowsort
SELECT ALL - col0 + col0 + + ( - - 88 ) FROM tab2 AS cor0
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab1 AS cor0
----
29
29
29

query II rowsort
SELECT DISTINCT col2, - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL - col0 + - 49 AS col1 FROM tab0 AS cor0
----
-136
-146
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col2 BETWEEN + + col2 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 WHERE NOT 44 + + - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 WHERE NOT 44 + + - col1 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT + 55 * - - 51 * col2 FROM tab2
----
112200
162690
64515

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col0 - 77 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + + 6 * - col1 col0 FROM tab0
----
-102
-192
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT - 94 + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - 94 + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 > ( + + 4 * + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1708
SELECT DISTINCT + COUNT( * ) + + CAST( - + 36 AS SIGNED ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT + COUNT ( * ) + + CAST ( - + 36 AS INTEGER ) FROM tab0 cor0
----
-33

query I rowsort
SELECT + + col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 48 col0 FROM tab1 cor0
----
11
20
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1711
SELECT * FROM tab0 WHERE NULL IN ( - col0 * + col2 + + col2 + + + col0 - - col0 * ( - col0 ) * CAST( NULL AS SIGNED ) + - col2 + col0 * col2 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1711
SELECT * FROM tab0 WHERE NULL IN ( - col0 * + col2 + + col2 + + + col0 - - col0 * ( - col0 ) * CAST ( NULL AS INTEGER ) + - col2 + col0 * col2 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 > + 53
----
46
51
23

query III rowsort
SELECT * FROM tab2 WHERE - + 86 * col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1714
SELECT col2 * 51 DIV col0, col1 AS col0 FROM tab1
----
35
5
38
47
96
14

skipif mysql # not compatible
query II rowsort label-1714
SELECT col2 * 51 / col0, col1 AS col0 FROM tab1
----
35
5
38
47
96
14

query I rowsort
SELECT 61 - + + 19 AS col1 FROM tab1
----
42
42
42

query I rowsort
SELECT col2 * + ( 18 ) * + + col1 FROM tab1 AS cor0
----
24192
5310
57528

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( NOT col2 * col0 < NULL )
----

query I rowsort
SELECT 65 AS col1 FROM tab2 cor0 WHERE NOT col1 * - ( col1 ) * - col1 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL = NULL )
----

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col0 AND + + 46 )
----

query I rowsort
SELECT + 64 * col1 + - 62 FROM tab0 AS cor0 WHERE NOT col1 / + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT + MAX( - ( col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1722
SELECT + MAX ( - ( col1 ) ) FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1723
SELECT - 96 * - col0, 36 - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1723
SELECT - 96 * - col0, 36 - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - + 83, - col0 AS col1 FROM tab1 AS cor0
----
-83
-51
-83
-85
-83
-91

query I rowsort
SELECT 95 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT MIN( + - col0 ) col1 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT MIN ( + - col0 ) col1 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 > + 56
----
46
51
23

query I rowsort
SELECT - ( - 66 ) FROM tab2 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT COUNT( ALL col0 ) * + 27 col1 FROM tab1 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1729
SELECT DISTINCT COUNT ( ALL col0 ) * + 27 col1 FROM tab1 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1730
SELECT ALL - CAST( - ( + 14 ) AS SIGNED ) DIV + + 84 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - CAST ( - ( + 14 ) AS INTEGER ) / + + 84 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT - 97 * COUNT( * ) * COUNT( ALL col1 ) AS col0 FROM tab1
----
-873

skipif mysql # not compatible
query I rowsort label-1731
SELECT - 97 * COUNT ( * ) * COUNT ( ALL col1 ) AS col0 FROM tab1
----
-873

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT DISTINCT + - 54 DIV + 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT + - 54 / + 92 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1733
SELECT DISTINCT col1, CAST( NULL AS SIGNED ) + - 3 / - - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1733
SELECT DISTINCT col1, CAST ( NULL AS INTEGER ) + - 3 / - - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT ALL + COUNT( * ) * - MAX( - 78 ) AS col0 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + COUNT ( * ) * - MAX ( - 78 ) AS col0 FROM tab2
----
234

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL COUNT( DISTINCT - - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL COUNT ( DISTINCT - - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + col1 * - 95 * - 64 * + col1 + col1 FROM tab2 AS cor0
----
-15814029
-27293053
-36048243

query I rowsort
SELECT ALL + + col2 + col2 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1127
-3000
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1739
SELECT COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT + - col0 + + + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT ALL MAX( + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL MAX ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT - COUNT( * ) + + COUNT( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT - COUNT ( * ) + + COUNT ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT 85 * col2 + + col2 FROM tab2
----
1978
3440
4988

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT DISTINCT ( - - ( + MAX( 98 ) ) ) AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT ( - - ( + MAX ( 98 ) ) ) AS col1 FROM tab2
----
98

query II rowsort
SELECT + col0 * + col2 AS col1, 64 * - + col1 FROM tab2
----
1058
-3264
2560
-4928
4350
-4288

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT ALL 85 DIV - - col0 + - ( col0 ) + - col2 FROM tab0
----
-196
-57
-97

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 85 / - - col0 + - ( col0 ) + - col2 FROM tab0
----
-196
-57
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT DISTINCT + 17 * col2 DIV + col0 FROM tab0
----
1
17
53

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + 17 * col2 / + col0 FROM tab0
----
1
17
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( - col1 ) - - ( - - 72 ) * - 25 col0 FROM tab2 AS cor0
----
-1792
-1805
-1813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1751
SELECT DISTINCT - col1 + - CAST( ( - - 96 ) AS SIGNED ) FROM tab1 AS cor0
----
-101
-110
-143

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - col1 + - CAST ( ( - - 96 ) AS INTEGER ) FROM tab1 AS cor0
----
-101
-110
-143

query I rowsort
SELECT DISTINCT - - col0 - col2 AS col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 - ( - ( - - col2 ) ) + - col2 + - 24 * + col2 * col2 * + + col0 col2 FROM tab2 AS cor0
----
-2457699
-584115
-6055299

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT MAX( 47 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT MAX ( 47 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
47

query I rowsort
SELECT + 55 * col0 * col0 FROM tab2 AS cor0
----
116380
225280
309375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 27 col0 FROM tab1 cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 col2 FROM tab0 cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1759
SELECT ALL MIN( col2 ), + 44 col2 FROM tab1 AS cor0
----
59
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1759
SELECT ALL MIN ( col2 ), + 44 col2 FROM tab1 AS cor0
----
59
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT MIN( ALL col2 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT MIN ( ALL col2 ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1761
SELECT + CAST( + + 34 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-1761
SELECT + CAST ( + + 34 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1762
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE - col2 + - col0 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - col2 + - col0 <= - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 3 + - col1 FROM tab2
----
-51
-48
-67
-64
-77
-74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * col0 + 8 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + + 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT ALL + CAST( 12 AS SIGNED ) AS col1 FROM tab0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-1766
SELECT ALL + CAST ( 12 AS INTEGER ) AS col1 FROM tab0
----
12
12
12

query II rowsort
SELECT DISTINCT col1, - 5 * col0 AS col1 FROM tab2
----
51
-230
67
-375
77
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT MAX( DISTINCT + - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT MAX ( DISTINCT + - col0 ) AS col1 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE - - ( col1 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 * + 48 AS col1 FROM tab1
----
2832
3264
4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT 14 * - COUNT( * ) FROM tab2 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1771
SELECT 14 * - COUNT ( * ) FROM tab2 cor0
----
-42

query I rowsort
SELECT 48 + col0 * col0 FROM tab1
----
2649
7273
8329

query I rowsort
SELECT DISTINCT + col2 * col2 + 14 FROM tab2
----
1614
3378
543

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - 52 AS col0 FROM tab2
----
-6
12
23

query III rowsort
SELECT * FROM tab0 WHERE 20 / 78 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab2 WHERE 61 = ( 47 )
----

query I rowsort
SELECT + col2 * - 19 FROM tab1 WHERE NOT 65 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT MAX( ALL ( col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1780
SELECT MAX ( ALL ( col2 ) ) FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN + 2 + - 94 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT - col2 * 39 AS col0 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT DISTINCT 55 * 35 FROM tab1
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT MAX( DISTINCT 87 ) AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1785
SELECT MAX ( DISTINCT 87 ) AS col0 FROM tab0
----
87

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE ( - ( - 0 ) + - col1 ) BETWEEN 31 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT - 45 * SUM( DISTINCT 43 ) AS col0 FROM tab1
----
-1935

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT - 45 * SUM ( DISTINCT 43 ) AS col0 FROM tab1
----
-1935

query III rowsort
SELECT * FROM tab2 WHERE + 27 / + col0 <= - col1
----

query I rowsort
SELECT 77 FROM tab0 WHERE ( col2 ) NOT BETWEEN ( NULL ) AND ( 16 )
----
77
77

query I rowsort
SELECT ALL + 85 * + col2 FROM tab0
----
3995
8415
850

query I rowsort
SELECT ALL - col0 * 16 AS col0 FROM tab2
----
-1024
-1200
-736

onlyif mysql # DIV for integer division: 
query I rowsort label-1792
SELECT + ( col2 ) DIV col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1792
SELECT + ( col2 ) / col1 col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1793
SELECT + col2 DIV - ( 98 * + col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1793
SELECT + col2 / - ( 98 * + col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 * col1 + + 77 AS col2 FROM tab1
----
102
2286
273

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT - 47 + COUNT( * ) FROM tab0 WHERE - 43 IS NOT NULL
----
-44

skipif mysql # not compatible
query I rowsort label-1795
SELECT - 47 + COUNT ( * ) FROM tab0 WHERE - 43 IS NOT NULL
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT COUNT( 43 ) * COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1796
SELECT COUNT ( 43 ) * COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + col2 IS NULL
----

query I rowsort
SELECT col1 * + 50 FROM tab2
----
2550
3350
3850

query I rowsort
SELECT 67 * 70 AS col2 FROM tab0
----
4690
4690
4690

query I rowsort
SELECT DISTINCT 11 * - 78 FROM tab0
----
-858

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1801
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1801
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ALL ( 50 ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL ( 50 ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL - 9 * + SUM( col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - 9 * + SUM ( col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT - COUNT( * ) * - ( 93 ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-1804
SELECT - COUNT ( * ) * - ( 93 ) FROM tab2
----
279

query I rowsort
SELECT 47 * - 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5dcb2b44f46dfa1bd36261238e9bb8df

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT - COUNT( DISTINCT col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT - COUNT ( DISTINCT col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT + COUNT( ALL 64 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT + COUNT ( ALL 64 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 - - ( col0 ) ) NOT BETWEEN 7 AND + 59 * - 26
----

query I rowsort
SELECT ALL - 18 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-18
-18
-18

query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ( - COUNT( + col1 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1811
SELECT ( - COUNT ( + col1 ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col0 + - ( 66 ) FROM tab1 WHERE NOT NULL NOT IN ( + 90 )
----

query I rowsort
SELECT ALL + 98 FROM tab1 WHERE ( NULL ) > 26 + - 82
----

query I rowsort
SELECT ALL + 8 AS col1 FROM tab0 WHERE ( NULL ) = ( NULL ) OR NULL <> col2
----

query I rowsort
SELECT DISTINCT ( 83 ) AS col0 FROM tab0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1816
SELECT DISTINCT - COUNT( + col2 ) * - ( 65 ) FROM tab2 WHERE NULL >= CAST( NULL AS SIGNED ) / 40
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - COUNT ( + col2 ) * - ( 65 ) FROM tab2 WHERE NULL >= CAST ( NULL AS INTEGER ) / 40
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) <= ( col2 ) * 86 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT + col2 + + CAST( + col2 AS SIGNED ) + + ( ( + col1 ) ) FROM tab1 cor0
----
123
183
206

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + col2 + + CAST ( + col2 AS INTEGER ) + + ( ( + col1 ) ) FROM tab1 cor0
----
123
183
206

query I rowsort
SELECT col0 * 89 * - 68 FROM tab0 AS cor0
----
-526524
-587044
-90780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT DISTINCT COUNT( * ) DIV - - 40 + - SUM( 32 ) FROM tab1, tab0 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT COUNT ( * ) / - - 40 + - SUM ( 32 ) FROM tab1, tab0 cor0
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT ALL - col0 + + 90 - + + CAST( + col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
-630
-867
-9610

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - col0 + + 90 - + + CAST ( + col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-630
-867
-9610

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab0 cor0
----
6

query I rowsort
SELECT + col2 + - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE - 58 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL + COUNT( * ) + MAX( ALL + 43 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL + COUNT ( * ) + MAX ( ALL + 43 ) AS col0 FROM tab2 cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1829
SELECT - + SUM( - col2 ) + + CAST( - 40 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-1829
SELECT - + SUM ( - col2 ) + + CAST ( - 40 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
116

query I rowsort
SELECT 67 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 98 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT SUM( ALL - col2 ) - + + MAX( DISTINCT - 61 ) col2 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT DISTINCT SUM ( ALL - col2 ) - + + MAX ( DISTINCT - 61 ) col2 FROM tab0 AS cor0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + col1 <= ( + 6 )
----

query I rowsort
SELECT ALL + 18 * - col0 * - 13 + col1 + - col0 FROM tab0 AS cor0
----
20292
22602
3576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1835
SELECT ALL + 70 DIV - MIN( col2 ) col1 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1835
SELECT ALL + 70 / - MIN ( col2 ) col1 FROM tab1
----
-1

query II rowsort
SELECT ALL ( + col1 ), col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT + col2 * - col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT + col2 * - col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL - + MAX( ALL + 16 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - + MAX ( ALL + 16 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - + 94 FROM tab1 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1841
SELECT DISTINCT - + 64 DIV - - 20 + - COUNT( * ) * 84 FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT - + 64 / - - 20 + - COUNT ( * ) * 84 FROM tab2 AS cor0
----
-255

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 14 - + 22 > NULL
----

query I rowsort
SELECT + col2 - + 29 FROM tab2 AS cor0
----
-6
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT MIN( ALL - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1844
SELECT MIN ( ALL - + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT - 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT - col1 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - col1 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1847
SELECT ALL + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 17 = ( 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 17 = ( 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT - 89 * ( MAX( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-8099

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT - 89 * ( MAX ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-8099

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + col0 ) IS NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT DISTINCT + CAST( 20 AS SIGNED ) col0 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT DISTINCT + CAST ( 20 AS INTEGER ) col0 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT ALL + 82 + + SUM( + col2 ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 * - 40 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + 82 + + SUM ( + col2 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 * - 40 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL - col0 / + col1 + + col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col0 ) NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - col0 / + col1 + + col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col0 ) NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1853
SELECT ALL - CAST( - + 12 AS DECIMAL ) + col0 * - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= 6
----

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - CAST ( - + 12 AS REAL ) + col0 * - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= 6
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1854
SELECT ALL - ( + col0 ) DIV - col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL - ( + col0 ) / - col2 AS col1 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT MIN( DISTINCT - 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-1855
SELECT MIN ( DISTINCT - 76 ) FROM tab0
----
-76

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 66 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT + COUNT( * ) + + MIN( DISTINCT + + 58 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1858
SELECT + COUNT ( * ) + + MIN ( DISTINCT + + 58 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT - col0 + 1 AS col1 FROM tab2 AS cor0
----
-45
-63
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - + col0 NOT IN ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 50 )
----

query I rowsort
SELECT DISTINCT col0 * - 87 + + col2 AS col1 FROM tab1
----
-4341
-7336
-7849

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT - COUNT( + 94 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT - COUNT ( + 94 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 40 - col0 AS col0 FROM tab2
----
-24
-35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - SUM( - + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - SUM ( - + col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT DISTINCT col0 - + - 82 FROM tab2
----
128
146
157

query I rowsort
SELECT 8 + - 14 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT col2 * + ( - ( ( 17 ) ) ) FROM tab0
----
-1683
-170
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 50 col2 FROM tab2 AS cor0 WHERE NOT ( - 0 ) IS NULL
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + - 31
----
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + - 31
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE - 14 = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT ALL + + 79 AS col0 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT + COUNT( * ) * 61 AS col0 FROM tab0 cor0
----
183

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT + COUNT ( * ) * 61 AS col0 FROM tab0 cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT + 16 * MAX( + 65 ) FROM tab0 AS cor0
----
1040

skipif mysql # not compatible
query I rowsort label-1875
SELECT + 16 * MAX ( + 65 ) FROM tab0 AS cor0
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + ( + ( - + COUNT( * ) ) ) * + 60 AS col1 FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1876
SELECT + ( + ( - + COUNT ( * ) ) ) * + 60 AS col1 FROM tab2 AS cor0
----
-180

query I rowsort
SELECT + 70 * - col0 FROM tab0 AS cor0
----
-1050
-6090
-6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT DISTINCT - + 14 * + + COUNT( * ) FROM tab1 cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT - + 14 * + + COUNT ( * ) FROM tab1 cor0
----
-42

query I rowsort
SELECT - 75 * 94 AS col2 FROM tab0 AS cor0
----
-7050
-7050
-7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT - 79 + ( col2 ) * + 35 * - CAST( + col2 AS SIGNED ) * col0 - + + col0 FROM tab1 AS cor0
----
-10356139
-14727610
-16450690

skipif mysql # not compatible
query I rowsort label-1880
SELECT - 79 + ( col2 ) * + 35 * - CAST ( + col2 AS INTEGER ) * col0 - + + col0 FROM tab1 AS cor0
----
-10356139
-14727610
-16450690

query I rowsort
SELECT col0 * - col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 75 ) IS NULL
----
18270
57105
9603

query I rowsort
SELECT col1 + + 3 - - col0 AS col1 FROM tab0
----
101
111
99

query I rowsort
SELECT + ( 4 ) AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 56 + - + col1 col2 FROM tab0
----
2551
539
5543

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT DISTINCT SUM( DISTINCT 4 ) AS col1 FROM tab1 WHERE NULL <= - - col1 / + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT SUM ( DISTINCT 4 ) AS col1 FROM tab1 WHERE NULL <= - - col1 / + col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1886
SELECT + 28 AS col1, - COUNT( * ) col2 FROM tab0
----
28
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1886
SELECT + 28 AS col1, - COUNT ( * ) col2 FROM tab0
----
28
-3

query III rowsort
SELECT * FROM tab2 WHERE col0 / 53 - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col0 + - - ( - col2 ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > 94 * + col2
----

query I rowsort
SELECT - - col2 * 7 AS col0 FROM tab2 AS cor0
----
161
280
406

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL COUNT( DISTINCT - 63 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL COUNT ( DISTINCT - 63 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT + SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1892
SELECT + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + + col0 + 18 + 79 AS col2 FROM tab2 AS cor0
----
143
161
172

query III rowsort
SELECT + 86 AS col0, col0 AS col2, + col1 * + + col0 FROM tab2 AS cor0
----
9 values hashing to 6ee1dcb8a7b6b9e1dc99c945bc5cfc57

query I rowsort
SELECT ALL - + col2 + 29 FROM tab0 AS cor0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT - CAST( + 68 AS SIGNED ) FROM tab0 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-1896
SELECT - CAST ( + 68 AS INTEGER ) FROM tab0 AS cor0
----
-68
-68
-68

query II rowsort
SELECT + 49 AS col2, 45 AS col2 FROM tab2 AS cor0
----
49
45
49
45
49
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + col1, col2, - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0 * + col1, col2, - 59 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col1 FROM tab0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab2 WHERE NOT NULL <> - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT + - 49 DIV 79 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT + - 49 / 79 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT COUNT( 90 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1903
SELECT COUNT ( 90 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL + - MIN( DISTINCT - - 59 ) FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + - MIN ( DISTINCT - - 59 ) FROM tab0 AS cor0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1905
SELECT + MIN( DISTINCT - 96 ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT + MIN ( DISTINCT - 96 ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 86 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT + col1 AS col0, 43 FROM tab0 AS cor0
----
1
43
21
43
81
43

query I rowsort
SELECT 43 * + - col2 - + col1 FROM tab1 cor0
----
-2542
-2971
-4142

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 45 NOT BETWEEN ( - 75 ) AND + col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL - COUNT( * ) * - COUNT( * ) + 19 * + + 7 + - - 13 * + MIN( - + 13 ) * - + MIN( - col0 ) FROM tab2 AS cor0
----
-12533

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + 19 * + + 7 + - - 13 * + MIN ( - + 13 ) * - + MIN ( - col0 ) FROM tab2 AS cor0
----
-12533

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL SUM( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL SUM ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - 68 + ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT - 89 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1913
SELECT - 89 / col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT + COUNT( * ) * - ( + COUNT( * ) ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + COUNT ( * ) * - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 / + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 25 AS col0 FROM tab0
----
106
26
46

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1918
SELECT ALL - col1 DIV + col1 + - col1 AS col0 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL - col1 / + col1 + - col1 AS col0 FROM tab2
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT DISTINCT - ( - COUNT( * ) ) * + COUNT( * ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1919
SELECT DISTINCT - ( - COUNT ( * ) ) * + COUNT ( * ) col2 FROM tab0
----
9

query I rowsort
SELECT - ( + ( + col1 ) ) + - - col2 AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT DISTINCT - 54 * - 94 + - - CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT - 54 * - 94 + - - CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 67 - col2 FROM tab1
----
-1
-29
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 95 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + COUNT( - 66 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( - 66 ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col0, - 9 AS col2 FROM tab0
----
-15
-9
-87
-9
-97
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - - 83 ) FROM tab2 cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT - - col2 * + + 31 FROM tab0 WHERE + col2 >= - col2
----
1457
3069
310

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT DISTINCT - col1 DIV col0 * - 10 * col1 + + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
-10
-99
4003

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - col1 / col0 * - 10 * col1 + + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NULL
----
-10
-99
4003

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL 30 + 44 - - SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-149

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL 30 + 44 - - SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-149

query II rowsort
SELECT DISTINCT + col0 + + col2 * - - 78 * + col1 + + col1 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
16488
21
297042
81
7820
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + MAX( DISTINCT 10 ) + + - 39 - - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1934
SELECT + MAX ( DISTINCT 10 ) + + - 39 - - COUNT ( * ) FROM tab2 AS cor0
----
-26

query I rowsort
SELECT ALL 48 * + col1 AS col1 FROM tab2 AS cor0
----
2448
3216
3696

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( - - 48 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1937
SELECT ALL 14 * + ( COUNT( * ) ) col1, 45 AS col0 FROM tab2
----
42
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1937
SELECT ALL 14 * + ( COUNT ( * ) ) col1, 45 AS col0 FROM tab2
----
42
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT 32 * - SUM( DISTINCT - - col1 ) * - 1 FROM tab1
----
2112

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT 32 * - SUM ( DISTINCT - - col1 ) * - 1 FROM tab1
----
2112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT + 80 DIV COUNT( * ) col1 FROM tab2
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1939
SELECT + 80 / COUNT ( * ) col1 FROM tab2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1940
SELECT - 46 / + CAST( NULL AS SIGNED ) * + col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1940
SELECT - 46 / + CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 + col2 BETWEEN - col1 + - ( + col0 ) / - 68 + col2 * - + 52 * - 20 * - - col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1942
SELECT DISTINCT - ( + - col0 ) - + col2 + - col1 DIV col0 * col0 * + + col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - ( + - col0 ) - + col2 + - col1 / col0 * col0 * + + col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 9 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1944
SELECT DISTINCT col1 * + + 92 * + col1 + - + col1 DIV + col2 FROM tab2 AS cor0
----
239290
412987
545467

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT col1 * + + 92 * + col1 + - + col1 / + col2 FROM tab2 AS cor0
----
239290
412987
545467

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NULL < ( 30 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 18 * + col0 + col2 * - - ( + 30 ) >= 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT ALL + ( - - 90 ) * + + COUNT( * ) FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL + ( - - 90 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
270

query I rowsort
SELECT + 16 * - col0 FROM tab1 AS cor0
----
-1360
-1456
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT DISTINCT - 19 DIV col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT - 19 / col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - - 74 + - col0 * - 60 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
5294
5894
974

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - + COUNT( + col2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1951
SELECT ALL - + COUNT ( + col2 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 * col1 * + col2 FROM tab1 cor0
----
-1475
-150212
-18816

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 86 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col2 * + - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1956
SELECT * FROM tab1 cor0 WHERE NOT 37 * + col2 <= + ( + col1 ) + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1956
SELECT * FROM tab1 cor0 WHERE NOT 37 * + col2 <= + ( + col1 ) + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT + col2 DIV + 66 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT + col2 / + 66 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) * - col2 * ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT MAX( + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1959
SELECT MAX ( + col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT - MIN( ( + 8 ) ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - MIN ( ( + 8 ) ) AS col1 FROM tab0
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-1962
SELECT ALL col1, + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-1962
SELECT ALL col1, + col2 / col0 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

query II rowsort
SELECT + + 21 * + 92 + + + col1, + col0 FROM tab2 AS cor0 WHERE NOT col0 - + col1 < + col2 * + col2
----

query I rowsort
SELECT ALL + 99 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT + 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query II rowsort
SELECT ALL + col2 AS col0, 11 AS col0 FROM tab0
----
10
11
47
11
99
11

query I rowsort
SELECT + col2 * - col1 * + 9 FROM tab1 WHERE NOT col0 IN ( + - col1, - 32 )
----
-12096
-2655
-28764

query II rowsort
SELECT - 92, + ( + col0 ) FROM tab1
----
-92
51
-92
85
-92
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT + MIN( - 82 ) FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1969
SELECT + MIN ( - 82 ) FROM tab1 AS cor0
----
-82

query I rowsort
SELECT 25 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT - 7 AS col0, col1 FROM tab2 AS cor0
----
-7
51
-7
67
-7
77

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE - col2 >= 33
----

query I rowsort
SELECT + - col0 * col2 / + col0 * + 20 * col2 + + ( - col2 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL - COUNT( ALL - + 23 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL - COUNT ( ALL - + 23 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT DISTINCT - 75 * + COUNT( * ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - 75 * + COUNT ( * ) FROM tab0
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT 89 * + + ( - 99 ) + - COUNT( * ) - + 47 * 7 - SUM( DISTINCT + ( + 37 ) ) * + 37 + - - 92 AS col0 FROM tab0
----
-10420

skipif mysql # not compatible
query I rowsort label-1976
SELECT 89 * + + ( - 99 ) + - COUNT ( * ) - + 47 * 7 - SUM ( DISTINCT + ( + 37 ) ) * + 37 + - - 92 AS col0 FROM tab0
----
-10420

query I rowsort
SELECT col0 + + 45 AS col2 FROM tab2
----
109
120
91

query I rowsort
SELECT DISTINCT col1 / - col0 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1979
SELECT DISTINCT - + col1 - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT - + col1 - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL - COUNT( * ) - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - COUNT ( * ) - - COUNT ( * ) FROM tab1
----
0

query II rowsort
SELECT ALL col1 AS col1, 79 * - col0 * + col2 AS col1 FROM tab1
----
14
-386784
47
-488852
5
-396185

query I rowsort
SELECT ALL - + 95 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col0 + - - 90 + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= ( - col0 + - - 90 + - col2 )
----
0

query I rowsort
SELECT ALL col1 * + 62 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + 18 * - col0 > ( col1 )
----
1302
5022
62

query II rowsort
SELECT DISTINCT + 36 AS col2, - col1 FROM tab0 AS cor0
----
36
-1
36
-21
36
-81

query I rowsort
SELECT + col1 * - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1988
SELECT + COUNT( * ), + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1988
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - col1 - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1990
SELECT - col0 * - 66 AS col2, CAST( - col1 AS SIGNED ) FROM tab0
----
5742
-21
6402
-1
990
-81

skipif mysql # not compatible
query II rowsort label-1990
SELECT - col0 * - 66 AS col2, CAST ( - col1 AS INTEGER ) FROM tab0
----
5742
-21
6402
-1
990
-81

query I rowsort
SELECT + 51 * - - col0 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1992
SELECT DISTINCT + 69 DIV - - col2 AS col0, 23 FROM tab1
----
0
23
1
23

skipif mysql # not compatible
query II rowsort label-1992
SELECT DISTINCT + 69 / - - col2 AS col0, 23 FROM tab1
----
0
23
1
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1993
SELECT + CAST( NULL AS DECIMAL ) / COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT + CAST ( NULL AS REAL ) / COUNT ( * ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT - col0 * - col1 * - col0 * - - 56 BETWEEN col1 AND ( - - col2 )
----
-10
-47
-99

query II rowsort
SELECT DISTINCT 37 AS col1, + 72 AS col2 FROM tab2, tab1 AS cor0
----
37
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT DISTINCT - COUNT( * ) + + - 3 AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT - COUNT ( * ) + + - 3 AS col2 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * + col1 col1 FROM tab2 AS cor0
----
2295
3015
3465

query I rowsort
SELECT ALL col2 + + + col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT DISTINCT + + CAST( + CAST( - 55 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + + CAST ( + CAST ( - 55 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-55

query II rowsort
SELECT - col2 * 57, col1 FROM tab0 cor0
----
-2679
81
-5643
1
-570
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT 18 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT 18 / + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT - MIN( + + 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - MIN ( + + 36 ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + COUNT( * ) + - 41 AS col2 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2003
SELECT + COUNT ( * ) + - 41 AS col2 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT + ( - 13 ) * - col1 FROM tab2 cor0
----
1001
663
871

query I rowsort
SELECT ALL - - col0 - - col2 AS col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT ALL 15 * - + SUM( ALL + col2 ) - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL 15 * - + SUM ( ALL + col2 ) - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT ALL - col2 AS col0, 69 FROM tab2
----
-23
69
-40
69
-58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT COUNT( - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT COUNT ( - col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 AND + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2010
SELECT ALL col1, 67 DIV - ( - 26 ) FROM tab1
----
14
2
47
2
5
2

skipif mysql # not compatible
query II rowsort label-2010
SELECT ALL col1, 67 / - ( - 26 ) FROM tab1
----
14
2
47
2
5
2

query I rowsort
SELECT DISTINCT + 35 + ( + col1 ) * + 88 AS col2 FROM tab2
----
4523
5931
6811

query I rowsort
SELECT DISTINCT - 63 * - col2 + + 68 FROM tab1 cor0
----
3785
4352
6116

query I rowsort
SELECT + col2 + - - col0 * - - col0 + + col1 FROM tab1 AS cor0
----
2711
7289
8396

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT MAX( DISTINCT col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT MAX ( DISTINCT col0 ) AS col0 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - 92 - + COUNT( 78 ) FROM tab1, tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-2015
SELECT - 92 - + COUNT ( 78 ) FROM tab1, tab0 AS cor0
----
-101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2016
SELECT - ( col2 ) / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT - ( col2 ) / + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT ALL - COUNT( * ) * - + MAX( DISTINCT 83 ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - COUNT ( * ) * - + MAX ( DISTINCT 83 ) FROM tab0 AS cor0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT col1 DIV - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-2018
SELECT col1 / - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
20
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT + CAST( 93 AS SIGNED ) * col2 + + col0 FROM tab1 AS cor0
----
5572
6415
8979

skipif mysql # not compatible
query I rowsort label-2019
SELECT + CAST ( 93 AS INTEGER ) * col2 + + col0 FROM tab1 AS cor0
----
5572
6415
8979

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT DISTINCT + + 23 * - 51 * - 91 * + COUNT( * ) FROM tab1 AS cor0
----
320229

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + + 23 * - 51 * - 91 * + COUNT ( * ) FROM tab1 AS cor0
----
320229

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT 97 DIV + COUNT( * ) AS col2 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT 97 / + COUNT ( * ) AS col2 FROM tab0
----
32

query II rowsort
SELECT DISTINCT - 85, 92 AS col2 FROM tab1
----
-85
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN 94 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT CAST( NULL AS SIGNED ) AS col1, col1 + - ( - col0 ) AS col0 FROM tab2
----
NULL
141
NULL
142
NULL
97

skipif mysql # not compatible
query II rowsort label-2024
SELECT CAST ( NULL AS INTEGER ) AS col1, col1 + - ( - col0 ) AS col0 FROM tab2
----
NULL
141
NULL
142
NULL
97

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL + col1 * - 1 + - col0 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 WHERE - col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT DISTINCT - COUNT( 51 ), + 73 AS col0 FROM tab2
----
-3
73

skipif mysql # not compatible
query II rowsort label-2028
SELECT DISTINCT - COUNT ( 51 ), + 73 AS col0 FROM tab2
----
-3
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT col2 DIV 19 * + - 23 FROM tab0
----
-115
-46
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT col2 / 19 * + - 23 FROM tab0
----
-115
-46
0

query I rowsort
SELECT ALL - 67 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - 68 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2032
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE 83 IS NOT NULL
----
-3

query I rowsort
SELECT ALL 88 - + 74 + col0 * + col1 FROM tab2
----
2360
4942
5039

query III rowsort
SELECT * FROM tab0 WHERE col0 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * col1 - - + 1 AS col2 FROM tab1
----
426
4278
715

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT + col2 DIV - + col2 + + - col0 + - 51 + col0 * - - col2 + - col0 FROM tab2
----
2380
4148
914

skipif mysql # not compatible
query I rowsort label-2036
SELECT + col2 / - + col2 + + - col0 + - 51 + col0 * - - col2 + - col0 FROM tab2
----
2380
4148
914

query I rowsort
SELECT ALL 4 * + col1 AS col0 FROM tab0
----
324
4
84

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2038
SELECT CAST( col0 AS DECIMAL ) + - + CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-2038
SELECT CAST ( col0 AS REAL ) + - + CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT - col1 * + 24 AS col0 FROM tab0 cor0
----
-1944
-24
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT - COUNT( 74 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2041
SELECT - COUNT ( 74 ) FROM tab2
----
-3

query II rowsort
SELECT col1 AS col2, - col1 AS col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT - ( ( + COUNT( + 0 ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2043
SELECT - ( ( + COUNT ( + 0 ) ) ) FROM tab2
----
-3

query I rowsort
SELECT - 63 - + 99 AS col0 FROM tab1 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ( - 81 ) AS col2 FROM tab0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2046
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + CAST( 74 AS SIGNED ) AND col2 * + 86
----

skipif mysql # not compatible
query III rowsort label-2046
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + + CAST ( 74 AS INTEGER ) AND col2 * + 86
----

query II rowsort
SELECT ALL col2, - col0 AS col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col2 FROM tab1 AS cor0 WHERE NOT + col1 * col0 + + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 69 * + - col0 FROM tab2 AS cor0 WHERE ( NULL ) = + col0
----

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - - col1 AND col2
----

query I rowsort
SELECT 67 - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
0
16

query II rowsort
SELECT - 26 AS col1, col0 AS col0 FROM tab2 AS cor0
----
-26
46
-26
64
-26
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT AVG ( ALL + 22 ) / CAST( NULL AS SIGNED ) + + - 15 * + COUNT( * ) + - 60 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT AVG ( ALL + 22 ) / CAST ( NULL AS INTEGER ) + + - 15 * + COUNT ( * ) + - 60 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL + SUM( ALL CAST( - + col1 AS SIGNED ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + SUM ( ALL CAST ( - + col1 AS INTEGER ) ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - COUNT( * ) FROM tab0 WHERE NOT + col1 * col2 + - + 0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + col1 * col2 + - + 0 > NULL
----
0

query II rowsort
SELECT ALL + col2 * - col1, 57 AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-210
57
-3807
57
-99
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2061
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 33 + col2 AND + CAST( - col0 AS DECIMAL )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN + 33 + col2 AND + CAST ( - col0 AS REAL )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT MAX( - 22 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2062
SELECT MAX ( - 22 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + MIN( - + ( + 0 ) ) * - 25 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT + MIN ( - + ( + 0 ) ) * - 25 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT SUM( col2 ) * + SUM( DISTINCT + - col0 ) FROM tab0
----
-31044

skipif mysql # not compatible
query I rowsort label-2064
SELECT SUM ( col2 ) * + SUM ( DISTINCT + - col0 ) FROM tab0
----
-31044

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT col0 + - - CAST( NULL AS SIGNED ) + - col2 * - + col0 - 63 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT col0 + - - CAST ( NULL AS INTEGER ) + - col2 * - + col0 - 63 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - COUNT( * ) * - + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) FROM tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 + + col2 col2 FROM tab0 AS cor0
----
127
179
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT - SUM( ALL col2 ) col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2068
SELECT - SUM ( ALL col2 ) col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL col1 + - 33 FROM tab2 AS cor0
----
18
34
44

query I rowsort
SELECT col0 * 71 AS col1 FROM tab1 AS cor0
----
3621
6035
6461

query I rowsort
SELECT ALL + - col0 - - + 93 FROM tab1 AS cor0
----
2
42
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT - 33 * - col1 AS col0 FROM tab0
----
2673
33
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col1 FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + col2 col0 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT + + col0 * + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT + + col0 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + 99 AS col2, + 73 AS col0 FROM tab2 AS cor0
----
-99
73
-99
73
-99
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + MAX( - - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + MAX ( - - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2079
SELECT CAST( NULL AS SIGNED ), col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2079
SELECT CAST ( NULL AS INTEGER ), col2 col0 FROM tab2
----
NULL
23
NULL
40
NULL
58

query III rowsort
SELECT * FROM tab1 WHERE NULL = + + 1
----

query I rowsort
SELECT DISTINCT + 29 * - col0 * - ( + - 54 ) + + col0 * col0 AS col2 FROM tab2
----
-111825
-69920
-96128

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2082
SELECT 87 AS col0, + CAST( - col2 AS SIGNED ) + - col2 AS col0 FROM tab1
----
87
-118
87
-136
87
-192

skipif mysql # not compatible
query II rowsort label-2082
SELECT 87 AS col0, + CAST ( - col2 AS INTEGER ) + - col2 AS col0 FROM tab1
----
87
-118
87
-136
87
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL CAST( NULL AS SIGNED ) * col2 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2084
SELECT DISTINCT 38 * + col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT 38 * + col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( + 76 ) + + ( - col1 ) AS col1 FROM tab1
----
29
62
71

query I rowsort
SELECT - 72 + + col1 FROM tab2 AS cor0
----
-21
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT MAX( + col0 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2087
SELECT MAX ( + col0 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col1 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - + col1 + 84 FROM tab1 cor0
----
37
70
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2090
SELECT ALL 37 DIV + + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL 37 / + + COUNT ( * ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
9

skipif mysql # not compatible
query II rowsort label-2091
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
9

query I rowsort
SELECT 79 * - col1 AS col1 FROM tab2
----
-4029
-5293
-6083

query I rowsort
SELECT ALL col0 * ( ( col0 ) ) * - 66 AS col2 FROM tab0
----
-14850
-499554
-620994

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN col2 * + - 72 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2094
SELECT COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN col2 * + - 72 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 44 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 44 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col2 + + col2 + + 52 AS col1 FROM tab2 AS cor0
----
101
47
55

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col2 + + col2 + + 52 AS col1 FROM tab2 AS cor0
----
101
47
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT MIN( + ( col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2097
SELECT MIN ( + ( col0 ) ) AS col1 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT col0 DIV + col2 col1 FROM tab0
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2098
SELECT DISTINCT col0 / + col2 col1 FROM tab0
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT ALL + COUNT( * ) * 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL + COUNT ( * ) * 85 FROM tab0
----
255

query I rowsort
SELECT ALL ( + - col0 ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2101
SELECT - col2 + col0 DIV - - col1 AS col0 FROM tab1 WHERE NOT + CAST( + 86 AS SIGNED ) IN ( col0 + col0, + ( - ( 45 ) ) )
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-2101
SELECT - col2 + col0 / - - col1 AS col0 FROM tab1 WHERE NOT + CAST ( + 86 AS INTEGER ) IN ( col0 + col0, + ( - ( 45 ) ) )
----
-42
-67
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2102
SELECT DISTINCT - + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL - 79 * + MAX( + col1 ) AS col0 FROM tab1 cor0
----
-3713

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL - 79 * + MAX ( + col1 ) AS col0 FROM tab1 cor0
----
-3713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT CAST( - AVG ( - + 76 ) AS SIGNED ) FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2106
SELECT CAST ( - AVG ( - + 76 ) AS INTEGER ) FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT - MAX( ALL - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT - MAX ( ALL - col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT - CAST( ( 41 ) AS SIGNED ) + - 58 * col1 FROM tab0 AS cor0
----
-1259
-4739
-99

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT - CAST ( ( 41 ) AS INTEGER ) + - 58 * col1 FROM tab0 AS cor0
----
-1259
-4739
-99

query II rowsort
SELECT - col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 63 BETWEEN NULL AND + col0 * - col0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2110
SELECT - + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT ( + 33 ) + + + 65 * + col1 * + 78 + + col2 AS col2 FROM tab2 AS cor0
----
258626
339781
390463

query I rowsort
SELECT + 80 + col1 AS col0 FROM tab0 cor0
----
101
161
81

query I rowsort
SELECT + + col0 + + - 69 FROM tab2 AS cor0
----
-23
-5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - ( + col0 ) ) + + col1 * + col0 col2 FROM tab1
----
4368
510
765

query III rowsort
SELECT * FROM tab1 WHERE - 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 70 ) AS col2 FROM tab2
----
-70
-70
-70

query III rowsort
SELECT * FROM tab1 WHERE - col2 / - col2 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2118
SELECT DISTINCT + - col1 AS col1, CAST( - - 33 AS DECIMAL ) FROM tab2 AS cor0 WHERE col1 IN ( - col2, + col2, 12 * + col1 - col2 + + + col0, - 71 )
----

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT + - col1 AS col1, CAST ( - - 33 AS REAL ) FROM tab2 AS cor0 WHERE col1 IN ( - col2, + col2, 12 * + col1 - col2 + + + col0, - 71 )
----

query I rowsort
SELECT ALL - - ( + + col2 ) + - - col0 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT - + ( - - ( + - COUNT( col2 ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2120
SELECT - + ( - - ( + - COUNT ( col2 ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 > NULL
----

query I rowsort
SELECT + 56 - - + col0 AS col1 FROM tab1 AS cor0
----
107
141
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - 59 - + - COUNT( * ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2123
SELECT - 59 - + - COUNT ( * ) FROM tab0 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * + col1 + - col0 col0 FROM tab2 AS cor0
----
-5095
-6708
-7687

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 14 ) >= + col1
----

query I rowsort
SELECT col0 + - 94 AS col2 FROM tab1 AS cor0
----
-3
-43
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2127
SELECT ALL * FROM tab0 WHERE NOT + - col2 * CAST( - + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2127
SELECT ALL * FROM tab0 WHERE NOT + - col2 * CAST ( - + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 35 = + - 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 AS col0, col1 AS col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT col1 * - 72 AS col0 FROM tab2
----
-3672
-4824
-5544

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE NOT 84 * + - col2 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT + CAST( NULL AS SIGNED ) + + + col1 + col1 * - ( 78 ) * + col2 AS col2 FROM tab0 AS cor0 WHERE col1 <> - + col0 + - ( col1 ) * + col0 * col1 * 47 + + ( - + col0 ) * + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT + CAST ( NULL AS INTEGER ) + + + col1 + col1 * - ( 78 ) * + col2 AS col2 FROM tab0 AS cor0 WHERE col1 <> - + col0 + - ( col1 ) * + col0 * col1 * 47 + + ( - + col0 ) * + col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2133
SELECT ALL + + 95 AS col2, col1 + + col1 * - + col0 AS col1, - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
9 values hashing to 225112f63cd55e12550864c149df77a0

skipif mysql # not compatible
query III rowsort label-2133
SELECT ALL + + 95 AS col2, col1 + + col1 * - + col0 AS col1, - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
9 values hashing to 225112f63cd55e12550864c149df77a0

query I rowsort
SELECT ALL + col0 * 51 * col1 + 19 + + col0 FROM tab1 AS cor0
----
21779
218237
36484

query I rowsort
SELECT ALL + + 52 AS col0 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + - 70 AS col1 FROM tab1 WHERE + 38 <= + 18
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = ( col1 )
----

query I rowsort
SELECT ALL - 91 - - 20 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query II rowsort
SELECT DISTINCT ( + col2 ) AS col1, 27 AS col2 FROM tab0
----
10
27
47
27
99
27

query I rowsort
SELECT ALL + 47 * 73 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 98 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + col2 <> + col0
----

query I rowsort
SELECT - col0 * - col2 + - - col1 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

query II rowsort
SELECT ALL col0, - 94 * - + col0 * col2 FROM tab0 AS cor0
----
15
66270
87
81780
97
902682

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT - MAX( ALL - 37 ) col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2145
SELECT DISTINCT - MAX ( ALL - 37 ) col1 FROM tab0 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 53 BETWEEN + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT DISTINCT 67 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT 67 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT col0 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT col0 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT MIN( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-58

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT MIN ( - + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-58

query I rowsort
SELECT ALL col2 * - col1 + + 20 FROM tab2 AS cor0
----
-1153
-3060
-3866

onlyif mysql # aggregate syntax: 
query II rowsort label-2151
SELECT DISTINCT - COUNT( * ) AS col2, 85 FROM tab1 cor0
----
-3
85

skipif mysql # not compatible
query II rowsort label-2151
SELECT DISTINCT - COUNT ( * ) AS col2, 85 FROM tab1 cor0
----
-3
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT + - 35 DIV - col2 FROM tab2 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2152
SELECT + - 35 / - col2 FROM tab2 WHERE NULL IS NULL
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 2 >= - col2
----

query I rowsort
SELECT + ( - col1 ) + + col2 + - - col0 + - col0 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL + COUNT( * ) * + - 83, - COUNT( * ) col2 FROM tab1
----
-249
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2155
SELECT ALL + COUNT ( * ) * + - 83, - COUNT ( * ) col2 FROM tab1
----
-249
-3

query I rowsort
SELECT DISTINCT + col1 + col1 * + 81 AS col1 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT ALL - 17 + - - 78 * + col2 AS col1 FROM tab0 cor0
----
3649
763
7705

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + SUM( + - col0 ) + 71 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + SUM ( + - col0 ) + 71 FROM tab1 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + - 23 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT - - 40 <> NULL
----

query I rowsort
SELECT DISTINCT + 58 * - - ( + col0 ) AS col0 FROM tab1 AS cor0
----
2958
4930
5278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 AS cor0 WHERE NOT + col1 + - 46 > - col1
----
51
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT + COUNT( * ) * + - 47 col2 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2163
SELECT + COUNT ( * ) * + - 47 col2 FROM tab2 AS cor0
----
-141

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 79 ) IS NOT NULL
----

query I rowsort
SELECT - 87 * - col0 - col2 + - - col1 + - 27 - - col2 AS col0 FROM tab0 AS cor0
----
1359
7563
8413

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ALL + SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + SUM ( + col1 ) FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL COUNT( ALL + 26 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL COUNT ( ALL + 26 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT ALL - COUNT( * ) * + - ( + 90 ) * - COUNT( * ) AS col2 FROM tab1
----
-810

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - COUNT ( * ) * + - ( + 90 ) * - COUNT ( * ) AS col2 FROM tab1
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT DISTINCT MIN( DISTINCT + ( + 29 ) ) AS col0 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT MIN ( DISTINCT + ( + 29 ) ) AS col0 FROM tab0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2172
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT + col1 * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT + col1 * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT - MAX( ALL col1 ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2174
SELECT - MAX ( ALL col1 ) col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - MIN( 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2175
SELECT - MIN ( 15 ) FROM tab2
----
-15

query II rowsort
SELECT + col0 AS col2, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2177
SELECT ALL + col1, CAST( NULL AS SIGNED ), + col2 FROM tab0
----
9 values hashing to 6dbdc38342e8a2a5e1bb6abb69d199e8

skipif mysql # not compatible
query III rowsort label-2177
SELECT ALL + col1, CAST ( NULL AS INTEGER ), + col2 FROM tab0
----
9 values hashing to 6dbdc38342e8a2a5e1bb6abb69d199e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col2 FROM tab1 cor0
----
-196
-2209
-25

query II rowsort
SELECT - 90 * ( col2 ) - + col1, col1 FROM tab2 AS cor0
----
-2121
51
-3677
77
-5287
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT - SUM( - 33 ) col2 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT - SUM ( - 33 ) col2 FROM tab2
----
99

query I rowsort
SELECT ALL - 32 * col0 AS col1 FROM tab2
----
-1472
-2048
-2400

query II rowsort
SELECT ALL col0 * - col0 AS col1, + col0 AS col2 FROM tab2
----
-2116
46
-4096
64
-5625
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 + - - col1 + - + col1 AS col1 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT 46 + + - 89 FROM tab2 cor0
----
-43
-43
-43

query I rowsort
SELECT 27 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT 63 * - 28 * - col2 AS col2 FROM tab0 AS cor0
----
174636
17640
82908

query II rowsort
SELECT ALL 27 AS col2, 72 AS col1 FROM tab2
----
27
72
27
72
27
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2189
SELECT - CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2189
SELECT - CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT MAX( DISTINCT - ( - + col1 ) ) FROM tab0 WHERE + + 28 = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT MAX ( DISTINCT - ( - + col1 ) ) FROM tab0 WHERE + + 28 = col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT 55 + COUNT( * ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT 55 + COUNT ( * ) AS col2 FROM tab2
----
58

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT NULL <> + + col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT ALL MAX( DISTINCT + col2 ) AS col0, AVG ( - ( - col2 ) ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2193
SELECT ALL MAX ( DISTINCT + col2 ) AS col0, AVG ( - ( - col2 ) ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

query I rowsort
SELECT col2 + + - col0 - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2369
-4952
-5042

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT DISTINCT + - COUNT( * ) col0 FROM tab1 AS cor0 WHERE 47 + 11 BETWEEN NULL AND - 10
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT DISTINCT + - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE 47 + 11 BETWEEN NULL AND - 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) IN ( - 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT ( - col2 - col2 * col2 ) NOT BETWEEN ( - col0 * - ( + col0 ) + + col2 * - 26 ) AND ( 47 * 9 )
----

skipif mysql # not compatible
query I rowsort label-2199
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT ( - col2 - col2 * col2 ) NOT BETWEEN ( - col0 * - ( + col0 ) + + col2 * - 26 ) AND ( 47 * 9 )
----

query I rowsort
SELECT ( - col1 ) * - 55 AS col2 FROM tab0
----
1155
4455
55

query I rowsort
SELECT col1 * + 52 AS col1 FROM tab1
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2202
SELECT * FROM tab1 WHERE - ( col1 ) + 14 BETWEEN ( + col0 ) AND ( + col2 / + CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2202
SELECT * FROM tab1 WHERE - ( col1 ) + 14 BETWEEN ( + col0 ) AND ( + col2 / + CAST ( - col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2203
SELECT - CAST( NULL AS SIGNED ) * col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2203
SELECT - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL MIN( ALL - 98 ) AS col2 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL MIN ( ALL - 98 ) AS col2 FROM tab1
----
-98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 76 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 35 + col2 * + 68 AS col1 FROM tab0
----
3231
6767
715

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 39 / + col2 NOT IN ( - col2 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 / col0 IS NULL
----

query I rowsort
SELECT AVG ( 18 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 28 + col1 AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT DISTINCT MAX( + 67 ) AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT MAX ( + 67 ) AS col0 FROM tab2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2213
SELECT DISTINCT 26 DIV + ( ( col0 ) ) + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT 26 / + ( ( col0 ) ) + - col0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col2 FROM tab1 WHERE + col0 * col1 + - 99 > + 93 + col0
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 + + col0 ) < ( + 12 ) + - col1
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + col0 * - ( - col1 ) IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 65 * + col0 FROM tab0 WHERE - 9 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL + MAX( ALL col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + MAX ( ALL col1 ) AS col0 FROM tab0
----
81

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN + ( 13 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT - col2 < 61
----

query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab2 WHERE NOT NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 96 )
----

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT + col0 + ( col2 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 16 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2225
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <= + CAST( - CAST( - 33 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2225
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <= + CAST ( - CAST ( - 33 AS INTEGER ) AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 <> - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - 91 >= - 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col0 FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL - ( - MAX( 87 ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2229
SELECT ALL - ( - MAX ( 87 ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT COUNT( * ) DIV + 99 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2230
SELECT COUNT ( * ) / + 99 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT DISTINCT + COUNT( ALL CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT 81 * col1 FROM tab0 AS cor0
----
1701
6561
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab1 AS cor0
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + + col0 col2 FROM tab1 AS cor0
----
133
139
99

query I rowsort
SELECT col0 + + 57 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
103
121
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT DISTINCT + + 14 + MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + + 14 + MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 BETWEEN col0 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT + + 31 DIV - 54 + COUNT( * ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2238
SELECT + + 31 / - 54 + COUNT ( * ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2239
SELECT DISTINCT - col1 + + CAST( ( col0 ) AS SIGNED ) + 36 AS col0 FROM tab1
----
116
73
80

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT - col1 + + CAST ( ( col0 ) AS INTEGER ) + 36 AS col0 FROM tab1
----
116
73
80

query I rowsort
SELECT ALL 4 + + - col2 + 69 FROM tab1
----
-23
14
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 - 88 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT - COUNT( * ) + - 28 AS col2 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2242
SELECT - COUNT ( * ) + - 28 AS col2 FROM tab2
----
-31

query I rowsort
SELECT - 51 + - 53 AS col1 FROM tab0
----
-104
-104
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT DISTINCT 52 DIV - ( + col0 ) AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT 52 / - ( + col0 ) AS col2 FROM tab1
----
-1
0

query I rowsort
SELECT ALL + 63 + col2 FROM tab2 AS cor0
----
103
121
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 WHERE NOT col2 + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT DISTINCT + + MAX( + - col1 ) * SUM( col2 * col1 ) + 53 AS col1 FROM tab2 AS cor0
----
-415036

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + + MAX ( + - col1 ) * SUM ( col2 * col1 ) + 53 AS col1 FROM tab2 AS cor0
----
-415036

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col1 + 35 AS col0 FROM tab0 WHERE + + 23 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT + COUNT( + 28 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2251
SELECT + COUNT ( + 28 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL 31 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( + 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <= col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN - col2 * - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col2, 52 * - col0 AS col1 FROM tab2 cor0
----
51
-2392
67
-3900
77
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-2258
SELECT DISTINCT 74 AS col2, + SUM( col1 ) * COUNT( * ) FROM tab0 AS cor0
----
74
309

skipif mysql # not compatible
query II rowsort label-2258
SELECT DISTINCT 74 AS col2, + SUM ( col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
74
309

onlyif mysql # DIV for integer division: 
query II rowsort label-2259
SELECT ALL + + col0 col1, col1 DIV + 22 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2259
SELECT ALL + + col0 col1, col1 / + 22 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT - + COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - + COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT 21 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
21

skipif mysql # not compatible
query I rowsort label-2261
SELECT 21 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2262
SELECT ALL - CAST( SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) / ( 44 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - CAST ( SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) / ( 44 ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT 29 * + + SUM( ALL 99 ) FROM tab0 AS cor0
----
8613

skipif mysql # not compatible
query I rowsort label-2263
SELECT 29 * + + SUM ( ALL 99 ) FROM tab0 AS cor0
----
8613

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT MAX( DISTINCT + 15 ) AS col2 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-2264
SELECT MAX ( DISTINCT + 15 ) AS col2 FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT + ( - - MIN( col0 ) ) * - 60 AS col0 FROM tab0
----
-900

skipif mysql # not compatible
query I rowsort label-2265
SELECT + ( - - MIN ( col0 ) ) * - 60 AS col0 FROM tab0
----
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT - 59 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab0 WHERE NULL <= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL COUNT( * ) FROM tab1 WHERE ( - + col1 ) BETWEEN NULL AND - 8
----
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( - + col1 ) BETWEEN NULL AND - 8
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT + 90 DIV + col0 AS col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2269
SELECT + 90 / + col0 AS col0 FROM tab0
----
0
1
6

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col1 * 64 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL 10 * MAX( - col0 ) AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL 10 * MAX ( - col0 ) AS col0 FROM tab0
----
-150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 35 + col0 * - 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT - + CAST( NULL AS SIGNED ) * + 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT - + CAST ( NULL AS INTEGER ) * + 45 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + - COUNT( DISTINCT col2 ) * - + 66 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2274
SELECT + - COUNT ( DISTINCT col2 ) * - + 66 FROM tab2 AS cor0
----
198

query I rowsort
SELECT DISTINCT 82 * - - col2 AS col1 FROM tab0
----
3854
8118
820

query II rowsort
SELECT 93 + - 43 * + col2 AS col1, - col1 FROM tab2
----
-1627
-77
-2401
-67
-896
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE ( + - col1 - + - col1 * + col2 ) BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-2277
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE ( + - col1 - + - col1 * + col2 ) BETWEEN NULL AND col1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - col2, + 67 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 / - + 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 77 FROM tab2 AS cor0 WHERE NOT 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * + col2 * col2 AS col1, - 87 col1 FROM tab2 AS cor0
----
12167
-87
195112
-87
64000
-87

query I rowsort
SELECT ALL + 65 - + col0 AS col2 FROM tab2
----
-10
1
19

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT DISTINCT - ( - 42 ) - + 41 / CAST( NULL AS SIGNED ) + - 25 * + + 63 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT - ( - 42 ) - + 41 / CAST ( NULL AS INTEGER ) + - 25 * + + 63 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2286
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( - - col1 * CAST( NULL AS DECIMAL ) ) IN ( - ( - - col2 ) * + CAST( col1 AS SIGNED ) + 47 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( - - col1 * CAST ( NULL AS REAL ) ) IN ( - ( - - col2 ) * + CAST ( col1 AS INTEGER ) + 47 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT DISTINCT col0 DIV - 19 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT col0 / - 19 FROM tab0
----
-4
-5
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 80 + ( - + 85 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 99 + 57 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 * - + 78 * + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2292
SELECT + col2 * + CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT + col2 * + CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 IN ( - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 90 AND - ( col0 )
----

query I rowsort
SELECT + 1 * - col1 + - 26 FROM tab1 AS cor0
----
-31
-40
-73

query I rowsort
SELECT AVG ( col2 ) FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + 31, + col1 / + 84 ) )
----
NULL

query I rowsort
SELECT DISTINCT + 58 * - - 78 FROM tab2 AS cor0
----
4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col0 <= + - 78
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col0 <= + - 78
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col2 * + 76 AS col2 FROM tab1 AS cor0
----
264556
351424
700416

query I rowsort
SELECT ALL - 91 AS col0 FROM tab1 WHERE NOT - 24 / col1 + - col2 * - - col0 <> col0 * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + col0 - col0, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 88 IS NOT NULL
----

query I rowsort
SELECT col0 / + + ( + col2 ) FROM tab0 WHERE NOT NULL IN ( - + 55 * - - 88 )
----

query II rowsort
SELECT DISTINCT col1 AS col0, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT - - MAX( 86 ) * + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col0 * - col2 IS NULL
----
258

skipif mysql # not compatible
query I rowsort label-2306
SELECT - - MAX ( 86 ) * + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col0 * - col2 IS NULL
----
258

query II rowsort
SELECT + col2 AS col2, 56 AS col0 FROM tab2
----
23
56
40
56
58
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2308
SELECT + COUNT( - - col2 ) DIV - + 35 * + - 12 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2308
SELECT + COUNT ( - - col2 ) / - + 35 * + - 12 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 18 col2 FROM tab0
----
105
115
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2310
SELECT ALL col0 + - - ( - col2 ) + CAST( ( + col0 ) AS SIGNED ) * - col1 * col1 + + 88 AS col1 FROM tab0
----
-11
-38202
-98359

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL col0 + - - ( - col2 ) + CAST ( ( + col0 ) AS INTEGER ) * - col1 * col1 + + 88 AS col1 FROM tab0
----
-11
-38202
-98359

query I rowsort
SELECT col0 + ( - 7 ) AS col1 FROM tab2
----
39
57
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT - 42 + 27 * - COUNT( * ) - - + COUNT( * ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-2312
SELECT - 42 + 27 * - COUNT ( * ) - - + COUNT ( * ) FROM tab2 AS cor0
----
-120

query III rowsort
SELECT DISTINCT - col2 + - 6 * 93, col0, - + col1 * - - col2 + + 52 * - - col1 * - ( col0 * 88 ) + 56 AS col0 FROM tab2 AS cor0
----
9 values hashing to 634445ed225e467d8d38fb9fc6535b79

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + MAX( + 50 ) AS col2 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + MAX ( + 50 ) AS col2 FROM tab0 AS cor0
----
50

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab2
----
-86
-86
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL CAST( - + col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL CAST ( - + col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2318
SELECT DISTINCT - - CAST( + 99 AS SIGNED ) + - + 82 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT - - CAST ( + 99 AS INTEGER ) + - + 82 FROM tab0 AS cor0
----
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col2 * 25
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 42 IS NULL
----

query I rowsort
SELECT col2 - + - col0 + + - col1 AS col0 FROM tab1 AS cor0
----
112
133
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT + + 89 - - ( - COUNT( * ) ) * + 32 * - 85 * + - 46 FROM tab2 AS cor0
----
-375271

skipif mysql # not compatible
query I rowsort label-2322
SELECT + + 89 - - ( - COUNT ( * ) ) * + 32 * - 85 * + - 46 FROM tab2 AS cor0
----
-375271

query I rowsort
SELECT ( 8 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL + col0 - + - col2 - col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL 50 - - + col0 AS col0 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT - col0 + + + 53 + - - col0 AS col0 FROM tab2 cor0
----
53
53
53

query III rowsort
SELECT * FROM tab2 WHERE + col0 / - col0 + + col2 - 48 NOT IN ( col0, 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT - COUNT( 17 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - COUNT ( 17 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 72 - col2 FROM tab1
----
-131
-140
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-2330
SELECT col1 DIV 34 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2330
SELECT col1 / 34 FROM tab0
----
0
0
2

onlyif mysql # DIV for integer division: 
query II rowsort label-2331
SELECT DISTINCT 93 AS col0, col0 DIV + col0 AS col2 FROM tab0
----
93
1

skipif mysql # not compatible
query II rowsort label-2331
SELECT DISTINCT 93 AS col0, col0 / + col0 AS col2 FROM tab0
----
93
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) < - col2 * 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + MAX( col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2333
SELECT + MAX ( col0 ) col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( + col1 ) > - col1 * + + 64 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2335
SELECT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT ( + col1 ) > - col1 * + + 64 )
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 BETWEEN col2 + + + col0 AND - 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2 AS col2, - col1 AS col1 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 49 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT - + 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - SUM( - 43 ) AS col0 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2341
SELECT - SUM ( - 43 ) AS col0 FROM tab2 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT - MIN( - + 16 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - MIN ( - + 16 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT ALL - ( - col0 ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 59 BETWEEN + col1 - - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT + SUM( ALL + col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT + SUM ( ALL + col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
188

query I rowsort
SELECT DISTINCT + 90 * - 48 + - - col0 * 10 FROM tab0 AS cor0
----
-3350
-3450
-4170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col0 col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT + - ( + 31 ) * + - col1 * + CAST( NULL AS SIGNED ) + - - col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2348
SELECT + - ( + 31 ) * + - col1 * + CAST ( NULL AS INTEGER ) + - - col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT DISTINCT SUM( col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT SUM ( col1 ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT col1 + + 50 AS col2, - col0 AS col2 FROM tab1
----
55
-85
64
-51
97
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 * - + 47 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 * - + 47 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 AS col0 FROM tab0 WHERE NOT - 80 IS NULL
----
10
47
99

query I rowsort
SELECT ALL - ( col2 ) + - ( col0 ) + ( + 24 ) * + + 38 * + ( + - col0 ) AS col2 FROM tab1
----
-46659
-77664
-83151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT - CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2354
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 83 / + 99 + + col0, - 81 )
----

query I rowsort
SELECT DISTINCT col0 + col1 - col2 * col1 FROM tab1 AS cor0
----
-1279
-205
-3058

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + COUNT( DISTINCT - col2 ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2357
SELECT + COUNT ( DISTINCT - col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT + COUNT( DISTINCT - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + COUNT ( DISTINCT - - col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT MAX( ALL ( + 11 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
11

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT MAX ( ALL ( + 11 ) ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 + col0 AND + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 77 / col0 * col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2362
SELECT * FROM tab1 cor0 WHERE CAST( col0 AS SIGNED ) BETWEEN + col2 AND + - 37
----

skipif mysql # not compatible
query III rowsort label-2362
SELECT * FROM tab1 cor0 WHERE CAST ( col0 AS INTEGER ) BETWEEN + col2 AND + - 37
----

query I rowsort
SELECT 46 AS col1 FROM tab2 cor0 WHERE ( NOT 82 < + col2 - - col2 )
----
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT - + col0 * - + 52 * + col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT - + col0 * - + 52 * + col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT MAX( ALL + + 38 ) FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2365
SELECT MAX ( ALL + + 38 ) FROM tab1 AS cor0
----
38

query I rowsort
SELECT DISTINCT - 48 - 72 AS col1 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT DISTINCT - - 54 + - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-138
-64
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-2368
SELECT DISTINCT MIN( - col2 ), - 59 * - 68 col1 FROM tab0
----
-99
4012

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2368
SELECT DISTINCT MIN ( - col2 ), - 59 * - 68 col1 FROM tab0
----
-99
4012

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + 47 >= ( col2 )
----

query I rowsort
SELECT - col0 * + + col1 AS col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT - + COUNT( ALL + col2 ) FROM tab2 WHERE NOT NULL < + col2
----
0

skipif mysql # not compatible
query I rowsort label-2371
SELECT - + COUNT ( ALL + col2 ) FROM tab2 WHERE NOT NULL < + col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 63 ) + - 36 * 59 + ( col2 ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + 68 * - ( - 76 ) AS col0 FROM tab1 AS cor0
----
5168
5168
5168

onlyif mysql # aggregate syntax: 
query II rowsort label-2374
SELECT DISTINCT + + MIN( ALL col1 ) AS col1, COUNT( * ) * 17 AS col2 FROM tab0 AS cor0
----
1
51

skipif mysql # not compatible
query II rowsort label-2374
SELECT DISTINCT + + MIN ( ALL col1 ) AS col1, COUNT ( * ) * 17 AS col2 FROM tab0 AS cor0
----
1
51

query I rowsort
SELECT 35 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2376
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( + + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2376
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( + + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col1 * col0 - - col0 * col0 FROM tab0 AS cor0
----
1440
9396
9506

query I rowsort
SELECT ALL + + 97 * - 27 FROM tab0 AS cor0
----
-2619
-2619
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - SUM( - col1 ) * + 52 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3429

skipif mysql # not compatible
query I rowsort label-2379
SELECT - SUM ( - col1 ) * + 52 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3429

query I rowsort
SELECT DISTINCT + ( - ( - 31 ) ) FROM tab1 AS cor0
----
31

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 = + + 42
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT col2 + + 24 + col1 * CAST( + col0 AS SIGNED ) FROM tab2
----
2393
4992
5107

skipif mysql # not compatible
query I rowsort label-2382
SELECT col2 + + 24 + col1 * CAST ( + col0 AS INTEGER ) FROM tab2
----
2393
4992
5107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - 60 * - COUNT( * ) FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - 60 * - COUNT ( * ) FROM tab0
----
180

query I rowsort
SELECT ALL - 21 + col0 AS col2 FROM tab2
----
25
43
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT - - col0 + - col2 * - col2 + + 25 + 44 * - + 53 DIV + 53 + - 15 FROM tab1 AS cor0
----
3532
4681
9233

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - - col0 + - col2 * - col2 + + 25 + 44 * - + 53 / + 53 + - 15 FROM tab1 AS cor0
----
3532
4681
9233

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 73 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT ( COUNT( * ) ) col1 FROM tab0 AS cor0 WHERE - col2 * - 91 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2389
SELECT DISTINCT ( COUNT ( * ) ) col1 FROM tab0 AS cor0 WHERE - col2 * - 91 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 84 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2392
SELECT CAST( + CAST( - 79 AS DECIMAL ) AS SIGNED ) - col0 AS col2 FROM tab1
----
-130
-164
-170

skipif mysql # not compatible
query I rowsort label-2392
SELECT CAST ( + CAST ( - 79 AS REAL ) AS INTEGER ) - col0 AS col2 FROM tab1
----
-130
-164
-170

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( col1 ) * + 57 + + col2 IS NOT NULL AND NOT + col2 > NULL
----

query I rowsort
SELECT + col1 - + 87 * + col1 AS col0 FROM tab0 AS cor0
----
-1806
-6966
-86

query I rowsort
SELECT DISTINCT - + 25 AS col0 FROM tab2 cor0
----
-25

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IS NOT NULL AND - col2 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 46 IS NULL
----

query I rowsort
SELECT ALL - ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT - 9 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT - - SUM( DISTINCT - 93 ) AS col2 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-2400
SELECT - - SUM ( DISTINCT - 93 ) AS col2 FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL + ( 98 ) FROM tab2
----
98
98
98

query III rowsort
SELECT col1, + 86 - 54 + + col0 AS col1, + col2 FROM tab2
----
9 values hashing to e554c4b22c02684740fd7d5a7e84628e

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2403
SELECT DISTINCT col2, - 80 * - ( 9 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2403
SELECT DISTINCT col2, - 80 * - ( 9 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, + col1 col0 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT ALL col1 AS col1, - 84 AS col2 FROM tab0
----
1
-84
21
-84
81
-84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT IN ( + col0 + + col0, + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2407
SELECT DISTINCT - COUNT( * ) AS col1, 36 AS col0 FROM tab2
----
-3
36

skipif mysql # not compatible
query II rowsort label-2407
SELECT DISTINCT - COUNT ( * ) AS col1, 36 AS col0 FROM tab2
----
-3
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT COUNT( - ( + col2 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT COUNT ( - ( + col2 ) ) AS col2 FROM tab0
----
3

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT + COUNT( * ) * - + 18 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT + COUNT ( * ) * - + 18 FROM tab1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2412
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 91 + - 2 AS col0 FROM tab2
----
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - - col0 ) = - col1 * 2 * - + 93 / + col1 + col2 / + ( - col0 ) + 37
----

query I rowsort
SELECT ALL + 52 / - col0 * col0 + 78 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 17 + - 54 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT - ( col0 ) * - 8 + - + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-3687
486
677

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 47 + - - 92 FROM tab1 AS cor0
----
139
139
139

query I rowsort
SELECT DISTINCT - 87 * - - col2 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT ALL + col2 / - CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + col2 / - CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2423
SELECT * FROM tab1 WHERE ( col2 ) BETWEEN NULL AND + col1 * + col2 / CAST( - 43 AS SIGNED ) * 52
----

skipif mysql # not compatible
query III rowsort label-2423
SELECT * FROM tab1 WHERE ( col2 ) BETWEEN NULL AND + col1 * + col2 / CAST ( - 43 AS INTEGER ) * 52
----

query I rowsort
SELECT DISTINCT - col1 + col1 * + col2 + col1 FROM tab1 WHERE NOT NULL > - - ( - col1 ) * - 6
----

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL col1 * + 55 FROM tab2
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - 9 + + + SUM( ALL + 99 ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 9 + + + SUM ( ALL + 99 ) FROM tab2
----
288

query I rowsort
SELECT ALL - col1 + + + col2 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT col0 - + 52 AS col1 FROM tab1
----
-1
33
39

query I rowsort
SELECT ALL + col2 + + 95 FROM tab1
----
154
163
191

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL + 71 DIV + - col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + 71 / + - col1 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + SUM( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2432
SELECT + SUM ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-2433
SELECT - + COUNT( * ), 5 AS col2 FROM tab1 AS cor0
----
-3
5

skipif mysql # not compatible
query II rowsort label-2433
SELECT - + COUNT ( * ), 5 AS col2 FROM tab1 AS cor0
----
-3
5

query II rowsort
SELECT ALL + 90 + 43 AS col0, - 89 * + 86 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - 30 * - + col2 AS col2 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT ALL - - 1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col0 * - 18 FROM tab0 AS cor0
----
-1566
-1746
-270

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + - COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2439
SELECT + - COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + col1 ) + + col0 AS col2 FROM tab2 WHERE + 92 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - col0 / + - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT + COUNT( + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT + COUNT ( + col1 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - ( + - 45 ), - 12 * 94 AS col0 FROM tab0
----
45
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT COUNT( * ) * - - 55 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-2445
SELECT COUNT ( * ) * - - 55 FROM tab2
----
165

query I rowsort
SELECT - ( + - 28 ) FROM tab0
----
28
28
28

query I rowsort
SELECT DISTINCT col1 * + - col1 AS col0 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + MAX( ALL - + ( - 30 ) ) AS col0 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2448
SELECT + MAX ( ALL - + ( - 30 ) ) AS col0 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL ( + COUNT( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL ( + COUNT ( DISTINCT + col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT DISTINCT - - CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT - SUM( + + 76 ) * 24 + + 51 AS col0 FROM tab2 AS cor0
----
-5421

skipif mysql # not compatible
query I rowsort label-2451
SELECT - SUM ( + + 76 ) * 24 + + 51 AS col0 FROM tab2 AS cor0
----
-5421

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, + 31 + + col0 col0 FROM tab0
----
10
118
47
46
99
128

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 WHERE 82 * - col0 / - col2 + - - col2 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT - 87 DIV - - col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 87 / - - col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT DISTINCT col0 + 23 AS col0 FROM tab1
----
108
114
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT DISTINCT - - 36 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT - - 36 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT col1 * + 52 AS col1 FROM tab2 AS cor0
----
2652
3484
4004

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2458
SELECT - col0 col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2458
SELECT - col0 col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query II rowsort
SELECT + 95, + col0 FROM tab0 cor0
----
95
15
95
87
95
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 74 ) col1 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT CAST( - + col1 AS SIGNED ) * + col1 - - 4 + - + col1 * CAST( + 73 AS SIGNED ) AS col1 FROM tab0 cor0
----
-12470
-1970
-70

skipif mysql # not compatible
query I rowsort label-2462
SELECT CAST ( - + col1 AS INTEGER ) * + col1 - - 4 + - + col1 * CAST ( + 73 AS INTEGER ) AS col1 FROM tab0 cor0
----
-12470
-1970
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL - ( + COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL - ( + COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT + 86 AS col1, 7 AS col0 FROM tab0 AS cor0
----
86
7

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 >= - + 27 + - 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col2 ) * + + 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT ALL 22 * + col1 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT DISTINCT - COUNT( * ) * COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
-9
-3

skipif mysql # not compatible
query II rowsort label-2468
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
-9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT DISTINCT - COUNT( * ) + 60 * + COUNT( * ) AS col0 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT - COUNT ( * ) + 60 * + COUNT ( * ) AS col0 FROM tab0
----
177

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + + 96 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - ( + 92 ) IS NULL
----

query II rowsort
SELECT + 68 + + col2 AS col0, - col2 AS col0 FROM tab1
----
127
-59
136
-68
164
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL COUNT( * ) + ( - COUNT( * ) ) + - + 8 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL COUNT ( * ) + ( - COUNT ( * ) ) + - + 8 FROM tab1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2474
SELECT - 63 + COUNT( * ), - 98 AS col2 FROM tab0 AS cor0
----
-60
-98

skipif mysql # not compatible
query II rowsort label-2474
SELECT - 63 + COUNT ( * ), - 98 AS col2 FROM tab0 AS cor0
----
-60
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT + 92, + SUM( + col2 ) AS col1 FROM tab0 AS cor0 WHERE col0 = - 91
----
92
NULL

skipif mysql # not compatible
query II rowsort label-2475
SELECT + 92, + SUM ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE col0 = - 91
----
92
NULL

query I rowsort
SELECT - ( - 55 ) - col1 AS col2 FROM tab2
----
-12
-22
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT ALL + 54 * - 88 * ( - COUNT( + 17 ) ) AS col0 FROM tab1
----
14256

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL + 54 * - 88 * ( - COUNT ( + 17 ) ) AS col0 FROM tab1
----
14256

onlyif mysql # aggregate syntax: 
query II rowsort label-2478
SELECT ALL + ( COUNT( ALL - 77 ) ), + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL + ( COUNT ( ALL - 77 ) ), + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

query I rowsort
SELECT ALL + 37 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + - COUNT( DISTINCT + - 24 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2480
SELECT + - COUNT ( DISTINCT + - 24 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 64 FROM tab1 cor0
----
64

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= + 95
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT DISTINCT 74 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT 74 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT DISTINCT COUNT( * ) * + - 91 FROM tab2 cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT COUNT ( * ) * + - 91 FROM tab2 cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT - - ( - 58 ) * COUNT( * ) * - 10 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1737

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - - ( - 58 ) * COUNT ( * ) * - 10 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1737

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT 25 * + - col2 FROM tab1
----
-1475
-1700
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2488
SELECT CAST( - 71 AS SIGNED ) FROM tab0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-2488
SELECT CAST ( - 71 AS INTEGER ) FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT ALL - MIN( - 43 ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - MIN ( - 43 ) AS col1 FROM tab1
----
43

query II rowsort
SELECT DISTINCT 4 AS col1, - 74 - - - 22 * - col2 AS col0 FROM tab0
----
4
146
4
2104
4
960

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT - MIN( ALL + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2492
SELECT - MIN ( ALL + - col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 11, - 4 col1 FROM tab1
----
11
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL - SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT COUNT( * ) - - 41 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
50

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT COUNT ( * ) - - 41 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
50

onlyif mysql # DIV for integer division: 
query II rowsort label-2496
SELECT ALL col1 DIV + 28, col0 + 94 AS col1 FROM tab2
----
1
140
2
158
2
169

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL col1 / + 28, col0 + 94 AS col1 FROM tab2
----
1
140
2
158
2
169

query I rowsort
SELECT - 56 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - 99 * COUNT( * ) FROM tab0, tab1 AS cor0
----
-891

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 99 * COUNT ( * ) FROM tab0, tab1 AS cor0
----
-891

query I rowsort
SELECT DISTINCT 22 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 11 * col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 - col1 col1 FROM tab2 cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2503
SELECT CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT ALL col1 * - 99, col1 FROM tab1 AS cor0 WHERE NULL >= - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT COUNT( * ) - - - 82 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT COUNT ( * ) - - - 82 FROM tab0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT ALL - SUM( + col1 ) FROM tab2 WHERE 49 + col0 + + col1 >= + ( + 30 ) + - + col1 + - - col0
----
-195

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL - SUM ( + col1 ) FROM tab2 WHERE 49 + col0 + + col1 >= + ( + 30 ) + - + col1 + - - col0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - col0 col2 FROM tab1
----
14
-51
47
-91
5
-85

query II rowsort
SELECT DISTINCT + col0 * + col1 + col2, - ( - 66 ) - col1 AS col0 FROM tab2
----
2369
15
4968
-11
5083
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT + 36 - COUNT( * ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2509
SELECT + 36 - COUNT ( * ) FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2510
SELECT + COUNT( - col0 ) + + + CAST( 80 AS SIGNED ) AS col1 FROM tab0 cor0
----
83

skipif mysql # not compatible
query I rowsort label-2510
SELECT + COUNT ( - col0 ) + + + CAST ( 80 AS INTEGER ) AS col1 FROM tab0 cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT ALL - col0 DIV 53 - - - col1 AS col0 FROM tab2 AS cor0
----
-51
-68
-78

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - col0 / 53 - - - col1 AS col0 FROM tab2 AS cor0
----
-51
-68
-78

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT + + COUNT( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2513
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - 63 * + 51 * col2 AS col0 FROM tab0 AS cor0
----
-151011
-318087
-32130

query I rowsort
SELECT ALL - + 96 * + col2 AS col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT ALL + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL + col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
0
8

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 78 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, col0 * - + col2 AS col2 FROM tab1
----
51
-4896
85
-5015
91
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + MIN( ALL + - 58 ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + MIN ( ALL + - 58 ) FROM tab0
----
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 14 * 97 + 91 * col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL - 83 + SUM( ALL - ( 99 ) ) FROM tab1
----
-380

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL - 83 + SUM ( ALL - ( 99 ) ) FROM tab1
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2522
SELECT DISTINCT - 13 DIV - MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT - 13 / - MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
2

query I rowsort
SELECT 17 + + col1 + ( - 74 ) AS col0 FROM tab1 cor0
----
-10
-43
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2524
SELECT - col0 + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2524
SELECT - col0 + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 88 + + + col2 AS col1 FROM tab2 AS cor0
----
111
128
146

query I rowsort
SELECT + ( - col1 ) * + + col1 AS col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT - + 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + COUNT( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2528
SELECT + COUNT ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 49 + + 74 AS col2 FROM tab2 AS cor0
----
123

onlyif mysql # DIV for integer division: 
query II rowsort label-2530
SELECT DISTINCT + col1 + + - col2 AS col0, + 39 - col0 - - 48 DIV - col1 + - + col1 FROM tab1 AS cor0
----
-21
-100
-54
-60
-82
-29

skipif mysql # not compatible
query II rowsort label-2530
SELECT DISTINCT + col1 + + - col2 AS col0, + 39 - col0 - - 48 / - col1 + - + col1 FROM tab1 AS cor0
----
-21
-100
-54
-60
-82
-29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( - col1 ) - - col0 AS col1 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 48 / col2 + - col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT - col2 + ( - - CAST( 64 AS SIGNED ) ) FROM tab1
----
-32
-4
5

skipif mysql # not compatible
query I rowsort label-2534
SELECT - col2 + ( - - CAST ( 64 AS INTEGER ) ) FROM tab1
----
-32
-4
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2535
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) >= col1 + + 58
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2535
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) >= col1 + + 58
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT 24 + + + ( - ( + COUNT( * ) ) ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-2536
SELECT 24 + + + ( - ( + COUNT ( * ) ) ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT - COUNT( * ) + + + SUM( + 85 ) AS col2 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2537
SELECT - COUNT ( * ) + + + SUM ( + 85 ) AS col2 FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2539
SELECT + 61 DIV - + SUM( DISTINCT ( + - col0 ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2539
SELECT + 61 / - + SUM ( DISTINCT ( + - col0 ) ) AS col2 FROM tab0
----
0

query II rowsort
SELECT ALL 43 AS col2, + col1 FROM tab1
----
43
14
43
47
43
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2541
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE + - 29 * - col1 >= CAST( CAST( 27 AS SIGNED ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE + - 29 * - col1 >= CAST ( CAST ( 27 AS INTEGER ) AS INTEGER )
----
-3

query II rowsort
SELECT ALL - col1, col2 AS col1 FROM tab2
----
-51
23
-67
58
-77
40

query I rowsort
SELECT + - ( - + 8 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( * ) + + + 73 AS col2 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2545
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) + + + 73 AS col2 FROM tab0 AS cor0
----
85

query I rowsort
SELECT ALL - - 20 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT col2 * + ( + - ( col1 ) ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-2548
SELECT + col1 DIV - ( + - col0 ) AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2548
SELECT + col1 / - ( + - col0 ) AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT + 66 * + 68 AS col1 FROM tab2
----
4488
4488
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT DISTINCT ( - 76 ) * - COUNT( + - col0 ) * + COUNT( * ) AS col0 FROM tab1
----
684

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT ( - 76 ) * - COUNT ( + - col0 ) * + COUNT ( * ) AS col0 FROM tab1
----
684

query I rowsort
SELECT DISTINCT 32 + - + 38 + 63 * + col1 AS col1 FROM tab1
----
2955
309
876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT - CAST( col0 AS SIGNED ) / - col1 * + ( - + col2 ) FROM tab1 WHERE NOT - - 33 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2552
SELECT - CAST ( col0 AS INTEGER ) / - col1 * + ( - + col2 ) FROM tab1 WHERE NOT - - 33 <> NULL
----

query I rowsort
SELECT DISTINCT + 22 * + ( col0 ) FROM tab1
----
1122
1870
2002

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL = + 30 )
----

query I rowsort
SELECT DISTINCT - 18 FROM tab0 AS cor0 WHERE + 88 IS NOT NULL
----
-18

query I rowsort
SELECT 6 + - col0 AS col0 FROM tab0
----
-81
-9
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT + + CAST( NULL AS SIGNED ) * + - 3 * + + col2 * col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2557
SELECT + + CAST ( NULL AS INTEGER ) * + - 3 * + + col2 * col0 col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 30 + + col1 AS col2 FROM tab2 cor0
----
107
81
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL - 23 - - COUNT( * ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - 23 - - COUNT ( * ) FROM tab1 AS cor0
----
-20

query II rowsort
SELECT + + 33, - 81 AS col2 FROM tab1 AS cor0
----
33
-81
33
-81
33
-81

query I rowsort
SELECT + 84 AS col1 FROM tab2 cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + 26 * - - col0 + - col2 FROM tab0
----
2252
2423
343

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL COUNT( * ) - + + 15 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL COUNT ( * ) - + + 15 AS col0 FROM tab0
----
-12

query II rowsort
SELECT col2 AS col2, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - col1 * + + ( + col2 ) FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - + col1 + 29 - - - 95 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 49 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL - - MIN( - 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL - - MIN ( - 65 ) FROM tab0 AS cor0
----
-65

query I rowsort
SELECT + 87 AS col1 FROM tab1 cor0
----
87
87
87

query II rowsort
SELECT - - col1 AS col1, ( + col0 ) + ( 88 ) FROM tab0 AS cor0
----
1
185
21
175
81
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2571
SELECT DISTINCT + + col2, + CAST( + - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
59
-5
68
-47
96
-14

skipif mysql # not compatible
query II rowsort label-2571
SELECT DISTINCT + + col2, + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + MAX( 15 ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2572
SELECT + MAX ( 15 ) FROM tab1 cor0
----
15

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE 69 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL ( + 69 ) FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - col2 * - + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + SUM( DISTINCT + + 75 ) FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2577
SELECT + SUM ( DISTINCT + + 75 ) FROM tab1 cor0
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-2578
SELECT DISTINCT - col2, - col1 DIV + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-10
2
-47
1
-99
0

skipif mysql # not compatible
query II rowsort label-2578
SELECT DISTINCT - col2, - col1 / + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-10
2
-47
1
-99
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2579
SELECT ALL CAST( - 70 AS SIGNED ), - col2 * - col0 + + col2 col0 FROM tab2 AS cor0
----
-70
1081
-70
2600
-70
4408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2579
SELECT ALL CAST ( - 70 AS INTEGER ), - col2 * - col0 + + col2 col0 FROM tab2 AS cor0
----
-70
1081
-70
2600
-70
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT + ( ( - COUNT( * ) ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + ( ( - COUNT ( * ) ) ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL > 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL MAX( DISTINCT col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT 25 * + col2 AS col0 FROM tab2
----
1000
1450
575

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 - + 37 NOT BETWEEN + col1 * 25 / col2 AND NULL
----

query II rowsort
SELECT DISTINCT ( + 36 ) * - col2 AS col0, col2 + + 57 AS col1 FROM tab0
----
-1692
104
-3564
156
-360
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT ALL + MIN( ALL - + col1 ) + - 68 + - 10 AS col2, - 81 FROM tab2
----
-155
-81

skipif mysql # not compatible
query II rowsort label-2586
SELECT ALL + MIN ( ALL - + col1 ) + - 68 + - 10 AS col2, - 81 FROM tab2
----
-155
-81

query I rowsort
SELECT ALL 29 * - col1 AS col2 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2588
SELECT 40 + + ( + CAST( NULL AS SIGNED ) ) * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT 40 + + ( + CAST ( NULL AS INTEGER ) ) * - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( - - 28 ) AS col1 FROM tab1 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT + - CAST( NULL AS SIGNED ) * col2 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT + - CAST ( NULL AS INTEGER ) * col2 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 28 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2592
SELECT ALL + + CAST( + + 83 AS SIGNED ) AS col1, 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to aa3bbad3c0f0339bf973d5fe6301837b

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL + + CAST ( + + 83 AS INTEGER ) AS col1, 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to aa3bbad3c0f0339bf973d5fe6301837b

query I rowsort
SELECT + col0 - 56 FROM tab1 AS cor0
----
-5
29
35

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 - - col0 / col2 * col1 IS NULL
----

query I rowsort
SELECT col2 + ( + 32 ) FROM tab0 AS cor0
----
131
42
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT ALL - + 82 FROM tab2 AS cor0 WHERE - 3 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - + 82 FROM tab2 AS cor0 WHERE - 3 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT DISTINCT COUNT( * ) * MAX( - col2 ), - 89 AS col2 FROM tab0
----
-30
-89

skipif mysql # not compatible
query II rowsort label-2597
SELECT DISTINCT COUNT ( * ) * MAX ( - col2 ), - 89 AS col2 FROM tab0
----
-30
-89

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 1 < + 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2599
SELECT ALL col1 DIV + - 12 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL col1 / + - 12 FROM tab2
----
-4
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + MAX( ALL col0 ) * MIN( col2 ) FROM tab0
----
970

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + MAX ( ALL col0 ) * MIN ( col2 ) FROM tab0
----
970

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + 33 <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT DISTINCT + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL + MAX( ALL + col2 ) col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT ALL + MAX ( ALL + col2 ) col2 FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT + 39 * + CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 39 * + CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 68
----

query I rowsort
SELECT 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT + MIN( + col1 ) AS col2, + 83 + COUNT( DISTINCT - + col0 ) FROM tab1
----
5
86

skipif mysql # not compatible
query II rowsort label-2607
SELECT + MIN ( + col1 ) AS col2, + 83 + COUNT ( DISTINCT - + col0 ) FROM tab1
----
5
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL + SUM( - - col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + SUM ( - - col2 ) AS col2 FROM tab1 cor0
----
223

onlyif mysql # DIV for integer division: 
query II rowsort label-2609
SELECT + 13 DIV + col1 + ( + - col0 ) AS col1, - 92 FROM tab2 AS cor0
----
-46
-92
-64
-92
-75
-92

skipif mysql # not compatible
query II rowsort label-2609
SELECT + 13 / + col1 + ( + - col0 ) AS col1, - 92 FROM tab2 AS cor0
----
-46
-92
-64
-92
-75
-92

query I rowsort
SELECT + col0 * col0 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 15 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2611
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + CAST( NULL AS DECIMAL ) ) + 47 < NULL
----

skipif mysql # not compatible
query I rowsort label-2611
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - + CAST ( NULL AS REAL ) ) + 47 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + COUNT( * ) + - 66 AS col1 FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2612
SELECT + COUNT ( * ) + - 66 AS col1 FROM tab2 cor0
----
-63

query I rowsort
SELECT col0 + - + col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2614
SELECT + + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) - - - COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) - - - COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( + col0 + + - col1 * col2 + + col2 ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 68 * ( - + 77 ) AS col2 FROM tab2
----
5236

query I rowsort
SELECT ALL col0 * col1 * - 39 + + col2 AS col1 FROM tab0
----
-3684
-47338
-71243

query I rowsort
SELECT ALL + col1 * - 1 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT 7 * + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT 7 * + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query II rowsort label-2621
SELECT DISTINCT - col2 + + col0, - 77 DIV + col0 AS col1 FROM tab1 AS cor0
----
-45
-1
23
0
26
0

skipif mysql # not compatible
query II rowsort label-2621
SELECT DISTINCT - col2 + + col0, - 77 / + col0 AS col1 FROM tab1 AS cor0
----
-45
-1
23
0
26
0

query I rowsort
SELECT DISTINCT - + col1 * + + 12 + - + 91 + col0 + - ( 72 ) * + 87 * + col2 + - 78 AS col1 FROM tab1 AS cor0
----
-369720
-426594
-601630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2623
SELECT + col2, 98 * - 61 FROM tab2 AS cor0 WHERE - col1 < + - CAST( - 3 AS SIGNED )
----
23
-5978
40
-5978
58
-5978

skipif mysql # not compatible
query II rowsort label-2623
SELECT + col2, 98 * - 61 FROM tab2 AS cor0 WHERE - col1 < + - CAST ( - 3 AS INTEGER )
----
23
-5978
40
-5978
58
-5978

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + 27 + + MAX( - + col1 ) - - COUNT( * ) FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-2624
SELECT + 27 + + MAX ( - + col1 ) - - COUNT ( * ) FROM tab0 AS cor0
----
29

query I rowsort
SELECT ALL + - col0 * ( - - 49 ) + + col1 FROM tab1 AS cor0
----
-2485
-4160
-4412

query I rowsort
SELECT + col1 + + 76 AS col1 FROM tab1 AS cor0
----
123
81
90

query I rowsort
SELECT DISTINCT - 59 + + col2 + + ( - + col0 ) FROM tab2 AS cor0
----
-76
-82
-83

query III rowsort
SELECT * FROM tab1 WHERE + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT - COUNT( 1 ) FROM tab0 AS cor0 WHERE NOT + col1 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - COUNT ( 1 ) FROM tab0 AS cor0 WHERE NOT + col1 * col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL + 6 FROM tab0 cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + 37 + - col0 AS col2 FROM tab2 AS cor0
----
-27
-38
-9

query II rowsort
SELECT ALL - 41 AS col1, 75 FROM tab0 AS cor0
----
-41
75
-41
75
-41
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ( - + ( ( + col1 ) ) ) * + + col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query II rowsort
SELECT DISTINCT - - col2, col2 + + col0 * + - col2 AS col2 FROM tab1 AS cor0
----
59
-4956
68
-6120
96
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT - + 44 * + - col0 * + CAST( 1 AS SIGNED ) * + 35 AS col0 FROM tab2 cor0
----
115500
70840
98560

skipif mysql # not compatible
query I rowsort label-2636
SELECT - + 44 * + - col0 * + CAST ( 1 AS INTEGER ) * + 35 AS col0 FROM tab2 cor0
----
115500
70840
98560

query II rowsort
SELECT DISTINCT - 92, 73 * col0 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-92
189969
-92
527484
-92
604581

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT - 46 AS col1 FROM tab0 AS cor0 WHERE NOT col2 + col1 + + col1 * + 87 * col0 BETWEEN + ( - + 82 ) AND + + col1 + col1
----
-46
-46
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2640
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + + col1 ) + 74 * 71 = + CAST( col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2640
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + + col1 ) + 74 * 71 = + CAST ( col0 AS REAL )
----

query II rowsort
SELECT DISTINCT + + col2, + col0 + - + col0 AS col1 FROM tab1 WHERE + 84 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2642
SELECT DISTINCT COUNT( * ) DIV + + 3 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT COUNT ( * ) / + + 3 AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL - 34 DIV 40 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2643
SELECT ALL - 34 / 40 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 - col1 FROM tab0 WHERE NOT - 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL MAX( DISTINCT + + col0 ) col2 FROM tab2
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2645
SELECT ALL MAX ( DISTINCT + + col0 ) col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2646
SELECT ALL + + 75 * 37 AS col1, - 20 + - COUNT( - col0 ) col1 FROM tab0 AS cor0
----
2775
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2646
SELECT ALL + + 75 * 37 AS col1, - 20 + - COUNT ( - col0 ) col1 FROM tab0 AS cor0
----
2775
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 24 * - - col2 AS col0, - 19 col0 FROM tab2 AS cor0
----
-1392
-19
-552
-19
-960
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2648
SELECT 12 DIV + + MAX( ALL + + 66 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2648
SELECT 12 / + + MAX ( ALL + + 66 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + 0 * col1 + + 56 AS col2 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( ( + col0 ) AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2650
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( ( + col0 ) AS INTEGER ) = NULL
----

query I rowsort
SELECT DISTINCT 99 * - 85 FROM tab1 cor0
----
-8415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT ALL + CAST( - ( - ( + col1 ) ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + CAST ( - ( - ( + col1 ) ) AS INTEGER ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT DISTINCT + COUNT( * ) DIV MIN( + + 71 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT + COUNT ( * ) / MIN ( + + 71 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2654
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL <= - + ( + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-2654
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL <= - + ( + + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT MAX( + col2 ) FROM tab1 AS cor0 WHERE 11 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT MAX ( + col2 ) FROM tab1 AS cor0 WHERE 11 IS NOT NULL
----
96

query I rowsort
SELECT + ( - 72 ) AS col1 FROM tab1 AS cor0
----
-72
-72
-72

query II rowsort
SELECT - - col1 AS col1, + col1 + - col1 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query I rowsort
SELECT - 32 FROM tab0 AS cor0 WHERE + 90 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT DISTINCT - COUNT( * ) + + 49 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT - COUNT ( * ) + + 49 FROM tab0 AS cor0
----
46

query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab2 cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 BETWEEN + 48 * + - col2 - + 98 AND NULL
----

query I rowsort
SELECT ALL - - 41 + - col2 FROM tab0 AS cor0
----
-58
-6
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 35 * + col0 + + + 44, ( + col0 ) FROM tab0 WHERE + - ( - col1 ) IS NOT NULL
----
3089
87
3439
97
569
15

query I rowsort
SELECT + 54 + + 20 AS col1 FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2666
SELECT DISTINCT - 81 AS col0, AVG ( DISTINCT + col2 ) * + + ( - + 35 ) - - - CAST( NULL AS SIGNED ) + - 13 * - 47 FROM tab2
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-2666
SELECT DISTINCT - 81 AS col0, AVG ( DISTINCT + col2 ) * + + ( - + 35 ) - - - CAST ( NULL AS INTEGER ) + - 13 * - 47 FROM tab2
----
-81
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE + col2 IN ( + col2 )
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL + col0 + - + CAST( NULL AS SIGNED ) + 50 * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + col0 + - + CAST ( NULL AS INTEGER ) + 50 * - + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 + - col0 FROM tab1
----
1293
210
3105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2670
SELECT - + COUNT( * ) / - ( - COUNT( * ) ) + - COUNT( * ) * + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT - + COUNT ( * ) / - ( - COUNT ( * ) ) + - COUNT ( * ) * + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 - - col1 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + SUM( ALL - - col0 ) * + MIN( - 63 ) + + - 46 + - + 69 FROM tab0 AS cor0 WHERE col2 = + col2 + + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT + SUM ( ALL - - col0 ) * + MIN ( - 63 ) + + - 46 + - + 69 FROM tab0 AS cor0 WHERE col2 = + col2 + + - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + COUNT( + 97 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2673
SELECT + COUNT ( + 97 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + col0 + + + col1 + + col2 FROM tab0 AS cor0
----
118
143
197

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2675
SELECT - - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE - col2 * + - col0 * - + ( - col1 ) + + col2 IN ( + + 60, - 13 * - + 84, + col2 + col0, - 4 )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 <= col2 * col2 - - 44
----

query I rowsort
SELECT ALL 41 * - col0 AS col0 FROM tab1 AS cor0
----
-2091
-3485
-3731

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0, col2, col1 )
----

query I rowsort
SELECT ALL - - col0 * - col0 - + + col1 AS col1 FROM tab2 cor0
----
-2167
-4173
-5692

query I rowsort
SELECT ALL - ( + ( + - col1 ) ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 AS col0, + 66 col1 FROM tab0
----
42
66
42
66
42
66

query II rowsort
SELECT ALL - col1 AS col2, col0 AS col1 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT ALL + - 92 AS col0 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2686
SELECT CAST( NULL AS DECIMAL ) AS col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2686
SELECT CAST ( NULL AS REAL ) AS col1, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - 17 * - 87 * ( + col0 ) AS col2 FROM tab2
----
110925
68034
94656

query I rowsort
SELECT DISTINCT ( + + 47 ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT + 91 * + - 71 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
-6370
-6376
-6410

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL 61 * + ( COUNT( * ) ) + - 31 + + - 64 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL 61 * + ( COUNT ( * ) ) + - 31 + + - 64 FROM tab0 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT - - col0 * + - col2 DIV - - col2 + + + col0 * col1 FROM tab0 AS cor0
----
0
1200
1740

skipif mysql # not compatible
query I rowsort label-2691
SELECT - - col0 * + - col2 / - - col2 + + + col0 * col1 FROM tab0 AS cor0
----
0
1200
1740

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < - 46
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) - col2 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 5 * col0 - col0 FROM tab0
----
348
388
60

query I rowsort
SELECT ALL col2 - ( - col1 ) AS col2 FROM tab1
----
110
115
64

query I rowsort
SELECT - 22 * + col1 FROM tab1
----
-1034
-110
-308

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT - 26 FROM tab0 WHERE NOT NULL = ( 84 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT ALL - 89 + 99 DIV - col0 FROM tab2
----
-90
-90
-91

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - 89 + 99 / - col0 FROM tab2
----
-90
-90
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT ALL + ( ( + col2 ) ) FROM tab0 WHERE ( + col2 * CAST( NULL AS SIGNED ) ) BETWEEN - 67 AND + col2
----

skipif mysql # not compatible
query I rowsort label-2703
SELECT ALL + ( ( + col2 ) ) FROM tab0 WHERE ( + col2 * CAST ( NULL AS INTEGER ) ) BETWEEN - 67 AND + col2
----

query I rowsort
SELECT DISTINCT + col1 + + col0 * - col2 AS col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT + 30 * - col0 AS col0 FROM tab1
----
-1530
-2550
-2730

query I rowsort
SELECT ( col2 ) FROM tab2 WHERE col0 / col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT COUNT( + col1 ) - COUNT( * ) * - 51 AS col0 FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-2707
SELECT COUNT ( + col1 ) - COUNT ( * ) * - 51 AS col0 FROM tab1
----
156

query III rowsort
SELECT * FROM tab0 WHERE NOT 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT COUNT( * ) * 6 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2709
SELECT COUNT ( * ) * 6 FROM tab0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL IN ( 15 * col1 + - col2 )
----

query I rowsort
SELECT ALL col2 + - col1 FROM tab2 WHERE NOT NULL <= - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT 7 * COUNT( * ) FROM tab2 WHERE + col1 + - col1 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-2713
SELECT 7 * COUNT ( * ) FROM tab2 WHERE + col1 + - col1 IS NOT NULL
----
21

query I rowsort
SELECT ALL col2 * 20 FROM tab0
----
1980
200
940

query III rowsort
SELECT * FROM tab2 WHERE 14 NOT BETWEEN ( + col1 ) AND 1 * col1 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2716
SELECT ALL + CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * 74 - col0 col1 FROM tab0
----
3825
3835
3907

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + SUM( + 75 ) AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2718
SELECT + SUM ( + 75 ) AS col1 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + ( - 21 ) AND col2 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + ( - 21 ) AND col2 * + 11
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + 8 - 11 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 52 ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT 40 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT 40 / + col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT col1 - + col1 * ( - CAST( col2 AS SIGNED ) * col2 ) AS col0 FROM tab1
----
129038
17410
217375

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT col1 - + col1 * ( - CAST ( col2 AS INTEGER ) * col2 ) AS col0 FROM tab1
----
129038
17410
217375

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT 46 DIV col1 AS col2 FROM tab0
----
0
2
46

skipif mysql # not compatible
query I rowsort label-2726
SELECT 46 / col1 AS col2 FROM tab0
----
0
2
46

query I rowsort
SELECT + col0 + + 59 FROM tab2 AS cor0 WHERE - 99 + + 98 >= + col0 * col1
----

query I rowsort
SELECT 94 - col0 * col0 FROM tab0 AS cor0
----
-131
-7475
-9315

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2729
SELECT ALL CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col0 + 22 AS col2 FROM tab2 AS cor0
----
1080
2582
4372

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT - col2 * col1 + + 10 DIV + 37 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-2731
SELECT - col2 * col1 + + 10 / + 37 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 45 ) NOT BETWEEN NULL AND ( + col1 / + col1 + + col0 )
----

query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab0 WHERE NOT ( 0 * - 11 ) > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2734
SELECT * FROM tab1 WHERE NOT NULL < ( - CAST( ( col0 ) AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-2734
SELECT * FROM tab1 WHERE NOT NULL < ( - CAST ( ( col0 ) AS INTEGER ) + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT COUNT( - 7 ) * - MIN( ALL + col0 ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2735
SELECT COUNT ( - 7 ) * - MIN ( ALL + col0 ) FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT MIN( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2736
SELECT MIN ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / col2 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + 24 * SUM( col2 ) FROM tab1 AS cor0
----
5352

skipif mysql # not compatible
query I rowsort label-2738
SELECT + 24 * SUM ( col2 ) FROM tab1 AS cor0
----
5352

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT + col2 + + col2 * ( 27 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - ( 68 ) AS col0 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT ALL 0 * 94 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col1 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2743
SELECT COUNT( * ) * 70 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-2743
SELECT COUNT ( * ) * 70 FROM tab1 AS cor0
----
210

query I rowsort
SELECT ( + 4 ) FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT 85 * - 38 AS col0 FROM tab0 cor0
----
-3230
-3230
-3230

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 68 + - col0 * - 43 IS NOT NULL
----

query I rowsort
SELECT ALL + + 21 AS col2 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL - 83 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col2 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE NOT NULL IS NULL OR NOT - 48 BETWEEN ( col0 ) AND ( col1 )
----
51
85
91

query I rowsort
SELECT - 1 * col2 - - col2 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 58 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL COUNT( * ) FROM tab1 WHERE col1 * col2 = ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL COUNT ( * ) FROM tab1 WHERE col1 * col2 = ( - col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL + ( COUNT( * ) ) * + 70 AS col0 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL + ( COUNT ( * ) ) * + 70 AS col0 FROM tab1
----
210

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 41 > ( + col0 / 85 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 + 42 col0 FROM tab2 AS cor0
----
29
37
50

query I rowsort
SELECT DISTINCT + col0 * + ( - ( + 47 ) ) - 86 FROM tab1 AS cor0
----
-2483
-4081
-4363

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < ( col1 ) * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 + 47 NOT IN ( + col2 + 49 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ( - + COUNT( * ) ) * - + 5 * + 10 AS col0 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-2760
SELECT ( - + COUNT ( * ) ) * - + 5 * + 10 AS col0 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL - SUM( col1 ) + - MIN( + 71 ) AS col2 FROM tab2
----
-266

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - SUM ( col1 ) + - MIN ( + 71 ) AS col2 FROM tab2
----
-266

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 28 IS NULL
----

query I rowsort
SELECT DISTINCT 96 + + + 76 AS col1 FROM tab1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL - - 74 * - 65 * - MIN( ALL - 68 ) FROM tab2 AS cor0
----
-327080

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL - - 74 * - 65 * - MIN ( ALL - 68 ) FROM tab2 AS cor0
----
-327080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT DISTINCT - 35 + + - CAST( - 31 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - 35 + + - CAST ( - 31 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab1 AS cor0 WHERE - col0 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2767
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 + + CAST( NULL AS SIGNED ) + + col1 ) AND NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 + + CAST ( NULL AS INTEGER ) + + col1 ) AND NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT + col1 + CAST( - + col2 AS SIGNED ) col1 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2769
SELECT + col1 + CAST ( - + col2 AS INTEGER ) col1 FROM tab1
----
-21
-54
-82

query III rowsort
SELECT * FROM tab0 WHERE NULL < + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT - SUM( DISTINCT 0 ) + - 81 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-2771
SELECT - SUM ( DISTINCT 0 ) + - 81 FROM tab1
----
-81

query I rowsort
SELECT ALL - 50 * - 40 FROM tab2
----
2000
2000
2000

query I rowsort
SELECT DISTINCT + ( col2 ) * + col0 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 * + + 59 + - col1 > 57 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT ALL 95 / - CAST( NULL AS SIGNED ) * + 92 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL 95 / - CAST ( NULL AS INTEGER ) * + 92 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 + - col2 col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT COUNT( ALL col0 ) FROM tab0 WHERE + col2 + + 37 NOT BETWEEN 1 - col0 AND ( + col1 * col0 )
----
1

skipif mysql # not compatible
query I rowsort label-2777
SELECT COUNT ( ALL col0 ) FROM tab0 WHERE + col2 + + 37 NOT BETWEEN 1 - col0 AND ( + col1 * col0 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT COUNT( + 64 ) + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2778
SELECT COUNT ( + 64 ) + COUNT ( * ) col0 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT 45 + + - MIN( ALL + 37 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-2779
SELECT 45 + + - MIN ( ALL + 37 ) FROM tab1
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2780
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + 7 + - - CAST( col1 AS DECIMAL ) - 57 )
----

skipif mysql # not compatible
query III rowsort label-2780
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - + 7 + - - CAST ( col1 AS REAL ) - 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT + col1 * 91 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2781
SELECT + col1 * 91 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 60 + col0 FROM tab2 AS cor0
----
106
124
135

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2783
SELECT col1 FROM tab1 cor0 WHERE ( NOT ( - CAST( NULL AS DECIMAL ) ) IS NOT NULL )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2783
SELECT col1 FROM tab1 cor0 WHERE ( NOT ( - CAST ( NULL AS REAL ) ) IS NOT NULL )
----
14
47
5

query I rowsort
SELECT - 48 AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT + col0 * + - col0 <= NULL
----

query I rowsort
SELECT + col1 * + col2 * 92 + - col0 AS col0 FROM tab0 AS cor0
----
19233
350229
9011

query I rowsort
SELECT - + col1 * - col2 * + col2 FROM tab0 AS cor0
----
178929
2100
9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 85 FROM tab2 cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT COUNT( * ) * - 71 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-2791
SELECT COUNT ( * ) * - 71 FROM tab1
----
-213

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + - AVG ( DISTINCT 58 ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT MIN( DISTINCT + - 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-2794
SELECT MIN ( DISTINCT + - 98 ) FROM tab2
----
-98

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) <= 24 - + 27
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT - ( - CAST( NULL AS SIGNED ) ) * ( 29 ) AS col0 FROM tab1 WHERE NOT + col0 * + col2 + - - 30 + CAST( 80 AS SIGNED ) NOT IN ( + 50 )
----

skipif mysql # not compatible
query I rowsort label-2796
SELECT - ( - CAST ( NULL AS INTEGER ) ) * ( 29 ) AS col0 FROM tab1 WHERE NOT + col0 * + col2 + - - 30 + CAST ( 80 AS INTEGER ) NOT IN ( + 50 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NULL ) NOT IN ( 62 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 79 ) col0 FROM tab0
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-2799
SELECT ALL + 41 + + - col2 AS col2, ( - col2 ) DIV + col2 FROM tab1
----
-18
-1
-27
-1
-55
-1

skipif mysql # not compatible
query II rowsort label-2799
SELECT ALL + 41 + + - col2 AS col2, ( - col2 ) / + col2 FROM tab1
----
-18
-1
-27
-1
-55
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2800
SELECT * FROM tab1 WHERE NOT ( - ( - + 74 ) * + ( + - col0 ) ) NOT IN ( - ( + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2800
SELECT * FROM tab1 WHERE NOT ( - ( - + 74 ) * + ( + - col0 ) ) NOT IN ( - ( + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2801
SELECT ALL * FROM tab1 WHERE - CAST( - col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2801
SELECT ALL * FROM tab1 WHERE - CAST ( - col0 AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 = ( + + 89 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT + AVG ( + 11 ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT + AVG ( + 11 ) + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 33 * + - col1 AS col0 FROM tab1
----
-1551
-165
-462

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT DISTINCT - ( - - COUNT( * ) ) + MAX( + col0 ) * + COUNT( * ) + - - COUNT( * ) * + ( 77 ) col1 FROM tab1 AS cor0
----
501

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2806
SELECT DISTINCT - ( - - COUNT ( * ) ) + MAX ( + col0 ) * + COUNT ( * ) + - - COUNT ( * ) * + ( 77 ) col1 FROM tab1 AS cor0
----
501

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + + COUNT( * ) + - 52 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2807
SELECT + + COUNT ( * ) + - 52 FROM tab0 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 + + col0 col1 FROM tab1 AS cor0 WHERE ( - col2 * + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL MAX( DISTINCT + ( col0 ) ) + - - 69 + + COUNT( * ) * - + 14 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL MAX ( DISTINCT + ( col0 ) ) + - - 69 + + COUNT ( * ) * - + 14 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + ( 33 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + 15 - - + col0 FROM tab1
----
1360
1456
816

query II rowsort
SELECT 66 + + 2 AS col1, col1 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT - 38 - COUNT( * ) AS col2 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2813
SELECT - 38 - COUNT ( * ) AS col2 FROM tab0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2814
SELECT - CAST( NULL AS SIGNED ) / - col1 + - col2 + col2 FROM tab0 WHERE + + col2 > ( col1 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2814
SELECT - CAST ( NULL AS INTEGER ) / - col1 + - col2 + col2 FROM tab0 WHERE + + col2 > ( col1 + + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ( + ( 87 ) ) - - COUNT( * ) + 66 * COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2815
SELECT ( + ( 87 ) ) - - COUNT ( * ) + 66 * COUNT ( * ) FROM tab1
----
288

query I rowsort
SELECT ALL - 87 + - col0 FROM tab0 WHERE + col1 - - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + + + col2 col1 FROM tab0
----
-42
-79
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 97 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2819
SELECT ALL - col2 DIV 69 * - col1 * - col0 col1 FROM tab1
----
-714
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2819
SELECT ALL - col2 / 69 * - col1 * - col0 col1 FROM tab1
----
-714
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-28

query I rowsort
SELECT ALL + + 81 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + + MIN( ALL - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2822
SELECT + + MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + + 89 * col2 AS col2 FROM tab1 AS cor0
----
5251
6052
8544

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 IN ( - + ( - 0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col0 * - col2, - col0 AS col0 FROM tab0 AS cor0
----
705
-15
870
-87
9603
-97

query II rowsort
SELECT DISTINCT col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL SUM( - - 85 ) AS col1 FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL SUM ( - - 85 ) AS col1 FROM tab2
----
255

query I rowsort
SELECT DISTINCT + 30 * - col0 AS col2 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2829
SELECT DISTINCT - ( COUNT( * ) ) DIV - - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - ( COUNT ( * ) ) / - - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2830
SELECT 15 DIV CAST( + 47 AS SIGNED ) DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT 15 / CAST ( + 47 AS INTEGER ) / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 56 + 8 AS col1 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT - col0 * + 48 + + + 7 FROM tab1
----
-2441
-4073
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT - COUNT( ( + 59 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - COUNT ( ( + 59 ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT 95 + + col2 FROM tab0 AS cor0
----
105
142
194

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ALL + COUNT( 51 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL + COUNT ( 51 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 30 * - col2 FROM tab0
----
-1410
-2970
-300

query I rowsort
SELECT + - col2 - 21 FROM tab2 AS cor0
----
-44
-61
-79

query I rowsort
SELECT + 28 FROM tab2 AS cor0 WHERE NULL <= + col1 / - + 69 * + 26 * - ( + + 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2839
SELECT ALL col0 + col1 DIV - - col2 AS col1 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL col0 + col1 / - - col2 AS col1 FROM tab2 AS cor0
----
48
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT DISTINCT + col1 + - - col0 DIV col0 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + col1 + - - col0 / col0 FROM tab1 AS cor0
----
15
48
6

query I rowsort
SELECT col1 + + col0 + 29 FROM tab1 AS cor0
----
119
167
94

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL + COUNT( * ) - + - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL + COUNT ( * ) - + - COUNT ( * ) FROM tab2
----
6

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN - + col2 AND 61
----
46
51
23

query I rowsort
SELECT - 17 + - col1 AS col0 FROM tab0
----
-18
-38
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT CAST( NULL AS SIGNED ) * 18 + 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT CAST ( NULL AS INTEGER ) * 18 + 61 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - MIN( + 72 ) col0 FROM tab0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2847
SELECT - MIN ( + 72 ) col0 FROM tab0
----
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 26 <= NULL )
----

query I rowsort
SELECT ALL col0 * + - 4 FROM tab1
----
-204
-340
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE ( 29 IS NULL ) OR NOT ( NULL NOT BETWEEN col2 * - col0 AND CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE ( 29 IS NULL ) OR NOT ( NULL NOT BETWEEN col2 * - col0 AND CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * + 42 AS col0 FROM tab1 cor0
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL - ( + MAX( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - ( + MAX ( + col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2853
SELECT DISTINCT + 16 AS col1, MIN( ALL col0 ) FROM tab1
----
16
51

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT + 16 AS col1, MIN ( ALL col0 ) FROM tab1
----
16
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2854
SELECT * FROM tab2 WHERE NOT - 67 >= CAST( col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2854
SELECT * FROM tab2 WHERE NOT - 67 >= CAST ( col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + - ( - col1 ) ) FROM tab0 WHERE col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT 96 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0 + - + 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2857
SELECT - 44 DIV ( - - col1 ) + - col0 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
1230
150
1912

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 44 / ( - - col1 ) + - col0 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
1230
150
1912

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT 16 + - 54 DIV - 33 FROM tab0 cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-2858
SELECT 16 + - 54 / - 33 FROM tab0 cor0
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT ALL + col0 DIV + ( 87 ) FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + col0 / + ( 87 ) FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) * - - col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) * - - col0 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col0 * 76 FROM tab1
----
3876
6460
6916

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2864
SELECT col2 DIV 27 AS col1, col0 AS col0 FROM tab0
----
0
87
1
15
3
97

skipif mysql # not compatible
query II rowsort label-2864
SELECT col2 / 27 AS col1, col0 AS col0 FROM tab0
----
0
87
1
15
3
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + col2 ), 98 col1 FROM tab2 WHERE ( col1 * + col1 <> NULL ) OR NOT col2 / - col2 - col2 IS NULL
----
-23
98
-40
98
-58
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2866
SELECT ALL 55 + col2 col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
114
NULL
123
NULL
151
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2866
SELECT ALL 55 + col2 col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
114
NULL
123
NULL
151
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL - MIN( - + col2 ) FROM tab1 WHERE col2 * - col1 * ( + 77 ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - MIN ( - + col2 ) FROM tab1 WHERE col2 * - col1 * ( + 77 ) IS NOT NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2868
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - 8 AS SIGNED ) < + col2 + + col2 DIV - col0 * + + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2868
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - 8 AS INTEGER ) < + col2 + + col2 / - col0 * + + 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - + + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL SUM( 61 ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL SUM ( 61 ) FROM tab1
----
183

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE - 94 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL COUNT( - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL COUNT ( - - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + ( + + 50 ) + - + 30 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT ALL - + col0 + ( col1 ) FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2875
SELECT col1 DIV - - 56 + + col1 col2 FROM tab0 cor0
----
1
21
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2875
SELECT col1 / - - 56 + + col1 col2 FROM tab0 cor0
----
1
21
82

query I rowsort
SELECT ALL - 40 + - col2 AS col1 FROM tab0 AS cor0
----
-139
-50
-87

query I rowsort
SELECT DISTINCT - + 13 + + col0 AS col0 FROM tab0 AS cor0
----
2
74
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT 56 DIV col1 AS col2 FROM tab0 AS cor0
----
0
2
56

skipif mysql # not compatible
query I rowsort label-2878
SELECT 56 / col1 AS col2 FROM tab0 AS cor0
----
0
2
56

query I rowsort
SELECT col1 * - + col0 - - 54 AS col1 FROM tab0 cor0
----
-1161
-1773
-43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - 44
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT + SUM( - - 25 ) * + 71 FROM tab1
----
5325

skipif mysql # not compatible
query I rowsort label-2881
SELECT + SUM ( - - 25 ) * + 71 FROM tab1
----
5325

query II rowsort
SELECT ALL + col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT - + SUM( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 73 * + + col1 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT - + SUM ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 73 * + + col1 AND - col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2884
SELECT - col0 FROM tab2 WHERE NOT NULL >= + CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2884
SELECT - col0 FROM tab2 WHERE NOT NULL >= + CAST ( + col0 AS REAL )
----

query I rowsort
SELECT ALL col0 + + + col2 AS col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT + COUNT( * ) * + COUNT( * ) - - 8 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2886
SELECT + COUNT ( * ) * + COUNT ( * ) - - 8 FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL - 85 + - ( - col2 ) - - + col1 * + col0 FROM tab0 AS cor0
----
111
1177
1752

query II rowsort
SELECT ALL - 35 * + + col0, 62 AS col1 FROM tab1 AS cor0
----
-1785
62
-2975
62
-3185
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT DISTINCT - SUM( ALL + col2 ) DIV + - COUNT( * ) + 32 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - SUM ( ALL + col2 ) / + - COUNT ( * ) + 32 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL + col0 + + + 82 AS col0 FROM tab0 AS cor0
----
169
179
97

query I rowsort
SELECT col1 * + + 34 AS col1 FROM tab1 AS cor0
----
1598
170
476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2892
SELECT ALL 37 DIV + COUNT( ALL 46 ) col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT ALL 37 / + COUNT ( ALL 46 ) col0 FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT DISTINCT - CAST( - + COUNT( + 73 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT - CAST ( - + COUNT ( + 73 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 72 FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT 10 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT col2 * - 66 * + col2 + - col1 + + 12 * col1 AS col1 FROM tab0 WHERE + 0 <= + 53 * + 54
----
-144903
-6369
-646855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT col0 * col0 + + CAST( 92 AS SIGNED ) + 97 * + col2 + col2 AS col1 FROM tab0
----
19203
4923
8641

skipif mysql # not compatible
query I rowsort label-2897
SELECT col0 * col0 + + CAST ( 92 AS INTEGER ) + 97 * + col2 + col2 AS col1 FROM tab0
----
19203
4923
8641

query I rowsort
SELECT + ( col2 ) + - 23 FROM tab0
----
-13
24
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2899
SELECT col1 * + col1 + - col0 + + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-2899
SELECT col1 * + col1 + - col0 + + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT DISTINCT + - 86 FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + ( 57 ) col1, col2 FROM tab0 AS cor0
----
144
10
154
99
72
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + + 2 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2902
SELECT + + 2 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col1 * - ( + col1 ) - - - col0 * + - col1 * - col2 * + col0 FROM tab2 AS cor0
----
-12621609
-21863239
-2484669

query I rowsort
SELECT + col2 + - - col2 * + - col1 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT col2 - + + col0 + + - 61 FROM tab2
----
-78
-84
-85

query I rowsort
SELECT col2 - - + 89 * + - 58 FROM tab2
----
-5104
-5122
-5139

query I rowsort
SELECT DISTINCT col1 + 61 AS col0 FROM tab2 AS cor0
----
112
128
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2908
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2909
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2909
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL CAST( + - 24 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL CAST ( + - 24 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2912
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE 42 / col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE 42 / col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + - COUNT( DISTINCT - ( + col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2913
SELECT + - COUNT ( DISTINCT - ( + col1 ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * + + 73 * + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, + 88 AS col2 FROM tab1
----
51
88
85
88
91
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT MAX( DISTINCT + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2917
SELECT MAX ( DISTINCT + - col0 ) FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + col1 col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-2919
SELECT + col1 * - col0 DIV - + col0 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2919
SELECT + col1 * - col0 / - + col0 AS col2 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 / + - col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT + MIN( - + ( + ( - - col0 ) ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2922
SELECT + MIN ( - + ( + ( - - col0 ) ) ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 81 * + col2 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 23 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
23

query I rowsort
SELECT DISTINCT - 7 FROM tab2, tab2 cor0
----
-7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 26 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL - + 85 + CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-10
-21
-39

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - + 85 + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10
-21
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + - SUM( ALL + + 44 ) FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + - SUM ( ALL + + 44 ) FROM tab0 AS cor0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 90 BETWEEN + 28 AND col2 * - col2
----

query I rowsort
SELECT + col1 * + 35 FROM tab0 AS cor0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query II rowsort label-2932
SELECT + - col2 AS col2, col2 DIV + ( + - 40 ) FROM tab1 AS cor0
----
-59
-1
-68
-1
-96
-2

skipif mysql # not compatible
query II rowsort label-2932
SELECT + - col2 AS col2, col2 / + ( + - 40 ) FROM tab1 AS cor0
----
-59
-1
-68
-1
-96
-2

query I rowsort
SELECT ALL + + 58 + + + col0 + - + col1 FROM tab2 AS cor0
----
45
53
66

query II rowsort
SELECT + col2 * col1 AS col2, - col0 * + 26 * + + col1 * col0 AS col1 FROM tab1
----
1344
-946764
295
-939250
3196
-10119382

query I rowsort
SELECT - + col0 AS col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL col0 * - + 72 * - + col1 FROM tab0
----
131544
6984
87480

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT ALL 34 DIV - - col1 col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2937
SELECT ALL 34 / - - col1 col0 FROM tab1
----
0
2
6

query I rowsort
SELECT DISTINCT 43 - + - col2 AS col2 FROM tab1 AS cor0
----
102
111
139

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT col1 DIV + col1 + col1 AS col1 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-2939
SELECT col1 / + col1 + col1 AS col1 FROM tab0 cor0
----
2
22
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2940
SELECT + ( - + CAST( col1 AS DECIMAL ) ) * - + col1 AS col0 FROM tab0 AS cor0 WHERE col1 / + + col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-2940
SELECT + ( - + CAST ( col1 AS REAL ) ) * - + col1 AS col0 FROM tab0 AS cor0 WHERE col1 / + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-2941
SELECT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + col2
----

query I rowsort
SELECT - + ( + 50 ) FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2945
SELECT + 93 DIV - SUM( DISTINCT + + 47 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2945
SELECT + 93 / - SUM ( DISTINCT + + 47 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-2946
SELECT + col1 DIV - ( col1 ) col2, col2 AS 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-2946
SELECT + col1 / - ( col1 ) col2, col2 AS col2 FROM tab1 AS cor0
----
-1
59
-1
68
-1
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = + + col0 * 3 * + + 24
----

query I rowsort
SELECT - col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT + - ( col1 ) AS col1 FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + ( - 91 ) <= - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT - - SUM( - CAST( + col1 AS SIGNED ) ) * - + COUNT( * ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-2951
SELECT - - SUM ( - CAST ( + col1 AS INTEGER ) ) * - + COUNT ( * ) FROM tab0 AS cor0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL MIN( ALL - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL MIN ( ALL - col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - COUNT( * ) FROM tab0 WHERE NOT ( NOT + 14 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-2953
SELECT - COUNT ( * ) FROM tab0 WHERE NOT ( NOT + 14 IS NOT NULL )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 18
----
0

skipif mysql # not compatible
query I rowsort label-2955
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 18
----
0

query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 FROM tab0
----
1262
1837
196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN col2 + + - col1 AND + col0
----

query I rowsort
SELECT ALL - col1 + + col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + MAX( - 96 ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + MAX ( - 96 ) AS col1 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT ALL - COUNT( + 7 ) * - 55 AS col2 FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - COUNT ( + 7 ) * - 55 AS col2 FROM tab2 cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT - 58 * + COUNT( * ) AS col1 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - 58 * + COUNT ( * ) AS col1 FROM tab1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL 11 * - + COUNT( * ) * + - COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL 11 * - + COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
99

query II rowsort
SELECT DISTINCT - col1 AS col0, 26 FROM tab0
----
-1
26
-21
26
-81
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2964
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) + + col1 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2964
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) + + col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + 80 FROM tab2
----
1840
3200
4640

query I rowsort
SELECT col1 + - - 36 AS col2 FROM tab0
----
117
37
57

query I rowsort
SELECT + + 47 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT - col0 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - col0 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT ALL + - 76 - - MIN( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + - 76 - - MIN ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT - 8 - + col0 FROM tab1 AS cor0
----
-59
-93
-99

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - 62 - - col0 AS col1 FROM tab0
----
-47
25
35

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 12 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT - + ( - SUM( col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2975
SELECT - + ( - SUM ( col2 ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT - MAX( DISTINCT - col2 ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2977
SELECT DISTINCT + - COUNT( * ) * - 77 * + CAST( NULL AS SIGNED ) AS col1, - 71 * 40 FROM tab2 AS cor0
----
NULL
-2840

skipif mysql # not compatible
query II rowsort label-2977
SELECT DISTINCT + - COUNT ( * ) * - 77 * + CAST ( NULL AS INTEGER ) AS col1, - 71 * 40 FROM tab2 AS cor0
----
NULL
-2840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col2 col1 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT + 36 DIV - col2 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT + 36 / - col2 AS col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + MAX( DISTINCT col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2980
SELECT + MAX ( DISTINCT col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT ALL + col0, + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL + col0, + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 1 AS col2 FROM tab2
----
51
1
67
1
77
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 67 + col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 67 + col0 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT DISTINCT + COUNT( * ) + + - 66 AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT + COUNT ( * ) + + - 66 AS col2 FROM tab1 AS cor0
----
-63

query II rowsort
SELECT ALL col1 * - 66 - + col1, col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1407
870
-5427
705
-67
9603

query I rowsort
SELECT 99 * - col1 + - 66 FROM tab0
----
-165
-2145
-8085

query I rowsort
SELECT - col0 + + col2 + + col0 AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + 1 + - + COUNT( * ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2988
SELECT + 1 + - + COUNT ( * ) AS col1 FROM tab1
----
-2

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 76 ) = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 40 >= - 83 / + + ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT col2 + 71 DIV - - 40 AS col0 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT col2 + 71 / - - 40 AS col0 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT ALL + 0 + - + 3 AS col0 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ( 87 ) AS col1 FROM tab2 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT + MAX( + 76 ) * 46 AS col0 FROM tab0
----
3496

skipif mysql # not compatible
query I rowsort label-2994
SELECT + MAX ( + 76 ) * 46 AS col0 FROM tab0
----
3496

query I rowsort
SELECT 78 AS col0 FROM tab0 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT + MIN( DISTINCT col2 ) + + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + MIN ( DISTINCT col2 ) + + COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT ALL + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT col2 + + - col1 * - 15 * - col0 FROM tab0 cor0
----
-1356
-18178
-27395

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - MIN( ALL + col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2999
SELECT - MIN ( ALL + col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT - col1 * + + col2 AS col2 FROM tab1
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * + - 20 col1 FROM tab1
----
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL - - COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT DISTINCT - - col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * - ( + 10 ) col0 FROM tab2 AS cor0
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT ALL - COUNT( * ) * + 0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT ALL - COUNT ( * ) * + 0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT 28 * MIN( - + ( - - 37 ) ) AS col0 FROM tab1 cor0
----
-1036

skipif mysql # not compatible
query I rowsort label-3006
SELECT 28 * MIN ( - + ( - - 37 ) ) AS col0 FROM tab1 cor0
----
-1036

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 65 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 65 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3009
SELECT + 39 DIV col0 + + col1 FROM tab0 AS cor0
----
1
21
83

skipif mysql # not compatible
query I rowsort label-3009
SELECT + 39 / col0 + + col1 FROM tab0 AS cor0
----
1
21
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT ALL + + col2 DIV - - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + + col2 / - - col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT - - CAST( - col0 AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3011
SELECT - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * - col2 * + 62 FROM tab2
----
-190960
-240932
-72726

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + COUNT( - + col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3013
SELECT + COUNT ( - + col1 ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3014
SELECT DISTINCT + SUM( + - ( CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + SUM ( + - ( CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 63 + + - col2 FROM tab1 AS cor0
----
-33
-5
4

query II rowsort
SELECT 54, col0 FROM tab0
----
54
15
54
87
54
97

query I rowsort
SELECT - ( - col1 ) - - + col0 * - ( + col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-107865
-315315
-376808

query I rowsort
SELECT ALL + col2 + - 52 AS col2 FROM tab2 AS cor0 WHERE NOT - - col0 * + - col1 < 9 OR + col1 IS NOT NULL
----
-12
-29
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND + - col0 + - 43
----

query I rowsort
SELECT ALL + - 14 - - col2 FROM tab0 AS cor0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT COUNT( * ) - + ( 30 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-3021
SELECT COUNT ( * ) - + ( 30 ) FROM tab0 AS cor0
----
-27

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( col0 + - 56 )
----

query I rowsort
SELECT ALL + 32 + col2 AS col1 FROM tab0 AS cor0
----
131
42
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN col2 AND + 24
----
0

skipif mysql # not compatible
query I rowsort label-3024
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 BETWEEN col2 AND + 24
----
0

query I rowsort
SELECT DISTINCT ( + - ( - - 88 ) ) FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL MAX( ALL col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL MAX ( ALL col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT + ( + - col1 ) * 48 FROM tab2
----
-2448
-3216
-3696

query I rowsort
SELECT DISTINCT + col0 + - 31 FROM tab0
----
-16
56
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT - - ( + - col2 ) * - + 0 + + + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT - - ( + - col2 ) * - + 0 + + + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3030
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 * + CAST( - + 27 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3030
SELECT * FROM tab2 AS cor0 WHERE NOT + 78 * + CAST ( - + 27 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3031
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( - ( - col0 ) AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3031
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( - ( - col0 ) AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT + ( + 62 ) * COUNT( * ) AS col0, - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
186
-3

skipif mysql # not compatible
query II rowsort label-3033
SELECT + ( + 62 ) * COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 87 IS NULL
----
186
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col2 FROM tab1 WHERE NOT + ( + + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL MAX( DISTINCT - 10 ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL MAX ( DISTINCT - 10 ) AS col0 FROM tab2
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, - 97 + + - col0 * 66 * col0 col1 FROM tab2
----
23
-139753
40
-270433
58
-371347

query I rowsort
SELECT ALL 18 * 95 FROM tab1 AS cor0
----
1710
1710
1710

query I rowsort
SELECT - - 13 FROM tab0 AS cor0 WHERE NOT NULL < - 13 * + 32 + col2 * - + col1 / - 61
----

query I rowsort
SELECT DISTINCT 65 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
65

query I rowsort
SELECT ALL - 98 * + + 87 + col0 AS col0 FROM tab0 AS cor0
----
-8429
-8439
-8511

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 * - 90 NOT BETWEEN NULL AND - col1 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-3041
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 * - 90 NOT BETWEEN NULL AND - col1 * + col2
----
0

query I rowsort
SELECT DISTINCT + ( + 78 ) * + - col0 AS col1 FROM tab0 AS cor0
----
-1170
-6786
-7566

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT - 8 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3043
SELECT - 8 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 87 - 7 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT col1 * - col0 * + 13 - + - ( + col0 ) AS col1, - 66 + + - col2 + col0, - 77 + - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 84d781af7ff66ed7bd69995e7745e1f9

query I rowsort
SELECT col2 * - col0 * + col1 AS col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3047
SELECT + CAST( + - col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3047
SELECT + CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT ALL + col0 AS col2, ( + col1 ) + + + col2 FROM tab2
----
46
74
64
117
75
125

query II rowsort
SELECT 41 AS col1, + col2 * + - 2 * + col0 AS col1 FROM tab1
----
41
-10030
41
-12376
41
-9792

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - COUNT( ALL - col0 ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - COUNT ( ALL - col0 ) * COUNT ( * ) AS col1 FROM tab1
----
-9

query II rowsort
SELECT DISTINCT + col1, 74 + + - col2 FROM tab1
----
14
-22
47
6
5
15

query I rowsort
SELECT DISTINCT 9 + + col1 AS col0 FROM tab0
----
10
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL COUNT( * ) + 11 AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL COUNT ( * ) + 11 AS col2 FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL col0 AS col0 FROM tab0 WHERE ( NOT ( NOT ( CAST( NULL AS SIGNED ) ) IS NULL ) )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL col0 AS col0 FROM tab0 WHERE ( NOT ( NOT ( CAST ( NULL AS INTEGER ) ) IS NULL ) )
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + 91 ) col1 FROM tab2 AS cor0
----
33
51
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69, + 68 col2 FROM tab2 AS cor0
----
69
68
69
68
69
68

query II rowsort
SELECT DISTINCT + + 67, col0 FROM tab1 AS cor0
----
67
51
67
85
67
91

query I rowsort
SELECT ALL 82 * ( col0 ) * + col2 * - col2 AS col1 FROM tab1
----
-24262570
-34504288
-38541312

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT 13 * - ( + COUNT( * ) ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3059
SELECT 13 * - ( + COUNT ( * ) ) FROM tab0
----
-39

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE 51 * - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 50 + + 8 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-2529
-7162
-8176

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT + 91 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + 91 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3063
SELECT * FROM tab2 WHERE - 88 * - CAST( + 80 AS SIGNED ) + + 63 + + + 8 * - + col2 / col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3063
SELECT * FROM tab2 WHERE - 88 * - CAST ( + 80 AS INTEGER ) + + 63 + + + 8 * - + col2 / col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 - + col2 col1 FROM tab1
----
-41
-50
-78

query II rowsort
SELECT - col0 AS col2, ( + 83 ) FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT COUNT( * ) AS col0, - 30 col0 FROM tab2
----
3
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3066
SELECT COUNT ( * ) AS col0, - 30 col0 FROM tab2
----
3
-30

query I rowsort
SELECT DISTINCT - ( - 24 ) AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3068
SELECT - 1 DIV + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3068
SELECT - 1 / + COUNT ( * ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - - 42 + + + 64 NOT BETWEEN - - 55 + - 18 AND - 20
----

query I rowsort
SELECT ALL 28 * - + col0 AS col2 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT - + CAST( NULL AS SIGNED ) / ( - 39 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3071
SELECT - + CAST ( NULL AS INTEGER ) / ( - 39 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 66 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT SUM( DISTINCT + 35 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT SUM ( DISTINCT + 35 ) AS col1 FROM tab2
----
35

query II rowsort
SELECT DISTINCT - - 50 + + 5 AS col2, col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
55
10
55
47
55
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3075
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) BETWEEN - 96 AND + CAST( + 64 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3075
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) BETWEEN - 96 AND + CAST ( + 64 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col0 ) NOT BETWEEN - 6 AND NULL
----

query I rowsort
SELECT - + 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL + + COUNT( * ) + - + 4 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL + + COUNT ( * ) + - + 4 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3079
SELECT + SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT DISTINCT MIN( - col0 ) col2 FROM tab0 AS cor0 WHERE NOT + col2 + - CAST( - 92 AS SIGNED ) IS NULL
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3080
SELECT DISTINCT MIN ( - col0 ) col2 FROM tab0 AS cor0 WHERE NOT + col2 + - CAST ( - 92 AS INTEGER ) IS NULL
----
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 + + ( - + ( + + col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * 2 + + col0 AS col2 FROM tab1 AS cor0
----
153
255
273

query I rowsort
SELECT - + 53 * + col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3084
SELECT DISTINCT * FROM tab1 WHERE NOT + 20 * - CAST( NULL AS SIGNED ) + + col2 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3084
SELECT DISTINCT * FROM tab1 WHERE NOT + 20 * - CAST ( NULL AS INTEGER ) + + col2 - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + 53 * - col2 AS col0 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT col2 + - col0 + - col1 * + - col2 AS col0 FROM tab1
----
1389
269
3173

query I rowsort
SELECT + 54 + + + col0 - col2 * + col0 * + 89 FROM tab0
----
-62676
-77289
-854516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 col1, 61 FROM tab1 AS cor0
----
66
61

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT + 27 * + + col0 * + col2 BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE col2 <> ( ( - + col1 ) ) + col1 + - 20 + - 36
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT + SUM( + + col1 ) - - 91 AS col2 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT + SUM ( + + col1 ) - - 91 AS col2 FROM tab1
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT ALL col1 DIV - 40 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3093
SELECT ALL col1 / - 40 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3094
SELECT - col1 - - col0 * col1 DIV - col1 AS col1 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-3094
SELECT - col1 - - col0 * col1 / - col1 AS col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT + 5 - + 14 FROM tab0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col1, - 18 col1 FROM tab1 AS cor0
----
-51
-18
-85
-18
-91
-18

query I rowsort
SELECT + + 49 + - 72 AS col1 FROM tab1 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * ( - - 5 ) - col1 col1 FROM tab1 cor0
----
-282
-30
-84

query I rowsort
SELECT ( - ( + col0 ) ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3100
SELECT DISTINCT 10 DIV - col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT 10 / - col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 20 * MAX( ALL col2 ) * COUNT( * ) FROM tab2
----
3480

skipif mysql # not compatible
query I rowsort label-3101
SELECT 20 * MAX ( ALL col2 ) * COUNT ( * ) FROM tab2
----
3480

query I rowsort
SELECT ALL - + 31 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT CAST( NULL AS SIGNED ) * + col0 * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT CAST ( NULL AS INTEGER ) * + col0 * - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > + 88 + 90 + - col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT - col1 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT + 97 * + - COUNT( * ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-3106
SELECT + 97 * + - COUNT ( * ) AS col2 FROM tab0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT + SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT + SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT 62 * + col2 AS col1 FROM tab1
----
3658
4216
5952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3109
SELECT ALL + CAST( NULL AS SIGNED ) * - - 7 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL + CAST ( NULL AS INTEGER ) * - - 7 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3110
SELECT + 64 * 51 DIV col0 * + 99 AS col1, 65 FROM tab0
----
21483
65
3267
65
3663
65

skipif mysql # not compatible
query II rowsort label-3110
SELECT + 64 * 51 / col0 * + 99 AS col1, 65 FROM tab0
----
21483
65
3267
65
3663
65

query III rowsort
SELECT * FROM tab2 WHERE - + 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + MAX( ALL - col2 ) + 89 * - - 14 AS col2 FROM tab2 AS cor0
----
1223

skipif mysql # not compatible
query I rowsort label-3112
SELECT + MAX ( ALL - col2 ) + 89 * - - 14 AS col2 FROM tab2 AS cor0
----
1223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 - + + ( - col0 ) + - col2 col0 FROM tab1 AS cor0
----
-44
24
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3114
SELECT DISTINCT + 46 AS col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif mysql # not compatible
query II rowsort label-3114
SELECT DISTINCT + 46 AS col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + col2 * - - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE NOT + col2 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT DISTINCT + MAX( - 19 ) AS col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3117
SELECT DISTINCT + MAX ( - 19 ) AS col1 FROM tab1 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - SUM( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3118
SELECT - SUM ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT col1 / + CAST( NULL AS SIGNED ) + + - col2 AS col2, 38 AS col0 FROM tab1 cor0
----
NULL
38
NULL
38
NULL
38

skipif mysql # not compatible
query II rowsort label-3119
SELECT col1 / + CAST ( NULL AS INTEGER ) + + - col2 AS col2, 38 AS col0 FROM tab1 cor0
----
NULL
38
NULL
38
NULL
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT + SUM( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col0 AND NULL
----

query I rowsort
SELECT ( - 27 ) FROM tab0
----
-27
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT ALL col0 * + col1 DIV - - ( col1 ) AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL col0 * + col1 / - - ( col1 ) AS col1 FROM tab0
----
15
87
97

query II rowsort
SELECT + col2, - col0 * + + col1 AS col0 FROM tab1
----
59
-425
68
-4277
96
-714

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 83 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - + col0 * col2
----

query I rowsort
SELECT 42 * + col2 FROM tab0 AS cor0
----
1974
4158
420

query I rowsort
SELECT DISTINCT - - col0 * - 76 + - + col1 * + col1 FROM tab0 AS cor0
----
-7053
-7373
-7701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - ( col0 ) > NULL
----

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT + + 44 AS col2 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3135
SELECT - ( - col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( - - col0 AS SIGNED ) + - + col1 + col1 AND 85
----

skipif mysql # not compatible
query I rowsort label-3135
SELECT - ( - col2 ) FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( - - col0 AS INTEGER ) + - + col1 + col1 AND 85
----

query I rowsort
SELECT ALL - + 41 AS col2 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL col2 + col1 + + col0 * + - col1 FROM tab2 AS cor0
----
-2272
-4811
-4900

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT 14 + + ( + 92 ) AS col0, MAX( + - col1 ) AS col1 FROM tab0
----
106
-1

skipif mysql # not compatible
query II rowsort label-3138
SELECT 14 + + ( + 92 ) AS col0, MAX ( + - col1 ) AS col1 FROM tab0
----
106
-1

query III rowsort
SELECT * FROM tab0 WHERE + + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, col1 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ALL CAST( + 72 AS SIGNED ) FROM tab1
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL CAST ( + 72 AS INTEGER ) FROM tab1
----
72
72
72

query I rowsort
SELECT - 86 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query III rowsort
SELECT * FROM tab2 WHERE + 70 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3144
SELECT COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3145
SELECT MIN( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT MIN ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3146
SELECT + col0 AS col1, + CAST( NULL AS DECIMAL ) / + 54 * - 78 col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3146
SELECT + col0 AS col1, + CAST ( NULL AS REAL ) / + 54 * - 78 col1 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3147
SELECT COUNT( * ) DIV - 92 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3147
SELECT COUNT ( * ) / - 92 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT 61 * - COUNT( * ) FROM tab2 WHERE col2 + - 57 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3148
SELECT 61 * - COUNT ( * ) FROM tab2 WHERE col2 + - 57 IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 - 77 AS col1 FROM tab1
----
-128
-162
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL ( ( ( 4 ) ) ) + - COUNT( col2 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL ( ( ( 4 ) ) ) + - COUNT ( col2 ) FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + + col1 col1 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3152
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) / + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) / + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - 52 col1 FROM tab0 WHERE NULL IS NULL
----
151
62
99

query III rowsort
SELECT * FROM tab2 WHERE ( 55 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT - SUM( + col2 ) + COUNT( * ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - SUM ( + col2 ) + COUNT ( * ) FROM tab2
----
-118

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 90 + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT + ( - col2 ) DIV + col0 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3157
SELECT + ( - col2 ) / + col0 col2 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE ( col2 ) NOT IN ( + col2 * col1 )
----
-2

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE ( col2 ) NOT IN ( + col2 * col1 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL + SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + SUM ( col1 ) FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 99 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT MAX( ALL + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT MAX ( ALL + col0 ) AS col1 FROM tab2
----
75

query I rowsort
SELECT 79 - - col2 AS col0 FROM tab0
----
126
178
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT CAST( 34 AS SIGNED ) + 92 * + COUNT( * ) AS col1 FROM tab2
----
310

skipif mysql # not compatible
query I rowsort label-3163
SELECT CAST ( 34 AS INTEGER ) + 92 * + COUNT ( * ) AS col1 FROM tab2
----
310

query I rowsort
SELECT col1 + - 8 AS col2 FROM tab0
----
-7
13
73

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT ALL MIN( ALL 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL MIN ( ALL 14 ) FROM tab1
----
14

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT COUNT( - 82 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3168
SELECT COUNT ( - 82 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT MAX( DISTINCT col1 ) col2 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3169
SELECT MAX ( DISTINCT col1 ) col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT - CAST( 79 AS SIGNED ) FROM tab0 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3170
SELECT - CAST ( 79 AS INTEGER ) FROM tab0 WHERE NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 - 6 AS col1 FROM tab1
----
45
79
85

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 >= ( col2 + col0 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE col0 NOT BETWEEN - col2 AND - col2 - - col1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN - 81 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT ALL - 5 + - col0 DIV col1 FROM tab2 WHERE col0 + col1 NOT IN ( + col1 )
----
-5
-5
-6

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - 5 + - col0 / col1 FROM tab2 WHERE col0 + col1 NOT IN ( + col1 )
----
-5
-5
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT MAX( - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3177
SELECT MAX ( - col0 ) AS col1 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 * + col0 ) NOT IN ( col2 * - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - ( 79 ) ) FROM tab1
----
-79

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 52
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 ) NOT BETWEEN 59 AND + 47 + - 7 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT - COUNT( * ) * 81 FROM tab0 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT - COUNT ( * ) * 81 FROM tab0 cor0
----
-243

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN 73 * + ( ( col2 ) ) AND ( 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - MIN( ALL - col2 ) * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 33 BETWEEN 92 AND + col0
----
-297

skipif mysql # not compatible
query I rowsort label-3185
SELECT - MIN ( ALL - col2 ) * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 33 BETWEEN 92 AND + col0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT + 72 * MIN( ALL - 78 * 30 ) FROM tab1 AS cor0
----
-168480

skipif mysql # not compatible
query I rowsort label-3186
SELECT + 72 * MIN ( ALL - 78 * 30 ) FROM tab1 AS cor0
----
-168480

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 * col0 + + 14 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT ALL - col1 DIV + 56 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL - col1 / + 56 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT + 38 * 46 AS col2 FROM tab2 AS cor0
----
1748
1748
1748

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT ALL COUNT( * ) DIV + 71 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL COUNT ( * ) / + 71 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT - 53 DIV col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT - 53 / col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT - 51 + 63 FROM tab2
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL 23 + - COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 23 + - COUNT ( * ) FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT - MAX( col0 ) + 94 col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3196
SELECT DISTINCT - MAX ( col0 ) + 94 col1 FROM tab2 AS cor0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT ALL + + 21 DIV + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + + 21 / + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT 88 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3198
SELECT 88 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col2 ) ) > + col1
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 + col2 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col2 FROM tab1 cor0
----
36
36
36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT COUNT( * ) * - MAX( - col1 ) col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3203
SELECT COUNT ( * ) * - MAX ( - col1 ) col1 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT ALL COUNT( DISTINCT + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL COUNT ( DISTINCT + col1 ) FROM tab1
----
3

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT 70 * + COUNT( * ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-3206
SELECT 70 * + COUNT ( * ) FROM tab1
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3207
SELECT * FROM tab2 WHERE col1 <> - CAST( col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3207
SELECT * FROM tab2 WHERE col1 <> - CAST ( col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( + col1 * 86 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 * col1 + - 35 * col2 ) IS NOT NULL
----

query I rowsort
SELECT col1 - ( col2 ) AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL MIN( - - col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL MIN ( - - col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT COUNT( * ) + + 94 AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT COUNT ( * ) + + 94 AS col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT col0 * + col1 + 76 * + col1 AS col0 FROM tab0 AS cor0
----
173
3423
7371

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col2 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * col2 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON ( NULL ) NOT BETWEEN + 2 AND NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT ALL ( COUNT( * ) ) FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL ( COUNT ( * ) ) FROM tab1, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT - SUM( ALL + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - SUM ( ALL + - col0 ) FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 56 AND - col2 / 91
----

query II rowsort
SELECT ALL - col2, - ( col0 ) AS col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT col2 * col1 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * + - col2 ) IN ( - 28 * col0 )
----

skipif mysql # not compatible
query I rowsort label-3223
SELECT col2 * col1 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * + - col2 ) IN ( - 28 * col0 )
----

query I rowsort
SELECT + + ( - + 90 ) FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + + COUNT( - 28 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + + COUNT ( - 28 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT - COUNT( + ( + 47 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3226
SELECT - COUNT ( + ( + 47 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 68 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 AND - 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT DISTINCT - COUNT( - + col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3228
SELECT DISTINCT - COUNT ( - + col1 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - - MIN( ALL - + 68 ) AS col1 FROM tab0 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3229
SELECT - - MIN ( ALL - + 68 ) AS col1 FROM tab0 cor0
----
-68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3231
SELECT * FROM tab1 WHERE NOT - 51 + + CAST( - col0 AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3231
SELECT * FROM tab1 WHERE NOT - 51 + + CAST ( - col0 AS INTEGER ) <= ( NULL )
----

query I rowsort
SELECT - 87 * col1 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT DISTINCT MIN( ALL + 82 ) * + SUM( - + col2 ) FROM tab0
----
-12792

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT MIN ( ALL + 82 ) * + SUM ( - + col2 ) FROM tab0
----
-12792

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT DISTINCT + COUNT( + + col0 ) FROM tab1 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT + COUNT ( + + col0 ) FROM tab1 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT col2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
123
183
206

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 - col1 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 43 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * col0 * - + col1 * 90 IS NULL
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3238
SELECT ALL col2 AS col2, + ( - + CAST( NULL AS SIGNED ) ) * + col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3238
SELECT ALL col2 AS col2, + ( - + CAST ( NULL AS INTEGER ) ) * + col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL + - 87 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL COUNT( * ) * + + COUNT( * ) + 44 - + - 57 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COUNT ( * ) * + + COUNT ( * ) + 44 - + - 57 FROM tab2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT - MIN( DISTINCT - + 15 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3241
SELECT - MIN ( DISTINCT - + 15 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col2 + + 72 + + 44 AS col2 FROM tab0 AS cor0
----
106
17
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + 95 - + - COUNT( * ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3243
SELECT + 95 - + - COUNT ( * ) FROM tab2 AS cor0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3244
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 0 + 51 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT ALL + - col1 * + 17 + + col0 AS col0 FROM tab2 cor0
----
-1064
-1245
-821

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT DISTINCT col2 DIV - - col0 - + col0 * + ( + - col1 ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT col2 / - - col0 - + col0 * + ( + - col1 ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 WHERE ( + + 68 * 48 * + col0 + - + col1 + + 83 ) NOT BETWEEN col1 AND - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 21 + + col0 FROM tab0
----
108
118
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT 62 DIV - col1 AS col1 FROM tab0
----
-2
-62
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT 62 / - col1 AS col1 FROM tab0
----
-2
-62
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT ( col0 ) DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3251
SELECT ( col0 ) / col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 + + 10 AS col2 FROM tab0 cor0
----
11
31
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 / + col1 IS NULL
----

query I rowsort
SELECT ALL - - ( 91 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL < - 17
----

query I rowsort
SELECT col0 * + - ( - ( + col1 ) ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + + SUM( ALL + col1 ) + - - 98 AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
293

skipif mysql # not compatible
query I rowsort label-3257
SELECT + + SUM ( ALL + col1 ) + - - 98 AS col1 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab0 cor0
----
-49
-49
-49

query II rowsort
SELECT ALL ( 68 ), ( - - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
68
110
68
115
68
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL BETWEEN col0 - + col2 AND col0 )
----

query I rowsort
SELECT col2 * - + 30 AS col0 FROM tab2
----
-1200
-1740
-690

query I rowsort
SELECT DISTINCT col0 * - + 37 AS col0 FROM tab1
----
-1887
-3145
-3367

query I rowsort
SELECT - col2 + col1 FROM tab1 WHERE NOT ( NULL ) < ( 69 - + + col1 + - col2 + + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT - + ( - - MAX( DISTINCT + 93 ) ) FROM tab1 WHERE + + col2 NOT IN ( + col0, col2 / col2 )
----
-93

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - + ( - - MAX ( DISTINCT + 93 ) ) FROM tab1 WHERE + + col2 NOT IN ( + col0, col2 / col2 )
----
-93

query I rowsort
SELECT ALL - col1 + + ( + col1 ) + - + col1 * - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT + 46 + + ( - - col0 ) AS col0 FROM tab2
----
110
121
92

query I rowsort
SELECT - 44 + + 17 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 50 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3269
SELECT CAST( NULL AS DECIMAL ) + - 52 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT CAST ( NULL AS REAL ) + - 52 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE 78 IS NULL
----

query I rowsort
SELECT ALL - 30 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3272
SELECT - - CAST( - 84 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-3272
SELECT - - CAST ( - 84 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT col2 + + - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT + ( - 8 ) FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT COUNT( * ) * - 24 AS col0 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT COUNT ( * ) * - 24 AS col0 FROM tab1 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + col2 * - 47 * - - CAST( NULL AS SIGNED ) + - + ( + 0 ) + - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT + col2 * - 47 * - - CAST ( NULL AS INTEGER ) + - + ( + 0 ) + - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL + COUNT( * ) - + - 2 AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + COUNT ( * ) - + - 2 AS col2 FROM tab2 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 27 / col0 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - - MIN( DISTINCT - ( 50 ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3279
SELECT - - MIN ( DISTINCT - ( 50 ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT DISTINCT - - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT - - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT + 78 - col1 + + - col1 * col2 + + + 21 AS col0, 98 - + + 36 * - 27 FROM tab2
----
-1125
1070
-3058
1070
-3854
1070

query I rowsort
SELECT + 96 - + col0 AS col2 FROM tab2
----
21
32
50

query I rowsort
SELECT ALL - 21 - col0 FROM tab0
----
-108
-118
-36

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 = + 77 AND NOT NULL >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT 6 * + ( + - COUNT( * ) ) FROM tab2 WHERE ( 49 + - 67 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3285
SELECT 6 * + ( + - COUNT ( * ) ) FROM tab2 WHERE ( 49 + - 67 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 - + col0 AS col1 FROM tab2
----
-8
13
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + ( - + col1 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + 58
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) * + 17 AS col1 FROM tab2 AS cor0
----
3
51

skipif mysql # not compatible
query II rowsort label-3289
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) * + 17 AS col1 FROM tab2 AS cor0
----
3
51

query I rowsort
SELECT DISTINCT col0 * + 12 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
1044
1164
180

query I rowsort
SELECT DISTINCT - 3 * - col0 AS col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3292
SELECT + col2 DIV col2 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-704
-869
-9602

skipif mysql # not compatible
query I rowsort label-3292
SELECT + col2 / col2 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-704
-869
-9602

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = NULL
----

query II rowsort
SELECT 19 AS col2, col1 AS col2 FROM tab2
----
19
51
19
67
19
77

query I rowsort
SELECT + + 52 * + + col1 + - col2 FROM tab0 AS cor0
----
-47
1082
4165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3296
SELECT + col2 * + + CAST( NULL AS SIGNED ) * 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT + col2 * + + CAST ( NULL AS INTEGER ) * 48 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT + MIN( + col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3297
SELECT + MIN ( + col0 ) col2 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT - CAST( + MIN( ALL - col2 ) AS SIGNED ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3298
SELECT - CAST ( + MIN ( ALL - col2 ) AS INTEGER ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT ( + 71 ) AS col1 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - col0 * + ( - + 60 ) AS col2 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col2 / - ( + col1 ) - 60 + + col1 + + 77 * - + ( 10 ) IN ( + col1 )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT + COUNT( * ) + + COUNT( * ) + + MIN( + col1 ) - + ( COUNT( * ) ) * 71 AS col0 FROM tab1
----
-202

skipif mysql # not compatible
query I rowsort label-3302
SELECT + COUNT ( * ) + + COUNT ( * ) + + MIN ( + col1 ) - + ( COUNT ( * ) ) * 71 AS col0 FROM tab1
----
-202

query I rowsort
SELECT - col0 FROM tab0 WHERE + - 19 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL + 9 * - 28 FROM tab0
----
-252
-252
-252

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 33 < - 17
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT + + SUM( + 40 ) * - - COUNT( * ) * + 27 + + COUNT( * ) FROM tab2 AS cor0
----
9723

skipif mysql # not compatible
query I rowsort label-3307
SELECT + + SUM ( + 40 ) * - - COUNT ( * ) * + 27 + + COUNT ( * ) FROM tab2 AS cor0
----
9723

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT + COUNT( * ) + - MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + COUNT ( * ) + - MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3309
SELECT DISTINCT - + col1 + + - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - + col1 + + - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) * col1 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 + - col0 + col2 FROM tab1 AS cor0
----
-31
-70
31

onlyif mysql # DIV for integer division: 
query II rowsort label-3313
SELECT DISTINCT - - col2 DIV + + 99 - - - 35 AS col0, col0 + + + col2 FROM tab0 AS cor0
----
-34
196
-35
62
-35
97

skipif mysql # not compatible
query II rowsort label-3313
SELECT DISTINCT - - col2 / + + 99 - - - 35 AS col0, col0 + + + col2 FROM tab0 AS cor0
----
-34
196
-35
62
-35
97

query I rowsort
SELECT ALL + col2 + + - ( - - col1 ) FROM tab0 cor0
----
-11
-34
98

query II rowsort
SELECT + + col1 * + col0 AS col2, + col0 * + col2 FROM tab1 AS cor0 WHERE 0 * - 90 * 86 - - 25 < col0
----
425
5015
4277
6188
714
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3316
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT + col2 + + 93 + + + 94 + - + 44 AS col1 FROM tab2
----
166
183
201

query I rowsort
SELECT DISTINCT + ( - ( + + col0 ) ) + - col0 - col2 FROM tab2
----
-115
-168
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT COUNT( * ) * + - ( + COUNT( * ) ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT COUNT ( * ) * + - ( + COUNT ( * ) ) col2 FROM tab1
----
-9

query I rowsort
SELECT + 61 * + ( - 87 ) * - col2 + + 98 FROM tab1
----
313211
360974
509570

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT DISTINCT - MAX( DISTINCT - - 54 ), - 71 AS col2 FROM tab2
----
-54
-71

skipif mysql # not compatible
query II rowsort label-3322
SELECT DISTINCT - MAX ( DISTINCT - - 54 ), - 71 AS col2 FROM tab2
----
-54
-71

query I rowsort
SELECT DISTINCT ( - ( - col1 ) ) AS col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - 95 * 19 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col2, col1 AS col0 FROM tab2
----
37
51
37
67
37
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT ALL 98 col2, COUNT( * ) AS col2 FROM tab0
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3326
SELECT ALL 98 col2, COUNT ( * ) AS col2 FROM tab0
----
98
3

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT ALL + MAX( - 60 ) AS col0 FROM tab1 AS cor0 WHERE col0 * - col0 IS NOT NULL
----
-60

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + MAX ( - 60 ) AS col0 FROM tab1 AS cor0 WHERE col0 * - col0 IS NOT NULL
----
-60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col2, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3332
SELECT 35 DIV - MIN( - 75 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT 35 / - MIN ( - 75 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT DISTINCT + ( col1 ) / - 49 * - col2 + - 64 - 49 * + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + ( col1 ) / - 49 * - col2 + - 64 - 49 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3334
SELECT ALL col2 AS col0, + col0 + + 60 * - col2 + - CAST( - + col1 AS SIGNED ) FROM tab0
----
10
-492
47
-2724
99
-5842

skipif mysql # not compatible
query II rowsort label-3334
SELECT ALL col2 AS col0, + col0 + + 60 * - col2 + - CAST ( - + col1 AS INTEGER ) FROM tab0
----
10
-492
47
-2724
99
-5842

query I rowsort
SELECT - 84 * col1 AS col1 FROM tab0
----
-1764
-6804
-84

query II rowsort
SELECT col1, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT COUNT( * ) * SUM( 26 ) col1 FROM tab0
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3337
SELECT COUNT ( * ) * SUM ( 26 ) col1 FROM tab0
----
234

onlyif mysql # DIV for integer division: 
query II rowsort label-3338
SELECT DISTINCT 10 AS col1, col1 DIV - col0 FROM tab0
----
10
-5
10
0

skipif mysql # not compatible
query II rowsort label-3338
SELECT DISTINCT 10 AS col1, col1 / - col0 FROM tab0
----
10
-5
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT 84 * COUNT( * ) FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-3339
SELECT 84 * COUNT ( * ) FROM tab0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT + 88 + 21 DIV + col1 + - 6 FROM tab0 AS cor0
----
103
82
83

skipif mysql # not compatible
query I rowsort label-3340
SELECT + 88 + 21 / + col1 + - 6 FROM tab0 AS cor0
----
103
82
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT - MAX( - 97 ) FROM tab0 AS cor0 WHERE - 34 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - MAX ( - 97 ) FROM tab0 AS cor0 WHERE - 34 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT MAX( - - 23 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT MAX ( - - 23 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 29 IS NULL
----

query I rowsort
SELECT - - 96 + + - 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT + - 17 DIV COUNT( * ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3345
SELECT + - 17 / COUNT ( * ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3346
SELECT - CAST( + MAX( - col2 ) AS SIGNED ), + 23 AS col2 FROM tab1 AS cor0
----
59
23

skipif mysql # not compatible
query II rowsort label-3346
SELECT - CAST ( + MAX ( - col2 ) AS INTEGER ), + 23 AS col2 FROM tab1 AS cor0
----
59
23

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL >= + col0 / + - col0
----

query I rowsort
SELECT - col2 - + col0 * + col1 FROM tab2 AS cor0
----
-2369
-4968
-5083

onlyif mysql # DIV for integer division: 
query II rowsort label-3349
SELECT + - col0 - + + 4 AS col2, ( + 2 ) DIV col0 * 53 FROM tab0 AS cor0
----
-101
0
-19
0
-91
0

skipif mysql # not compatible
query II rowsort label-3349
SELECT + - col0 - + + 4 AS col2, ( + 2 ) / col0 * 53 FROM tab0 AS cor0
----
-101
0
-19
0
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - COUNT( - + 31 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3350
SELECT - COUNT ( - + 31 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT - 25 * - ( col0 ) AS col2, - col1 AS col2 FROM tab2
----
1150
-51
1600
-77
1875
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT ALL COUNT( * ) * 85 FROM tab1 WHERE NOT NULL IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL COUNT ( * ) * 85 FROM tab1 WHERE NOT NULL IN ( - col1 )
----
0

query I rowsort
SELECT DISTINCT - + 19 + + col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col2 AS col1, col0 + + col1 FROM tab0
----
-10
108
-47
96
-99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT ALL COUNT( + + col0 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3355
SELECT ALL COUNT ( + + col0 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT col2 * - 64 FROM tab0 cor0
----
-3008
-6336
-640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * - col2 * + ( - + 10 ) col1 FROM tab0 cor0
----
23030
48510
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT SUM( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 16 * 39 * - 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT SUM ( col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 16 * 39 * - 56 )
----
NULL

query I rowsort
SELECT ( - 62 ) AS col2 FROM tab1
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT ALL + 48 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + 48 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - - col1 + 80 AS col2 FROM tab0 AS cor0
----
1295
177
1907

query I rowsort
SELECT + 25 * - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-102400
-140625
-52900

query I rowsort
SELECT - ( - + col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + 29 + 70 FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - MAX( DISTINCT col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3365
SELECT - MAX ( DISTINCT col2 ) FROM tab1 cor0
----
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = col0
----

query I rowsort
SELECT 66 + - + col1 * + - col0 FROM tab2
----
2412
4994
5091

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT - 70 + + col1 >= + - col0
----
-96

query II rowsort
SELECT 2 + + col1 AS col0, 18 AS col1 FROM tab1 WHERE + 93 IS NOT NULL
----
16
18
49
18
7
18

query I rowsort
SELECT col2 + - + 3 FROM tab0
----
44
7
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE NULL IS NULL OR NOT - 69 < NULL
----
10
47
99

query I rowsort
SELECT ALL + 74 * + col1 AS col1 FROM tab2
----
3774
4958
5698

query II rowsort
SELECT ALL ( + 21 ) + - 87 AS col2, - col1 FROM tab1
----
-66
-14
-66
-47
-66
-5

query I rowsort
SELECT 14 + - ( col1 ) FROM tab0
----
-67
-7
13

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 WHERE NOT - 38 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + + 38 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3377
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + COUNT( * ) * COUNT( ALL - ( - CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3378
SELECT ALL - - MIN( + - CAST( NULL AS DECIMAL ) ) + - COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL - - MIN ( + - CAST ( NULL AS REAL ) ) + - COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 4 * - + 33 + - 66 + col1 FROM tab1 AS cor0
----
-151
-184
-193

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3380
SELECT * FROM tab2 WHERE col2 * + + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3380
SELECT * FROM tab2 WHERE col2 * + + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 64, 41 col1 FROM tab0
----
64
41
64
41
64
41

query I rowsort
SELECT ALL - 54 AS col2 FROM tab2 WHERE NOT + col2 / col2 IS NULL
----
-54
-54
-54

query II rowsort
SELECT + 20 * - 38 AS col2, + 0 AS col2 FROM tab1 AS cor0
----
-760
0
-760
0
-760
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + MAX( ALL - 85 ) FROM tab0 cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3385
SELECT + MAX ( ALL - 85 ) FROM tab0 cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT + CAST( NULL AS SIGNED ) / - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT + CAST ( NULL AS INTEGER ) / - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT DISTINCT + ( + - col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT + ( + - col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 13 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - 2 AS col0, - col0 - + ( - col0 ) AS col1 FROM tab0 cor0
----
2
0
2
0
2
0

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT - + SUM( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3391
SELECT DISTINCT - + SUM ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT DISTINCT + COUNT( * ), - COUNT( * ) AS col1 FROM tab1 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3392
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 cor0
----
3
-3

query II rowsort
SELECT DISTINCT 86 * - col2 * - - col0 AS col1, + col1 + + col2 + - + col2 * - 26 + + col0 * col1 FROM tab2
----
-220160
6085
-374100
6658
-90988
3018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3394
SELECT ALL COUNT( * ) * CAST( - 42 AS SIGNED ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL COUNT ( * ) * CAST ( - 42 AS INTEGER ) FROM tab1
----
-126

query I rowsort
SELECT ALL - + col2 + 25 FROM tab2 WHERE NULL < 61
----

query II rowsort
SELECT ALL - ( - col0 ) AS col2, - col2 AS col1 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
41

query I rowsort
SELECT - col1 * - 79 FROM tab0
----
1659
6399
79

query I rowsort
SELECT + + 0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT + CAST( NULL AS SIGNED ) * + 31 * + 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT + CAST ( NULL AS INTEGER ) * + 31 * + 69 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab1 AS cor0 WHERE NOT + 12 IS NOT NULL
----

query II rowsort
SELECT + 0, - 26 AS col2 FROM tab0 AS cor0
----
0
-26
0
-26
0
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3404
SELECT * FROM tab2 cor0 WHERE ( CAST( NULL AS DECIMAL ) * - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3404
SELECT * FROM tab2 cor0 WHERE ( CAST ( NULL AS REAL ) * - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + SUM( DISTINCT + 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-3405
SELECT + SUM ( DISTINCT + 82 ) FROM tab1
----
82

query III rowsort
SELECT * FROM tab1 WHERE ( col2 <= ( + - col1 / - 58 * - + 57 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT 43 DIV 87 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT 43 / 87 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT - MAX( - 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3408
SELECT - MAX ( - 19 ) FROM tab2
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + - + col2 col0 FROM tab2 cor0
----
-2624
-4547
-5969

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + COUNT( * ) + - + 26 col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3410
SELECT + COUNT ( * ) + - + 26 col2 FROM tab2 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * - col0 + + + col1 col2 FROM tab2 AS cor0
----
3823
5325
6217

query I rowsort
SELECT DISTINCT - col1 - - col1 * - - col2 FROM tab1 AS cor0
----
1330
290
3149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 45 / - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT col1 DIV + - 65 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT col1 / + - 65 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 14 col2, - col0 AS col1 FROM tab1 AS cor0
----
-14
-51
-14
-85
-14
-91

query II rowsort
SELECT ALL col0 * + 44 / + - col0 AS col1, - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3419
SELECT + CAST( + + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3419
SELECT + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 79 col0 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + 50 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-3421
SELECT + 50 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-150

query I rowsort
SELECT - - ( + - 35 ) FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3423
SELECT DISTINCT - SUM( ALL col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query II rowsort label-3424
SELECT COUNT( * ) AS col1, 68 + + MIN( + col1 ) FROM tab1
----
3
73

skipif mysql # not compatible
query II rowsort label-3424
SELECT COUNT ( * ) AS col1, 68 + + MIN ( + col1 ) FROM tab1
----
3
73

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN - col0 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT + 49 * - col1 AS col1 FROM tab2
----
-2499
-3283
-3773

query II rowsort
SELECT ALL - col0, col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query II rowsort
SELECT DISTINCT + 21, col0 FROM tab1 cor0
----
21
51
21
85
21
91

query I rowsort
SELECT ALL + 54 AS col1 FROM tab0
----
54
54
54

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= + 21
----

query I rowsort
SELECT - col2 + - 22 + + + col1 FROM tab1 AS cor0
----
-104
-43
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * col0 + + - col1 + - col0 * - + col0 + + col1 + - + col2 - - col2 + - + col1 col1 FROM tab2 AS cor0
----
-1117
-1677
-2029

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 + col0 <> + 8
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT - 69 + col2 - - col0 + + col2 DIV - - 36 AS col0, + col1 + - + col2 + col1 AS col1 FROM tab1 AS cor0
----
76
-49
80
-68
91
26

skipif mysql # not compatible
query II rowsort label-3434
SELECT - 69 + col2 - - col0 + + col2 / - - 36 AS col0, + col1 + - + col2 + col1 AS col1 FROM tab1 AS cor0
----
76
-49
80
-68
91
26

query I rowsort
SELECT DISTINCT + 91 * + 19 FROM tab1 cor0
----
1729

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - COUNT( * ) * - - 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - COUNT ( * ) * - - 97 FROM tab1
----
-291

query I rowsort
SELECT ALL - 48 * + + col0 FROM tab0
----
-4176
-4656
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + COUNT( * ) + - MIN( - col1 ) * - 63 FROM tab2
----
-4848

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + COUNT ( * ) + - MIN ( - col1 ) * - 63 FROM tab2
----
-4848

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3439
SELECT - col0 + + + col1 + - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3439
SELECT - col0 + + + col1 + - + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL COUNT( * ) * + - SUM( + - 10 ) * - 70 FROM tab1
----
-6300

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL COUNT ( * ) * + - SUM ( + - 10 ) * - 70 FROM tab1
----
-6300

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3441
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT SUM( + + col2 ) + COUNT( * ) FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT SUM ( + + col2 ) + COUNT ( * ) FROM tab1 AS cor0
----
226

query I rowsort
SELECT - col0 * - - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 43 * ( ( col1 ) ) FROM tab2
----
2193
2881
3311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3445
SELECT MIN( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3445
SELECT MIN ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 * - col2 + col0 FROM tab2 cor0
----
-1012
-2496
-4275

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 11 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - COUNT( * ) * + ( - 16 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3448
SELECT - COUNT ( * ) * + ( - 16 ) AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT ALL 94 DIV + + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL 94 / + + col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT COUNT( DISTINCT - + 24 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3450
SELECT COUNT ( DISTINCT - + 24 ) AS col0 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT col2 / - CAST( NULL AS SIGNED ) * + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3451
SELECT col2 / - CAST ( NULL AS INTEGER ) * + col2 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT - COUNT( * ) * - 10 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3452
SELECT - COUNT ( * ) * - 10 FROM tab2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3453
SELECT CAST( NULL AS SIGNED ) / + + 49 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3453
SELECT CAST ( NULL AS INTEGER ) / + + 49 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL col1, - ( - + col0 ) * 58 * - - 21 * - col0 * + ( col1 ) FROM tab1
----
14
-44352252
47
-474054126
5
-44000250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 col1, - col0 + - - col0 + - 77 * - ( + 25 ) AS col2 FROM tab1
----
96
1925
96
1925
96
1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT - CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab2 WHERE NOT + col2 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + 7 * COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3458
SELECT + 7 * COUNT ( * ) FROM tab1
----
21

query I rowsort
SELECT DISTINCT - - col1 + 47 * col0 AS col1 FROM tab2 AS cor0
----
2213
3085
3592

query II rowsort
SELECT col1 + + 65 + - col0 * + col0 AS col2, col0 AS col1 FROM tab0
----
-7483
87
-79
15
-9343
97

query III rowsort
SELECT * FROM tab1 WHERE + - ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT DISTINCT + SUM( ALL col0 ) - - COUNT( * ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT + SUM ( ALL col0 ) - - COUNT ( * ) FROM tab1 AS cor0
----
230

onlyif mysql # DIV for integer division: 
query II rowsort label-3463
SELECT col0, - col1 DIV - 28 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
1

skipif mysql # not compatible
query II rowsort label-3463
SELECT col0, - col1 / - 28 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - ( - + 77 ) + - - col0 * col2 / + - col0 * col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > col1 - - col0 + - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 / + - col2 IS NULL
----

query I rowsort
SELECT ( - ( - 38 ) ) FROM tab0
----
38
38
38

query I rowsort
SELECT ALL + col0 * col0 * - - 93 FROM tab2
----
196788
380928
523125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3469
SELECT ALL CAST( NULL AS SIGNED ) - + 21 + + - 64 + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL CAST ( NULL AS INTEGER ) - + 21 + + - 64 + - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE - col1 * - - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3471
SELECT ALL - 72 + col0 AS col2, ( + CAST( NULL AS SIGNED ) ) * + - col2 - + - 74 AS col2 FROM tab1 cor0
----
-21
NULL
13
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL - 72 + col0 AS col2, ( + CAST ( NULL AS INTEGER ) ) * + - col2 - + - 74 AS col2 FROM tab1 cor0
----
-21
NULL
13
NULL
19
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( 59 ) < - 57 * + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 32 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( + col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, ( - col0 ) FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3476
SELECT - col2 / col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT - col2 / col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT + + COUNT( * ) * + ( - COUNT( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT + + COUNT ( * ) * + ( - COUNT ( - + col1 ) ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT MAX( + + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3478
SELECT MAX ( + + col0 ) FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 * + 10 col0 FROM tab0 AS cor0
----
-350
-350
-350

query II rowsort
SELECT - 78 AS col2, + ( col2 ) AS col1 FROM tab2 AS cor0
----
-78
23
-78
40
-78
58

query I rowsort
SELECT ALL 20 * - col2 AS col1 FROM tab2 AS cor0
----
-1160
-460
-800

query I rowsort
SELECT + 90 * + 73 + - - col2 AS col1 FROM tab0 AS cor0
----
6580
6617
6669

query I rowsort
SELECT 42 + + - col0 FROM tab2 WHERE NOT + col1 * + 44 IS NULL
----
-22
-33
-4

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( + - 62 ) * 53 + - col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - col0 + + - 69 FROM tab1
----
-120
-154
-160

query I rowsort
SELECT + - col2 + + - col0 FROM tab2 AS cor0
----
-104
-133
-69

query II rowsort
SELECT + 75 + + col1, col1 AS col0 FROM tab1 AS cor0
----
122
47
80
5
89
14

query I rowsort
SELECT + - col2 + 45 * - col0 AS col0 FROM tab2 AS cor0
----
-2093
-2920
-3433

query I rowsort
SELECT 30 + - 64 AS col2 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT - + 60 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col0 * - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-3490
SELECT - + 60 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col0 * - + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT DISTINCT - COUNT( + col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT - COUNT ( + col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 31 ) col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - 94 + - - 25 + 32 * 91 * 46 * - 50 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-6697669

query I rowsort
SELECT - 8 * - 43 AS col0 FROM tab0
----
344
344
344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3496
SELECT + CAST( NULL AS SIGNED ) * - + COUNT( * ) - - + COUNT( * ) - + + 82 - - - 15 * - CAST( 12 AS SIGNED ) * - AVG ( DISTINCT - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) - - + COUNT ( * ) - + + 82 - - - 15 * - CAST ( 12 AS INTEGER ) * - AVG ( DISTINCT - col2 ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + - 66 FROM tab1 AS cor0
----
-19
-52
-61

query I rowsort
SELECT - 1 + 51 + - col1 AS col1 FROM tab0 AS cor0
----
-31
29
49

query I rowsort
SELECT ALL + col1 + + - 15 FROM tab2 cor0
----
36
52
62

query I rowsort
SELECT DISTINCT + - 47 + - - col0 AS col1 FROM tab2 AS cor0
----
-1
17
28

query I rowsort
SELECT DISTINCT col0 + - 52 + - ( - col0 ) AS col0 FROM tab2 cor0
----
40
76
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 - + col0 col1 FROM tab1
----
-30
-36
4

query II rowsort
SELECT - col0 AS col0, ( + - 99 ) + col1 + - 86 AS col1 FROM tab2
----
-46
-134
-64
-108
-75
-118

query I rowsort
SELECT ALL - ( + - col0 ) - col1 FROM tab1
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL - col2 + CAST( - 22 AS SIGNED ) FROM tab0
----
-121
-32
-69

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - col2 + CAST ( - 22 AS INTEGER ) FROM tab0
----
-121
-32
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - 5 * - col2 col2 FROM tab1
----
1180
1360
1920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3507
SELECT DISTINCT 9 AS col1, CAST( NULL AS SIGNED ) * - + ( + col2 ) AS col1 FROM tab2 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3507
SELECT DISTINCT 9 AS col1, CAST ( NULL AS INTEGER ) * - + ( + col2 ) AS col1 FROM tab2 AS cor0
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT DISTINCT + COUNT( * ) * + - SUM( DISTINCT - - ( + 28 ) ) * - SUM( + + col2 ) AS col0 FROM tab0 cor0
----
13104

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT + COUNT ( * ) * + - SUM ( DISTINCT - - ( + 28 ) ) * - SUM ( + + col2 ) AS col0 FROM tab0 cor0
----
13104

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / + - col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT + 75 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT 1 * + COUNT( * ) DIV - 67 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT 1 * + COUNT ( * ) / - 67 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL - 25 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-225

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL - 25 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-225

query I rowsort
SELECT ALL - ( + 87 ) FROM tab0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT ALL - ( CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3516
SELECT - col0 * - + CAST( 18 AS SIGNED ) + - - col1 FROM tab1 cor0
----
1535
1685
932

skipif mysql # not compatible
query I rowsort label-3516
SELECT - col0 * - + CAST ( 18 AS INTEGER ) + - - col1 FROM tab1 cor0
----
1535
1685
932

query I rowsort
SELECT + + 58 * col2 * + 14 AS col2 FROM tab0 AS cor0
----
38164
80388
8120

query II rowsort
SELECT + 85, - 68 AS col0 FROM tab2
----
85
-68
85
-68
85
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - 34 * + COUNT( * ) * + ( 73 ) AS col0 FROM tab1
----
-7446

skipif mysql # not compatible
query I rowsort label-3519
SELECT - 34 * + COUNT ( * ) * + ( 73 ) AS col0 FROM tab1
----
-7446

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT + col1 DIV - 81 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT + col1 / - 81 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3521
SELECT DISTINCT col2 AS col2, + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
23
51
40
77
58
67

skipif mysql # not compatible
query II rowsort label-3521
SELECT DISTINCT col2 AS col2, + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * col2 col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - 52 IN ( - col0, - col1, col1 - - 96 + + col0 / - 26 * - + col2 * 32, - col1, - col1 * col0 )
----

query I rowsort
SELECT ALL - col1 + + + col0 AS col2 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 61 - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT + - 99 + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3526
SELECT + - 99 + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3527
SELECT col2 * + CAST( NULL AS SIGNED ) + - col1 * - + ( + + 14 ) / - 10 + col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3527
SELECT col2 * + CAST ( NULL AS INTEGER ) + - col1 * - + ( + + 14 ) / - 10 + col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 * + 67 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-1541
-2680
-3886

query II rowsort
SELECT DISTINCT + 23 * + 31 AS col1, col1 FROM tab2 AS cor0
----
713
51
713
67
713
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 * col1 - - col2 + 99 col0 FROM tab0 cor0
----
199
531587
9370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3531
SELECT DISTINCT - col0 - + col1 - - col2 * col0 + - 99 * CAST( NULL AS SIGNED ) * col2, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3531
SELECT DISTINCT - col0 - + col1 - - col2 * col0 + - 99 * CAST ( NULL AS INTEGER ) * col2, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT AVG ( - CAST( NULL AS SIGNED ) ) - 50 + - ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) - 50 + - ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT - 84 - - col2, + col2 FROM tab2 AS cor0
----
-26
58
-44
40
-61
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL ( COUNT( ALL - ( col1 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL ( COUNT ( ALL - ( col1 ) ) ) FROM tab0
----
3

query II rowsort
SELECT ALL - col1 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3538
SELECT + COUNT( * ) AS col0, MAX( - 42 ) col1 FROM tab0 AS cor0
----
3
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3538
SELECT + COUNT ( * ) AS col0, MAX ( - 42 ) col1 FROM tab0 AS cor0
----
3
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL - MIN( - + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - MIN ( - + col0 ) FROM tab1 cor0
----
91

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 21 IN ( - - col0, + col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + 69 * + + COUNT( * ) AS col0 FROM tab0 cor0
----
207

skipif mysql # not compatible
query I rowsort label-3543
SELECT + 69 * + + COUNT ( * ) AS col0 FROM tab0 cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT - - SUM( + + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3544
SELECT - - SUM ( + + col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE + + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT + - SUM( - 18 ) FROM tab2 WHERE - col1 NOT BETWEEN NULL AND - 87 + + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3547
SELECT + - SUM ( - 18 ) FROM tab2 WHERE - col1 NOT BETWEEN NULL AND - 87 + + + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 73 NOT BETWEEN NULL AND 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT - SUM( DISTINCT + 4 ) + - SUM( col1 ) FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT - SUM ( DISTINCT + 4 ) + - SUM ( col1 ) FROM tab1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL COUNT( * ) * - 56 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL COUNT ( * ) * - 56 FROM tab1
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3551
SELECT 97 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT 97 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 77 + + - 73 FROM tab0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + col2 BETWEEN NULL AND - - ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT DISTINCT + ( col2 ) AS col0 FROM tab0 cor0 WHERE + col1 IN ( + col2 * + 65 * + CAST( NULL AS SIGNED ) * - 74, col2 )
----

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT + ( col2 ) AS col0 FROM tab0 cor0 WHERE + col1 IN ( + col2 * + 65 * + CAST ( NULL AS INTEGER ) * - 74, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT - SUM( - 32 ) AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3555
SELECT - SUM ( - 32 ) AS col2 FROM tab0 AS cor0
----
96

query I rowsort
SELECT - col0 - + - col1 FROM tab2
----
-8
13
5

query II rowsort
SELECT DISTINCT - 83 AS col1, + 87 * - - col1 + + 71 FROM tab0 AS cor0 WHERE NOT - 14 <= NULL
----

query II rowsort
SELECT ALL + 61, + col1 AS col2 FROM tab2 cor0
----
61
51
61
67
61
77

query II rowsort
SELECT DISTINCT col2 AS col2, 54 FROM tab0 AS cor0
----
10
54
47
54
99
54

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3560
SELECT ALL col0 FROM tab0 AS cor0 WHERE CAST( col2 AS SIGNED ) + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL col0 FROM tab0 AS cor0 WHERE CAST ( col2 AS INTEGER ) + - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT DISTINCT - MAX( ALL - + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - MAX ( ALL - + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT - COUNT( * ) * ( 14 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3562
SELECT - COUNT ( * ) * ( 14 ) AS col0 FROM tab0
----
-42

query I rowsort
SELECT - 73 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + - 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT col0 DIV - - ( + - col0 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3565
SELECT col0 / - - ( + - col0 ) FROM tab1
----
-1
-1
-1

query III rowsort
SELECT - col0 AS col0, col0 * + - col1 AS col0, + col0 AS col2 FROM tab2
----
9 values hashing to c7c44b431936bd6db992659474dcea8c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT CAST( + + 32 AS SIGNED ) FROM tab0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-3567
SELECT CAST ( + + 32 AS INTEGER ) FROM tab0
----
32
32
32

query I rowsort
SELECT 12 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + ( - col2 ) FROM tab0 WHERE NOT - col1 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 - - 68 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT ALL + - col2 DIV - col0 * + 89 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL + - col2 / - col0 * + 89 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL + - 30 AS col2 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL - 41 + - - col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
23
34
5

query I rowsort
SELECT DISTINCT - 12 + + + col1 * + - col0 + col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-2353
-4927
-5045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT ALL CAST( + - ( + 75 ) AS SIGNED ) + COUNT( * ) FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL CAST ( + - ( + 75 ) AS INTEGER ) + COUNT ( * ) FROM tab1 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT + CAST( - - 28 AS SIGNED ) FROM tab0 AS cor0
----
28
28
28

skipif mysql # not compatible
query I rowsort label-3576
SELECT + CAST ( - - 28 AS INTEGER ) FROM tab0 AS cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = col1 * - col2
----

query I rowsort
SELECT + 57 * + 13 AS col0 FROM tab1 AS cor0
----
741
741
741

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT 69 DIV - 95 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3579
SELECT 69 / - 95 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 14 <> NULL
----

query I rowsort
SELECT - + 59 + + 67 AS col0 FROM tab2 cor0
----
8
8
8

query I rowsort
SELECT ALL + 72 * col1 AS col1 FROM tab2
----
3672
4824
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL + MAX( - 19 ) col1 FROM tab2 cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3583
SELECT ALL + MAX ( - 19 ) col1 FROM tab2 cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT - SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ( + MIN( ALL col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3585
SELECT ( + MIN ( ALL col1 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT MIN( DISTINCT + 40 ) AS col0 FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3586
SELECT MIN ( DISTINCT + 40 ) AS col0 FROM tab1
----
40

query I rowsort
SELECT ALL + col1 * + 38 FROM tab0
----
3078
38
798

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3588
SELECT * FROM tab1 WHERE NOT + CAST( - 44 AS SIGNED ) * - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3588
SELECT * FROM tab1 WHERE NOT + CAST ( - 44 AS INTEGER ) * - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT DISTINCT - 49 DIV + COUNT( * ) col2 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT DISTINCT - 49 / + COUNT ( * ) col2 FROM tab2
----
-16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - + col2 + + col0 + + col2 + - col1 * - col1
----

query I rowsort
SELECT - ( - 35 ) FROM tab1
----
35
35
35

query I rowsort
SELECT DISTINCT - + 4 AS col2 FROM tab0 cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT + 80 * + + COUNT( * ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 80 * + + COUNT ( * ) FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3594
SELECT - COUNT ( * ) / - COUNT ( * ) FROM tab1 cor0
----
1

query II rowsort
SELECT DISTINCT + col1 AS col2, - 88 FROM tab2 AS cor0
----
51
-88
67
-88
77
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT MIN( - ( + 58 ) ) AS col2 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3596
SELECT MIN ( - ( + 58 ) ) AS col2 FROM tab1 AS cor0
----
-58

query III rowsort
SELECT * FROM tab2 WHERE + ( col2 ) * - col2 >= col0
----

query III rowsort
SELECT * FROM tab0 WHERE ( 59 ) > ( - col0 + + col1 )
----
87
21
10
97
1
99

query I rowsort
SELECT ( + 59 ) AS col1 FROM tab2
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL COUNT( * ) * COUNT( 85 / + col1 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL COUNT ( * ) * COUNT ( 85 / + col1 ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT ALL - 52 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - 52 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 68 * + col1 AS col0 FROM tab1
----
3196
340
952

query I rowsort
SELECT + 13 + 8 FROM tab0
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3604
SELECT ALL COUNT( * ) + ( - SUM( DISTINCT - col0 ) ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL COUNT ( * ) + ( - SUM ( DISTINCT - col0 ) ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT - col1 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-3605
SELECT - col1 + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 97 * 60 - col1 AS col0 FROM tab0
----
5739
5799
5819

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL + COUNT( * ) * 40 + COUNT( ALL col2 ) AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + COUNT ( * ) * 40 + COUNT ( ALL col2 ) AS col2 FROM tab2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT DISTINCT 46 DIV col0 - 57 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT 46 / col0 - 57 FROM tab1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT - col0 DIV col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3610
SELECT - col0 / col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-77
2
32

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - col0 NOT IN ( - col2 + col1 * - 58 )
----

query I rowsort
SELECT + col0 * + 87 FROM tab2
----
4002
5568
6525

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3614
SELECT DISTINCT + 52 * + col2 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) * col1 IS NULL
----
2444
5148
520

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT + 52 * + col2 FROM tab0 WHERE + CAST ( NULL AS REAL ) * col1 IS NULL
----
2444
5148
520

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - SUM( ALL - col0 ) + + 61 AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
246

skipif mysql # not compatible
query I rowsort label-3615
SELECT - SUM ( ALL - col0 ) + + 61 AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT 55 * + MAX( ALL - 37 ) FROM tab0
----
-2035

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT 55 * + MAX ( ALL - 37 ) FROM tab0
----
-2035

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT COUNT( * ) * 13 AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3617
SELECT COUNT ( * ) * 13 AS col1 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT 38 * CAST( ( 17 ) AS SIGNED ) AS col0 FROM tab2
----
646
646
646

skipif mysql # not compatible
query I rowsort label-3618
SELECT 38 * CAST ( ( 17 ) AS INTEGER ) AS col0 FROM tab2
----
646
646
646

query I rowsort
SELECT 87 * col1 - col2 * + 50 FROM tab0
----
-4863
1327
4697

query I rowsort
SELECT DISTINCT 24 + + ( col0 ) FROM tab0
----
111
121
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 28 * col2 AS col0 FROM tab2
----
-1120
-1624
-644

query I rowsort
SELECT ALL - ( 33 ) + + 77 AS col0 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL - MAX( 49 ) FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL - MAX ( 49 ) FROM tab2 cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT DISTINCT 25 DIV col0 + 32 AS col2 FROM tab0 AS cor0
----
32
33

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT 25 / col0 + 32 AS col2 FROM tab0 AS cor0
----
32
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * 9 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 AS cor0 WHERE col2 < 44
----
23
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL CAST( col2 AS SIGNED ) FROM tab1 WHERE NULL NOT IN ( - col1 / - col0 )
----

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab1 WHERE NULL NOT IN ( - col1 / - col0 )
----

query I rowsort
SELECT ( col0 ) AS col2 FROM tab1 WHERE col0 NOT BETWEEN col1 * - col2 + + col0 AND NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT 22 * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 1 * 89 AS col1 FROM tab0 AS cor0
----
-89
-89
-89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) < ( - 99 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT - 74 FROM tab1 cor0 WHERE NOT ( + col0 * col2 + + CAST( NULL AS SIGNED ) ) BETWEEN ( - 44 ) AND - ( + 85 )
----

skipif mysql # not compatible
query I rowsort label-3634
SELECT - 74 FROM tab1 cor0 WHERE NOT ( + col0 * col2 + + CAST ( NULL AS INTEGER ) ) BETWEEN ( - 44 ) AND - ( + 85 )
----

query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL - CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL - CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT SUM( 41 ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-3637
SELECT SUM ( 41 ) FROM tab2
----
123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT ( - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ( - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 + col1 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3640
SELECT + CAST( CAST( col2 AS DECIMAL ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3640
SELECT + CAST ( CAST ( col2 AS REAL ) AS INTEGER ) FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + - col0 col1 FROM tab1 WHERE NOT 16 IS NULL
----
-131
-165
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3642
SELECT DISTINCT - 39 DIV CAST( COUNT( 12 ) AS SIGNED ) AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - 39 / CAST ( COUNT ( 12 ) AS INTEGER ) AS col0 FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL - ( - - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL - ( - - COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 0 * - col2 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * - col1 col1 FROM tab0
----
-189
-729
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ALL MIN( col2 ) col2 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3646
SELECT ALL MIN ( col2 ) col2 FROM tab2
----
23

query I rowsort
SELECT 67 AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + ( + 22 ) FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT DISTINCT 77 + - - col1 AS col2 FROM tab0 AS cor0
----
158
78
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 32 ) AND ( - col0 ) * + col0 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT DISTINCT - 18 - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - 18 - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT - + SUM( col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3653
SELECT - + SUM ( col0 ) FROM tab2 cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3654
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + + col0 * col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT CAST( NULL AS SIGNED ) + AVG ( - 33 ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3656
SELECT DISTINCT CAST ( NULL AS INTEGER ) + AVG ( - 33 ) col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 68 * - col2 FROM tab2 WHERE 22 - col0 NOT BETWEEN + col0 AND - 61
----
-1564
-2720
-3944

query I rowsort
SELECT - 70 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + - col2 * ( col0 * col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + - col2 * ( col0 * col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT + + COUNT( * ) + + - 44 AS col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + + COUNT ( * ) + + - 44 AS col1 FROM tab0 AS cor0
----
-41

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 28 * - 31 < + col2
----

query I rowsort
SELECT + - col1 * + 16 * 83 AS col1 FROM tab0 AS cor0
----
-107568
-1328
-27888

query I rowsort
SELECT ALL + + col1 + + - 58 FROM tab2 AS cor0
----
-7
19
9

query I rowsort
SELECT DISTINCT - col1 + - - col1 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-1178
-3093
-3878

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT + + COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3665
SELECT + + COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 BETWEEN ( NULL ) AND col0 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL + COUNT( ALL + + 31 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL + COUNT ( ALL + + 31 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3668
SELECT DISTINCT COUNT( * ) - - + 21 AS col2, 20 FROM tab1
----
24
20

skipif mysql # not compatible
query II rowsort label-3668
SELECT DISTINCT COUNT ( * ) - - + 21 AS col2, 20 FROM tab1
----
24
20

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( - col0 ) < - 21
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT col0 + 76 AS col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <= - col2 AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3670
SELECT col0 + 76 AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <= - col2 AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT - 46 - - 37 FROM tab2
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT ALL - 99 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - 99 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 + col0, 7 AS col1 FROM tab2
----
104
7
133
7
69
7

query I rowsort
SELECT DISTINCT - col1 + - - col0 AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL + - col1 + 78 AS col1 FROM tab1 AS cor0
----
31
64
73

query I rowsort
SELECT - 21 + col2 AS col0 FROM tab1 AS cor0
----
38
47
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3677
SELECT COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3677
SELECT COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3678
SELECT ALL * FROM tab0 cor0 WHERE NULL >= ( + ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3678
SELECT ALL * FROM tab0 cor0 WHERE NULL >= ( + ( - CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 78 * - + col2 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, 84 AS col0 FROM tab2
----
51
84
67
84
77
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3682
SELECT ALL * FROM tab2 WHERE - CAST( + - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3682
SELECT ALL * FROM tab2 WHERE - CAST ( + - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * - 51 * - 93 FROM tab0 cor0
----
-384183
-4743
-99603

query I rowsort
SELECT + 96 * + 76 FROM tab1 AS cor0
----
7296
7296
7296

onlyif mysql # DIV for integer division: 
query I rowsort label-3685
SELECT col1 DIV col0 * - col2 FROM tab2 AS cor0
----
-23
-40
0

skipif mysql # not compatible
query I rowsort label-3685
SELECT col1 / col0 * - col2 FROM tab2 AS cor0
----
-23
-40
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT - + col0 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-3686
SELECT - + col0 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - - 17 * col0 AS col2 FROM tab2 AS cor0
----
1088
1275
782

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT - col1 DIV 6 * col0 + + 87 FROM tab2 AS cor0
----
-281
-681
-738

skipif mysql # not compatible
query I rowsort label-3688
SELECT - col1 / 6 * col0 + + 87 FROM tab2 AS cor0
----
-281
-681
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - SUM( ALL - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3689
SELECT - SUM ( ALL - + col1 ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE + 84 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE + 84 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NULL NOT IN ( 52, 97 )
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE col2 = - 47
----

query II rowsort
SELECT col1, - ( + col1 ) AS col0 FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT + col1 AS col2, col2 + + col2 FROM tab1
----
14
192
47
136
5
118

query I rowsort
SELECT - 85 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col0 AND - 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 5 ) + - col0 * - col2 col2 FROM tab2
----
1053
2555
4345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3697
SELECT AVG ( DISTINCT - col0 ) * - + CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT AVG ( DISTINCT - col0 ) * - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3698
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT ALL - col0 DIV 8 FROM tab1 AS cor0
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL - col0 / 8 FROM tab1 AS cor0
----
-10
-11
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 + + col2 + - 23 - + col0 * + ( - 48 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + - col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 50 + - col1 + + col2 FROM tab1 AS cor0
----
104
132
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT + SUM( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3703
SELECT DISTINCT + SUM ( DISTINCT col0 ) col1 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3704
SELECT ALL + CAST( - col1 AS SIGNED ) + 7, 18 + - col0 AS col0 FROM tab2
----
-44
-28
-60
-57
-70
-46

skipif mysql # not compatible
query II rowsort label-3704
SELECT ALL + CAST ( - col1 AS INTEGER ) + 7, 18 + - col0 AS col0 FROM tab2
----
-44
-28
-60
-57
-70
-46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 54 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + + 5 + - SUM( DISTINCT + 81 ) FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3706
SELECT + + 5 + - SUM ( DISTINCT + 81 ) FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL + col1 + - col1 * + - col0 FROM tab0 AS cor0
----
1296
1848
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT - ( + COUNT( * ) ) + + COUNT( * ) * + COUNT( * ) FROM tab2 cor0 WHERE ( ( NOT - col2 IS NULL ) )
----
6

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT - ( + COUNT ( * ) ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0 WHERE ( ( NOT - col2 IS NULL ) )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3710
SELECT * FROM tab2 AS cor0 WHERE ( CAST( + col2 AS DECIMAL ) * + - 39 + - col2 + - 49 * - col0 ) NOT BETWEEN - col1 AND + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3710
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( + col2 AS REAL ) * + - 39 + - col2 + - 49 * - col0 ) NOT BETWEEN - col1 AND + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT DISTINCT + col1 DIV 86 + 45 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + col1 / 86 + 45 FROM tab2 AS cor0
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + col1 - 71 + col2 / + 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 91 ) + col2 + col1 + + - col2 AS col1 FROM tab2 cor0
----
-14
-24
-40

query II rowsort
SELECT ALL - ( + 98 ) + - col2, col1 FROM tab0 AS cor0
----
-108
21
-145
81
-197
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3716
SELECT DISTINCT col2 - + - 76 + + 14 DIV 71 FROM tab2 AS cor0
----
116
134
99

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT col2 - + - 76 + + 14 / 71 FROM tab2 AS cor0
----
116
134
99

query I rowsort
SELECT + 77 * + + col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - - col0 - - + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + col0 + 18 col1 FROM tab1
----
51
69
85
103
91
109

query I rowsort
SELECT ALL - col1 - 93 FROM tab1
----
-107
-140
-98

query I rowsort
SELECT ALL - ( + col0 ) * - col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT col2 DIV - + 63 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT col2 / - + 63 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3724
SELECT CAST( NULL AS SIGNED ) * + COUNT( - col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( - col2 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3725
SELECT DISTINCT ( - - col0 ) DIV col1 + col0 AS col2 FROM tab1
----
102
54
92

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT ( - - col0 ) / col1 + col0 AS col2 FROM tab1
----
102
54
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col2 FROM tab0
----
40

query I rowsort
SELECT ALL + 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - 44 * + ( + + col0 ) FROM tab0
----
-3828
-4268
-660

query I rowsort
SELECT col0 * col0 - 99 FROM tab0 WHERE NOT NULL NOT BETWEEN - 27 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT + ( col0 ) * + col2 + - 97 = - 43
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT - col2 DIV - 56 + - 45 + - col1 FROM tab2 AS cor0
----
-111
-122
-96

skipif mysql # not compatible
query I rowsort label-3731
SELECT - col2 / - 56 + - 45 + - col1 FROM tab2 AS cor0
----
-111
-122
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT 67 * - MIN( ALL + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT 67 * - MIN ( ALL + + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3733
SELECT DISTINCT - COUNT( * ) AS col2, 94 + - - ( - 60 ) AS col0 FROM tab0
----
-3
34

skipif mysql # not compatible
query II rowsort label-3733
SELECT DISTINCT - COUNT ( * ) AS col2, 94 + - - ( - 60 ) AS col0 FROM tab0
----
-3
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ( SUM( DISTINCT col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3734
SELECT ( SUM ( DISTINCT col2 ) ) FROM tab1
----
223

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT 16 < + 48 / col1 * - + 31 + + 96
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - - + col0 IS NULL AND NULL NOT IN ( - col0 * + 64, - 99 + - col0 + + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT COUNT( * ) DIV - 50 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT COUNT ( * ) / - 50 col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 91 * + + ( - 49 ) + - - col0
----

query I rowsort
SELECT DISTINCT col0 * 74 AS col1 FROM tab1
----
3774
6290
6734

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL MIN( - - col0 ) + - 61 AS col2 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL MIN ( - - col0 ) + - 61 AS col2 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL - - col2 + + - 48 FROM tab1 AS cor0
----
11
20
48

query I rowsort
SELECT DISTINCT - col2 + - + col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + + 78
----

query I rowsort
SELECT ALL + 33 * - - ( + 30 ) FROM tab2
----
990
990
990

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3745
SELECT col1 / + - CAST( NULL AS DECIMAL ) + + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT col1 / + - CAST ( NULL AS REAL ) + + + col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - AVG ( DISTINCT - 62 ), - 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( NULL )
----
NULL
-92

query I rowsort
SELECT 67 FROM tab0 WHERE NULL IS NULL
----
67
67
67

query I rowsort
SELECT DISTINCT + - 90 + - col1 AS col0 FROM tab1 AS cor0
----
-104
-137
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 9 / + 59 * col0 IN ( 79, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - - col2 + col1 AS col1, col0 * col1 AS col1 FROM tab0 cor0
----
100
97
128
1215
31
1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT + CAST( - MAX( - - col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3751
SELECT + CAST ( - MAX ( - - col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col1 + - + col0 FROM tab0 AS cor0
----
-528
-6576
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT - + col2 DIV ( + + 91 ) AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT - + col2 / ( + + 91 ) AS col0 FROM tab1 cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2
----

query II rowsort
SELECT - col1 * - + 99, col0 AS col0 FROM tab0 AS cor0
----
2079
87
8019
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - 60 + - COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - 60 + - COUNT ( * ) FROM tab2 AS cor0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3757
SELECT ALL - 80 - 75 AS col1, CAST( + 89 AS SIGNED ) * 40 AS col1 FROM tab0 AS cor0
----
-155
3560
-155
3560
-155
3560

skipif mysql # not compatible
query II rowsort label-3757
SELECT ALL - 80 - 75 AS col1, CAST ( + 89 AS INTEGER ) * 40 AS col1 FROM tab0 AS cor0
----
-155
3560
-155
3560
-155
3560

query I rowsort
SELECT DISTINCT - - col1 * + col1 + + col0 + + 68 FROM tab1 AS cor0
----
178
2368
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT CAST( NULL AS SIGNED ) * 12 * col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 12 * col0 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT DISTINCT - col0 - + CAST( col0 AS SIGNED ) * - - col0 FROM tab0
----
-240
-7656
-9506

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - col0 - + CAST ( col0 AS INTEGER ) * - - col0 FROM tab0
----
-240
-7656
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3761
SELECT + CAST( NULL AS SIGNED ), col0 AS col0 FROM tab2 WHERE ( NOT - 86 * ( + 82 ) * - + col2 IS NOT NULL )
----

skipif mysql # not compatible
query II rowsort label-3761
SELECT + CAST ( NULL AS INTEGER ), col0 AS col0 FROM tab2 WHERE ( NOT - 86 * ( + 82 ) * - + col2 IS NOT NULL )
----

query I rowsort
SELECT col1 - col1 * + + col1 * col0 FROM tab2
----
-119595
-336608
-379379

query I rowsort
SELECT ALL 7 * + col0 * + - 56 AS col2 FROM tab2
----
-18032
-25088
-29400

query II rowsort
SELECT 0 - + 30 AS col1, 27 AS col1 FROM tab2
----
-30
27
-30
27
-30
27

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT ( + col1 IS NULL )
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 1 * - col1 - + - col1 - - 42 * col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3768
SELECT + CAST( NULL AS SIGNED ) / - MAX( - col0 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3768
SELECT + CAST ( NULL AS INTEGER ) / - MAX ( - col0 ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 82 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL MAX( ALL + + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL MAX ( ALL + + col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT - ( 77 ) AS col1 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT ( + + 47 ) AS col0 FROM tab2 cor0
----
47
47
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT ( - col1 + + 83 BETWEEN col2 AND NULL ) )
----

query II rowsort
SELECT ALL col1 AS col2, 40 AS col0 FROM tab1 AS cor0
----
14
40
47
40
5
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT ALL - col2 FROM tab1 WHERE + 41 + + + CAST( NULL AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - col2 FROM tab1 WHERE + 41 + + + CAST ( NULL AS INTEGER ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3779
SELECT DISTINCT + MIN( DISTINCT + col1 ) * CAST( NULL AS DECIMAL ) - - + 85 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT + MIN ( DISTINCT + col1 ) * CAST ( NULL AS REAL ) - - + 85 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + 69 * + col1 + + 46 IS NULL
----

query I rowsort
SELECT 78 + col1 + - ( + col0 ) FROM tab2
----
70
83
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 72 <> NULL
----

query I rowsort
SELECT - ( - 92 ) * 63 AS col2 FROM tab2 AS cor0
----
5796
5796
5796

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col1 + + + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT ALL ( MIN( ALL - 61 ) ) FROM tab1, tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL ( MIN ( ALL - 61 ) ) FROM tab1, tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT COUNT( DISTINCT - 51 ) + - 12 AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3786
SELECT COUNT ( DISTINCT - 51 ) + - 12 AS col1 FROM tab0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 3 AND - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3788
SELECT + 15 * - + 20 * + col2 + CAST( - + 22 AS SIGNED ), - 87 * - - 23 AS col1 FROM tab1 AS cor0
----
-17722
-2001
-20422
-2001
-28822
-2001

skipif mysql # not compatible
query II rowsort label-3788
SELECT + 15 * - + 20 * + col2 + CAST ( - + 22 AS INTEGER ), - 87 * - - 23 AS col1 FROM tab1 AS cor0
----
-17722
-2001
-20422
-2001
-28822
-2001

query I rowsort
SELECT ALL col0 * - 55 + - + col0 AS col2 FROM tab1 cor0
----
-2856
-4760
-5096

query I rowsort
SELECT ALL - 20 * col2 * + 3 FROM tab0 AS cor0 WHERE ( NULL ) < - + 42
----

query I rowsort
SELECT DISTINCT 36 - - - col0 FROM tab0 AS cor0
----
-51
-61
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 95 BETWEEN + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT - - 89 - ( COUNT( * ) ) * - 15 + SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
200

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - - 89 - ( COUNT ( * ) ) * - 15 + SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
200

query I rowsort
SELECT ALL col0 * + + col2 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT + col2 * + - 0 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT + col2 * + - 0 / - col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( + 57 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + 98 NOT IN ( - - col1, col2 )
----

query II rowsort
SELECT + 75 AS col1, col1 FROM tab1
----
75
14
75
47
75
5

query II rowsort
SELECT + 93 AS col0, + 62 * + col2 AS col2 FROM tab2 AS cor0
----
93
1426
93
2480
93
3596

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT DISTINCT 90 + + col0 DIV col2 FROM tab2
----
91
92

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT 90 + + col0 / col2 FROM tab2
----
91
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + col2 / - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT + + ( col2 ) * + CAST( NULL AS SIGNED ) + - + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT + + ( col2 ) * + CAST ( NULL AS INTEGER ) + - + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 88 + + - col0 * - col1 * 64 FROM tab1 AS cor0
----
27112
273640
45608

query I rowsort
SELECT + ( - + col2 ) + col2 * 42 * col1 AS col0 FROM tab1 AS cor0
----
12331
134164
56352

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 82 <= ( col2 * - col1 / col2 + - - 69 * col0 + + + ( + 15 ) * + ( + col2 ) )
----

query I rowsort
SELECT DISTINCT - - 83 + col2 FROM tab1 cor0
----
142
151
179

query II rowsort
SELECT DISTINCT - 58 + col0 AS col0, 16 AS col1 FROM tab0 AS cor0
----
-43
16
29
16
39
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * + 55 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT ALL + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3810
SELECT ALL + col2 DIV 66 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + col2 / 66 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - - 44 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT 63 AS col2 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT 52 * + col2 * ( + col0 ) AS col1 FROM tab1
----
254592
260780
321776

query II rowsort
SELECT + col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT - col0 DIV - 4 FROM tab1
----
12
21
22

skipif mysql # not compatible
query I rowsort label-3815
SELECT - col0 / - 4 FROM tab1
----
12
21
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT + COUNT( * ) + - 58 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT + COUNT ( * ) + - 58 FROM tab1
----
-55

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT + MIN( - col2 ) * - COUNT( * ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-3818
SELECT + MIN ( - col2 ) * - COUNT ( * ) FROM tab1
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT + col0 DIV 1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3819
SELECT + col0 / 1 FROM tab1
----
51
85
91

query II rowsort
SELECT + 21 AS col1, - col2 FROM tab2
----
21
-23
21
-40
21
-58

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL <> - - 71
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 - - - 48 AS col2 FROM tab0 AS cor0
----
-135
-145
-63

query I rowsort
SELECT ( 68 ) AS col0 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL SUM( 82 ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL SUM ( 82 ) FROM tab0 AS cor0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT - col0 * col0 DIV 31 FROM tab0 AS cor0
----
-244
-303
-7

skipif mysql # not compatible
query I rowsort label-3826
SELECT - col0 * col0 / 31 FROM tab0 AS cor0
----
-244
-303
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT COUNT( * ) DIV COUNT( * ) * 32 col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3827
SELECT COUNT ( * ) / COUNT ( * ) * 32 col1 FROM tab1 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + MAX( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3828
SELECT + MAX ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT SUM( + 35 ) AS col0 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3829
SELECT SUM ( + 35 ) AS col0 FROM tab1
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + 41 - - - ( + col0 ) > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - col2, 73 AS col2 FROM tab1 AS cor0
----
59
73
68
73
96
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3833
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - CAST( NULL AS SIGNED ) + - col1 + col0
----

skipif mysql # not compatible
query III rowsort label-3833
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= - CAST ( NULL AS INTEGER ) + - col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3834
SELECT + col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2 * + col2 + + + col0 + col1 + + CAST( NULL AS SIGNED ) * - col2 * + col0
----

skipif mysql # not compatible
query I rowsort label-3834
SELECT + col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2 * + col2 + + + col0 + col1 + + CAST ( NULL AS INTEGER ) * - col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3835
SELECT DISTINCT + ( + CAST( - + col1 AS SIGNED ) ) DIV + 3 FROM tab2 cor0
----
-17
-22
-25

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + ( + CAST ( - + col1 AS INTEGER ) ) / + 3 FROM tab2 cor0
----
-17
-22
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL - ( - + COUNT( DISTINCT + 51 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL - ( - + COUNT ( DISTINCT + 51 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query II rowsort
SELECT ALL + 94 AS col1, col0 FROM tab2
----
94
46
94
64
94
75

query II rowsort
SELECT ALL - 9 AS col2, + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-9
-1344
-9
-295
-9
-3196

query II rowsort
SELECT - 71 AS col0, - 30 + col0 - 80 FROM tab0 AS cor0
----
-71
-13
-71
-23
-71
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND - ( + 53 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 79 + col2 * - + col1 >= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3842
SELECT ALL 2 + - CAST( NULL AS SIGNED ) * COUNT( DISTINCT - - col2 ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3842
SELECT ALL 2 + - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - - col2 ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3843
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - + col2 + + 4 FROM tab1 AS cor0
----
-55
-64
-92

query I rowsort
SELECT - 85 + col0 AS col2 FROM tab0 AS cor0
----
-70
12
2

query I rowsort
SELECT DISTINCT ( + 30 ) AS col0 FROM tab1 AS cor0
----
30

query I rowsort
SELECT - 6 + - + 49 + + 62 AS col1 FROM tab1
----
7
7
7

query I rowsort
SELECT DISTINCT - col2 * 97 AS col2 FROM tab2
----
-2231
-3880
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT - col0 - + col1 NOT BETWEEN ( col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - col0 - + col1 NOT BETWEEN ( col0 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3850
SELECT + col2 DIV + + col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3850
SELECT + col2 / + + col2 AS col1 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT ALL 24 - - SUM( DISTINCT - col0 ) + - SUM( ALL + + col0 ) + + COUNT( * ) - 29 FROM tab2
----
-372

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL 24 - - SUM ( DISTINCT - col0 ) + - SUM ( ALL + + col0 ) + + COUNT ( * ) - 29 FROM tab2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + COUNT( * ) + 46 AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-3853
SELECT + COUNT ( * ) + 46 AS col1 FROM tab2
----
49

query II rowsort
SELECT ALL + col0 AS col1, + col2 AS col2 FROM tab2
----
46
23
64
40
75
58

query II rowsort
SELECT DISTINCT - 2 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
-2
-51
-2
-85
-2
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT SUM( 59 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3856
SELECT SUM ( 59 ) col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
177

query I rowsort
SELECT + + 78 * + col1 AS col2 FROM tab1 AS cor0
----
1092
3666
390

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
0

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
0

query I rowsort
SELECT ALL + col1 * ( col1 ) * - + 27 FROM tab2 cor0
----
-121203
-160083
-70227

query II rowsort
SELECT ALL - + col2 AS col1, - 63 FROM tab1 cor0
----
-59
-63
-68
-63
-96
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, + 7 AS col1 FROM tab1 cor0
----
14
7
47
7
5
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT - MIN( ( - ( + col0 ) ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3862
SELECT - MIN ( ( - ( + col0 ) ) ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3863
SELECT - col2, + 78 col2 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3863
SELECT - col2, + 78 col2 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3864
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 13 <> NULL
----

query I rowsort
SELECT - col1 * col2 * + 42 + + ( col2 ) AS col1 FROM tab2
----
-129320
-163154
-49243

query I rowsort
SELECT 6 FROM tab0 AS cor0 WHERE + 68 / - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL - COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL - COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
-6

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT - + 89 + - + COUNT( * ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT - + 89 + - + COUNT ( * ) FROM tab2 AS cor0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3872
SELECT ALL + ( MIN( CAST( + + col1 AS SIGNED ) ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + ( MIN ( CAST ( + + col1 AS INTEGER ) ) ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + COUNT( * ) * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-3873
SELECT + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT SUM( DISTINCT 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-3874
SELECT SUM ( DISTINCT 64 ) FROM tab1
----
64

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE - col0 <> + 55
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - + 6 AS col0 FROM tab1
----
45
79
85

query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 AS col2 FROM tab0
----
-38367
-97
-98415

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col2 + + col1 + - col2
----

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE + col1 NOT IN ( + 96, col0 + - 20 )
----
46
64
75

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3882
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3883
SELECT + + CAST( col0 AS SIGNED ) * - col2 AS col0, - col0 FROM tab0 WHERE NOT - - col1 / + col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-3883
SELECT + + CAST ( col0 AS INTEGER ) * - col2 AS col0, - col0 FROM tab0 WHERE NOT - - col1 / + col0 > NULL
----

query I rowsort
SELECT ALL - 35 FROM tab0 AS cor0 WHERE NOT NULL = - col1 * - col2
----

query I rowsort
SELECT + 65 * + col0 * col2 FROM tab1 AS cor0
----
318240
325975
402220

query I rowsort
SELECT ALL + - ( - + ( + - col1 ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NOT ( NULL ) < + 61
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 74 BETWEEN col0 AND + ( + - 38 ) / - + col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col2 FROM tab0 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3890
SELECT - + col0 / col1 * - - CAST( NULL AS SIGNED ) * 80 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT - + col0 / col1 * - - CAST ( NULL AS INTEGER ) * 80 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 24 * - 96 AS col0 FROM tab0 AS cor0
----
186624
2304
48384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT + CAST( + - col0 AS SIGNED ) * - col2 * + + 69 AS col2 FROM tab2
----
176640
300150
73002

skipif mysql # not compatible
query I rowsort label-3892
SELECT + CAST ( + - col0 AS INTEGER ) * - col2 * + + 69 AS col2 FROM tab2
----
176640
300150
73002

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT COUNT( * ) * - ( MAX( ALL + col2 ) ) * - + 9 * + COUNT( * ) FROM tab0
----
8019

skipif mysql # not compatible
query I rowsort label-3893
SELECT COUNT ( * ) * - ( MAX ( ALL + col2 ) ) * - + 9 * + COUNT ( * ) FROM tab0
----
8019

query I rowsort
SELECT ALL + ( + + col2 ) FROM tab0 AS cor0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL 6 * - 6 AS col0 FROM tab2
----
-36
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3898
SELECT + + col0 * - - col1 AS col1, CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

skipif mysql # not compatible
query II rowsort label-3898
SELECT + + col0 * - - col1 AS col1, CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3899
SELECT col0 DIV + col2 + + + col2 * 99 AS col1 FROM tab2 cor0
----
2279
3961
5743

skipif mysql # not compatible
query I rowsort label-3899
SELECT col0 / + col2 + + + col2 * 99 AS col1 FROM tab2 cor0
----
2279
3961
5743

query I rowsort
SELECT DISTINCT + col2 * - + ( - + 28 ) + - + col0 + col0 FROM tab1 AS cor0
----
1652
1904
2688

query I rowsort
SELECT ALL - col1 + + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT col1 + + 77 + + col0 FROM tab0 AS cor0
----
173
175
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT - 53 + MAX( DISTINCT + 37 ) FROM tab2 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT - 53 + MAX ( DISTINCT + 37 ) FROM tab2 cor0
----
-16

query I rowsort
SELECT ALL 13 * + 74 FROM tab0
----
962
962
962

query III rowsort
SELECT * FROM tab2 WHERE 55 NOT BETWEEN - - col2 AND col2 - + ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT + 96 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-3906
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT + 96 ) FROM tab0
----
-288

query I rowsort
SELECT ALL + 72 * + col1 AS col2 FROM tab2
----
3672
4824
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT + MAX( - col1 ) * - SUM( col0 ) AS col1 FROM tab1
----
1135

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT + MAX ( - col1 ) * - SUM ( col0 ) AS col1 FROM tab1
----
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ( + 33 ) * + - COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-3909
SELECT ( + 33 ) * + - COUNT ( * ) FROM tab2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3910
SELECT - COUNT( * ) DIV - SUM( - - ( + ( + + col1 ) ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT - COUNT ( * ) / - SUM ( - - ( + ( + + col1 ) ) ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 <> + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT - col0 - ( + col1 ) / + + ( - col2 ) FROM tab1 AS cor0 WHERE 38 + - col0 * col0 >= - col0 + - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT - col0 - ( + col1 ) / + + ( - col2 ) FROM tab1 AS cor0 WHERE 38 + - col0 * col0 >= - col0 + - CAST ( - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT - 53 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > ( + CAST( + col1 AS SIGNED ) * + 72 + - - col2 )
----

skipif mysql # not compatible
query I rowsort label-3914
SELECT - 53 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) > ( + CAST ( + col1 AS INTEGER ) * + 72 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT COUNT( * ) * - ( - AVG ( col2 ) ) AS col0 FROM tab0 AS cor0 WHERE ( + 59 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT COUNT ( * ) * - ( - AVG ( col2 ) ) AS col0 FROM tab0 AS cor0 WHERE ( + 59 ) >= NULL
----
NULL

query II rowsort
SELECT 35, col0 + 26 AS col0 FROM tab2
----
35
101
35
72
35
90

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT - + ( - 14 ) DIV + + 30 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT - + ( - 14 ) / + + 30 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + - col0, col0 * - + col2 AS col2 FROM tab2 cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT DISTINCT col1 * col1 - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 75 * col2 AS col1 FROM tab0 AS cor0
----
-3525
-7425
-750

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - + col0
----

query I rowsort
SELECT col0 * 13 AS col0 FROM tab0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT + 9 FROM tab1 WHERE NOT - + 53 <> col2 * - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3923
SELECT + 9 FROM tab1 WHERE NOT - + 53 <> col2 * - CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL MAX( DISTINCT + + col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL MAX ( DISTINCT + + col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 94 ) col0 FROM tab1
----
-94

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND - 64
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3927
SELECT ALL + - 27 + - + COUNT( * ) AS col2, COUNT( * ) DIV - MAX( ALL - col0 ) FROM tab1 AS cor0
----
-30
0

skipif mysql # not compatible
query II rowsort label-3927
SELECT ALL + - 27 + - + COUNT ( * ) AS col2, COUNT ( * ) / - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-30
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( - col1 ) ) col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 IN ( col0 + 11 + col0 + + col2, - 29, - 26 )
----

query I rowsort
SELECT ALL 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + 28 + col0 FROM tab2 cor0
----
103
74
92

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE - col1 IN ( col1 * + 61, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT + MIN( + col0 ) FROM tab2 cor0 WHERE col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT + MIN ( + col0 ) FROM tab2 cor0 WHERE col2 <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL + - MIN( ALL - 62 ) col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3936
SELECT ALL + - MIN ( ALL - 62 ) col2 FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3937
SELECT - COUNT( * ), + COUNT( * ) AS col2 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3937
SELECT - COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 cor0
----
-3
3

query II rowsort
SELECT col1 - - + col2 AS col0, + 85 FROM tab1
----
110
85
115
85
64
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + + 30 - + 77 col0 FROM tab2
----
1123
1663
613

query I rowsort
SELECT col2 - + 58 AS col0 FROM tab2
----
-18
-35
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3941
SELECT + 2 - + col0 + CAST( + + 26 AS SIGNED ), col1 AS col2 FROM tab0
----
-59
21
-69
1
13
81

skipif mysql # not compatible
query II rowsort label-3941
SELECT + 2 - + col0 + CAST ( + + 26 AS INTEGER ), col1 AS col2 FROM tab0
----
-59
21
-69
1
13
81

query I rowsort
SELECT ALL - 88 + + + 31 - col2 AS col0 FROM tab1
----
-116
-125
-153

query I rowsort
SELECT ALL - ( - + col1 ) AS col0 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL - ( MIN( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - ( MIN ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT DISTINCT - col2 DIV + - col0 FROM tab2 WHERE 30 * 3 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - col2 / + - col0 FROM tab2 WHERE 30 * 3 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 40 - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - MAX( ALL - 53 ) col0 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT - MAX ( ALL - 53 ) col0 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT + + COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT + + COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT DISTINCT ( + ( COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT ( + ( COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 * + col1 * col1 AS col0 FROM tab2 cor0
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3951
SELECT COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3951
SELECT COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 57 * - - col0 AS col2 FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT DISTINCT + - 59 DIV + 52 - col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT + - 59 / + 52 - col0 AS col2 FROM tab1 AS cor0
----
-52
-86
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-3954
SELECT - col1 DIV + - col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3954
SELECT - col1 / + - col1 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3955
SELECT + col1 * CAST( 19 AS SIGNED ) DIV - + col1 FROM tab0 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-3955
SELECT + col1 * CAST ( 19 AS INTEGER ) / - + col1 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query II rowsort label-3956
SELECT DISTINCT - ( + col1 ) DIV + ( col0 ), + col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3956
SELECT DISTINCT - ( + col1 ) / + ( col0 ), + col0 FROM tab1
----
0
51
0
85
0
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 * - 65 col0 FROM tab0
----
15
-5265
87
-1365
97
-65

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( col2, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( 41 ) FROM tab1 WHERE NOT + col2 = 25
----
-41

query I rowsort
SELECT - ( + col2 ) * - col1 + + col0 * col0 FROM tab0
----
4032
7779
9508

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - ( + ( - 67 ) ) AS col0 FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3964
SELECT ALL - 71 AS col1, + 85 + MIN( - col2 ) FROM tab2
----
-71
27

skipif mysql # not compatible
query II rowsort label-3964
SELECT ALL - 71 AS col1, + 85 + MIN ( - col2 ) FROM tab2
----
-71
27

query II rowsort
SELECT ALL - ( + 63 ), col1 AS col2 FROM tab1
----
-63
14
-63
47
-63
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + col1 NOT BETWEEN - col1 * - + 93 * - 83 + + - col0 + + - 51 AND - 70 + - col2 / - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + ( - - col0 ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT COUNT( * ) + + 78 AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3968
SELECT COUNT ( * ) + + 78 AS col2 FROM tab1 AS cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-8
13
5

query II rowsort
SELECT - 52, - col2 AS col0 FROM tab2
----
-52
-23
-52
-40
-52
-58

query II rowsort
SELECT DISTINCT col0 AS col0, - 90 AS col1 FROM tab0
----
15
-90
87
-90
97
-90

query I rowsort
SELECT DISTINCT + + ( - + col0 ) * - col1 * - + 45 - + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( - 78 ) FROM tab0
----
-78
-78
-78

query I rowsort
SELECT - + ( + 21 ) FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT DISTINCT - - MIN( + + 33 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - - MIN ( + + 33 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3977
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 - - + col1 + + col1 / - 53 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 - - + col1 + + col1 / - 53 * col0 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - col0 + + - col1
----

query I rowsort
SELECT - 80 * + col1 AS col1 FROM tab2 cor0
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT - COUNT( * ) FROM tab2 cor0 WHERE NOT col1 * + 52 NOT BETWEEN 27 + ( - col2 ) AND + 84
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE NOT col1 * + 52 NOT BETWEEN 27 + ( - col2 ) AND + 84
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT col0 * 53 * + 90 FROM tab2 AS cor0
----
219420
305280
357750

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT + SUM( DISTINCT - - col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + SUM ( DISTINCT - - col2 ) FROM tab2
----
121

query I rowsort
SELECT ALL 92 * - - col1 AS col1 FROM tab1
----
1288
4324
460

query I rowsort
SELECT DISTINCT col0 + 18 AS col0 FROM tab0
----
105
115
33

query I rowsort
SELECT DISTINCT ( col2 ) + + col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT ALL - col2 + + 63 AS col1 FROM tab0 AS cor0
----
-36
16
53

query I rowsort
SELECT ALL 21 + + 41 FROM tab0 AS cor0
----
62
62
62

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 / col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 4 + - 53 FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT COUNT( ALL 94 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3991
SELECT COUNT ( ALL 94 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
23
40
58

query I rowsort
SELECT ALL - - col0 + + - col1 AS col0 FROM tab1 AS cor0
----
37
44
80

query II rowsort
SELECT - col1 AS col0, - col1 * + 14 - + col1 FROM tab1 AS cor0
----
-14
-210
-47
-705
-5
-75

query I rowsort
SELECT - col1 * - 27 - + + 25 FROM tab2 AS cor0
----
1352
1784
2054

query I rowsort
SELECT ALL + 7 - - col2 AS col2 FROM tab1 AS cor0
----
103
66
75

query III rowsort
SELECT * FROM tab2 WHERE NOT - 63 + + 46 + + - col2 * - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT DISTINCT - SUM( DISTINCT + ( 14 ) ) col2 FROM tab1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3999
SELECT DISTINCT - SUM ( DISTINCT + ( 14 ) ) col2 FROM tab1
----
-14

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col1 + - col1 <= NULL )
----

query I rowsort
SELECT ALL + + col0 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
33135
8700
950697

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / + 28 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
62
62
62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - - 53 * col1 NOT BETWEEN ( + ( col2 ) ) AND - ( - col1 ) * + - ( - col1 )
----

query I rowsort
SELECT col2 + + ( + 66 ) AS col2 FROM tab0 cor0 WHERE ( NOT NULL >= + + col2 )
----

query I rowsort
SELECT DISTINCT 21 * + col0 AS col0 FROM tab1
----
1071
1785
1911

query I rowsort
SELECT ALL - 68 * - 74 * - 82 AS col1 FROM tab1
----
-412624
-412624
-412624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4008
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col2 - - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT CAST ( NULL AS REAL ) + - col2 - - col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 61 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
25984
260965
43650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4010
SELECT ALL - + 97 FROM tab0 cor0 WHERE CAST( + col2 AS SIGNED ) + col1 IS NOT NULL
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL - + 97 FROM tab0 cor0 WHERE CAST ( + col2 AS INTEGER ) + col1 IS NOT NULL
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 87 col2 FROM tab1 AS cor0
----
101
134
92

onlyif mysql # DIV for integer division: 
query II rowsort label-4012
SELECT DISTINCT - col2 * + + col0 AS col1, ( + - col2 ) - + 93 - + 35 DIV - col1 AS col0 FROM tab1 AS cor0
----
-4896
-187
-5015
-145
-6188
-161

skipif mysql # not compatible
query II rowsort label-4012
SELECT DISTINCT - col2 * + + col0 AS col1, ( + - col2 ) - + 93 - + 35 / - col1 AS col0 FROM tab1 AS cor0
----
-4896
-187
-5015
-145
-6188
-161

query I rowsort
SELECT DISTINCT + + 67 + - 56 + - col0 FROM tab2 AS cor0
----
-35
-53
-64

query I rowsort
SELECT DISTINCT + 96 - - col2 FROM tab1
----
155
164
192

query I rowsort
SELECT + 14 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query II rowsort label-4016
SELECT ALL - COUNT( * ) * - MAX( - - col2 ) AS col1, SUM( - col1 ) AS col1 FROM tab2
----
174
-195

skipif mysql # not compatible
query II rowsort label-4016
SELECT ALL - COUNT ( * ) * - MAX ( - - col2 ) AS col1, SUM ( - col1 ) AS col1 FROM tab2
----
174
-195

query I rowsort
SELECT + 86 + 38 AS col2 FROM tab1
----
124
124
124

query I rowsort
SELECT - 52 + - - col0 AS col0 FROM tab1 AS cor0
----
-1
33
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT ALL col0 + col1 + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
129
177
99

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL col0 + col1 + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT - ( - col2 ) + col1 DIV - 75 col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4020
SELECT - ( - col2 ) + col1 / - 75 col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - - col1 + + - 72 FROM tab2 AS cor0
----
-21
-5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + + col0 - col1 * + - 13 IN ( col1, 66, + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT - 99 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 43 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4024
SELECT - 99 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 43 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) col0 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4025
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) col0 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT MAX( ALL col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT MAX ( ALL col1 ) AS col2 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, - col2 col1 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL SUM( ALL - ( col1 ) ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL SUM ( ALL - ( col1 ) ) AS col1 FROM tab0
----
-103

query II rowsort
SELECT DISTINCT + col0 AS col2, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT 95 * + - 86 FROM tab1
----
-8170
-8170
-8170

query II rowsort
SELECT ALL - + col0 AS col2, + 38 AS col2 FROM tab0 AS cor0
----
-15
38
-87
38
-97
38

query I rowsort
SELECT ALL - ( - - 63 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + 77 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT ALL - MIN( + col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT ALL - MIN ( + col1 ) col1 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - - col1 ) col0, col0 * + col1 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT ALL - ( + 13 ) AS col2 FROM tab2 cor0
----
-13
-13
-13

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col0, 98 - + + 77, - ( 77 ), - + 44 + col1, - + 32 )
----

query I rowsort
SELECT col1 * - 12 AS col1 FROM tab2 AS cor0 WHERE NULL >= 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - 56 ) col0, col0 FROM tab0 AS cor0
----
-56
15
-56
87
-56
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT - - 27 DIV + 21 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4042
SELECT - - 27 / + 21 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col0 * - + col2 * 70 FROM tab1
----
-342720
-351050
-433160

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + 97 - + col1
----

query I rowsort
SELECT ALL 30 + - + col1 FROM tab2
----
-21
-37
-47

query I rowsort
SELECT ALL + + col0 * - 84 AS col2 FROM tab2 WHERE NOT ( ( NOT NULL <> NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT SUM( ALL + 48 ) AS col2 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT SUM ( ALL + 48 ) AS col2 FROM tab1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 70 + + 88 FROM tab2 cor0
----
158
158
158

query I rowsort
SELECT col0 * - 40 AS col2 FROM tab1
----
-2040
-3400
-3640

query I rowsort
SELECT col2 + + col2 * 75 AS col1 FROM tab1
----
4484
5168
7296

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4052
SELECT ALL - 29 DIV SUM( col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4052
SELECT ALL - 29 / SUM ( col1 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4053
SELECT ALL 20 DIV - CAST( col1 * 98 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL 20 / - CAST ( col1 * 98 AS INTEGER ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + col2 * ( 43 ) AS col2 FROM tab1 WHERE NOT ( 29 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT ( col0 + + col0 * - col0 ) <> NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - 39 NOT IN ( col1 * - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT DISTINCT SUM( col0 ) DIV + 74 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT SUM ( col0 ) / + 74 FROM tab0
----
2

query I rowsort
SELECT + col1 - + 12 AS col0 FROM tab1
----
-7
2
35

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 35 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT + MIN( ALL - 62 ) AS col0 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-4060
SELECT + MIN ( ALL - 62 ) AS col0 FROM tab2
----
-62

query I rowsort
SELECT 64 AS col1 FROM tab1 WHERE NOT NULL = col0
----

query I rowsort
SELECT ALL 18 - - col0 * ( col2 ) AS col2 FROM tab1
----
4914
5033
6206

query III rowsort
SELECT ALL * FROM tab0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT ALL + MAX( 79 ) FROM tab2 WHERE + col1 IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + MAX ( 79 ) FROM tab2 WHERE + col1 IS NOT NULL
----
79

query I rowsort
SELECT DISTINCT col0 + col0 * + 5 AS col0 FROM tab2
----
276
384
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 16 ) col1 FROM tab2
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT col1 AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) <> + col0
----

skipif mysql # not compatible
query I rowsort label-4067
SELECT col1 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) <> + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - 17 / - col1 BETWEEN col2 + 71 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT MIN( col2 ) + 51 * - 22 FROM tab0
----
-1112

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT MIN ( col2 ) + 51 * - 22 FROM tab0
----
-1112

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4070
SELECT SUM ( col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT DISTINCT ( + 4 ) FROM tab2
----
4

query III rowsort
SELECT * FROM tab2 WHERE + 44 - + col1 <= NULL
----

query I rowsort
SELECT - 97 * 28 + col1 AS col0 FROM tab0 WHERE NOT + col1 * + col0 + col0 IS NULL
----
-2635
-2695
-2715

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 + + 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4075
SELECT * FROM tab2 WHERE ( NULL ) IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT * FROM tab2 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 WHERE ( - 44 ) * col0 NOT IN ( col2 )
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4077
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-4077
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + CAST ( NULL AS INTEGER ) * col0
----

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT NULL <= - 9
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 5 ) < - 47 + 48
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= ( col1 )
----

query I rowsort
SELECT DISTINCT + 47 - - col2 * - 34 FROM tab0 WHERE NOT + col1 IS NULL
----
-1551
-293
-3319

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - ( + COUNT( col1 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4082
SELECT - ( + COUNT ( col1 ) ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4083
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST( - col2 AS SIGNED ) ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4083
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( - col2 AS INTEGER ) ) > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT + - col0 DIV - col0 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
426
4278
715

skipif mysql # not compatible
query I rowsort label-4084
SELECT + - col0 / - col0 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
426
4278
715

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 48 * + col0 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - + COUNT( DISTINCT + ( col1 ) ) + - COUNT( * ) AS col1 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4086
SELECT - + COUNT ( DISTINCT + ( col1 ) ) + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-6

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) <= NULL
----

query I rowsort
SELECT + - ( + col2 ) + + 8 FROM tab0 AS cor0
----
-2
-39
-91

query I rowsort
SELECT ALL - + 5 + - 15 AS col0 FROM tab1 AS cor0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN ( - col0 - + col0 ) AND - col2 * ( col0 )
----

query I rowsort
SELECT col0 FROM tab2 WHERE - col1 BETWEEN col2 / 5 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4092
SELECT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4092
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT - SUM( + col0 ) * - 69 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT - SUM ( + col0 ) * - 69 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4094
SELECT col0 + + col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT col0 + + col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + - ( 32 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 9 * + col1 FROM tab1
----
126
423
45

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - ( - 44 ) NOT IN ( col1 - - col1 * 97 )
----
51
67
77

query I rowsort
SELECT col0 FROM tab1 WHERE ( NULL ) NOT IN ( + col1 * - 14 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 21 * + 44 IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE ( + 98 ) IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT - 42 DIV 42 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4101
SELECT - 42 / 42 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT - - COUNT( * ) - + - MAX( DISTINCT + 15 ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4102
SELECT - - COUNT ( * ) - + - MAX ( DISTINCT + 15 ) AS col1 FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL 29 + - col2 AS col2 FROM tab2 AS cor0
----
-11
-29
6

query I rowsort
SELECT DISTINCT - - col0 + + + 59 FROM tab2 AS cor0
----
105
123
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + COUNT( * ) col2 FROM tab0 WHERE NULL NOT BETWEEN ( 34 ) AND + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4105
SELECT + COUNT ( * ) col2 FROM tab0 WHERE NULL NOT BETWEEN ( 34 ) AND + col2
----
0

query II rowsort
SELECT ALL + col1, - col1 FROM tab2
----
51
-51
67
-67
77
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT - SUM( ALL 37 ) AS col2 FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-4109
SELECT - SUM ( ALL 37 ) AS col2 FROM tab2
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4110
SELECT + 13 col2, col1 - - CAST( - col0 AS SIGNED ) FROM tab0
----
13
-66
13
-96
13
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4110
SELECT + 13 col2, col1 - - CAST ( - col0 AS INTEGER ) FROM tab0
----
13
-66
13
-96
13
66

query I rowsort
SELECT + col1 * + - col0 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + MAX( DISTINCT - ( + col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + MAX ( DISTINCT - ( + col0 ) ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT - - MIN( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - - MIN ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL MIN( ALL + + 68 ) FROM tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL MIN ( ALL + + 68 ) FROM tab2 AS cor0
----
68

query I rowsort
SELECT ALL + col1 * + 28 FROM tab1 AS cor0
----
1316
140
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT + + MIN( + + col1 ) * - ( - 41 ) AS col0 FROM tab2 AS cor0
----
2091

skipif mysql # not compatible
query I rowsort label-4118
SELECT + + MIN ( + + col1 ) * - ( - 41 ) AS col0 FROM tab2 AS cor0
----
2091

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 83 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL - + col1 * - + col2 * col2 AS col2 FROM tab0 AS cor0
----
178929
2100
9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4122
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col1 < - ( + CAST( NULL AS SIGNED ) ) * 64
----

skipif mysql # not compatible
query III rowsort label-4122
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * col1 < - ( + CAST ( NULL AS INTEGER ) ) * 64
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( 21 ) IN ( + 19 )
----
10
47
99

query I rowsort
SELECT - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - 5 * + 86 AS col0 FROM tab2 AS cor0 WHERE - col0 + col1 + 69 * col2 <= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT + col1 DIV - + col2 * + col0 * col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + col1 / - + col2 * + col0 * col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 46 * col1 * - + col0 FROM tab2
----
-107916
-226688
-231150

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col1 * col2 + + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE - 7 + + col1 NOT BETWEEN col2 / col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT DISTINCT + MIN( + - col1 ) * MIN( + + col1 ) * 50 col1 FROM tab2 AS cor0
----
-196350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4131
SELECT DISTINCT + MIN ( + - col1 ) * MIN ( + + col1 ) * 50 col1 FROM tab2 AS cor0
----
-196350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( - col0 ) )
----

query I rowsort
SELECT DISTINCT col0 + - col2 AS col1 FROM tab1 cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + - col2 col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL 74 + - col1 FROM tab0 cor0
----
-7
53
73

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL < - col0 + col1 - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4137
SELECT * FROM tab2 AS cor0 WHERE 23 - + col1 + - ( 45 ) * CAST( NULL AS SIGNED ) IN ( 55 )
----

skipif mysql # not compatible
query III rowsort label-4137
SELECT * FROM tab2 AS cor0 WHERE 23 - + col1 + - ( 45 ) * CAST ( NULL AS INTEGER ) IN ( 55 )
----

query I rowsort
SELECT DISTINCT - col2 + + 87 AS col0 FROM tab2 AS cor0
----
29
47
64

query I rowsort
SELECT ALL col1 - + - ( + col1 ) FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT DISTINCT - CAST( ( col0 ) AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - CAST ( ( col0 ) AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col0 - + 51 AS col2 FROM tab2
----
-5
13
24

query I rowsort
SELECT 25 - - + col1 + col1 * + 16 FROM tab0
----
1402
382
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT ALL col0 + + - col2 DIV + 78 FROM tab0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL col0 + + - col2 / + 78 FROM tab0
----
15
87
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4144
SELECT ALL - CAST( NULL AS SIGNED ), COUNT( * ) AS col1 FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4144
SELECT ALL - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 92 NOT BETWEEN NULL AND - 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ( CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4146
SELECT ( CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT col1 * - 24 * col0 + col2 + - - col1, - col2 AS col2 FROM tab0 AS cor0
----
-2228
-99
-29032
-47
-43817
-10

query I rowsort
SELECT ALL + col1 * - - col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4149
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + CAST( NULL AS SIGNED ) * + - col2 ) BETWEEN col1 AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-4149
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + CAST ( NULL AS INTEGER ) * + - col2 ) BETWEEN col1 AND ( col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4151
SELECT DISTINCT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) = 57
----

skipif mysql # not compatible
query III rowsort label-4151
SELECT DISTINCT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) = 57
----

query I rowsort
SELECT ALL col1 * + col2 FROM tab0 cor0 WHERE NOT ( + col2 + + col0 / - col2 + + + col1 / col1 IS NULL )
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + MAX( ALL + - col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4153
SELECT + MAX ( ALL + - col2 ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 * + 32 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4155
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-4155
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col0 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col0 * col2 * + + col1 FROM tab1
----
25075
290836
68544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4159
SELECT - col1 * - + CAST( col0 AS SIGNED ) + + - 10 DIV - col0 + - 95 * + + 49 FROM tab1 AS cor0
----
-378
-3941
-4230

skipif mysql # not compatible
query I rowsort label-4159
SELECT - col1 * - + CAST ( col0 AS INTEGER ) + + - 10 / - col0 + - 95 * + + 49 FROM tab1 AS cor0
----
-378
-3941
-4230

query II rowsort
SELECT + 38 AS col2, - 85 FROM tab0 AS cor0
----
38
-85
38
-85
38
-85

query I rowsort
SELECT col2 * - - 75 FROM tab2 AS cor0
----
1725
3000
4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4162
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + + col2 + - col2 + - + col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4162
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND + + col2 + - col2 + - + col2 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL + col1 - - col1 - - + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0 WHERE NOT col0 BETWEEN NULL AND + - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4163
SELECT ALL + col1 - - col1 - - + CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0 WHERE NOT col0 BETWEEN NULL AND + - col1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col1, + col0 * + + col0 FROM tab1 WHERE NOT NULL < ( - + col1 + - col0 + col0 * + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL - COUNT( * ) + + - ( 3 ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - COUNT ( * ) + + - ( 3 ) AS col1 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT - + 37 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT - + 37 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT - 40 * col2 + - 39 FROM tab0 AS cor0
----
-1919
-3999
-439

query I rowsort
SELECT ALL + 98 + - - 31 * + 27 AS col0 FROM tab1 AS cor0
----
935
935
935

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE ( - 17 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4170
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE ( - 17 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT DISTINCT col0 - - + CAST( NULL AS SIGNED ) * + - 5 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT col0 - - + CAST ( NULL AS INTEGER ) * + - 5 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE 83 BETWEEN + + 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL - MIN( ALL col2 ) - - - 12 + + SUM( ALL col1 ) * + 76 * - 95 FROM tab0 AS cor0
----
-743682

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL - MIN ( ALL col2 ) - - - 12 + + SUM ( ALL col1 ) * + 76 * - 95 FROM tab0 AS cor0
----
-743682

query I rowsort
SELECT + - col0 + 19 AS col0 FROM tab1 AS cor0
----
-32
-66
-72

query II rowsort
SELECT + col2 AS col0, + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
21
47
81
99
1

query I rowsort
SELECT ALL - 23 * - col1 AS col2 FROM tab1
----
1081
115
322

query I rowsort
SELECT DISTINCT + ( - col0 ) - - col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT + col2 * - + col0 AS col0 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT + col1 * + - 99 FROM tab1
----
-1386
-4653
-495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT CAST( - 99 AS SIGNED ) AS col0 FROM tab0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-4181
SELECT CAST ( - 99 AS INTEGER ) AS col0 FROM tab0
----
-99
-99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT - - COUNT( col1 ) FROM tab2 AS cor0 WHERE NOT - col2 - + CAST( col2 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT - - COUNT ( col1 ) FROM tab2 AS cor0 WHERE NOT - col2 - + CAST ( col2 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4183
SELECT CAST( - col1 AS SIGNED ) - + 51 * + col1 * - CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4183
SELECT CAST ( - col1 AS INTEGER ) - + 51 * + col1 * - CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - COUNT( * ) FROM tab0 WHERE NOT ( NOT ( 32 - - + 48 * col0 + col1 <= - 84 * - + col2 ) ) OR col0 IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4184
SELECT - COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( 32 - - + 48 * col0 + col1 <= - 84 * - + col2 ) ) OR col0 IS NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4186
SELECT ALL + col2 col0, + col2 * + CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4186
SELECT ALL + col2 col0, + col2 * + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
-5015
68
-6188
96
-4896

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 74 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 74 IS NULL
----
3

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL + COUNT( DISTINCT - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + COUNT ( DISTINCT - - col1 ) FROM tab1
----
3

query I rowsort
SELECT - col0 * - - 73 / + - col0 + + col1 + + - col0 + - 98 AS col1 FROM tab2 WHERE NOT + col2 > NULL
----

query I rowsort
SELECT + col2 * + - col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL col1 + + + 1 AS col1 FROM tab0
----
2
22
82

query I rowsort
SELECT + col0 FROM tab1 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + + 16 - + 5 * + col2 + + col2 col1 FROM tab0
----
-3
-379
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT + 95 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + 95 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT col0 + - 66 FROM tab2 AS cor0
----
-2
-20
9

query I rowsort
SELECT - col2 * col0 + - col0 FROM tab0 AS cor0
----
-720
-957
-9700

query I rowsort
SELECT DISTINCT 75 * + 93 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6975

query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 + + col2 + 81 - - + ( + 37 ) AS col1 FROM tab0 cor0
----
1427
1965
413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT ALL + + CAST( - col1 AS SIGNED ) - 95 AS col0 FROM tab1 AS cor0
----
-100
-109
-142

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL + + CAST ( - col1 AS INTEGER ) - 95 AS col0 FROM tab1 AS cor0
----
-100
-109
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + - 22 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4204
SELECT + - 22 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT ALL + col1 + + - 98 AS col1 FROM tab1 AS cor0
----
-51
-84
-93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + + col1 IS NULL
----

query I rowsort
SELECT - - col2 - + + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4208
SELECT + 78 - + 97 + 2 + + 94 * + 49, CAST( NULL AS SIGNED ) + - ( 77 ) - - 44 AS col0 FROM tab0
----
4589
NULL
4589
NULL
4589
NULL

skipif mysql # not compatible
query II rowsort label-4208
SELECT + 78 - + 97 + 2 + + 94 * + 49, CAST ( NULL AS INTEGER ) + - ( 77 ) - - 44 AS col0 FROM tab0
----
4589
NULL
4589
NULL
4589
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT DISTINCT 26 DIV SUM( - 99 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4209
SELECT DISTINCT 26 / SUM ( - 99 ) col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 35 - col2 AS col2 FROM tab2
----
-23
-5
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT col0 DIV + + col0 + - col0 AS col0 FROM tab0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-4211
SELECT col0 / + + col0 + - col0 AS col0 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT ALL + + col0 FROM tab1 WHERE NOT + - 57 IS NOT NULL
----

query I rowsort
SELECT + col0 + + col0 + - - 29 AS col0 FROM tab0 WHERE NOT ( + - col1 ) IN ( col2, + col0 )
----
203
223
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT ALL 0 DIV - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL 0 / - COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + 66 * + COUNT( * ) + - 47 FROM tab1 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-4215
SELECT + 66 * + COUNT ( * ) + - 47 FROM tab1 AS cor0
----
151

query I rowsort
SELECT ( + ( 4 ) ) FROM tab2 cor0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 34 + + + 41 + + col1 - 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab0
----
-96

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NOT NULL BETWEEN NULL AND ( NULL ) ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 56 IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - - 61 * - + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4221
SELECT - - 61 * - + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-549

query I rowsort
SELECT - 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 18 FROM tab0 AS cor0 WHERE NULL = - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - COUNT( - col1 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4225
SELECT - COUNT ( - col1 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - 3 * - 57 FROM tab1 AS cor0
----
171
171
171

query II rowsort
SELECT DISTINCT + - col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT MAX( ALL - ( - + ( - col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4228
SELECT MAX ( ALL - ( - + ( - col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT ALL + + COUNT( ALL col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + + COUNT ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - - 9 * - col1 AS col1 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + COUNT( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4231
SELECT + COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4232
SELECT * FROM tab2 WHERE + col2 - + - CAST( NULL AS SIGNED ) IN ( - col2 + - 64 )
----

skipif mysql # not compatible
query III rowsort label-4232
SELECT * FROM tab2 WHERE + col2 - + - CAST ( NULL AS INTEGER ) IN ( - col2 + - 64 )
----

query I rowsort
SELECT col2 * + col2 + 61 AS col1 FROM tab0
----
161
2270
9862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) * - + 55 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) * - + 55 FROM tab2
----
NULL

query II rowsort
SELECT col0 + + col0, + col0 FROM tab1
----
102
51
170
85
182
91

query I rowsort
SELECT DISTINCT 91 + - col0 AS col2 FROM tab1
----
0
40
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4237
SELECT DISTINCT + col1 + 97 DIV + 66 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + col1 + 97 / + 66 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT 79 * - 74 * 13 * - + 91 + - col2 AS col0 FROM tab1 AS cor0
----
6915722
6915750
6915759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 62 ) * - col0 + + col1 col2 FROM tab0 AS cor0
----
1011
5415
6015

query I rowsort
SELECT - ( - 58 ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - - col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT + - col0, - col0 AS col2 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT - - 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT col2 + - col0 * + 8 AS col1 FROM tab2
----
-345
-472
-542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4245
SELECT + ( + 56 ) + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT + ( + 56 ) + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT + COUNT( * ) + - 42 FROM tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT + COUNT ( * ) + - 42 FROM tab1 cor0
----
-39

query II rowsort
SELECT col2 AS col0, col1 FROM tab0 AS cor0 WHERE + col1 * - + col1 >= - - col0
----

query I rowsort
SELECT + 2 + col1 FROM tab0 cor0
----
23
3
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4249
SELECT - MIN( - - CAST( 85 AS SIGNED ) ) + - MAX( 98 ) FROM tab1 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-4249
SELECT - MIN ( - - CAST ( 85 AS INTEGER ) ) + - MAX ( 98 ) FROM tab1 AS cor0
----
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL col1 + - - col0 + CAST( 19 AS SIGNED ) + col1 + col1 FROM tab0 AS cor0
----
119
169
277

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL col1 + - - col0 + CAST ( 19 AS INTEGER ) + col1 + col1 FROM tab0 AS cor0
----
119
169
277

query I rowsort
SELECT DISTINCT + ( + + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + col0 + col0 + + col2 FROM tab0 AS cor0
----
184
293
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4253
SELECT DISTINCT + col0 * ( col0 ) AS col2 FROM tab1 AS cor0 WHERE ( - CAST( col0 AS SIGNED ) + - 43 * col0 ) IS NOT NULL
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + col0 * ( col0 ) AS col2 FROM tab1 AS cor0 WHERE ( - CAST ( col0 AS INTEGER ) + - 43 * col0 ) IS NOT NULL
----
2601
7225
8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col0 NOT BETWEEN + + 42 * - - 39 AND + 3 + + 59
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 98, col2 * + 19 + + - col1 )
----

query I rowsort
SELECT + col2 * + - ( 54 ) AS col2 FROM tab0
----
-2538
-5346
-540

query I rowsort
SELECT + ( - - col1 ) * - col0 + + - col1 * + 81 FROM tab0
----
-178
-3528
-7776

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT DISTINCT col0 DIV - - 93 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT col0 / - - 93 AS col0 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * - ( col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4260
SELECT ( + - 30 ) * + - 7 + - + col1 - + col0 DIV - col1 AS col2 FROM tab1
----
164
199
222

skipif mysql # not compatible
query I rowsort label-4260
SELECT ( + - 30 ) * + - 7 + - + col1 - + col0 / - col1 AS col2 FROM tab1
----
164
199
222

query II rowsort
SELECT + col0 AS col0, + 86 FROM tab2
----
46
86
64
86
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL ( + - SUM( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL ( + - SUM ( + col1 ) ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT + MAX( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT + MAX ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
NULL

query II rowsort
SELECT ALL - col1 AS col2, 88 FROM tab1 AS cor0
----
-14
88
-47
88
-5
88

query I rowsort
SELECT ALL - + AVG ( ALL - ( - 50 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 18 * + - col0 * + col2 * col2 + + col0 > NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 50
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4267
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) * 22 AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) * 22 AS col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT MIN( - - col0 ) AS col0, - COUNT( * ) AS col2 FROM tab0
----
15
-3

skipif mysql # not compatible
query II rowsort label-4268
SELECT MIN ( - - col0 ) AS col0, - COUNT ( * ) AS col2 FROM tab0
----
15
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col1, 5 FROM tab0
----
-3
5

skipif mysql # not compatible
query II rowsort label-4269
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col1, 5 FROM tab0
----
-3
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - 96 + - col2 AS col2 FROM tab0 AS cor0
----
-106
-143
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4272
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * + 83 * + 33 >= ( - col1 + + 21 + - 42 / - col1 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4272
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * + 83 * + 33 >= ( - col1 + + 21 + - 42 / - col1 * + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + ( 8 ) AS col0 FROM tab1 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + COUNT( ALL 99 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4274
SELECT + COUNT ( ALL 99 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT MAX( ALL - col1 ) * 12 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4275
SELECT MAX ( ALL - col1 ) * 12 AS col0 FROM tab0
----
-12

query I rowsort
SELECT ALL - 27 + - col1 AS col0 FROM tab0 AS cor0
----
-108
-28
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - + 63 * + + 28 - - + 60 - + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4278
SELECT ALL - 96 - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL - 96 - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4280
SELECT * FROM tab0 AS cor0 WHERE + col0 + + CAST( col1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-4280
SELECT * FROM tab0 AS cor0 WHERE + col0 + + CAST ( col1 AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT DISTINCT + col2 DIV - 84 + - + col1 + 35 FROM tab0 AS cor0
----
-46
14
33

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + col2 / - 84 + - + col1 + 35 FROM tab0 AS cor0
----
-46
14
33

query I rowsort
SELECT - - col0 * - 38 - 26 AS col2 FROM tab2 AS cor0
----
-1774
-2458
-2876

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT DISTINCT + COUNT( * ) * + - 90 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4283
SELECT DISTINCT + COUNT ( * ) * + - 90 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 58 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT DISTINCT - - col2 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT - - col2 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + ( 71 ) AS col0 FROM tab0 cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL ( COUNT( * ) ) * 91 AS col2 FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL ( COUNT ( * ) ) * 91 AS col2 FROM tab2 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT + MAX( + + 60 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-4290
SELECT + MAX ( + + 60 ) FROM tab0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4291
SELECT ALL + MIN( - col1 ) DIV 20 AS col2, COUNT( DISTINCT + col2 ) DIV + CAST( 2 AS SIGNED ) col1 FROM tab2
----
-3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4291
SELECT ALL + MIN ( - col1 ) / 20 AS col2, COUNT ( DISTINCT + col2 ) / + CAST ( 2 AS INTEGER ) col1 FROM tab2
----
-3
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col0 FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 * - + col0, ( - 74 ) AS col0 FROM tab1
----
-425
-74
-4277
-74
-714
-74

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT ALL - 23 * + - 36 FROM tab0 AS cor0
----
828
828
828

query I rowsort
SELECT DISTINCT - + col2 * + + 32 * + col2 - - - col2 FROM tab2 AS cor0
----
-107706
-16951
-51240

query I rowsort
SELECT - - col0 * - + ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT CAST( NULL AS SIGNED ) / + + col1 - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT CAST ( NULL AS INTEGER ) / + + col1 - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT 31 * COUNT( * ) DIV ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT 31 * COUNT ( * ) / ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + SUM( 40 ) * ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
360

skipif mysql # not compatible
query I rowsort label-4301
SELECT + SUM ( 40 ) * ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
360

query III rowsort
SELECT ALL * FROM tab1 WHERE - 2 + + 37 BETWEEN NULL AND + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4303
SELECT COUNT( ALL + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT COUNT ( ALL + CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + col2 ) * + 95 col2, - 6 FROM tab1 AS cor0
----
5605
-6
6460
-6
9120
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col2 col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < + + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - + 9 * + CAST( - 70 AS SIGNED ) FROM tab0 cor0
----
630
630
630

skipif mysql # not compatible
query I rowsort label-4307
SELECT - + 9 * + CAST ( - 70 AS INTEGER ) FROM tab0 cor0
----
630
630
630

query I rowsort
SELECT ALL + col0 + 21 AS col2 FROM tab1 AS cor0
----
106
112
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT ALL - - COUNT( * ) DIV - 5 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL - - COUNT ( * ) / - 5 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + COUNT( col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + COUNT ( col0 ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE - + col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * 45 AS col0 FROM tab1
----
2655
3060
4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT + SUM( ALL - col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT + SUM ( ALL - col1 ) AS col1 FROM tab1
----
-66

query II rowsort
SELECT DISTINCT col1 + - col1, + col1 AS col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT + col2 + 95 AS col0 FROM tab2 AS cor0
----
118
135
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - + col0 col1 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT - col2 * + 69 * - col0 AS col1 FROM tab1
----
337824
346035
426972

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 84 NOT IN ( - col0 )
----

query II rowsort
SELECT - col1 AS col2, col2 + 4 FROM tab2 AS cor0
----
-51
27
-67
62
-77
44

query I rowsort
SELECT + ( - + col0 ) + - + 37 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-101
-112
-83

query I rowsort
SELECT ALL + 77 * ( + col0 ) FROM tab1 AS cor0
----
3927
6545
7007

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE col2 * 30 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, - 42 FROM tab2
----
51
-42
67
-42
77
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 AS col0, col0 * - + col2 col1 FROM tab1
----
-9
-4896
-9
-5015
-9
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL - MIN( + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL - MIN ( + col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT + col0 DIV - col2 + col2 AS col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT + col0 / - col2 + col2 AS col2 FROM tab1 AS cor0
----
58
67
96

query I rowsort
SELECT DISTINCT - 51 * 41 AS col1 FROM tab1 AS cor0
----
-2091

query I rowsort
SELECT col2 * + + col1 * + col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4329
SELECT DISTINCT - COUNT( * ) / + - MIN( DISTINCT - CAST( + + col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT - COUNT ( * ) / + - MIN ( DISTINCT - CAST ( + + col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - - 93 * - + col2 AS col0 FROM tab1 AS cor0
----
-5487
-6324
-8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 85 col2 FROM tab0
----
-1785
-6885
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4332
SELECT - 3 * + CAST( - 53 AS SIGNED ) + - 8 AS col2 FROM tab0
----
151
151
151

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 3 * + CAST ( - 53 AS INTEGER ) + - 8 AS col2 FROM tab0
----
151
151
151

query I rowsort
SELECT ALL + 19 + + col1 FROM tab0
----
100
20
40

query I rowsort
SELECT - + ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT 72 FROM tab1 AS cor0 WHERE ( - - col0 ) IS NOT NULL
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL + COUNT( * ) + - 52 + - 75 FROM tab1 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + COUNT ( * ) + - 52 + - 75 FROM tab1 AS cor0
----
-124

query II rowsort
SELECT DISTINCT + col0 - col1, col2 FROM tab0 cor0
----
-66
47
66
10
96
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 53 * + 3 AS col0 FROM tab2
----
-159
-159
-159

query I rowsort
SELECT - col1 - + + 28 * + + 29 FROM tab2
----
-863
-879
-889

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + MIN( - 90 ) - - MIN( DISTINCT col2 ) + + COUNT( * ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-4342
SELECT + MIN ( - 90 ) - - MIN ( DISTINCT col2 ) + + COUNT ( * ) FROM tab0
----
-77

query I rowsort
SELECT col0 * - col1 * 93 - - - col1 FROM tab2
----
-218229
-458381
-467392

onlyif mysql # aggregate syntax: 
query II rowsort label-4344
SELECT ALL + COUNT( * ), 79 AS col0 FROM tab2
----
3
79

skipif mysql # not compatible
query II rowsort label-4344
SELECT ALL + COUNT ( * ), 79 AS col0 FROM tab2
----
3
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4345
SELECT DISTINCT - col2 DIV + - col2 + - + col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - col2 / + - col2 + - + col0 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT ALL + 58 - - col0 FROM tab1 AS cor0
----
109
143
149

query I rowsort
SELECT DISTINCT + - col0 + + 90 AS col1 FROM tab2 AS cor0
----
15
26
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4348
SELECT + - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4348
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 50 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - col0 + + col2 + - + col1 AS col2 FROM tab2 AS cor0
----
-1086
-2597
-4359

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4351
SELECT DISTINCT - 28 * CAST( - ( + COUNT( * ) ) AS SIGNED ) DIV + 37 AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - 28 * CAST ( - ( + COUNT ( * ) ) AS INTEGER ) / + 37 AS col2 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4352
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 74 < + col0
----
15
81
47

query I rowsort
SELECT - - 9 * - 72 FROM tab1 AS cor0
----
-648
-648
-648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4355
SELECT - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col0 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + 95 AS col0 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT ALL ( + - col1 ) FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4360
SELECT * FROM tab1 WHERE NOT - + col2 + + 43 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4360
SELECT * FROM tab1 WHERE NOT - + col2 + + 43 >= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 + - - 5 - 61 FROM tab2
----
-5
11
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + 95 ) + - 8 col2 FROM tab0 AS cor0
----
-103
-103
-103

query I rowsort
SELECT ALL + 14 * + 63 * + col1 + + + col0 + + - col2 FROM tab0 AS cor0
----
18599
71410
880

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 col0 FROM tab0 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT - COUNT( DISTINCT - + ( - col2 ) ) * + + COUNT( * ) - + 32 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - COUNT ( DISTINCT - + ( - col2 ) ) * + + COUNT ( * ) - + 32 FROM tab0
----
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4367
SELECT 16 + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT 16 + - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL + + MAX( - 44 ) + + - COUNT( * ) * + COUNT( * ) * - - 77 FROM tab0 AS cor0
----
-737

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + + MAX ( - 44 ) + + - COUNT ( * ) * + COUNT ( * ) * - - 77 FROM tab0 AS cor0
----
-737

query I rowsort
SELECT + col0 + + col0 FROM tab0 cor0 WHERE 23 IS NOT NULL
----
174
194
30

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col2 + + 49 FROM tab0 AS cor0
----
148
59
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT DISTINCT col2 DIV - col2 + - col0 + + col2 FROM tab2 AS cor0
----
-18
-24
-25

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT col2 / - col2 + - col0 + + col2 FROM tab2 AS cor0
----
-18
-24
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4373
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
23
40
58

query I rowsort
SELECT - col1 * + 67 + - + col2 + col2 + - col1 - + col2 * col2 FROM tab1 AS cor0
----
-10168
-3821
-7820

query I rowsort
SELECT 66 * 22 AS col0 FROM tab1 AS cor0 WHERE ( + 11 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4376
SELECT - - CAST( - 58 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
-18
-35
0

skipif mysql # not compatible
query I rowsort label-4376
SELECT - - CAST ( - 58 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
-18
-35
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL col1 - + CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL col1 - + CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NOT - 76 * - + col2 + + col1 + - col1 + - col0 / - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT ALL - COUNT( * ) * - 15 AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - COUNT ( * ) * - 15 AS col2 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT ALL + ( col2 ) * + CAST( + 11 AS SIGNED ) AS col1 FROM tab2
----
253
440
638

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + ( col2 ) * + CAST ( + 11 AS INTEGER ) AS col1 FROM tab2
----
253
440
638

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT ALL 21 DIV + col0 - col2 + - col0 FROM tab0
----
-196
-61
-97

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL 21 / + col0 - col2 + - col0 FROM tab0
----
-196
-61
-97

query III rowsort
SELECT * FROM tab2 WHERE - + 16 NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 73 col2 FROM tab2
----
3723
4891
5621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col1 FROM tab1
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col0 + + col2 col0 FROM tab0 WHERE + col1 * ( + 47 ) / + col2 - - + ( ( - ( 24 ) ) ) * - col2 NOT BETWEEN col1 AND + 11
----
1037
5752
6501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4386
SELECT DISTINCT col0 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT col0 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col0 * col1 - 42 FROM tab0 AS cor0
----
1173
1785
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT - MAX( ALL - - col1 ) + 60 AS col0 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - MAX ( ALL - - col1 ) + 60 AS col0 FROM tab2 AS cor0
----
-17

query II rowsort
SELECT + 54 - - col2 * col2 AS col2, + col1 FROM tab0 cor0
----
154
21
2263
81
9855
1

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 8 + 29
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT 56, - COUNT( * ) AS col1 FROM tab2
----
56
-3

skipif mysql # not compatible
query II rowsort label-4391
SELECT 56, - COUNT ( * ) AS col1 FROM tab2
----
56
-3

query I rowsort
SELECT 14 + - 28 + + col1 FROM tab2 WHERE NOT NULL <= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 57 col2 FROM tab0
----
2679
5643
570

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4394
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < + col1
----

skipif mysql # not compatible
query III rowsort label-4394
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT - 0 DIV + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4395
SELECT - 0 / + col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col1 AS col2, col1 * - col0 - + + col0 AS col2 FROM tab2 AS cor0
----
51
-2392
67
-5100
77
-4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT + - 46 * - - CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT + - 46 * - - CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4398
SELECT DISTINCT - + 5 col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4398
SELECT DISTINCT - + 5 col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-5
NULL

query I rowsort
SELECT DISTINCT - 6 * - 34 AS col2 FROM tab1 AS cor0
----
204

query II rowsort
SELECT ALL - col1, + col1 + + + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-51
1109
-67
4417
-77
2637

query I rowsort
SELECT DISTINCT - 77 * + - col0 * col2 * + col2 FROM tab0 AS cor0
----
2551395
669900
73203669

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT ( + MIN( col0 ) ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT ( + MIN ( col0 ) ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT - 91 * col0 AS col1 FROM tab1 cor0
----
-4641
-7735
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4404
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT 92 - + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - + 24 ) * + - 34 AS col1 FROM tab0
----
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT MIN( + 33 ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-4408
SELECT MIN ( + 33 ) AS col2 FROM tab2
----
33

query I rowsort
SELECT ALL - col1 + + + col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT + MIN( ALL + + col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4410
SELECT + MIN ( ALL + + col0 ) col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL COUNT( + 92 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL COUNT ( + 92 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL + ( + 19 ) + 64 * 56 AS col0, - col1 FROM tab2
----
3603
-51
3603
-67
3603
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 51 col2 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT ALL + col1 + - - 88, - 95 + - col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

query I rowsort
SELECT DISTINCT + - 5 * 45 - 45 + + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 38
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * col0 + - + col0 - ( - 45 ) * col2 * - col0 FROM tab0
----
-198186
-441641
-49965

query I rowsort
SELECT ALL + + 85 FROM tab2 AS cor0 WHERE - 45 + + 89 - - + col1 * 35 * + 74 <= 79
----

query I rowsort
SELECT ALL col1 + - 74 + + 7 FROM tab2 cor0
----
-16
0
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT - - MIN( - 91 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4420
SELECT - - MIN ( - 91 ) AS col0 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT - - col0 - col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT + - col2 - + + col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT - SUM( DISTINCT - - 24 ) - - 91 * - COUNT( * ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4423
SELECT - SUM ( DISTINCT - - 24 ) - - 91 * - COUNT ( * ) FROM tab2 AS cor0
----
-297

query I rowsort
SELECT 51 - + + col2 * + col0 FROM tab2
----
-1007
-2509
-4299

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - COUNT( * ) * + SUM( ALL - col2 ) - - 4 AS col2 FROM tab2
----
367

skipif mysql # not compatible
query I rowsort label-4425
SELECT - COUNT ( * ) * + SUM ( ALL - col2 ) - - 4 AS col2 FROM tab2
----
367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 91 * + 64 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 91 * + 64 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT - COUNT( * ) + - 39 AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4427
SELECT - COUNT ( * ) + - 39 AS col0 FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT + MIN( ALL - + col1 ) * + MAX( DISTINCT - col0 ) + - COUNT( * ) FROM tab2
----
3539

skipif mysql # not compatible
query I rowsort label-4428
SELECT + MIN ( ALL - + col1 ) * + MAX ( DISTINCT - col0 ) + - COUNT ( * ) FROM tab2
----
3539

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL COUNT( * ) * - 15 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL COUNT ( * ) * - 15 FROM tab2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT - - 58 DIV col2 + + - 73 FROM tab2 WHERE NULL IS NULL
----
-71
-72
-72

skipif mysql # not compatible
query I rowsort label-4430
SELECT - - 58 / col2 + + - 73 FROM tab2 WHERE NULL IS NULL
----
-71
-72
-72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 61 * - 91 * - + col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 72, col1 FROM tab2 AS cor0
----
72
51
72
67
72
77

query I rowsort
SELECT ALL + col0 * - 30 AS col2 FROM tab0 AS cor0
----
-2610
-2910
-450

query II rowsort
SELECT col1 AS col1, 89 AS col0 FROM tab1 AS cor0
----
14
89
47
89
5
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT ALL - ( - + 8 ) * + 5 * - 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-4435
SELECT ALL - ( - + 8 ) * + 5 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4436
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( ( + col1 ) AS SIGNED ) * col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-4436
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( ( + col1 ) AS INTEGER ) * col0 < NULL
----

query I rowsort
SELECT + col2 * - ( + + col2 ) * - col2 FROM tab0 AS cor0
----
1000
103823
970299

query III rowsort
SELECT DISTINCT - 28 * col0 + col1 + + col2 / - col0, - col0, + - col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 * + col0 AND - col1 + - col0 * + col0 * + - 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT + + col2 DIV 28 * - 18 AS col1 FROM tab2 AS cor0
----
-18
-36
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT + + col2 / 28 * - 18 AS col1 FROM tab2 AS cor0
----
-18
-36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + COUNT( DISTINCT - col2 ) * 31 AS col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4440
SELECT + COUNT ( DISTINCT - col2 ) * 31 AS col0 FROM tab1 AS cor0
----
93

query I rowsort
SELECT + col2 * + 56 FROM tab1
----
3304
3808
5376

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT - 46 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT 73 + + + COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-4443
SELECT 73 + + + COUNT ( * ) FROM tab2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL + 68 * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4444
SELECT ALL + 68 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE - + col1 / col0 * - col1 / + ( + col1 ) + - 1 + - ( 87 ) * - col0 * - 95 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE - + col1 / col0 * - col1 / + ( + col1 ) + - 1 + - ( 87 ) * - col0 * - 95 IS NULL
----
0

query II rowsort
SELECT ALL + col0, + 17 FROM tab0
----
15
17
87
17
97
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4447
SELECT DISTINCT col0 DIV col1 DIV - - col2 * - - 81 + CAST( - - col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT col0 / col1 / - - col2 * - - 81 + CAST ( - - col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT col1 * - col2 + + - col0 AS col0 FROM tab2
----
-1219
-3144
-3961

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT + col2 DIV + col0 + - + col1 - + col1 + + col1 AS col1 FROM tab0 cor0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT + col2 / + col0 + - + col1 - + col1 + + col1 AS col1 FROM tab0 cor0
----
-21
-78
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COUNT( * ) * + 36 + - SUM( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
335

skipif mysql # not compatible
query I rowsort label-4450
SELECT COUNT ( * ) * + 36 + - SUM ( DISTINCT - col0 ) AS col2 FROM tab1 cor0
----
335

query I rowsort
SELECT col1 + 1 AS col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT + ( - col0 ) + - col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT DISTINCT - COUNT( * ) + + MAX( DISTINCT 35 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT - COUNT ( * ) + + MAX ( DISTINCT 35 ) FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT - col2 + + col2 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = ( col0 ) + - + ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT ALL + col2 DIV - 33 - - - 45 * + - 24 col1 FROM tab2 AS cor0
----
1079
1079
1080

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4456
SELECT ALL + col2 / - 33 - - - 45 * + - 24 col1 FROM tab2 AS cor0
----
1079
1079
1080

query I rowsort
SELECT - 73 + - col0 AS col1 FROM tab0 AS cor0
----
-160
-170
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4458
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( - 54 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab1 WHERE - 92 - col1 IS NOT NULL
----
29
29
29

query III rowsort
SELECT ALL * FROM tab1 WHERE 82 <= + - col1 / - 35
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT 71 DIV col1 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4462
SELECT 71 / col1 AS col1 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT DISTINCT COUNT( * ) col0, 78 + - 30 + + 70 AS col2 FROM tab0
----
3
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4463
SELECT DISTINCT COUNT ( * ) col0, 78 + - 30 + + 70 AS col2 FROM tab0
----
3
118

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( ( + - col0 BETWEEN ( col0 ) AND - col2 * - - col2 * - 58 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4465
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col1 ) >= - CAST( NULL AS DECIMAL ) + - + col0
----

skipif mysql # not compatible
query I rowsort label-4465
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col1 ) >= - CAST ( NULL AS REAL ) + - + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4467
SELECT DISTINCT - 43 * - CAST( NULL AS SIGNED ) * + col0 + + col2 + - 92 * - 4, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4467
SELECT DISTINCT - 43 * - CAST ( NULL AS INTEGER ) * + col0 + + col2 + - 92 * - 4, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + + 0 AS col2 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1 + + + 63 + - col1 * + 28 * - col1 * + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4470
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( - - 83 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4470
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( - - 83 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT ALL - 44 + + 17, + COUNT( * ) * ( AVG ( DISTINCT col2 ) ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col0 AND - col1
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-4471
SELECT ALL - 44 + + 17, + COUNT ( * ) * ( AVG ( DISTINCT col2 ) ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col0 AND - col1
----
-27
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4472
SELECT + CAST( + - ( - - SUM( ALL - - 74 ) ) AS SIGNED ) * 53 FROM tab0 AS cor0
----
-11766

skipif mysql # not compatible
query I rowsort label-4472
SELECT + CAST ( + - ( - - SUM ( ALL - - 74 ) ) AS INTEGER ) * 53 FROM tab0 AS cor0
----
-11766

query II rowsort
SELECT ALL 7 AS col1, col0 FROM tab0 AS cor0
----
7
15
7
87
7
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT ALL - MAX( - 88 ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - MAX ( - 88 ) AS col0 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4475
SELECT ALL - CAST( + - col1 AS SIGNED ) AS col2, 63 AS col2 FROM tab1
----
14
63
47
63
5
63

skipif mysql # not compatible
query II rowsort label-4475
SELECT ALL - CAST ( + - col1 AS INTEGER ) AS col2, 63 AS col2 FROM tab1
----
14
63
47
63
5
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT - col1 DIV - + 29 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT - col1 / - + 29 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab2 WHERE NOT col2 <= + - col1
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT - ( + + COUNT( * ) ) DIV - - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4478
SELECT - ( + + COUNT ( * ) ) / - - COUNT ( * ) AS col1 FROM tab2
----
-1

query II rowsort
SELECT DISTINCT + 55 * + 9 + + ( + 33 ) - - 53, col2 FROM tab1
----
581
59
581
68
581
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 62 col1 FROM tab1 WHERE col2 IS NOT NULL
----
113
147
153

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + col2 + - col1 + - - ( - col0 ) + col2 - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT + - ( + 18 ) + 92 - - COUNT( - col2 ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4482
SELECT + - ( + 18 ) + 92 - - COUNT ( - col2 ) FROM tab0 AS cor0
----
77

query I rowsort
SELECT + 76 + 72 FROM tab2 AS cor0
----
148
148
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT 47 + COUNT( * ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4484
SELECT 47 + COUNT ( * ) FROM tab2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL - COUNT( * ) + - + 20 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - COUNT ( * ) + - + 20 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - ( 99 ) AS col0 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT DISTINCT CAST( 12 AS SIGNED ) - + + col1 + - col1 * col1 - + - CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT CAST ( 12 AS INTEGER ) - + + col1 + - col1 * col1 - + - CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4488
SELECT ALL + 39 - - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + 39 - - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 + col1 + + 71 + col2 * + - col1 FROM tab2 AS cor0
----
-1097
-2996
-3823

query I rowsort
SELECT + + 44 AS col1 FROM tab2 cor0
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4491
SELECT DISTINCT * FROM tab0 WHERE NOT 74 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4491
SELECT DISTINCT * FROM tab0 WHERE NOT 74 = - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT COUNT( DISTINCT + - col0 ) * - 59 FROM tab1 WHERE NOT NULL <> + 50
----
0

skipif mysql # not compatible
query I rowsort label-4492
SELECT COUNT ( DISTINCT + - col0 ) * - 59 FROM tab1 WHERE NOT NULL <> + 50
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * - - col0 * - ( + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT DISTINCT - - col2 + + col2 AS col1 FROM tab0 WHERE NOT + - ( + col2 ) <> - + CAST( - - col2 AS SIGNED )
----
198
20
94

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - - col2 + + col2 AS col1 FROM tab0 WHERE NOT + - ( + col2 ) <> - + CAST ( - - col2 AS INTEGER )
----
198
20
94

query I rowsort
SELECT + col1 + - 65 * + 60 AS col1 FROM tab1 WHERE NOT NULL > + + 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT - col0 DIV - + col2 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4496
SELECT - col0 / - + col2 AS col0 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT - - col1 * + - 39 AS col2 FROM tab0 cor0
----
-3159
-39
-819

query I rowsort
SELECT - 9 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT - 28 * + SUM( - CAST( NULL AS SIGNED ) ) * - - 71 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4499
SELECT - 28 * + SUM ( - CAST ( NULL AS INTEGER ) ) * - - 71 col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + - 55 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-4500
SELECT + - 55 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-165

query I rowsort
SELECT ALL 5 AS col1 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT 54 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
-138240
-234900
-57132

query II rowsort
SELECT + - col2 AS col1, 98 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + ( - col1 ) + - col2 AND - col0 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT - + col2 * + CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4504
SELECT - + col2 * + CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL + SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - 18 + - 8 AS col1 FROM tab0 AS cor0
----
-26
-26
-26

query II rowsort
SELECT DISTINCT + ( + 49 ), col0 + - 59 AS col1 FROM tab2
----
49
-13
49
16
49
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4508
SELECT CAST( NULL AS DECIMAL ) + - AVG ( col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT CAST ( NULL AS REAL ) + - AVG ( col2 ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * + + col2 * + col0 col1 FROM tab1
----
127296
130390
160888

query I rowsort
SELECT + 45 + - + 29 FROM tab2
----
16
16
16

query I rowsort
SELECT DISTINCT col0 * + 68 AS col0 FROM tab0
----
1020
5916
6596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 col2, col0 * + 43 col1 FROM tab1
----
45
2193
45
3655
45
3913

query I rowsort
SELECT DISTINCT - col1 + 10 AS col0 FROM tab1 AS cor0
----
-37
-4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 col2 FROM tab0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + + col0, - 96 * - col2 + + ( - + 80 ) col1 FROM tab2
----
0
2128
0
3760
0
5488

query I rowsort
SELECT DISTINCT + 20 + - col0 FROM tab0
----
-67
-77
5

query I rowsort
SELECT DISTINCT - - 25 AS col1 FROM tab0 AS cor0
----
25

query I rowsort
SELECT ALL - col2 + col2 + + - 4 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT + MIN( DISTINCT - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4519
SELECT + MIN ( DISTINCT - col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT - - 33 AS col2 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL - col1 DIV + 13 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - col1 / + 13 FROM tab1 AS cor0
----
-1
-3
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 AND 81
----

query I rowsort
SELECT ALL 53 AS col2 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL + COUNT( * ) * + + COUNT( * ) col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4524
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) col2 FROM tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE + col0 * + CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE + col0 * + CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + MIN( DISTINCT 9 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4527
SELECT + MIN ( DISTINCT 9 ) AS col2 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT DISTINCT 18 AS col1, + COUNT( * ) FROM tab1
----
18
3

skipif mysql # not compatible
query II rowsort label-4528
SELECT DISTINCT 18 AS col1, + COUNT ( * ) FROM tab1
----
18
3

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * - + col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT - 50 * 86 * CAST( + - 2 AS SIGNED ) AS col0 FROM tab2
----
8600
8600
8600

skipif mysql # not compatible
query I rowsort label-4531
SELECT - 50 * 86 * CAST ( + - 2 AS INTEGER ) AS col0 FROM tab2
----
8600
8600
8600

query I rowsort
SELECT - col2 * + - ( - col2 ) + - - col1 FROM tab0 WHERE NOT 41 / - ( 13 ) + 69 + - 98 + + 70 IS NULL
----
-2128
-79
-9800

query I rowsort
SELECT + 98 * + 23 FROM tab1
----
2254
2254
2254

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT ALL + col2 DIV - 89 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL + col2 / - 89 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col2 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT COUNT( col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT COUNT ( col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + 82 > - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT DISTINCT + CAST( + + 44 AS SIGNED ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + CAST ( + + 44 AS INTEGER ) FROM tab1 AS cor0
----
44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 + - 75 NOT BETWEEN - + col2 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 99 AS col2, - col2 * 64 AS col1 FROM tab1 AS cor0
----
99
-3776
99
-4352
99
-6144

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, 58 AS col0 FROM tab0 AS cor0
----
1
58
21
58
81
58

query I rowsort
SELECT ALL col2 + - col1 * + 26 FROM tab1
----
-1154
-268
-71

query I rowsort
SELECT 77 * col2 AS col2 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE 61 - col2 IN ( col0 * - col2 + - 26 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT col0 / + CAST( col0 AS SIGNED ) AS col2 FROM tab2 WHERE NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4546
SELECT col0 / + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - col2 * + 44 FROM tab0 WHERE NULL >= + 22
----

query I rowsort
SELECT 29 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - 37 * COUNT( col1 * + col1 ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - 37 * COUNT ( col1 * + col1 ) FROM tab2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ( COUNT( * ) ) - 77 AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-4550
SELECT ( COUNT ( * ) ) - 77 AS col0 FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - 55 + col2 FROM tab0
----
-45
-8
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) + + 22 AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-4552
SELECT - COUNT ( * ) + + 22 AS col2 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT ALL + 11 + + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
14

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL + 11 + + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
14

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 - col0 / col1 AND + 77 * + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4558
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( CAST( NULL AS SIGNED ) + - 20 * col1 )
----

skipif mysql # not compatible
query III rowsort label-4558
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( CAST ( NULL AS INTEGER ) + - 20 * col1 )
----

query I rowsort
SELECT col2 + + 41 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL 81 FROM tab1 WHERE NOT col1 NOT IN ( col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 9 col2 FROM tab1 WHERE NOT + 3 < NULL
----

query I rowsort
SELECT - 84 - + col0 AS col0 FROM tab2
----
-130
-148
-159

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 43 * - col2 + 25 ) IS NOT NULL
----

query I rowsort
SELECT col2 * col1 - col0 AS col2 FROM tab1 WHERE ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL + SUM( ( + 42 ) ) FROM tab1 WHERE NOT ( + ( col1 ) ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL + SUM ( ( + 42 ) ) FROM tab1 WHERE NOT ( + ( col1 ) ) < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( col1 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4568
SELECT * FROM tab1 WHERE NOT - CAST( 8 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4568
SELECT * FROM tab1 WHERE NOT - CAST ( 8 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT 79 DIV 77 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4569
SELECT 79 / 77 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4570
SELECT 17 DIV + COUNT( * ) AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4570
SELECT 17 / + COUNT ( * ) AS col1 FROM tab2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( * ) * 86 AS col2 FROM tab1
----
258

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( * ) * 86 AS col2 FROM tab1
----
258

query I rowsort
SELECT ALL - 68 AS col0 FROM tab1 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT + COUNT( + col2 ) * COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4574
SELECT + COUNT ( + col2 ) * COUNT ( * ) AS col0 FROM tab2
----
9

query I rowsort
SELECT ALL 4 * col1 FROM tab0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT COUNT( * ) * - 89 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4576
SELECT COUNT ( * ) * - 89 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col1 = ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL + CAST( - col0 AS SIGNED ) + - ( + col1 ) FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL + CAST ( - col0 AS INTEGER ) + - ( + col1 ) FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT + ( 47 ) * + 13 AS col2 FROM tab0
----
611

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT ( CAST( - col1 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4582
SELECT DISTINCT ( CAST ( - col1 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 - + ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4583
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 - + ( col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT DISTINCT - + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - SUM( + 67 ) AS col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4585
SELECT - SUM ( + 67 ) AS col1 FROM tab2 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = - 63 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL = - 63 + + col0
----
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col1 > ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT SUM( ( col0 ) ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT SUM ( ( col0 ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
681

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 85 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 89
----

query I rowsort
SELECT col0 * 21 FROM tab0 WHERE NOT col0 NOT BETWEEN + col1 AND ( ( + col0 ) )
----
1827
2037

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + 64 AND col0 * ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL COUNT( * ) AS col1 FROM tab1 WHERE + 25 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL COUNT ( * ) AS col1 FROM tab1 WHERE + 25 IS NOT NULL
----
3

query I rowsort
SELECT ALL + 64 * + + 32 AS col1 FROM tab1
----
2048
2048
2048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT + col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4595
SELECT + col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4596
SELECT DISTINCT * FROM tab0 WHERE col2 * CAST( col2 * col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4596
SELECT DISTINCT * FROM tab0 WHERE col2 * CAST ( col2 * col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 34 col0 FROM tab0 AS cor0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT DISTINCT + COUNT( + + ( col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT + COUNT ( + + ( col1 ) ) FROM tab0
----
3

query I rowsort
SELECT - col1 FROM tab1 WHERE + + col0 + - 5 * - 82 NOT IN ( col1 )
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <> ( col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT CAST( NULL AS SIGNED ) * + - col0 + - col1 + + 64 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT CAST ( NULL AS INTEGER ) * + - col0 + - col1 + + 64 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + 48 * + 79 AS col2 FROM tab0 AS cor0 WHERE 58 IS NULL
----

query I rowsort
SELECT + + 15 + - col2 AS col2 FROM tab1 AS cor0
----
-44
-53
-81

query I rowsort
SELECT - ( + + col2 ) + + - col0 * 82 FROM tab2 AS cor0
----
-3795
-5288
-6208

query I rowsort
SELECT ALL + col2 + + col1 - col0 AS col1 FROM tab2 AS cor0
----
28
50
53

query II rowsort
SELECT DISTINCT 63, 40 + + col1 AS col1 FROM tab1 AS cor0
----
63
45
63
54
63
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4608
SELECT DISTINCT + col1 + + + col0 DIV + col1 FROM tab1 AS cor0
----
17
22
48

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT + col1 + + + col0 / + col1 FROM tab1 AS cor0
----
17
22
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> col1 + - 57 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT col0 DIV 20 + + col1 col0 FROM tab0 AS cor0 WHERE col2 * - 29 * col0 <= col1
----
25
5
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4610
SELECT col0 / 20 + + col1 col0 FROM tab0 AS cor0 WHERE col2 * - 29 * col0 <= col1
----
25
5
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT DISTINCT - 55 * - - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
2530
3520
4125

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT - 55 * - - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
2530
3520
4125

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE + col2 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT + - 75 + + col1 / col1 FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT - ( ( - SUM( col2 ) ) ) * 89 AS col0 FROM tab0
----
13884

skipif mysql # not compatible
query I rowsort label-4614
SELECT - ( ( - SUM ( col2 ) ) ) * 89 AS col0 FROM tab0
----
13884

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4615
SELECT * FROM tab2 WHERE - - CAST( - 26 AS SIGNED ) * + col2 IN ( col0 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-4615
SELECT * FROM tab2 WHERE - - CAST ( - 26 AS INTEGER ) * + col2 IN ( col0 + + col1 )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) * - ( - col0 ) AS col1 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT - col1 + - col2 AS col0, - col2 FROM tab2
----
-117
-40
-125
-58
-74
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-4618
SELECT col0 DIV + col1, - col1 DIV 79 + + ( col2 ) AS col0 FROM tab2
----
0
23
0
40
1
58

skipif mysql # not compatible
query II rowsort label-4618
SELECT col0 / + col1, - col1 / 79 + + ( col2 ) AS col0 FROM tab2
----
0
23
0
40
1
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN col0 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4620
SELECT - CAST( col2 AS SIGNED ), 4 AS col2 FROM tab2
----
-23
4
-40
4
-58
4

skipif mysql # not compatible
query II rowsort label-4620
SELECT - CAST ( col2 AS INTEGER ), 4 AS col2 FROM tab2
----
-23
4
-40
4
-58
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4621
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <> ( + CAST( NULL AS DECIMAL ) + - + col1 )
----

skipif mysql # not compatible
query III rowsort label-4621
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <> ( + CAST ( NULL AS REAL ) + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - - COUNT( * ) * - 75 AS col0 FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4622
SELECT - - COUNT ( * ) * - 75 AS col0 FROM tab1 AS cor0
----
-225

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * + - col1 IS NULL
----
59
68
96

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - + 27 * - - 34 + col2 FROM tab0 AS cor0
----
-819
-871
-908

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4626
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + CAST( 66 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4626
SELECT * FROM tab0 cor0 WHERE NOT NULL >= + CAST ( 66 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT DISTINCT SUM( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT SUM ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - 47 * - + col1 FROM tab2 cor0
----
-110262
-231616
-236175

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT ALL + col1 DIV - 77 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + col1 / - 77 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( + 89 ) FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT + 54 * - 65 FROM tab2, tab2 AS cor0
----
9 values hashing to 2f718ab1d4e975d4da4da9d805e8af29

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE NULL <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT - 33 DIV col0 AS col0 FROM tab2 WHERE NOT ( - - 39 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT - 33 / col0 AS col0 FROM tab2 WHERE NOT ( - - 39 ) IS NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT 86 IN ( + 5 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT - MAX( + col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4635
SELECT - MAX ( + col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT ( + 37 ) * - COUNT( * ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT ( + 37 ) * - COUNT ( * ) FROM tab0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - SUM( DISTINCT - 16 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-4637
SELECT - SUM ( DISTINCT - 16 ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4638
SELECT + 35 AS col0, 66 * + MIN( - + 60 ) col0 FROM tab2
----
35
-3960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4638
SELECT + 35 AS col0, 66 * + MIN ( - + 60 ) col0 FROM tab2
----
35
-3960

query I rowsort
SELECT ( - col0 ) AS col0 FROM tab2 WHERE NOT - + ( - + col1 ) - - - 3 IS NOT NULL
----

query I rowsort
SELECT col1 * + - ( - 54 ) AS col2 FROM tab0
----
1134
4374
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4641
SELECT + 9 AS col1, + ( - 35 ) DIV - - 39 * SUM( DISTINCT + - col1 ) AS col1 FROM tab1
----
9
0

skipif mysql # not compatible
query II rowsort label-4641
SELECT + 9 AS col1, + ( - 35 ) / - - 39 * SUM ( DISTINCT + - col1 ) AS col1 FROM tab1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT + COUNT( * ) FROM tab0 WHERE NOT - ( - 9 ) * - - col1 + - - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4642
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - ( - 9 ) * - - col1 + - - col1 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT ALL - COUNT( * ) + - ( - + 51 ) AS col2 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL - COUNT ( * ) + - ( - + 51 ) AS col2 FROM tab2 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * + 53 + + - 90 col1 FROM tab1 AS cor0
----
4680
4680
4680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4645
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL + 84 + COUNT( DISTINCT + col2 ) FROM tab2 WHERE NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + 84 + COUNT ( DISTINCT + col2 ) FROM tab2 WHERE NULL IS NULL
----
87

query I rowsort
SELECT 69 * - col2 + - col0 AS col1 FROM tab2
----
-1633
-2824
-4077

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT + 37 DIV col0 * - col2 + - - col2 FROM tab0
----
-47
10
99

skipif mysql # not compatible
query I rowsort label-4648
SELECT + 37 / col0 * - col2 + - - col2 FROM tab0
----
-47
10
99

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + col0 * + col0 - col0 NOT IN ( - 5 * col1 + col1 * - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - COUNT( ALL - - 88 ) + - 93 AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - COUNT ( ALL - - 88 ) + - 93 AS col2 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT + col2 AS col1, + 84 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
84
40
84
58
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4653
SELECT - 57 - CAST( NULL AS SIGNED ) AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-4653
SELECT - 57 - CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query III rowsort label-4654
SELECT + - 88 col0, + 87 * + 68 col1, + MIN( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
-88
5916
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4654
SELECT + - 88 col0, + 87 * + 68 col1, + MIN ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
-88
5916
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL - SUM( + - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL - SUM ( + - col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab2
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) - col0 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - + col0
----

query III rowsort
SELECT * FROM tab2 WHERE + 63 <= NULL
----

query II rowsort
SELECT ALL + col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT ALL - - 57 * 10 AS col0 FROM tab2 AS cor0
----
570
570
570

query I rowsort
SELECT DISTINCT col0 * + - 99 FROM tab1
----
-5049
-8415
-9009

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + 24
----

query I rowsort
SELECT - - ( - col1 ) * + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = ( - 95 ) + ( ( 65 ) )
----

query I rowsort
SELECT DISTINCT + - 49 * - col1 FROM tab2 cor0
----
2499
3283
3773

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( + 9 * - col2 + + col1, + 40 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4668
SELECT col1 DIV + - CAST( + 18 AS SIGNED ) AS col1 FROM tab2 cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-4668
SELECT col1 / + - CAST ( + 18 AS INTEGER ) AS col1 FROM tab2 cor0
----
-2
-3
-4

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE + 38 <> + - col1 + - - col2 + + col0
----
-51
-85
-91

query I rowsort
SELECT ( - 80 ) AS col1 FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT DISTINCT + MIN( ALL 16 ) col1 FROM tab1
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4671
SELECT DISTINCT + MIN ( ALL 16 ) col1 FROM tab1
----
16

query I rowsort
SELECT 79 + - col1 * col1 AS col1 FROM tab2 WHERE NOT + 70 IS NULL
----
-2522
-4410
-5850

query I rowsort
SELECT DISTINCT 39 * - + 88 FROM tab0 WHERE col0 >= + + 84 * col2
----

query I rowsort
SELECT 63 + - + 9 - col1 FROM tab0
----
-27
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + COUNT( * ) + + - SUM( + 13 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + COUNT ( * ) + + - SUM ( + 13 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT 80 * - 28 AS col2 FROM tab0 AS cor0
----
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4677
SELECT ALL + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 * + col1 AS col1 FROM tab0 AS cor0
----
-2058
-7938
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT col0 * - 87 + - col1 FROM tab2
----
-4053
-5645
-6592

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT - 61 + + MAX( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - 61 + + MAX ( ALL col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 64 - col1 FROM tab0 AS cor0
----
-17
43
63

query I rowsort
SELECT + - 2 + - col1 AS col1 FROM tab1 AS cor0
----
-16
-49
-7

query I rowsort
SELECT ( - + 24 ) * col0 FROM tab2
----
-1104
-1536
-1800

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT DISTINCT - ( + col1 ) DIV + col0 + - col0 + - 83 AS col1 FROM tab0
----
-103
-170
-180

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - ( + col1 ) / + col0 + - col0 + - 83 AS col1 FROM tab0
----
-103
-170
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT COUNT( ALL + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( ALL + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col1 - - + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL + COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL + COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4690
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 * - + CAST( NULL AS SIGNED ) / - col2 NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4690
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 26 * - + CAST ( NULL AS INTEGER ) / - col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4691
SELECT + COUNT( - - 70 ) DIV - - COUNT( + 77 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4691
SELECT + COUNT ( - - 70 ) / - - COUNT ( + 77 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT + MAX( + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + MAX ( + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT - 17 * + - 67 FROM tab1 AS cor0
----
1139

query I rowsort
SELECT DISTINCT - + 22 FROM tab0 cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT + + CAST( + - 22 AS SIGNED ) * + - col2 AS col1 FROM tab1 cor0
----
1298
1496
2112

skipif mysql # not compatible
query I rowsort label-4696
SELECT + + CAST ( + - 22 AS INTEGER ) * + - col2 AS col1 FROM tab1 cor0
----
1298
1496
2112

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT - 7 NOT BETWEEN NULL AND - + col2 * + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 52 * - 78 + - + 74 + - col2 IS NOT NULL
----

query I rowsort
SELECT - - 98 * + + 3 AS col2 FROM tab1 AS cor0
----
294
294
294

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( NOT NULL > - 64 - 90 + + col2 + - - col2 + - + col1 * - - col1 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

query I rowsort
SELECT DISTINCT + - 11 AS col0 FROM tab2 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT - - MAX( - 66 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - - MAX ( - 66 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT SUM( - - ( + 6 ) ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT SUM ( - - ( + 6 ) ) FROM tab1
----
18

query I rowsort
SELECT DISTINCT - col1 * - 25 AS col0 FROM tab1
----
1175
125
350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= - - 32
----

query I rowsort
SELECT ALL + 70 + 94 + col0 AS col1 FROM tab2
----
210
228
239

query I rowsort
SELECT DISTINCT + 53 + 36 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL col2 + - - 20 FROM tab0 AS cor0
----
119
30
67

query I rowsort
SELECT DISTINCT + 75 + col2 AS col0 FROM tab2 AS cor0
----
115
133
98

query I rowsort
SELECT DISTINCT + col0 * 98 FROM tab2
----
4508
6272
7350

query I rowsort
SELECT DISTINCT + - 95 - col2 FROM tab1 AS cor0
----
-154
-163
-191

query I rowsort
SELECT ALL - ( + 71 ) - 11 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + col1 + - + 46 + 62 AS col2 FROM tab1 AS cor0
----
21
30
63

query I rowsort
SELECT DISTINCT + + col0 * - + col1 - - 87 AS col2 FROM tab2 AS cor0
----
-2259
-4841
-4938

query I rowsort
SELECT ALL + 41 - + 46 AS col0 FROM tab0 AS cor0
----
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 45 * + 24 + - 47 AS col2 FROM tab1
----
-1127
-1127
-1127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4719
SELECT ALL + 42 AS col1, + col1 + - 38 + + + col2 * + CAST( NULL AS SIGNED ) + col2 / - - col1 col1 FROM tab1
----
42
NULL
42
NULL
42
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4719
SELECT ALL + 42 AS col1, + col1 + - 38 + + + col2 * + CAST ( NULL AS INTEGER ) + col2 / - - col1 col1 FROM tab1
----
42
NULL
42
NULL
42
NULL

query I rowsort
SELECT + col2 - + 57 AS col1 FROM tab2 WHERE NOT + 35 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> - 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT COUNT( + col1 ) * SUM( DISTINCT - 17 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4722
SELECT COUNT ( + col1 ) * SUM ( DISTINCT - 17 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL - ( + - ( - COUNT( * ) ) ) FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - ( + - ( - COUNT ( * ) ) ) FROM tab2 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT - 50, + 59 + - 83 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-50
-111
-50
-121
-50
-39

query I rowsort
SELECT + 66 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, - col2 col0 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * col1 * col0 col2 FROM tab1
----
39100
393484
65688

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 + - col1 ) <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 53 AS col2 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT ALL - col1 * - - 3 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT - 40 + - col1 + + 12 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 - - 17 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT + + AVG ( DISTINCT - ( 42 ) ) * - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT + + AVG ( DISTINCT - ( 42 ) ) * - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 84 + - col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= ( + col2 )
----

query I rowsort
SELECT ALL + - 90 AS col2 FROM tab2 cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4736
SELECT MAX( ALL col1 ) + + 49 + + - 21 * + 40 DIV + + 5 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4736
SELECT MAX ( ALL col1 ) + + 49 + + - 21 * + 40 / + + 5 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT - 81 + - ( col2 ) + col2 FROM tab1
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4738
SELECT DISTINCT COUNT( * ), - 30 AS col0 FROM tab2
----
3
-30

skipif mysql # not compatible
query II rowsort label-4738
SELECT DISTINCT COUNT ( * ), - 30 AS col0 FROM tab2
----
3
-30

query I rowsort
SELECT + col1 + - 98 FROM tab2
----
-21
-31
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT + COUNT( * ) * - 74 + 25 + + 50 * + + 50 + AVG ( + 12 ) AS col0 FROM tab0 WHERE ( NOT + col0 - + 87 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT + COUNT ( * ) * - 74 + 25 + + 50 * + + 50 + AVG ( + 12 ) AS col0 FROM tab0 WHERE ( NOT + col0 - + 87 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT DISTINCT COUNT( - + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT COUNT ( - + col1 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 31 > - col1
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IN ( + - col1 * + 29 - col2 * + - 22, col0 )
----

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IN ( + - col1 * + 29 - col2 * + - 22, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT + COUNT( * ) AS col0, 85 + 66 FROM tab1 WHERE NULL IS NULL
----
3
151

skipif mysql # not compatible
query II rowsort label-4744
SELECT + COUNT ( * ) AS col0, 85 + 66 FROM tab1 WHERE NULL IS NULL
----
3
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + - MIN( - 81 ) * + 54 FROM tab0 AS cor0
----
4374

skipif mysql # not compatible
query I rowsort label-4745
SELECT + - MIN ( - 81 ) * + 54 FROM tab0 AS cor0
----
4374

query II rowsort
SELECT - col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4747
SELECT + + COUNT( * ) * - + 93 FROM tab1 AS cor0 WHERE ( NULL ) >= + 30 * - + col2 - - CAST( - + col1 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4747
SELECT + + COUNT ( * ) * - + 93 FROM tab1 AS cor0 WHERE ( NULL ) >= + 30 * - + col2 - - CAST ( - + col1 AS INTEGER )
----
0

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + 62 + + col2
----

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col1 FROM tab1
----
425
4277
714

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE - 15 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + + COUNT( * ) FROM tab1 WHERE - col2 * - - ( + col2 ) - 21 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4751
SELECT + + COUNT ( * ) FROM tab1 WHERE - col2 * - - ( + col2 ) - 21 IS NOT NULL
----
3

query I rowsort
SELECT ALL + ( - + col1 ) + col0 * ( 13 ) AS col0 FROM tab1 AS cor0
----
1100
1136
649

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - - COUNT( DISTINCT col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4753
SELECT - - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT - col0 DIV - - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - col0 / - - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-22
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 97 + 22 col1 FROM tab2 AS cor0
----
-121
-139
-150

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col0 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 > - ( - col2 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4758
SELECT DISTINCT - 83 * + ( - CAST( NULL AS DECIMAL ) ) / - COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT - 83 * + ( - CAST ( NULL AS REAL ) ) / - COUNT ( * ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT MAX( 56 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-4759
SELECT MAX ( 56 ) FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4760
SELECT ALL col2 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4760
SELECT ALL col2 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT COUNT( * ) * + 15 + - 13 FROM tab0 WHERE - 69 BETWEEN NULL AND NULL
----
-13

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT COUNT ( * ) * + 15 + - 13 FROM tab0 WHERE - 69 BETWEEN NULL AND NULL
----
-13

query I rowsort
SELECT - 86 * + 53 * col1 AS col2 FROM tab2
----
-232458
-305386
-350966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * - + col2 col1 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT + CAST( + SUM( + ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT + CAST ( + SUM ( + ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT - SUM( DISTINCT - 33 ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-4765
SELECT - SUM ( DISTINCT - 33 ) FROM tab1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 59 col2, 30 FROM tab0
----
59
30
59
30
59
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT ALL - 9 DIV - + COUNT( * ) + 65 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - 9 / - + COUNT ( * ) + 65 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT DISTINCT + col0 * - col0 * - col1 + - col1 * col0 DIV - col0 FROM tab2
----
107967
315469
376942

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT + col0 * - col0 * - col1 + - col1 * col0 / - col0 FROM tab2
----
107967
315469
376942

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT + MIN( ALL - + col0 ) + - COUNT( * ) + COUNT( * ) + + 58 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + MIN ( ALL - + col0 ) + - COUNT ( * ) + COUNT ( * ) + + 58 FROM tab1
----
-33

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE NOT + col1 * + col1 IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT + AVG ( ALL - + col1 ) * - COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT + AVG ( ALL - + col1 ) * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4772
SELECT ALL 91 + - col2 + CAST( NULL AS DECIMAL ) / + 85 - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL 91 + - col2 + CAST ( NULL AS REAL ) / + 85 - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + COUNT( * ) * + 88 AS col0 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-4773
SELECT + COUNT ( * ) * + 88 AS col0 FROM tab1 AS cor0
----
264

query II rowsort
SELECT ALL - col1, col0 + - 22 AS col0 FROM tab2 AS cor0
----
-51
24
-67
53
-77
42

onlyif mysql # DIV for integer division: 
query II rowsort label-4775
SELECT 11 AS col2, 66 DIV - - col1 AS col1 FROM tab1 AS cor0
----
11
1
11
13
11
4

skipif mysql # not compatible
query II rowsort label-4775
SELECT 11 AS col2, 66 / - - col1 AS col1 FROM tab1 AS cor0
----
11
1
11
13
11
4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 + col1 * col1, - col1, - 92 + - col1, 96 )
----

query II rowsort
SELECT col0, 90 AS col2 FROM tab1 AS cor0
----
51
90
85
90
91
90

query I rowsort
SELECT DISTINCT - 80 * - 73 * col2 FROM tab2 AS cor0
----
134320
233600
338720

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT - COUNT( ALL - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4779
SELECT - COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4780
SELECT - + CAST( col1 AS SIGNED ) DIV 5 AS col0 FROM tab2 AS cor0
----
-10
-13
-15

skipif mysql # not compatible
query I rowsort label-4780
SELECT - + CAST ( col1 AS INTEGER ) / 5 AS col0 FROM tab2 AS cor0
----
-10
-13
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + SUM( - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4781
SELECT + SUM ( - col1 ) AS col2 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4782
SELECT * FROM tab0 WHERE - - CAST( + col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4782
SELECT * FROM tab0 WHERE - - CAST ( + col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT MAX( - - 79 ) AS col2 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-4783
SELECT MAX ( - - 79 ) AS col2 FROM tab0
----
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT + ( - + 42 ) + + 14 + - 91 FROM tab2
----
-119
-119
-119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 * + col1 col1 FROM tab0
----
-1155
-4455
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 * + ( - - col1 ) FROM tab1 cor0
----
420
4230
700

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 BETWEEN - - col2 + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4790
SELECT ALL - CAST( NULL AS SIGNED ) - + 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - CAST ( NULL AS INTEGER ) - + 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT + + COUNT( * ) + + - 5 + - 69 AS col0 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4791
SELECT + + COUNT ( * ) + + - 5 + - 69 AS col0 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT - - 98 AS col2 FROM tab1 AS cor0
----
98

query II rowsort
SELECT + col1 AS col0, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL + 20 + - + col2 AS col2 FROM tab0
----
-27
-79
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 77 NOT BETWEEN + col2 AND + 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col2 AS col1 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4797
SELECT COUNT( * ) DIV - SUM( 41 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT COUNT ( * ) / - SUM ( 41 ) AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 4 * - 96 * + 57 col2, col1 + - col2 col2 FROM tab1 AS cor0
----
-21888
-21
-21888
-54
-21888
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * 67 FROM tab0
----
-603

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * 67 FROM tab0
----
-603

query II rowsort
SELECT DISTINCT col0, - ( col1 ) + - col0 AS col1 FROM tab1 WHERE NOT - col1 * col1 BETWEEN 43 - - - col0 AND NULL
----
51
-65
91
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT col1 DIV + 79 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4801
SELECT col1 / + 79 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4802
SELECT DISTINCT + MIN( - 15 ) AS col1, SUM( ALL col2 ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15
159

skipif mysql # not compatible
query II rowsort label-4802
SELECT DISTINCT + MIN ( - 15 ) AS col1, SUM ( ALL col2 ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT ALL - CAST( col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL - CAST ( col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + 22 * + col0 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT DISTINCT MAX( DISTINCT - - 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT MAX ( DISTINCT - - 28 ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4807
SELECT + 43, COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43
9

skipif mysql # not compatible
query II rowsort label-4807
SELECT + 43, COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
43
9

query I rowsort
SELECT - col2 * - 10 FROM tab2 AS cor0 WHERE NULL <> - 13
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4809
SELECT DISTINCT + + 95 + + - col2 DIV + + col0 col1, - col2 + - col0 col2 FROM tab1 AS cor0
----
94
-147
95
-144
95
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4809
SELECT DISTINCT + + 95 + + - col2 / + + col0 col1, - col2 + - col0 col2 FROM tab1 AS cor0
----
94
-147
95
-144
95
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ( + COUNT( * ) ) + - 16 AS col0 FROM tab0 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4810
SELECT ( + COUNT ( * ) ) + - 16 AS col0 FROM tab0 cor0
----
-13

query I rowsort
SELECT ALL - - 98 + - col1 AS col1 FROM tab1 AS cor0
----
51
84
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 37 + - col0 + 12 col0 FROM tab1 AS cor0
----
-16
-41
-89

query II rowsort
SELECT DISTINCT + + col2 AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4815
SELECT + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - col1 AS col1, col1 * 54 FROM tab2 AS cor0
----
-51
2754
-67
3618
-77
4158

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT DISTINCT col0 DIV - - ( 4 ) col2 FROM tab1
----
12
21
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT DISTINCT col0 / - - ( 4 ) col2 FROM tab1
----
12
21
22

query I rowsort
SELECT ALL ( 38 ) + col1 AS col2 FROM tab1
----
43
52
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4820
SELECT 68 DIV + col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT 68 / + col1 FROM tab2
----
0
1
1

query I rowsort
SELECT 70 - + 16 * - col1 FROM tab1 AS cor0
----
150
294
822

query I rowsort
SELECT + 94 - + - col1 AS col0 FROM tab2 AS cor0
----
145
161
171

query I rowsort
SELECT ALL + col2 - col0 * + 72 * - col2 * ( - + 37 ) AS col2 FROM tab2 AS cor0
----
-11588342
-2818489
-6819800

query I rowsort
SELECT ALL - - 68 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT col0 - - 94 + - 83 * + col2 FROM tab1
----
-4718
-5459
-7823

query I rowsort
SELECT DISTINCT + - 92 * + - 57 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - MAX( + - 90 ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - MAX ( + - 90 ) AS col2 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT DISTINCT + ( - - COUNT( * ) ) * - 54 AS col0 FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT + ( - - COUNT ( * ) ) * - 54 AS col0 FROM tab0 AS cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT DISTINCT - - 58 * col0 + + - 16 DIV + col2 col1 FROM tab0 AS cor0
----
5045
5626
870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4829
SELECT DISTINCT - - 58 * col0 + + - 16 / + col2 col1 FROM tab0 AS cor0
----
5045
5626
870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + 67 + + ( - col1 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4830
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + 67 + + ( - col1 ) > NULL
----

query I rowsort
SELECT ALL 36 * + - col2 FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT SUM( DISTINCT + 11 ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-4832
SELECT SUM ( DISTINCT + 11 ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NULL
----
11

query I rowsort
SELECT ALL - + ( 12 ) * ( col1 ) AS col2 FROM tab2 AS cor0
----
-612
-804
-924

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 86 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 88 * col2 FROM tab0
----
-4136
-8712
-880

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= NULL
----

query I rowsort
SELECT - ( ( + col0 ) ) FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col2 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL BETWEEN + - 17 AND - - 92 * + 61 * - - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4840
SELECT - COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + COUNT( * ) * - + 15 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4841
SELECT + COUNT ( * ) * - + 15 FROM tab0
----
-45

query II rowsort
SELECT ALL col0 + + col1, 80 AS col1 FROM tab2 AS cor0
----
141
80
142
80
97
80

query I rowsort
SELECT DISTINCT - - 24 + - - col1 FROM tab2 cor0
----
101
75
91

query I rowsort
SELECT DISTINCT - 50 + 91 + - 57 + 87 * - + 61 AS col0 FROM tab1 cor0
----
-5323

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 51 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - - col0 ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col2 - - - 79 FROM tab0
----
-32
-69
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) * ( + COUNT( * ) ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT MIN( ALL col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT MIN ( ALL col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4851
SELECT ( - 0 ) + + 51 / - + col0 + + col0 * + - col0 AS col1 FROM tab0 WHERE ( NOT NULL NOT IN ( + CAST( - col0 AS DECIMAL ) * - - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-4851
SELECT ( - 0 ) + + 51 / - + col0 + + col0 * + - col0 AS col1 FROM tab0 WHERE ( NOT NULL NOT IN ( + CAST ( - col0 AS REAL ) * - - col1 ) )
----

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab0 AS cor0 WHERE - ( - col2 ) IS NOT NULL
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 90 - - + col1 + col1 AS col0 FROM tab1 AS cor0
----
100
118
184

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT + - 93, + COUNT( * ) * COUNT( * ) col2 FROM tab2 AS cor0
----
-93
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4855
SELECT + - 93, + COUNT ( * ) * COUNT ( * ) col2 FROM tab2 AS cor0
----
-93
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT - col0 * + + col0 FROM tab2 WHERE NOT + col0 * + col1 <> ( + - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4858
SELECT - col0 * + + col0 FROM tab2 WHERE NOT + col0 * + col1 <> ( + - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - COUNT( * ) * + 11 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-4859
SELECT - COUNT ( * ) * + 11 AS col0 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4860
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + - col0 ), col1 col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT col2 * col2 * col2 FROM tab1 AS cor0
----
205379
314432
884736

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col1 AND 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4864
SELECT - 34 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-4864
SELECT - 34 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-34
-34
-34

query II rowsort
SELECT - + 82 AS col1, - col2 * + 70 * - col1 - - + 91 AS col2 FROM tab0 AS cor0
----
-82
14791
-82
266581
-82
7021

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT DISTINCT SUM( ALL + col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT DISTINCT SUM ( ALL + col1 ) col0 FROM tab2 AS cor0
----
195

query II rowsort
SELECT ALL + - col1 AS col1, + col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT + 54 AS col1, + 57 * - col0 - + col0 AS col1 FROM tab2 AS cor0
----
54
-2668
54
-3712
54
-4350

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 41 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col1 ) / + col0 + + col1 = - 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 24 + - col2 * + 36 * - - col2 AS col2 FROM tab1
----
-125292
-166440
-331752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT + SUM( - CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4872
SELECT + SUM ( - CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT - - MAX( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4873
SELECT - - MAX ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 * 83 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1245
7221
8051

query I rowsort
SELECT ALL - ( col0 ) * col1 * + + col1 * col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-24285184
-25250625
-5503716

query I rowsort
SELECT DISTINCT col0 + 5 AS col0 FROM tab2
----
51
69
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 70 * + col0 IS NULL
----

query I rowsort
SELECT + 23 + + - 77 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4879
SELECT + SUM( CAST( NULL AS SIGNED ) ) + + 75 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4879
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) + + 75 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT - col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT - col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < + 97 - + + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT - 99 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4882
SELECT - 99 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT 26 + + + col1 FROM tab0 AS cor0
----
107
27
47

query I rowsort
SELECT 9 FROM tab1 AS cor0 WHERE NULL IS NULL
----
9
9
9

query I rowsort
SELECT - - col1 * - - col1 + + 80 * - 53 AS col1 FROM tab0 AS cor0
----
-3799
-4239
2321

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT 42 + - - col2 DIV - col0 + - + col1 FROM tab0 AS cor0
----
-42
21
40

skipif mysql # not compatible
query I rowsort label-4886
SELECT 42 + - - col2 / - col0 + - + col1 FROM tab0 AS cor0
----
-42
21
40

query I rowsort
SELECT DISTINCT - 28 - - col0 * + 74 FROM tab0
----
1082
6410
7150

query I rowsort
SELECT DISTINCT - col2 * + + col0 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT - col0 * col2 / - 12 FROM tab0 WHERE - col2 = NULL
----

query I rowsort
SELECT - 27 * - + ( + col2 ) FROM tab2
----
1080
1566
621

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4891
SELECT + 75 * col0 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 75 * col0 * + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - + ( - - col0 ) * - - col2 AS col1 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT + 60 - 99 FROM tab2
----
-39
-39
-39

query I rowsort
SELECT ALL + ( + - 24 ) FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT - ( 80 ) * + - 37 - - col2 AS col2 FROM tab2
----
2983
3000
3018

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT ALL + + SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL + + SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT ALL - - ( + ( + - SUM( + col2 ) ) ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - - ( + ( + - SUM ( + col2 ) ) ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT - - MIN( ALL + + CAST( NULL AS SIGNED ) ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4898
SELECT DISTINCT - - MIN ( ALL + + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 58 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col0, + ( + 31 ) AS col1 FROM tab1
----
51
31
85
31
91
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT - + CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4902
SELECT - + CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT col2 AS col0, col2 * + 86 + col1 + + col2 AS col2 FROM tab2
----
23
2052
40
3557
58
5113

query III rowsort
SELECT * FROM tab0 WHERE NOT + 43 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * - col2 + 2 * col2 AS col2 FROM tab2
----
-1012
-2480
-4234

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - ( + + col1 ) AND NULL
----

query II rowsort
SELECT + col2, - 87 AS col1 FROM tab1
----
59
-87
68
-87
96
-87

query I rowsort
SELECT ( - + 84 ) FROM tab1
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 41 col2, - col1 * + + col2 AS col1 FROM tab0
----
41
-210
41
-3807
41
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT - MIN( ALL col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT - MIN ( ALL col1 ) col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + + 67 FROM tab1 AS cor0
----
20
53
62

query I rowsort
SELECT - col1 + - - col0 FROM tab1 cor0
----
37
44
80

query II rowsort
SELECT + col2 + col1 AS col2, - 34 FROM tab1
----
110
-34
115
-34
64
-34

query I rowsort
SELECT 12 + + - ( + col2 ) + col2 AS col2 FROM tab2
----
12
12
12

query I rowsort
SELECT + 37 + - - col2 - + 40 + col1 + - 76 + - col1 FROM tab2
----
-21
-39
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4917
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + ( + 40 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + ( + 40 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + + col0 + 80 AS col0 FROM tab2 cor0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4919
SELECT SUM( col1 ), + 95 col0 FROM tab0 AS cor0
----
103
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4919
SELECT SUM ( col1 ), + 95 col0 FROM tab0 AS cor0
----
103
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT DISTINCT - COUNT( * ) + - + 77 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT - COUNT ( * ) + - + 77 FROM tab0 AS cor0
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4921
SELECT DISTINCT + - col0 / col2 - - ( - CAST( NULL AS DECIMAL ) ) * - + col0 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT + - col0 / col2 - - ( - CAST ( NULL AS REAL ) ) * - + col0 AS col2 FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + + 41 >= - col1 - col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 58 + - col1 AS col0 FROM tab1
----
11
44
53

query I rowsort
SELECT - col0 * + col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 51 * - col0 AS col0 FROM tab1
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query II rowsort label-4926
SELECT ALL + COUNT( * ) AS col2, - 25 FROM tab0
----
3
-25

skipif mysql # not compatible
query II rowsort label-4926
SELECT ALL + COUNT ( * ) AS col2, - 25 FROM tab0
----
3
-25

query I rowsort
SELECT DISTINCT - 65 * + col0 FROM tab2 cor0
----
-2990
-4160
-4875

query II rowsort
SELECT DISTINCT col0, + col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + MAX( DISTINCT + 80 ) AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4929
SELECT + MAX ( DISTINCT + 80 ) AS col2 FROM tab0 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4930
SELECT CAST( 13 AS SIGNED ) DIV 70 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4930
SELECT CAST ( 13 AS INTEGER ) / 70 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 66
----

query I rowsort
SELECT DISTINCT + - ( col0 ) * + + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT + CAST( - - 67 AS SIGNED ) * - - 94 FROM tab1 AS cor0
----
6298
6298
6298

skipif mysql # not compatible
query I rowsort label-4933
SELECT + CAST ( - - 67 AS INTEGER ) * - - 94 FROM tab1 AS cor0
----
6298
6298
6298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 0 + - col2 * col0 + + 9 col1 FROM tab2 AS cor0
----
-1049
-2551
-4341

query I rowsort
SELECT + + col2 * ( - ( col1 ) ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + 20 * + col2 = ( + col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + 20 * + col2 = ( + col0 )
----
-3

query I rowsort
SELECT - 57 + + + ( - col0 ) + + - col0 FROM tab1
----
-159
-227
-239

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 BETWEEN + + 57 * col0 AND + - col0 / - 98 * - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT ( + - CAST( + 96 AS SIGNED ) ) FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-4940
SELECT ( + - CAST ( + 96 AS INTEGER ) ) FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * col1 + - 53 + ( - - 48 ) col2 FROM tab2 AS cor0
----
2137
2809
3229

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT DISTINCT - COUNT( * ) - + - 89 AS col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT - COUNT ( * ) - + - 89 AS col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT DISTINCT - - 10 - + - col1 FROM tab2 AS cor0
----
61
77
87

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col2 <= - + ( + - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT + COUNT( * ) + + MAX( 41 ) FROM tab1, tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + COUNT ( * ) + + MAX ( 41 ) FROM tab1, tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT - COUNT( - col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4947
SELECT - COUNT ( - col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT ( - col0 ) FROM tab1 WHERE NOT + ( - col1 ) < - col2
----
-51
-85
-91

query I rowsort
SELECT ALL col0 * - ( - col2 ) FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + COUNT( * ) * - 18 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COUNT ( * ) * - 18 FROM tab2
----
-54

query II rowsort
SELECT - col1 * - + 39 AS col1, + col1 AS col2 FROM tab1 cor0
----
1833
47
195
5
546
14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4952
SELECT ( + + col1 ) AS col0, + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4952
SELECT ( + + col1 ) AS col0, + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT + 23 FROM tab1 AS cor0 WHERE NOT ( 57 ) < NULL
----

query I rowsort
SELECT DISTINCT + + 21 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - MIN( ALL + - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4955
SELECT - MIN ( ALL + - col2 ) AS col1 FROM tab0
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-4956
SELECT - col2, - col0 DIV ( + col1 ) AS col1 FROM tab1
----
-59
-17
-68
-1
-96
-3

skipif mysql # not compatible
query II rowsort label-4956
SELECT - col2, - col0 / ( + col1 ) AS col1 FROM tab1
----
-59
-17
-68
-1
-96
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query II rowsort
SELECT + 80 AS col2, - 95 * - col1 FROM tab1
----
80
1330
80
4465
80
475

query I rowsort
SELECT ALL - 14 * - col1 AS col1 FROM tab1 cor0
----
196
658
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col1 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + ( - + ( col2 ) ) + col1 * + col1
----

query I rowsort
SELECT - col2 * - 73 AS col2 FROM tab2 AS cor0
----
1679
2920
4234

query I rowsort
SELECT ( col2 ) * + col2 * - - 84 FROM tab0 WHERE + + col2 + - col1 IS NOT NULL
----
185556
823284
8400

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT 10 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4964
SELECT 10 / + + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( ( 10 ) ) AS col1 FROM tab2
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab2
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT - MAX( + ( + col1 ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4967
SELECT - MAX ( + ( + col1 ) ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4968
SELECT DISTINCT col0 + - col2 - col2 + CAST( NULL AS SIGNED ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4968
SELECT DISTINCT col0 + - col2 - col2 + CAST ( NULL AS INTEGER ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 + - - 31 * col0 col2 FROM tab1
----
1581
2635
2821

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + SUM( 60 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
540

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + SUM ( 60 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
540

query I rowsort
SELECT + col2 - 68 - + + col2 * - col2 * + 26 + + - col1 FROM tab1 AS cor0
----
120177
239630
90492

query I rowsort
SELECT ALL - 51 - + + 39 * + col2 * + col1 AS col0 FROM tab2 AS cor0
----
-120171
-151605
-45798

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= + col0 + + + col2
----

query I rowsort
SELECT ALL - 86 + 71 + - 2 AS col0 FROM tab2 cor0
----
-17
-17
-17

query I rowsort
SELECT + col1 - col2 + col2 + - - 21 AS col0 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT ALL + ( + - 63 ) FROM tab0 AS cor0
----
-63
-63
-63

query III rowsort
SELECT ALL - col0, col2 AS col0, col1 * - ( col2 ) + + col0 * + col0 AS col2 FROM tab2
----
9 values hashing to 7b6f75da95dd605a6694dfc780bf91be

query II rowsort
SELECT 7 AS col1, - col1 AS col2 FROM tab0
----
7
-1
7
-21
7
-81

query III rowsort
SELECT DISTINCT 66 AS col1, - col1, - col1 AS col0 FROM tab0
----
9 values hashing to b224ac45677446be56b6e6cc8b97a950

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT MAX( ALL - 28 ) FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT MAX ( ALL - 28 ) FROM tab2 AS cor0
----
-28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 68 )
----

query I rowsort
SELECT ALL ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - COUNT( * ) * 28 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4985
SELECT - COUNT ( * ) * 28 FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT - MIN( - + 81 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4986
SELECT - MIN ( - + 81 ) FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT COUNT( * ) * - - 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
801

skipif mysql # not compatible
query I rowsort label-4987
SELECT COUNT ( * ) * - - 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
801

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT ALL col1 DIV col0 + - ( 80 ) + - col0 AS col2 FROM tab1
----
-131
-165
-171

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL col1 / col0 + - ( 80 ) + - col0 AS col2 FROM tab1
----
-131
-165
-171

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + col2 / + col0 - - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT ALL - - 30 + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - - 30 + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL + - 83 + + MAX( - - col2 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + - 83 + + MAX ( - - col2 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4993
SELECT ALL - + COUNT( * ) DIV + ( + - COUNT( * ) ) + - + MIN( - col2 ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL - + COUNT ( * ) / + ( + - COUNT ( * ) ) + - + MIN ( - col2 ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT ALL + ( - COUNT( * ) ), + 76 AS col2 FROM tab1 AS cor0
----
-3
76

skipif mysql # not compatible
query II rowsort label-4994
SELECT ALL + ( - COUNT ( * ) ), + 76 AS col2 FROM tab1 AS cor0
----
-3
76

query I rowsort
SELECT + col2 * - + col0 + - + col2 AS col1 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab0 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + - col0 + + ( - col1 ) + - ( col1 ) * + col1 FROM tab2 AS cor0
----
-2698
-4631
-6070

onlyif mysql # aggregate syntax: 
query II rowsort label-4998
SELECT ALL + COUNT( DISTINCT col2 ) AS col0, 65 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-195

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL + COUNT ( DISTINCT col2 ) AS col0, 65 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-195

query III rowsort
SELECT * FROM tab1 WHERE ( - 34 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5000
SELECT DISTINCT col0 * col0 DIV - - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT col0 * col0 / - - col0 FROM tab2
----
46
64
75

query II rowsort
SELECT - col2, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT + + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # DIV for integer division: 
query II rowsort label-5003
SELECT DISTINCT + 64 + + col1 DIV col2 AS col2, + col0 + + + col0 FROM tab0 AS cor0
----
64
194
65
30
66
174

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT + 64 + + col1 / col2 AS col2, + col0 + + + col0 FROM tab0 AS cor0
----
64
194
65
30
66
174

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * col2 - - + 56 AND NULL
----

query I rowsort
SELECT 71 - + col1 FROM tab0 AS cor0
----
-10
50
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT ALL 60 DIV + 58 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL 60 / + 58 AS col1 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + 23 IN ( - col1 - col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT COUNT( * ) * - MIN( DISTINCT + col0 ) + COUNT( - col0 ) * COUNT( * ) FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT COUNT ( * ) * - MIN ( DISTINCT + col0 ) + COUNT ( - col0 ) * COUNT ( * ) FROM tab1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT MIN( + 97 ) * - COUNT( DISTINCT + col1 ) col1 FROM tab2
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5009
SELECT MIN ( + 97 ) * - COUNT ( DISTINCT + col1 ) col1 FROM tab2
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT - AVG ( ALL + col0 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT - AVG ( ALL + col0 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 74 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 57 IS NULL
----

query I rowsort
SELECT - col2 * 59 + 83 FROM tab1
----
-3398
-3929
-5581

query I rowsort
SELECT + ( col1 ) * - col1 AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT ALL col2 * - 79 FROM tab0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - COUNT( * ) + + 25 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5016
SELECT - COUNT ( * ) + + 25 FROM tab2
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT + ( - 94 ) * - col2 + 92 DIV col2 FROM tab2
----
2166
3762
5453

skipif mysql # not compatible
query I rowsort label-5018
SELECT + ( - 94 ) * - col2 + 92 / col2 FROM tab2
----
2166
3762
5453

query III rowsort
SELECT * FROM tab2 WHERE col2 + + ( col1 ) >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 44 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT + COUNT( * ) + 31 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-5022
SELECT + COUNT ( * ) + 31 FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT - MAX( ALL 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - MAX ( ALL 46 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - COUNT( * ) + - MAX( + col0 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5024
SELECT - COUNT ( * ) + - MAX ( + col0 ) FROM tab0
----
-100

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 IN ( 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 28 * col0 - 60 FROM tab2 WHERE ( NULL ) < col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) <> ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT MIN( DISTINCT + 27 ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT MIN ( DISTINCT + 27 ) AS col0 FROM tab2
----
27

query I rowsort
SELECT ALL ( - 61 ) AS col2 FROM tab1 WHERE ( 3 ) IS NOT NULL
----
-61
-61
-61

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 5 NOT BETWEEN NULL AND + col1 + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT COUNT( DISTINCT 73 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT COUNT ( DISTINCT 73 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 15 * - 7
----

query I rowsort
SELECT + col2 + 42 AS col0 FROM tab2
----
100
65
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0 + - 32 * col2
----

query I rowsort
SELECT ALL 31 * - 18 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 9414776d0621e93c1f4a5d2345851db8

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT MAX( 86 ) AS col1 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-5036
SELECT MAX ( 86 ) AS col1 FROM tab0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT - col0 - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5037
SELECT - col0 - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 * col1 + col1 FROM tab1 AS cor0
----
-420
-4230
-700

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 88
----

query I rowsort
SELECT col2 * - ( + 79 ) FROM tab1 AS cor0 WHERE - 23 * + col2 IS NOT NULL
----
-4661
-5372
-7584

query I rowsort
SELECT ALL 97 + + col1 FROM tab1 cor0
----
102
111
144

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) >= ( NULL )
----

query I rowsort
SELECT ALL - - 7 AS col1 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT 95 FROM tab1 AS cor0 WHERE NULL IS NULL
----
95
95
95

query I rowsort
SELECT - col2 * - 54 FROM tab0 AS cor0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL MAX( DISTINCT - 95 ) AS col1 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL MAX ( DISTINCT - 95 ) AS col1 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 8 ) NOT BETWEEN col2 AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 ) > + 67 + col2
----
87
21
10

query I rowsort
SELECT 41 * col1 * col1 AS col2 FROM tab0
----
18081
269001
41

query I rowsort
SELECT DISTINCT 39 FROM tab0 WHERE NOT + 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 57 - + col1 IS NOT NULL
----

query I rowsort
SELECT + ( + col1 ) - - col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT COUNT( * ) - + COUNT( * ) * COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5054
SELECT COUNT ( * ) - + COUNT ( * ) * COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT 90 + - 79 AS col1 FROM tab1
----
11
11
11

query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col0 + 25
----

query I rowsort
SELECT ALL - col2 * + 24 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5058
SELECT col1 + - + CAST( col0 AS SIGNED ) + col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5058
SELECT col1 + - + CAST ( col0 AS INTEGER ) + col0 FROM tab1
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + 1 / 84 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 79 + col1 ) <= 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL 14 + - COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL 14 + - COUNT ( * ) FROM tab2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT DISTINCT - col0 DIV + - ( + 60 ) + + col0 * + col1 FROM tab2 AS cor0
----
2346
4929
5026

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - col0 / + - ( + 60 ) + + col0 * + col1 FROM tab2 AS cor0
----
2346
4929
5026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL + col1 / ( col0 ) + 58 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + col1 / ( col0 ) + 58 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) BETWEEN ( col1 ) AND ( col0 )
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT + 65 * - + ( - COUNT( * ) ) FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-5065
SELECT + 65 * - + ( - COUNT ( * ) ) FROM tab0
----
195

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + + col0 * col2 <= col0 OR NOT - 39 * - col1 IN ( col0 )
----
1
21
81

query I rowsort
SELECT + 60 * + 89 * + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 65 AS col1 FROM tab2 AS cor0
----
-65

query I rowsort
SELECT - col1 * - 99 FROM tab1 AS cor0
----
1386
4653
495

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT - col1 DIV + 63 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5070
SELECT - col1 / + 63 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 98 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 13, ( - col2 ) col0 FROM tab1 AS cor0
----
13
-59
13
-68
13
-96

query II rowsort
SELECT 31, col0 AS col0 FROM tab0 AS cor0
----
31
15
31
87
31
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5074
SELECT COUNT( * ) DIV + - 89 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5074
SELECT COUNT ( * ) / + - 89 FROM tab1 cor0
----
0

query I rowsort
SELECT + 27 FROM tab0 AS cor0 WHERE NOT + col1 * - 32 + col1 / col2 BETWEEN NULL AND + 42 * + ( - col0 * + col2 )
----
27
27
27

query I rowsort
SELECT ALL col0 * + + 75 * + + 7 AS col1 FROM tab2
----
24150
33600
39375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5077
SELECT DISTINCT - ( - - COUNT( * ) ) DIV - + 77 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT DISTINCT - ( - - COUNT ( * ) ) / - + 77 FROM tab1
----
0

query I rowsort
SELECT ALL - 22 * 76 FROM tab2
----
-1672
-1672
-1672

query I rowsort
SELECT + - 56 * - col0 AS col1 FROM tab1 WHERE NOT NULL < col1
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT ( + - col0 + - col2 ) IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 90 >= - ( + ( + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 < ( + 3 )
----

query I rowsort
SELECT DISTINCT - col2 * - 50 + 13 + + 37 + - 22 FROM tab2 AS cor0
----
1178
2028
2928

query III rowsort
SELECT * FROM tab1 WHERE col0 + + ( - col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT DISTINCT CAST( col2 AS SIGNED ) * 66 + 94 - col2 / + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT CAST ( col2 AS INTEGER ) * 66 + 94 - col2 / + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT - COUNT( * ) + COUNT( * ) + + - ( + COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) + + - ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 + col0 - - 24 - col1 FROM tab0
----
100
219
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT - COUNT( * ) col2 FROM tab0 WHERE - col2 * - col2 IN ( 36 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5089
SELECT - COUNT ( * ) col2 FROM tab0 WHERE - col2 * - col2 IN ( 36 )
----
0

query I rowsort
SELECT + col1 + - - col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - - col2 ) * + col2 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 + + + col0 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col0 + - 24 FROM tab1 AS cor0
----
-109
-115
-75

query I rowsort
SELECT DISTINCT + + 92 * - - col1 + - 63 + - - col0 AS col0 FROM tab1 AS cor0
----
1276
4352
482

query I rowsort
SELECT - col0 + - + col0 FROM tab2 cor0
----
-128
-150
-92

query I rowsort
SELECT ALL - ( + - col0 ) + - - ( + 71 ) AS col0 FROM tab1 AS cor0
----
122
156
162

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + 93 * COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-5097
SELECT + 93 * COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5098
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( col0 / + ( ( + 82 ) ) * - CAST( - col2 * + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5098
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( col0 / + ( ( + 82 ) ) * - CAST ( - col2 * + col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col1 + + col1 * + - ( - col1 ) + - 50 * + 7 AS col2 FROM tab0 AS cor0
----
-350
6130
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT ALL + 79 / - col0 FROM tab1 WHERE NOT ( NOT + CAST( - 1 AS SIGNED ) NOT BETWEEN ( NULL ) AND ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + 79 / - col0 FROM tab1 WHERE NOT ( NOT + CAST ( - 1 AS INTEGER ) NOT BETWEEN ( NULL ) AND ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT ALL - + MAX( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL - + MAX ( ALL - - col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

query III rowsort
SELECT * FROM tab0 WHERE - - 72 * col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT ALL COUNT( * ) * + - COUNT( * ) DIV - 92 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL COUNT ( * ) * + - COUNT ( * ) / - 92 AS col2 FROM tab2
----
0

query I rowsort
SELECT 59 * - - col2 AS col2 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT - + ( - 26 ) - - - col2 FROM tab2 cor0
----
-14
-32
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT ALL COUNT( * ) AS col0, - 21 FROM tab1 AS cor0
----
3
-21

skipif mysql # not compatible
query II rowsort label-5106
SELECT ALL COUNT ( * ) AS col0, - 21 FROM tab1 AS cor0
----
3
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col0 col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL - col2 - + - col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 57 * col0 FROM tab2
----
-2622
-3648
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT 26 * - CAST( NULL AS SIGNED ) * + ( - - 51 ) FROM tab2 WHERE NOT + - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT 26 * - CAST ( NULL AS INTEGER ) * + ( - - 51 ) FROM tab2 WHERE NOT + - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL IN ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL IN ( - col2 ) )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + SUM( - - 81 ) AS col2 FROM tab1 cor0
----
243

skipif mysql # not compatible
query I rowsort label-5114
SELECT + SUM ( - - 81 ) AS col2 FROM tab1 cor0
----
243

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 / - + 40 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( col1 IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 / + - col0 * col0 + - CAST( NULL AS SIGNED ) NOT IN ( + + col1 )
----

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 / + - col0 * col0 + - CAST ( NULL AS INTEGER ) NOT IN ( + + col1 )
----

query II rowsort
SELECT ALL col1 AS col2, col0 AS col2 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT DISTINCT + col2 DIV - 46 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + col2 / - 46 AS col1 FROM tab2
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT col1 DIV + + ( + 24 ) FROM tab2
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5121
SELECT col1 / + + ( + 24 ) FROM tab2
----
2
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - 91 col0 FROM tab1
----
4641
7735
8281

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL COUNT( ALL + 21 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL COUNT ( ALL + 21 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT + ( - - col0 ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL + ( - COUNT( - col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + ( - COUNT ( - col0 ) ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 12 + col1 + col2 + - col2 + - 81 FROM tab2 AS cor0
----
-18
-2
8

query I rowsort
SELECT DISTINCT - col0 + - 17 * - - 49 AS col0 FROM tab2 AS cor0
----
-879
-897
-908

query I rowsort
SELECT DISTINCT + + ( - 93 ) AS col1 FROM tab2 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT - + COUNT( ALL col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - + COUNT ( ALL col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + col1 + col0 - - + 90 * + + col0 FROM tab0 AS cor0
----
1446
7938
8828

query I rowsort
SELECT ALL col1 + - col0 + - + 52 FROM tab1
----
-132
-89
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - + col2 * - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5135
SELECT DISTINCT - - col1 + + - 88 + - col1 DIV + 95 col2 FROM tab0 AS cor0
----
-67
-7
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5135
SELECT DISTINCT - - col1 + + - 88 + - col1 / + 95 col2 FROM tab0 AS cor0
----
-67
-7
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT DISTINCT - col2 DIV + 69 - - 3 FROM tab0
----
2
3

skipif mysql # not compatible
query I rowsort label-5136
SELECT DISTINCT - col2 / + 69 - - 3 FROM tab0
----
2
3

query I rowsort
SELECT ALL - col0 * - col0 + 28 + col1 AS col2 FROM tab0
----
334
7618
9438

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT 6 + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT 6 + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT - 93 + + col1 * col1 * - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-103916
-218
-2837

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * + 91 + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - - col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT DISTINCT - ( - col1 ) * - CAST( NULL AS SIGNED ) + + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT - ( - col1 ) * - CAST ( NULL AS INTEGER ) + + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT ALL - - CAST( NULL AS SIGNED ) * - - ( 22 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - - CAST ( NULL AS INTEGER ) * - - ( 22 ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - - 22, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 59 * col2 AS col2 FROM tab0 cor0
----
2773
5841
590

query II rowsort
SELECT ALL col0 * col2 AS col1, - 61 + + + col1 - - col0 FROM tab0 AS cor0
----
705
35
870
47
9603
37

query I rowsort
SELECT - col2 * + + col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5149
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 WHERE + 92 + + - 8 + + CAST( - + col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 WHERE + 92 + + - 8 + + CAST ( - + col1 AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT - 34 * + - col0 FROM tab2 AS cor0
----
1564
2176
2550

query I rowsort
SELECT ALL - - ( + 51 ) FROM tab2 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + MAX( ALL + col0 ) FROM tab1 WHERE NOT NULL < + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + MAX ( ALL + col0 ) FROM tab1 WHERE NOT NULL < + + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5153
SELECT - COUNT( * ) + - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5153
SELECT - COUNT ( * ) + - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL - ( - COUNT( ALL - col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL - ( - COUNT ( ALL - col2 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 98 + 68 FROM tab1
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT CAST( NULL AS SIGNED ) * + + col1 + + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT CAST ( NULL AS INTEGER ) * + + col1 + + 20 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT DISTINCT - col2, CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5157
SELECT DISTINCT - col2, CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT DISTINCT - ( col1 ) DIV - col2 + - col2 FROM tab0
----
-46
-8
-99

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT - ( col1 ) / - col2 + - col2 FROM tab0
----
-46
-8
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5159
SELECT * FROM tab2 cor0 WHERE col0 BETWEEN + col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5159
SELECT * FROM tab2 cor0 WHERE col0 BETWEEN + col0 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 + 36 + 90 FROM tab1 AS cor0
----
35
41
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT DISTINCT - + ( - + COUNT( * ) ) + + 78 AS col2, - 27 FROM tab0 AS cor0
----
81
-27

skipif mysql # not compatible
query II rowsort label-5161
SELECT DISTINCT - + ( - + COUNT ( * ) ) + + 78 AS col2, - 27 FROM tab0 AS cor0
----
81
-27

query I rowsort
SELECT ALL + col1 + col1 + - - 45 * + col2 AS col1 FROM tab1 AS cor0
----
2665
3154
4348

query I rowsort
SELECT ALL - - col1 + - - col0 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0 WHERE 53 + - 14 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5165
SELECT + CAST( NULL AS DECIMAL ) - + 23 + + 73 + 59 + + 80 + + - col1 + - + col2 * col2 / - ( 35 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT + CAST ( NULL AS REAL ) - + 23 + + 73 + 59 + + 80 + + - col1 + - + col2 * col2 / - ( 35 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT - 21 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT - 21 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + 31 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT + SUM( DISTINCT - col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT + SUM ( DISTINCT - col1 ) AS col0 FROM tab1
----
-66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 45 * - - col2 * + ( + 27 ) * - col1 IN ( - + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT SUM( DISTINCT - + 17 ) AS col2 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-5170
SELECT SUM ( DISTINCT - + 17 ) AS col2 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT + + 56 AS col2 FROM tab0 cor0
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 46 + - 56 ) NOT IN ( 87 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT - COUNT( * ) * + + 71 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-5174
SELECT - COUNT ( * ) * + + 71 FROM tab1
----
-213

query I rowsort
SELECT ALL - 73 * + - col1 FROM tab1
----
1022
3431
365

query I rowsort
SELECT + 70 * - ( - col2 ) FROM tab2
----
1610
2800
4060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col1 FROM tab1
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + 60 ) * - col1 + col2 * - + 62 col0, 67 AS col2 FROM tab1 cor0
----
-3958
67
-6792
67
-7036
67

query I rowsort
SELECT DISTINCT - 90 * col0 AS col0 FROM tab0 AS cor0
----
-1350
-7830
-8730

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 - - + col2 * ( + - col2 ) + + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 92 * 71 AS col2 FROM tab2 AS cor0
----
-6532
-6532
-6532

query I rowsort
SELECT col1 - - col1 + col1 * ( + col1 ) FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5183
SELECT ALL + col0, col0 + - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5183
SELECT ALL + col0, col0 + - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT + COUNT( * ) AS col2, + 82 AS col1 FROM tab1 AS cor0
----
3
82

skipif mysql # not compatible
query II rowsort label-5184
SELECT + COUNT ( * ) AS col2, + 82 AS col1 FROM tab1 AS cor0
----
3
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5185
SELECT DISTINCT + col2 * CAST( - - ( 62 ) AS SIGNED ) * ( - + col2 ) DIV - col1 FROM tab1 AS cor0
----
40813
43164
6099

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + col2 * CAST ( - - ( 62 ) AS INTEGER ) * ( - + col2 ) / - col1 FROM tab1 AS cor0
----
40813
43164
6099

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + - SUM( col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5186
SELECT + - SUM ( col0 ) FROM tab0 cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-5187
SELECT 76 DIV col2 * - - col2 AS col1 FROM tab2
----
40
58
69

skipif mysql # not compatible
query I rowsort label-5187
SELECT 76 / col2 * - - col2 AS col1 FROM tab2
----
40
58
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + col1 * col0 * - + 91 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5189
SELECT - col2 DIV - 2 AS col1 FROM tab2
----
11
20
29

skipif mysql # not compatible
query I rowsort label-5189
SELECT - col2 / - 2 AS col1 FROM tab2
----
11
20
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL - 77 + + 18 + + 7 + + ( + COUNT( 24 ) ) col0 FROM tab0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5190
SELECT ALL - 77 + + 18 + + 7 + + ( + COUNT ( 24 ) ) col0 FROM tab0
----
-49

query I rowsort
SELECT ALL col1 * col1 + col1 * + - col2 FROM tab0
----
-98
231
2754

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - - 15
----

query I rowsort
SELECT - ( - ( + col2 ) ) FROM tab1 WHERE NULL IS NULL
----
59
68
96

query II rowsort
SELECT - + col0 * - 22, col0 * - 30 * - col2 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + 51 * - 8
----
1914
26100
2134
288090
330
21150

query I rowsort
SELECT + 40 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5197
SELECT - COUNT( * ) DIV - - 2 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5197
SELECT - COUNT ( * ) / - - 2 AS col2 FROM tab2
----
-1

query I rowsort
SELECT 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL col0 + + - 12 * - col0 AS col2 FROM tab0 AS cor0
----
1131
1261
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - ( 34 ) AND NULL
----

query I rowsort
SELECT - - ( - col2 ) - + 82 * col1 * - 88 AS col0 FROM tab2 AS cor0
----
367993
483414
555592

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL 79 + - - 74 + - COUNT( * ) + + + MIN( ALL + 35 ) * + 70 FROM tab1 AS cor0
----
2600

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL 79 + - - 74 + - COUNT ( * ) + + + MIN ( ALL + 35 ) * + 70 FROM tab1 AS cor0
----
2600

onlyif mysql # DIV for integer division: 
query II rowsort label-5205
SELECT - - col1 DIV ( - col0 ) + + 16 + - - 50 + + ( 1 ) AS col0, ( + + ( + 61 ) ) AS col1 FROM tab1 AS cor0
----
67
61
67
61
67
61

skipif mysql # not compatible
query II rowsort label-5205
SELECT - - col1 / ( - col0 ) + + 16 + - - 50 + + ( 1 ) AS col0, ( + + ( + 61 ) ) AS col1 FROM tab1 AS cor0
----
67
61
67
61
67
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT + 25 DIV - 81 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5206
SELECT + 25 / - 81 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT col1 + - - 6 FROM tab2
----
57
73
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT + SUM( DISTINCT + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5208
SELECT + SUM ( DISTINCT + 15 ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + ( + MIN( + col0 ) ) * - 9 AS col1 FROM tab2
----
-414

skipif mysql # not compatible
query I rowsort label-5209
SELECT + ( + MIN ( + col0 ) ) * - 9 AS col1 FROM tab2
----
-414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab0 WHERE NOT - 78 BETWEEN NULL AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - MAX( - 24 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5211
SELECT - MAX ( - 24 ) FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + col2 ) * - CAST( - - col0 AS SIGNED ), - 53 )
----

skipif mysql # not compatible
query I rowsort label-5212
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( + col2 ) * - CAST ( - - col0 AS INTEGER ), - 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - + COUNT( - - ( ( col1 ) ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5213
SELECT - + COUNT ( - - ( ( col1 ) ) ) col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + col1 + - 85 AS col0, col1 AS col0 FROM tab0
----
-4
81
-64
21
-84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT MIN( + - col2 ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5215
SELECT MIN ( + - col2 ) AS col0 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5217
SELECT ALL ( col0 ) AS col2, col2 + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-5217
SELECT ALL ( col0 ) AS col2, col2 + col1 / + col2 AS col0 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + + col1 + - col0 * + - col0 - + 60 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5220
SELECT + ( - + CAST( - 71 AS SIGNED ) ) DIV - 72 + col2 * 25 AS col2 FROM tab0 AS cor0
----
1175
2475
250

skipif mysql # not compatible
query I rowsort label-5220
SELECT + ( - + CAST ( - 71 AS INTEGER ) ) / - 72 + col2 * 25 AS col2 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT + col2 * + col2 + + + col0 * + col2 FROM tab0 AS cor0
----
19404
2914
970

query II rowsort
SELECT - 40 + + ( + - 33 ) + - col1 - 0, - 5 FROM tab0 WHERE NULL >= + col1
----

query II rowsort
SELECT DISTINCT col0 AS col0, + 26 + - 21 AS col2 FROM tab2
----
46
5
64
5
75
5

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) > ( + col2 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, - col1 + + col1 AS col1 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT + 4 AS col2 FROM tab0 WHERE NULL NOT BETWEEN - - 70 AND + col2
----

query I rowsort
SELECT ALL - col1 + + 28 FROM tab2 AS cor0
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT + SUM( DISTINCT + + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5228
SELECT + SUM ( DISTINCT + + col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT 80 + - - 76 AS col1 FROM tab1
----
156
156
156

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT - col1 * + - 47 + - col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT + SUM( ALL - - col2 ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT + SUM ( ALL - - col2 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + - col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + - col1 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT - MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5234
SELECT - MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5235
SELECT + + 25 DIV - + 88 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5235
SELECT + + 25 / - + 88 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col1 col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT col1 * + 98 * + col0 AS col1 FROM tab2
----
229908
482944
492450

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + 95 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * + 2 * + + col2 FROM tab2
----
2346
6160
7772

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL COUNT( ALL - 17 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL COUNT ( ALL - 17 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + - ( ( + + ( - col0 ) ) ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT + - COUNT( * ) * + + 13 AS col2 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + - COUNT ( * ) * + + 13 AS col2 FROM tab0 AS cor0
----
-39

query I rowsort
SELECT - ( + - 46 ) AS col1 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT ALL 62 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL 62 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 * 61 + + col2 * 33 * + col2 AS col2 FROM tab1 AS cor0
----
115178
155459
304982

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT COUNT( + - col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( + - col1 ) AS col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 col0 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 * + - 51 < + - 39
----
-13
-2194
-9704

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN - 4 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5251
SELECT - 0 col0, + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5251
SELECT - 0 col0, + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
0
NULL
0
NULL
0
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE ( ( + 17 NOT BETWEEN - + col0 + + col0 AND 83 ) )
----

query I rowsort
SELECT ALL ( + 31 ) FROM tab2
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + col2
----
0

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + col2
----
0

query I rowsort
SELECT + col0 + + - col1 AS col2 FROM tab1
----
37
44
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 46 + + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 67 col1 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT + 95 + col2 FROM tab1
----
154
163
191

query I rowsort
SELECT - col1 * col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90 / col2 * + col2, col1 col1 FROM tab0 WHERE col2 IN ( - col1, col0, - col2 * 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT + col1 + ( - + col1 ) / - - 99 + + col2 FROM tab0 AS cor0 WHERE NOT ( col0 NOT BETWEEN col1 AND 84 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT ALL - COUNT( * ) * + 27 AS col2 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL - COUNT ( * ) * + 27 AS col2 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT COUNT( * ) DIV + 39 * + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT COUNT ( * ) / + 39 * + + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 11 * + + col0 FROM tab0 AS cor0
----
-1067
-165
-957

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT - 45 DIV + col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT - 45 / + col2 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT + COUNT( - 73 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT + COUNT ( - 73 ) AS col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL - 84 * - - col1 FROM tab2 AS cor0
----
-4284
-5628
-6468

query I rowsort
SELECT ALL - 34 * - + ( - col2 ) FROM tab2 AS cor0
----
-1360
-1972
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + MAX( ALL + + 85 ) AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5271
SELECT + MAX ( ALL + + 85 ) AS col1 FROM tab0
----
85

query I rowsort
SELECT ( + col0 ) + + 98 + - + col1 * ( + col1 ) FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT ALL + 73 DIV - 74 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL + 73 / - 74 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + SUM( ALL - + 4 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5274
SELECT + SUM ( ALL - + 4 ) FROM tab0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 / - 10 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( - col0 / + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5277
SELECT + 89 DIV + - 94 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5277
SELECT + 89 / + - 94 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5278
SELECT DISTINCT CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-5278
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab0 AS cor0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT ALL + - 47 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE 72 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL AVG ( - 64 ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL AVG ( - 64 ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - + SUM( ALL 6 ) AS col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - + SUM ( ALL 6 ) AS col2 FROM tab0 AS cor0
----
-18

query II rowsort
SELECT DISTINCT + col0 + + col2 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
196
97
62
15
97
87

query I rowsort
SELECT + col2 + + + 5 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL - COUNT( * ) + - 49 + COUNT( * ) FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - COUNT ( * ) + - 49 + COUNT ( * ) FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5286
SELECT + ( + 15 ) AS col0 FROM tab1 AS cor0 WHERE col1 / - + CAST( NULL AS DECIMAL ) > - - 84
----

skipif mysql # not compatible
query I rowsort label-5286
SELECT + ( + 15 ) AS col0 FROM tab1 AS cor0 WHERE col1 / - + CAST ( NULL AS REAL ) > - - 84
----

query II rowsort
SELECT - - col2 + + 66 AS col0, - 59 FROM tab0 AS cor0
----
113
-59
165
-59
76
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT ALL - 40 DIV - ( - 58 ) + + + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - 40 / - ( - 58 ) + + + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 32 col0 FROM tab0 AS cor0
----
-11
-31
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5290
SELECT + ( col0 ) + - - col2 + + 13 + - 12, CAST( NULL AS SIGNED ) - - + 77 + col1 + + + 42 AS col1 FROM tab2 AS cor0
----
105
NULL
134
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-5290
SELECT + ( col0 ) + - - col2 + + 13 + - 12, CAST ( NULL AS INTEGER ) - - + 77 + col1 + + + 42 AS col1 FROM tab2 AS cor0
----
105
NULL
134
NULL
70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT + + MIN( - - 54 ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + + MIN ( - - 54 ) FROM tab0 AS cor0
----
54

query I rowsort
SELECT - 38 + + col2 FROM tab0
----
-28
61
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT ALL ( ( 73 ) ) - + + col2 DIV + 76 FROM tab0
----
72
73
73

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL ( ( 73 ) ) - + + col2 / + 76 FROM tab0
----
72
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL MAX( ALL - 88 ) AS col2 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL MAX ( ALL - 88 ) AS col2 FROM tab2
----
-88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 NOT BETWEEN - col0 * + - col0 AND - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 38 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT COUNT( ALL - 1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT COUNT ( ALL - 1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + + col0 * + + col2 - + col2 - - col0 * - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + - ( col0 ) - col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT col0 * + - col2 - + col1 AS col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT + col2 - - - col1 * ( + col0 ) + - col2 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col2 * col0 AND col2 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT + 11 * MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT + 11 * MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + COUNT( * ) * + + 83 FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + COUNT ( * ) * + + 83 FROM tab0 AS cor0
----
249

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 51 * col1 < NULL
----

query I rowsort
SELECT DISTINCT + ( + 23 ) * - - col1 AS col1 FROM tab0 AS cor0
----
1863
23
483

query I rowsort
SELECT ALL + ( + ( - col0 ) ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT + 25 FROM tab2, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT 13 IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT + MAX( DISTINCT - 92 ) FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-5312
SELECT + MAX ( DISTINCT - 92 ) FROM tab1
----
-92

query I rowsort
SELECT 92 * - + 71 * - 3 FROM tab0
----
19596
19596
19596

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 < - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - col1 ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - COUNT( * ) * 64 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-5316
SELECT - COUNT ( * ) * 64 FROM tab2
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-5317
SELECT ALL - col1 DIV - - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5317
SELECT ALL - col1 / - - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT 30 + - - col2 AS col2 FROM tab0
----
129
40
77

query I rowsort
SELECT col0 + 61 * col0 AS col2 FROM tab0
----
5394
6014
930

query II rowsort
SELECT ALL - col0 AS col0, - col2 + + col1 FROM tab1
----
-51
-82
-85
-54
-91
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5323
SELECT DISTINCT 36 + - 74 AS col0, + col1 * CAST( col0 AS SIGNED ) FROM tab1
----
-38
425
-38
4277
-38
714

skipif mysql # not compatible
query II rowsort label-5323
SELECT DISTINCT 36 + - 74 AS col0, + col1 * CAST ( col0 AS INTEGER ) FROM tab1
----
-38
425
-38
4277
-38
714

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT ALL - + 15 DIV - col2 + - 55 FROM tab0 cor0
----
-54
-55
-55

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - + 15 / - col2 + - 55 FROM tab0 cor0
----
-54
-55
-55

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + ( - + col2 ) + + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - + 75 - + col1 AS col0 FROM tab2 AS cor0
----
-103
-112
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL + 36 * + - CAST( + + ( - 6 ) AS SIGNED ) + + + COUNT( * ) FROM tab1 cor0
----
219

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + 36 * + - CAST ( + + ( - 6 ) AS INTEGER ) + + + COUNT ( * ) FROM tab1 cor0
----
219

query II rowsort
SELECT + col1 AS col1, ( + col0 ) AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL + - 30 * col1 - + col2 FROM tab2 AS cor0
----
-1553
-2068
-2350

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT - SUM( + 4 ) - + - ( 37 ) AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5330
SELECT - SUM ( + 4 ) - + - ( 37 ) AS col0 FROM tab2
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - - 46 col1 FROM tab0
----
133
143
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * - - col0 col0 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT + col1 + - 52 AS col0 FROM tab1
----
-38
-47
-5

query I rowsort
SELECT ALL col0 * - 38 FROM tab2
----
-1748
-2432
-2850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5335
SELECT ALL + col1 + + col0 - col2 * - - col2 * - - 67, ( + CAST( - col1 AS SIGNED ) ) + - 4 AS col2 FROM tab2 AS cor0
----
-107059
-81
-225246
-71
-35346
-55

skipif mysql # not compatible
query II rowsort label-5335
SELECT ALL + col1 + + col0 - col2 * - - col2 * - - 67, ( + CAST ( - col1 AS INTEGER ) ) + - 4 AS col2 FROM tab2 AS cor0
----
-107059
-81
-225246
-71
-35346
-55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 - + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col1 / + - 0 AS col2, col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - + ( + 12 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = + col0
----

query I rowsort
SELECT + - 14 * + 77 AS col0 FROM tab0 AS cor0
----
-1078
-1078
-1078

onlyif mysql # aggregate syntax: 
query II rowsort label-5342
SELECT - 23 AS col2, 99 * COUNT( * ) + + 73 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-23
370

skipif mysql # not compatible
query II rowsort label-5342
SELECT - 23 AS col2, 99 * COUNT ( * ) + + 73 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-23
370

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT + + 80 * - ( - 67 ) + COUNT( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + + col0 * + + col1 * + - col1 IS NOT NULL
----
5360

skipif mysql # not compatible
query I rowsort label-5343
SELECT + + 80 * - ( - 67 ) + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + + col0 * + + col1 * + - col1 IS NOT NULL
----
5360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 14, 59 col0 FROM tab1 AS cor0
----
14
59
14
59
14
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col1, col1 col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5346
SELECT - col2 AS col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5346
SELECT - col2 AS col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT ALL col1 AS col0, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - MIN( ALL + + col0 ) + + + 7 AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-5349
SELECT - MIN ( ALL + + col0 ) + + + 7 AS col2 FROM tab2
----
-39

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col2 NOT BETWEEN - col1 AND col1
----

query I rowsort
SELECT DISTINCT - col2 * + col1 + + 60 FROM tab0 AS cor0
----
-150
-3747
-39

query I rowsort
SELECT + + 74 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL - col2 + - - col1 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT CAST( NULL AS SIGNED ) + ( 83 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT CAST ( NULL AS INTEGER ) + ( 83 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 59 * + ( - ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT ALL 60 * - ( + col0 ) + - col0 FROM tab0 AS cor0
----
-5307
-5917
-915

query I rowsort
SELECT + col2 + + col1 * - + 42 AS col2 FROM tab1 AS cor0
----
-151
-1906
-492

query I rowsort
SELECT - + col2 + + ( + 21 ) * + col0 AS col1 FROM tab1 AS cor0
----
1726
1843
975

query I rowsort
SELECT ALL - col0 + + - col0 FROM tab0 AS cor0
----
-174
-194
-30

query I rowsort
SELECT ALL 57 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT + CAST( NULL AS SIGNED ) + - 64 * + COUNT( * ) / 74 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT + CAST ( NULL AS INTEGER ) + - 64 * + COUNT ( * ) / 74 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 44 AS col0 FROM tab1 AS cor0
----
103
112
140

query I rowsort
SELECT DISTINCT + - 81 * - - 70 * - col1 + - col1 AS col2 FROM tab0 AS cor0
----
119049
459189
5669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT - 87 * - - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5365
SELECT - 87 * - - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col0 * + col2 FROM tab0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + 45 * COUNT( * ) AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + 45 * COUNT ( * ) AS col1 FROM tab1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL - COUNT( * ) * 71 AS col2 FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - COUNT ( * ) * 71 AS col2 FROM tab1
----
-213

query I rowsort
SELECT DISTINCT - col2 - + ( - col2 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab0 WHERE NOT ( NULL BETWEEN 39 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT - 3 DIV + 19 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT - 3 / + 19 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5372
SELECT ALL + ( col2 ) DIV - col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + ( col2 ) / - col1 FROM tab0
----
-99
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5373
SELECT CAST( NULL AS DECIMAL ) - + 80 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT CAST ( NULL AS REAL ) - + 80 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5374
SELECT - ( col1 ) - + - col0 DIV 96 * + - ( + 31 ) col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5374
SELECT - ( col1 ) - + - col0 / 96 * + - ( + 31 ) col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5376
SELECT col0 - col0 DIV col0 * - - col2 AS col0 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-5376
SELECT col0 - col0 / col0 * - - col2 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NOT col0 >= col1 * 17 + - col0 + - 26 * - col1 * + col1 / 69 * col1
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5378
SELECT + - col0 AS col0, CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-5378
SELECT + - col0 AS col0, CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT COUNT( * ) * + + 60 FROM tab0 AS cor0 WHERE NOT NULL = col2
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT COUNT ( * ) * + + 60 FROM tab0 AS cor0 WHERE NOT NULL = col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5381
SELECT DISTINCT * FROM tab0 WHERE - + CAST( + col0 AS SIGNED ) - + + col1 + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5381
SELECT DISTINCT * FROM tab0 WHERE - + CAST ( + col0 AS INTEGER ) - + + col1 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5382
SELECT ALL + 70 + 14 * + CAST( NULL AS SIGNED ) + col1 * 28 FROM tab2 WHERE - + 83 - - + 50 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL + 70 + 14 * + CAST ( NULL AS INTEGER ) + col1 * 28 FROM tab2 WHERE - + 83 - - + 50 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT DISTINCT 37 DIV 96 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT 37 / 96 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab0 WHERE NULL < + col0 / + 69
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab0 WHERE NULL < + col0 / + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + COUNT( - - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5385
SELECT + COUNT ( - - col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT ALL + ( - 17 ) col2, - COUNT( * ) AS col2 FROM tab1 cor0
----
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5386
SELECT ALL + ( - 17 ) col2, - COUNT ( * ) AS col2 FROM tab1 cor0
----
-17
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, 9 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 66 * + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col1 col1 FROM tab1
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 77 col1, + col2 * + - col2 FROM tab2
----
77
-1600
77
-3364
77
-529

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5391
SELECT MAX( ALL - col1 ) DIV + COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5391
SELECT MAX ( ALL - col1 ) / + COUNT ( * ) FROM tab2
----
-17

query II rowsort
SELECT col2, + 83 FROM tab1
----
59
83
68
83
96
83

query I rowsort
SELECT ALL ( + + 24 ) * - col2 AS col1 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT DISTINCT + 75 + col2 FROM tab1
----
134
143
171

query I rowsort
SELECT col1 + 40 - + - 23 AS col2 FROM tab2 AS cor0
----
114
130
140

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ALL col1 + - - col2 * col0 DIV 28 * + 2 AS col0 FROM tab2 AS cor0
----
125
259
377

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL col1 + - - col2 * col0 / 28 * + 2 AS col0 FROM tab2 AS cor0
----
125
259
377

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - + 89 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( + + 97 ) * - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * - col0 + + + 57 FROM tab0 WHERE col0 - + 70 + col0 + 25 + 48 * col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col2 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT DISTINCT + + 57 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + + 57 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + - col2 FROM tab2 cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT ALL + MAX( DISTINCT - - 1 ) - + + 39 * 40 FROM tab0
----
-1559

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + MAX ( DISTINCT - - 1 ) - + + 39 * 40 FROM tab0
----
-1559

query I rowsort
SELECT DISTINCT 28 * + col2 AS col0 FROM tab2
----
1120
1624
644

query I rowsort
SELECT - 51 FROM tab1 WHERE col0 + - + col1 IS NOT NULL
----
-51
-51
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT ALL COUNT( * ) DIV + + 50 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL COUNT ( * ) / + + 50 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT CAST( NULL AS SIGNED ) / + 14 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT CAST ( NULL AS INTEGER ) / + 14 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * ( - col0 ) col2 FROM tab0
----
-4698
-5238
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL MIN( col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL MIN ( col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL + 0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5411
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) < - 47 + col1
----

skipif mysql # not compatible
query III rowsort label-5411
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < - 47 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT COUNT( 49 ) * 75 AS col2 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5412
SELECT COUNT ( 49 ) * 75 AS col2 FROM tab2 AS cor0
----
225

query I rowsort
SELECT DISTINCT - - 54 * col2 FROM tab0 AS cor0
----
2538
5346
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + ( - 21 ) - + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1, 84 col2 FROM tab1 AS cor0
----
14
84
47
84
5
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - COUNT( ALL + 1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5417
SELECT - COUNT ( ALL + 1 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL + + 87 - + 20 * COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 + + 19 < col1
----
27

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL + + 87 - + 20 * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 + + 19 < col1
----
27

onlyif mysql # DIV for integer division: 
query III rowsort label-5419
SELECT col2, col1 + - + col1 DIV + + col1 col2, + - 9 AS col0 FROM tab1 AS cor0
----
9 values hashing to 72e66f37222ebadb23090eb0252612b7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5419
SELECT col2, col1 + - + col1 / + + col1 col2, + - 9 AS col0 FROM tab1 AS cor0
----
9 values hashing to 72e66f37222ebadb23090eb0252612b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col0, - col1 + + 39 AS col0 FROM tab1 AS cor0
----
14
25
47
-8
5
34

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT + 29, COUNT( * ) AS col2 FROM tab2 AS cor0
----
29
3

skipif mysql # not compatible
query II rowsort label-5421
SELECT + 29, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
29
3

query I rowsort
SELECT ALL - 0 * 63 + - col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT + 29 + 6 * - COUNT( * ) FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-5423
SELECT + 29 + 6 * - COUNT ( * ) FROM tab2 cor0
----
11

query III rowsort
SELECT * FROM tab2 WHERE 10 / + col2 IS NULL
----

query I rowsort
SELECT ALL + 20 FROM tab0, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5426
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1, 92 * col0 AS col1 FROM tab0
----
NULL
1380
NULL
8004
NULL
8924

skipif mysql # not compatible
query II rowsort label-5426
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1, 92 * col0 AS col1 FROM tab0
----
NULL
1380
NULL
8004
NULL
8924

query I rowsort
SELECT ALL - 9 + col0 FROM tab2
----
37
55
66

query II rowsort
SELECT - + 17 AS col0, - col1 FROM tab0 WHERE NULL IS NULL
----
-17
-1
-17
-21
-17
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT + + 1 + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + + 1 + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT - col0 + + + 56 + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-21
58
88

query I rowsort
SELECT ALL ( - 0 ) + col2 FROM tab0 AS cor0
----
10
47
99

query II rowsort
SELECT DISTINCT - col2 + - col0, col1 AS col0 FROM tab2 AS cor0
----
-104
77
-133
67
-69
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 * col1 + - + col1 + col0 col0 FROM tab1 AS cor0
----
-36045
-36377
-389163

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <> - ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL + ( + col0 ) * - CAST( NULL AS SIGNED ) + - - col0 + + - col2 * col2 + + col2 + + col1 + - 43 + - col0 * + - col1 + col0 + - CAST( - col1 AS SIGNED ) * - ( + col0 ) / + + col0 * + 26 - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + ( + col0 ) * - CAST ( NULL AS INTEGER ) + - - col0 + + - col2 * col2 + + col2 + + col1 + - 43 + - col0 * + - col1 + col0 + - CAST ( - col1 AS INTEGER ) * - ( + col0 ) / + + col0 * + 26 - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5437
SELECT ALL CAST( col1 AS SIGNED ) + - 75 + col2 / - 55, + col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT - col2 <= - col1 / - - col0 )
----

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL CAST ( col1 AS INTEGER ) + - 75 + col2 / - 55, + col2 AS col2 FROM tab0 AS cor0 WHERE ( NOT - col2 <= - col1 / - - col0 )
----

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= col2
----

query I rowsort
SELECT ALL + 8 * + col0 AS col0 FROM tab1
----
408
680
728

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5441
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5441
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT + 14 DIV - 15 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT + 14 / - 15 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT + 91 * - SUM( ALL + col0 ) * 44 AS col2 FROM tab0
----
-796796

skipif mysql # not compatible
query I rowsort label-5443
SELECT + 91 * - SUM ( ALL + col0 ) * 44 AS col2 FROM tab0
----
-796796

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - + col1 ) AS col1, - 22 * + col0 col1 FROM tab2
----
-51
-1012
-67
-1650
-77
-1408

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT - COUNT( * ) * + + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5445
SELECT - COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL < - 21
----

query II rowsort
SELECT + col0 * + + col0 AS col2, col1 FROM tab2 cor0
----
2116
51
4096
77
5625
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 col1 FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + - COUNT( * ) AS col0 FROM tab1 WHERE NOT - - col1 / - col1 + ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - - col1 / - col1 + ( - col2 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 * 19 FROM tab2
----
-1102
-437
-760

query I rowsort
SELECT DISTINCT + 21 FROM tab2, tab1 AS cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5452
SELECT - + CAST( + CAST( - + col2 AS SIGNED ) AS SIGNED ), col1 col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5452
SELECT - + CAST ( + CAST ( - + col2 AS INTEGER ) AS INTEGER ), col1 col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + 77 + - 40 AS col2 FROM tab2 AS cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL + + COUNT( ALL col0 ) + - CAST( SUM( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + + COUNT ( ALL col0 ) + - CAST ( SUM ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 72 AND - col2 + + col1 + 51 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + - 42
----

skipif mysql # not compatible
query I rowsort label-5456
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + - 42
----

query I rowsort
SELECT + ( - - ( - - ( + 58 ) ) ) * + - col1 FROM tab0 AS cor0
----
-1218
-4698
-58

query I rowsort
SELECT ALL + - col1 * - + 76 FROM tab2 cor0
----
3876
5092
5852

query I rowsort
SELECT + col1 * + - 58 * + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-150858
-260362
-343882

query II rowsort
SELECT ALL col0 AS col1, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT - COUNT( DISTINCT - - 68 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5461
SELECT - COUNT ( DISTINCT - - 68 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) FROM tab0
----
15
87
97

query II rowsort
SELECT ALL + + 46 + + col0 AS col2, col0 - + - col2 * col0 + - col2 / + + col2 * + - col1 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5464
SELECT * FROM tab0 WHERE - col1 IN ( - + CAST( NULL AS SIGNED ), - col1 * - + col1 )
----

skipif mysql # not compatible
query III rowsort label-5464
SELECT * FROM tab0 WHERE - col1 IN ( - + CAST ( NULL AS INTEGER ), - col1 * - + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 23 ) col2 FROM tab2
----
-23
-23
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5466
SELECT - CAST( NULL AS DECIMAL ) * col0 * + ( + + col1 ) / - col1 + - 46 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5466
SELECT - CAST ( NULL AS REAL ) * col0 * + ( + + col1 ) / - col1 + - 46 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT 51 * + + col2 + + + ( + col2 ) * - col2 * + col1 FROM tab2
----
-121160
-222430
-25806

query I rowsort
SELECT ALL 84 + - - col1 * - + col2 * + + col2 FROM tab0
----
-178845
-2016
-9717

query I rowsort
SELECT + 62 + col1 + col1 FROM tab2
----
164
196
216

query II rowsort
SELECT DISTINCT col0 AS col1, ( - col0 ) AS col1 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5472
SELECT ALL - - 68 AS col2, COUNT( * ) FROM tab2 cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-5472
SELECT ALL - - 68 AS col2, COUNT ( * ) FROM tab2 cor0
----
68
3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE col0 - 50 IS NOT NULL
----
10
47
99

query II rowsort
SELECT DISTINCT + + col2, col0 + + 41 AS col1 FROM tab2 AS cor0
----
23
87
40
105
58
116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5475
SELECT ( col1 ) * - col2 * + - col1 * - + col1 AS col1, - CAST( + 52 AS SIGNED ) FROM tab2
----
-17444254
-52
-18261320
-52
-3050973
-52

skipif mysql # not compatible
query II rowsort label-5475
SELECT ( col1 ) * - col2 * + - col1 * - + col1 AS col1, - CAST ( + 52 AS INTEGER ) FROM tab2
----
-17444254
-52
-18261320
-52
-3050973
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5476
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) + col0 - 40 * - 32 / - + 82 * + ( col0 ) * + col0 >= NULL
----

skipif mysql # not compatible
query III rowsort label-5476
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) + col0 - 40 * - 32 / - + 82 * + ( col0 ) * + col0 >= NULL
----

query I rowsort
SELECT col1 - - - ( - col2 ) FROM tab0
----
100
128
31

query I rowsort
SELECT ALL 4 + 33 AS col2 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT + - 24 FROM tab1 cor0
----
-24

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 90 * - - col2 AS col2 FROM tab0 AS cor0
----
4230
8910
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT - col1 * - col2 FROM tab0 cor0 WHERE NOT + 85 + + col1 / + col0 NOT IN ( + col0, - col2, 16 * - CAST( 51 AS SIGNED ) + - - 36 + col2 )
----

skipif mysql # not compatible
query I rowsort label-5482
SELECT - col1 * - col2 FROM tab0 cor0 WHERE NOT + 85 + + col1 / + col0 NOT IN ( + col0, - col2, 16 * - CAST ( 51 AS INTEGER ) + - - 36 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT CAST( - MIN( DISTINCT - 10 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5483
SELECT CAST ( - MIN ( DISTINCT - 10 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5484
SELECT - COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5484
SELECT - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NOT 76 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT COUNT( DISTINCT + 97 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT COUNT ( DISTINCT + 97 ) FROM tab2
----
1

query II rowsort
SELECT DISTINCT col2 AS col1, col0 * - col0 AS col0 FROM tab0
----
10
-7569
47
-225
99
-9409

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN col1 / + 8 + + col1 - ( + 47 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 * col1 + + - 65 AS col2, 56 col0 FROM tab2 AS cor0
----
-2411
56
-3147
56
-3607
56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 14 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5493
SELECT + ( - - col2 ) * ( col1 ) DIV col0 + 88 AS col2 FROM tab2 AS cor0
----
113
136
139

skipif mysql # not compatible
query I rowsort label-5493
SELECT + ( - - col2 ) * ( col1 ) / col0 + 88 AS col2 FROM tab2 AS cor0
----
113
136
139

query I rowsort
SELECT DISTINCT ( 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT - - col1 * 14 * - col0 * + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT - - col1 * 14 * - col0 * + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT + SUM( + 85 ) FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5496
SELECT + SUM ( + 85 ) FROM tab2 AS cor0
----
255

query I rowsort
SELECT + 45 * + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-31725
-39150
-432135

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + col2 >= + 40
----

query I rowsort
SELECT + 36 + - col1 AS col0 FROM tab2
----
-15
-31
-41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 22 BETWEEN NULL AND + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - COUNT( * ) + 76 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-5501
SELECT - COUNT ( * ) + 76 FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT CAST( 77 AS SIGNED ) AS col2 FROM tab0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( 77 AS INTEGER ) AS col2 FROM tab0
----
77
77
77

query I rowsort
SELECT 56 + ( 57 ) AS col2 FROM tab2
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + SUM( ALL col2 ) * + 73 FROM tab0 WHERE NOT + col2 BETWEEN col1 AND col1
----
11388

skipif mysql # not compatible
query I rowsort label-5504
SELECT + SUM ( ALL col2 ) * + 73 FROM tab0 WHERE NOT + col2 BETWEEN col1 AND col1
----
11388

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT COUNT( * ) * 71 AS col1 FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-5506
SELECT COUNT ( * ) * 71 AS col1 FROM tab0
----
213

query I rowsort
SELECT 17 * + col1 AS col2 FROM tab1
----
238
799
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col1 col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT 23 + - col0 * col0 FROM tab2
----
-2093
-4073
-5602

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT 60 + COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5511
SELECT 60 + COUNT ( * ) FROM tab0
----
63

query I rowsort
SELECT - 85 * - ( + col1 ) FROM tab0
----
1785
6885
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT DISTINCT 13 + CAST( 27 AS SIGNED ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT 13 + CAST ( 27 AS INTEGER ) FROM tab0
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) - 7 col1 FROM tab2
----
39
57
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5515
SELECT ALL * FROM tab1 WHERE col1 - + CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5515
SELECT ALL * FROM tab1 WHERE col1 - + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----

query I rowsort
SELECT - 48 - col0 AS col2 FROM tab2
----
-112
-123
-94

query I rowsort
SELECT ALL col1 / col0 FROM tab2 WHERE NOT NULL BETWEEN ( col2 * col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - MIN( ALL 58 ) AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-5518
SELECT - MIN ( ALL 58 ) AS col1 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT 1 + + COUNT( * ) AS col0 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-5519
SELECT 1 + + COUNT ( * ) AS col0 FROM tab1
----
4

query I rowsort
SELECT col1 * col2 - - ( 60 ) FROM tab0
----
159
270
3867

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) NOT IN ( 59 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT + MIN( + col2 ) - - COUNT( * ) * - ( 97 ) FROM tab2 AS cor0
----
-268

skipif mysql # not compatible
query I rowsort label-5522
SELECT + MIN ( + col2 ) - - COUNT ( * ) * - ( 97 ) FROM tab2 AS cor0
----
-268

query I rowsort
SELECT ALL ( 78 ) * + col2 AS col1 FROM tab2 AS cor0
----
1794
3120
4524

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT DISTINCT 9 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL MIN( DISTINCT + 15 ) - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL MIN ( DISTINCT + 15 ) - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( col0 ) BETWEEN + 12 * 51 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5527
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( col0 ) BETWEEN + 12 * 51 AND NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT - CAST( NULL AS SIGNED ) * - ( COUNT( * ) * + 56 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT - CAST ( NULL AS INTEGER ) * - ( COUNT ( * ) * + 56 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col0 FROM tab1 AS cor0
----
29
29
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT + MIN( ALL col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT + MIN ( ALL col0 ) AS col1 FROM tab0 cor0
----
15

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + 10 NOT BETWEEN ( col1 ) AND col1 + ( 21 )
----
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < + col0 * col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT MIN( DISTINCT - + ( 40 ) ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT MIN ( DISTINCT - + ( 40 ) ) FROM tab0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab2
----
55
55
55

query I rowsort
SELECT - 50 FROM tab0 WHERE NOT ( col2 * + col1 ) NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT col2 + + 95 FROM tab2 WHERE NOT + col2 IN ( + 42 )
----
118
135
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT COUNT( * ) * - - 9 * - COUNT( * ) AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5538
SELECT COUNT ( * ) * - - 9 * - COUNT ( * ) AS col0 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - COUNT( * ) * + + 59 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-5539
SELECT - COUNT ( * ) * + + 59 FROM tab0
----
-177

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT - col1 = + col0
----
-14
-47
-5

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( 74 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col1 FROM tab0 cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT MAX( DISTINCT col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT MAX ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 1 < ( - 33 )
----

query I rowsort
SELECT + col2 + 3 FROM tab1
----
62
71
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5546
SELECT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5546
SELECT + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5547
SELECT MIN( + - 44 ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5547
SELECT MIN ( + - 44 ) FROM tab0 AS cor0
----
-44

query I rowsort
SELECT ALL + ( - ( + col2 ) ) * - col2 + - 73 FROM tab2 AS cor0
----
1527
3291
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + col0 col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 * + col1 )
----

query I rowsort
SELECT + col1 * ( - + 35 ) - - 56 AS col1 FROM tab0 AS cor0
----
-2779
-679
21

query I rowsort
SELECT - col2 * + - col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + ( ( + + 90 ) ) + + MIN( - col1 ) AS col2 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-5554
SELECT + ( ( + + 90 ) ) + + MIN ( - col1 ) AS col2 FROM tab1
----
43

query I rowsort
SELECT 40 + 96 AS col2 FROM tab0
----
136
136
136

query I rowsort
SELECT - ( col0 ) + 56 FROM tab2
----
-19
-8
10

query I rowsort
SELECT DISTINCT col0 + + 84 - - col0 FROM tab0
----
114
258
278

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL MAX( 19 ) * - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL MAX ( 19 ) * - COUNT ( * ) FROM tab0
----
-57

query I rowsort
SELECT DISTINCT col0 + 0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT ALL MAX( col1 ) + COUNT( * ) FROM tab2 WHERE NOT NULL <= CAST( - 33 AS SIGNED ) * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL MAX ( col1 ) + COUNT ( * ) FROM tab2 WHERE NOT NULL <= CAST ( - 33 AS INTEGER ) * - col2
----
NULL

query I rowsort
SELECT DISTINCT - 73 + - col2 FROM tab1 AS cor0
----
-132
-141
-169

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT col1 - - - col0 + + col0 + - col0 * + col1 * + col0 FROM tab1 AS cor0
----
-36120
-36400
-389160

onlyif mysql # DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT - col2 DIV - - 47 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT - col2 / - - 47 FROM tab1
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT - col0 - CAST( NULL AS SIGNED ) * col1 FROM tab2 WHERE NOT + - ( + col2 ) BETWEEN ( + + col0 ) AND ( NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT - col0 - CAST ( NULL AS INTEGER ) * col1 FROM tab2 WHERE NOT + - ( + col2 ) BETWEEN ( + + col0 ) AND ( NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT - - MAX( DISTINCT - col0 ) AS col2 FROM tab1 WHERE NOT + + 4 IS NULL
----
-51

skipif mysql # not compatible
query I rowsort label-5566
SELECT - - MAX ( DISTINCT - col0 ) AS col2 FROM tab1 WHERE NOT + + 4 IS NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5568
SELECT DISTINCT - 74 AS col2, + CAST( NULL AS SIGNED ) / + MAX( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-74
NULL

skipif mysql # not compatible
query II rowsort label-5568
SELECT DISTINCT - 74 AS col2, + CAST ( NULL AS INTEGER ) / + MAX ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
-74
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5569
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5569
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 25 ) FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT + MAX( DISTINCT - - 85 ) FROM tab2 cor0
----
85

skipif mysql # not compatible
query I rowsort label-5571
SELECT + MAX ( DISTINCT - - 85 ) FROM tab2 cor0
----
85

query I rowsort
SELECT ALL 78 + - col1 AS col1 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN - col1 * col0 AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT + - 81 DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5573
SELECT + - 81 / - col1 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT ALL - 21, + col0 AS col1 FROM tab2
----
-21
46
-21
64
-21
75

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE + col0 / + 68 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5577
SELECT col0 AS col1, - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5577
SELECT col0 AS col1, - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT DISTINCT col0, + 3 AS col1 FROM tab1
----
51
3
85
3
91
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 93 col2 FROM tab2 AS cor0
----
116
133
151

query I rowsort
SELECT DISTINCT - - 0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5581
SELECT DISTINCT col0 FROM tab1 WHERE ( + - CAST( NULL AS DECIMAL ) * + + 72 ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT col0 FROM tab1 WHERE ( + - CAST ( NULL AS REAL ) * + + 72 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5582
SELECT * FROM tab1 WHERE + + 76 + CAST( col1 AS DECIMAL ) + + col2 + + + ( - col1 ) / + 89 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5582
SELECT * FROM tab1 WHERE + + 76 + CAST ( col1 AS REAL ) + + col2 + + + ( - col1 ) / + 89 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 WHERE + ( col2 ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5584
SELECT DISTINCT - col2 + + - col2 DIV col2 AS col0 FROM tab2 cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - col2 + + - col2 / col2 AS col0 FROM tab2 cor0
----
-24
-41
-59

query I rowsort
SELECT - 67 + + 66 - - - col1 AS col2 FROM tab2 cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + COUNT( * ) + + COUNT( - col0 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + COUNT ( * ) + + COUNT ( - col0 ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL - 81 + + - 62, + col0 AS col2 FROM tab1 AS cor0
----
-143
51
-143
85
-143
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT DISTINCT + col2 DIV - col2 + + - col0 DIV + ( 39 ) + - + 24 AS col2 FROM tab0 AS cor0
----
-25
-27

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT + col2 / - col2 + + - col0 / + ( 39 ) + - + 24 AS col2 FROM tab0 AS cor0
----
-25
-27

query I rowsort
SELECT DISTINCT - 92 * - col0 * + col0 FROM tab2 AS cor0
----
194672
376832
517500

query I rowsort
SELECT + col0 + - - 63 + - - col0 * - col1 FROM tab0 AS cor0
----
-1137
-1677
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE + col2 * + - col1 NOT BETWEEN col1 AND ( + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE + col2 * + - col1 NOT BETWEEN col1 AND ( + col2 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5593
SELECT + - MIN( + col0 ) AS col0, 85 + - 69 * - 29 + + - SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
-51
1863

skipif mysql # not compatible
query II rowsort label-5593
SELECT + - MIN ( + col0 ) AS col0, 85 + - 69 * - 29 + + - SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
-51
1863

query I rowsort
SELECT - 71 FROM tab1 WHERE NULL IN ( - + 92 )
----

query I rowsort
SELECT DISTINCT - col1 + + + 66 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-1
-11
15

query I rowsort
SELECT - col2 * + - col0 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query