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 II rowsort label-5597
SELECT 98, - 44 FROM tab1 WHERE + col0 - - + CAST( NULL AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query II rowsort label-5597
SELECT 98, - 44 FROM tab1 WHERE + col0 - - + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - 43 * - COUNT( * ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - 43 * - COUNT ( * ) FROM tab2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT ALL + 57 / + col1 * CAST( NULL AS SIGNED ) * + + col2 / + col0 + - 68 * - ( + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + 57 / + col1 * CAST ( NULL AS INTEGER ) * + + col2 / + col0 + - 68 * - ( + col0 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT DISTINCT ( + - 20 ) DIV - - ( + 75 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT ( + - 20 ) / - - ( + 75 ) FROM tab1
----
0

query I rowsort
SELECT ALL - col1 + - 30 FROM tab0 AS cor0
----
-111
-31
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 - + col0 col2 FROM tab1 AS cor0
----
-52
-86
-92

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5606
SELECT + COUNT ( * ) / + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

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

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

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

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

query II rowsort
SELECT ALL col1 AS col1, col0 * + 58 * - col0 FROM tab2
----
51
-122728
67
-326250
77
-237568

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT SUM( + 55 ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-5611
SELECT SUM ( + 55 ) FROM tab1
----
165

query I rowsort
SELECT ALL col0 + + 17 FROM tab0
----
104
114
32

query I rowsort
SELECT col1 * + - 81 AS col1 FROM tab0
----
-1701
-6561
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT col0 + - - 47 / + - ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT col0 + - - 47 / + - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 91 = - - 75
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5619
SELECT + MIN( 65 ) DIV + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5619
SELECT + MIN ( 65 ) / + COUNT ( * ) FROM tab2
----
21

query I rowsort
SELECT ALL col0 + 61 AS col1 FROM tab0
----
148
158
76

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5622
SELECT ALL + - 23 - - - 7 * - col2 DIV col2 DIV CAST( col0 AS SIGNED ) col2, col0 + - - col2 + + col2 FROM tab2 AS cor0
----
-23
144
-23
191
-23
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5622
SELECT ALL + - 23 - - - 7 * - col2 / col2 / CAST ( col0 AS INTEGER ) col2, col0 + - - col2 + + col2 FROM tab2 AS cor0
----
-23
144
-23
191
-23
92

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - 18 > - - 51
----

query I rowsort
SELECT DISTINCT + col2 + 63 * col2 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + 27 )
----

query I rowsort
SELECT DISTINCT + - col2 - + + 46 AS col2 FROM tab0 AS cor0
----
-145
-56
-93

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

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

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE + col1 BETWEEN + col1 + - 71 + - col2 AND NULL AND NOT NULL IS NULL
----

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

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

query I rowsort
SELECT + - ( ( col1 ) ) / col0 + ( - - col2 ) + + col1 * - 2 * col2 FROM tab1 cor0 WHERE ( NULL ) >= - 86
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - - col0 * col1, - 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5632
SELECT - 29 + - + col1 DIV - col1 + + col1 + + col1 + + col1 + col2 FROM tab2 AS cor0
----
148
231
243

skipif mysql # not compatible
query I rowsort label-5632
SELECT - 29 + - + col1 / - col1 + + col1 + + col1 + + col1 + col2 FROM tab2 AS cor0
----
148
231
243

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

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

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

query I rowsort
SELECT ALL col0 - + col2 * col1 * 54 AS col2 FROM tab2
----
-166256
-209769
-63296

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL ( + CAST( - col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5639
SELECT ALL - + col2 DIV - 71 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - + col2 / - 71 AS col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - SUM( + - 93 ) FROM tab2 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5640
SELECT - SUM ( + - 93 ) FROM tab2 AS cor0
----
279

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

query I rowsort
SELECT - col1 * col2 * - - 70 AS col1 FROM tab2 AS cor0
----
-215600
-272020
-82110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5643
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * - MIN( ALL 61 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + - CAST ( NULL AS REAL ) * - MIN ( ALL 61 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 23 NOT IN ( 84 * - col2 - - - col1, col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5645
SELECT 99 AS col2, + 39 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
99
117

skipif mysql # not compatible
query II rowsort label-5645
SELECT 99 AS col2, + 39 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
99
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - + COUNT( ALL + 28 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5646
SELECT - + COUNT ( ALL + 28 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT DISTINCT + 7 DIV - col1 + ( - col0 ) * + + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-5648
SELECT DISTINCT + 7 / - col1 + ( - col0 ) * + + col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

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

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

query I rowsort
SELECT 31 + - 16 FROM tab2
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT DISTINCT - col0 FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT - col0 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col2, col2, - + col2 / + + col2, - + col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5655
SELECT ALL + CAST( + SUM( - - 7 ) AS SIGNED ) AS col2 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL + CAST ( + SUM ( - - 7 ) AS INTEGER ) AS col2 FROM tab2
----
21

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE - col1 < 53 * col2
----
51
85
91

query I rowsort
SELECT DISTINCT - 75 + - 23 - col0 * - col2 AS col1 FROM tab1
----
4798
4917
6090

query I rowsort
SELECT ALL - 36 + + - 58 + col1 FROM tab1 AS cor0
----
-47
-80
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - 42 + - SUM( DISTINCT - + col2 ) + - 33 + + - 89 col2 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5659
SELECT DISTINCT - 42 + - SUM ( DISTINCT - + col2 ) + - 33 + + - 89 col2 FROM tab0 AS cor0
----
-8

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT 44 * - + COUNT( * ) * 20 - + + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
-2649

skipif mysql # not compatible
query I rowsort label-5661
SELECT 44 * - + COUNT ( * ) * 20 - + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
-2649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5662
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5662
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + MIN( ALL col0 ) + + 13 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5663
SELECT + MIN ( ALL col0 ) + + 13 FROM tab2 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT ALL col1 + - col1 * col2 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL col1 + - col1 * col2 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 28 * col1 FROM tab1 AS cor0
----
1316
140
392

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

query I rowsort
SELECT ALL - - 91 AS col0 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - col0 - + 66 AS col1 FROM tab1 AS cor0
----
-117
-151
-157

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

query I rowsort
SELECT col1 * 5 FROM tab0
----
105
405
5

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

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

query I rowsort
SELECT col2 * + 62 AS col2 FROM tab0
----
2914
6138
620

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL MAX( + 44 ) FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL MAX ( + 44 ) FROM tab2 AS cor0
----
44

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col2, - col0 + col0 FROM tab1 cor0
----
59
0
68
0
96
0

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

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

query I rowsort
SELECT + 46 * - col0 FROM tab0
----
-4002
-4462
-690

query I rowsort
SELECT + - 54 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

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

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

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

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

query I rowsort
SELECT ALL - 12 * 76 FROM tab0 AS cor0 WHERE NOT - 52 * + - col2 IN ( - col1 + + col0 )
----
-912
-912
-912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5687
SELECT 70 AS col0 FROM tab2 WHERE NOT ( NULL NOT IN ( col0, CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5687
SELECT 70 AS col0 FROM tab2 WHERE NOT ( NULL NOT IN ( col0, CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5688
SELECT + 12 + COUNT( - - col0 ) AS col0, MIN( - col0 ) AS col1 FROM tab0
----
15
-97

skipif mysql # not compatible
query II rowsort label-5688
SELECT + 12 + COUNT ( - - col0 ) AS col0, MIN ( - col0 ) AS col1 FROM tab0
----
15
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT 49 + + MAX( 14 ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5689
SELECT 49 + + MAX ( 14 ) FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT - COUNT( * ) + + 7 col0 FROM tab2
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5690
SELECT - COUNT ( * ) + + 7 col0 FROM tab2
----
4

query I rowsort
SELECT + col2 + + - 39 FROM tab0
----
-29
60
8

query I rowsort
SELECT col1 + - - 13 * col0 + col2 + 16 FROM tab2
----
1116
688
965

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT + - 23 + + COUNT( 33 ) col1 FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5693
SELECT + - 23 + + COUNT ( 33 ) col1 FROM tab0 AS cor0
----
-20

onlyif mysql # DIV for integer division: 
query II rowsort label-5694
SELECT - 66 * + col0 + + col0, ( + col2 ) * 16 DIV - 85 AS col2 FROM tab0 AS cor0
----
-5655
-1
-6305
-18
-975
-8

skipif mysql # not compatible
query II rowsort label-5694
SELECT - 66 * + col0 + + col0, ( + col2 ) * 16 / - 85 AS col2 FROM tab0 AS cor0
----
-5655
-1
-6305
-18
-975
-8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 93 * + 71 * + 29 col1 FROM tab1 AS cor0
----
-191391
-191419
-191428

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT DISTINCT ( - COUNT( * ) ) AS col0, + COUNT( * ) FROM tab0 WHERE col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT ( - COUNT ( * ) ) AS col0, + COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0
0

query I rowsort
SELECT - col2 / + - 98 + + col1 + + ( + 9 ) FROM tab0 WHERE + col1 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 17 + col2 AND - - col0 + col0 * ( + + 36 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT DISTINCT COUNT( * ) + 54 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT COUNT ( * ) + 54 FROM tab1 AS cor0
----
57

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

query II rowsort
SELECT + col0 + - col2 AS col2, 51 FROM tab0 AS cor0
----
-2
51
-32
51
77
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) col2 FROM tab0
----
-15
-87
-97

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

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT ( + - MAX ( - col2 ) ) FROM tab2
----
23

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

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

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

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

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

query II rowsort
SELECT - col1, + col0 + + - col0 AS col2 FROM tab0
----
-1
0
-21
0
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5713
SELECT + 41 DIV + 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5713
SELECT + 41 / + 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5714
SELECT ALL + + CAST( - col1 AS SIGNED ) + 44 * - - 30 AS col0 FROM tab2 AS cor0
----
1243
1253
1269

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL + + CAST ( - col1 AS INTEGER ) + 44 * - - 30 AS col0 FROM tab2 AS cor0
----
1243
1253
1269

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

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

query I rowsort
SELECT + 96 * - 91 + + - col2 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
-3769
-3848
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 69, + col0 col2 FROM tab0 AS cor0
----
69
15
69
87
69
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5718
SELECT ALL - 7 / - col2, - CAST( + col1 AS SIGNED ) - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + - 54 * + - col1 * + - 96 AND + col2 * + - col2 * - col1 * + - 66 * + + col2 * + - 6
----

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL - 7 / - col2, - CAST ( + col1 AS INTEGER ) - col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + - 54 * + - col1 * + - 96 AND + col2 * + - col2 * - col1 * + - 66 * + + col2 * + - 6
----

query I rowsort
SELECT col1 + col1 + - 33 * - - col0 * - 75 AS col0 FROM tab1
----
126253
210385
225319

query I rowsort
SELECT ALL 41 * - + col0 AS col0 FROM tab2
----
-1886
-2624
-3075

query I rowsort
SELECT - - col2 + + 22 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5722
SELECT ( col2 ) AS col2, - col1 + + 72 DIV - col0 FROM tab0 AS cor0
----
10
-21
47
-85
99
-1

skipif mysql # not compatible
query II rowsort label-5722
SELECT ( col2 ) AS col2, - col1 + + 72 / - col0 FROM tab0 AS cor0
----
10
-21
47
-85
99
-1

query I rowsort
SELECT 49 * + 57 * + ( + ( 38 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2b068d2d466ab33c2c4d2f88744abc3f

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

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

query I rowsort
SELECT + + col0 * - col2 + 99 FROM tab1 AS cor0
----
-4797
-4916
-6089

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT DISTINCT - COUNT( * ) AS col1, ( - 23 ) + - COUNT( - 1 ) AS col0 FROM tab1 AS cor0
----
-3
-26

skipif mysql # not compatible
query II rowsort label-5727
SELECT DISTINCT - COUNT ( * ) AS col1, ( - 23 ) + - COUNT ( - 1 ) AS col0 FROM tab1 AS cor0
----
-3
-26

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

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

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

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

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

query I rowsort
SELECT ALL - 98 * 48 * - col2 AS col0 FROM tab2
----
108192
188160
272832

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5735
SELECT ALL CAST( - MIN( ALL 76 ) AS SIGNED ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL CAST ( - MIN ( ALL 76 ) AS INTEGER ) FROM tab0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT CAST( - - 68 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif mysql # not compatible
query I rowsort label-5736
SELECT CAST ( - - 68 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT + COUNT( + ( - col2 ) ) * + + 57 AS col2, 75 FROM tab0
----
171
75

skipif mysql # not compatible
query II rowsort label-5737
SELECT + COUNT ( + ( - col2 ) ) * + + 57 AS col2, 75 FROM tab0
----
171
75

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5742
SELECT col2 DIV + col2 + + ( - 23 ) AS col0, 31 FROM tab0 AS cor0
----
-22
31
-22
31
-22
31

skipif mysql # not compatible
query II rowsort label-5742
SELECT col2 / + col2 + + ( - 23 ) AS col0, 31 FROM tab0 AS cor0
----
-22
31
-22
31
-22
31

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - 53 * + col0 + - - col0 IS NOT NULL
----
51
85
91

query II rowsort
SELECT - col0 AS col2, + ( + + 37 ) * + col0 FROM tab2
----
-46
1702
-64
2368
-75
2775

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5748
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + - 51 AS col1 FROM tab1
----
17
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT + AVG ( DISTINCT 15 ) + - COUNT( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT + AVG ( DISTINCT 15 ) + - COUNT ( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5751
SELECT + - CAST( + - col1 AS SIGNED ) * col2 AS col0, 36 * - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + col2
----

skipif mysql # not compatible
query II rowsort label-5751
SELECT + - CAST ( + - col1 AS INTEGER ) * col2 AS col0, 36 * - col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT ALL - col1 + 18 + + 46 DIV - col1 + + col2 FROM tab2
----
-10
-19
9

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL - col1 + 18 + + 46 / - col1 + + col2 FROM tab2
----
-10
-19
9

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5754
SELECT DISTINCT MIN( 53 ) * + COUNT( + col2 ) + - ( CAST( + - 33 AS SIGNED ) ) FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT MIN ( 53 ) * + COUNT ( + col2 ) + - ( CAST ( + - 33 AS INTEGER ) ) FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5755
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 18 > + col0 * - - 67
----

skipif mysql # not compatible
query I rowsort label-5755
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 18 > + col0 * - - 67
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - 58 >= ( - 7 + - 35 )
----
91
47
68

query I rowsort
SELECT 88 * 98 AS col2 FROM tab0 cor0
----
8624
8624
8624

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

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

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

query I rowsort
SELECT - + col1 * - 69 * - 25 + - 54 FROM tab2 AS cor0
----
-115629
-132879
-88029

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - 74 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - 74 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - MIN( + - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5764
SELECT - MIN ( + - col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

query II rowsort
SELECT col0 AS col0, - col0 * col1 FROM tab2
----
46
-2346
64
-4928
75
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 WHERE + - ( + - col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 WHERE + - ( + - col1 ) IS NOT NULL
----
-3

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 + ( - - col1 ) AS col1 FROM tab1
----
10
28
94

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT + - CAST( - col1 AS SIGNED ) + + 10 + - ( + ( + col2 ) ) FROM tab2 AS cor0
----
19
38
47

skipif mysql # not compatible
query I rowsort label-5775
SELECT + - CAST ( - col1 AS INTEGER ) + + 10 + - ( + ( + col2 ) ) FROM tab2 AS cor0
----
19
38
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT ALL COUNT( DISTINCT - - 21 ) AS col1, + COUNT( * ) + - 11 AS col0 FROM tab1 AS cor0
----
1
-8

skipif mysql # not compatible
query II rowsort label-5776
SELECT ALL COUNT ( DISTINCT - - 21 ) AS col1, + COUNT ( * ) + - 11 AS col0 FROM tab1 AS cor0
----
1
-8

query I rowsort
SELECT col2 + ( 13 ) FROM tab1 cor0
----
109
72
81

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

query I rowsort
SELECT ALL 22 + + - 84 AS col1 FROM tab2
----
-62
-62
-62

query I rowsort
SELECT ALL 61 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 68 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # DIV for integer division: 
query I rowsort label-5782
SELECT - col2 DIV - - col0 - + col1 - - col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT - col2 / - - col0 - + col1 - - col1 FROM tab1 AS cor0
----
-1
0
0

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

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

query I rowsort
SELECT col0 - - - col2 * + col2 * - - col1 AS col1 FROM tab0 cor0
----
-178914
-2013
-9704

query I rowsort
SELECT ALL - - col2 / - col1 FROM tab0 cor0 WHERE col2 IS NULL
----

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

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

query I rowsort
SELECT 38 * + 55 * + col1 AS col0 FROM tab0
----
169290
2090
43890

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5788
SELECT 1 * col0 * + - col1 * + CAST( - + col1 AS SIGNED ) FROM tab1 AS cor0
----
201019
2125
9996

skipif mysql # not compatible
query I rowsort label-5788
SELECT 1 * col0 * + - col1 * + CAST ( - + col1 AS INTEGER ) FROM tab1 AS cor0
----
201019
2125
9996

query II rowsort
SELECT DISTINCT - col2 AS col1, + ( - 40 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-40
-40
-58
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT DISTINCT 8 * + col1 + + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
329
35
98

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT 8 * + col1 + + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
329
35
98

query I rowsort
SELECT DISTINCT + 89 * - col2 AS col2 FROM tab1 cor0
----
-5251
-6052
-8544

query I rowsort
SELECT col2 * + + col2 AS col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT - 94 FROM tab2 WHERE NOT 66 IS NULL
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT ALL CAST( + col0 AS SIGNED ) col2 FROM tab0 WHERE + - col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5794
SELECT ALL CAST ( + col0 AS INTEGER ) col2 FROM tab0 WHERE + - col0 IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 18
----

query II rowsort
SELECT ALL 6 * - col2, 19 AS col0 FROM tab0
----
-282
19
-594
19
-60
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT DISTINCT MIN( DISTINCT + + 31 ) col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5798
SELECT DISTINCT MIN ( DISTINCT + + 31 ) col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT + + col0 FROM tab1 WHERE + + 81 + 52 + col0 / col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5800
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + + ( + col0 ) / - CAST( - + CAST( col1 AS SIGNED ) AS SIGNED ) * + - col1 NOT BETWEEN - - 69 / 17 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5800
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + + ( + col0 ) / - CAST ( - + CAST ( col1 AS INTEGER ) AS INTEGER ) * + - col1 NOT BETWEEN - - 69 / 17 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT ALL + - 10 + - 97 DIV COUNT( * ) * + + 93 FROM tab1 cor0
----
-2986

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + - 10 + - 97 / COUNT ( * ) * + + 93 FROM tab1 cor0
----
-2986

query I rowsort
SELECT ALL - col1 + 68 + + col1 * - ( - col1 ) FROM tab0 cor0
----
488
6548
68

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

query III rowsort
SELECT ALL * FROM tab1 WHERE 81 IS NULL AND col0 * - + col2 = col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5805
SELECT - col0 DIV ( - - 70 ) + + 72 AS col2, + col2 + - - 44 * col1 * - 21 col1 FROM tab1
----
71
-43360
71
-4561
72
-12840

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5805
SELECT - col0 / ( - - 70 ) + + 72 AS col2, + col2 + - - 44 * col1 * - 21 col1 FROM tab1
----
71
-43360
71
-4561
72
-12840

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT 42 * - 68 + - + 51 * COUNT( * ) FROM tab0
----
-3009

skipif mysql # not compatible
query I rowsort label-5806
SELECT 42 * - 68 + - + 51 * COUNT ( * ) FROM tab0
----
-3009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + + col1 * + + 2 col1 FROM tab1
----
127
43
61

query II rowsort
SELECT - 60 + + - col0, col2 * + + col0 AS col1 FROM tab1
----
-111
4896
-145
5015
-151
6188

query I rowsort
SELECT 79 + + - 30 FROM tab2
----
49
49
49

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + 99 * + col2, + 32, + - col0 )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 37 <= + 29
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT + - col0 DIV 36 AS col1 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-5814
SELECT + - col0 / 36 AS col1 FROM tab0 AS cor0
----
-2
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 39 NOT BETWEEN - col2 AND col0
----

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

query I rowsort
SELECT col0 * 51 AS col0 FROM tab2 AS cor0
----
2346
3264
3825

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT - 57 DIV + - col1 + - 32 FROM tab1 cor0
----
-21
-28
-31

skipif mysql # not compatible
query I rowsort label-5819
SELECT - 57 / + - col1 + - 32 FROM tab1 cor0
----
-21
-28
-31

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

query I rowsort
SELECT 4 + + 44 AS col0 FROM tab2
----
48
48
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5823
SELECT - col1 * + - CAST( 90 AS SIGNED ) + - col0, col2 + + + col0 * - col2 * + col1 AS col0 FROM tab1
----
1209
-68448
365
-25016
4139
-290768

skipif mysql # not compatible
query II rowsort label-5823
SELECT - col1 * + - CAST ( 90 AS INTEGER ) + - col0, col2 + + + col0 * - col2 * + col1 AS col0 FROM tab1
----
1209
-68448
365
-25016
4139
-290768

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 52 <= 52 * + col2
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, 58 FROM tab1
----
14
58
47
58
5
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5828
SELECT * FROM tab1 WHERE NOT + 35 BETWEEN - - col0 AND + 93 - + + 11 + 36 * - - 87 * - CAST( NULL AS SIGNED ) / - 1 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5828
SELECT * FROM tab1 WHERE NOT + 35 BETWEEN - - col0 AND + 93 - + + 11 + 36 * - - 87 * - CAST ( NULL AS INTEGER ) / - 1 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 >= + 96
----

query II rowsort
SELECT col0 AS col2, + col2 AS col1 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 95 * - 24 AND + - 15
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE - 62 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT DISTINCT - SUM( DISTINCT - 57 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - SUM ( DISTINCT - 57 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
57

query II rowsort
SELECT ALL + col1 * - col2 * + col1 AS col2, - col0 * + col0 * + + 48 AS col2 FROM tab0
----
-308367
-10800
-4410
-363312
-99
-451632

query I rowsort
SELECT DISTINCT col1 + + - col0 + col1 AS col2 FROM tab2
----
56
59
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT - MAX( + + col0 ) * - - 87 * 54 + 92 + COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-352255

skipif mysql # not compatible
query I rowsort label-5837
SELECT - MAX ( + + col0 ) * - - 87 * 54 + 92 + COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-352255

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

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

query II rowsort
SELECT - + 77 * col0 + + 27, col1 FROM tab1 AS cor0
----
-3900
14
-6518
5
-6980
47

query I rowsort
SELECT ALL - col2 + + 20 AS col0 FROM tab1 AS cor0
----
-39
-48
-76

query I rowsort
SELECT DISTINCT - col0 + - + 1 * col1 FROM tab2 AS cor0 WHERE + 79 * + ( - - col1 ) * + + col0 + - 40 IS NOT NULL
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + ( col0 ) * 68 FROM tab2
----
3128
4352
5100

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

query III rowsort
SELECT * FROM tab1 WHERE + + col0 = + 23
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 BETWEEN col2 AND + 5
----

query I rowsort
SELECT col0 - 66 AS col1 FROM tab1
----
-15
19
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5847
SELECT DISTINCT COUNT( ALL ( + 29 ) ), - CAST( NULL AS SIGNED ) * 89 * 5 AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5847
SELECT DISTINCT COUNT ( ALL ( + 29 ) ), - CAST ( NULL AS INTEGER ) * 89 * 5 AS col0 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT - SUM( + 70 ) FROM tab1 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5848
SELECT - SUM ( + 70 ) FROM tab1 cor0
----
-210

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

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

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

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL ( - - COUNT ( * ) ) FROM tab1 cor0
----
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5852
SELECT ALL - CAST ( NULL AS INTEGER ), - col1 col0 FROM tab1 AS cor0
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5853
SELECT ( - 66 ) DIV + + col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5853
SELECT ( - 66 ) / + + col0 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab2 cor0
----
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / + 40 IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-5857
SELECT ALL COUNT ( * ) * + - 47 FROM tab2
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT ALL 1 + + CAST( - - 26 AS SIGNED ) * MIN( col1 ) FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL 1 + + CAST ( - - 26 AS INTEGER ) * MIN ( col1 ) FROM tab1
----
131

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

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

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

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

query I rowsort
SELECT - 97 * - col0 + ( + + col2 ) + col2 FROM tab0 cor0
----
1549
8459
9607

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT ALL + 40 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + 40 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
43

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

query I rowsort
SELECT - 79 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

skipif mysql # not compatible
query I rowsort label-5865
SELECT COUNT ( DISTINCT + ( + - 62 ) ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT 47 + 92 FROM tab2
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT + - 17 + - CAST( NULL AS SIGNED ) + - + 79 * 44 * + 31 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT + - 17 + - CAST ( NULL AS INTEGER ) + - + 79 * 44 * + 31 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 36 + col0 AS col0 FROM tab2 AS cor0
----
100
111
82

query I rowsort
SELECT DISTINCT 20 * - col2 FROM tab0 AS cor0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT + 39 * + MAX( - + 64 ) - - SUM( ALL + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-2297

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + 39 * + MAX ( - + 64 ) - - SUM ( ALL + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-2297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5871
SELECT 17 DIV ( + MIN( DISTINCT + + 57 ) ) + - - MIN( - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT 17 / ( + MIN ( DISTINCT + + 57 ) ) + - - MIN ( - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 85 + + col0 AS col0 FROM tab0
----
100
172
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5873
SELECT DISTINCT COUNT( * ) DIV 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT COUNT ( * ) / 5 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( - col1 <= + col1 ) )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT - 53 DIV 68 * MIN( + - 15 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 53 / 68 * MIN ( + - 15 ) FROM tab0
----
0

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

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

query II rowsort
SELECT DISTINCT - ( - col1 ), 65 AS col1 FROM tab0
----
1
65
21
65
81
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL - col2 * 28 * CAST( + col2 AS SIGNED ) FROM tab0
----
-274428
-2800
-61852

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - col2 * 28 * CAST ( + col2 AS INTEGER ) FROM tab0
----
-274428
-2800
-61852

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col0, + 26 * - - 10 + - col2 FROM tab0 AS cor0
----
10
250
47
213
99
161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5886
SELECT + col1 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5886
SELECT + col1 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 33 col0, col0 + - 48 FROM tab0 AS cor0
----
33
-33
33
39
33
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 / 67 + - col0 NOT BETWEEN NULL AND + + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL MAX( - col0 ) * - MAX( ALL ( col1 ) ) AS col2 FROM tab1
----
2397

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL MAX ( - col0 ) * - MAX ( ALL ( col1 ) ) AS col2 FROM tab1
----
2397

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN NULL AND 42
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5897
SELECT DISTINCT COUNT( DISTINCT + col0 ), + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5897
SELECT DISTINCT COUNT ( DISTINCT + col0 ), + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
3
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5900
SELECT 85 * col0 DIV - - col1 FROM tab1 AS cor0
----
1445
164
309

skipif mysql # not compatible
query I rowsort label-5900
SELECT 85 * col0 / - - col1 FROM tab1 AS cor0
----
1445
164
309

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

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

query I rowsort
SELECT 90 + - 4 + + col0 + + - col0 AS col2 FROM tab1
----
86
86
86

query I rowsort
SELECT DISTINCT + - 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-53

query I rowsort
SELECT ALL - + 36 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # DIV for integer division: 
query I rowsort label-5905
SELECT col2 DIV col2 + - col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-5905
SELECT col2 / col2 + - col2 FROM tab0
----
-46
-9
-98

query I rowsort
SELECT ALL - 24 * - + col0 + + 79 FROM tab2
----
1183
1615
1879

query I rowsort
SELECT DISTINCT + 98 + + - 30 AS col2 FROM tab2 AS cor0
----
68

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 84 >= col2
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE NULL = - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT + MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5911
SELECT + MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT - COUNT( col2 ) col0 FROM tab2 cor0
----
-3

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

query I rowsort
SELECT DISTINCT - col2 + + ( + 48 ) * + + col2 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT ALL - + col1 * + 88 * - - col0 AS col2 FROM tab1 AS cor0
----
-37400
-376376
-62832

query III rowsort
SELECT ALL * FROM tab0 WHERE 29 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT DISTINCT 48 * - COUNT( * ) FROM tab0
----
-144

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT 48 * - COUNT ( * ) FROM tab0
----
-144

query II rowsort
SELECT DISTINCT 94 AS col0, - 43 FROM tab2
----
94
-43

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 FROM tab1
----
14
14
47
47
5
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT CAST( + 1 AS SIGNED ) + + col1 NOT BETWEEN 99 AND + 54
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5921
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT CAST ( + 1 AS INTEGER ) + + col1 NOT BETWEEN 99 AND + 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5922
SELECT DISTINCT - COUNT( * ) DIV - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE 39 IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT ALL ( 38 ) FROM tab2 cor0
----
38
38
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT ALL CAST( + col0 AS SIGNED ) * - - col0 + + - 77 + col1 AS col2 FROM tab2
----
2090
4096
5615

skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL CAST ( + col0 AS INTEGER ) * - - col0 + + - 77 + col1 AS col2 FROM tab2
----
2090
4096
5615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5927
SELECT ALL + COUNT( * ) * + 57 + + CAST( + COUNT( * ) AS SIGNED ) * COUNT( * ) + MIN( + - col1 ) AS col1 FROM tab1
----
133

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL + COUNT ( * ) * + 57 + + CAST ( + COUNT ( * ) AS INTEGER ) * COUNT ( * ) + MIN ( + - col1 ) AS col1 FROM tab1
----
133

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT + - 8 + col0 FROM tab1 AS cor0
----
43
77
83

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

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

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

query I rowsort
SELECT ALL 23 FROM tab0 WHERE + ( - 19 ) NOT IN ( col2 )
----
23
23
23

query I rowsort
SELECT ALL - col2 + - 24 AS col0 FROM tab2
----
-47
-64
-82

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

skipif mysql # not compatible
query I rowsort label-5934
SELECT + 13 / col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 + - col1 * + col1 AS col1 FROM tab2
----
-2578
-4431
-5889

query I rowsort
SELECT - col1 * + 12 + + col2 FROM tab0
----
-242
-925
87

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT DISTINCT - 57 + 88 FROM tab0
----
31

query III rowsort
SELECT * FROM tab2 WHERE NULL > + 57
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5940
SELECT COUNT( ALL + 90 ) DIV 97 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5940
SELECT COUNT ( ALL + 90 ) / 97 col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL COUNT( * ) * COUNT( * ) + 28 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL COUNT ( * ) * COUNT ( * ) + 28 FROM tab0
----
37

query I rowsort
SELECT 40 + + col0 AS col0 FROM tab0
----
127
137
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT 49 DIV - 28 + col0 AS col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-5943
SELECT 49 / - 28 + col0 AS col1 FROM tab2
----
45
63
74

query III rowsort
SELECT * FROM tab2 WHERE + 42 NOT BETWEEN ( col1 ) AND ( ( - 38 ) ) + 98 / 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + 23 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5948
SELECT COUNT ( ALL 79 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE + col2 + col0 > - 65
----
-3

skipif mysql # not compatible
query I rowsort label-5949
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE + col2 + col0 > - 65
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT COUNT( ALL ( + col1 ) ) col0 FROM tab1
----
3

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

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

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

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE 99 * col1 NOT BETWEEN ( ( + 58 ) + - col2 ) AND + col0 * col1 + + col0
----
-21
-81

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

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

query I rowsort
SELECT ALL 14 + col1 AS col0 FROM tab2
----
65
81
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5959
SELECT ALL MAX( - 15 ) * MIN( - col1 ) - - 58 DIV + MAX( ALL - col1 ) FROM tab1
----
694

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL MAX ( - 15 ) * MIN ( - col1 ) - - 58 / + MAX ( ALL - col1 ) FROM tab1
----
694

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE + col2 / + 94 NOT BETWEEN ( col0 ) AND + col2 + CAST( NULL AS SIGNED )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE + col2 / + 94 NOT BETWEEN ( col0 ) AND + col2 + CAST ( NULL AS INTEGER )
----
-59
-68
-96

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

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

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

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

query I rowsort
SELECT ALL col0 - 93 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 * col1 + col1 ) IS NULL
----
-6
-78
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT DISTINCT 45 * - COUNT( * ) FROM tab1 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT 45 * - COUNT ( * ) FROM tab1 cor0
----
-135

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + 82 * + col2 FROM tab0 AS cor0 WHERE col2 <= NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE 18 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT + COUNT ( * ) / + 80 FROM tab0
----
0

query I rowsort
SELECT - 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5972
SELECT + MIN( col1 ) DIV + 73 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5972
SELECT + MIN ( col1 ) / + 73 col2 FROM tab2
----
0

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

skipif mysql # not compatible
query I rowsort label-5973
SELECT COUNT ( * ) * + 92 FROM tab2 AS cor0 CROSS JOIN tab0
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT - 26 + COUNT( * ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - 26 + COUNT ( * ) AS col1 FROM tab0
----
-23

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL 96 + SUM( ALL col0 ) FROM tab2 AS cor0
----
281

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL 96 + SUM ( ALL col0 ) FROM tab2 AS cor0
----
281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 57 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT DISTINCT - 71 * 79 + - COUNT( * ) FROM tab1 AS cor0
----
-5612

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - 71 * 79 + - COUNT ( * ) FROM tab1 AS cor0
----
-5612

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT ALL - - col0 DIV ( + col2 * - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL - - col0 / ( + col2 * - col0 + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - 86 + - 69 AS col2 FROM tab2 AS cor0
----
1909
3371
4919

query I rowsort
SELECT + col2 + - 29 * + col2 AS col0 FROM tab2 cor0
----
-1120
-1624
-644

query I rowsort
SELECT + col2 + 93 FROM tab1 cor0
----
152
161
189

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 76 / + 24 AND + 47 + 21
----

query I rowsort
SELECT DISTINCT col0 * - + col1 * 92 FROM tab0
----
-111780
-168084
-8924

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * 64 + + col2 <> + 48 * 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL COUNT( * ) + + - ( ( + 55 ) ) * - COUNT( * ) AS col0 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL COUNT ( * ) + + - ( ( + 55 ) ) * - COUNT ( * ) AS col0 FROM tab2
----
168

query I rowsort
SELECT DISTINCT + 89 + col2 FROM tab0
----
136
188
99

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

query I rowsort
SELECT DISTINCT - + col1 * - col2 + + col1 + 23 FROM tab2 AS cor0
----
1247
3180
3976

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT ALL SUM( - col2 ) * + 39 - 64 FROM tab2 AS cor0
----
-4783

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL SUM ( - col2 ) * + 39 - 64 FROM tab2 AS cor0
----
-4783

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT - 2 + + SUM( + col0 ) col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5996
SELECT - 2 + + SUM ( + col0 ) col2 FROM tab1 AS cor0
----
225

query I rowsort
SELECT 57 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
57
57
57

query I rowsort
SELECT ALL col1 - ( - + col0 ) + + 15 AS col2 FROM tab0
----
111
113
123

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

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

query I rowsort
SELECT + 86 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

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

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

query I rowsort
SELECT - - col2 * col0 + + - 43 FROM tab2 AS cor0
----
1015
2517
4307

query I rowsort
SELECT + + ( - + 17 ) FROM tab0 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT DISTINCT - ( + - COUNT( ALL col1 ) ) * COUNT( * ) + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT - ( + - COUNT ( ALL col1 ) ) * COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE 12 * + col2 IS NOT NULL
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21, + col0 col2 FROM tab2 AS cor0
----
21
46
21
64
21
75

query I rowsort
SELECT - 37 AS col2 FROM tab0 cor0
----
-37
-37
-37

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 <> ( NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL BETWEEN CAST ( + + col1 AS INTEGER ) AND ( NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT DISTINCT - COUNT( 22 ) * - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT - COUNT ( 22 ) * - COUNT ( * ) FROM tab0
----
9

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 31 AND + - 5
----

query I rowsort
SELECT + 37 FROM tab2 WHERE NOT + - 7 * col2 = col0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * - 99 * 98 + + 75 + col1 col1 FROM tab0 AS cor0
----
-125970
-126030
-126050

query I rowsort
SELECT - col2 * col0 FROM tab1 cor0 WHERE NOT ( 95 NOT BETWEEN ( NULL ) AND - 68 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT col0 DIV ( - 86 ) AS col2 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT col0 / ( - 86 ) AS col2 FROM tab0
----
-1
-1
0

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

query I rowsort
SELECT 99 * 50 AS col2 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT ( - 39 ) NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - 74 * 95 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6026
SELECT DISTINCT + MAX ( ALL - - 41 ) col0 FROM tab2 AS cor0
----
41

query I rowsort
SELECT - col2 - + col0 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / - 22 - + col2 - 21 > ( 33 )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT 8 DIV - col2 * - ( col2 ) + + 44 FROM tab2
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6032
SELECT 8 / - col2 * - ( col2 ) + + 44 FROM tab2
----
44
44
44

query I rowsort
SELECT 57 + 71 FROM tab2
----
128
128
128

query I rowsort
SELECT DISTINCT ( + ( 74 ) ) + - 41 FROM tab0
----
33

query I rowsort
SELECT ALL 15 + + + 99 * - 42 AS col1 FROM tab0
----
-4143
-4143
-4143

query I rowsort
SELECT - - col0 AS col0 FROM tab0 WHERE + col1 + + - 33 >= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6037
SELECT + col1 * - col1 * col2 * + + col2 * - col0 / - - ( + 21 ) + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT - 60 + MIN( DISTINCT - + 4 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-6038
SELECT - 60 + MIN ( DISTINCT - + 4 ) FROM tab0
----
-64

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6041
SELECT DISTINCT 13 * 37 * + - col1 - + col0 * + 49 DIV + 7 AS col2 FROM tab1 AS cor0
----
-23244
-3000
-7091

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT 13 * 37 * + - col1 - + col0 * + 49 / + 7 AS col2 FROM tab1 AS cor0
----
-23244
-3000
-7091

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT + + 18 - - MAX( DISTINCT - + col2 ) FROM tab1 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6042
SELECT + + 18 - - MAX ( DISTINCT - + col2 ) FROM tab1 cor0
----
-41

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - - col0 + - col1 * + + ( - col2 ) IN ( col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-6045
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - - col0 + - col1 * + + ( - col2 ) IN ( col0 ) )
----
3

query II rowsort
SELECT + + 1 + + 83 + 32 AS col1, - col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab1 cor0
----
35

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6051
SELECT - - MIN ( DISTINCT - 80 ) FROM tab1 AS cor0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6052
SELECT ALL - + MAX( ALL CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - + MAX ( ALL CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
5

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

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

query I rowsort
SELECT ALL - - 93 - col0 * + 83 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6057
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * 85 * + col0 * - col1 * + ( + - 25 ) + + col2 * CAST( col2 AS SIGNED ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6057
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * 85 * + col0 * - col1 * + ( + - 25 ) + + col2 * CAST ( col2 AS INTEGER ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col1 col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL - SUM( + 57 ) + - COUNT( - col1 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - SUM ( + 57 ) + - COUNT ( - col1 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6065
SELECT CAST( col2 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-6065
SELECT CAST ( col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL + 69 + - - 3 + - - col1 FROM tab0 AS cor0
----
153
73
93

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6069
SELECT 14 + - COUNT( ALL + CAST( + col0 AS SIGNED ) ) col2, + 73 FROM tab1 AS cor0
----
11
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6069
SELECT 14 + - COUNT ( ALL + CAST ( + col0 AS INTEGER ) ) col2, + 73 FROM tab1 AS cor0
----
11
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT DISTINCT - CAST( - col2 AS SIGNED ) - 11 * col1 FROM tab2 AS cor0
----
-538
-679
-807

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) - 11 * col1 FROM tab2 AS cor0
----
-538
-679
-807

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT DISTINCT + MAX( - + col2 ) * + 18 FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT + MAX ( - + col2 ) * + 18 FROM tab0 cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 * + 84, + 46 col0 FROM tab2 cor0
----
2604
46
2604
46
2604
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL COUNT( * ) * - 42 AS col0 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL COUNT ( * ) * - 42 AS col0 FROM tab0
----
-126

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

query II rowsort
SELECT ALL 37 AS col1, - col1 AS col1 FROM tab2
----
37
-51
37
-67
37
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT ALL - 20 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - 20 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 * 3 * - col1 AS col0 FROM tab1
----
-108375
-109242
-1167621

onlyif mysql # aggregate syntax: 
query II rowsort label-6078
SELECT DISTINCT - - COUNT( * ) AS col1, - COUNT( * ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6078
SELECT DISTINCT - - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NULL
----
0
0

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

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL - - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query II rowsort
SELECT DISTINCT - - col2, + 32 + + - col1 AS col1 FROM tab2 AS cor0
----
23
-19
40
-45
58
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT DISTINCT + 71 * COUNT( * ) AS col0 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT + 71 * COUNT ( * ) AS col0 FROM tab1
----
213

onlyif mysql # DIV for integer division: 
query II rowsort label-6084
SELECT ALL col0 AS col2, - ( col0 ) * + 0 - col1 DIV + col2 AS col1 FROM tab2
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-6084
SELECT ALL col0 AS col2, - ( col0 ) * + 0 - col1 / + col2 AS col1 FROM tab2
----
46
-2
64
-1
75
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + 84 * 39
----

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= + 84 * 39
----

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

query I rowsort
SELECT 58 * 72 AS col0 FROM tab2 cor0
----
4176
4176
4176

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

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

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

query I rowsort
SELECT ALL + col2 * + + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-6092
SELECT ALL 19 DIV + ( - col1 ) col0 FROM tab0 AS cor0
----
-19
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6092
SELECT ALL 19 / + ( - col1 ) col0 FROM tab0 AS cor0
----
-19
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT DISTINCT - MIN( + col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - MIN ( + col2 ) FROM tab1 cor0
----
-59

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

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

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

query I rowsort
SELECT ALL col1 * col1 + ( + col2 ) * + 67 AS col1 FROM tab0
----
1111
6634
9710

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6097
SELECT DISTINCT ( 94 ) AS col0, + CAST( NULL AS DECIMAL ) * + 6 * + - 31 AS col2 FROM tab0
----
94
NULL

skipif mysql # not compatible
query II rowsort label-6097
SELECT DISTINCT ( 94 ) AS col0, + CAST ( NULL AS REAL ) * + 6 * + - 31 AS col2 FROM tab0
----
94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6098
SELECT - MIN( ( - + 72 ) ) AS col0, COUNT( * ) AS col1 FROM tab2
----
72
3

skipif mysql # not compatible
query II rowsort label-6098
SELECT - MIN ( ( - + 72 ) ) AS col0, COUNT ( * ) AS col1 FROM tab2
----
72
3

query I rowsort
SELECT col1 * + col0 + - + col0 FROM tab1
----
340
4186
663

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6101
SELECT + 57 * + - col1 + + - col2 + CAST( - col0 AS SIGNED ) - - col2 DIV + - col0 FROM tab1 AS cor0
----
-2838
-429
-946

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 57 * + - col1 + + - col2 + CAST ( - col0 AS INTEGER ) - - col2 / + - col0 FROM tab1 AS cor0
----
-2838
-429
-946

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6103
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + + col1 * - 77 AS col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT DISTINCT 22 - - 43 + - col0 FROM tab2
----
-10
1
19

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
29

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

query I rowsort
SELECT col1 * + + col1 + - - 38 AS col2 FROM tab1
----
2247
234
63

query I rowsort
SELECT col0 * + 15 + + col1 AS col2 FROM tab2
----
1037
1192
741

query I rowsort
SELECT - 20 + - 54 FROM tab1
----
-74
-74
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT DISTINCT COUNT( * ) * + 26 col0, COUNT( * ) AS col1 FROM tab0
----
78
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - 17, - col1 col1 FROM tab1
----
-1003
-5
-1156
-47
-1632
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL + COUNT( + + 10 ) FROM tab1 WHERE NOT + + ( - col2 ) <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + COUNT ( + + 10 ) FROM tab1 WHERE NOT + + ( - col2 ) <> + col1
----
0

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

query I rowsort
SELECT ALL - + col1 * col1 + - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2277
-292
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT 25 DIV + - ( + 87 ) * + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6121
SELECT 25 / + - ( + 87 ) * + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT - COUNT( ALL 43 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6122
SELECT - COUNT ( ALL 43 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6123
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT ALL + 27 * 45 AS col0 FROM tab0 AS cor0
----
1215
1215
1215

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT + col1 * - 47 + - + ( - 92 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-6125
SELECT + col1 * - 47 + - + ( - 92 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - 56 - + col2 AS col1 FROM tab0 AS cor0
----
4862
5333
793

query I rowsort
SELECT DISTINCT 78 * col0 FROM tab0 AS cor0
----
1170
6786
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col2 * col0 AS col0, col2 col2 FROM tab0 AS cor0
----
-33135
47
-8700
10
-950697
99

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

query I rowsort
SELECT DISTINCT - + 20 * col0 FROM tab2 AS cor0
----
-1280
-1500
-920

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

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - MAX ( ALL - col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT + 92 + + + ( + ( + 41 ) ) AS col0 FROM tab0
----
133
133
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT 79 + + MIN( + 28 ) AS col1 FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-6133
SELECT 79 + + MIN ( + 28 ) AS col1 FROM tab2
----
107

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6136
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + SUM( ALL - 2 ) / - 23 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - CAST ( NULL AS REAL ) * + SUM ( ALL - 2 ) / - 23 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT + 80 AS col1 FROM tab2 WHERE col2 * - col0 * - col0 = + CAST( - 11 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6137
SELECT + 80 AS col1 FROM tab2 WHERE col2 * - col0 * - col0 = + CAST ( - 11 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 93 BETWEEN + col2 AND 7
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT + 53 AS col0, + COUNT( * ) + - ( + 18 ) AS col1 FROM tab0 AS cor0
----
53
-15

skipif mysql # not compatible
query II rowsort label-6139
SELECT + 53 AS col0, + COUNT ( * ) + - ( + 18 ) AS col1 FROM tab0 AS cor0
----
53
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT - COUNT( ALL - - col2 ) * - 26 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6140
SELECT - COUNT ( ALL - - col2 ) * - 26 FROM tab0 AS cor0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + - 64 + - MIN( col1 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + - 64 + - MIN ( col1 ) FROM tab1 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT DISTINCT - col1 + col1 + + CAST( - - 54 AS SIGNED ) * col2 * - col0 AS col2 FROM tab0 AS cor0
----
-38070
-46980
-518562

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - col1 + col1 + + CAST ( - - 54 AS INTEGER ) * col2 * - col0 AS col2 FROM tab0 AS cor0
----
-38070
-46980
-518562

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT ALL - 32 - MIN( + col2 ) AS col2, SUM( col1 ) FROM tab0
----
-42
103

skipif mysql # not compatible
query II rowsort label-6146
SELECT ALL - 32 - MIN ( + col2 ) AS col2, SUM ( col1 ) FROM tab0
----
-42
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col1 col2 FROM tab2 WHERE NOT NULL NOT IN ( 44 )
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT + - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 NOT IN ( + col2 + - + 87, col1 + + col0 )
----

query II rowsort
SELECT col0 AS col2, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6151
SELECT + CAST( 28 AS SIGNED ) * col0 + + 43 DIV + + col0 AS col0 FROM tab2
----
1288
1792
2100

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col2 col0 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6155
SELECT + 82, + 1 DIV - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 52 IS NULL
----
82
0
82
0
82
0

skipif mysql # not compatible
query II rowsort label-6155
SELECT + 82, + 1 / - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 52 IS NULL
----
82
0
82
0
82
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 49 <> + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL - MAX( ALL 75 ) * + + 31 AS col2 FROM tab2 cor0
----
-2325

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL - MAX ( ALL 75 ) * + + 31 AS col2 FROM tab2 cor0
----
-2325

query I rowsort
SELECT - col2 * + + col1 + + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6161
SELECT MIN( col0 ) AS col0, 46 AS col0 FROM tab1 AS cor0
----
51
46

skipif mysql # not compatible
query II rowsort label-6161
SELECT MIN ( col0 ) AS col0, 46 AS col0 FROM tab1 AS cor0
----
51
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6163
SELECT DISTINCT + 91 DIV + col0 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + 91 / + col0 AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-6164
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND col2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6166
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) < + col1
----

skipif mysql # not compatible
query III rowsort label-6166
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) < + col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6169
SELECT ALL + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - 31 + 47 AND 67 + col2 * + + 13
----

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - 31 + 47 AND 67 + col2 * + + 13
----

query I rowsort
SELECT - col1 - - col0 + 34 FROM tab2
----
21
29
42

query I rowsort
SELECT + + 71 - - col1 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT DISTINCT + col0 * - - 61 - + 35 AS col1 FROM tab2 AS cor0
----
2771
3869
4540

onlyif mysql # DIV for integer division: 
query I rowsort label-6173
SELECT DISTINCT 51 DIV + 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT 51 / + 77 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6174
SELECT ALL + 98 AS col1, - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-6174
SELECT ALL + 98 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
98
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6176
SELECT DISTINCT - SUM( - - col2 ) AS col0, 6 * - COUNT( * ) FROM tab0
----
-156
-18

skipif mysql # not compatible
query II rowsort label-6176
SELECT DISTINCT - SUM ( - - col2 ) AS col0, 6 * - COUNT ( * ) FROM tab0
----
-156
-18

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

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

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT + 79 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT 14 * + MAX( + + col2 ) AS col2 FROM tab0
----
1386

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 14 * + MAX ( + + col2 ) AS col2 FROM tab0
----
1386

onlyif mysql # DIV for integer division: 
query II rowsort label-6180
SELECT - + col1 DIV + col2 AS col0, - col0 FROM tab0 AS cor0
----
-1
-15
-2
-87
0
-97

skipif mysql # not compatible
query II rowsort label-6180
SELECT - + col1 / + col2 AS col0, - col0 FROM tab0 AS cor0
----
-1
-15
-2
-87
0
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * col1 + + 6 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT SUM( DISTINCT + 0 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-6183
SELECT SUM ( DISTINCT + 0 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT + - col1 + + - 36 + + CAST( + col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
2551
7184
8198

skipif mysql # not compatible
query I rowsort label-6185
SELECT + - col1 + + - 36 + + CAST ( + col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
2551
7184
8198

query I rowsort
SELECT col2 + - - 91 * + 21 FROM tab0 cor0
----
1921
1958
2010

query I rowsort
SELECT DISTINCT + 50 + - - 16 AS col1 FROM tab2
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - - col1 col1, col1 * col1 AS col0 FROM tab1
----
425
25
4277
2209
714
196

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 19 - + 41 * - col2 - col2, + col2, + 24 )
----

query I rowsort
SELECT - ( col1 ) * col2 FROM tab0 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT ALL + 55 + + 28 FROM tab2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6193
SELECT DISTINCT + col2 * + + col0 + + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) - + - 27 / + 2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT + col2 * + + col0 + + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) - + - 27 / + 2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 - col0 + col1 col0 FROM tab1 AS cor0
----
-12
24
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT COUNT( * ) + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
18

skipif mysql # not compatible
query I rowsort label-6195
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
18

query II rowsort
SELECT DISTINCT - col1 - + ( + col2 ) AS col0, col2 + - 77 + col2 FROM tab0
----
-100
121
-128
17
-31
-57

query III rowsort
SELECT * FROM tab1 WHERE - 8 NOT BETWEEN - + ( + col1 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 73 + 92 + + + col0 + col1 + - 50 AS col2, + col2 * + ( - 40 ) AS col1 FROM tab0
----
211
-1880
213
-3960
223
-400

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT col2 * - - col1 * - ( CAST( 67 AS SIGNED ) ) FROM tab0
----
-14070
-255069
-6633

skipif mysql # not compatible
query I rowsort label-6201
SELECT col2 * - - col1 * - ( CAST ( 67 AS INTEGER ) ) FROM tab0
----
-14070
-255069
-6633

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

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

skipif mysql # not compatible
query I rowsort label-6203
SELECT + MAX ( - 12 ) AS col1 FROM tab0 AS cor0
----
-12

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

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

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 * + + col2 * 40 FROM tab2
----
23
-42320
40
-102400
58
-174000

query II rowsort
SELECT DISTINCT - 26, col2 FROM tab1
----
-26
59
-26
68
-26
96

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6209
SELECT ALL col1 DIV - - col2, col2 FROM tab2
----
1
40
1
58
2
23

skipif mysql # not compatible
query II rowsort label-6209
SELECT ALL col1 / - - col2, col2 FROM tab2
----
1
40
1
58
2
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6210
SELECT + col2 DIV + - 22 FROM tab1
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-6210
SELECT + col2 / + - 22 FROM tab1
----
-2
-3
-4

query II rowsort
SELECT DISTINCT - 75 AS col2, ( 79 ) * + - 72 AS col1 FROM tab2
----
-75
-5688

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT COUNT( * ) * - COUNT( ALL + 73 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6212
SELECT COUNT ( * ) * - COUNT ( ALL + 73 ) FROM tab1
----
-9

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT + - col1 DIV - 28 + - 36 FROM tab2 AS cor0
----
-34
-34
-35

skipif mysql # not compatible
query I rowsort label-6215
SELECT + - col1 / - 28 + - 36 FROM tab2 AS cor0
----
-34
-34
-35

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

query I rowsort
SELECT DISTINCT col1 + - 94 FROM tab1 AS cor0
----
-47
-80
-89

query II rowsort
SELECT ALL col2 + + - col2 AS col2, + col1 * + + col2 AS col0 FROM tab0 cor0
----
0
210
0
3807
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * - 53 col0 FROM tab1 AS cor0 WHERE col2 BETWEEN + col0 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT 7 + - COUNT( * ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-6220
SELECT 7 + - COUNT ( * ) FROM tab1
----
4

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6222
SELECT + CAST( + col2 AS SIGNED ) + col0 * 5 DIV - col2 AS col2 FROM tab0
----
-33
46
95

skipif mysql # not compatible
query I rowsort label-6222
SELECT + CAST ( + col2 AS INTEGER ) + col0 * 5 / - col2 AS col2 FROM tab0
----
-33
46
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6223
SELECT 22 DIV 64 + + ( 66 ) AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
66
66
66

skipif mysql # not compatible
query I rowsort label-6223
SELECT 22 / 64 + + ( 66 ) AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL 31 + COUNT( * ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL 31 + COUNT ( * ) FROM tab1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT + 76 + - - CAST( NULL AS SIGNED ) / + + col1 + - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT + 76 + - - CAST ( NULL AS INTEGER ) / + + col1 + - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT + MAX( 46 ) + + COUNT( * ) + + + 29 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-6226
SELECT + MAX ( 46 ) + + COUNT ( * ) + + + 29 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - - COUNT( * ) * - 22 AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6227
SELECT - - COUNT ( * ) * - 22 AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT ALL + + col2 DIV - + col1 col0 FROM tab0 AS cor0 WHERE - 62 > + col1 * - + col1
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6228
SELECT ALL + + col2 / - + col1 col0 FROM tab0 AS cor0 WHERE - 62 > + col1 * - + col1
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 76 + + col1 col2 FROM tab2 AS cor0
----
-3825
-5025
-5775

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 46 < - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + COUNT( * ) * ( + MAX( + 78 ) ) FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + COUNT ( * ) * ( + MAX ( + 78 ) ) FROM tab1 AS cor0
----
234

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT ALL - 80 DIV - col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL - 80 / - col0 FROM tab0 AS cor0
----
0
0
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT SUM( + 75 ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-6234
SELECT SUM ( + 75 ) FROM tab1
----
225

query I rowsort
SELECT DISTINCT - 88 * + col0 FROM tab2
----
-4048
-5632
-6600

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6236
SELECT CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 35 * + + col2 FROM tab2
----
1400
2030
805

query I rowsort
SELECT + 43 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 8
----

query I rowsort
SELECT ALL - 15 * - + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-17595
-46200
-58290

query I rowsort
SELECT 15 * - col0 AS col1 FROM tab2
----
-1125
-690
-960

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

skipif mysql # not compatible
query II rowsort label-6242
SELECT - MIN ( + col2 ) AS col0, + COUNT ( * ) AS col0 FROM tab0
----
-10
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 88 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6244
SELECT + col1 DIV + + ( - col2 ) + + col0 * ( + + col2 ) AS col2, col1 FROM tab2 AS cor0
----
1056
51
2559
77
4349
67

skipif mysql # not compatible
query II rowsort label-6244
SELECT + col1 / + + ( - col2 ) + + col0 * ( + + col2 ) AS col2, col1 FROM tab2 AS cor0
----
1056
51
2559
77
4349
67

query I rowsort
SELECT ALL - + 62 + - col0 * col0 FROM tab2 AS cor0
----
-2178
-4158
-5687

query I rowsort
SELECT DISTINCT 60 * + col2 AS col0 FROM tab0 AS cor0
----
2820
5940
600

query I rowsort
SELECT DISTINCT col1 * col0 * + - col0 AS col0 FROM tab2
----
-107916
-315392
-376875

query I rowsort
SELECT ALL + 5 + - + col0 AS col1 FROM tab1 AS cor0
----
-46
-80
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT + - MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL = - col2 * CAST( + col1 AS SIGNED ) * + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT + - MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL = - col2 * CAST ( + col1 AS INTEGER ) * + + col1
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT - CAST( + - col1 AS SIGNED ) + - col2 - - ( - - col1 ) FROM tab2 AS cor0
----
114
76
79

skipif mysql # not compatible
query I rowsort label-6251
SELECT - CAST ( + - col1 AS INTEGER ) + - col2 - - ( - - col1 ) FROM tab2 AS cor0
----
114
76
79

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6252
SELECT DISTINCT - - col0 - + CAST( - + CAST( + col2 AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - - col0 - + CAST ( - + CAST ( + col2 AS REAL ) AS INTEGER ) FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT 73 + + ( - - 69 ) AS col1 FROM tab2 AS cor0
----
142
142
142

query II rowsort
SELECT col0 AS col0, + 99 + - - col0 + - - ( - col2 ) + - col2 AS col2 FROM tab2
----
46
99
64
83
75
58

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58, - 54 col2 FROM tab1 AS cor0
----
-58
-54
-58
-54
-58
-54

query II rowsort
SELECT DISTINCT - 71 * 37 + + 60 AS col0, - ( - 92 ) FROM tab1 AS cor0
----
-2567
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6261
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6261
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - CAST ( col1 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT DISTINCT + col1 DIV 9 + col1 FROM tab2 AS cor0
----
56
74
85

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT + col1 / 9 + col1 FROM tab2 AS cor0
----
56
74
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT + + COUNT( * ) * - MIN( - + 25 ) FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + + COUNT ( * ) * - MIN ( - + 25 ) FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT - MAX( ALL 18 ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6264
SELECT - MAX ( ALL 18 ) AS col1 FROM tab2
----
-18

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 > - col0 + + col2 / - + col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6266
SELECT DISTINCT + ( - MIN( - col1 ) ) * 73 AS col1, COUNT( * ) col2 FROM tab1
----
3431
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6266
SELECT DISTINCT + ( - MIN ( - col1 ) ) * 73 AS col1, COUNT ( * ) col2 FROM tab1
----
3431
3

query II rowsort
SELECT - ( + col0 ), - col0 AS col0 FROM tab1
----
-51
-51
-85
-85
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 92 * + - col2 NOT BETWEEN - - col1 AND - col0 - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL + COUNT( * ) * - 57 AS col0 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + COUNT ( * ) * - 57 AS col0 FROM tab1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL + SUM( + + col1 ) AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + SUM ( + + col1 ) AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
66

query I rowsort
SELECT ( col0 ) * - - 39 FROM tab1
----
1989
3315
3549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 * - - col0 col0 FROM tab2 AS cor0
----
-2116
-2944
-3450

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL + + CAST( - 36 AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL + + CAST ( - 36 AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT 17 + col2 * + col0 FROM tab2 AS cor0
----
1075
2577
4367

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NOT + 38 * col2 * + 75 * - col1 - - col0 + col0 * col1 * - col1 IS NULL )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6278
SELECT ALL - - 94 / - SUM( ALL - - col0 ) + - CAST( NULL AS SIGNED ) + AVG ( ALL - 37 ) * + 72 + - + 42 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL - - 94 / - SUM ( ALL - - col0 ) + - CAST ( NULL AS INTEGER ) + AVG ( ALL - 37 ) * + 72 + - + 42 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + 58 AS col2 FROM tab2
----
2668
3712
4350

query I rowsort
SELECT 84 * col0 FROM tab2
----
3864
5376
6300

query I rowsort
SELECT DISTINCT - col0 + + col0 - + col2 * - 67 AS col1 FROM tab0 cor0
----
3149
6633
670

query I rowsort
SELECT ALL + ( - col0 ) * - 26 + - - col1 FROM tab1 AS cor0
----
1340
2215
2413

onlyif mysql # DIV for integer division: 
query I rowsort label-6283
SELECT ALL + 40 DIV col1 * col1 + - + 1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + 40 / col1 * col1 + - + 1 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 94 col0 FROM tab0
----
115
175
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT + CAST( col1 AS SIGNED ) + - 71 AS col2 FROM tab2
----
-20
-4
6

skipif mysql # not compatible
query I rowsort label-6285
SELECT + CAST ( col1 AS INTEGER ) + - 71 AS col2 FROM tab2
----
-20
-4
6

query III rowsort
SELECT * FROM tab0 WHERE - 74 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query I rowsort
SELECT ALL + 52 + col2 AS col1 FROM tab2
----
110
75
92

query I rowsort
SELECT DISTINCT + + col0 + col2 - col1 FROM tab1 AS cor0
----
112
133
139

query II rowsort
SELECT DISTINCT 94, + 50 AS col0 FROM tab1 cor0
----
94
50

query I rowsort
SELECT DISTINCT + col0 * + + col2 * 32 AS col1 FROM tab2 AS cor0
----
139200
33856
81920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - 69 col1 FROM tab1 AS cor0
----
-51
-69
-85
-69
-91
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL - SUM( - col0 ) FROM tab2 AS cor0 WHERE 77 + col0 >= + 57 + - + 99
----
185

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL - SUM ( - col0 ) FROM tab2 AS cor0 WHERE 77 + col0 >= + 57 + - + 99
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 67 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT COUNT( * ) * + 88 AS col1 FROM tab0 cor0
----
264

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT COUNT ( * ) * + 88 AS col1 FROM tab0 cor0
----
264

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - 10 * - col2 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1232000
-2253880
-269790

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

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

query I rowsort
SELECT DISTINCT + col0 + + - col0 FROM tab2 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT MAX( + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT MAX ( + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6309
SELECT DISTINCT + COUNT ( - CAST ( - col1 AS INTEGER ) ) col1 FROM tab1
----
3

query II rowsort
SELECT 24, col0 + col2 AS col0 FROM tab0
----
24
196
24
62
24
97

query I rowsort
SELECT ALL col0 + 48 + ( col1 ) FROM tab0
----
144
146
156

query I rowsort
SELECT ALL + col0 * col0 * - 3 AS col0 FROM tab0
----
-22707
-28227
-675

query I rowsort
SELECT ALL + - col1 * - col2 + + + col2 + + 4 AS col1 FROM tab1 AS cor0
----
1444
3268
358

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - 97 * - - SUM( - + col0 ) FROM tab0 AS cor0
----
19303

skipif mysql # not compatible
query I rowsort label-6314
SELECT - 97 * - - SUM ( - + col0 ) FROM tab0 AS cor0
----
19303

query I rowsort
SELECT DISTINCT + col1 * - ( 18 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1458
-18
-378

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

query I rowsort
SELECT DISTINCT - col1 - 32 AS col1 FROM tab1 AS cor0
----
-37
-46
-79

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

query I rowsort
SELECT ALL + ( - + col1 ) FROM tab1 AS cor0 WHERE NOT - 71 NOT BETWEEN col0 AND - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ALL 47 - + SUM( DISTINCT + - 67 ) col1 FROM tab1
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6320
SELECT ALL 47 - + SUM ( DISTINCT + - 67 ) col1 FROM tab1
----
114

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

query I rowsort
SELECT DISTINCT 32 - + + col1 AS col2 FROM tab0
----
-49
11
31

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col1 col1 FROM tab1
----
138
65
90

query I rowsort
SELECT 91 - - + col2 AS col1 FROM tab0
----
101
138
190

query I rowsort
SELECT 9 * - col2 FROM tab1
----
-531
-612
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-6327
SELECT - 21 DIV - ( col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6327
SELECT - 21 / - ( col0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 48 * - - 98 FROM tab1
----
4704

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

skipif mysql # not compatible
query I rowsort label-6329
SELECT DISTINCT + MAX ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + col2 NOT BETWEEN + + col2 * 78 AND + col0 * - col1 + - col2 + + col2 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + col2 * + ( col2 ) + col1 + - + 59 + ( - ( - col2 ) ) + + 53 + - ( col0 ) * + + col0 * + col0 FROM tab1 cor0 WHERE NOT NULL <= - col0 + 83
----

query III rowsort
SELECT ALL col1 AS col0, col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to 4db7e40f31038b56f4bd7f1a45a18073

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

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

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

query I rowsort
SELECT DISTINCT + 85 * + ( - - 75 ) * col1 * + 1 FROM tab2
----
325125
427125
490875

query II rowsort
SELECT DISTINCT col0 * col1 AS col2, 45 FROM tab2
----
2346
45
4928
45
5025
45

query I rowsort
SELECT DISTINCT - 85 - - 74 FROM tab1 WHERE - + col2 <= NULL
----

query II rowsort
SELECT - col2 + 19 AS col1, col2 + col0 AS col2 FROM tab0
----
-28
62
-80
196
9
97

query I rowsort
SELECT DISTINCT 39 + + col1 + + col0 AS col0 FROM tab0
----
135
137
147

query I rowsort
SELECT - col0 + ( - 80 ) - + col0 AS col0 FROM tab0 AS cor0
----
-110
-254
-274

onlyif mysql # DIV for integer division: 
query I rowsort label-6344
SELECT DISTINCT + + col1 DIV + 9 - - 93 + - col0 FROM tab2 AS cor0
----
25
37
52

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + + col1 / + 9 - - 93 + - col0 FROM tab2 AS cor0
----
25
37
52

query I rowsort
SELECT - ( + 81 ) * + 43 * + - 81 * col1 FROM tab2
----
14388273
18902241
21723471

onlyif mysql # DIV for integer division: 
query I rowsort label-6346
SELECT ALL ( + col1 ) DIV col2 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL ( + col1 ) / col2 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT - 34 - - col0 FROM tab2 AS cor0
----
12
30
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT - - 30 - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> col0
----
30

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - - 30 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> col0
----
30

query I rowsort
SELECT - col1 * - 77 + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-22
1607
6190

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6351
SELECT ALL col0 - + 66 DIV col0 * col2 + col0 FROM tab0 AS cor0
----
-158
174
194

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL col0 - + 66 / col0 * col2 + col0 FROM tab0 AS cor0
----
-158
174
194

query I rowsort
SELECT ALL - col1 * - 20 + - 52 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6353
SELECT ALL + col1 - + - col0 col1, + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0
----
108
NULL
96
NULL
98
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6354
SELECT ALL + 52 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL + 52 / col2 FROM tab2
----
0
1
2

query I rowsort
SELECT - 58 * col0 FROM tab0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL COUNT( * ) * + MAX( col1 ) AS col2 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL COUNT ( * ) * + MAX ( col1 ) AS col2 FROM tab1
----
141

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6357
SELECT DISTINCT - 83 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT + COUNT( + + 63 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + COUNT ( + + 63 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-6359
SELECT ALL 30 DIV + + col2 AS col1, 95 - col2 + - col0 - + 74 * - + 19 FROM tab2
----
0
1368
0
1397
1
1432

skipif mysql # not compatible
query II rowsort label-6359
SELECT ALL 30 / + + col2 AS col1, 95 - col2 + - col0 - + 74 * - + 19 FROM tab2
----
0
1368
0
1397
1
1432

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

query II rowsort
SELECT ALL + ( + 30 ), + col0 FROM tab0 cor0
----
30
15
30
87
30
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL MAX( ALL col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL MAX ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT - + col1 * - 35 AS col1 FROM tab0 cor0
----
2835
35
735

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

query I rowsort
SELECT DISTINCT ( - 33 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL > NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 BETWEEN - - 56 AND - col2 * ( 59 ) )
----

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

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

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

query I rowsort
SELECT + 4 + col1 FROM tab1 AS cor0
----
18
51
9

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + - 68 AS col1 FROM tab2
----
-10
-28
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6377
SELECT CAST( 61 AS SIGNED ) * - col1 FROM tab1
----
-2867
-305
-854

skipif mysql # not compatible
query I rowsort label-6377
SELECT CAST ( 61 AS INTEGER ) * - col1 FROM tab1
----
-2867
-305
-854

query I rowsort
SELECT DISTINCT - 50 + + + col0 FROM tab2
----
-4
14
25

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

query I rowsort
SELECT DISTINCT + 23 + 81 FROM tab1
----
104

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6382
SELECT - 4 DIV - 41 + - - col0 - col2 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-6382
SELECT - 4 / - 41 + - - col0 - col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL + + col0 - 35 + - col1 AS col1 FROM tab1 AS cor0
----
2
45
9

query I rowsort
SELECT DISTINCT ( + + 18 ) + - - 14 + + 37 * - + 55 * - 63 AS col0 FROM tab2
----
128237

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 0 * col2 col2, - col1 AS col1 FROM tab1 AS cor0
----
0
-14
0
-47
0
-5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6388
SELECT - + CAST( NULL AS SIGNED ) col2, - col0 * + CAST( + - 70 AS DECIMAL ) FROM tab0 cor0 WHERE col2 + col0 + - 48 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6388
SELECT - + CAST ( NULL AS INTEGER ) col2, - col0 * + CAST ( + - 70 AS REAL ) FROM tab0 cor0 WHERE col2 + col0 + - 48 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6389
SELECT ALL + + col0 * col1 + + col2 DIV + 68 * - col2 * + 89 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL + + col0 * col1 + + col2 / + 68 * - col2 * + 89 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 25 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 25 AS col0 FROM tab1 cor0
----
NULL

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

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

query I rowsort
SELECT ALL col0 * - 57 AS col0 FROM tab1 cor0
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT 68 * - COUNT( * ) FROM tab0, tab1 AS cor0
----
-612

skipif mysql # not compatible
query I rowsort label-6394
SELECT 68 * - COUNT ( * ) FROM tab0, tab1 AS cor0
----
-612

query I rowsort
SELECT ALL 40 * + + col0 FROM tab0
----
3480
3880
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - COUNT( * ) * - MAX( ALL + - 21 ) * COUNT( * ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-6396
SELECT - COUNT ( * ) * - MAX ( ALL + - 21 ) * COUNT ( * ) FROM tab0
----
-189

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE NOT + + col2 = + + 25
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT - COUNT( * ) FROM tab0, tab0 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT ALL 39 * + + 59 FROM tab0
----
2301
2301
2301

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

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

skipif mysql # not compatible
query I rowsort label-6401
SELECT - COUNT ( - 61 ) AS col0 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 59 col0, col1 + + + col2 AS col2 FROM tab1 AS cor0
----
-59
110
-59
115
-59
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + - MAX( - + 70 ) - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + - MAX ( - + 70 ) - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab1 WHERE NULL NOT IN ( col2 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT CAST( ( - col0 ) AS SIGNED ) * col0 AS col0 FROM tab1 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-6405
SELECT CAST ( ( - col0 ) AS INTEGER ) * col0 AS col0 FROM tab1 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT - col1 + col1 * 44 AS col0 FROM tab1
----
2021
215
602

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT DISTINCT 45 + col2 DIV + col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT 45 + col2 / + col2 FROM tab1
----
46

query I rowsort
SELECT - 73 + + col1 AS col0 FROM tab2
----
-22
-6
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT ALL + col0 + - col0 * CAST( + 53 * - 22 AS SIGNED ) FROM tab1
----
106197
59517
99195

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL + col0 + - col0 * CAST ( + 53 * - 22 AS INTEGER ) FROM tab1
----
106197
59517
99195

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT ALL + 67 * - MAX( DISTINCT 40 ) AS col1 FROM tab0
----
-2680

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + 67 * - MAX ( DISTINCT 40 ) AS col1 FROM tab0
----
-2680

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

skipif mysql # not compatible
query I rowsort label-6414
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----
0

query I rowsort
SELECT + 97 - - col0 AS col0 FROM tab1
----
148
182
188

query I rowsort
SELECT col1 * 2 + - 95 AS col1 FROM tab2
----
39
59
7

query I rowsort
SELECT - col2 * 15 + col1 FROM tab1
----
-1426
-880
-973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT CAST( 81 AS SIGNED ) + - col2 AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-18
34
71

skipif mysql # not compatible
query I rowsort label-6418
SELECT CAST ( 81 AS INTEGER ) + - col2 AS col1 FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
-18
34
71

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

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

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

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) FROM tab0
----
15
87
97

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

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT MIN( DISTINCT + 38 ) col0 FROM tab1 WHERE 10 * col2 + + col1 <> col2 * col1
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6424
SELECT DISTINCT MIN ( DISTINCT + 38 ) col0 FROM tab1 WHERE 10 * col2 + + col1 <> col2 * col1
----
38

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

query I rowsort
SELECT DISTINCT col2 - col1 * col1 FROM tab1
----
-100
-2141
34

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

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

query I rowsort
SELECT ALL col0 + 98 AS col1 FROM tab1 AS cor0
----
149
183
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + col2 col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT 67 FROM tab1 AS cor0 WHERE + 64 * col2 IN ( 44 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT DISTINCT 40 * 24 + SUM( col2 ) FROM tab2 AS cor0
----
1081

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT 40 * 24 + SUM ( col2 ) FROM tab2 AS cor0
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT + MIN( ALL 67 ) AS col1 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-6432
SELECT + MIN ( ALL 67 ) AS col1 FROM tab0
----
67

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT 35 - col1 AS col0 FROM tab0
----
-46
14
34

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 - 71 > NULL
----

query I rowsort
SELECT AVG ( - 81 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 30
----
NULL

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 85 * + col2 NOT BETWEEN col0 AND + col0 + 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT - MAX( DISTINCT - 19 ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6441
SELECT - MAX ( DISTINCT - 19 ) FROM tab2 AS cor0
----
19

query I rowsort
SELECT + ( - 1 ) FROM tab2 cor0
----
-1
-1
-1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT DISTINCT ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) + COUNT( * ) * + 18 AS col2 FROM tab1 WHERE ( NULL ) <> + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) * + 18 AS col2 FROM tab1 WHERE ( NULL ) <> + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + MIN( - + ( 19 ) ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-6445
SELECT + MIN ( - + ( 19 ) ) FROM tab1
----
-19

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

skipif mysql # not compatible
query I rowsort label-6446
SELECT + COUNT ( DISTINCT 26 ) FROM tab1
----
1

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

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

query I rowsort
SELECT ALL col2 * + col2 FROM tab0 WHERE + col1 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + col0 FROM tab0 WHERE NOT NULL >= ( + col2 * - col2 )
----

query I rowsort
SELECT - 18 * 10 * col0 AS col1 FROM tab2 AS cor0
----
-11520
-13500
-8280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT DISTINCT col0 * 10 * col0 + - CAST( 17 AS SIGNED ) col2 FROM tab0 AS cor0
----
2233
75673
94073

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6453
SELECT DISTINCT col0 * 10 * col0 + - CAST ( 17 AS INTEGER ) col2 FROM tab0 AS cor0
----
2233
75673
94073

query I rowsort
SELECT + col1 * + col1 + - 98 AS col0 FROM tab2 AS cor0
----
2503
4391
5831

query I rowsort
SELECT + + ( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL + AVG ( ALL 99 ) AS col2 FROM tab1 AS cor0 WHERE + 56 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 + + ( 63 ) FROM tab1 AS cor0
----
114
148
154

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + 35 col1 FROM tab1 AS cor0
----
-24
-33
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT + ( + col0 ) DIV - col0 + col2 AS col0 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + ( + col0 ) / - col0 + col2 AS col0 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT - 66 * - + COUNT( * ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - 66 * - + COUNT ( * ) FROM tab0 AS cor0
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT col2 + + col2 DIV + 75 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT col2 + + col2 / + 75 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 IS NULL
----
23
40
58

query I rowsort
SELECT - col1 * col2 * + 14 * 50 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-145173
-2663685
-69203

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ALL - - col1 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL - - col1 / col1 FROM tab2 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT ALL + ( AVG ( DISTINCT - col2 ) ) FROM tab0 WHERE NOT - col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT + COUNT( ALL - 76 ) * 13 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-6468
SELECT + COUNT ( ALL - 76 ) * 13 FROM tab2
----
39

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

query I rowsort
SELECT - 78 FROM tab2 WHERE ( + col0 * - - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT 91 * + MAX( DISTINCT - col0 ) FROM tab0 WHERE 51 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT 91 * + MAX ( DISTINCT - col0 ) FROM tab0 WHERE 51 >= NULL
----
NULL

query I rowsort
SELECT ALL + ( + ( - col2 ) ) AS col1 FROM tab0 WHERE + 4 < ( - col2 + col0 )
----
-10

query I rowsort
SELECT + col1 - - 71 AS col0 FROM tab2
----
122
138
148

query I rowsort
SELECT DISTINCT 41 + col1 FROM tab0
----
122
42
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT ALL + 16 * COUNT( * ) FROM tab0 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL + 16 * COUNT ( * ) FROM tab0 cor0
----
48

query I rowsort
SELECT - col0 - + + 28 * - + 7 * - - col2 FROM tab2 AS cor0
----
11293
4462
7776

query I rowsort
SELECT DISTINCT + 26 - 88 AS col0 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT ALL + - AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6479
SELECT - col2 - + 99 AS col1 FROM tab1 AS cor0 WHERE NULL >= + col0 + col2 + - - CAST( NULL AS SIGNED ) / 62
----

skipif mysql # not compatible
query I rowsort label-6479
SELECT - col2 - + 99 AS col1 FROM tab1 AS cor0 WHERE NULL >= + col0 + col2 + - - CAST ( NULL AS INTEGER ) / 62
----

query I rowsort
SELECT 7 * - col0 * col1 + + col0 * - col2 FROM tab2 AS cor0
----
-17480
-37056
-39525

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT - COUNT( * ) * + 12 - + 17 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - COUNT ( * ) * + 12 - + 17 FROM tab0 AS cor0
----
-53

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

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - COUNT ( * ) - + 70 FROM tab2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT - col2 DIV - col0 + - 97 AS col0 FROM tab0
----
-94
-96
-97

skipif mysql # not compatible
query I rowsort label-6484
SELECT - col2 / - col0 + - 97 AS col0 FROM tab0
----
-94
-96
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6485
SELECT ALL - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

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

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

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

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

query I rowsort
SELECT col0 * + + 0 AS col0 FROM tab0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6491
SELECT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6491
SELECT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
3

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

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

query I rowsort
SELECT ALL - 64 AS col2 FROM tab2 WHERE + col0 NOT IN ( col2 )
----
-64
-64
-64

query I rowsort
SELECT + 68 AS col1 FROM tab1 WHERE NOT - + 75 >= + col0 + col2
----
68
68
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6496
SELECT - CAST( + MIN( DISTINCT - col0 ) AS SIGNED ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6496
SELECT - CAST ( + MIN ( DISTINCT - col0 ) AS INTEGER ) FROM tab2
----
75

query I rowsort
SELECT DISTINCT - 19 * - - 16 AS col1 FROM tab1
----
-304

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6499
SELECT - COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
-9

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

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

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

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

query I rowsort
SELECT ALL - col2 * - + 83 * + col1 FROM tab2
----
255640
322538
97359

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ALL - 96 * ( - COUNT( * ) ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - 96 * ( - COUNT ( * ) ) AS col0 FROM tab1
----
288

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * + col0 + - + col0 + - - col2 FROM tab1 cor0
----
-4300
-451
-669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29, col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 22 + col1 * + 97 * + + col0 * - 73 AS col2 FROM tab1 AS cor0
----
-3009403
-30285415
-5055812

query I rowsort
SELECT 90 * + 48 + + - col1 * - 79 * col1 FROM tab1 AS cor0
----
178831
19804
6295

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT col2 <= col0
----
-2

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT col2 <= col0
----
-2

query I rowsort
SELECT col1 + + 14 AS col0 FROM tab0
----
15
35
95

query I rowsort
SELECT - 39 + col1 AS col1 FROM tab2
----
12
28
38

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

query III rowsort
SELECT * FROM tab0 WHERE - - col0 = 18
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 79 NOT IN ( + ( 28 ), + col0 + + col1 )
----

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

query I rowsort
SELECT ALL col1 * + + 0 * + ( col0 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + - 57 + col1 * + - 1 FROM tab2
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6521
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( ( - 75 ) * - + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) / ( - 64 ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6521
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( ( - 75 ) * - + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) / ( - 64 ) ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + 18 + col1 AS col2 FROM tab1
----
23
32
65

query I rowsort
SELECT ALL + + 72 + 62 - - + 48 AS col1 FROM tab0 cor0
----
182
182
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 61 - + col1 col1, ( + 65 ) FROM tab2 AS cor0
----
1352
65
2363
65
3471
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT + MAX( ALL + 62 ) * COUNT( * ) * - 52 + COUNT( * ) FROM tab2
----
-9669

skipif mysql # not compatible
query I rowsort label-6527
SELECT + MAX ( ALL + 62 ) * COUNT ( * ) * - 52 + COUNT ( * ) FROM tab2
----
-9669

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( 75 - - 72 - - col2 * - col2 * - col0, + col0 )
----

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

query I rowsort
SELECT + + col0 * + - col2 + - + 11 AS col0 FROM tab0 cor0
----
-716
-881
-9614

query I rowsort
SELECT + col0 * + - col1 * + 70 * + col0 AS col2 FROM tab0 AS cor0
----
-11126430
-1275750
-658630

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6532
SELECT DISTINCT - COUNT ( ALL col2 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ( + + 8 ) * + col0 FROM tab2
----
368
512
600

query III rowsort
SELECT * FROM tab0 WHERE 33 IS NULL AND - 49 BETWEEN - col0 + - col2 AND + 31 + + col0
----

query I rowsort
SELECT 55 * - - 43 AS col0 FROM tab2 cor0
----
2365
2365
2365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6536
SELECT + CAST( + + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) + + col0 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT + CAST ( + + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) + + col0 < NULL )
----
0

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

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

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

query I rowsort
SELECT + 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT DISTINCT - COUNT( * ) - + 44 col1 FROM tab0 cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6541
SELECT DISTINCT - COUNT ( * ) - + 44 col1 FROM tab0 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6542
SELECT ALL 99 + col2 * + + CAST( + col2 AS SIGNED ) + + 54 AS col1 FROM tab1 cor0
----
3634
4777
9369

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL 99 + col2 * + + CAST ( + col2 AS INTEGER ) + + 54 AS col1 FROM tab1 cor0
----
3634
4777
9369

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 10 / + col0 * - col2 IS NULL
----

query I rowsort
SELECT ALL 19 * - - col2 FROM tab1 AS cor0
----
1121
1292
1824

query I rowsort
SELECT + 89 * col1 FROM tab0 AS cor0
----
1869
7209
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT - 93 * - ( - - COUNT( * ) ) FROM tab0 cor0
----
279

skipif mysql # not compatible
query I rowsort label-6546
SELECT - 93 * - ( - - COUNT ( * ) ) FROM tab0 cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT - - CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6547
SELECT - - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IN ( - + col2, 89, + - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * col0 - + 69 + - 7 - + - 95 FROM tab1
----
4296
444
733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col2 col2, col0 - + col2 * + 7 AS col0 FROM tab2 AS cor0
----
17
-331
23
-115
24
-216

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

query I rowsort
SELECT 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6555
SELECT 23 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6555
SELECT 23 / + col1 AS col1 FROM tab1 AS cor0
----
0
1
4

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6558
SELECT - ( - - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 96 / + 35 + 99 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6560
SELECT ALL CAST( NULL AS SIGNED ), + ( - 58 ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
-1218
NULL
-4698
NULL
-58

skipif mysql # not compatible
query II rowsort label-6560
SELECT ALL CAST ( NULL AS INTEGER ), + ( - 58 ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
-1218
NULL
-4698
NULL
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6561
SELECT ALL * FROM tab1 WHERE + col1 + - 0 BETWEEN NULL AND + + col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6561
SELECT ALL * FROM tab1 WHERE + col1 + - 0 BETWEEN NULL AND + + col0 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( - 70 * - col0, 17 * - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6563
SELECT ALL + 51 DIV + - COUNT( * ) col1 FROM tab1
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6563
SELECT ALL + 51 / + - COUNT ( * ) col1 FROM tab1
----
-17

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6565
SELECT DISTINCT - CAST( - 21 AS SIGNED ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-6565
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) AS col0 FROM tab0
----
21

query I rowsort
SELECT DISTINCT col1 * - col2 + - col2 + - col2 * - + col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( 38 + + col0 ) IS NOT NULL
----

query I rowsort
SELECT ( - - 53 ) + + col1 FROM tab0
----
134
54
74

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

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

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

query I rowsort
SELECT + 30 + + + 52 * + col2 FROM tab2 AS cor0
----
1226
2110
3046

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

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

query I rowsort
SELECT ALL - - col1 * - + 69 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col2 * col0
----

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

query I rowsort
SELECT DISTINCT - col2 * + col0 + + + ( col2 ) * + + col0 FROM tab1
----
0

query I rowsort
SELECT ALL - + 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL - 64 - - col1 + col2 FROM tab1 AS cor0
----
0
46
51

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

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

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

query I rowsort
SELECT DISTINCT 78 - - col2 + + + ( - 26 ) + col0 * + + 71 AS col2 FROM tab0 AS cor0
----
1164
6239
7038

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 60 BETWEEN ( - - col0 * col2 ) AND NULL
----

query I rowsort
SELECT ALL + 85 - ( col2 ) + - 79 AS col2 FROM tab2 AS cor0
----
-17
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT COUNT( + col0 ) + + 79 AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-6584
SELECT COUNT ( + col0 ) + + 79 AS col2 FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + 18 * + COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + 18 * + COUNT ( * ) FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT + COUNT( * ) * + + ( - + 44 ) * - COUNT( + - col2 ) FROM tab0
----
396

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT + COUNT ( * ) * + + ( - + 44 ) * - COUNT ( + - col2 ) FROM tab0
----
396

onlyif mysql # aggregate syntax: 
query II rowsort label-6587
SELECT - COUNT( * ) col2, 64 FROM tab1
----
-3
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6587
SELECT - COUNT ( * ) col2, 64 FROM tab1
----
-3
64

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6589
SELECT DISTINCT ( + - SUM( DISTINCT + CAST( 92 AS SIGNED ) ) ), - 1 * + CAST( - - 26 AS SIGNED ) AS col0 FROM tab2
----
-92
-26

skipif mysql # not compatible
query II rowsort label-6589
SELECT DISTINCT ( + - SUM ( DISTINCT + CAST ( 92 AS INTEGER ) ) ), - 1 * + CAST ( - - 26 AS INTEGER ) AS col0 FROM tab2
----
-92
-26

query II rowsort
SELECT col0 * - col0 AS col1, - col1 FROM tab0
----
-225
-81
-7569
-21
-9409
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6591
SELECT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6591
SELECT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + col0 / 93 AS col0 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6594
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + ( - col2 ) * 82 * + col2 * col2 * + + col0 )
----

skipif mysql # not compatible
query III rowsort label-6594
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + ( - col2 ) * 82 * + col2 * col2 * + + col0 )
----

query I rowsort
SELECT + - col2 * - 80 + - - col1 FROM tab0 AS cor0
----
3841
7921
821

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT 12 * - COUNT( * ) + 73 AS col0 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT 12 * - COUNT ( * ) + 73 AS col0 FROM tab0 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6597
SELECT DISTINCT - - col0 DIV + col1 FROM tab2 WHERE NULL IS NULL
----
0
1

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT - - col0 / + col1 FROM tab2 WHERE NULL IS NULL
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 18 * + 48 * + 92 AS col2, + ( + - 79 ) col2 FROM tab1
----
79488
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6599
SELECT ALL 48, - col2 FROM tab0 AS cor0 WHERE NOT - 72 * col1 * - + CAST( - - col1 AS SIGNED ) * - col2 + - + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6599
SELECT ALL 48, - col2 FROM tab0 AS cor0 WHERE NOT - 72 * col1 * - + CAST ( - - col1 AS INTEGER ) * - col2 + - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 NOT BETWEEN + col2 AND col1
----

query I rowsort
SELECT DISTINCT + 50 * - col1 + + + col2 + + - col1 * - - col0 + - + col0 + - col0 - + col0 * + col0 FROM tab0 AS cor0
----
-10610
-5473
-9651

query I rowsort
SELECT - col0 + 13 * col0 AS col1 FROM tab1 AS cor0
----
1020
1092
612

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6603
SELECT - ( - col0 ) + col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-6603
SELECT - ( - col0 ) + col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
NULL
133
NULL
69
NULL

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - + 10 ) FROM tab0
----
-10

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

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL COUNT ( * ) / + - 99 AS col2 FROM tab0
----
0

query I rowsort
SELECT + col2 * + col2 + + 90 AS col2 FROM tab2 WHERE NOT + - col2 IS NULL
----
1690
3454
619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6611
SELECT COUNT( * ) DIV 55 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT COUNT ( * ) / 55 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - AVG ( + col2 ) FROM tab2 WHERE + col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL + 26 * COUNT( * ) FROM tab1 cor0
----
78

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL + 26 * COUNT ( * ) FROM tab1 cor0
----
78

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + - SUM( DISTINCT + col2 ) * - 55 col1 FROM tab1 WHERE + - 20 * - col2 IS NOT NULL
----
12265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6616
SELECT + - SUM ( DISTINCT + col2 ) * - 55 col1 FROM tab1 WHERE + - 20 * - col2 IS NOT NULL
----
12265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6617
SELECT ALL col1 + ( - 66 ) + ( + CAST( + 68 AS SIGNED ) ) FROM tab1
----
16
49
7

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL col1 + ( - 66 ) + ( + CAST ( + 68 AS INTEGER ) ) FROM tab1
----
16
49
7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6619
SELECT col2 DIV + - ( 92 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT col2 / + - ( 92 ) FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT COUNT( * ) + - - MAX( - - col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT COUNT ( * ) + - - MAX ( - - col0 ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT - ( + 90 ) * - - 94 FROM tab2 AS cor0
----
-8460
-8460
-8460

query I rowsort
SELECT ALL - col0 + - 17 AS col2 FROM tab2 AS cor0
----
-63
-81
-92

query I rowsort
SELECT ALL + - 12 * - 79 - + col1 + - col0 AS col1 FROM tab1 AS cor0
----
810
858
883

query I rowsort
SELECT + - col1 / + col2 * + 48 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 48
----

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

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

query I rowsort
SELECT DISTINCT col2 + + 81 AS col0 FROM tab1 AS cor0
----
140
149
177

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6628
SELECT ALL - + COUNT( * ) + + COUNT( * ) DIV - MIN( + ( col1 ) ) AS col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) / - MIN ( + ( col1 ) ) AS col0 FROM tab0 cor0
----
-6

query II rowsort
SELECT + col0 * + 40 * - + col0, + col2 AS col1 FROM tab0 AS cor0 WHERE - col2 - + col2 IN ( + + col1 * - + ( - - 53 ), + col1 / col0 * col2 * + - col2, + 25, col1 )
----

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

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

query I rowsort
SELECT + 39 FROM tab1 AS cor0 WHERE 8 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - col0 + - - col2 FROM tab0 AS cor0
----
10
47
99

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 * - - ( - 67 ) + - - col1 <= NULL
----

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

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

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 - col1 + - 62 BETWEEN - + 34 AND + - col0
----
46
64
75

query I rowsort
SELECT - + col0 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 42 * 2 AS col1 FROM tab2
----
84

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 33 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6640
SELECT - 90 DIV + 12 + COUNT( * ) col0, 55 AS col2 FROM tab1 AS cor0
----
-4
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6640
SELECT - 90 / + 12 + COUNT ( * ) col0, 55 AS col2 FROM tab1 AS cor0
----
-4
55

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6645
SELECT ALL + col2 DIV 39 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL + col2 / 39 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL + col0 + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + col0 + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
102
170
182

query II rowsort
SELECT ALL - 0, + col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT 51 * + COUNT( * ) col2 FROM tab0 cor0
----
153

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL + col1 DIV - 45 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL + col1 / - 45 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6650
SELECT + 82 DIV + 42 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6650
SELECT + 82 / + 42 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col1 + + - col2 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6652
SELECT + 1 DIV col1 + - col1 + - 97 * 82 FROM tab1 cor0
----
-7959
-7968
-8001

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 1 / col1 + - col1 + - 97 * 82 FROM tab1 cor0
----
-7959
-7968
-8001

query II rowsort
SELECT - 11 + col2, + 72 AS col1 FROM tab2 cor0
----
12
72
29
72
47
72

query I rowsort
SELECT - + 89 + - ( + col0 ) FROM tab1 AS cor0
----
-140
-174
-180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL - col0 + + - 78 - CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-170
-206
-228

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - col0 + + - 78 - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-170
-206
-228

query II rowsort
SELECT - col2, + 28 + + 55 + col2 AS col2 FROM tab2
----
-23
106
-40
123
-58
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6657
SELECT col0 - CAST( - 36 AS SIGNED ) + - col0 * col2 AS col0 FROM tab0
----
-654
-747
-9470

skipif mysql # not compatible
query I rowsort label-6657
SELECT col0 - CAST ( - 36 AS INTEGER ) + - col0 * col2 AS col0 FROM tab0
----
-654
-747
-9470

query I rowsort
SELECT + - 14 / + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT 54 * ( + 96 ) FROM tab0
----
5184
5184
5184

query I rowsort
SELECT + col1 * - + col1 AS col2 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6662
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6662
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6664
SELECT ALL col2 * - col2 + CAST( - 60 AS SIGNED ) FROM tab1 AS cor0
----
-3541
-4684
-9276

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL col2 * - col2 + CAST ( - 60 AS INTEGER ) FROM tab1 AS cor0
----
-3541
-4684
-9276

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6665
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT 7 * + + 34 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6665
SELECT col1 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT 7 * + + 34 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT 33 DIV 79 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6666
SELECT 33 / 79 AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT + + 66 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - 86 + + SUM( ALL col1 ) AS col2 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - 86 + + SUM ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 91
----

query I rowsort
SELECT DISTINCT + - col2 + 82 FROM tab2 AS cor0
----
24
42
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL - 62 + + COUNT( * ) * - + COUNT( * ) FROM tab2 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - 62 + + COUNT ( * ) * - + COUNT ( * ) FROM tab2 cor0
----
-71

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

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

query I rowsort
SELECT + col1 + - 42 FROM tab2 AS cor0
----
25
35
9

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 99 BETWEEN col0 AND 14 * + 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 52 AS col1, + ( col0 ) + + col2 AS col1 FROM tab2
----
52
104
52
133
52
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT + ( - SUM( ALL - col2 ) ) * 54 * 66 FROM tab1
----
794772

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT + ( - SUM ( ALL - col2 ) ) * 54 * 66 FROM tab1
----
794772

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

skipif mysql # not compatible
query III rowsort label-6680
SELECT * FROM tab1 WHERE NULL NOT IN ( col1, CAST ( NULL AS INTEGER ) * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT DISTINCT - + 81 + - col2 DIV - 72 FROM tab1 AS cor0
----
-80
-81

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT - + 81 + - col2 / - 72 FROM tab1 AS cor0
----
-80
-81

query II rowsort
SELECT ALL col0 AS col1, col0 * - - col1 FROM tab1 AS cor0
----
51
714
85
425
91
4277

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = + col2 * + + 25 + col1
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT col0 DIV col2 * - 37 * + - 45 FROM tab2 AS cor0
----
1665
1665
3330

skipif mysql # not compatible
query I rowsort label-6688
SELECT col0 / col2 * - 37 * + - 45 FROM tab2 AS cor0
----
1665
1665
3330

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

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = - - 73
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 15 col1, + col2 FROM tab2
----
-15
23
-15
40
-15
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT MAX( - 37 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-6693
SELECT MAX ( - 37 ) FROM tab0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, col1 FROM tab1
----
14
14
47
47
5
5

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6698
SELECT DISTINCT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) + + - 64 + + 38 + 11 > NULL
----

skipif mysql # not compatible
query III rowsort label-6698
SELECT DISTINCT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + + - 64 + + 38 + 11 > NULL
----

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

query I rowsort
SELECT DISTINCT - col0 * - - col2 + + + 54 FROM tab0 AS cor0 WHERE NOT col0 - col0 - + col2 > NULL
----

query I rowsort
SELECT DISTINCT col2 + - 10 AS col0 FROM tab0 AS cor0
----
0
37
89

query I rowsort
SELECT ALL + 86 + + - col1 AS col2 FROM tab2 AS cor0
----
19
35
9

query I rowsort
SELECT - - col0 + col0 * - col1 * + 47 FROM tab2 cor0
----
-110216
-231552
-236100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6704
SELECT ALL - ( - CAST( - col0 AS SIGNED ) ) * + CAST( + col0 AS SIGNED ) FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL - ( - CAST ( - col0 AS INTEGER ) ) * + CAST ( + col0 AS INTEGER ) FROM tab1
----
-2601
-7225
-8281

query II rowsort
SELECT ALL 82, - 24 AS col1 FROM tab0
----
82
-24
82
-24
82
-24

query I rowsort
SELECT ALL col0 + + col1 FROM tab0 WHERE NOT 67 IS NULL
----
108
96
98

onlyif mysql # DIV for integer division: 
query II rowsort label-6707
SELECT col2 + + col0 * 39 + + - 60 DIV 26, col1 AS col0 FROM tab1
----
2083
14
3372
5
3615
47

skipif mysql # not compatible
query II rowsort label-6707
SELECT col2 + + col0 * 39 + + - 60 / 26, col1 AS col0 FROM tab1
----
2083
14
3372
5
3615
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6708
SELECT * FROM tab1 WHERE ( NOT CAST( NULL AS SIGNED ) * - 39 / col1 = ( NULL ) )
----

skipif mysql # not compatible
query III rowsort label-6708
SELECT * FROM tab1 WHERE ( NOT CAST ( NULL AS INTEGER ) * - 39 / col1 = ( NULL ) )
----

query I rowsort
SELECT ALL - 52 * + - col2 FROM tab2
----
1196
2080
3016

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6711
SELECT ALL - col0 DIV + col2 + ( - + 55 ) FROM tab0 cor0
----
-55
-55
-63

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - col0 / + col2 + ( - + 55 ) FROM tab0 cor0
----
-55
-55
-63

query I rowsort
SELECT ALL + + 60 + col2 + - 69 FROM tab1 cor0
----
50
59
87

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6714
SELECT MIN ( DISTINCT col2 ) col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL + COUNT( * ) * + - 75 + + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-222

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + COUNT ( * ) * + - 75 + + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-222

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + + 25 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT - ( col2 ) DIV - 99 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT - ( col2 ) / - 99 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6719
SELECT 30 * COUNT( 7 ), 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
90
80

skipif mysql # not compatible
query II rowsort label-6719
SELECT 30 * COUNT ( 7 ), 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
90
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6720
SELECT ALL - ( + - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - ( + - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT col0, col1 - 86 + + 68 AS col2 FROM tab2 AS cor0
----
46
33
64
59
75
49

query II rowsort
SELECT DISTINCT + col2, 2 AS col1 FROM tab1 AS cor0
----
59
2
68
2
96
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 24 = 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT - MIN( + col1 ) FROM tab0 AS cor0 WHERE NOT col1 > col1
----
-1

skipif mysql # not compatible
query I rowsort label-6727
SELECT - MIN ( + col1 ) FROM tab0 AS cor0 WHERE NOT col1 > col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT 26 * COUNT( * ) AS col0 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT 26 * COUNT ( * ) AS col0 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT COUNT( * ) * + - MIN( DISTINCT - + col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-6729
SELECT COUNT ( * ) * + - MIN ( DISTINCT - + col2 ) FROM tab1
----
288

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 67 ) NOT BETWEEN + col0 AND 75
----
15
81
47

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( - 51, col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + col1 ) IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-6735
SELECT + 19 DIV - + col2, col1, 92 AS col1 FROM tab1 cor0
----
9 values hashing to dfc350152bb5084372973186f2b2b26e

skipif mysql # not compatible
query III rowsort label-6735
SELECT + 19 / - + col2, col1, 92 AS col1 FROM tab1 cor0
----
9 values hashing to dfc350152bb5084372973186f2b2b26e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6736
SELECT ALL - - 22 + - - 1 DIV + MIN( ALL - + col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL - - 22 + - - 1 / + MIN ( ALL - + col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
22

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

query I rowsort
SELECT + ( + 75 ) + - col0 AS col2 FROM tab0 AS cor0
----
-12
-22
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL MAX( DISTINCT + + col0 ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL MAX ( DISTINCT + + col0 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 + + col2 + - ( + col2 ) - + col1 * + col0 col0 FROM tab2 AS cor0
----
-2249
-4787
-4883

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

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

query III rowsort
SELECT + - 78 AS col1, - col1 * + 33 * + col0 AS col2, 29 AS col0 FROM tab2 AS cor0
----
9 values hashing to 9ea525bfd0e93443f5850b8db511ac2c

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT - col0 DIV col1 - col2 * + 62 FROM tab2
----
-1426
-2480
-3597

skipif mysql # not compatible
query I rowsort label-6746
SELECT - col0 / col1 - col2 * + 62 FROM tab2
----
-1426
-2480
-3597

query I rowsort
SELECT 34 - - col2 AS col2 FROM tab0
----
133
44
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6748
SELECT + 20 + col0 DIV + - 12 AS col1 FROM tab0 AS cor0
----
12
13
19

skipif mysql # not compatible
query I rowsort label-6748
SELECT + 20 + col0 / + - 12 AS col1 FROM tab0 AS cor0
----
12
13
19

query I rowsort
SELECT 35 + + + 77 FROM tab1 AS cor0
----
112
112
112

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

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

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

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

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

query I rowsort
SELECT ALL + + 84 * 85 AS col2 FROM tab1 AS cor0
----
7140
7140
7140

query I rowsort
SELECT - col1 * 60 - + + col0 FROM tab1 AS cor0
----
-2911
-385
-891

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

skipif mysql # not compatible
query I rowsort label-6755
SELECT - + col1 / - 73 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT DISTINCT + - ( COUNT( * ) ) * + 88 * + + 15 FROM tab1 AS cor0
----
-3960

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + - ( COUNT ( * ) ) * + 88 * + + 15 FROM tab1 AS cor0
----
-3960

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT - 50 * - + COUNT( ALL + - col0 ) + + 33 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-6758
SELECT - 50 * - + COUNT ( ALL + - col0 ) + + 33 FROM tab2 AS cor0
----
183

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 * + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * - 65 * - col2 AS col1 FROM tab2 AS cor0
----
104000
218660
34385

query I rowsort
SELECT ALL - 7 AS col2 FROM tab1 cor0
----
-7
-7
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6762
SELECT ALL - MIN( CAST( - col0 AS DECIMAL ) ) * + + CAST( NULL AS SIGNED ) + + MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL - MIN ( CAST ( - col0 AS REAL ) ) * + + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT + MIN( - ( + col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6763
SELECT + MIN ( - ( + col1 ) ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT 7 * + + MIN( ALL - col0 ) col1 FROM tab2
----
-525

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6764
SELECT 7 * + + MIN ( ALL - col0 ) col1 FROM tab2
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + MIN( ALL col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6765
SELECT + MIN ( ALL col2 ) FROM tab1
----
59

query I rowsort
SELECT 76 * + 71 + 79 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 90d1a4eafb879e5088ffaaa02c7d5bc7

query II rowsort
SELECT + col1 AS col0, col2 * + + col2 FROM tab2
----
51
529
67
3364
77
1600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6768
SELECT - CAST( NULL AS SIGNED ), - CAST( - 8 AS SIGNED ) AS col0 FROM tab2
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-6768
SELECT - CAST ( NULL AS INTEGER ), - CAST ( - 8 AS INTEGER ) AS col0 FROM tab2
----
NULL
8
NULL
8
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL + COUNT( * ) * - 85 AS col1 FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + COUNT ( * ) * - 85 AS col1 FROM tab0
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - MAX( DISTINCT - col0 ) + - + COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6770
SELECT - MAX ( DISTINCT - col0 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT DISTINCT - ( - ( - 48 ) ) DIV + col0 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT - ( - ( - 48 ) ) / + col0 FROM tab0 AS cor0
----
-3
0

query I rowsort
SELECT ALL - + 74 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL + COUNT( - 13 ) + - + 65 col0 FROM tab1
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6773
SELECT ALL + COUNT ( - 13 ) + - + 65 col0 FROM tab1
----
-62

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

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

query I rowsort
SELECT DISTINCT + + 45 + + - ( - + 51 ) FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT COUNT( * ) + 13 AS col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT COUNT ( * ) + 13 AS col1 FROM tab0 AS cor0
----
16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT ALL - + COUNT( * ) + 89 AS col0 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-6778
SELECT ALL - + COUNT ( * ) + 89 AS col0 FROM tab2 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6779
SELECT DISTINCT + 46 - + - 94, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
140
NULL

skipif mysql # not compatible
query II rowsort label-6779
SELECT DISTINCT + 46 - + - 94, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
140
NULL

query I rowsort
SELECT 25 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2 + + col2 )
----

query I rowsort
SELECT + col1 + + col2 + 41 FROM tab0 AS cor0
----
141
169
72

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT ALL + - 20 - - 30 AS col2, SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
10
223

skipif mysql # not compatible
query II rowsort label-6782
SELECT ALL + - 20 - - 30 AS col2, SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
10
223

query I rowsort
SELECT DISTINCT + col1 - 71 AS col1 FROM tab0
----
-50
-70
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + - col0 col0 FROM tab0
----
-115
-125
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT - MIN( col1 ) + - MIN( ALL + + col2 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-6785
SELECT - MIN ( col1 ) + - MIN ( ALL + + col2 ) FROM tab2
----
-74

query I rowsort
SELECT ALL - 10 + + + col2 FROM tab0
----
0
37
89

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

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

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

query I rowsort
SELECT DISTINCT - + 13 * - col0 AS col0 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query II rowsort label-6790
SELECT ALL - ( - 33 ) * 70 AS col0, COUNT( * ) FROM tab2 AS cor0
----
2310
3

skipif mysql # not compatible
query II rowsort label-6790
SELECT ALL - ( - 33 ) * 70 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
2310
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT ALL + COUNT( DISTINCT 54 ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6791
SELECT ALL + COUNT ( DISTINCT 54 ) col1 FROM tab0 AS cor0
----
1

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 61 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT - col2 DIV col1 * - 15 * - ( + ( + col2 ) ) FROM tab0 AS cor0
----
-147015
0
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT - col2 / col1 * - 15 * - ( + ( + col2 ) ) FROM tab0 AS cor0
----
-147015
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT + 83 + + MIN( ALL - ( + col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, 99 FROM tab1
----
14
99
47
99
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL SUM( ALL - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL SUM ( ALL - col1 ) FROM tab0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < + 30
----
51
14
96
85
5
59

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 96 AND NULL
----

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-6808
SELECT ALL - MAX( ALL - - 33 ) AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL - MAX ( ALL - - 33 ) AS col2 FROM tab2
----
-33

query I rowsort
SELECT DISTINCT 18 + - 20 * + col2 - - + col1 FROM tab1
----
-1157
-1295
-1888

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6813
SELECT ALL + + col0 + + col1 AS col2, CAST( NULL AS SIGNED ) * + col0 FROM tab1 cor0
----
138
NULL
65
NULL
90
NULL

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL + + col0 + + col1 AS col2, CAST ( NULL AS INTEGER ) * + col0 FROM tab1 cor0
----
138
NULL
65
NULL
90
NULL

query I rowsort
SELECT - 40 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-2360
-2720
-3840

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

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

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

query I rowsort
SELECT ALL + col2 - 24 FROM tab2 AS cor0
----
-1
16
34

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

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

query I rowsort
SELECT + - col0 - - col0 * + col0 + 87 AS col2 FROM tab1 cor0
----
2637
7227
8277

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

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

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

query I rowsort
SELECT ALL 24 - 3 FROM tab1
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 AS cor0 WHERE NOT - 67 <= - col0
----
87
97

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

query I rowsort
SELECT + col0 * + 99 * - 48 * + 64 AS col2 FROM tab1 AS cor0
----
-15510528
-25850880
-27675648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6826
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6826
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
0

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

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

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

query I rowsort
SELECT + - 59 * + col2 AS col2 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6830
SELECT DISTINCT + + 10 col1, 34 DIV - + 25 + COUNT( 43 ) AS col0 FROM tab0 AS cor0
----
10
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6830
SELECT DISTINCT + + 10 col1, 34 / - + 25 + COUNT ( 43 ) AS col0 FROM tab0 AS cor0
----
10
2

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

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT COUNT ( 6 ) FROM tab0 AS cor0
----
3

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

query I rowsort
SELECT 30 + col2 + + - col2 FROM tab0
----
30
30
30

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

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

query I rowsort
SELECT + col1 + + - col1 + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + 48 + + col1 + - 45 * + 93 AS col2 FROM tab0
----
-4056
-4116
-4136

query I rowsort
SELECT + col0 + + - 43 FROM tab2 AS cor0
----
21
3
32

query I rowsort
SELECT - col1 - + 30 AS col2 FROM tab0
----
-111
-31
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT ALL + - 55 DIV + - 22 - - 90 AS col2 FROM tab1 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL + - 55 / + - 22 - - 90 AS col2 FROM tab1 cor0
----
92
92
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT COUNT( * ) * + 11 AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT COUNT ( * ) * + 11 AS col0 FROM tab1
----
33

query III rowsort
SELECT * FROM tab0 WHERE NOT - 78 >= - - 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - - 42 ) * + col2 - - col2 col1 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT col2 * 48 FROM tab1
----
2832
3264
4608

query II rowsort
SELECT ALL - 36, 23 AS col0 FROM tab2
----
-36
23
-36
23
-36
23

query I rowsort
SELECT col1 * + col2 * - 79 FROM tab2
----
-243320
-306994
-92667

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT 85 * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-6849
SELECT 85 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-765

query I rowsort
SELECT + 45 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT + col1 + - + col0 * + - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
2397
5005
5092

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6853
SELECT ALL - - col2 DIV + col0 + + col1 FROM tab1 cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6853
SELECT ALL - - col2 / + col0 + + col1 FROM tab1 cor0
----
15
47
5

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT ALL - SUM( ALL + col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL - SUM ( ALL + col1 ) AS col0 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT ALL - 42 * CAST( NULL AS SIGNED ) - - 85 FROM tab2 WHERE NOT ( NOT NULL > col2 + + col1 * + - col0 )
----

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - 42 * CAST ( NULL AS INTEGER ) - - 85 FROM tab2 WHERE NOT ( NOT NULL > col2 + + col1 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT ALL + SUM( + col2 ) + - COUNT( DISTINCT + 90 ) FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + SUM ( + col2 ) + - COUNT ( DISTINCT + 90 ) FROM tab1 AS cor0
----
222

query I rowsort
SELECT ALL + 15 * - - col1 FROM tab2 AS cor0
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT - MAX( col0 ) * + COUNT( * ) + COUNT( * ) FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-6861
SELECT - MAX ( col0 ) * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
-270

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 + 65 col1 FROM tab2
----
99
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) BETWEEN ( + 28 ) AND 12
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6866
SELECT + COUNT( * ) * - 96 + - CAST( - 32 AS SIGNED ) * + CAST( + 81 AS SIGNED ) AS col1 FROM tab2
----
2304

skipif mysql # not compatible
query I rowsort label-6866
SELECT + COUNT ( * ) * - 96 + - CAST ( - 32 AS INTEGER ) * + CAST ( + 81 AS INTEGER ) AS col1 FROM tab2
----
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6867
SELECT - 12 / - CAST( NULL AS SIGNED ) + + ( - 37 + ( - COUNT( * ) ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT - 12 / - CAST ( NULL AS INTEGER ) + + ( - 37 + ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
NULL

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

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

query I rowsort
SELECT col1 + - 12 AS col2 FROM tab1
----
-7
2
35

query I rowsort
SELECT 16 + - col0 FROM tab0 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6871
SELECT ALL col2 DIV col2 - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL col2 / col2 - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-50
-84
-90

query I rowsort
SELECT DISTINCT + col1 * + 23 AS col1 FROM tab1 WHERE NOT 89 + - 37 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT 75 - + COUNT( * ) AS col1 FROM tab0
----
72

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

query I rowsort
SELECT 13 + - col2 AS col0 FROM tab1
----
-46
-55
-83

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT CAST( - ( col2 ) AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6878
SELECT CAST ( - ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT - 1 - 32 FROM tab2
----
-33
-33
-33

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 AS col0 FROM tab1
----
1248
236
3128

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

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

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

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

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

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

query I rowsort
SELECT col0 * - 26 + - col0 AS col0 FROM tab2 WHERE col2 * 61 IS NOT NULL
----
-1242
-1728
-2025

query I rowsort
SELECT - 2 AS col2 FROM tab2 WHERE NOT - 98 IS NULL
----
-2
-2
-2

query I rowsort
SELECT ALL 54 - + col0 FROM tab2 AS cor0 WHERE NOT 10 NOT BETWEEN + 71 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT 87 * + COUNT( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-6888
SELECT 87 * + COUNT ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
261

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 9 * 79 ) >= - 18
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT ALL + - ( 24 ) + - ( col1 ) DIV col1 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + - ( 24 ) + - ( col1 ) / col1 FROM tab0 AS cor0
----
-25
-25
-25

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

skipif mysql # not compatible
query I rowsort label-6894
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT - MIN( DISTINCT col2 ) + - 22 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT - MIN ( DISTINCT col2 ) + - 22 FROM tab2 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 + col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL + + 97 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT + + CAST( 1 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-6901
SELECT + + CAST ( 1 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT + col0 IN ( col1 )
----
-46
-64
-75

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

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

query I rowsort
SELECT col2 + - + 46 * + col2 AS col2 FROM tab2
----
-1035
-1800
-2610

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - 86 * + col1 + + 69 NOT BETWEEN - col2 AND NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT MIN( ALL 64 ) + MIN( - col0 ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-6906
SELECT MIN ( ALL 64 ) + MIN ( - col0 ) AS col0 FROM tab1
----
-27

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

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

query I rowsort
SELECT col0 * + - col1 + - col1 FROM tab1
----
-430
-4324
-728

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

query I rowsort
SELECT ALL + col1 + - + ( - col1 ) AS col1 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT 56 * col2 * + 43 + col2 FROM tab2
----
139722
55407
96360

query I rowsort
SELECT DISTINCT - + 89 + col1 * + col1 FROM tab0 AS cor0
----
-88
352
6472

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6913
SELECT * FROM tab1 AS cor0 WHERE ( - CAST( 16 AS SIGNED ) ) BETWEEN - col2 * 15 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6913
SELECT * FROM tab1 AS cor0 WHERE ( - CAST ( 16 AS INTEGER ) ) BETWEEN - col2 * 15 AND NULL
----

query I rowsort
SELECT DISTINCT 2 * col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - 88
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6915
SELECT DISTINCT COUNT( DISTINCT + col1 ) - 44 DIV SUM( DISTINCT 36 ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT COUNT ( DISTINCT + col1 ) - 44 / SUM ( DISTINCT 36 ) FROM tab2 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT COUNT( * ) * + 7 FROM tab0 AS cor0 WHERE - col0 > ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6916
SELECT COUNT ( * ) * + 7 FROM tab0 AS cor0 WHERE - col0 > ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT + 97 - SUM( 75 ) FROM tab1 cor0
----
-128

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT + 97 - SUM ( 75 ) FROM tab1 cor0
----
-128

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL - - 81 - COUNT( * ) * - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
828

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL - - 81 - COUNT ( * ) * - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6922
SELECT - - COUNT( * ) DIV 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6922
SELECT - - COUNT ( * ) / 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL + - ( - + 76 ) * + - CAST ( NULL AS INTEGER ) * + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6925
SELECT COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL < NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6927
SELECT DISTINCT 23 AS col1, + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-6927
SELECT DISTINCT 23 AS col1, + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
23
NULL

query II rowsort
SELECT + col1, - col1 + col2 FROM tab2 AS cor0
----
51
-28
67
-9
77
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL + + col1 * - col0 DIV - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + + col1 * - col0 / - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

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

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

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

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

query I rowsort
SELECT DISTINCT + 37 * 21 FROM tab0 WHERE ( + col2 ) IN ( - col1 + + 2 )
----

query I rowsort
SELECT ALL col2 / col2 FROM tab2 WHERE col2 IN ( + ( + col0 ) )
----

query I rowsort
SELECT 36 * - col2 * + 97 * col1 FROM tab1
----
-1030140
-11160432
-4693248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6936
SELECT DISTINCT + 5 * - - col1 / - 34 * CAST( NULL AS SIGNED ) * - 75 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT + 5 * - - col1 / - 34 * CAST ( NULL AS INTEGER ) * - 75 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / col1 IN ( col0 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - MIN( DISTINCT + - 93 ) * - COUNT( * ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6941
SELECT - MIN ( DISTINCT + - 93 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-279

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6943
SELECT + + 74 DIV + col2 + - col2 * 25 + 13 FROM tab1 cor0
----
-1461
-1686
-2387

skipif mysql # not compatible
query I rowsort label-6943
SELECT + + 74 / + col2 + - col2 * 25 + 13 FROM tab1 cor0
----
-1461
-1686
-2387

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT DISTINCT - + COUNT( * ) * + - 97 AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6944
SELECT DISTINCT - + COUNT ( * ) * + - 97 AS col1 FROM tab0 AS cor0
----
291

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6946
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * - col1 * - CAST( NULL AS SIGNED ) * col1 + + 90 AND - 50
----

skipif mysql # not compatible
query III rowsort label-6946
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * - col1 * - CAST ( NULL AS INTEGER ) * col1 + + 90 AND - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT - 48 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT - 48 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT + 89 + col0 + + 66, - col2 AS col1 FROM tab2 AS cor0
----
201
-23
219
-40
230
-58

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 89 * 64 >= col2
----

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

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

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

query I rowsort
SELECT DISTINCT - + 28 AS col1 FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT - CAST( 23 AS SIGNED ) FROM tab0 AS cor0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-6954
SELECT - CAST ( 23 AS INTEGER ) FROM tab0 AS cor0
----
-23
-23
-23

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 10, col1 + - col0 col1 FROM tab0
----
-10
-66
-10
-96
-10
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6957
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + col1 * 27 <= 72 * - 2 + + col0 * + col2 + - col1 * + col0
----
3

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + col1 * 27 <= 72 * - 2 + + col0 * + col2 + - col1 * + col0
----
3

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

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 WHERE NOT - 59 <= + col2
----

query I rowsort
SELECT ALL 35 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * - + col1 + + + col0 col2 FROM tab0
----
-3792
-900
50

query I rowsort
SELECT col2 + - 36 FROM tab1 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT DISTINCT - 18 AS col1 FROM tab0 WHERE ( NOT + col2 + - col2 / + + CAST( NULL AS SIGNED ) BETWEEN ( 54 ) AND ( col2 ) )
----

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT - 18 AS col1 FROM tab0 WHERE ( NOT + col2 + - col2 / + + CAST ( NULL AS INTEGER ) BETWEEN ( 54 ) AND ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6964
SELECT DISTINCT - COUNT( * ) AS col2, - COUNT( DISTINCT col0 ) FROM tab0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6964
SELECT DISTINCT - COUNT ( * ) AS col2, - COUNT ( DISTINCT col0 ) FROM tab0
----
-3
-3

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

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + COUNT ( * ) + - + MIN ( DISTINCT - col2 ) FROM tab2
----
61

query I rowsort
SELECT col0 - + - col2 + col1 FROM tab0
----
118
143
197

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

query I rowsort
SELECT DISTINCT - col1 * + col2 + 39 FROM tab2 AS cor0
----
-1134
-3041
-3847

query I rowsort
SELECT ( - col1 ) * - - col1 + - + col2 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT ALL + + 22 - 88 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT + + 30 + + col2 AS col1 FROM tab0 AS cor0
----
129
40
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT - col1 DIV - 79 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6972
SELECT - col1 / - 79 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 70 * 84 IS NULL
----
-51
-67
-77

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6976
SELECT * FROM tab1 WHERE ( NOT - + col2 >= + - col1 - 21 ) OR 68 - + col1 * CAST( NULL AS SIGNED ) <> ( 33 )
----
51
14
96
85
5
59

skipif mysql # not compatible
query III rowsort label-6976
SELECT * FROM tab1 WHERE ( NOT - + col2 >= + - col1 - 21 ) OR 68 - + col1 * CAST ( NULL AS INTEGER ) <> ( 33 )
----
51
14
96
85
5
59

query I rowsort
SELECT DISTINCT + col0 * + 44 AS col0 FROM tab1 AS cor0
----
2244
3740
4004

query I rowsort
SELECT + 85 + - - 82 * ( + col0 ) AS col1 FROM tab0 cor0
----
1315
7219
8039

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT ALL 63 DIV 26 AS col0 FROM tab0 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL 63 / 26 AS col0 FROM tab0 cor0
----
2
2
2

query I rowsort
SELECT ALL + - 84 - + 46 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col1 + + 23 FROM tab2 AS cor0
----
100
74
90

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

query I rowsort
SELECT ALL col0 + - - 72 AS col1 FROM tab0
----
159
169
87

query I rowsort
SELECT ALL - 81 * + col0 + - + 2 FROM tab0 AS cor0
----
-1217
-7049
-7859

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT DISTINCT + - col1 + - col0 - col2 DIV 96 FROM tab1 AS cor0
----
-138
-66
-90

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT + - col1 + - col0 - col2 / 96 FROM tab1 AS cor0
----
-138
-66
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT DISTINCT + col2 DIV - + col2 - + col2 + - - col2 * 63 DIV - 65 + + - col0 - + 39 AS col1 FROM tab0 AS cor0
----
-146
-147
-331

skipif mysql # not compatible
query I rowsort label-6987
SELECT DISTINCT + col2 / - + col2 - + col2 + - - col2 * 63 / - 65 + + - col0 - + 39 AS col1 FROM tab0 AS cor0
----
-146
-147
-331

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + COUNT( * ) * - + 74 + ( - + 88 ) AS col0 FROM tab0
----
-310

skipif mysql # not compatible
query I rowsort label-6991
SELECT + COUNT ( * ) * - + 74 + ( - + 88 ) AS col0 FROM tab0
----
-310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 WHERE NOT NULL >= - col2
----

query II rowsort
SELECT - 39 AS col2, - 82 AS col0 FROM tab2
----
-39
-82
-39
-82
-39
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT + col0 FROM tab0 WHERE + - col1 NOT IN ( - - col1 * + + col2 * 36 - + col2 + - + col2, + CAST( - - col2 AS SIGNED ) + col0 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6994
SELECT + col0 FROM tab0 WHERE + - col1 NOT IN ( - - col1 * + + col2 * 36 - + col2 + - + col2, + CAST ( - - col2 AS INTEGER ) + col0 )
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6995
SELECT - 42 DIV + col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT - 42 / + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 - - - 20 AS col0 FROM tab2 AS cor0
----
20
3
38

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / 84 < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT DISTINCT CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6999
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7000
SELECT ALL + 13 AS col2 FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) > ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + 13 AS col2 FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) > ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 14 * + 73 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - 78 AND - - 11 * + - col2 * + col2 + + 75
----

query II rowsort
SELECT + col2, 41 FROM tab2 cor0
----
23
41
40
41
58
41

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT MIN( - 65 ) AS col1 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7008
SELECT MIN ( - 65 ) AS col1 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL MAX( ALL 74 ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL MAX ( ALL 74 ) FROM tab1 AS cor0
----
74

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col1, col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - + col2 * - 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7013
SELECT * FROM tab2 WHERE NOT + CAST( col2 AS SIGNED ) + col0 * + - col1 IN ( - col1 + col1 - - 24 * - 94 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7013
SELECT * FROM tab2 WHERE NOT + CAST ( col2 AS INTEGER ) + col0 * + - col1 IN ( - col1 + col1 - - 24 * - 94 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7015
SELECT ALL + 40 DIV 54 DIV - COUNT( * ) + MIN( DISTINCT + col0 ) + - - COUNT( * ) + + 58 AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + 40 / 54 / - COUNT ( * ) + MIN ( DISTINCT + col0 ) + - - COUNT ( * ) + + 58 AS col0 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7016
SELECT ALL 20 * SUM( + + 46 ) col1, - 54 AS col2 FROM tab0
----
2760
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7016
SELECT ALL 20 * SUM ( + + 46 ) col1, - 54 AS col2 FROM tab0
----
2760
-54

query I rowsort
SELECT - ( + - col1 ) * 1 * - 34 * + col0 + ( + 25 ) + col1 + 64 FROM tab1
----
-14356
-145282
-24173

query I rowsort
SELECT ALL + - col1 + + col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT MAX( ALL - 43 ) - + MAX( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT MAX ( ALL - 43 ) - + MAX ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-101

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

query II rowsort
SELECT + + 38 AS col0, col1 * - 67 FROM tab2 AS cor0
----
38
-3417
38
-4489
38
-5159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + - + col2 * 39 col0 FROM tab0 cor0
----
-2217
-3048
-3958

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT ALL + + MIN( + ( + col1 ) ) + - MAX( + 5 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL + + MIN ( + ( + col1 ) ) + - MAX ( + 5 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 42 - + 52 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT 96 / col0 FROM tab2 WHERE NOT - 59 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7026
SELECT ALL - CAST( NULL AS DECIMAL ) * - 93 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - CAST ( NULL AS REAL ) * - 93 AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7028
SELECT DISTINCT - 15 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT - 15 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

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

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

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

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

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

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

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

query I rowsort
SELECT - + 96 AS col1 FROM tab1 AS cor0
----
-96
-96
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 63 * + + 67 * - 38 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + - 27 IN ( ( + + col2 ), 79 * + ( + + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT COUNT( * ) * 75 AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-7037
SELECT COUNT ( * ) * 75 AS col1 FROM tab2 AS cor0
----
225

query I rowsort
SELECT DISTINCT + + 85 AS col2 FROM tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT 91 * + col2 FROM tab2 AS cor0
----
2093
3640
5278

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7042
SELECT COUNT ( * ) AS col1, 45 col2 FROM tab2
----
3
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + SUM( + col0 ) + + + 28 AS col1 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-7044
SELECT + SUM ( + col0 ) + + + 28 AS col1 FROM tab2
----
213

query I rowsort
SELECT col2 + + 74 FROM tab2
----
114
132
97

query I rowsort
SELECT DISTINCT col1 * + 4 AS col1 FROM tab2
----
204
268
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + 57 - - 92 col2 FROM tab1
----
200
234
240

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

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

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

query I rowsort
SELECT ALL + 43 * + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-210528
-215645
-266084

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT + COUNT( * ) * - - 24 AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + COUNT ( * ) * - - 24 AS col1 FROM tab0
----
72

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + + col2 - - col0 * col1 < NULL
----

query I rowsort
SELECT + 70 * - - col0 FROM tab0
----
1050
6090
6790

query III rowsort
SELECT * FROM tab1 WHERE 19 + - col0 - - - col0 * + col1 IS NULL
----

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

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

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

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

query I rowsort
SELECT + 55 * + + col0 AS col1 FROM tab0
----
4785
5335
825

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7064
SELECT CAST( + ( - ( - COUNT( * ) ) ) AS SIGNED ) DIV 45 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7064
SELECT CAST ( + ( - ( - COUNT ( * ) ) ) AS INTEGER ) / 45 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

query I rowsort
SELECT - ( 68 ) FROM tab1
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + col2 * + - 57 AS col1 FROM tab1
----
-3363
-3876
-5472

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7068
SELECT DISTINCT + - CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT + - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ( + 58 ) + - - COUNT( * ) + + 69 AS col0 FROM tab0 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-7070
SELECT ( + 58 ) + - - COUNT ( * ) + + 69 AS col0 FROM tab0 AS cor0
----
130

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT DISTINCT + - col0 DIV - + col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT + - col0 / - + col1 FROM tab1 AS cor0
----
1
17
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL IN ( col2 + - + 31, 91 * - 69 * col1 * + col0 + - 84, + + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL IN ( col2 + - + 31, 91 * - 69 * col1 * + col0 + - 84, + + col2 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7075
SELECT - 30 DIV ( - + col2 ) * - col0 FROM tab0 AS cor0
----
-261
0
0

skipif mysql # not compatible
query I rowsort label-7075
SELECT - 30 / ( - + col2 ) * - col0 FROM tab0 AS cor0
----
-261
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7076
SELECT DISTINCT MIN( + col1 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT MIN ( + col1 ) / + COUNT ( * ) FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT + - 52 * + - col2 FROM tab2 WHERE - col0 + - + ( + col1 ) + + - 21 + + 1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 79 <> 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7080
SELECT 34 * - ( - 89 ) AS col0, COUNT( ALL - 9 ) col2 FROM tab2
----
3026
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7080
SELECT 34 * - ( - 89 ) AS col0, COUNT ( ALL - 9 ) col2 FROM tab2
----
3026
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT - MAX( + col0 ) FROM tab2 WHERE - + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT - MAX ( + col0 ) FROM tab2 WHERE - + col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 1 <= NULL
----

query I rowsort
SELECT - 10 + - 86 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - COUNT( * ) + 9 AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7084
SELECT - COUNT ( * ) + 9 AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL 81 * 45 AS col2 FROM tab1 AS cor0
----
3645
3645
3645

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

query I rowsort
SELECT ALL + + ( - 85 ) + + + 20 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE 66 + - col1 <= + + col1
----
68

query I rowsort
SELECT - col2 * - 98 * col1 AS col1 FROM tab2 AS cor0
----
114954
301840
380828

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7091
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - - col1 ) + + + col0 AND - CAST( - 69 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7091
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - - col1 ) + + + col0 AND - CAST ( - 69 AS REAL )
----

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE - 68 + col2 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT + 16 - + col2 AS col0 FROM tab0 AS cor0
----
-31
-83
6

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / + 67 NOT IN ( + col2 + - 93 + - col2, ( - - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7099
SELECT ( COUNT( * ) ), 64 AS col0 FROM tab2 AS cor0
----
3
64

skipif mysql # not compatible
query II rowsort label-7099
SELECT ( COUNT ( * ) ), 64 AS col0 FROM tab2 AS cor0
----
3
64

query II rowsort
SELECT DISTINCT - ( - ( col0 ) ) * + - ( - col1 ), col1 FROM tab1
----
425
5
4277
47
714
14

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

query I rowsort
SELECT + 53 * col1 FROM tab2
----
2703
3551
4081

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab0 cor0 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT ALL - 36 * + + 51 AS col2 FROM tab2 AS cor0
----
-1836
-1836
-1836

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( col1 + col1 + - - col1 ) <= col1 / col2 * + + ( 20 ) + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query II rowsort
SELECT DISTINCT + col2, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7111
SELECT DISTINCT + ( + - COUNT( * ) ) * + MIN( ALL - col0 ) * + + SUM( + col0 ) col1, 96 FROM tab2
----
41625
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7111
SELECT DISTINCT + ( + - COUNT ( * ) ) * + MIN ( ALL - col0 ) * + + SUM ( + col0 ) col1, 96 FROM tab2
----
41625
96

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

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

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

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

query I rowsort
SELECT DISTINCT + 61 * col2 AS col2 FROM tab0 AS cor0
----
2867
6039
610

query I rowsort
SELECT + + col2 * + 66 AS col0 FROM tab2 AS cor0
----
1518
2640
3828

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT ALL + - 33 DIV col1 * - 8 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL + - 33 / col1 * - 8 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab1 cor0
----
61

query I rowsort
SELECT - 22 * col0 + 74 AS col1 FROM tab0
----
-1840
-2060
-256

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

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

query I rowsort
SELECT DISTINCT ( - + col2 ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 38 + ( + col0 ) FROM tab1
----
123
129
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 = NULL )
----

query I rowsort
SELECT - - ( + 65 ) AS col0 FROM tab0 WHERE NULL IN ( - - col1 / - + col1, - col1 )
----

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

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

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

query I rowsort
SELECT ALL + 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 93 IS NULL
----

query I rowsort
SELECT + 90 + col0 AS col0 FROM tab0
----
105
177
187

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT col1 + - 96 DIV - col1 FROM tab1 AS cor0
----
20
24
49

skipif mysql # not compatible
query I rowsort label-7128
SELECT col1 + - 96 / - col1 FROM tab1 AS cor0
----
20
24
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT + + ( 44 ) + COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT + + ( 44 ) + COUNT ( * ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT + + col0 AS col2 FROM tab0 cor0 WHERE NOT NULL > col2 * - 31
----

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

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

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

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

query I rowsort
SELECT ( - 83 ) FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7135
SELECT + CAST( + ( MIN( ALL - - col0 ) ) AS SIGNED ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7135
SELECT + CAST ( + ( MIN ( ALL - - col0 ) ) AS INTEGER ) AS col2 FROM tab2
----
46

query II rowsort
SELECT ALL - col2, col0 * + col1 + - - ( + - col2 ) AS col0 FROM tab1
----
-59
366
-68
4209
-96
618

onlyif mysql # DIV for integer division: 
query II rowsort label-7137
SELECT col2, + col1 DIV + 84 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-7137
SELECT col2, + col1 / + 84 FROM tab2
----
23
0
40
0
58
0

query II rowsort
SELECT DISTINCT - 94 AS col1, 3 AS col1 FROM tab0
----
-94
3

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

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

query I rowsort
SELECT DISTINCT + 99 * - ( + 32 ) * - - col0 + col1 FROM tab1 AS cor0
----
-161554
-269275
-288241

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

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

query I rowsort
SELECT ALL + col1 * + 3 * col2 FROM tab2
----
11658
3519
9240

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

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

query II rowsort
SELECT ALL - col2 + + 81 AS col0, - 36 + + + 25 FROM tab0 cor0
----
-18
-11
34
-11
71
-11

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

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

query I rowsort
SELECT - - 85 * - + 72 FROM tab1 AS cor0
----
-6120
-6120
-6120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT - + 45 * - - COUNT( * ) AS col0 FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7149
SELECT - + 45 * - - COUNT ( * ) AS col0 FROM tab0 cor0
----
-135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col2 col2 FROM tab2 AS cor0
----
1173
3080
3886

query II rowsort
SELECT ALL 23 AS col1, - 98 FROM tab2
----
23
-98
23
-98
23
-98

query III rowsort
SELECT * FROM tab1 WHERE ( 3 ) <= ( + - 47 )
----

query I rowsort
SELECT ALL ( - col0 ) * 61 - - col2 * - + col0 FROM tab0
----
-15520
-1620
-6177

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT COUNT( * ) + - + 98 AS col1 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT COUNT ( * ) + - + 98 AS col1 FROM tab1
----
-95

query I rowsort
SELECT ALL - col2 + - col0 * - 95 AS col0 FROM tab2
----
4347
6040
7067

query I rowsort
SELECT ALL - col0 * col1 FROM tab1 WHERE NULL BETWEEN - col0 * + 25 - - col2 / + col1 + col1 * - 83 AND NULL AND NOT NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + + 20 + + + col1 * col1 - - 44 col0 FROM tab2 AS cor0
----
3665
5873
7513

query I rowsort
SELECT col0 + - + 54 + 99 AS col1 FROM tab2 AS cor0
----
109
120
91

query I rowsort
SELECT ALL col2 * - - col2 + col2 * + + col2 FROM tab0 AS cor0
----
19602
200
4418

query I rowsort
SELECT ALL + col0 - - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-45
23
26

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7163
SELECT ALL - + 2 DIV 6 * col1 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL - + 2 / 6 * col1 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - 7 AS col0 FROM tab0 AS cor0
----
7
7
7

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

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

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

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

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

query I rowsort
SELECT ALL col0 * + 85 FROM tab1
----
4335
7225
7735

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col2, - col2 * - 4, - + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 * + col1 + 89 IS NULL
----

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

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

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE ( - 71 / - col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT DISTINCT 97 + + ( SUM( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
320

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT 97 + + ( SUM ( DISTINCT + col2 ) ) FROM tab1 AS cor0
----
320

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 29, col1 * - 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT DISTINCT - CAST( - 32 AS SIGNED ) * + + 98 + + + col0 - col1 AS col1 FROM tab2 AS cor0
----
3123
3131
3144

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - CAST ( - 32 AS INTEGER ) * + + 98 + + + col0 - col1 AS col1 FROM tab2 AS cor0
----
3123
3131
3144

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT DISTINCT MIN( - + 12 ) * + SUM( - col0 ) + + 12 * + 21, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
2472
3

skipif mysql # not compatible
query II rowsort label-7179
SELECT DISTINCT MIN ( - + 12 ) * + SUM ( - col0 ) + + 12 * + 21, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
2472
3

query I rowsort
SELECT ALL ( - col2 ) * - - 26 AS col1 FROM tab2
----
-1040
-1508
-598

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT 62 + + col2 DIV - col0 col2 FROM tab1
----
61
62
62

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7182
SELECT ALL - COUNT( * ) * + COUNT( DISTINCT + col2 ), COUNT( DISTINCT 45 ) * - - ( ( - - CAST( 25 AS SIGNED ) ) ) AS col1 FROM tab2
----
-9
25

skipif mysql # not compatible
query II rowsort label-7182
SELECT ALL - COUNT ( * ) * + COUNT ( DISTINCT + col2 ), COUNT ( DISTINCT 45 ) * - - ( ( - - CAST ( 25 AS INTEGER ) ) ) AS col1 FROM tab2
----
-9
25

query I rowsort
SELECT + 78 + - 44 FROM tab0
----
34
34
34

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

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

query I rowsort
SELECT + 9 - + 41 - + 13 AS col1 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - 18 * + 3 AS col0 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT DISTINCT 45 * col1 AS col0 FROM tab0
----
3645
45
945

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

query I rowsort
SELECT ALL 42 FROM tab1 cor0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * + col2 col0 FROM tab2 AS cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT SUM( + - 78 ) AS col2 FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-7192
SELECT SUM ( + - 78 ) AS col2 FROM tab1
----
-234

query I rowsort
SELECT + col0 * 48 * col0 FROM tab0
----
10800
363312
451632

query II rowsort
SELECT ALL - col2 * - 11 * + col2 AS col1, col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT COUNT( * ) * MIN( + col0 ) + - + COUNT( - 74 ) * 34 AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7195
SELECT COUNT ( * ) * MIN ( + col0 ) + - + COUNT ( - 74 ) * 34 AS col1 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT - col0 * ( + 22 ) * - col0 FROM tab1 AS cor0
----
158950
182182
57222

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

query I rowsort
SELECT + 17 + 36 AS col1 FROM tab0
----
53
53
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab2 cor0 WHERE + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7200
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + col1 <= NULL
----
0

query I rowsort
SELECT ALL col1 * + - 51 * - col1 + - + col1 AS col2 FROM tab0 AS cor0
----
22470
334530
50

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL SUM( ALL + 12 ) * COUNT( * ) col0 FROM tab1
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7205
SELECT ALL SUM ( ALL + 12 ) * COUNT ( * ) col0 FROM tab1
----
108

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT MAX( + col0 ) AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
97

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT MAX ( + col0 ) AS col0 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
97

query I rowsort
SELECT DISTINCT - - 13 FROM tab2 WHERE NOT NULL IS NOT NULL
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 8, + 85 col0 FROM tab1
----
8
85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT - 14 col2, + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
-14
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7213
SELECT - 14 col2, + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-14
6

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

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

query I rowsort
SELECT - - 26 * - 60 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
106080
149760
92040

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT ALL SUM( - 41 ) * SUM( - col2 ) DIV 82 * + 10 col0 FROM tab1 AS cor0
----
3340

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7217
SELECT ALL SUM ( - 41 ) * SUM ( - col2 ) / 82 * + 10 col0 FROM tab1 AS cor0
----
3340

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

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT MAX ( - col0 ) / - MAX ( + col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT - COUNT( * ) + 19 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT - COUNT ( * ) + 19 FROM tab1
----
16

query II rowsort
SELECT DISTINCT col1 + ( + col2 ) AS col1, col0 FROM tab1
----
110
51
115
91
64
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL - ( + ( + + ( + - COUNT( * ) ) ) ) * - CAST( - COUNT( + ( - + col0 ) ) AS SIGNED ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL - ( + ( + + ( + - COUNT ( * ) ) ) ) * - CAST ( - COUNT ( + ( - + col0 ) ) AS INTEGER ) FROM tab0
----
9

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

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

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

query I rowsort
SELECT - AVG ( ALL col0 ) + - 46 FROM tab0 WHERE NOT col0 = ( NULL )
----
NULL

query I rowsort
SELECT - - 46 + - 92 * + + 44 AS col0 FROM tab2 AS cor0
----
-4002
-4002
-4002

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 18 * - 31 * + 56 * - col0 > 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT col1 * 76 * - + col2 AS col2 FROM tab2
----
-234080
-295336
-89148

onlyif mysql # aggregate syntax: 
query II rowsort label-7230
SELECT ALL COUNT( * ) * - 80 + + MAX( DISTINCT - col1 ) + - + 8 col2, - COUNT( * ) FROM tab0 AS cor0
----
-249
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7230
SELECT ALL COUNT ( * ) * - 80 + + MAX ( DISTINCT - col1 ) + - + 8 col2, - COUNT ( * ) FROM tab0 AS cor0
----
-249
-3

query I rowsort
SELECT DISTINCT + 78 + + col2 AS col0 FROM tab2 cor0
----
101
118
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7232
SELECT + COUNT( * ) + + 62 * 44 AS col2 FROM tab0 AS cor0 WHERE col2 IN ( + col0, col1, - 77, - + col0, + col1 * + + CAST( NULL AS SIGNED ) + + col2 * - col0, - 72 * - col1 )
----
2728

skipif mysql # not compatible
query I rowsort label-7232
SELECT + COUNT ( * ) + + 62 * 44 AS col2 FROM tab0 AS cor0 WHERE col2 IN ( + col0, col1, - 77, - + col0, + col1 * + + CAST ( NULL AS INTEGER ) + + col2 * - col0, - 72 * - col1 )
----
2728

query I rowsort
SELECT - 28 + + col1 AS col0 FROM tab0 AS cor0
----
-27
-7
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + + 65 * + 22 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
1430

skipif mysql # not compatible
query I rowsort label-7234
SELECT + + 65 * + 22 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
1430

query I rowsort
SELECT - 38 + col1 FROM tab1
----
-24
-33
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT ALL 51 - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL 51 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - COUNT ( ALL + - col1 ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT 52 + 14 FROM tab0
----
66

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

query I rowsort
SELECT 95 * col0 AS col0 FROM tab0
----
1425
8265
9215

onlyif mysql # DIV for integer division: 
query I rowsort label-7241
SELECT - col0 DIV - 10 FROM tab0
----
1
8
9

skipif mysql # not compatible
query I rowsort label-7241
SELECT - col0 / - 10 FROM tab0
----
1
8
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT 2 * + CAST( + col1 AS SIGNED ) * col2 AS col1 FROM tab1
----
2688
590
6392

skipif mysql # not compatible
query I rowsort label-7242
SELECT 2 * + CAST ( + col1 AS INTEGER ) * col2 AS col1 FROM tab1
----
2688
590
6392

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT COUNT( ALL - 2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7245
SELECT COUNT ( ALL - 2 ) AS col1 FROM tab0 AS cor0
----
3

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * - + 15 AS col1 FROM tab0
----
-1215
-15
-315

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL - 64 * 41 DIV - 60 AS col0 FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL - 64 * 41 / - 60 AS col0 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT + col2 * col0 + - ( + col2 ) + + col0 AS col2 FROM tab0 cor0
----
673
947
9601

onlyif mysql # aggregate syntax: 
query I rowsort label-7254
SELECT SUM( ALL col0 ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT SUM ( ALL col0 ) FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----
NULL

query I rowsort
SELECT + + 70 AS col0 FROM tab2 AS cor0
----
70
70
70

query II rowsort
SELECT DISTINCT - - col1 AS col0, 77 * + ( - col0 ) + + - col1 FROM tab2 AS cor0
----
51
-3593
67
-5842
77
-5005

onlyif mysql # aggregate syntax: 
query II rowsort label-7257
SELECT - 35 AS col1, - COUNT( * ) AS col0 FROM tab0 cor0
----
-35
-3

skipif mysql # not compatible
query II rowsort label-7257
SELECT - 35 AS col1, - COUNT ( * ) AS col0 FROM tab0 cor0
----
-35
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 55 BETWEEN + 96 * - col0 AND col1
----
46
51
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7259
SELECT DISTINCT 24 DIV 88 AS col2, - ( + - 57 ) + + COUNT( * ) FROM tab2
----
0
60

skipif mysql # not compatible
query II rowsort label-7259
SELECT DISTINCT 24 / 88 AS col2, - ( + - 57 ) + + COUNT ( * ) FROM tab2
----
0
60

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 BETWEEN - col1 AND - col0 + + ( + col2 )
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + - col1
----

query I rowsort
SELECT ALL - 48 FROM tab1 WHERE NULL IS NULL
----
-48
-48
-48

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7265
SELECT DISTINCT - - col1 DIV 87 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT - - col1 / 87 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + + col0 + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1288
-2368
-675

query II rowsort
SELECT - col0 + col2 AS col0, 43 + col1 FROM tab1 AS cor0
----
-23
90
-26
48
45
57

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 61 BETWEEN - - 67 AND NULL
----

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

query II rowsort
SELECT - + 17 AS col0, - col1 - + + col0 AS col2 FROM tab0 AS cor0
----
-17
-108
-17
-96
-17
-98

query I rowsort
SELECT DISTINCT 5 * - col1 + - col1 - col1 AS col0 FROM tab2 AS cor0
----
-357
-469
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT - MAX( col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - MAX ( col1 ) AS col0 FROM tab0 AS cor0
----
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT 51 * + - MIN( DISTINCT - + col0 ) - COUNT( * ) AS col1 FROM tab1
----
4638

skipif mysql # not compatible
query I rowsort label-7275
SELECT 51 * + - MIN ( DISTINCT - + col0 ) - COUNT ( * ) AS col1 FROM tab1
----
4638

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

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - col0 * - ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT 64 * + 82 FROM tab1
----
5248
5248
5248

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 89 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 7 + + - col1 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 57 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT + + ( - 4 ) / + 97 + 14 * - - ( - + col1 ) FROM tab1 AS cor0 WHERE NOT - 95 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 71 FROM tab2 AS cor0
----
1633
2840
4118

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT col2 AS col2, col0 * col1 * col2 AS col0 FROM tab2
----
23
53958
40
197120
58
291450

query I rowsort
SELECT ALL + 81 AS col2 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7290
SELECT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) < ( 11 )
----

skipif mysql # not compatible
query III rowsort label-7290
SELECT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) < ( 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT col2 + - CAST( + + col1 AS SIGNED ) FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-7291
SELECT col2 + - CAST ( + + col1 AS INTEGER ) FROM tab1
----
21
54
82

query I rowsort
SELECT 37 + - col1 + col2 + + - col0 * + 27 FROM tab0
----
-2323
-2484
-402

query II rowsort
SELECT + col2, col0 AS col2 FROM tab2 WHERE NULL <> - 56
----

query I rowsort
SELECT DISTINCT 7 * col0 AS col1 FROM tab0
----
105
609
679

query I rowsort
SELECT col1 + - + 52 + - col2 AS col0 FROM tab2
----
-15
-24
-43

query I rowsort
SELECT DISTINCT col0 + - - col2 AS col1 FROM tab2
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - - 93 col2 FROM tab1
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT COUNT( * ) + + + COUNT( * ) * + 77 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-7298
SELECT COUNT ( * ) + + + COUNT ( * ) * + 77 FROM tab1
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL + 77 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + 77 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL - - 12 + - col0 AS col1 FROM tab1 AS cor0
----
-39
-73
-79

query I rowsort
SELECT ALL 15 * + - col2 - col2 AS col1 FROM tab0 cor0
----
-1584
-160
-752

query II rowsort
SELECT ALL + col1 + - 98, - col0 * 10 AS col2 FROM tab0 AS cor0
----
-17
-150
-77
-870
-97
-970

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7303
SELECT + ( + CAST( - col2 AS SIGNED ) ) DIV - col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-7303
SELECT + ( + CAST ( - col2 AS INTEGER ) ) / - col1 AS col1 FROM tab1
----
1
11
6

query I rowsort
SELECT - col1 * - col1 * + col0 AS col2 FROM tab0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7305
SELECT - - CAST( + col0 AS SIGNED ) + + + col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7305
SELECT - - CAST ( + col0 AS INTEGER ) + + + col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - col0 * - 73 * - 23 + 87 + - col1 * - - 53 * + col2 + 94 FROM tab1 AS cor0
----
-156680
-158169
-321996

query I rowsort
SELECT + col0 * - - 43 + - - col2 + + 96 * 65 FROM tab2 AS cor0
----
8241
9032
9523

query I rowsort
SELECT ALL - 84 - col0 + + 13 AS col1 FROM tab0 AS cor0
----
-158
-168
-86

query I rowsort
SELECT DISTINCT - ( col2 ) + - 88 - - - ( - col0 ) * - - col0 AS col1 FROM tab0 cor0
----
7471
90
9222

query I rowsort
SELECT ALL + - col0 - + - col1 AS col0 FROM tab0 AS cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT col2 AS col1, 26 FROM tab0
----
10
26
47
26
99
26

query I rowsort
SELECT - col0 * + + 75 FROM tab1
----
-3825
-6375
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT COUNT( * ) * - SUM( col2 ) col0 FROM tab2
----
-363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7313
SELECT COUNT ( * ) * - SUM ( col2 ) col0 FROM tab2
----
-363

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + col1, - col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + 35 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7316
SELECT + 35 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 AS col1, + ( + col0 ) col2 FROM tab0 AS cor0
----
39
15
39
87
39
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7318
SELECT DISTINCT + col2 col0, - 10 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7318
SELECT DISTINCT + col2 col0, - 10 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT SUM( DISTINCT 32 ) AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-7319
SELECT SUM ( DISTINCT 32 ) AS col2 FROM tab2 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col1 FROM tab0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT 58 + COUNT( DISTINCT col2 ) FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-7321
SELECT 58 + COUNT ( DISTINCT col2 ) FROM tab1
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 9 * - col1 + - col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( NULL ) > + 75
----
0

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) > + 75
----
0

query I rowsort
SELECT + col1 * 56 FROM tab0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT + col1 * + col0 + 8 FROM tab2
----
2354
4936
5033

query I rowsort
SELECT DISTINCT col2 + - 89 FROM tab2
----
-31
-49
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT + COUNT( * ) * + ( + 4 * COUNT( * ) ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-7327
SELECT + COUNT ( * ) * + ( + 4 * COUNT ( * ) ) FROM tab0
----
36

query I rowsort
SELECT + ( - 73 ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT DISTINCT - COUNT( * ) + + 40 AS col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - COUNT ( * ) + + 40 AS col2 FROM tab1
----
37

query I rowsort
SELECT 6 + - 47 FROM tab2
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT - 98 * COUNT( * ) AS col1 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-7331
SELECT - 98 * COUNT ( * ) AS col1 FROM tab0
----
-294

query I rowsort
SELECT ( 87 ) + - col0 AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT 99 * COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-7333
SELECT 99 * COUNT ( * ) FROM tab1
----
297

query I rowsort
SELECT + 75 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT - COUNT( * ) * AVG ( col1 * ( - 86 ) ) + - AVG ( 76 - - 24 ) AS col1 FROM tab2 WHERE - col2 + 46 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT - COUNT ( * ) * AVG ( col1 * ( - 86 ) ) + - AVG ( 76 - - 24 ) AS col1 FROM tab2 WHERE - col2 + 46 * col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - 68 + 56 AS col2 FROM tab1
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7337
SELECT - CAST( + 76 AS SIGNED ) AS col2 FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-7337
SELECT - CAST ( + 76 AS INTEGER ) AS col2 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT col1 * 86 + col1 FROM tab0
----
1827
7047
87

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7340
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) IN ( - CAST( + 62 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7340
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) IN ( - CAST ( + 62 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL 85 * - col1 AS col1 FROM tab1
----
-1190
-3995
-425

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 / - col2 + col1 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN - col0 * - col1 + col1 AND 60
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col1 >= col0 * col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL MAX( DISTINCT 54 ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL MAX ( DISTINCT 54 ) AS col0 FROM tab1
----
54

query I rowsort
SELECT - col2 - + col0 FROM tab2 WHERE NOT col0 * - col2 <> NULL
----

query I rowsort
SELECT ALL col0 * ( - col1 ) AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL - 88 - COUNT( * ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - 88 - COUNT ( * ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - col2 + - col0 * - 11 FROM tab0 AS cor0
----
118
947
968

query I rowsort
SELECT + col2 + + 40 FROM tab0 AS cor0
----
139
50
87

query I rowsort
SELECT DISTINCT col1 - - 43 AS col0 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT + 55 * - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-2653
-334
-866

query I rowsort
SELECT DISTINCT 17 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
18
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + - col1 col1 FROM tab0 AS cor0
----
-20
-80
0

query I rowsort
SELECT DISTINCT col0 - + 12 FROM tab2
----
34
52
63

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
-70

query I rowsort
SELECT DISTINCT 2 * 38 AS col2 FROM tab0
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7360
SELECT + 21 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-7360
SELECT + 21 FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IN ( CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT DISTINCT - 39 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT - 39 / col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT MIN( DISTINCT 88 ) AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7362
SELECT MIN ( DISTINCT 88 ) AS col2 FROM tab0 AS cor0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT ALL - 53 + col2 * + col2 FROM tab1 AS cor0 WHERE NOT - 86 > ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL - 53 + col2 * + col2 FROM tab1 AS cor0 WHERE NOT - 86 > ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 70 + col1 * - 3 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 70 + col1 * - 3 ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7365
SELECT + col2 DIV 43 FROM tab1 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7365
SELECT + col2 / 43 FROM tab1 cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT + 72 * COUNT( * ) FROM tab2 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-7366
SELECT + 72 * COUNT ( * ) FROM tab2 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT ALL col1 - - col0 AS col0 FROM tab2 AS cor0 WHERE ( 31 ) IN ( - CAST( NULL AS SIGNED ) * 62 )
----

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL col1 - - col0 AS col0 FROM tab2 AS cor0 WHERE ( 31 ) IN ( - CAST ( NULL AS INTEGER ) * 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7368
SELECT DISTINCT - ( - SUM( CAST( NULL AS DECIMAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT - ( - SUM ( CAST ( NULL AS REAL ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 8 * - col1 FROM tab0
----
-168
-648
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7370
SELECT DISTINCT - col1 DIV - + col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - col1 / - + col1 AS col0 FROM tab2
----
1

query I rowsort
SELECT ALL col0 * - 58 AS col1 FROM tab2
----
-2668
-3712
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN + 59 AND 80
----
0

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col1 NOT BETWEEN + 59 AND 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7373
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + col1 * + CAST( 98 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7373
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + col1 * + CAST ( 98 AS INTEGER ) )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - col0 * + 62 + - 36 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT COUNT( DISTINCT 37 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7375
SELECT COUNT ( DISTINCT 37 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7376
SELECT ALL * FROM tab1 WHERE CAST( col0 AS SIGNED ) / - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7376
SELECT ALL * FROM tab1 WHERE CAST ( col0 AS INTEGER ) / - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7378
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7378
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + col2 IS NULL
----

query I rowsort
SELECT ALL - 43 * + + 61 AS col2 FROM tab0
----
-2623
-2623
-2623

query I rowsort
SELECT + ( + ( col1 ) ) * col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT - 8 * - - col1 AS col0 FROM tab1
----
-112
-376
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT + CAST( - SUM( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + CAST ( - SUM ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab2 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT DISTINCT col1 / + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT col1 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 64 ) IS NOT NULL
----

query I rowsort
SELECT col1 * col0 - + col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT col2 AS col0, col1 AS col0 FROM tab0
----
10
21
47
81
99
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7388
SELECT - + 75 DIV 58 + - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif mysql # not compatible
query I rowsort label-7388
SELECT - + 75 / 58 + - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 14 ) = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <= ( - - 16 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 71 FROM tab1 cor0 WHERE - col1 < + col0
----
3337
355
994

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IN ( 72 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 21 * 70 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col1 ) ) NOT BETWEEN col1 * + 23 AND ( 98 + 54 )
----

query I rowsort
SELECT - 14 + - col2 AS col0 FROM tab0
----
-113
-24
-61

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - col1 + - - col2 )
----

query I rowsort
SELECT + col0 + + + col0 + 8 FROM tab2
----
100
136
158

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col2 ) > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ( COUNT( * ) ) + + MAX( - 86 ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-7398
SELECT ( COUNT ( * ) ) + + MAX ( - 86 ) FROM tab2
----
-83

query II rowsort
SELECT + col1 + + 84 AS col0, + 0 AS col1 FROM tab0
----
105
0
165
0
85
0

query I rowsort
SELECT ALL 60 + - col1 FROM tab2
----
-17
-7
9

query I rowsort
SELECT - 21 * col0 * - 35 + + 3 FROM tab1
----
37488
62478
66888

query I rowsort
SELECT DISTINCT - 28 + - col2 FROM tab1
----
-124
-87
-96

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE ( 68 ) BETWEEN NULL AND ( - col2 * - - col0 * + 54 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL + + col2 * + + CAST( NULL AS SIGNED ) * - 91 * + ( + col2 ) - - 67 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + + col2 * + + CAST ( NULL AS INTEGER ) * - 91 * + ( + col2 ) - - 67 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 48 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col0 ) NOT IN ( - col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 46 + - - 92 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( + + ( - 83 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7409
SELECT DISTINCT + 16 AS col0, + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
16
3

skipif mysql # not compatible
query II rowsort label-7409
SELECT DISTINCT + 16 AS col0, + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
16
3

query I rowsort
SELECT col2 - + 36 FROM tab0
----
-26
11
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col0, col0 * + 11 col2 FROM tab1
----
63
1001
63
561
63
935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 62 col2 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 + 16 col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( ( col0 ) ) AND - col2 - + col2
----

query I rowsort
SELECT 64 * + ( - 81 ) / + 65 - - 16 * - ( ( - 13 ) + col2 * + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - 19 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT ( + 12 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT ( + 12 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * 27 BETWEEN NULL AND - + ( - - ( + ( 65 ) ) ) + - 2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + 19 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND ( + 67 / ( + + col0 ) + + 95 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT SUM( - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT SUM ( - - col2 ) FROM tab0
----
156

query II rowsort
SELECT + col1 AS col0, + 71 AS col1 FROM tab2
----
51
71
67
71
77
71

query I rowsort
SELECT ALL col2 - + col1 * - col1 AS col1 FROM tab0 WHERE ( ( ( col0 ) NOT IN ( 94 ) ) )
----
100
451
6608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 - + 73 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3e323cca4480a8ff656f0db20c1c30c5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7424
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + + CAST( - + col0 AS SIGNED ) / - + col0 AND ( - + col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-7424
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + + CAST ( - + col0 AS INTEGER ) / - + col0 AND ( - + col0 + col1 )
----

query I rowsort
SELECT - + 61 * - ( col2 ) * ( 79 ) - + 66 + col0 FROM tab2 AS cor0
----
110817
192758
279511

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + 80 * + col2 FROM tab0 AS cor0
----
3760
7920
800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 15 + ( - 8 ) * - col2 IN ( - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - + col2 / col0, col2, + col0 * col1 + + 37 * col1 - + ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT DISTINCT 43 - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
34

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT 43 - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 / col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT DISTINCT - 41 DIV - 96 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - 41 / - 96 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 > col1 * + - 58
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7434
SELECT - ( + col0 ), CAST( + 25 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
25
-64
25
-75
25

skipif mysql # not compatible
query II rowsort label-7434
SELECT - ( + col0 ), CAST ( + 25 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
25
-64
25
-75
25

query II rowsort
SELECT DISTINCT + col2 AS col2, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT ALL col0 / col2 + col1 AS col1 FROM tab2 WHERE NOT + 36 * col0 > - 68 * - col1 / col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT - CAST( + 73 AS SIGNED ) FROM tab2
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-7438
SELECT - CAST ( + 73 AS INTEGER ) FROM tab2
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT COUNT( * ) FROM tab0 WHERE col0 >= 41
----
2

skipif mysql # not compatible
query I rowsort label-7439
SELECT COUNT ( * ) FROM tab0 WHERE col0 >= 41
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT - + col0 + col0 / ( + + col1 ) + col1 - - + 23 * + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT - + col0 + col0 / ( + + col1 ) + col1 - - + 23 * + col0 <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT DISTINCT COUNT( * ) + - - COUNT( ALL + col2 ) col2 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7441
SELECT DISTINCT COUNT ( * ) + - - COUNT ( ALL + col2 ) col2 FROM tab0
----
6

query I rowsort
SELECT ALL - - col2 + 44 AS col0 FROM tab2 AS cor0
----
102
67
84

query I rowsort
SELECT - 41 + + - ( - 64 ) FROM tab0 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7444
SELECT - MAX( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT - MAX ( ALL - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT - - 32 DIV - - COUNT( + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7445
SELECT - - 32 / - - COUNT ( + + col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT - + 67 AS col2 FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT 23 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
1475
150212
18816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7449
SELECT ALL - CAST( NULL AS SIGNED ) / + - ( + + 45 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - CAST ( NULL AS INTEGER ) / + - ( + + 45 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 24 ) col0 FROM tab1
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1 WHERE ( col1 * col2 ) < col1 * - - 49 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1 WHERE ( col1 * col2 ) < col1 * - - 49 * col2
----
NULL

query I rowsort
SELECT + ( + 69 ) FROM tab1
----
69
69
69

query I rowsort
SELECT ALL col0 * - ( - col0 ) AS col1 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT + 33 * 65 + col2 AS col0 FROM tab0 AS cor0
----
2155
2192
2244

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7455
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - - 42 AS col2 FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7457
SELECT DISTINCT col0, col0 * + col1 * + CAST( NULL AS SIGNED ) * - - col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7457
SELECT DISTINCT col0, col0 * + col1 * + CAST ( NULL AS INTEGER ) * - - col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ALL - col2, col1 FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT - 16 AS col0, col2 FROM tab0
----
-16
10
-16
47
-16
99

query I rowsort
SELECT ALL 14 AS col0 FROM tab0 cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT - ( + - SUM( DISTINCT + 9 ) ) col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT DISTINCT - ( + - SUM ( DISTINCT + 9 ) ) col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT ALL - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 40 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 40 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - - col1 col0 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7465
SELECT DISTINCT - 28 * - ( + - CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) + 17 FROM tab0
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7465
SELECT DISTINCT - 28 * - ( + - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) + 17 FROM tab0
----
NULL
20

query I rowsort
SELECT - ( + ( - ( - + 60 ) ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL SUM( DISTINCT + col1 ) col0 FROM tab0 WHERE ( NULL IS NULL )
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7467
SELECT ALL SUM ( DISTINCT + col1 ) col0 FROM tab0 WHERE ( NULL IS NULL )
----
103

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7468
SELECT * FROM tab1 AS cor0 WHERE NOT + ( CAST( 59 AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7468
SELECT * FROM tab1 AS cor0 WHERE NOT + ( CAST ( 59 AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT ALL + 20 DIV - + MAX( 98 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + 20 / - + MAX ( 98 ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2 AS col0, + 50 - - 72 AS col2 FROM tab0
----
10
122
47
122
99
122

query II rowsort
SELECT DISTINCT 6, col2 FROM tab2
----
6
23
6
40
6
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * 10 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + 14 FROM tab0 AS cor0
----
15
14
87
14
97
14

query I rowsort
SELECT ALL + + ( + + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 36 BETWEEN - 79 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT - col1 DIV + 75 FROM tab0 AS cor0 WHERE NOT + 97 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7476
SELECT - col1 / + 75 FROM tab0 AS cor0 WHERE NOT + 97 IS NULL
----
-1
0
0

query I rowsort
SELECT ALL 93 FROM tab1 AS cor0 WHERE NULL IS NULL
----
93
93
93

query I rowsort
SELECT 57 * + 85 * - col2 * - 26 + + col2 FROM tab0 AS cor0
----
12471129
1259710
5920637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col1, col2 col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - 5 > - col2
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL ( - 5 ) AS col1 FROM tab2
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT + col0 + - 85, col0 AS col1 FROM tab0
----
-70
15
12
97
2
87

onlyif mysql # aggregate syntax: 
query II rowsort label-7485
SELECT ALL 39 + - 90 AS col0, + COUNT( col2 ) + - - 21 * + 60 col1 FROM tab0
----
-51
1263

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7485
SELECT ALL 39 + - 90 AS col0, + COUNT ( col2 ) + - - 21 * + 60 col1 FROM tab0
----
-51
1263

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - col0 * - + col1 * col1 + + - col2 ) IN ( + col0 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7487
SELECT + MAX( + 25 ) * + 66 AS col0, MIN( DISTINCT + col0 ) + MIN( - col1 ) * + + AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT - col0 * - - col0 + + col0 + + - col2 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7487
SELECT + MAX ( + 25 ) * + 66 AS col0, MIN ( DISTINCT + col0 ) + MIN ( - col1 ) * + + AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT - col0 * - - col0 + + col0 + + - col2 IS NOT NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col1 FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 16 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7491
SELECT - + 50 DIV 13 + - + col2 + + col2 col0, col2 FROM tab1 AS cor0
----
-3
59
-3
68
-3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7491
SELECT - + 50 / 13 + - + col2 + + col2 col0, col2 FROM tab1 AS cor0
----
-3
59
-3
68
-3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - + COUNT( * ) * - 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - + COUNT ( * ) * - 48 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
432

query I rowsort
SELECT 61 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - + 31 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7495
SELECT DISTINCT COUNT( - 47 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT COUNT ( - 47 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT - COUNT( * ) DIV - 74 * - 28 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT - COUNT ( * ) / - 74 * - 28 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * 17 AS col0 FROM tab2 AS cor0
----
-1088
-1275
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT + - COUNT( * ) - - + 91 col2 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7498
SELECT DISTINCT + - COUNT ( * ) - - + 91 col2 FROM tab1 AS cor0
----
88

query I rowsort
SELECT ALL + col0 * + + col2 * + - ( col2 ) - - col1 FROM tab1 AS cor0
----
-295880
-420737
-470002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 16 col2, col2 * col2 FROM tab0 AS cor0
----
16
100
16
2209
16
9801

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7501
SELECT - col1 - + + col2 - - col0 - - - CAST( + col2 AS SIGNED ) DIV - - col0 + + 49 - + 47 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-114
15
-2
97
58
87

skipif mysql # not compatible
query II rowsort label-7501
SELECT - col1 - + + col2 - - col0 - - - CAST ( + col2 AS INTEGER ) / - - col0 + + 49 - + 47 AS col1, col0 AS col2 FROM tab0 AS cor0
----
-114
15
-2
97
58
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + COUNT( ALL + col1 ) - ( + 31 ) * - COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + COUNT ( ALL + col1 ) - ( + 31 ) * - COUNT ( * ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT DISTINCT - CAST( - 55 AS SIGNED ) AS col1 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) AS col1 FROM tab0
----
55

query II rowsort
SELECT DISTINCT 9, col1 FROM tab1
----
9
14
9
47
9
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL col0 FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + 61 AND ( - + 19 )
----

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL col0 FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + 61 AND ( - + 19 )
----

query II rowsort
SELECT + 55 AS col1, ( - ( - col0 ) ) + + col0 FROM tab2 AS cor0
----
55
128
55
150
55
92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + - 17 IS NULL
----

query I rowsort
SELECT - ( - 60 ) * col0 AS col0 FROM tab1 AS cor0
----
3060
5100
5460

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT IN ( - 40, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT ALL - + COUNT( * ) * + MIN( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7510
SELECT ALL - + COUNT ( * ) * + MIN ( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7511
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= - col0 + - ( - CAST( NULL AS SIGNED ) ) + - col0 / 71
----

skipif mysql # not compatible
query III rowsort label-7511
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= - col0 + - ( - CAST ( NULL AS INTEGER ) ) + - col0 / 71
----

query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT DISTINCT + ( SUM( DISTINCT + 51 ) ) col2 FROM tab0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7513
SELECT DISTINCT + ( SUM ( DISTINCT + 51 ) ) col2 FROM tab0
----
51

query II rowsort
SELECT col2 * - ( 83 ) + - col1 AS col1, col1 AS col1 FROM tab1
----
-4902
5
-5691
47
-7982
14

query I rowsort
SELECT DISTINCT 35 + + + 54 AS col1 FROM tab1
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + col2 col2 FROM tab2
----
120
137
155

query I rowsort
SELECT + col2 + - 49 AS col2 FROM tab0 AS cor0
----
-2
-39
50

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT DISTINCT - 57 + + col2 DIV - + col2 col0 FROM tab0 AS cor0 WHERE + 20 IS NOT NULL
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7518
SELECT DISTINCT - 57 + + col2 / - + col2 col0 FROM tab0 AS cor0 WHERE + 20 IS NOT NULL
----
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 + ( + col1 ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT DISTINCT - + COUNT( ALL col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 23 ) col2, 32 AS col1 FROM tab2
----
23
32
23
32
23
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT SUM( ALL - ( - 88 ) ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7522
SELECT SUM ( ALL - ( - 88 ) ) AS col2 FROM tab2
----
264

query I rowsort
SELECT col1 * col0 - - - col1 FROM tab2
----
2295
4851
4958

query I rowsort
SELECT ALL 32 * - col0 + col0 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT DISTINCT col2 + col2 + - + col0 AS col0 FROM tab2
----
0
16
41

query I rowsort
SELECT 83 - - 14 * + 88 AS col0 FROM tab2
----
1315
1315
1315

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT DISTINCT ( + COUNT( * ) ) + - 17 + + - 34 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT ( + COUNT ( * ) ) + - 17 + + - 34 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT - 67 + + 17 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + col2 * - + 57 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 75 - + + col2 FROM tab2 AS cor0
----
-115
-133
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 >= + + col1
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL - COUNT( * ) + 22 AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL - COUNT ( * ) + 22 AS col1 FROM tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT DISTINCT COUNT( col1 ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT COUNT ( col1 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT ( + 61 ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ( + 61 ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT COUNT( * ) * - 35 AS col1 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-7536
SELECT COUNT ( * ) * - 35 AS col1 FROM tab1
----
-105

query III rowsort
SELECT * FROM tab2 WHERE col2 - - - ( - 90 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7539
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 > - - col2 * - col2 + - CAST( + 89 AS DECIMAL ) + 60
----

skipif mysql # not compatible
query III rowsort label-7539
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 > - - col2 * - col2 + - CAST ( + 89 AS REAL ) + 60
----

query II rowsort
SELECT ALL - col1 AS col0, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL MIN( ALL + - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL MIN ( ALL + - col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT 9 FROM tab0 WHERE NOT col2 * - ( + - col2 ) + - + 96 IS NULL
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col1 col1 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL - 2 DIV - 63 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 2 / - 63 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT - ( - - COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7545
SELECT - ( - - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

query II rowsort
SELECT DISTINCT + 49 AS col1, 73 FROM tab1 AS cor0
----
49
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 AS col1, - 76 + 66 col0 FROM tab2 AS cor0
----
84
-10
84
-10
84
-10

query II rowsort
SELECT + col2, 26 FROM tab0 AS cor0
----
10
26
47
26
99
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT + - ( + COUNT( ALL - - col2 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + - ( + COUNT ( ALL - - col2 ) ) AS col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT col1, - 89 AS col2 FROM tab1 AS cor0
----
14
-89
47
-89
5
-89

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab1 WHERE + + 35 * col2 IS NOT NULL
----
65

query I rowsort
SELECT + col2 * + - ( + col2 ) * - 87 FROM tab0
----
192183
852687
8700

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NOT - col0 + - 31 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NOT - col0 + - 31 IS NULL
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE + 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0 + + - 46 AS col0, col2 AS col0 FROM tab1 AS cor0
----
-131
59
-137
68
-97
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT CAST( NULL AS SIGNED ) * - col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7556
SELECT CAST ( NULL AS INTEGER ) * - col1 * + col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT ALL 77 DIV + col0 + col1 + - + col1 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL 77 / + col0 + col1 + - + col1 AS col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT - + col0 + + - ( 28 ) + + - col2 AS col2 FROM tab1 AS cor0
----
-172
-175
-187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT DISTINCT + + 33 - - ( - col1 ) * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT DISTINCT + + 33 - - ( - col1 ) * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7560
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT ( - 59 * 87 * + 98 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT ( - 59 * 87 * + 98 ) IS NOT NULL
----
0

query II rowsort
SELECT + + col1 + + - col2, col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

query II rowsort
SELECT ALL + col2, + 11 FROM tab0
----
10
11
47
11
99
11

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col1 * - 25 BETWEEN - col1 AND - + 12 * + 85 + + col0 + col0
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) + 8 AS col0 FROM tab1 AS cor0 WHERE + ( - - 75 ) + + col1 + - + 11 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + 8 AS col0 FROM tab1 AS cor0 WHERE + ( - - 75 ) + + col1 + - + 11 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + + 32 * + COUNT( * ) - 12 AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7565
SELECT + + 32 * + COUNT ( * ) - 12 AS col0 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - 46 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7566
SELECT - 46 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL AND NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT ALL - - col1 * CAST( - 96 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2016
-7776
-96

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - - col1 * CAST ( - 96 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2016
-7776
-96

query I rowsort
SELECT DISTINCT 26 * - + col2 AS col0 FROM tab2 AS cor0
----
-1040
-1508
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7573
SELECT * FROM tab2 WHERE NOT ( NULL IN ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-7573
SELECT * FROM tab2 WHERE NOT ( NULL IN ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7574
SELECT ALL * FROM tab1 WHERE NOT - 14 BETWEEN + - col0 AND - + col1 / + col2 / + col2 + - + CAST( - col1 AS SIGNED ) * + 53
----

skipif mysql # not compatible
query III rowsort label-7574
SELECT ALL * FROM tab1 WHERE NOT - 14 BETWEEN + - col0 AND - + col1 / + col2 / + col2 + - + CAST ( - col1 AS INTEGER ) * + 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT COUNT( ALL + + 28 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7576
SELECT COUNT ( ALL + + 28 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 * + col1 + + col0 - - + col1 * + col0 AS col0 FROM tab2 AS cor0
----
3565
8072
8986

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT DISTINCT - COUNT( * ) * - 34 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - COUNT ( * ) * - 34 FROM tab1 AS cor0
----
102

query I rowsort
SELECT DISTINCT 39 FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - + 86 * + + COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - + 86 * + + COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
-258

query I rowsort
SELECT DISTINCT col2 + + col1 + - - 48 AS col0 FROM tab1 AS cor0
----
112
158
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT 21 + - MAX( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT 21 + - MAX ( + col1 ) FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT + col2 * + 99 / col2 - - - col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 83 * - col1 * - + 6 * + - col2, col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 52 + 95 IS NOT NULL
----

query II rowsort
SELECT + - col1 AS col2, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ( AVG ( - - col0 ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 AS col0, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT col1 DIV - col2 + col2 col0 FROM tab2
----
21
39
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7589
SELECT col1 / - col2 + col2 col0 FROM tab2
----
21
39
57

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7590
SELECT * FROM tab2 WHERE + col1 * - - CAST( NULL AS DECIMAL ) + col1 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7590
SELECT * FROM tab2 WHERE + col1 * - - CAST ( NULL AS REAL ) + col1 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col2 FROM tab1 WHERE - ( + - col2 ) = - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) * - col0 + - 54 col1, col1 FROM tab1
----
-4950
14
-5069
5
-6242
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT 20 + - 20 + + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7593
SELECT 20 + - 20 + + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL 50 + - COUNT( * ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL 50 + - COUNT ( * ) FROM tab2 cor0
----
47

query I rowsort
SELECT DISTINCT 52 * + 83 * + col2 + 61 * + col1 FROM tab1 AS cor0
----
254949
296355
415190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7596
SELECT DISTINCT col0 + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT col0 + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7598
SELECT ALL - CAST( + 95 AS SIGNED ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - CAST ( + 95 AS INTEGER ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT col0 - + + ( + ( - 1 ) ) FROM tab2
----
47
65
76

query I rowsort
SELECT DISTINCT - col1 * + col2 + - - col1 * col0 FROM tab1
----
-630
1081
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col0 + + col1 + 94 FROM tab2
----
191
235
236

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - 65 NOT BETWEEN + col2 AND NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT DISTINCT + COUNT( DISTINCT + ( + - 56 ) ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT + COUNT ( DISTINCT + ( + - 56 ) ) AS col1 FROM tab2 cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + ( - - col0 ) ) NOT BETWEEN + 0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT + CAST( NULL AS SIGNED ) * - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT + CAST ( NULL AS INTEGER ) * - 67 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE col2 < NULL
----

query II rowsort
SELECT ALL col1 AS col1, 21 AS col0 FROM tab2
----
51
21
67
21
77
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, + col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT + col1 AS col2, col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL - SUM( col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - SUM ( col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT DISTINCT col2 * + 50 FROM tab2
----
1150
2000
2900

query I rowsort
SELECT ALL + ( + - col2 ) * - col2 - + + col2 - - col0 * + col1 AS col0 FROM tab1
----
3847
8833
9834

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL + MIN( col1 ) AS col1 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + MIN ( col1 ) AS col1 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + - col0 <> - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7615
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + - col0 <> - + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT 5 DIV - + col2 + + 48 col0 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7616
SELECT 5 / - + col2 + + 48 col0 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - col1 + - + col2 FROM tab2
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 IN ( - 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + - MIN( ALL col2 ) AS col0 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-7619
SELECT + - MIN ( ALL col2 ) AS col0 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-7620
SELECT COUNT( * ) * COUNT( * ) * + + 90 AS col2, 56 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
810
56

skipif mysql # not compatible
query II rowsort label-7620
SELECT COUNT ( * ) * COUNT ( * ) * + + 90 AS col2, 56 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
810
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7621
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + CAST( 2 AS SIGNED ) + - 16 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7621
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + CAST ( 2 AS INTEGER ) + - 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 col0 FROM tab2 AS cor0
----
-62
-62
-62

query II rowsort
SELECT ALL 56 AS col1, + col2 * col0 + + 57 AS col2 FROM tab1
----
56
4953
56
5072
56
6245

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT ALL MIN( ALL - ( + - col2 ) ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL MIN ( ALL - ( + - col2 ) ) AS col1 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL + COUNT( * ) + - 58 AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + COUNT ( * ) + - 58 AS col0 FROM tab0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT - 39 DIV ( + - COUNT( * ) ) DIV - - 9 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7626
SELECT - 39 / ( + - COUNT ( * ) ) / - - 9 AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL col0 * + col0 * + + col1 AS col1 FROM tab0
----
158949
18225
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT - - COUNT( * ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - COUNT( * ) FROM tab2 WHERE 46 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT - - COUNT ( * ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - COUNT ( * ) FROM tab2 WHERE 46 > NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 + - + ( - - 21 ) * - col1 col2 FROM tab1
----
1029
147
336

query I rowsort
SELECT ALL + - col2 + 98 + - 0 AS col2 FROM tab2 AS cor0
----
40
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - SUM( + 75 ) + - COUNT( - 46 ) AS col2 FROM tab0 WHERE + - col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT - SUM ( + 75 ) + - COUNT ( - 46 ) AS col2 FROM tab0 WHERE + - col2 > NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 19 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7633
SELECT + ( - + 47 ) * CAST( 50 AS SIGNED ) * 92 * + 66 - COUNT( + col2 ) FROM tab0 AS cor0
----
-14269203

skipif mysql # not compatible
query I rowsort label-7633
SELECT + ( - + 47 ) * CAST ( 50 AS INTEGER ) * 92 * + 66 - COUNT ( + col2 ) FROM tab0 AS cor0
----
-14269203

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + - MAX( DISTINCT + - 53 ) AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7634
SELECT + - MAX ( DISTINCT + - 53 ) AS col2 FROM tab2 AS cor0
----
53

query II rowsort
SELECT - col1 AS col2, 72 - - 71 FROM tab1 AS cor0
----
-14
143
-47
143
-5
143

query II rowsort
SELECT - + 53 AS col0, 44 * - col0 + - col2 FROM tab2 cor0
----
-53
-2047
-53
-2856
-53
-3358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col0 - - col1 + - 68 col2 FROM tab0 AS cor0
----
15
28
87
40
97
30

query II rowsort
SELECT DISTINCT + col2 AS col0, 11 AS col2 FROM tab2 AS cor0
----
23
11
40
11
58
11

query I rowsort
SELECT ALL - + col0 + col0 FROM tab2 AS cor0 WHERE col0 + - + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 > + col0
----

query II rowsort
SELECT + col0 AS col1, 28 * + col2 FROM tab2 AS cor0
----
46
644
64
1120
75
1624

query II rowsort
SELECT ALL + col1 AS col1, 50 FROM tab1 AS cor0
----
14
50
47
50
5
50

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL + 53 * - COUNT( * ) col2 FROM tab0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7644
SELECT ALL + 53 * - COUNT ( * ) col2 FROM tab0
----
-159

query I rowsort
SELECT ALL + 13 AS col1 FROM tab2
----
13
13
13

query I rowsort
SELECT + col2 * - - 16 FROM tab0
----
1584
160
752

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7647
SELECT SUM( DISTINCT - - 35 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-7647
SELECT SUM ( DISTINCT - - 35 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT + 5 + - col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - + col1 * - - 13 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT - + col2 * 82 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ( - - 17 ) AS col1 FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7652
SELECT + CAST( - SUM( DISTINCT - 53 ) AS SIGNED ) DIV + 80 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7652
SELECT + CAST ( - SUM ( DISTINCT - 53 ) AS INTEGER ) / + 80 col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + - SUM( 90 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-810

skipif mysql # not compatible
query I rowsort label-7653
SELECT + - SUM ( 90 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 23 IS NULL
----

query II rowsort
SELECT + col0, + ( - col2 ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 66 col0 FROM tab0 AS cor0
----
-21
-31
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + - 30 >= + col0
----
87
21
10
97
1
99

query I rowsort
SELECT - col2 * + col1 + - 60 FROM tab2 cor0 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col0 * 40 FROM tab0 AS cor0
----
-1
3880
-21
3480
-81
600

query II rowsort
SELECT col2, + 82 + - + col1 * - col0 FROM tab0 WHERE + col0 * col0 >= + 90 * + - col0
----
10
1909
47
1297
99
179

query I rowsort
SELECT col2 + ( - col2 ) AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 54 + + col0 + + - 96 BETWEEN - + col0 AND NULL
----
51
14
96

query I rowsort
SELECT ( + + col0 ) * - - col0 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 * col1 col1 FROM tab0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ( COUNT( ALL - - col2 ) ) * + + 19 * + + 61 AS col1 FROM tab0
----
3477

skipif mysql # not compatible
query I rowsort label-7665
SELECT ( COUNT ( ALL - - col2 ) ) * + + 19 * + + 61 AS col1 FROM tab0
----
3477

query I rowsort
SELECT 20 * col1 AS col0 FROM tab2
----
1020
1340
1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7667
SELECT ALL + MIN( - 39 ) * 96 + - 93 DIV COUNT( * ) FROM tab2
----
-3775

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + MIN ( - 39 ) * 96 + - 93 / COUNT ( * ) FROM tab2
----
-3775

query I rowsort
SELECT DISTINCT col1 + + - col0 * col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 68 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 68 + col1 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 - + - col2 AS col0 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7671
SELECT 46 AS col2, COUNT( * ) AS col2 FROM tab0
----
46
3

skipif mysql # not compatible
query II rowsort label-7671
SELECT 46 AS col2, COUNT ( * ) AS col2 FROM tab0
----
46
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT CAST( 62 AS SIGNED ) AS col2 FROM tab0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-7672
SELECT CAST ( 62 AS INTEGER ) AS col2 FROM tab0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT - 50 - + - MAX( - + 68 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-118

skipif mysql # not compatible
query I rowsort label-7673
SELECT - 50 - + - MAX ( - + 68 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7676
SELECT 12 * + COUNT( * ) DIV 83 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7676
SELECT 12 * + COUNT ( * ) / 83 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 + + ( + 90 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + col0 + 14 FROM tab1
----
116
184
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 68 col1 FROM tab1 AS cor0
----
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 77 BETWEEN col0 + 77 * + + col1 AND - col0
----

query III rowsort
SELECT ALL col2 AS col0, - col0, + 6 AS col2 FROM tab0 AS cor0
----
9 values hashing to bdb845ad573baf180b1be4fb86a7bae9

query I rowsort
SELECT - 85 + - col2 FROM tab0 AS cor0
----
-132
-184
-95

query I rowsort
SELECT - col2 + - - 82 AS col0 FROM tab1 AS cor0
----
-14
14
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7685
SELECT - COUNT( * ) + 70 * + - 88 FROM tab0
----
-6163

skipif mysql # not compatible
query I rowsort label-7685
SELECT - COUNT ( * ) + 70 * + - 88 FROM tab0
----
-6163

query I rowsort
SELECT ALL + ( + + col2 ) + + col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL - COUNT( * ) - + - COUNT( DISTINCT - 77 ) + - 14 AS col0 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL - COUNT ( * ) - + - COUNT ( DISTINCT - 77 ) + - 14 AS col0 FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 58 + + 41 AS col2, - 41 col0 FROM tab1 AS cor0
----
-17
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT + - MIN( - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7689
SELECT + - MIN ( - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT - 26 DIV + col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT - 26 / + col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 49 * ( col0 ) FROM tab2 AS cor0
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - COUNT( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7692
SELECT - COUNT ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7693
SELECT DISTINCT + col2 * - col2 + col0 - CAST( NULL AS SIGNED ) - 63 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7693
SELECT DISTINCT + col2 * - col2 + col0 - CAST ( NULL AS INTEGER ) - 63 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT col0 - + - col1 + - + col0 AS col1 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL - col0 AS col2, - col1 + 79 AS col1 FROM tab2
----
-46
28
-64
2
-75
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT 9 - + SUM( DISTINCT col2 ) FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-7696
SELECT 9 - + SUM ( DISTINCT col2 ) FROM tab0
----
-147

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - col2 - 37 + + col1 IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT 6 IS NULL
----
1
21
81

query I rowsort
SELECT - - 20 * - col2 + + + 76 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL + + 23 * MIN( ALL ( + 40 ) ) FROM tab1 AS cor0
----
920

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + + 23 * MIN ( ALL ( + 40 ) ) FROM tab1 AS cor0
----
920

onlyif mysql # aggregate syntax: 
query II rowsort label-7702
SELECT - 3 AS col2, + COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7702
SELECT - 3 AS col2, + COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7703
SELECT - MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT ALL col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) * 96 - - + CAST( NULL AS SIGNED ) IN ( - + 62 )
----

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) * 96 - - + CAST ( NULL AS INTEGER ) IN ( - + 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT DISTINCT - COUNT( * ) FROM tab0, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - COUNT ( * ) FROM tab0, tab2 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT col1 * + + col0 * - ( + + col2 ) + + + CAST( + col0 AS SIGNED ) + + ( - col0 ) FROM tab0 AS cor0
----
-18270
-57105
-9603

skipif mysql # not compatible
query I rowsort label-7706
SELECT col1 * + + col0 * - ( + + col2 ) + + + CAST ( + col0 AS INTEGER ) + + ( - col0 ) FROM tab0 AS cor0
----
-18270
-57105
-9603

query II rowsort
SELECT col0 * col1 AS col0, col2 FROM tab1 cor0
----
425
59
4277
68
714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7708
SELECT + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT + COUNT( * ) * - - 65 * + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NOT + 7 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7710
SELECT + COUNT ( * ) * - - 65 * + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NOT + 7 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT DISTINCT + col1 DIV - 62 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT DISTINCT + col1 / - 62 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( + 93 ) + - col0 FROM tab0
----
-4
6
78

query I rowsort
SELECT ALL + 57 + + + 58 * + + 72 AS col1 FROM tab2
----
4233
4233
4233

query I rowsort
SELECT col2 + + 14 AS col1 FROM tab2
----
37
54
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT DISTINCT COUNT( * ) AS col0, ( 58 ) FROM tab0
----
3
58

skipif mysql # not compatible
query II rowsort label-7715
SELECT DISTINCT COUNT ( * ) AS col0, ( 58 ) FROM tab0
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT DISTINCT COUNT( ALL + col1 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7716
SELECT DISTINCT COUNT ( ALL + col1 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT COUNT( * ) + - - 9 AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7717
SELECT COUNT ( * ) + - - 9 AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT + - col1 + col1 * 75 * + col2 FROM tab2 cor0
----
230923
291383
87924

query II rowsort
SELECT DISTINCT col1 * + ( + + 78 ) + - col1 + ( col1 ) AS col1, 65 + - + 71 * col2 AS col0 FROM tab1 AS cor0
----
1092
-6751
3666
-4763
390
-4124

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL + MAX( - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL + MAX ( - col0 ) AS col2 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 76 col1, - col2 + col0 col0 FROM tab0
----
76
-2
76
-32
76
77

query I rowsort
SELECT + 78 * - col0 AS col1 FROM tab1
----
-3978
-6630
-7098

query I rowsort
SELECT + ( + 67 ) AS col2 FROM tab1
----
67
67
67

query I rowsort
SELECT ALL 4 + + ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-42
-60
-71

query I rowsort
SELECT + 76 * + col0 * + - 64 FROM tab2
----
-223744
-311296
-364800

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT - ( + - 71 ) DIV + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7727
SELECT - ( + - 71 ) / + col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7728
SELECT * FROM tab0 WHERE NOT - - 47 <= - + col0 / col2 * - + 7 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7728
SELECT * FROM tab0 WHERE NOT - - 47 <= - + col0 / col2 * - + 7 * CAST ( NULL AS REAL )
----

query II rowsort
SELECT + col2 * col0, ( + + col2 ) AS col0 FROM tab0
----
705
47
870
10
9603
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + col2 * + 10 * + ( col0 ) FROM tab0 AS cor0
----
105750
756900
9314910

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + col2 * + 10 * + ( col0 ) FROM tab0 AS cor0
----
105750
756900
9314910

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 65 = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 NOT BETWEEN NULL AND + col2 * col2
----

query I rowsort
SELECT DISTINCT - - ( + 92 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 3 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 97 AS col0 FROM tab2 cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7735
SELECT + CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 99 <> - col1
----

skipif mysql # not compatible
query I rowsort label-7735
SELECT + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 99 <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7736
SELECT * FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - 97 AND + col1 - + col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7736
SELECT * FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - 97 AND + col1 - + col0 * CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 40 col0, - 0 + - ( + 87 ) col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
40
-87
40
-87
40
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * + 43 col1 FROM tab0 cor0
----
645
645
645

query I rowsort
SELECT col2 * - + col2 AS col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL + 58 * 54 FROM tab0 AS cor0
----
3132
3132
3132

query II rowsort
SELECT ALL + + col0, ( col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( + 42 ) * + 56 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7742
SELECT DISTINCT + COUNT( * ) DIV 6 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT + COUNT ( * ) / 6 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + 52 * - + 76 * + col1 col0 FROM tab2 AS cor0
----
-10279152
-17740528
-23431408

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 72 NOT BETWEEN NULL AND + + 3 + + ( + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7745
SELECT ALL + COUNT( ALL - 70 ) AS col2, - CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7745
SELECT ALL + COUNT ( ALL - 70 ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT + SUM( ALL + + ( + 33 ) ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7746
SELECT + SUM ( ALL + + ( + 33 ) ) AS col1 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7747
SELECT ALL ( + + CAST( + 7 AS SIGNED ) ) + + col1 * - 21 + + + col2 + - col0 * + + col0 AS col2 FROM tab2 AS cor0
----
-3157
-5666
-6967

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL ( + + CAST ( + 7 AS INTEGER ) ) + + col1 * - 21 + + + col2 + - col0 * + + col0 AS col2 FROM tab2 AS cor0
----
-3157
-5666
-6967

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT - COUNT( * ) + + 5 - COUNT( - + col0 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - COUNT ( * ) + + 5 - COUNT ( - + col0 ) FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7749
SELECT DISTINCT 47 DIV 60 + - + 27 AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT 47 / 60 + - + 27 AS col0 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT + 17 + - - col0 FROM tab2 AS cor0
----
63
81
92

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7751
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( 0, - 53 - - col1, - - col1 * - col0, - col1 / - CAST( + + col1 AS DECIMAL ) )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7751
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT IN ( 0, - 53 - - col1, - - col1 * - col0, - col1 / - CAST ( + + col1 AS REAL ) )
----
97
1
99

query I rowsort
SELECT - - 97 * + col1 + 2 FROM tab2 WHERE - col2 = + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT + + COUNT( DISTINCT 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT + + COUNT ( DISTINCT 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * col0 * + + col1 col1 FROM tab2
----
-173604
-364672
-371850

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT DISTINCT - 73 - + - COUNT( * ) FROM tab0 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - 73 - + - COUNT ( * ) FROM tab0 cor0
----
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 < 81 + - 14 * 90 - - - 25
----

query I rowsort
SELECT DISTINCT + col1 - - - 31 * col2 * + 40 AS col1 FROM tab2 AS cor0
----
-28469
-49523
-71853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7758
SELECT ALL - col1 * - + CAST( + 69 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - col1 * - + CAST ( + 69 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT + col2 DIV + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
100
50

skipif mysql # not compatible
query I rowsort label-7759
SELECT + col2 / + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
100
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - 26 * - 0 - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - 26 * - 0 - COUNT ( * ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 - - 22 FROM tab1 AS cor0
----
-37
-46
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT DISTINCT COUNT( * ), 39 AS col2 FROM tab2
----
3
39

skipif mysql # not compatible
query II rowsort label-7763
SELECT DISTINCT COUNT ( * ), 39 AS col2 FROM tab2
----
3
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT DISTINCT - SUM( ALL - - 71 ) FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT - SUM ( ALL - - 71 ) FROM tab2
----
-213

query II rowsort
SELECT DISTINCT + col2 * + col2 AS col1, 61 AS col1 FROM tab1 WHERE NOT col0 * - 25 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT + MIN( ALL - + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + MIN ( ALL - + col0 ) FROM tab0
----
-97

query I rowsort
SELECT - col2 * + 82 * + col0 AS col1 FROM tab0
----
-57810
-71340
-787446

query I rowsort
SELECT ALL - + 66 AS col0 FROM tab2 WHERE NOT ( - - col0 + 46 * - col0 + + + col2 ) BETWEEN - col1 AND + + col1 + col0
----
-66
-66
-66

query I rowsort
SELECT col0 * col2 * + 41 FROM tab1 AS cor0
----
200736
205615
253708

query I rowsort
SELECT + 73 AS col1 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7771
SELECT + COUNT( * ) AS col0, - COUNT( * ) FROM tab2 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7771
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 cor0
----
3
-3

query II rowsort
SELECT DISTINCT 39, + col1 FROM tab0 AS cor0
----
39
1
39
21
39
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT + - MIN( col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7773
SELECT + - MIN ( col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + 58 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # DIV for integer division: 
query I rowsort label-7775
SELECT + - col1 * 22 DIV - 54 FROM tab1 AS cor0
----
19
2
5

skipif mysql # not compatible
query I rowsort label-7775
SELECT + - col1 * 22 / - 54 FROM tab1 AS cor0
----
19
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT ALL - ( ( + MIN( DISTINCT 76 ) ) ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL - ( ( + MIN ( DISTINCT 76 ) ) ) FROM tab0 AS cor0
----
-76

query I rowsort
SELECT DISTINCT - - 92 * - col1 - - - col1 FROM tab0 AS cor0
----
-1953
-7533
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7778
SELECT ALL + MAX( DISTINCT + CAST( ( + + col1 ) AS SIGNED ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + MAX ( DISTINCT + CAST ( ( + + col1 ) AS INTEGER ) ) FROM tab0 cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT DISTINCT 35 * + 73 + - col2 - + ( + - col0 ) + + + 79 + - - col1 DIV - + col2 + + col2 DIV col0 col1 FROM tab1
----
2590
2657
2660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7779
SELECT DISTINCT 35 * + 73 + - col2 - + ( + - col0 ) + + + 79 + - - col1 / - + col2 + + col2 / col0 col1 FROM tab1
----
2590
2657
2660

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 * - 85 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7782
SELECT DISTINCT 15 AS col1, - COUNT( * ) * + ( 49 ) FROM tab0
----
15
-147

skipif mysql # not compatible
query II rowsort label-7782
SELECT DISTINCT 15 AS col1, - COUNT ( * ) * + ( 49 ) FROM tab0
----
15
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL 17 * - COUNT( * ) AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL 17 * - COUNT ( * ) AS col2 FROM tab0
----
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 65 + - - 26 FROM tab2
----
91
91
91

query II rowsort
SELECT ( col1 ) + + col0 AS col0, col0 - + col2 AS col0 FROM tab1
----
138
23
65
-45
90
26

query III rowsort
SELECT * FROM tab1 WHERE + 46 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 10 + col2 + col1 AS col0, - col1 + - col2 col2 FROM tab2
----
127
-117
135
-125
84
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7789
SELECT DISTINCT + col0 + col2 DIV col2 DIV - + col1 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT + col0 + col2 / col2 / - + col1 AS col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 21 IS NOT NULL
----

query I rowsort
SELECT + 16 + + col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col1 + + 53 )
----

query I rowsort
SELECT DISTINCT - 63 FROM tab0 WHERE NOT NULL = col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 9 = ( col1 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT SUM( + col0 ) + 78 FROM tab1
----
305

skipif mysql # not compatible
query I rowsort label-7795
SELECT SUM ( + col0 ) + 78 FROM tab1
----
305

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( + col2 )
----

query I rowsort
SELECT + col0 + - 1 FROM tab2
----
45
63
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7798
SELECT 19 DIV - 58 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7798
SELECT 19 / - 58 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT 56 DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7799
SELECT 56 / col1 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col2 + col0 FROM tab1
----
-3396
-4533
-9165

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col2 + col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT ALL - 26 FROM tab1 WHERE - col2 * + ( 15 ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT - 99 DIV + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 99 / + col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 42 col2 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT DISTINCT col1 * col1 + + col0 * col2 FROM tab0
----
1311
7266
9604

query I rowsort
SELECT + col1 * + 85 AS col2 FROM tab1
----
1190
3995
425

query I rowsort
SELECT 80 * 19 FROM tab2
----
1520
1520
1520

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = 21 / + 71
----

query I rowsort
SELECT col2 + - 18 AS col1 FROM tab1
----
41
50
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL COUNT( 54 ) AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL COUNT ( 54 ) AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7810
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + CAST ( NULL AS REAL ) / col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 30 ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT + 75 + COUNT( * ) * COUNT( ALL col2 ) FROM tab1 WHERE NOT col2 * col1 > col2 * - col1
----
75

skipif mysql # not compatible
query I rowsort label-7813
SELECT + 75 + COUNT ( * ) * COUNT ( ALL col2 ) FROM tab1 WHERE NOT col2 * col1 > col2 * - col1
----
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN col0 * col0 + - col0 * - col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT + CAST( - col2 AS SIGNED ) + col2 * - col1 FROM tab0
----
-198
-220
-3854

skipif mysql # not compatible
query I rowsort label-7815
SELECT + CAST ( - col2 AS INTEGER ) + col2 * - col1 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT ( 4 ) AS col1 FROM tab0
----
4
4
4

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + col1 > + col0
----
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7818
SELECT * FROM tab2 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) BETWEEN col0 * + col0 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7818
SELECT * FROM tab2 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) BETWEEN col0 * + col0 AND ( NULL )
----

query I rowsort
SELECT ALL 35 * - col2 + 0 * 85 AS col1 FROM tab1
----
-2065
-2380
-3360

query I rowsort
SELECT - col1 * - 63 - col2 AS col2 FROM tab2 WHERE - 56 IS NOT NULL
----
3190
4163
4811

query I rowsort
SELECT col0 * 78 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT ( + 44 ) AS col1 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT + 92 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7826
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT COUNT( * ) + 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
39

skipif mysql # not compatible
query I rowsort label-7827
SELECT COUNT ( * ) + 30 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
39

query I rowsort
SELECT 57 FROM tab0 cor0 WHERE NOT + 19 IN ( + col1 )
----
57
57
57

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 24 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * + col2 IS NULL
----
24
24
24

query I rowsort
SELECT ALL - col1 + 64 FROM tab0 cor0
----
-17
43
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 1 - - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 14 * + 96 AS col0 FROM tab2 AS cor0
----
-1344
-1344
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-7835
SELECT col0 DIV - 18 AS col2 FROM tab1 cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-7835
SELECT col0 / - 18 AS col2 FROM tab1 cor0
----
-2
-4
-5

query I rowsort
SELECT 38 AS col2 FROM tab0 AS cor0 WHERE + col0 + 81 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT ALL - ( ( COUNT( * ) ) ) FROM tab1 WHERE NOT + col2 + - ( col2 ) NOT IN ( - 31 * + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT ALL - ( ( COUNT ( * ) ) ) FROM tab1 WHERE NOT + col2 + - ( col2 ) NOT IN ( - 31 * + 85 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + 75 * - ( - COUNT( * ) ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7838
SELECT + 75 * - ( - COUNT ( * ) ) FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL SUM( - col2 ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL SUM ( - col2 ) AS col2 FROM tab0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT DISTINCT 34 * + + COUNT( * ) + CAST( + ( 20 ) AS SIGNED ) * 11 AS col1 FROM tab2
----
322

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT 34 * + + COUNT ( * ) + CAST ( + ( 20 ) AS INTEGER ) * 11 AS col1 FROM tab2
----
322

query III rowsort
SELECT * FROM tab2 WHERE ( 20 - + col0 ) NOT BETWEEN NULL AND col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 20 + - + col2 AS col1 FROM tab1
----
-116
-79
-88

query III rowsort
SELECT * FROM tab2 WHERE NULL <= col2 + + 5
----

query I rowsort
SELECT DISTINCT 21 + + + col0 FROM tab0
----
108
118
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL MAX( ALL - 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL MAX ( ALL - 96 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT SUM( + - 62 ) + COUNT( * ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT SUM ( + - 62 ) + COUNT ( * ) FROM tab0
----
-183

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 WHERE ( + col0 * col0 ) IS NOT NULL
----
1173
3080
3886

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - 46 < + col1 + 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( 36 * - ( + 14 ) + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT ( - 93 ) + COUNT( * ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-7851
SELECT ( - 93 ) + COUNT ( * ) AS col0 FROM tab2
----
-90

query I rowsort
SELECT - col1 + + ( - 64 ) AS col1 FROM tab0 AS cor0
----
-145
-65
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT DISTINCT - COUNT( * ) * - COUNT( ALL 37 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT - COUNT ( * ) * - COUNT ( ALL 37 ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - col0 * - col0 - ( + col0 ) AS col0 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT - 77 + + - 32 FROM tab1 AS cor0
----
-109
-109
-109

query I rowsort
SELECT col1 + + 24 FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT DISTINCT + 17 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT col2 * CAST( - - col0 AS SIGNED ) FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7858
SELECT col2 * CAST ( - - col0 AS INTEGER ) FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7859
SELECT DISTINCT ( - ( ( + ( + CAST( 25 AS SIGNED ) ) ) ) ) DIV - 39 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT ( - ( ( + ( + CAST ( 25 AS INTEGER ) ) ) ) ) / - 39 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL 15 + + 98 FROM tab1
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL - COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL - COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL + col1 DIV 69 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + col1 / 69 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + ( - SUM( ALL - col2 ) ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7863
SELECT + ( - SUM ( ALL - col2 ) ) AS col1 FROM tab1
----
223

query I rowsort
SELECT ALL - col1 * + - col0 + - 48 FROM tab0 AS cor0
----
1167
1779
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7865
SELECT ALL + col0, - 0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL + col0, - 0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 75 * - 52 ) BETWEEN + col2 AND + col2 * + 34 - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT + + COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7867
SELECT + + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, - 71 FROM tab2 AS cor0
----
23
-71
40
-71
58
-71

query I rowsort
SELECT ALL - 55 * - - 26 - col0 AS col2 FROM tab1 AS cor0
----
-1481
-1515
-1521

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT DISTINCT + - col2 DIV + + 88 * - + 70 + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT + - col2 / + + 88 * - + 70 + col0 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL SUM( 58 ) FROM tab2 WHERE NULL BETWEEN ( 23 + + col2 + col1 * col0 ) AND ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL SUM ( 58 ) FROM tab2 WHERE NULL BETWEEN ( 23 + + col2 + col1 * col0 ) AND ( + col0 )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - + 23 * + 14 + col2 * 1 = - col1 - - 5
----
59
68
96

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( - - col1 )
----

query I rowsort
SELECT ALL col0 * - ( - - 64 ) AS col1 FROM tab1
----
-3264
-5440
-5824

query I rowsort
SELECT DISTINCT - 1 * col0 AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL + 68 DIV + col1 col2 FROM tab0
----
0
3
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT ALL + 68 / + col1 col2 FROM tab0
----
0
3
68

query I rowsort
SELECT DISTINCT - 36 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col1 IN ( 87 / 51 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * ( + 0 ) * + - 82 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * 32 = NULL
----

query I rowsort
SELECT ALL - + 48 * + 71 - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT DISTINCT + CAST( + 8 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT + CAST ( + 8 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT - col0 * 38 FROM tab1 AS cor0
----
-1938
-3230
-3458

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 63 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7886
SELECT ALL + + col1 DIV - 95 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + + col1 / - 95 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT DISTINCT + COUNT( * ) + - CAST( 95 AS SIGNED ) FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + COUNT ( * ) + - CAST ( 95 AS INTEGER ) FROM tab0
----
-92

query I rowsort
SELECT DISTINCT 4 * col0 AS col1 FROM tab2
----
184
256
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT 40 FROM tab1 AS cor0 WHERE NOT col0 * + col2 NOT BETWEEN ( NULL ) AND ( 95 * + ( CAST( + 14 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT 40 FROM tab1 AS cor0 WHERE NOT col0 * + col2 NOT BETWEEN ( NULL ) AND ( 95 * + ( CAST ( + 14 AS INTEGER ) ) )
----

query I rowsort
SELECT col0 + + + 43 FROM tab1 AS cor0
----
128
134
94

query I rowsort
SELECT ALL + - col1 + - + col0 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL IN ( + ( col0 ) )
----

query I rowsort
SELECT col2 + + + ( - col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 26 FROM tab2 WHERE ( NOT ( 95 ) IS NULL )
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT COUNT( * ) + SUM( + col0 ) AS col1 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-7896
SELECT COUNT ( * ) + SUM ( + col0 ) AS col1 FROM tab1
----
230

query II rowsort
SELECT + col2 AS col0, - col2 * + - 16 * 22 * + col2 FROM tab1
----
59
1225312
68
1627648
96
3244032

query I rowsort
SELECT ALL 36 + + + 29 + col1 FROM tab1
----
112
70
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT CAST( - + ( + - MAX( ALL + col0 ) ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT CAST ( - + ( + - MAX ( ALL + col0 ) ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - ( + 46 ) - + + COUNT( * ) AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-7900
SELECT - ( + 46 ) - + + COUNT ( * ) AS col1 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT col0 + ( - + 48 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 40 col0 FROM tab0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL - - MIN( ALL + col2 ) * + 30 FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - - MIN ( ALL + col2 ) * + 30 FROM tab0 AS cor0
----
300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7905
SELECT ALL COUNT( DISTINCT + CAST( 45 AS DECIMAL ) ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL COUNT ( DISTINCT + CAST ( 45 AS REAL ) ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 98 NOT BETWEEN + 54 - 18 - - col0 * - col1 AND 57 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT SUM( ALL + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT SUM ( ALL + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT DISTINCT col2 DIV - 48 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT col2 / - 48 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - 19 * COUNT( * ) AS col1 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - 19 * COUNT ( * ) AS col1 FROM tab1 cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7910
SELECT DISTINCT SUM( + col0 ) AS col1 FROM tab0 WHERE - ( CAST( NULL AS DECIMAL ) ) IN ( - col1 / + 6, ( - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT SUM ( + col0 ) AS col1 FROM tab0 WHERE - ( CAST ( NULL AS REAL ) ) IN ( - col1 / + 6, ( - col0 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT + CAST( + - col2 AS SIGNED ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7911
SELECT + CAST ( + - col2 AS INTEGER ) col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) <= ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + ( 7 ) * - + col0 AND NULL
----

query II rowsort
SELECT - col1 AS col2, 48 FROM tab0
----
-1
48
-21
48
-81
48

query I rowsort
SELECT - col1 * ( - 8 ) FROM tab1
----
112
376
40

query III rowsort
SELECT ALL * FROM tab0 WHERE 31 NOT BETWEEN NULL AND - col1 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL > ( - col2 * + 69 * + col1 * + col2 - + + col2 + + + col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7917
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > ( - col2 * + 69 * + col1 * + col2 - + + col2 + + + col0 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT ALL + COUNT( * ), ( + COUNT( * ) ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7918
SELECT ALL + COUNT ( * ), ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT ALL COUNT( * ) + 57 * - COUNT( * ) col2 FROM tab2 cor0 WHERE NOT ( + 15 / ( + - col1 ) / - col2 * col2 ) NOT BETWEEN ( 93 ) AND + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7919
SELECT ALL COUNT ( * ) + 57 * - COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT ( + 15 / ( + - col1 ) / - col2 * col2 ) NOT BETWEEN ( 93 ) AND + col1
----
0

query I rowsort
SELECT + 61 + - col1 FROM tab1
----
14
47
56

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 59 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT - + MAX( 49 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT - + MAX ( 49 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7923
SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND CAST( - ( col1 ) AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7923
SELECT ALL * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND CAST ( - ( col1 ) AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 39 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-91

query I rowsort
SELECT DISTINCT col0 + - 66 AS col1 FROM tab1 AS cor0
----
-15
19
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT - COUNT( + 40 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7927
SELECT - COUNT ( + 40 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT 87 * - 31 * + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT 87 * - 31 * + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT 2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-7929
SELECT 2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7930
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT + COUNT( - - 29 ) * 20 + - CAST( 84 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7931
SELECT + COUNT ( - - 29 ) * 20 + - CAST ( 84 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT COUNT( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7932
SELECT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT COUNT( * ) * + - COUNT( * ) * + 34 FROM tab0
----
-306

skipif mysql # not compatible
query I rowsort label-7933
SELECT COUNT ( * ) * + - COUNT ( * ) * + 34 FROM tab0
----
-306

query I rowsort
SELECT 74 - + + 13 AS col0 FROM tab0
----
61
61
61

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * - col2 / col0 - - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7936
SELECT ALL - col0 DIV + - col0 + - 75 FROM tab0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - col0 / + - col0 + - 75 FROM tab0
----
-74
-74
-74

query I rowsort
SELECT - col2 + - - 85 - - - col1 - + 88 + - col1 FROM tab1 AS cor0
----
-127
-165
-72

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE + 12 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / - 38 BETWEEN ( 15 ) AND + 66
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 52 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab2 cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7943
SELECT - col1 col1, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7943
SELECT - col1 col1, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL + col0 * + 66 + - col1 AS col2 FROM tab0 AS cor0
----
5721
6401
909

onlyif mysql # DIV for integer division: 
query I rowsort label-7945
SELECT + ( ( + + col2 ) ) DIV 41 + - col2 FROM tab1 AS cor0
----
-58
-67
-94

skipif mysql # not compatible
query I rowsort label-7945
SELECT + ( ( + + col2 ) ) / 41 + - col2 FROM tab1 AS cor0
----
-58
-67
-94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 63 BETWEEN + 47 + + + 62 + - col2 * + 88 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7948
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - 3 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7949
SELECT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - 3 IS NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19 * - - col1 col0, + col0 AS col0 FROM tab2
----
1273
75
1463
64
969
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7951
SELECT DISTINCT + MIN( ALL + - 52 ) AS col0, COUNT( * ) AS col0 FROM tab2
----
-52
3

skipif mysql # not compatible
query II rowsort label-7951
SELECT DISTINCT + MIN ( ALL + - 52 ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
-52
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT - COUNT( * ) + + ( + 82 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-7952
SELECT - COUNT ( * ) + + ( + 82 ) FROM tab1
----
79

query I rowsort
SELECT ALL + 95 + + + col0 + - col1 + - 89 * col2 FROM tab0 AS cor0
----
-4154
-729
-8620

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT - - COUNT( * ) * + + 78 AS col2 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7954
SELECT - - COUNT ( * ) * + + 78 AS col2 FROM tab0 AS cor0
----
234

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 16 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 89 / - col2 col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL col1 + 5 FROM tab1 AS cor0
----
10
19
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7959
SELECT - - col0 * + - col2 + + col2 AS col2, col2 * 33 + + + CAST( - ( col1 ) AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
-658
1423
-860
299
-9504
3167

skipif mysql # not compatible
query II rowsort label-7959
SELECT - - col0 * + - col2 + + col2 AS col2, col2 * 33 + + + CAST ( - ( col1 ) AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
-658
1423
-860
299
-9504
3167

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT ALL + + col2 + - col1 DIV 7 * - col0 FROM tab1 AS cor0
----
198
59
614

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + + col2 + - col1 / 7 * - col0 FROM tab1 AS cor0
----
198
59
614

onlyif mysql # DIV for integer division: 
query I rowsort label-7961
SELECT - col1 + col2 DIV + col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7961
SELECT - col1 + col2 / + col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT col1 FROM tab2 AS cor0 WHERE + col1 + + ( + col1 ) BETWEEN ( + + col0 / col0 * + - col2 + ( - + ( - col1 ) ) + + + col1 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7962
SELECT col1 FROM tab2 AS cor0 WHERE + col1 + + ( + col1 ) BETWEEN ( + + col0 / col0 * + - col2 + ( - + ( - col1 ) ) + + + col1 ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col1 + - col1 FROM tab2 cor0
----
-148
-209
-218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT CAST( NULL AS SIGNED ) * + col2 + + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT CAST ( NULL AS INTEGER ) * + col2 + + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT ALL - col1 - + ( - + col2 ) + + - col0 * + + CAST( + + col2 AS SIGNED ) FROM tab0
----
-739
-881
-9505

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL - col1 - + ( - + col2 ) + + - col0 * + + CAST ( + + col2 AS INTEGER ) FROM tab0
----
-739
-881
-9505

query I rowsort
SELECT ALL - 35 * + 38 + + + col0 AS col0 FROM tab2 WHERE NOT NULL <= - col1
----

query I rowsort
SELECT ALL 58 + + - col2 AS col0 FROM tab1
----
-1
-10
-38

query I rowsort
SELECT + + 91 FROM tab2 WHERE NULL < + 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7969
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 23 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7969
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 23 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + 84 + - - col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 7 ) col1 FROM tab2 AS cor0
----
7

query I rowsort
SELECT + 97 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * - + col1 - - col0 <= - 12 * - 92 )
----

query I rowsort
SELECT DISTINCT + + 33 * - 60 AS col1 FROM tab0 AS cor0
----
-1980

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + + 25 IS NOT NULL
----

query I rowsort
SELECT ALL + ( col2 ) * + ( + + 82 ) AS col2 FROM tab0 cor0
----
3854
8118
820

query I rowsort
SELECT DISTINCT + 41 FROM tab2 AS cor0 WHERE NOT + 21 <= - 23
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT + ( 58 ) + - - 68 + + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) IS NULL
----
131
140
173

skipif mysql # not compatible
query I rowsort label-7978
SELECT + ( 58 ) + - - 68 + + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) IS NULL
----
131
140
173

query I rowsort
SELECT DISTINCT + 62 FROM tab0 AS cor0 WHERE - 34 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL + ( - + COUNT( DISTINCT + + col1 ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + ( - + COUNT ( DISTINCT + + col1 ) ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * - + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7982
SELECT MIN( + CAST( 88 AS SIGNED ) ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7982
SELECT MIN ( + CAST ( 88 AS INTEGER ) ) FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT ALL SUM( DISTINCT col1 ) col0 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7983
SELECT ALL SUM ( DISTINCT col1 ) col0 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7984
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col2 FROM tab0
----
NULL

query II rowsort
SELECT col1 AS col2, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT ALL - col1, col2 AS col1 FROM tab0 WHERE NULL = + col1
----

query II rowsort
SELECT 58 AS col0, + 63 FROM tab0 AS cor0
----
58
63
58
63
58
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT + ( - + MIN( - - col0 ) ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + ( - + MIN ( - - col0 ) ) FROM tab0 cor0
----
-15

query I rowsort
SELECT - 2 * - - col1 + + - 25 * - + col1 + - + 86 + 61 FROM tab1 AS cor0
----
1056
297
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7990
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7990
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab1 WHERE col1 <= - col0 + + + 76 / - - col0 * - 13
----

query I rowsort
SELECT DISTINCT + - col1 + - col2 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT + COUNT( 0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7993
SELECT + COUNT ( 0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7994
SELECT DISTINCT + CAST( + MIN( - col0 ) AS SIGNED ) + - COUNT( ( + + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT + CAST ( + MIN ( - col0 ) AS INTEGER ) + - COUNT ( ( + + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT - ( - ( - + col1 ) ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - + 5 * + col0 AS col0 FROM tab1 AS cor0
----
-255
-425
-455

query I rowsort
SELECT + + 46 * - col1 - - col0 FROM tab2 AS cor0
----
-2300
-3007
-3478

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + COUNT( * ) - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + COUNT ( * ) - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT ALL CAST( - + ( + COUNT( * ) ) AS SIGNED ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL CAST ( - + ( + COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL + 30 * - + 66 AS col2 FROM tab0
----
-1980
-1980
-1980

query I rowsort
SELECT DISTINCT 93 * - col1 AS col2 FROM tab2
----
-4743
-6231
-7161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8002
SELECT ALL COUNT( * ) DIV + MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL COUNT ( * ) / + MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT + + COUNT( - ( - col0 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8004
SELECT + + COUNT ( - ( - col0 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT 38 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8005
SELECT 38 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT - SUM( + 91 ) * COUNT( * ) AS col1 FROM tab2
----
-819

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT - SUM ( + 91 ) * COUNT ( * ) AS col1 FROM tab2
----
-819

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col0 / - col0
----

query II rowsort
SELECT col2 * + - 27, col0 AS col2 FROM tab1 AS cor0
----
-1593
85
-1836
91
-2592
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT + - 8 / + col0 / col2 - + + col0 - col1 + - CAST( - - col2 AS SIGNED ) / col1 + + - col0 / - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + - 8 / + col0 / col2 - + + col0 - col1 + - CAST ( - - col2 AS INTEGER ) / col1 + + - col0 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + 59 - - col1 + - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8011
SELECT + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + col0 < - col1
----
3

skipif mysql # not compatible
query I rowsort label-8013
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + col0 < - col1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 79 IS NULL
----

query I rowsort
SELECT 88 + 22 FROM tab0
----
110
110
110

query I rowsort
SELECT + col1 + - - 75 AS col1 FROM tab0
----
156
76
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col1 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + 82 AS col2 FROM tab1 AS cor0
----
35
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT ALL + MAX( ALL - 87 ) AS col2 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL + MAX ( ALL - 87 ) AS col2 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT ALL + col1 * col2 FROM tab1 WHERE NOT NULL NOT BETWEEN 75 + + + 62 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT ALL COUNT( + 74 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8021
SELECT ALL COUNT ( + 74 ) AS col1 FROM tab2
----
3

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT 21 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT DISTINCT + col1, 99 FROM tab1
----
14
99
47
99
5
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT + SUM( ALL col0 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + SUM ( ALL col0 ) FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 14 col2 FROM tab2 AS cor0
----
37
54
72

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + + col1 * + col1 + col2 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 - col2 col1 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8030
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 98 - + col0 FROM tab1 AS cor0
----
-149
-183
-189

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 30 + 38 AND + + col0
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NULL <> - col0 * + 44
----

query I rowsort
SELECT + 38 * + col2 * - 89 * - 86 FROM tab2
----
11634080
16869416
6689596

query II rowsort
SELECT + col1 * - col0 AS col0, col0 + - + 34 FROM tab2
----
-2346
12
-4928
30
-5025
41

query I rowsort
SELECT - col0 * + 23 FROM tab2
----
-1058
-1472
-1725

query I rowsort
SELECT + ( - - col2 ) * - 14 AS col0 FROM tab0
----
-1386
-140
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab2 WHERE NOT - col0 IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8040
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + - 94 BETWEEN + col1 AND 14
----

skipif mysql # not compatible
query III rowsort label-8040
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + - 94 BETWEEN + col1 AND 14
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 56
----

query I rowsort
SELECT + 70 * - 38 FROM tab1
----
-2660
-2660
-2660

query I rowsort
SELECT DISTINCT + ( + + col2 ) * + + col0 FROM tab2 AS cor0
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + ( - - col1 ) * - - col2 col1 FROM tab0 cor0
----
100
231
3888

query I rowsort
SELECT - ( + - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8046
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-8046
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 <> NULL
----

query II rowsort
SELECT - + col0 AS col1, col2 AS col0 FROM tab0 cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL 64 AS col1 FROM tab1 AS cor0
----
64
64
64

query II rowsort
SELECT DISTINCT + col0 AS col0, + ( - + col0 ) FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL MIN( ALL - 99 ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL MIN ( ALL - 99 ) AS col2 FROM tab1
----
-99

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE + 38 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + 34 - SUM( col1 ) AS col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + 34 - SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 65 + col1 col0, col0 - col0 FROM tab2 AS cor0
----
116
0
132
0
142
0

query I rowsort
SELECT ALL + + 23 + + + col2 FROM tab1 WHERE NOT + col2 + + col2 IS NULL
----
119
82
91

query I rowsort
SELECT ALL + 9 - - 99 * + - 79 * - 86 FROM tab1 AS cor0
----
672615
672615
672615

query I rowsort
SELECT + + 68 AS col0 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8057
SELECT DISTINCT + ( - CAST( NULL AS DECIMAL ) ) * - col0 + - + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + ( - CAST ( NULL AS REAL ) ) * - col0 + - + col0 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8058
SELECT + - col0 - - 64 DIV 42 AS col0, col2 AS col2 FROM tab2 cor0
----
-45
23
-63
40
-74
58

skipif mysql # not compatible
query II rowsort label-8058
SELECT + - col0 - - 64 / 42 AS col0, col2 AS col2 FROM tab2 cor0
----
-45
23
-63
40
-74
58

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL + COUNT( * ) + 66 FROM tab1 cor0
----
69

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL + COUNT ( * ) + 66 FROM tab1 cor0
----
69

query I rowsort
SELECT - 9 - + - col1 + + col1 FROM tab1 AS cor0
----
1
19
85

query I rowsort
SELECT + - 84 * + col2 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT col1 + col2 > ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT MAX( + - 55 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8063
SELECT MAX ( + - 55 ) FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8064
SELECT col0, + ( + CAST( + 93 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
51
93
85
93
91
93

skipif mysql # not compatible
query II rowsort label-8064
SELECT col0, + ( + CAST ( + 93 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
51
93
85
93
91
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) <> 86
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( 1, ( + 87 ) + ( col2 ) )
----
10
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT - COUNT( col0 ) * ( - COUNT( * ) ) * + 52 - - CAST( MIN( DISTINCT - col1 ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
388

skipif mysql # not compatible
query I rowsort label-8067
SELECT - COUNT ( col0 ) * ( - COUNT ( * ) ) * + 52 - - CAST ( MIN ( DISTINCT - col1 ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
388

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT 89 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-8068
SELECT 89 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
267

query II rowsort
SELECT ALL col1 AS col2, col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT ( - ( + - col0 ) ) FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8071
SELECT - AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8071
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8072
SELECT - 48 DIV + + 24 AS col2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8072
SELECT - 48 / + + 24 AS col2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 FROM tab0 cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8076
SELECT DISTINCT + CAST( 70 AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
70

skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + CAST ( 70 AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL SUM( + 69 ) AS col2 FROM tab0, tab1 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL SUM ( + 69 ) AS col2 FROM tab0, tab1 AS cor0
----
621

query I rowsort
SELECT DISTINCT col0 * + 61 + 50 FROM tab2
----
2856
3954
4625

query II rowsort
SELECT ALL col0 * + 28, ( - + col2 ) AS col2 FROM tab0 AS cor0
----
2436
-10
2716
-99
420
-47

query I rowsort
SELECT - + col1 * - + col1 AS col0 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT - - COUNT( * ) FROM tab1 AS cor0 WHERE - col0 * + - 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT - - COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 * + - 32 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL + 46 + - COUNT( - - 9 ) AS col1 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL + 46 + - COUNT ( - - 9 ) AS col1 FROM tab0 AS cor0
----
43

query I rowsort
SELECT col1 * + col2 + + ( col0 ) FROM tab1 AS cor0
----
1395
3287
380

query I rowsort
SELECT 79 + + 35 FROM tab2 AS cor0
----
114
114
114

query I rowsort
SELECT DISTINCT + col1 * 38 * - col0 AS col0 FROM tab2 AS cor0
----
-187264
-190950
-89148

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 = col2 + + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT DISTINCT - col0 / + CAST( NULL AS SIGNED ) + col2 + - - 5 + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - col0 / + CAST ( NULL AS INTEGER ) + col2 + - - 5 + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT DISTINCT + SUM( DISTINCT - + 40 ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-8088
SELECT DISTINCT + SUM ( DISTINCT - + 40 ) FROM tab2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT col2 DIV - + 29 + - col2 AS col0 FROM tab2
----
-23
-41
-60

skipif mysql # not compatible
query I rowsort label-8089
SELECT col2 / - + 29 + - col2 AS col0 FROM tab2
----
-23
-41
-60

onlyif mysql # aggregate syntax: 
query III rowsort label-8090
SELECT ALL + COUNT( * ) AS col2, 11 * SUM( DISTINCT - 81 ) col0, + - 67 AS col2 FROM tab1
----
3
-891
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8090
SELECT ALL + COUNT ( * ) AS col2, 11 * SUM ( DISTINCT - 81 ) col0, + - 67 AS col2 FROM tab1
----
3
-891
-67

query I rowsort
SELECT + col0 + - + col1 AS col0 FROM tab2
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8092
SELECT col2 DIV 96 + - ( + CAST( col0 AS SIGNED ) ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8092
SELECT col2 / 96 + - ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 13 * 47 - + col1 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - 71 AS col1 FROM tab2
----
3621
4757
5467

query II rowsort
SELECT col2, - 76 FROM tab0 AS cor0
----
10
-76
47
-76
99
-76

query I rowsort
SELECT ALL + col2 + col0 + + col1 * + ( 46 ) FROM tab1 AS cor0
----
2321
374
791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT ALL - + col0 + 56 + + col1 + - CAST( col0 AS SIGNED ) + + 21 FROM tab2 AS cor0 WHERE - col1 < + col1
----
-6
26
36

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - + col0 + 56 + + col1 + - CAST ( col0 AS INTEGER ) + + 21 FROM tab2 AS cor0 WHERE - col1 < + col1
----
-6
26
36

query I rowsort
SELECT - ( + - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT ALL + col0 + - col0 + col2 AS col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT col1 - 14 FROM tab0 AS cor0
----
-13
67
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT DISTINCT COUNT( * ) * - 62 - + 68 AS col2 FROM tab2 AS cor0
----
-254

skipif mysql # not compatible
query I rowsort label-8101
SELECT DISTINCT COUNT ( * ) * - 62 - + 68 AS col2 FROM tab2 AS cor0
----
-254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col1 col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT col0 - col2 * 5 AS col0 FROM tab0
----
-220
-398
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL ( 76 ) + + - COUNT( ALL - col1 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL ( 76 ) + + - COUNT ( ALL - col1 ) FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT ALL - ( + MIN( col0 ) ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL - ( + MIN ( col0 ) ) AS col2 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + col1 * - ( 31 ) FROM tab2 AS cor0
----
-1581
-2077
-2387

query II rowsort
SELECT ALL - - col0 AS col2, - 42 * - ( ( + col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 76 * + - 61 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT + CAST( NULL AS SIGNED ) / + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT + CAST ( NULL AS INTEGER ) / + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT + MAX( DISTINCT + col2 ) * + COUNT( * ) AS col1 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * + COUNT ( * ) AS col1 FROM tab2 cor0
----
174

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + col0 * - + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + col0 IS NULL
----

query I rowsort
SELECT col2 * + - 74 * + col0 * col0 / 59 + + col0 FROM tab1 cor0 WHERE NOT + 8 - - + col2 BETWEEN ( + - col0 ) AND NULL
----

query I rowsort
SELECT 98 * - 42 FROM tab2 AS cor0
----
-4116
-4116
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT DISTINCT - SUM( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT DISTINCT - col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1 + + + col0, col1, + - 11, - - 18, + ( - col2 ) )
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8120
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - 1 col1 FROM tab1
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8122
SELECT SUM( DISTINCT + - CAST( + 78 AS SIGNED ) ) AS col2 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-8122
SELECT SUM ( DISTINCT + - CAST ( + 78 AS INTEGER ) ) AS col2 FROM tab0
----
-78

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + - col0 * - 66 + col2
----

query I rowsort
SELECT ALL - ( + col1 ) + - col1 AS col1 FROM tab2
----
-102
-134
-154

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8126
SELECT COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8126
SELECT COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

query II rowsort
SELECT ( 69 ), col0 AS col0 FROM tab1 AS cor0
----
69
51
69
85
69
91

query II rowsort
SELECT - 80, 10 AS col1 FROM tab1 AS cor0
----
-80
10
-80
10
-80
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 98 + - - col1 IN ( - col0, col1 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + COUNT( - - 9 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8131
SELECT + COUNT ( - - 9 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col1 + 40 - ( 65 ) AS col0 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT + 37 * 85 FROM tab1 AS cor0
----
3145
3145
3145

query II rowsort
SELECT - 57 AS col0, col0 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-57
-2116
-57
-4096
-57
-5625

query I rowsort
SELECT DISTINCT - 35 * - ( + ( - col2 ) ) + + col2 AS col2 FROM tab2
----
-1360
-1972
-782

query I rowsort
SELECT ALL col0 * 55 + + col2 AS col2 FROM tab1
----
2901
4734
5073

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8137
SELECT col1 DIV + ( + + 81 ) AS col0, ( - - CAST( NULL AS DECIMAL ) ) + - + col1 AS col2 FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8137
SELECT col1 / + ( + + 81 ) AS col0, ( - - CAST ( NULL AS REAL ) ) + - + col1 AS col2 FROM tab1
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT - COUNT( * ) DIV + 29 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT - COUNT ( * ) / + 29 FROM tab1 cor0
----
0

query I rowsort
SELECT 32 * - - col0 FROM tab0 AS cor0
----
2784
3104
480

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT + 85, - MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
85
-23

skipif mysql # not compatible
query II rowsort label-8140
SELECT + 85, - MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
85
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + MAX( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8141
SELECT + MAX ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL + SUM( - col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + SUM ( - col0 ) AS col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL + MIN( ALL - ( + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL + MIN ( ALL - ( + col1 ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT SUM( - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8144
SELECT SUM ( - + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT - 84 = - 80
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8145
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT - 84 = - 80
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT - CAST( NULL AS SIGNED ) + col0 + + col0 + 34 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT - CAST ( NULL AS INTEGER ) + col0 + + col0 + 34 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col2 col0, + 4 FROM tab1
----
-45
4
23
4
26
4

onlyif mysql # DIV for integer division: 
query II rowsort label-8148
SELECT + 44 * col0 * 71 DIV - col1 + col0 + - col1 + + col0, 60 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-2545
60
-2776
60
-3414
60

skipif mysql # not compatible
query II rowsort label-8148
SELECT + 44 * col0 * 71 / - col1 + col0 + - col1 + + col0, 60 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-2545
60
-2776
60
-3414
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT - MAX( DISTINCT + - 15 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT - MAX ( DISTINCT + - 15 ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT - col0 + - + col0 + - col0 * col0 FROM tab1 AS cor0
----
-2703
-7395
-8463

query I rowsort
SELECT - col1 + - 54 AS col2 FROM tab1 AS cor0
----
-101
-59
-68

query I rowsort
SELECT - col0 + - 37 FROM tab0 cor0
----
-124
-134
-52

query I rowsort
SELECT - - 88 + + - 10 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT + - 78 * + ( - 86 ) + - - col2 AS col0 FROM tab2 cor0
----
6731
6748
6766

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL - 29 * - COUNT( + + 28 ) AS col0 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL - 29 * - COUNT ( + + 28 ) AS col0 FROM tab2 AS cor0
----
87

query I rowsort
SELECT DISTINCT + 66 - + col1 - + + col1 AS col2 FROM tab0
----
-96
24
64

query II rowsort
SELECT DISTINCT + 45 AS col1, + col0 FROM tab1
----
45
51
45
85
45
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 58 col1 FROM tab0
----
2726
5742
580

query I rowsort
SELECT ALL - col2 + + 66 AS col2 FROM tab0
----
-33
19
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT - MAX( - + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8161
SELECT - MAX ( - + col1 ) AS col0 FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-8162
SELECT ALL - col1 DIV - col1 + + col0 col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8162
SELECT ALL - col1 / - col1 + + col0 col1 FROM tab1
----
52
86
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + - col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + - col1 AS col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col1 * - col0 AS col2 FROM tab2
----
23
-2346
40
-4928
58
-5025

query I rowsort
SELECT ALL - - 70 - + - col0 AS col1 FROM tab2 cor0
----
116
134
145

query I rowsort
SELECT DISTINCT + + 37 * + col0 FROM tab0 AS cor0 WHERE col0 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8167
SELECT DISTINCT + + col1 AS col1, + 88 DIV col2 + - 91 + + col2 col2 FROM tab1 AS cor0
----
14
5
47
-22
5
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8167
SELECT DISTINCT + + col1 AS col1, + 88 / col2 + - 91 + + col2 col2 FROM tab1 AS cor0
----
14
5
47
-22
5
-31

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + - 32 AS col0 FROM tab2 cor0
----
-32

query I rowsort
SELECT ALL col1 * 95 * - - ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-19950
-361665
-9405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8171
SELECT + 13 * CAST( NULL AS DECIMAL ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT + 13 * CAST ( NULL AS REAL ) - + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8172
SELECT - CAST( + 58 AS SIGNED ) * + 39 AS col1, - col2 AS col1 FROM tab1 cor0
----
-2262
-59
-2262
-68
-2262
-96

skipif mysql # not compatible
query II rowsort label-8172
SELECT - CAST ( + 58 AS INTEGER ) * + 39 AS col1, - col2 AS col1 FROM tab1 cor0
----
-2262
-59
-2262
-68
-2262
-96

query I rowsort
SELECT + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col1 + + - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT ALL + COUNT( * ) * + 84 AS col1 FROM tab0
----
252

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + COUNT ( * ) * + 84 AS col1 FROM tab0
----
252

query II rowsort
SELECT - col0 * + - 43 * - - 72 AS col0, - 78 FROM tab2
----
142416
-78
198144
-78
232200
-78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8176
SELECT ALL + CAST( ( - + col0 ) AS SIGNED ) DIV - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + CAST ( ( - + col0 ) AS INTEGER ) / - col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ( ( - col1 ) ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ALL CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 9 + - col0 AS col1 FROM tab2 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + ( + COUNT( * ) ) AS col0 FROM tab1 WHERE NOT - 37 * + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8180
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT - 37 * + - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL - CAST( NULL AS SIGNED ) + - + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + - MAX( ALL 97 ) AS col0 FROM tab2 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8182
SELECT + - MAX ( ALL 97 ) AS col0 FROM tab2 cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, 24 FROM tab0 AS cor0
----
-10
24
-47
24
-99
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT + COUNT( * ) + + + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-8184
SELECT + COUNT ( * ) + + + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT col0 + + + 22 * - col0 AS col1 FROM tab2
----
-1344
-1575
-966

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8186
SELECT ALL + col1 + + col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + col1 + + col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE + ( + ( - 64 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 22 + - 34 BETWEEN + col0 * + col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * + col1 * col1 + - 85 FROM tab1 WHERE + col2 - - 28 <= + 70
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 61 * - col1 - col0 + - col1 * - col1 FROM tab1 AS cor0
----
-365
-709
-749

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + + COUNT( * ) - 10 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8192
SELECT + + COUNT ( * ) - 10 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + - 57 - SUM( + 45 ) FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8193
SELECT + - 57 - SUM ( + 45 ) FROM tab2 cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-8194
SELECT DISTINCT 23 DIV - - col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT 23 / - - col0 FROM tab0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + - + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8196
SELECT SUM( - 27 ) + COUNT( + - ( - + 51 ) ) DIV - SUM( ALL - + col0 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-8196
SELECT SUM ( - 27 ) + COUNT ( + - ( - + 51 ) ) / - SUM ( ALL - + col0 ) FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - MAX( DISTINCT - 53 ) AS col1 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8197
SELECT - MAX ( DISTINCT - 53 ) AS col1 FROM tab1 cor0
----
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL - MAX( 21 ) AS col1 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - MAX ( 21 ) AS col1 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + 67 * col2 AS col1 FROM tab0 AS cor0
----
3149
6633
670

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > - col0
----

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * - - 65 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * - - 65 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8205
SELECT DISTINCT CAST( NULL AS SIGNED ), AVG ( + CAST( NULL AS SIGNED ) ) / - ( + - 89 ) / 99 * + ( - 60 ) / - 22 AS col0 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8205
SELECT DISTINCT CAST ( NULL AS INTEGER ), AVG ( + CAST ( NULL AS INTEGER ) ) / - ( + - 89 ) / 99 * + ( - 60 ) / - 22 AS col0 FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT + COUNT( - 96 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8206
SELECT + COUNT ( - 96 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT - 81 AS col1, 2 * + col0 + - - 11 FROM tab0
----
-81
185
-81
205
-81
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - + COUNT( * ) * MAX( - col0 ) * - MIN( + 50 ) FROM tab2 AS cor0
----
-6900

skipif mysql # not compatible
query I rowsort label-8208
SELECT - + COUNT ( * ) * MAX ( - col0 ) * - MIN ( + 50 ) FROM tab2 AS cor0
----
-6900

query I rowsort
SELECT ALL - 53 / - 69 * + - 1 + 83 FROM tab0 AS cor0 WHERE NOT NULL > col1 * + col2
----

query II rowsort
SELECT ALL + col2 * + col0, + col2 AS col2 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query I rowsort
SELECT - col2 * col0 * + 11 AS col2 FROM tab2 AS cor0
----
-11638
-28160
-47850

query I rowsort
SELECT ALL + - col1 * + col0 + + + 75 FROM tab2 AS cor0
----
-2271
-4853
-4950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT - COUNT( ALL - + col0 ) DIV - 24 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8213
SELECT - COUNT ( ALL - + col0 ) / - 24 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT + col0 * - col2 DIV + - col2 AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8215
SELECT + col0 * - col2 / + - col2 AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8216
SELECT DISTINCT MAX( - - col1 ) DIV + - COUNT( * ) AS col1 FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT MAX ( - - col1 ) / + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-25

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( NOT ( + ( - - col0 ) * + 77 * + col2 + - - col0 IS NOT NULL ) )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 31 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT 28 + - - 80 + - col0 DIV + 50 AS col2 FROM tab0
----
107
107
108

skipif mysql # not compatible
query I rowsort label-8219
SELECT 28 + - - 80 + - col0 / + 50 AS col2 FROM tab0
----
107
107
108

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 67 * - + 4 + - col0 <> - 8
----

query I rowsort
SELECT DISTINCT - 93 + - 26 FROM tab0 AS cor0
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT + MAX( ALL - + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8222
SELECT + MAX ( ALL - + col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT ALL - - col0 DIV - col1 + + + col0 * + + 32 FROM tab2 AS cor0
----
1472
2048
2399

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - - col0 / - col1 + + + col0 * + + 32 FROM tab2 AS cor0
----
1472
2048
2399

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT + col1 * - 4 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT + col1 * - 4 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + - 1 AS col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - 1 * 55 AS col0 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT - col2 * col1 - + - 90 FROM tab2
----
-1083
-2990
-3796

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL + COUNT( DISTINCT - + 5 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + COUNT ( DISTINCT - + 5 ) FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL - 92 / - + 5 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - 92 / - + 5 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 16 col1, + 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to cc9cd0f39e80178c67688b20e745f391

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + + COUNT( * ) + + 74 + + MAX( ALL - + col0 ) * + 61 * + 12 AS col2 FROM tab0 AS cor0
----
-10903

skipif mysql # not compatible
query I rowsort label-8233
SELECT + + COUNT ( * ) + + 74 + + MAX ( ALL - + col0 ) * + 61 * + 12 AS col2 FROM tab0 AS cor0
----
-10903

query I rowsort
SELECT DISTINCT - + col0 - - - col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT DISTINCT - COUNT( DISTINCT + col1 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8235
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT ALL MIN( + col2 ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL MIN ( + col2 ) AS col2 FROM tab2
----
23

query I rowsort
SELECT ALL + ( + 30 ) FROM tab2
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab1 WHERE NOT - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab1 WHERE NOT - col0 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL - COUNT( ALL ( + + 21 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL - COUNT ( ALL ( + + 21 ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT - + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 17 AND + + 19
----

skipif mysql # not compatible
query I rowsort label-8240
SELECT - + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 17 AND + + 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND NULL
----

query I rowsort
SELECT ALL - - col2 * col0 - + + ( - + 50 ) AS col2 FROM tab1 AS cor0 WHERE 55 NOT BETWEEN NULL AND col2 + 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 col1 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT ALL ( - 48 ) FROM tab0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + - 52 * + 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1768

query I rowsort
SELECT DISTINCT ( - 93 ) FROM tab2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8247
SELECT DISTINCT + COUNT( * ) / + COUNT( * ) + + - 10 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) + + - 10 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - + 50 * - 55 - ( - - col0 ) AS col2 FROM tab2 AS cor0
----
2675
2686
2704

query I rowsort
SELECT DISTINCT - + col2 * + + col2 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT ALL - CAST( NULL AS SIGNED ) / - col0 * + ( 16 ) + 79 + + 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - CAST ( NULL AS INTEGER ) / - col0 * + ( 16 ) + 79 + + 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 46 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8252
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + + 43 FROM tab2 AS cor0
----
1978
2752
3225

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + + 43 FROM tab2 AS cor0
----
1978
2752
3225

query I rowsort
SELECT DISTINCT + 16 * col1 * 9 AS col1 FROM tab1 cor0
----
2016
6768
720

onlyif mysql # DIV for integer division: 
query I rowsort label-8254
SELECT + 45 DIV 55 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8254
SELECT + 45 / 55 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT - ( - col2 ) DIV + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8255
SELECT - ( - col2 ) / + col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT - MAX( DISTINCT col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8256
SELECT - MAX ( DISTINCT col1 ) FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT ALL 11 + ( + col1 ) * - 5 * - + col0 + 71 DIV + 4 AS col0 FROM tab2
----
11758
24668
25153

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL 11 + ( + col1 ) * - 5 * - + col0 + 71 / + 4 AS col0 FROM tab2
----
11758
24668
25153

query II rowsort
SELECT - 22, - ( - + col1 ) AS col0 FROM tab0
----
-22
1
-22
21
-22
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8259
SELECT DISTINCT + 43 AS col0, COUNT( * ) AS col1 FROM tab2
----
43
3

skipif mysql # not compatible
query II rowsort label-8259
SELECT DISTINCT + 43 AS col0, COUNT ( * ) AS col1 FROM tab2
----
43
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8260
SELECT 17 DIV - COUNT( * ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8260
SELECT 17 / - COUNT ( * ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT - col2 + + - 0 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8262
SELECT ALL + 84, 16 + - COUNT( * ) AS col2 FROM tab1
----
84
13

skipif mysql # not compatible
query II rowsort label-8262
SELECT ALL + 84, 16 + - COUNT ( * ) AS col2 FROM tab1
----
84
13

query I rowsort
SELECT ALL + 86 + - col1 * + + 12 AS col2 FROM tab1
----
-478
-82
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT ALL + 51 DIV col1 + col2 FROM tab2
----
24
40
58

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + 51 / col1 + col2 FROM tab2
----
24
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 54 * col2 * - col2 * + col2 + + + col0 * - - 10 col0 FROM tab2 AS cor0
----
-10535298
-3455360
-656558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * col2, + col1 * ( col0 ) + + 22 col1 FROM tab0 AS cor0 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8267
SELECT + 92 * CAST( + 4 AS SIGNED ) * - COUNT( * ) + MAX( - + col2 ) + - COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
-1166

skipif mysql # not compatible
query I rowsort label-8267
SELECT + 92 * CAST ( + 4 AS INTEGER ) * - COUNT ( * ) + MAX ( - + col2 ) + - COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1166

query I rowsort
SELECT - col1 * - col0 + 68 AS col2 FROM tab2
----
2414
4996
5093

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8269
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) * - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8269
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) * - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT + ( ( + - SUM( col0 ) ) ) + 6 * + - COUNT( * ) FROM tab0 AS cor0
----
-217

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT + ( ( + - SUM ( col0 ) ) ) + 6 * + - COUNT ( * ) FROM tab0 AS cor0
----
-217

query I rowsort
SELECT + + 72 - - col0 * - col0 + - + col2 AS col1 FROM tab2 AS cor0
----
-2067
-4064
-5611

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8272
SELECT DISTINCT 87 - - 50 DIV - COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT 87 - - 50 / - COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
71

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8274
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) - 92 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8274
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) - 92 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT DISTINCT + col0 + + + 53 * + col1 AS col2 FROM tab1 AS cor0
----
2582
350
793

query I rowsort
SELECT DISTINCT + 52 - + col1 + col1 FROM tab0 AS cor0
----
52

query I rowsort
SELECT 75 - + 99 * + col0 AS col0 FROM tab0 AS cor0
----
-1410
-8538
-9528

query I rowsort
SELECT DISTINCT + - 39 AS col0 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-8279
SELECT - 6 AS col1, COUNT( * ) FROM tab0
----
-6
3

skipif mysql # not compatible
query II rowsort label-8279
SELECT - 6 AS col1, COUNT ( * ) FROM tab0
----
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT ALL + COUNT( DISTINCT + 92 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL + COUNT ( DISTINCT + 92 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT DISTINCT - 49 AS col0, - col2 FROM tab0
----
-49
-10
-49
-47
-49
-99

query I rowsort
SELECT col2 * 29 AS col0 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT col1 * - - 4 FROM tab1 AS cor0
----
188
20
56

query II rowsort
SELECT 21 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
21
-10
21
-47
21
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + - MIN( DISTINCT - + 49 ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8286
SELECT + - MIN ( DISTINCT - + 49 ) FROM tab1 AS cor0
----
49

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN ( + 16 + 39 ) AND NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - COUNT( DISTINCT col0 ) + + 82 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8288
SELECT - COUNT ( DISTINCT col0 ) + + 82 FROM tab1
----
79

query I rowsort
SELECT ALL - col1 + - 24 FROM tab2
----
-101
-75
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > ( col0 ) * 5
----

query I rowsort
SELECT - 96 + - col0 FROM tab2
----
-142
-160
-171

query III rowsort
SELECT * FROM tab0 WHERE col2 * col2 IN ( ( col2 ) * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8293
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8293
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT DISTINCT + COUNT( * ) + 80 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT + COUNT ( * ) + 80 FROM tab1
----
83

query I rowsort
SELECT - 86 + 98 AS col0 FROM tab1
----
12
12
12

query I rowsort
SELECT ALL col0 * - ( - col0 ) FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8297
SELECT ALL - col0 FROM tab1 WHERE NOT 35 * - col2 NOT BETWEEN ( col2 + col0 ) AND ( + CAST( col2 AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL - col0 FROM tab1 WHERE NOT 35 * - col2 NOT BETWEEN ( col2 + col0 ) AND ( + CAST ( col2 AS INTEGER ) + col2 )
----

query I rowsort
SELECT col1 * - col2 + + col2 * col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * + 84 + + 56 FROM tab2
----
3920
5432
6356

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col2 FROM tab2 WHERE + col0 NOT BETWEEN NULL AND col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - MAX( col0 ) + + 78 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8302
SELECT - MAX ( col0 ) + + 78 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE 40 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + SUM( DISTINCT col0 ) + 78 AS col1 FROM tab2
----
263

skipif mysql # not compatible
query I rowsort label-8304
SELECT + SUM ( DISTINCT col0 ) + 78 AS col1 FROM tab2
----
263

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( - col0 ) BETWEEN ( - 78 ) AND 96
----
-1

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( - col0 ) BETWEEN ( - 78 ) AND 96
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8306
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 0 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - col2
----

query I rowsort
SELECT ALL col0 / col0 AS col0 FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( - col0 + + col0 )
----

query I rowsort
SELECT DISTINCT - 27 * + 70 AS col0 FROM tab0
----
-1890

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 97 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT ALL - COUNT( * ) + - COUNT( ALL + col1 + 18 ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL - COUNT ( * ) + - COUNT ( ALL + col1 + 18 ) AS col0 FROM tab2 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 27 * col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL + COUNT( * ) - SUM( DISTINCT + col1 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL + COUNT ( * ) - SUM ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL 40 * col0 AS col1 FROM tab1
----
2040
3400
3640

query I rowsort
SELECT - col0 - ( 27 ) FROM tab2
----
-102
-73
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - 66 col1 FROM tab0
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8318
SELECT + 59 + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-8318
SELECT + 59 + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
59

query I rowsort
SELECT ALL - col1 * - 48 + col0 FROM tab0
----
1095
145
3903

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) NOT IN ( ( + 38 ) + col0 )
----
51
85
91

query I rowsort
SELECT ALL 12 AS col2 FROM tab1 AS cor0 WHERE - col0 * 34 <= NULL
----

query I rowsort
SELECT + col2 + col1 * 25 AS col1 FROM tab1 AS cor0
----
1243
184
446

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT - + SUM( + 23 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8325
SELECT - + SUM ( + 23 ) FROM tab0 AS cor0
----
-69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col1 ) = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * - col0 FROM tab0 WHERE col2 BETWEEN col2 / col0 + - col1 AND ( NULL )
----

query I rowsort
SELECT - col0 * - - 56 AS col2 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - COUNT( * ) * + 75 * - 3 FROM tab2
----
675

skipif mysql # not compatible
query I rowsort label-8329
SELECT - COUNT ( * ) * + 75 * - 3 FROM tab2
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + COUNT( - + col1 ) * 93 AS col0 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-8330
SELECT + COUNT ( - + col1 ) * 93 AS col0 FROM tab0
----
279

query I rowsort
SELECT DISTINCT - 92 * - 5 AS col2 FROM tab2
----
460

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8332
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 8 * + CAST( + col0 * + 99 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8332
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 8 * + CAST ( + col0 * + 99 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT COUNT( * ) FROM tab1 WHERE NOT - col0 - col2 >= + 49
----
3

skipif mysql # not compatible
query I rowsort label-8333
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col0 - col2 >= + 49
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT MIN( - - col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT MIN ( - - col0 ) AS col0 FROM tab0
----
15

query I rowsort
SELECT 61 FROM tab0 WHERE NOT col0 + + col0 * col1 IS NULL
----
61
61
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 83 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 65 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2, + 24 + - 27 AS col2 FROM tab1
----
59
-3
68
-3
96
-3

query I rowsort
SELECT + + 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT DISTINCT - + MAX( 75 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8341
SELECT DISTINCT - + MAX ( 75 ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT ALL CAST( - 98 AS SIGNED ) FROM tab0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL CAST ( - 98 AS INTEGER ) FROM tab0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + 31 + + col2 FROM tab2 WHERE NOT + 96 IS NULL
----
54
71
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8344
SELECT ALL ( - - CAST( NULL AS DECIMAL ) ) * 60 + + col2 col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8344
SELECT ALL ( - - CAST ( NULL AS REAL ) ) * 60 + + col2 col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8345
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 58 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8347
SELECT DISTINCT col1 + col2 * CAST( - 80 AS SIGNED ) DIV col0 AS col1 FROM tab2 AS cor0
----
11
27
6

skipif mysql # not compatible
query I rowsort label-8347
SELECT DISTINCT col1 + col2 * CAST ( - 80 AS INTEGER ) / col0 AS col1 FROM tab2 AS cor0
----
11
27
6

query II rowsort
SELECT ALL - + col1, + col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT - - col2 * 54 * + col1 FROM tab0 AS cor0
----
11340
205578
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL MIN( DISTINCT + 44 ) AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL MIN ( DISTINCT + 44 ) AS col1 FROM tab0 AS cor0
----
44

query I rowsort
SELECT - - 22 * + - col1 FROM tab1 AS cor0
----
-1034
-110
-308

query I rowsort
SELECT ( + - 47 ) * - col2 * + 39 AS col0 FROM tab0 AS cor0
----
181467
18330
86151

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT col0 * + col2 DIV + col2 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8353
SELECT col0 * + col2 / + col2 AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + - MIN( + col2 ) AS col0 FROM tab0 WHERE NULL > - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT + - MIN ( + col2 ) AS col0 FROM tab0 WHERE NULL > - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT COUNT( - 31 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8356
SELECT COUNT ( - 31 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 * - col1 + - col2 FROM tab0
----
-100
-451
-6608

query III rowsort
SELECT * FROM tab2 WHERE + col0 * col2 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 95 IN ( - col0 / col0 )
----

query I rowsort
SELECT - 84 FROM tab2 WHERE 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT - COUNT( * ) + ( + - COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8361
SELECT - COUNT ( * ) + ( + - COUNT ( * ) ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT DISTINCT + SUM( DISTINCT + col0 ) * - - 12 * + - 25 + COUNT( * ) FROM tab2 cor0
----
-55497

skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT + SUM ( DISTINCT + col0 ) * - - 12 * + - 25 + COUNT ( * ) FROM tab2 cor0
----
-55497

query I rowsort
SELECT - ( - 99 ) + + col2 AS col2 FROM tab1 AS cor0
----
158
167
195

query I rowsort
SELECT + 83 + - 54 * - - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-2355
-3309
-3892

query I rowsort
SELECT DISTINCT col2 + + 21 FROM tab0 AS cor0 WHERE NOT - 6 BETWEEN + 99 AND ( NULL )
----
120
31
68

query I rowsort
SELECT ALL - col1 * ( col2 ) - col2 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT COUNT( * ) * 8 AS col1 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8369
SELECT COUNT ( * ) * 8 AS col1 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL + COUNT( - + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + COUNT ( - + col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT - MAX( DISTINCT + - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8371
SELECT - MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8372
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col2 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + 57 * + ( + 16 ) = NULL
----

query I rowsort
SELECT - 31 * - col1 / col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8376
SELECT ALL - CAST( col1 AS SIGNED ) col2, 88 AS col1 FROM tab1
----
-14
88
-47
88
-5
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8376
SELECT ALL - CAST ( col1 AS INTEGER ) col2, 88 AS col1 FROM tab1
----
-14
88
-47
88
-5
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - - ( + 39 ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8377
SELECT - - ( + 39 ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL MIN( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL MIN ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL - MAX( ALL col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL - MAX ( ALL col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8380
SELECT ALL COUNT( * ) DIV 25 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8380
SELECT ALL COUNT ( * ) / 25 col2 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8381
SELECT ALL * FROM tab0 WHERE + col1 * + + CAST( NULL AS DECIMAL ) * + col2 / + ( - - col2 ) - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8381
SELECT ALL * FROM tab0 WHERE + col1 * + + CAST ( NULL AS REAL ) * + col2 / + ( - - col2 ) - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8382
SELECT DISTINCT - 13 + 72 DIV col2 * col2 * + 55 + + col1 FROM tab2 AS cor0
----
2264
3244
3833

skipif mysql # not compatible
query I rowsort label-8382
SELECT DISTINCT - 13 + 72 / col2 * col2 * + 55 + + col1 FROM tab2 AS cor0
----
2264
3244
3833

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL < + ( + 54 ) )
----

query I rowsort
SELECT + 14 + - 26 + + + 23 AS col0 FROM tab1 AS cor0
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 72 + - - col0 BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT + COUNT( * ) + - - 68 + + - CAST( - 67 AS SIGNED ) + + + COUNT( * ) AS col2 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-8386
SELECT + COUNT ( * ) + - - 68 + + - CAST ( - 67 AS INTEGER ) + + + COUNT ( * ) AS col2 FROM tab0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * col0 col0 FROM tab1 WHERE - col0 * - - 55 + + 10 + + col1 * - 45 IS NOT NULL
----
153
255
273

query II rowsort
SELECT DISTINCT col2, 31 * 83 * 40 FROM tab2
----
23
102920
40
102920
58
102920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8389
SELECT ALL + + col2 * - 85 * - - CAST( col1 AS DECIMAL ) col2 FROM tab2 WHERE NOT ( NULL ) >= col2 * ( - - 45 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8389
SELECT ALL + + col2 * - 85 * - - CAST ( col1 AS REAL ) col2 FROM tab2 WHERE NOT ( NULL ) >= col2 * ( - - 45 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + AVG ( DISTINCT + ( col2 ) ) * - + COUNT( * ) + 58 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + AVG ( DISTINCT + ( col2 ) ) * - + COUNT ( * ) + 58 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8391
SELECT - 15 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-15
NULL
-15
NULL
-15
NULL

skipif mysql # not compatible
query II rowsort label-8391
SELECT - 15 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-15
NULL
-15
NULL
-15
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8392
SELECT - 92 AS col1 FROM tab1 WHERE NOT ( + col0 * + 31 / col1 ) IS NULL OR col2 <= + col1 * ( - ( CAST( NULL AS DECIMAL ) ) )
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-8392
SELECT - 92 AS col1 FROM tab1 WHERE NOT ( + col0 * + 31 / col1 ) IS NULL OR col2 <= + col1 * ( - ( CAST ( NULL AS REAL ) ) )
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT DISTINCT 82 + + COUNT( * ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT 82 + + COUNT ( * ) FROM tab2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT DISTINCT + col0 - - col2 DIV + 97 col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8394
SELECT DISTINCT + col0 - - col2 / + 97 col1 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 80 ) col0 FROM tab1
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 7 <> col0 * col0 / + 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 * - col2, col0 FROM tab1 AS cor0
----
-3481
85
-4624
91
-9216
51

query I rowsort
SELECT col0 * + + 94 + + col1 * col0 FROM tab2 cor0 WHERE NOT + col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 88 col0 FROM tab0
----
1848
7128
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, 3 + - 85 col2 FROM tab1
----
14
-82
47
-82
5
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT 52 * - COUNT( ALL - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8401
SELECT 52 * - COUNT ( ALL - col2 ) FROM tab0
----
-156

query I rowsort
SELECT ALL - 14 * + col2 * - col2 + - 21 + + col0 FROM tab0 WHERE NULL IS NULL
----
137290
1466
30920

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 / + 44 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 AS col2 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT ALL - 57 + + 92 FROM tab2 WHERE - + col2 * + col0 = NULL
----

query I rowsort
SELECT DISTINCT 64 * + col1 + - + col1 FROM tab2
----
3213
4221
4851

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + 86 * - col0 * - 74 FROM tab0 cor0
----
553668
617308
95460

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT COUNT( DISTINCT + 17 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col0 / col1 ) AND 59
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8409
SELECT COUNT ( DISTINCT + 17 ) col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - col0 / col1 ) AND 59
----
0

query I rowsort
SELECT - 96 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 > + col0
----
-96
-96
-96

query I rowsort
SELECT - col2 * 86 + col1 FROM tab0 AS cor0
----
-3961
-839
-8513

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT + ( + SUM( DISTINCT + + col0 ) ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT + ( + SUM ( DISTINCT + + col0 ) ) AS col0 FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 50 + - col2 > + 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + + col2 / - 30 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT + COUNT( * ) + - - ( + MAX( col1 ) ) FROM tab0 WHERE - + 66 <= ( - - 67 )
----
84

skipif mysql # not compatible
query I rowsort label-8415
SELECT + COUNT ( * ) + - - ( + MAX ( col1 ) ) FROM tab0 WHERE - + 66 <= ( - - 67 )
----
84

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 92 IS NULL
----

query II rowsort
SELECT col1, - col1 AS col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT ALL - + col0 + - 27 FROM tab2 cor0
----
-102
-73
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) + - 22 AS col1 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) + - 22 AS col1 FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - ( + - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8420
SELECT - ( + - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - ( + col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT ALL 58 DIV + col2 + - col2 FROM tab0 AS cor0
----
-46
-5
-99

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL 58 / + col2 + - col2 FROM tab0 AS cor0
----
-46
-5
-99

query I rowsort
SELECT ALL - col0 * - col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
225
7569
9409

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT + COUNT( * ) + + + COUNT( + col1 ) * + + 43 - - 91 AS col2 FROM tab1 WHERE 55 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-8425
SELECT + COUNT ( * ) + + + COUNT ( + col1 ) * + + 43 - - 91 AS col2 FROM tab1 WHERE 55 IS NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL + MIN( + - 13 ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + MIN ( + - 13 ) FROM tab2
----
-13

query I rowsort
SELECT col0 - - - 9 + col1 + + 83 AS col2 FROM tab0
----
170
172
182

query I rowsort
SELECT col1 * - + 39 + - col0 AS col0 FROM tab2
----
-2035
-2688
-3067

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL - + MAX( - col2 ) + + 70 AS col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - + MAX ( - col2 ) + + 70 AS col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT col0 + 7 FROM tab0 AS cor0
----
104
22
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT ALL - - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 * - col1 + + col0 * 1 NOT BETWEEN + + col0 / col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL - - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col0 * - col1 + + col0 * 1 NOT BETWEEN + + col0 / col2 AND NULL
----
3

query I rowsort
SELECT ALL + col2 + - 48 FROM tab0 AS cor0
----
-1
-38
51

query I rowsort
SELECT - ( 7 ) AS col2 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT MAX( col1 ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8434
SELECT MAX ( col1 ) AS col0 FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8435
SELECT MAX( ALL col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8435
SELECT MAX ( ALL col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT DISTINCT - - 80 * - + col1 AS col0 FROM tab1 AS cor0
----
-1120
-3760
-400

query I rowsort
SELECT ALL - col2 * + 89 + 90 AS col1 FROM tab1 AS cor0
----
-5161
-5962
-8454

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8439
SELECT + 83 DIV + + ( + ( - CAST( col0 AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8439
SELECT + 83 / + + ( + ( - CAST ( col0 AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8440
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT - - COUNT( * ) AS col0, COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8442
SELECT - - COUNT ( * ) AS col0, COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col0 + - col2 col1 FROM tab1 AS cor0
----
-51
-45
-85
26
-91
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT 69 * + COUNT( - 90 ) AS col0 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT 69 * + COUNT ( - 90 ) AS col0 FROM tab1 AS cor0
----
207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8445
SELECT ALL COUNT( * ) DIV + 97 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL COUNT ( * ) / + 97 AS col2 FROM tab1
----
0

query I rowsort
SELECT 21 + - ( + + 43 ) - - - col1 * + ( ( - - 47 ) ) AS col2 FROM tab0
----
-1009
-3829
-69

query I rowsort
SELECT - 30 + col0 AS col0 FROM tab1
----
21
55
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - MAX( 37 ) + - 62 col0 FROM tab1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8448
SELECT DISTINCT - MAX ( 37 ) + - 62 col0 FROM tab1
----
-99

query II rowsort
SELECT DISTINCT 17 * - 29, col1 FROM tab0
----
-493
1
-493
21
-493
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT + - 58 + 55 col1, COUNT( * ) col1 FROM tab2 cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8450
SELECT + - 58 + 55 col1, COUNT ( * ) col1 FROM tab2 cor0
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT ALL - + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + + ( - 4 ) ) AS col1 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * - + col2 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * - + col2 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT SUM( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT SUM ( - col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT + MIN( ALL 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-8455
SELECT + MIN ( ALL 76 ) FROM tab1
----
76

query I rowsort
SELECT + col1 FROM tab1 WHERE ( + col0 + col2 ) <> - col2
----
14
47
5

query I rowsort
SELECT ALL col1 + + - ( col0 ) * col0 FROM tab2
----
-2065
-4019
-5558

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT 1 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8458
SELECT 1 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT - COUNT( * ) + - 65 AS col1 FROM tab1 cor0
----
-68

skipif mysql # not compatible
query I rowsort label-8459
SELECT - COUNT ( * ) + - 65 AS col1 FROM tab1 cor0
----
-68

query I rowsort
SELECT - ( ( + col0 ) ) * - + 91 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + - COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT + - COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + 51 * + ( + col2 ) col1 FROM tab0 AS cor0
----
2412
5146
597

query I rowsort
SELECT DISTINCT + + col2 / - col0 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 52 AS col0, - col2 FROM tab1 cor0
----
52
-59
52
-68
52
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL + COUNT( * ) - + 43 AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + COUNT ( * ) - + 43 AS col1 FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT + COUNT( * ), 78 col0 FROM tab0
----
3
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8467
SELECT + COUNT ( * ), 78 col0 FROM tab0
----
3
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT + col2 DIV + + 32 AS col0 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8469
SELECT + col2 / + + 32 AS col0 FROM tab1
----
1
2
3

query I rowsort
SELECT ALL - 15 + + 16 AS col0 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8471
SELECT - ( + - col1 ) DIV + + ( - col0 ) col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8471
SELECT - ( + - col1 ) / + + ( - col0 ) col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT 61 - + - col1 * + 75 AS col2 FROM tab1
----
1111
3586
436

query I rowsort
SELECT - ( + 4 ) - - col0 FROM tab2
----
42
60
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT ALL COUNT( + ( - + col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL COUNT ( + ( - + col2 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL - MIN( + ( + 85 ) ) AS col1 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - MIN ( + ( + 85 ) ) AS col1 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT - 40 * - col1 FROM tab2
----
2040
2680
3080

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8477
SELECT - 90 + - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8477
SELECT - 90 + - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query II rowsort label-8478
SELECT ALL col2 * + + col1 DIV - col1 AS col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

skipif mysql # not compatible
query II rowsort label-8478
SELECT ALL col2 * + + col1 / - col1 AS col2, - col2 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT DISTINCT + ( 32 ) AS col0 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT DISTINCT - CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT - MIN( + 45 ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8481
SELECT - MIN ( + 45 ) FROM tab1 AS cor0
----
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + + 28 ) AS col2 FROM tab0 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + SUM( DISTINCT - - 67 ) FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8484
SELECT + SUM ( DISTINCT - - 67 ) FROM tab0 AS cor0
----
67

query I rowsort
SELECT ALL + - 38 AS col0 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - col1 * - + col0 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT + ( - + col1 ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT col2 DIV - + 69 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8488
SELECT col2 / - + 69 col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT ( - ( + + col1 ) ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - ( + SUM( + col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8490
SELECT - ( + SUM ( + col1 ) ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + ( 47 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 72 + col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 55 <> + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 20 + 2 FROM tab0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT - + ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT - + ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 18 FROM tab2 cor0
----
1044
414
720

query I rowsort
SELECT ALL + col0 * + col1 - + 1 * - - col1 - + col2 AS col0 FROM tab0 AS cor0
----
-3
1087
1796

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 * + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT COUNT( * ) - 29 AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8499
SELECT COUNT ( * ) - 29 AS col2 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8500
SELECT ALL + + 4 * + COUNT( * ) + + - COUNT( * ) DIV + + 52 - - 11 * - COUNT( * ) * + - 58 FROM tab2 AS cor0
----
1926

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + + 4 * + COUNT ( * ) + + - COUNT ( * ) / + + 52 - - 11 * - COUNT ( * ) * + - 58 FROM tab2 AS cor0
----
1926

onlyif mysql # aggregate syntax: 
query II rowsort label-8501
SELECT + + COUNT( * ) * MIN( ALL col1 ) - - COUNT( * ) + + - COUNT( * ), 60 AS col0 FROM tab0 AS cor0
----
3
60

skipif mysql # not compatible
query II rowsort label-8501
SELECT + + COUNT ( * ) * MIN ( ALL col1 ) - - COUNT ( * ) + + - COUNT ( * ), 60 AS col0 FROM tab0 AS cor0
----
3
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8502
SELECT + CAST( NULL AS DECIMAL ) - + 26 * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT + CAST ( NULL AS REAL ) - + 26 * - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8503
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8503
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT 18 * + col2 AS col0 FROM tab0
----
1782
180
846

query I rowsort
SELECT DISTINCT + ( - col2 ) + 55 + - col2 + + col1 FROM tab1 WHERE - col0 IS NOT NULL
----
-123
-34
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT ALL - AVG ( DISTINCT - + col0 ) * - + AVG ( ALL + 9 ) * - - CAST( NULL AS SIGNED ) * 50 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL - AVG ( DISTINCT - + col0 ) * - + AVG ( ALL + 9 ) * - - CAST ( NULL AS INTEGER ) * 50 AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8507
SELECT * FROM tab1 WHERE NOT NULL >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8507
SELECT * FROM tab1 WHERE NOT NULL >= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8508
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8508
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = + col1 * - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 + col2 > - 22 * col0 - + col1 * - col2 * - 56 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL IS NULL OR NULL < ( NULL )
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 AS col2, ( + + col0 ) * + col1 AS col2, 75 col2 FROM tab0
----
9 values hashing to 7815ff3342e4c337b960fd493944fbeb

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - 23 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 68, col2 + - ( + 83 ) AS col2 FROM tab1 AS cor0
----
68
-15
68
-24
68
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL - - COUNT( ALL + col2 ) + COUNT( * ) col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8515
SELECT ALL - - COUNT ( ALL + col2 ) + COUNT ( * ) col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col2 IS NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 18 + 12 AS col1 FROM tab1
----
1074
1236
1740

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 80 + - col2 )
----

query I rowsort
SELECT DISTINCT - ( + - 84 ) + 71 FROM tab0
----
155

query I rowsort
SELECT DISTINCT col0 * col2 + - col0 AS col1 FROM tab2
----
1012
2496
4275

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 33 IN ( - ( + + 85 ), col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN - col2 AND + 29 + + col0 * + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT ALL + - 56 * - 96 * + COUNT( - + col1 ) FROM tab1 cor0
----
16128

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL + - 56 * - 96 * + COUNT ( - + col1 ) FROM tab1 cor0
----
16128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col0 - + 1 col2 FROM tab2 WHERE NOT - col2 IS NULL
----
-18
-24
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8525
SELECT - CAST( NULL AS DECIMAL ) * - + col2 + col0 * col0 + + - col2 * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT - CAST ( NULL AS REAL ) * - + col2 + col0 * col0 + + - col2 * + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8526
SELECT col0 + CAST( col0 AS SIGNED ), + col0 FROM tab0
----
174
87
194
97
30
15

skipif mysql # not compatible
query II rowsort label-8526
SELECT col0 + CAST ( col0 AS INTEGER ), + col0 FROM tab0
----
174
87
194
97
30
15

query I rowsort
SELECT ALL col2 + 70 AS col2 FROM tab0
----
117
169
80

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col1 + + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT + CAST( NULL AS SIGNED ) + 95 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT + CAST ( NULL AS INTEGER ) + 95 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT ALL + col0 + col0 * + col1 FROM tab0 AS cor0 WHERE col0 >= - col0 * + col1 + 31 * col1 - + 97 * + - CAST( - 72 AS SIGNED )
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL + col0 + col0 * + col1 FROM tab0 AS cor0 WHERE col0 >= - col0 * + col1 + 31 * col1 - + 97 * + - CAST ( - 72 AS INTEGER )
----
1230
1914
194

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT ALL - 41 DIV + + 31 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8532
SELECT ALL - 41 / + + 31 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 98 * + - col0 * - + col0 FROM tab0 AS cor0
----
-22050
-741762
-922082

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL - - COUNT( + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - - COUNT ( + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL BETWEEN + col0 AND + 60 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8536
SELECT ALL - MIN( ALL col1 ) DIV + 68 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - MIN ( ALL col1 ) / + 68 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 68 ) AS col1, - col0 col2 FROM tab2
----
-68
-46
-68
-64
-68
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT DISTINCT + - COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT + - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 2 * 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL - - SUM( - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - - SUM ( - col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT - - 2 AS col0 FROM tab0 cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8543
SELECT - + 32 DIV - + 98 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT - + 32 / - + 98 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 71 * - col0 AS col1 FROM tab2 AS cor0
----
3266
4544
5325

query I rowsort
SELECT - 14 * 83 FROM tab0
----
-1162
-1162
-1162

query II rowsort
SELECT ALL + col1 AS col1, 53 + col1 AS col0 FROM tab1
----
14
67
47
100
5
58

query I rowsort
SELECT + 81 * + col0 FROM tab1
----
4131
6885
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT + SUM( DISTINCT col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8548
SELECT + SUM ( DISTINCT col2 ) col1 FROM tab2
----
121

query I rowsort
SELECT DISTINCT + ( + col0 ) + - + col1 * + ( - 74 ) * + col0 - - 21 + + - col0 * + col1 AS col0 FROM tab1
----
31131
312333
52194

query I rowsort
SELECT 99 * + col2 * - col2 + - col1 AS col0 FROM tab1
----
-344624
-457823
-912398

query III rowsort
SELECT * FROM tab1 WHERE 1 IS NULL
----

query I rowsort
SELECT - + 84 + + + 70 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - col0 * + - 91 AS col2 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT + SUM( - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + SUM ( - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT ALL + 16 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query II rowsort
SELECT ALL col2 * + - col2, col0 FROM tab0
----
-100
87
-2209
15
-9801
97

query I rowsort
SELECT ALL - 47 + + 83 AS col1 FROM tab2, tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 76 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT DISTINCT + COUNT( * ) * + 4 AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8560
SELECT DISTINCT + COUNT ( * ) * + 4 AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT COUNT( ALL - col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8561
SELECT COUNT ( ALL - col1 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT DISTINCT - COUNT( * ) * + - 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - COUNT ( * ) * + - 93 FROM tab0
----
279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col2 FROM tab2 WHERE NOT + 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 51 * - 85 FROM tab0
----
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT - ( - COUNT( * ) ) AS col0 FROM tab0 WHERE NOT - + 62 <> + - ( - 35 ) * col0
----
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT - ( - COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT - + 62 <> + - ( - 35 ) * col0
----
0

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT - col0 + col0 col2 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8567
SELECT DISTINCT - col0 + col0 col2 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0, 52 AS col1 FROM tab2
----
-46
52
-64
52
-75
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8569
SELECT + col1 * + CAST( NULL AS SIGNED ) * - 7 * - col2, 65 AS col1 FROM tab1 AS cor0
----
NULL
65
NULL
65
NULL
65

skipif mysql # not compatible
query II rowsort label-8569
SELECT + col1 * + CAST ( NULL AS INTEGER ) * - 7 * - col2, 65 AS col1 FROM tab1 AS cor0
----
NULL
65
NULL
65
NULL
65

query I rowsort
SELECT DISTINCT + + col1 + - - 69 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT SUM( DISTINCT + 92 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
92

skipif mysql # not compatible
query I rowsort label-8571
SELECT SUM ( DISTINCT + 92 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT DISTINCT + ( - - MIN( + - col2 ) ) + + - COUNT( * ) + + COUNT( * ) + - 11 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT + ( - - MIN ( + - col2 ) ) + + - COUNT ( * ) + + COUNT ( * ) + - 11 FROM tab2
----
-69

query I rowsort
SELECT ALL + col1 + ( + - col2 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - + 25 + + + col2 FROM tab1 AS cor0
----
34
43
71

query I rowsort
SELECT + 43 FROM tab2 AS cor0 WHERE NULL > col2
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 61 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col0 col2 FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 97 * + col2 IS NULL AND NOT 36 IS NOT NULL
----

query I rowsort
SELECT ALL - - 61 FROM tab0 AS cor0
----
61
61
61

query III rowsort
SELECT * FROM tab1 WHERE - 11 + col1 + 91 * + col2 IS NULL
----

query I rowsort
SELECT - + col1 * 79 + - col1 FROM tab0 WHERE + col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE 46 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + 13 + col0 * + col2 >= + + col2 + + - col2 * + - col0
----
97
1
99

query I rowsort
SELECT DISTINCT - col2 - + 76 + + + col2 * col1 FROM tab1
----
1172
160
3052

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL - COUNT( - + 44 ) FROM tab1 AS cor0 WHERE + col1 - + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - COUNT ( - + 44 ) FROM tab1 AS cor0 WHERE + col1 - + col1 > NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND col2
----

query I rowsort
SELECT DISTINCT + + 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT 48 + + + 60 * 43 FROM tab0
----
2628
2628
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT COUNT( * ) * - 64 + + 20 FROM tab2
----
-172

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( * ) * - 64 + + 20 FROM tab2
----
-172

onlyif mysql # DIV for integer division: 
query II rowsort label-8590
SELECT 97 DIV + - col2, ( col1 ) FROM tab1
----
-1
14
-1
47
-1
5

skipif mysql # not compatible
query II rowsort label-8590
SELECT 97 / + - col2, ( col1 ) FROM tab1
----
-1
14
-1
47
-1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT + - ( - 29 ) * + CAST( + 70 AS SIGNED ) FROM tab0 AS cor0
----
2030
2030
2030

skipif mysql # not compatible
query I rowsort label-8591
SELECT + - ( - 29 ) * + CAST ( + 70 AS INTEGER ) FROM tab0 AS cor0
----
2030
2030
2030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8592
SELECT + 77 col0, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8592
SELECT + 77 col0, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT - COUNT( * ) * + SUM( ALL + 48 ) FROM tab0 AS cor0
----
-432

skipif mysql # not compatible
query I rowsort label-8593
SELECT - COUNT ( * ) * + SUM ( ALL + 48 ) FROM tab0 AS cor0
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8594
SELECT ALL + CAST( + ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL + CAST ( + ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL ( + - COUNT( ALL + 82 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL ( + - COUNT ( ALL + 82 ) ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT - SUM( ALL col1 ) col2, - MIN( + col0 ) FROM tab1
----
-66
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8597
SELECT - SUM ( ALL col1 ) col2, - MIN ( + col0 ) FROM tab1
----
-66
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + MIN( DISTINCT 14 ) * + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8598
SELECT + MIN ( DISTINCT 14 ) * + COUNT ( * ) FROM tab1
----
42

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( - col2 ) <> col0 * + - col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT COUNT( * ) FROM tab1 WHERE NOT + 40 * - col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 40 * - col0 >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - col0 <> + col1
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col2 NOT BETWEEN - 85 AND 60
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT col2 * col1 IS NULL
----
-10
-47
-99

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + col2 * + - 47 * + col1 FROM tab0
----
-179010
-4654
-9891

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN + - 94 AND NULL
----

query I rowsort
SELECT ALL - 78 + + col0 AS col1 FROM tab0 AS cor0
----
-63
19
9

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab1 AS cor0
----
45

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * ( + 72 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT DISTINCT + SUM( + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT + SUM ( + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT ALL - 56 + - CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - 56 + - CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT ALL + CAST( NULL AS SIGNED ) + SUM( ALL col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL + CAST ( NULL AS INTEGER ) + SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - + ( + ( + + col0 ) ) * - 22 * + col0 AS col1 FROM tab0 AS cor0
----
166539
206999
5031

query II rowsort
SELECT DISTINCT - + col0 AS col0, col0 + - 75 FROM tab2 AS cor0 WHERE - ( + col1 ) IS NOT NULL
----
-46
-29
-64
-11
-75
0

query I rowsort
SELECT DISTINCT - 94 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-8618
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-8618
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab1 WHERE NOT NULL <> - - col2 * + 56 + 63
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT ALL + 40 AS col2, - MAX( - col2 ) FROM tab0 AS cor0
----
40
10

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL + 40 AS col2, - MAX ( - col2 ) FROM tab0 AS cor0
----
40
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8623
SELECT + + col1 * CAST( + 92 AS SIGNED ) FROM tab1 AS cor0
----
1288
4324
460

skipif mysql # not compatible
query I rowsort label-8623
SELECT + + col1 * CAST ( + 92 AS INTEGER ) FROM tab1 AS cor0
----
1288
4324
460

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 80 / - - ( col1 ), 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT MIN( + - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8625
SELECT MIN ( + - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT + 50 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8626
SELECT + 50 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 82 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 + 87 + + col0 * - - col2 FROM tab2 AS cor0 WHERE NOT col0 + + + col1 * col1 IS NOT NULL
----

query I rowsort
SELECT col1 * + - col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT MAX( - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT MAX ( - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT ALL + - 55 AS col2 FROM tab1 WHERE + - 52 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + - 55 AS col2 FROM tab1 WHERE + - 52 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT ALL - COUNT( DISTINCT - 27 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL - COUNT ( DISTINCT - 27 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND ( - 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 44, - col1 col2 FROM tab2
----
44
-51
44
-67
44
-77

query I rowsort
SELECT - + 92 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - - col0, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT DISTINCT CAST( - + col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8637
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT - col1 + - + col2 * - + col0 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT - col1 + - + col2 * - + col0 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT - col2 + - 60 * col0 + - - ( + col0 ) - + 83 DIV + col2 FROM tab2
----
-2740
-3818
-4484

skipif mysql # not compatible
query I rowsort label-8639
SELECT - col2 + - 60 * col0 + - - ( + col0 ) - + 83 / + col2 FROM tab2
----
-2740
-3818
-4484

query I rowsort
SELECT - ( - 47 ) + - + ( + col2 ) FROM tab1
----
-12
-21
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + + col1 * - 65 col0 FROM tab2
----
-3244
-4284
-4934

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 75 = NULL
----

query I rowsort
SELECT - + col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL - 10 + + col0 FROM tab1 cor0
----
41
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - ( + - 14 ) col1 FROM tab2 AS cor0 WHERE 39 * + + col2 IS NOT NULL
----
-1050
-644
-896

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab0 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8648
SELECT + col2 + col1 * CAST( ( + col0 ) AS SIGNED ) * + 35 - ( 7 ) FROM tab1 WHERE NULL <> + col0
----

skipif mysql # not compatible
query I rowsort label-8648
SELECT + col2 + col1 * CAST ( ( + col0 ) AS INTEGER ) * + 35 - ( 7 ) FROM tab1 WHERE NULL <> + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT 17 + + 39 + + MIN( ALL + 23 ) col0 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8650
SELECT DISTINCT 17 + + 39 + + MIN ( ALL + 23 ) col0 FROM tab2
----
79

query I rowsort
SELECT DISTINCT + col2 * - - col0 AS col1 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT ALL COUNT( * ) + 70 col1 FROM tab2
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8652
SELECT ALL COUNT ( * ) + 70 col1 FROM tab2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8653
SELECT 26 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8653
SELECT 26 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT SUM( DISTINCT 24 ) AS col0 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8654
SELECT SUM ( DISTINCT 24 ) AS col0 FROM tab0
----
24

query II rowsort
SELECT - col0 AS col2, col0 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT DISTINCT col0 + + col0 * ( - col2 ) DIV col1 FROM tab1
----
-298
-40
-918

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT col0 + + col0 * ( - col2 ) / col1 FROM tab1
----
-298
-40
-918

query I rowsort
SELECT - col2 - + 24 FROM tab1 AS cor0
----
-120
-83
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8658
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 > CAST( + col2 AS SIGNED ) * 12
----

skipif mysql # not compatible
query III rowsort label-8658
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 > CAST ( + col2 AS INTEGER ) * 12
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8659
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8659
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT COUNT( * ) - 53 * - 44 + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2350

skipif mysql # not compatible
query I rowsort label-8660
SELECT COUNT ( * ) - 53 * - 44 + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2350

query I rowsort
SELECT ALL + ( 18 ) * col2 FROM tab1
----
1062
1224
1728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8662
SELECT DISTINCT - MAX( DISTINCT - col0 ) DIV - - COUNT( * ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT - MAX ( DISTINCT - col0 ) / - - COUNT ( * ) AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE NOT 75 + + col2 * ( + col2 ) / - 55 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT 75 + + col2 * ( + col2 ) / - 55 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8664
SELECT DISTINCT + 17 DIV - col2 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT + 17 / - col2 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab1 WHERE NOT - 90 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 + + col0 > - col2
----

skipif mysql # not compatible
query I rowsort label-8666
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 + + col0 > - col2
----

query I rowsort
SELECT DISTINCT col2 * + 21 * - 46 AS col1 FROM tab2 AS cor0
----
-22218
-38640
-56028

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 55 col1 FROM tab1 cor0
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT SUM( - 10 ) FROM tab0 WHERE NOT col2 * col0 <> - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT SUM ( - 10 ) FROM tab0 WHERE NOT col2 * col0 <> - - col0
----
NULL

query I rowsort
SELECT DISTINCT ( 98 ) FROM tab0
----
98

query II rowsort
SELECT 10 AS col1, col2 FROM tab0
----
10
10
10
47
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT SUM( DISTINCT - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8672
SELECT SUM ( DISTINCT - col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT MAX( + - ( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8673
SELECT MAX ( + - ( + col0 ) ) FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8674
SELECT 97 AS col0, + CAST( NULL AS SIGNED ) * ( col1 ) AS col1 FROM tab2
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8674
SELECT 97 AS col0, + CAST ( NULL AS INTEGER ) * ( col1 ) AS col1 FROM tab2
----
97
NULL
97
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 + col1 IN ( - col2 * + col1, - col2, col1 * - 35, + + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 + col1 IN ( - col2 * + col1, - col2, col1 * - 35, + + col1 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8677
SELECT - CAST( - - MIN( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8677
SELECT - CAST ( - - MIN ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8678
SELECT + - ( + SUM( - - col2 ) ) AS col1, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-223
NULL

skipif mysql # not compatible
query II rowsort label-8678
SELECT + - ( + SUM ( - - col2 ) ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-223
NULL

query II rowsort
SELECT ALL + col2 AS col2, col1 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT + COUNT( * ) + + + 43 AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8680
SELECT + COUNT ( * ) + + + 43 AS col2 FROM tab1 AS cor0
----
46

query I rowsort
SELECT ALL + 98 * 50 * - col1 AS col1 FROM tab1 WHERE + - col0 IS NOT NULL
----
-230300
-24500
-68600

query I rowsort
SELECT + 62 + - col2 AS col2 FROM tab2
----
22
39
4

query II rowsort
SELECT + + col0 AS col1, - 51 AS col0 FROM tab0 AS cor0
----
15
-51
87
-51
97
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT DISTINCT 13 * + - COUNT( DISTINCT 17 ) AS col0 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT 13 * + - COUNT ( DISTINCT 17 ) AS col0 FROM tab2 AS cor0
----
-13

query I rowsort
SELECT ALL - col1 + - ( - 94 ) - - col0 * + col0 FROM tab2 cor0
----
2159
4113
5652

query I rowsort
SELECT - col1 * - - col2 * + 29 + - col1 - - 51 AS col1 FROM tab0 AS cor0
----
-110433
-2821
-6060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8687
SELECT ALL + + COUNT( + CAST( - 60 AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + + COUNT ( + CAST ( - 60 AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - ( + col2 ) - col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 >= 26 AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL + MIN( DISTINCT - col1 ) + + 15 AS col2 FROM tab2 WHERE NOT ( ( NOT col0 + - 81 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + MIN ( DISTINCT - col1 ) + + 15 AS col2 FROM tab2 WHERE NOT ( ( NOT col0 + - 81 IS NULL ) )
----
NULL

query I rowsort
SELECT col2 + + 77 AS col2 FROM tab2
----
100
117
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL + CAST( col1 AS SIGNED ) * + 97 FROM tab2
----
4947
6499
7469

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + CAST ( col1 AS INTEGER ) * + 97 FROM tab2
----
4947
6499
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 83 * - + col0 * - + 71 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8695
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT - MIN( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8697
SELECT - MIN ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + col1 * + + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - ( - + AVG ( - 96 ) ) - MIN( ALL + - 89 ) FROM tab0 AS cor0 WHERE NOT - col2 + - 20 < - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - ( - + AVG ( - 96 ) ) - MIN ( ALL + - 89 ) FROM tab0 AS cor0 WHERE NOT - col2 + - 20 < - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - 90 * + SUM( ALL - 45 ) FROM tab0 AS cor0
----
12150

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 90 * + SUM ( ALL - 45 ) FROM tab0 AS cor0
----
12150

query I rowsort
SELECT ALL + 46 * + col0 AS col2 FROM tab2 AS cor0
----
2116
2944
3450

query I rowsort
SELECT + 40 + - + ( + col0 ) AS col2 FROM tab0
----
-47
-57
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT CAST( + - col1 AS SIGNED ) FROM tab2 WHERE + 91 / col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8704
SELECT CAST ( + - col1 AS INTEGER ) FROM tab2 WHERE + 91 / col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8705
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) DIV - MIN( ALL + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) / - MIN ( ALL + col2 ) FROM tab2
----
0

query I rowsort
SELECT ALL + ( + - 8 ) * + ( - 56 ) * col1 AS col1 FROM tab0
----
36288
448
9408

query I rowsort
SELECT + + 56 FROM tab1 cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT DISTINCT - 90 + - - COUNT( * ) AS col2, - COUNT( * ) + - 38 AS col0 FROM tab0 cor0 WHERE + 54 IS NULL
----
-90
-38

skipif mysql # not compatible
query II rowsort label-8708
SELECT DISTINCT - 90 + - - COUNT ( * ) AS col2, - COUNT ( * ) + - 38 AS col0 FROM tab0 cor0 WHERE + 54 IS NULL
----
-90
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 47 * + col0 AS col0 FROM tab0 AS cor0
----
-4089
-4559
-705

query I rowsort
SELECT - col0 + + 59 AS col0 FROM tab0 AS cor0
----
-28
-38
44

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 * - - 95 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT CAST( col0 AS SIGNED ) + - col2 + - 79 AS col1 FROM tab1 AS cor0
----
-124
-53
-56

skipif mysql # not compatible
query I rowsort label-8713
SELECT CAST ( col0 AS INTEGER ) + - col2 + - 79 AS col1 FROM tab1 AS cor0
----
-124
-53
-56

query I rowsort
SELECT + - 67 FROM tab2 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT 49 + + col2 FROM tab1 AS cor0
----
108
117
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT DISTINCT - - MAX( + CAST( + col2 AS SIGNED ) ) - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT - - MAX ( + CAST ( + col2 AS INTEGER ) ) - COUNT ( * ) FROM tab0 AS cor0
----
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 34 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL col0 - + + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8719
SELECT 20 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - - 28 NOT BETWEEN - + col1 * + - CAST( NULL AS DECIMAL ) + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8719
SELECT 20 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - - 28 NOT BETWEEN - + col1 * + - CAST ( NULL AS REAL ) + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL + 83 - - SUM( - - col0 ) AS col1 FROM tab2 AS cor0
----
268

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL + 83 - - SUM ( - - col0 ) AS col1 FROM tab2 AS cor0
----
268

onlyif mysql # DIV for integer division: 
query I rowsort label-8721
SELECT ALL - col1 DIV - 45 FROM tab0 WHERE NOT + col1 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL - col1 / - 45 FROM tab0 WHERE NOT + col1 IS NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL - COUNT( * ) - 29 * - 95 FROM tab0
----
2752

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL - COUNT ( * ) - 29 * - 95 FROM tab0
----
2752

query I rowsort
SELECT 69 * + 58 * + col0 FROM tab2
----
184092
256128
300150

query I rowsort
SELECT - col0 * + - 32 AS col0 FROM tab1
----
1632
2720
2912

query I rowsort
SELECT + col2 * - 95 * 74 AS col2 FROM tab2
----
-161690
-281200
-407740

query I rowsort
SELECT ALL - ( - col0 ) * - + col2 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT - 43 * + - CAST( NULL AS SIGNED ) * + 87 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8727
SELECT - 43 * + - CAST ( NULL AS INTEGER ) * + 87 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + 22 * - - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8728
SELECT + 22 * - - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + ( - col2 ) + + - 12 + - col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1438
-2492
-3608

query I rowsort
SELECT 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 8 * + 29 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT 57 * - COUNT( * ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8732
SELECT 57 * - COUNT ( * ) FROM tab1 AS cor0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT ALL + 39 DIV 26 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL + 39 / 26 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab0 AS cor0 WHERE + 37 * + col0 <= + - 59 * + col1 - 33
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8735
SELECT DISTINCT 39 DIV - MAX( ( - - 32 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT 39 / - MAX ( ( - - 32 ) ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 30 + + col1 FROM tab1
----
35
44
77

query II rowsort
SELECT + col0, col0 * 53 * + col1 FROM tab0
----
15
64395
87
96831
97
5141

query I rowsort
SELECT ALL + col2 + 39 + 55 FROM tab2 cor0
----
117
134
152

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT ALL 19 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL 19 / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL - 3 * - 12 FROM tab2
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + 26 col0 FROM tab1
----
-4870
-4989
-6162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8743
SELECT CAST( NULL AS SIGNED ) * - col2 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT CAST ( NULL AS INTEGER ) * - col2 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - 31 FROM tab2 WHERE - col0 >= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + 73 + + SUM( DISTINCT + col2 + col1 ) FROM tab2
----
389

skipif mysql # not compatible
query I rowsort label-8745
SELECT + 73 + + SUM ( DISTINCT + col2 + col1 ) FROM tab2
----
389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT DISTINCT - CAST( - 22 AS SIGNED ) * - col2 AS col1 FROM tab0
----
-1034
-2178
-220

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT - CAST ( - 22 AS INTEGER ) * - col2 AS col1 FROM tab0
----
-1034
-2178
-220

onlyif mysql # DIV for integer division: 
query I rowsort label-8747
SELECT 96 DIV + 9 FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-8747
SELECT 96 / + 9 FROM tab0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT ALL + col0 - col1 DIV - col0 AS col2 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + col0 - col1 / - col0 AS col2 FROM tab2
----
47
65
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8749
SELECT col2 DIV + 30 AS col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8749
SELECT col2 / + 30 AS col1 FROM tab1
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT col0 + + col0 DIV col1 col2 FROM tab1
----
102
54
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8750
SELECT col0 + + col0 / col1 col2 FROM tab1
----
102
54
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT - MIN( - col1 ) DIV - 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - MIN ( - col1 ) / - 83 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN + col1 - - ( - col2 - - 63 * 63 ) * + col0 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( + ( - col2 ) * 48 ) BETWEEN - col0 AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( + ( - col2 ) * 48 ) BETWEEN - col0 AND ( col1 )
----
0

query I rowsort
SELECT col2 + col1 AS col2 FROM tab0 WHERE NOT ( + col0 * - ( col1 ) ) NOT BETWEEN + col0 + + col2 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT 90 * + COUNT( * ) - ( - COUNT( + col1 ) ) AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8755
SELECT 90 * + COUNT ( * ) - ( - COUNT ( + col1 ) ) AS col1 FROM tab1
----
273

query I rowsort
SELECT ALL + ( 44 ) FROM tab2
----
44
44
44

query I rowsort
SELECT ALL 29 AS col0 FROM tab0 WHERE NOT - col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT - MIN( ALL 27 ) col1 FROM tab0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8758
SELECT DISTINCT - MIN ( ALL 27 ) col1 FROM tab0
----
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT - 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * 81 AS col2 FROM tab2 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col0 FROM tab0
----
23
23
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8762
SELECT - MAX( + col2 ) DIV 36 + - 34 AS col2 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-8762
SELECT - MAX ( + col2 ) / 36 + - 34 AS col2 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT ALL + MIN( col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + MIN ( col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 24 <> - 83 * col1 - - col1
----
0

skipif mysql # not compatible
query I rowsort label-8764
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 24 <> - 83 * col1 - - col1
----
0

query I rowsort
SELECT + col2 * + 96 FROM tab0 AS cor0
----
4512
9504
960

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col2 ) <> + 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( 74 ) * - col2 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 + ( col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT col0 DIV 19 + + 55 * col1 FROM tab2 AS cor0
----
2807
3688
4238

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT col0 / 19 + + 55 * col1 FROM tab2 AS cor0
----
2807
3688
4238

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 cor0 WHERE ( col2 ) = - col1
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT 49 * 60 BETWEEN + col0 AND col1
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT - - COUNT( * ) * 67 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - - COUNT ( * ) * 67 FROM tab0 AS cor0
----
201

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col0 * col1 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT + COUNT( * ) + - ( COUNT( * ) + + MAX( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COUNT ( * ) + - ( COUNT ( * ) + + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT ALL + 71 DIV col0 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL + 71 / col0 FROM tab0 AS cor0
----
0
0
4

query I rowsort
SELECT - col0 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT ALL - 2 DIV COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - 2 / COUNT ( * ) AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col1 * - 68 ) BETWEEN ( 80 ) AND + 81 / + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT + - ( + SUM( ALL 78 ) ) AS col2 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT + - ( + SUM ( ALL 78 ) ) AS col2 FROM tab1 AS cor0
----
-234

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT + + col1 DIV 34 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT + + col1 / 34 AS col1 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT DISTINCT + ( - + 88 ) AS col0 FROM tab1
----
-88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * + - 40 + - ( col2 ) col2 FROM tab2
----
-2623
-2640
-2658

query I rowsort
SELECT DISTINCT col0 * + col0 + + 3 * 6 FROM tab2
----
2134
4114
5643

query I rowsort
SELECT - col2 * - 42 FROM tab2
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ( - COUNT( ALL + 66 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8788
SELECT ( - COUNT ( ALL + 66 ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
236
3128

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 67 AND col1 + ( + ( - 94 ) )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) - + 34 FROM tab0 AS cor0
----
-24
13
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) * - 84 + - col2 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 80 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL - - 66 * 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 62c11cd8a26eeeb800e95c6aecceb53a

query I rowsort
SELECT - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8796
SELECT ALL - CAST( NULL AS SIGNED ) * ( - + SUM( + col0 ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - + SUM ( + col0 ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT - + MIN( - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8797
SELECT - + MIN ( - col0 ) FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT - col0, + col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL ( - 15 ) * - + col0 + + col2 AS col1 FROM tab0
----
1315
1554
272

query II rowsort
SELECT + ( - col2 ) AS col0, 98 FROM tab2
----
-23
98
-40
98
-58
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8802
SELECT DISTINCT + ( + ( + - CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + ( + ( + - CAST ( NULL AS REAL ) ) ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + ( + + 63 ) * + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 86 * 33 * - col0 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * + col2 col1 FROM tab2 WHERE NOT ( + - 86 * col1 ) IN ( col0 * 65 )
----
1518
2640
3828

query II rowsort
SELECT - - ( col0 ) AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - 54 + col0 AND ( + col0 )
----

query I rowsort
SELECT DISTINCT - - 30 + col1 AS col2 FROM tab0 WHERE 90 * - - col1 IS NOT NULL
----
111
31
51

query I rowsort
SELECT ALL ( - ( + - col2 ) ) + - - 91 * ( + 88 ) AS col1 FROM tab0 AS cor0
----
8018
8055
8107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8811
SELECT - COUNT( * ) / + CAST( NULL AS DECIMAL ) - - COUNT( * ) * - CAST( NULL AS SIGNED ) + - 96 FROM tab2 AS cor0 WHERE - 60 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT - COUNT ( * ) / + CAST ( NULL AS REAL ) - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - 96 FROM tab2 AS cor0 WHERE - 60 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 23 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8813
SELECT DISTINCT + 13 DIV - 58 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT + 13 / - 58 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8814
SELECT - col1 * - CAST( NULL AS DECIMAL ) * + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT - col1 * - CAST ( NULL AS REAL ) * + col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * + 68 * + - 14 - + col1 + col0 AS col2 FROM tab2 AS cor0
----
43787
60915
71408

query I rowsort
SELECT + col2 + 65 AS col1 FROM tab1 AS cor0 WHERE NULL = - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT DISTINCT + + MAX( col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT + + MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT + MIN( ALL - - 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT + MIN ( ALL - - 49 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT + 75 * - 91 AS col1 FROM tab0
----
-6825
-6825
-6825

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NOT + 32 NOT BETWEEN - 44 AND NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, + 46 * + + col0 AS col0 FROM tab1
----
59
3910
68
4186
96
2346

query II rowsort
SELECT ALL col1 * + col2 AS col2, 90 AS col2 FROM tab0
----
210
90
3807
90
99
90

query I rowsort
SELECT ALL col0 + col1 * + col0 AS col0 FROM tab2
----
2392
4992
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8824
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col2 / ( - + col2 ) + ( + col1 ) + + col1 IN ( 15 * - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col2 / ( - + col2 ) + ( + col1 ) + + col1 IN ( 15 * - CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab2 WHERE + 10 / + ( - col0 ) / + + 8 IS NULL
----

query I rowsort
SELECT DISTINCT 51 + 77 AS col1 FROM tab1 AS cor0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL - ( + 9 ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - ( + 9 ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - 56 * + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
2879
3810
4352

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT - 57 DIV 29 + - - 21 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-8829
SELECT - 57 / 29 + - - 21 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + col2 - + ( col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT ALL 97 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 62 IN ( col2, 38 * - 8 + + col0 + col0 * 13 )
----

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL 97 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 62 IN ( col2, 38 * - 8 + + col0 + col0 * 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT - COUNT( DISTINCT - + 86 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8832
SELECT - COUNT ( DISTINCT - + 86 ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col2 * - 2 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - COUNT( * ) - - - MAX( + 48 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COUNT ( * ) - - - MAX ( + 48 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE 83 * - col0 * + col2 * - 40 + - 19 <= 24 * + col2
----

query II rowsort
SELECT DISTINCT - - col0 * + + col1 AS col1, 28 AS col1 FROM tab2 AS cor0
----
2346
28
4928
28
5025
28

query I rowsort
SELECT DISTINCT 28 - - 96 + - 15 AS col2 FROM tab0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL - COUNT( * ) * - + COUNT( - col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - COUNT ( * ) * - + COUNT ( - col1 ) FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col1 FROM tab2 WHERE NOT + - col0 + + + 75 * 49 IS NULL
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT - 5 DIV - col0 * + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 5 / - col0 * + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT ALL + + 1 / - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + + 1 / - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL - MIN( 64 ) AS col2 FROM tab1 AS cor0 WHERE + col1 >= - col1
----
-64

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL - MIN ( 64 ) AS col2 FROM tab1 AS cor0 WHERE + col1 >= - col1
----
-64

query II rowsort
SELECT - + ( col1 ), col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + col2 ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8845
SELECT col2 DIV + col2 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-8845
SELECT col2 / + col2 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-50
-84
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8846
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - - col2 * - ( 2 ) * CAST( NULL AS SIGNED ) * col2 * col2 <> + col1
----

skipif mysql # not compatible
query III rowsort label-8846
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - - col2 * - ( 2 ) * CAST ( NULL AS INTEGER ) * col2 * col2 <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT + - COUNT( * ) - 41 - + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
-41

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + - COUNT ( * ) - 41 - + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
-41

query I rowsort
SELECT ALL - - col2 * ( + 50 ) FROM tab1 AS cor0
----
2950
3400
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col0 FROM tab2 AS cor0 WHERE NOT + 80 < ( + col1 )
----
-1173
-3080
-3886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 98 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT DISTINCT SUM( ALL + + ( ( + col0 ) ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT SUM ( ALL + + ( ( + col0 ) ) ) FROM tab1
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-8853
SELECT ALL 27 DIV 74 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL 27 / 74 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL + COUNT( + 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + COUNT ( + 24 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8855
SELECT - - CAST( + - ( - CAST( COUNT( DISTINCT + col0 ) AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8855
SELECT - - CAST ( + - ( - CAST ( COUNT ( DISTINCT + col0 ) AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT 69 + ( - col1 ) >= ( col0 )
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, - col1 + + + ( - + 49 ) + + col2 FROM tab2 AS cor0
----
46
-77
64
-86
75
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 47 * + - col0 FROM tab1
----
-2397
-3995
-4277

query I rowsort
SELECT DISTINCT - col2 + - + col2 * + 23 AS col1 FROM tab1
----
-1416
-1632
-2304

query I rowsort
SELECT - 2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL - COUNT( + col0 ) + + 82 col0 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8862
SELECT ALL - COUNT ( + col0 ) + + 82 col0 FROM tab2
----
79

query I rowsort
SELECT ALL + col2 + - 90 AS col1 FROM tab1 AS cor0
----
-22
-31
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8864
SELECT DISTINCT - 76 + - - COUNT( * ), + SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-73
-227

skipif mysql # not compatible
query II rowsort label-8864
SELECT DISTINCT - 76 + - - COUNT ( * ), + SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-73
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - 10 + + COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8865
SELECT - 10 + + COUNT ( * ) FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8866
SELECT - 16 * + col0 + + + CAST( + 0 AS SIGNED ) + - - col2, col2 AS col2 FROM tab2 AS cor0
----
-1142
58
-713
23
-984
40

skipif mysql # not compatible
query II rowsort label-8866
SELECT - 16 * + col0 + + + CAST ( + 0 AS INTEGER ) + - - col2, col2 AS col2 FROM tab2 AS cor0
----
-1142
58
-713
23
-984
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT DISTINCT - - ( + COUNT( * ) ) - - 29 FROM tab2 cor0
----
32

skipif mysql # not compatible
query I rowsort label-8867
SELECT DISTINCT - - ( + COUNT ( * ) ) - - 29 FROM tab2 cor0
----
32

query II rowsort
SELECT + col0 + 75 AS col1, + col0 - - col1 * - col1 FROM tab1 AS cor0
----
126
-145
160
60
166
-2118

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 FROM tab0 WHERE NOT + col2 + 30 <> ( NULL )
----

query I rowsort
SELECT col2 + - - 31 - 73 + - + col2 * + 32 FROM tab1
----
-1871
-2150
-3018

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT ( + + 10 ) IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT - col1 DIV - + 53 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8872
SELECT - col1 / - + 53 col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT + + 49 FROM tab0 WHERE - + col1 + - - col2 / ( - - CAST( - col0 AS SIGNED ) ) IS NOT NULL
----
49
49
49

skipif mysql # not compatible
query I rowsort label-8873
SELECT + + 49 FROM tab0 WHERE - + col1 + - - col2 / ( - - CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL MIN( + 97 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL MIN ( + 97 ) AS col0 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN col1 AND col1 * + col1
----

query I rowsort
SELECT DISTINCT 54 * + + 60 + + col1 + + col1 - - col1 AS col2 FROM tab0
----
3243
3303
3483

query II rowsort
SELECT - - col0 AS col2, col1 + + col1 AS col1 FROM tab2 AS cor0
----
46
102
64
154
75
134

query I rowsort
SELECT DISTINCT + 61 + - 41 AS col1 FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL + - col0 + + 24 + 66 FROM tab1 AS cor0
----
-1
39
5

query I rowsort
SELECT ALL + col2 + 93 FROM tab1 cor0
----
152
161
189

query I rowsort
SELECT ALL - 92 - - 28 AS col1 FROM tab0 AS cor0
----
-64
-64
-64

query II rowsort
SELECT + + col2, + col2 FROM tab1 AS cor0 WHERE col1 * - col1 + + col0 >= NULL
----

query I rowsort
SELECT - ( + - col2 ) * - - col0 * + 33 FROM tab0
----
23265
28710
316899

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( + 34 * col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 91 * col1, 33 AS col0 FROM tab1
----
1274
33
4277
33
455
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT ALL - COUNT( * ), MAX( + + col2 ) AS col0 FROM tab2
----
-3
58

skipif mysql # not compatible
query II rowsort label-8886
SELECT ALL - COUNT ( * ), MAX ( + + col2 ) AS col0 FROM tab2
----
-3
58

query I rowsort
SELECT DISTINCT - 51 * 34 AS col1 FROM tab0
----
-1734

query I rowsort
SELECT + col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - + col0 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 * + 67 FROM tab2 AS cor0
----
3082
4288
5025

onlyif mysql # aggregate syntax: 
query II rowsort label-8891
SELECT DISTINCT - + COUNT( * ) AS col2, - COUNT( * ) AS col0 FROM tab2 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8891
SELECT DISTINCT - + COUNT ( * ) AS col2, - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 74 AS col0 FROM tab0 cor0
----
15
74
87
74
97
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / + col2 IS NOT NULL AND NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= + 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col2 col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8896
SELECT DISTINCT + 41 DIV + MAX( - col2 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + 41 / + MAX ( - col2 ) FROM tab2
----
-1

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 + ( ( + ( - ( - ( col1 ) ) ) ) ) * - + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

query I rowsort
SELECT - - col1 + + + col0 + col1 * - col0 FROM tab2 AS cor0
----
-2249
-4787
-4883

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT ( 30 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8901
SELECT ALL + ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT ALL + ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT ( + col2 ) + - CAST( + col1 AS SIGNED ) FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8902
SELECT ( + col2 ) + - CAST ( + col1 AS INTEGER ) FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT - SUM( DISTINCT - 65 ) + + COUNT( * ) FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT - SUM ( DISTINCT - 65 ) + + COUNT ( * ) FROM tab1
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT - - COUNT( * ) AS col1, COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
9

skipif mysql # not compatible
query II rowsort label-8904
SELECT - - COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9
9

query I rowsort
SELECT 34 AS col2 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT + - col1 * - col0 FROM tab1 AS cor0 WHERE NULL <> + 56 - - - 28 + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8907
SELECT + 22, COUNT( * ) + - - 69 AS col1 FROM tab0 AS cor0
----
22
72

skipif mysql # not compatible
query II rowsort label-8907
SELECT + 22, COUNT ( * ) + - - 69 AS col1 FROM tab0 AS cor0
----
22
72

query I rowsort
SELECT ALL + col2 - - - 78 FROM tab0 AS cor0
----
-31
-68
21

query II rowsort
SELECT ALL col1 AS col1, + 16 AS col0 FROM tab2 AS cor0
----
51
16
67
16
77
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT - - 69 AS col0 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + 36 - + col2 FROM tab0 AS cor0
----
-11
-63
26

query I rowsort
SELECT - - 89 * - 66 * col1 - + col2 FROM tab0 cor0
----
-123364
-475841
-5973

query I rowsort
SELECT - col1 - - + 58 + + 1 FROM tab1
----
12
45
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + - col1 col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT col0 * - 95 + + - col1 AS col1 FROM tab0
----
-1506
-8286
-9216

query II rowsort
SELECT DISTINCT - col1 * + + col0 - - ( - + col2 ) + + - col2 AS col2, + 64 FROM tab1 AS cor0
----
-4413
64
-543
64
-906
64

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 49 * 49 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT DISTINCT col1, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8921
SELECT ALL CAST( + - col0 AS SIGNED ) * + 7 * col0 * 70 AS col0, + ( col2 ) AS col0 FROM tab0 AS cor0
----
-110250
47
-3708810
10
-4610410
99

skipif mysql # not compatible
query II rowsort label-8921
SELECT ALL CAST ( + - col0 AS INTEGER ) * + 7 * col0 * 70 AS col0, + ( col2 ) AS col0 FROM tab0 AS cor0
----
-110250
47
-3708810
10
-4610410
99

query I rowsort
SELECT + 47 * - col0 FROM tab0 AS cor0
----
-4089
-4559
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT DISTINCT - COUNT( * ) * + ( 82 ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - COUNT ( * ) * + ( 82 ) FROM tab2 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL SUM( DISTINCT - col2 ) col0 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8924
SELECT ALL SUM ( DISTINCT - col2 ) col0 FROM tab2
----
-121

query II rowsort
SELECT - col2, + col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT - ( - 33 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ( - - COUNT( * ) ) + - 23 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-8927
SELECT ( - - COUNT ( * ) ) + - 23 FROM tab0
----
-20

query I rowsort
SELECT col2 + + col1 * - col1 FROM tab2
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-8929
SELECT 22 + MIN( ALL col2 ) AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-8929
SELECT 22 + MIN ( ALL col2 ) AS col2 FROM tab1
----
81

query I rowsort
SELECT DISTINCT - 8 - - col0 * - - 5 AS col2 FROM tab1 AS cor0
----
247
417
447

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT ALL + 58 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
59
61
75

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + 58 + col0 / col1 AS col2 FROM tab1 AS cor0
----
59
61
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8932
SELECT * FROM tab2 AS cor0 WHERE + CAST( + - 42 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8932
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + - 42 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL 38 - MAX( DISTINCT - 29 ) FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL 38 - MAX ( DISTINCT - 29 ) FROM tab0 AS cor0
----
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 82 + - col0 ) IN ( col0 / + col0 + - 73 * - col2 * + 73 + + + col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + COUNT( DISTINCT + + 44 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8935
SELECT + COUNT ( DISTINCT + + 44 ) col2 FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 48 <= - col2 + col0 + - - col2 + col1 + - 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT + 47 * + - MIN( - col2 ) AS col1 FROM tab0
----
4653

skipif mysql # not compatible
query I rowsort label-8937
SELECT + 47 * + - MIN ( - col2 ) AS col1 FROM tab0
----
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT + COUNT( * ) + + 73 AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + COUNT ( * ) + + 73 AS col1 FROM tab0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8939
SELECT + ( - col2 ) DIV + col0 - + col2 - + 69 FROM tab1
----
-128
-137
-166

skipif mysql # not compatible
query I rowsort label-8939
SELECT + ( - col2 ) / + col0 - + col2 - + 69 FROM tab1
----
-128
-137
-166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col2 col0 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT 1 FROM tab2 WHERE NOT + 49 BETWEEN NULL AND 19 + col2 + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT COUNT( + + 73 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8942
SELECT COUNT ( + + 73 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT - COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 < + col2 * - col1 + - ( + - 71 )
----
-3

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT - COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 < + col2 * - col1 + - ( + - 71 )
----
-3

query I rowsort
SELECT DISTINCT + - 72 * 5 - - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL <= NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - 70 * col2 + + col2 < - 95
----

query I rowsort
SELECT - 63 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + MAX( - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8949
SELECT + MAX ( - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + ( + + SUM( ALL + col1 ) ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8950
SELECT + ( + + SUM ( ALL + col1 ) ) col1 FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT + - col2 DIV col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8951
SELECT + - col2 / col1 col0 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT ALL 31 + - col2 * - col0 - col2 AS col1 FROM tab2
----
1066
2551
4323

onlyif mysql # DIV for integer division: 
query I rowsort label-8953
SELECT DISTINCT 27 DIV - col2 + + col0 - + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT 27 / - col2 + + col0 - + col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 * - - col2 + + col1 FROM tab1
----
1358
300
3243

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8955
SELECT ALL - MAX( ALL 91 ) DIV + - 85 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - MAX ( ALL 91 ) / + - 85 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NULL IN ( - - col2, + 89 + + col0 )
----

query I rowsort
SELECT - - ( + col1 ) * col0 + col0 FROM tab2 AS cor0
----
2392
4992
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8958
SELECT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - + 85 + - + col0 AS col0 FROM tab1 AS cor0
----
-136
-170
-176

query II rowsort
SELECT ALL + col2 AS col2, - 77 + - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 24 NOT BETWEEN - col0 AND - + 54
----

query I rowsort
SELECT + 58 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
45
53
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col2, col2 FROM tab0
----
83
10
83
47
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT DISTINCT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 - + ( - 77 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + 88 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( - col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + - ( + + 88 ) ) IN ( - col0 )
----

query I rowsort
SELECT + 19 - col1 AS col0 FROM tab2 AS cor0
----
-32
-48
-58

query I rowsort
SELECT DISTINCT - 25 FROM tab0 AS cor0 WHERE + ( + 57 ) NOT BETWEEN + + col0 * + col1 + - col1 + + col0 * - - 66 AND - 23
----
-25

query I rowsort
SELECT - 0 * + col1 - - col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col0 - - - col1 + - 85 * + - col1 FROM tab0 AS cor0
----
-13
1677
6789

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT DISTINCT - SUM( - + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - SUM ( - + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT col1 / - - col1 + - col0 / CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT col1 / - - col1 + - col0 / CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) * + - col2 * - ( + + col2 ) * - col2 AS col1 FROM tab0
----
-21000
-8409663
-970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 + col2 * + col0 * - 7 + - col0 col0 FROM tab2
----
-17895
-30436
-7363

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND + col0
----

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT DISTINCT SUM( DISTINCT + - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT SUM ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( - col0 ) * - + 13 - + 49 > - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( - - 96 ) FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-8981
SELECT DISTINCT + col2 AS col1, + col1 DIV - - col1 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-8981
SELECT DISTINCT + col2 AS col1, + col1 / - - col1 FROM tab1
----
59
1
68
1
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT + SUM( + 88 ) FROM tab2 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT + SUM ( + 88 ) FROM tab2 AS cor0
----
264

query I rowsort
SELECT DISTINCT 8 * + ( + + col1 ) FROM tab0 AS cor0
----
168
648
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT col1 DIV + 38 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8984
SELECT col1 / + 38 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT - col2 * - - 84 AS col1 FROM tab0 AS cor0
----
-3948
-8316
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + MAX( DISTINCT + - col1 ) col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8986
SELECT + MAX ( DISTINCT + - col1 ) col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - + MIN( 37 ) AS col0 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - + MIN ( 37 ) AS col0 FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT CAST( NULL AS SIGNED ) + + + 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8988
SELECT CAST ( NULL AS INTEGER ) + + + 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8989
SELECT * FROM tab0 WHERE - ( + col1 ) - - + col1 BETWEEN - ( - - col1 ) * - col2 + 88 + + CAST( 10 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8989
SELECT * FROM tab0 WHERE - ( + col1 ) - - + col1 BETWEEN - ( - - col1 ) * - col2 + 88 + + CAST ( 10 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT + MIN( - col2 ) FROM tab1 WHERE + + 90 BETWEEN 50 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8990
SELECT + MIN ( - col2 ) FROM tab1 WHERE + + 90 BETWEEN 50 AND NULL
----
NULL

query I rowsort
SELECT col1 / + 42 + + + ( 54 ) * - ( - 8 ) * - col1 * - - 47 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1 AS col2, + col0 * 14 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) - + + 26 AS col2 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) - + + 26 AS col2 FROM tab0
----
-26

query I rowsort
SELECT ALL col0 + col0 + col0 AS col1 FROM tab2
----
138
192
225

onlyif mysql # DIV for integer division: 
query II rowsort label-8995
SELECT DISTINCT 29 + 12 + - col2 DIV 85 AS col2, ( col2 ) AS col1 FROM tab1
----
40
96
41
59
41
68

skipif mysql # not compatible
query II rowsort label-8995
SELECT DISTINCT 29 + 12 + - col2 / 85 AS col2, ( col2 ) AS col1 FROM tab1
----
40
96
41
59
41
68

query I rowsort
SELECT ALL + + col0 * - col1 + col2 + + 28 AS col1 FROM tab2 AS cor0
----
-2295
-4860
-4939

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - COUNT( ALL + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8997
SELECT - COUNT ( ALL + col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col2 + 66 FROM tab2
----
106
124
89

query I rowsort
SELECT + - 17 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT ALL ( - - 8 ) * 39 FROM tab2
----
312
312
312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9001
SELECT DISTINCT col1, + col2 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-9001
SELECT DISTINCT col1, + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT + 65 * COUNT( * ) + COUNT( * ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-9002
SELECT + 65 * COUNT ( * ) + COUNT ( * ) FROM tab0
----
198

query I rowsort
SELECT + ( + 89 ) + + col1 * 86 FROM tab0 AS cor0
----
175
1895
7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9004
SELECT - - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT - - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 - - + col2 * + 93 + - + col2 * + col1 FROM tab0 AS cor0
----
611
730
9207

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT ( + COUNT( * ) ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT ( + COUNT ( * ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + ( + - col0 ) + - - 34 AND NULL
----

query I rowsort
SELECT - + 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + 79 AS col0 FROM tab1
----
4029
6715
7189

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT ALL col1 DIV - + col2 * - + col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL col1 / - + col2 * - + col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9011
SELECT + ( - 3 ) DIV + - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9011
SELECT + ( - 3 ) / + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 32 * + 83 FROM tab2
----
2656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
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-9014
SELECT DISTINCT ( + COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 <= - col1 * - 51
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL MAX( 86 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL MAX ( 86 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT - col0 DIV col1 * - + col0 AS col0 FROM tab0 AS cor0
----
0
348
9409

skipif mysql # not compatible
query I rowsort label-9017
SELECT - col0 / col1 * - + col0 AS col0 FROM tab0 AS cor0
----
0
348
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT + 74 DIV col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 74 / col2 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT 51 * - - col2 AS col0 FROM tab2
----
1173
2040
2958

query II rowsort
SELECT col2 + - - ( + + 51 ), col0 AS col1 FROM tab2
----
109
75
74
46
91
64

onlyif mysql # DIV for integer division: 
query II rowsort label-9021
SELECT DISTINCT 10 * - col1 DIV + - col1 AS col0, - col1 FROM tab2
----
10
-51
10
-67
10
-77

skipif mysql # not compatible
query II rowsort label-9021
SELECT DISTINCT 10 * - col1 / + - col1 AS col0, - col1 FROM tab2
----
10
-51
10
-67
10
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9022
SELECT COUNT( + CAST( NULL AS SIGNED ) ) + 37 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-9022
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) + 37 FROM tab0
----
37

query I rowsort
SELECT + - 46 + - + col1 + + - 69 AS col1 FROM tab2 cor0
----
-166
-182
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + - col0 col0 FROM tab1 AS cor0
----
-11
-45
-51

query I rowsort
SELECT DISTINCT - 11 * + col0 + - + ( ( - col1 ) ) AS col0 FROM tab1
----
-547
-930
-954

onlyif mysql # DIV for integer division: 
query I rowsort label-9026
SELECT ALL - 98 + col0 DIV - 56 FROM tab1
----
-98
-99
-99

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - 98 + col0 / - 56 FROM tab1
----
-98
-99
-99

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) * + - 34 AS col0 FROM tab1 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) * + - 34 AS col0 FROM tab1 AS cor0
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT - COUNT( * ) * - + SUM( ALL col2 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
1089

skipif mysql # not compatible
query I rowsort label-9031
SELECT - COUNT ( * ) * - + SUM ( ALL col2 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT MIN( ALL - - col1 ) * 92 FROM tab1 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-9032
SELECT MIN ( ALL - - col1 ) * 92 FROM tab1 AS cor0
----
460

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL + col2 DIV col1 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + col2 / col1 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9034
SELECT DISTINCT - ( + col2 ) DIV + - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT - ( + col2 ) / + - col1 FROM tab2
----
0

query I rowsort
SELECT ALL ( + 94 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + COUNT( ALL - 54 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + COUNT ( ALL - 54 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - ( + ( - + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - ( + ( - + COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 41 * + 54 AS col1 FROM tab1 AS cor0
----
2214

query I rowsort
SELECT 85 * + col1 * - 13 * - - col1 * - col0 FROM tab1 AS cor0
----
11045580
222125995
2348125

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT + 2 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT + 2 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT ALL - + MIN( + 80 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - + MIN ( + 80 ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT DISTINCT + - col1 * + 54 AS col0 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT ALL - ( + col2 ) * - - col0 * - 30 AS col0 FROM tab1 AS cor0
----
146880
150450
185640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - col0 - col2 + col2 + + col0 + + col2 / - col1 + + col0 * + + 42 * + ( + col2 ) * col2 * + + 52 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 - col2 + col2 + + col0 + + col2 / - col1 + + col0 * + + 42 * + ( + col2 ) * col2 * + + 52 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT DISTINCT COUNT( * ) + - - 28 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
28

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT COUNT ( * ) + - - 28 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9046
SELECT ALL - col2 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL - col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT DISTINCT - + col1 DIV + + col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT DISTINCT - + col1 / + + col0 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 * + col2 + + - 88 col0 FROM tab1 AS cor0
----
1505
1748
2504

query I rowsort
SELECT + ( - col1 ) FROM tab2 AS cor0 WHERE NULL <> + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9050
SELECT ALL + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9050
SELECT ALL + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9051
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + 9 + - - CAST( NULL AS SIGNED ) - - + 99
----

skipif mysql # not compatible
query III rowsort label-9051
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND + 9 + - - CAST ( NULL AS INTEGER ) - - + 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT DISTINCT + COUNT( * ) + - - 44 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9052
SELECT DISTINCT + COUNT ( * ) + - - 44 FROM tab1 AS cor0
----
47

query II rowsort
SELECT DISTINCT ( col2 ) AS col2, 50 AS col2 FROM tab2
----
23
50
40
50
58
50

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 NOT BETWEEN ( col0 + + 19 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( + 44 ), col0 FROM tab1
----
44
51
44
85
44
91

query II rowsort
SELECT col0 * + col1 AS col2, - col1 FROM tab2
----
2346
-51
4928
-77
5025
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT ALL col1 DIV - 62 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL col1 / - 62 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT ALL - col2 * + CAST( + col1 AS SIGNED ) * + col1 * - 85 + + - ( col0 ) + col0 AS col2 FROM tab0
----
26211195
374850
8415

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - col2 * + CAST ( + col1 AS INTEGER ) * + col1 * - 85 + + - ( col0 ) + col0 AS col2 FROM tab0
----
26211195
374850
8415

query II rowsort
SELECT DISTINCT ( + 89 ) AS col0, - col1 FROM tab0
----
89
-1
89
-21
89
-81

query II rowsort
SELECT ALL col0 + + - col0 AS col1, + col2 AS col2 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT ALL - + 85 DIV - - col1 - + + ( - 43 ) AS col2 FROM tab0 AS cor0
----
-42
39
42

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - + 85 / - - col1 - + + ( - 43 ) AS col2 FROM tab0 AS cor0
----
-42
39
42

query I rowsort
SELECT ALL - col1 + + + 12 * - 70 FROM tab1 cor0
----
-845
-854
-887

query I rowsort
SELECT DISTINCT - - col1 + + 32 FROM tab0 AS cor0
----
113
33
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT DISTINCT - col1 DIV + col0 * + col1 - + - 90 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT - col1 / + col0 * + col1 - + - 90 FROM tab1 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT DISTINCT - - col0 * + col2 DIV col2 * + col0 - + 77 FROM tab1 cor0
----
2524
7148
8204

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT - - col0 * + col2 / col2 * + col0 - + 77 FROM tab1 cor0
----
2524
7148
8204

query I rowsort
SELECT DISTINCT - + 22 * + - col0 * - - col1 - + + col2 FROM tab0 AS cor0
----
2035
26683
40184

query I rowsort
SELECT 75 FROM tab2 WHERE NOT 47 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * 74 col0 FROM tab2
----
-3922
-3922
-3922

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col2 * - 74 AS col0 FROM tab1 AS cor0
----
-4366
-5032
-7104

query I rowsort
SELECT DISTINCT - - col2 * + col1 + 39 FROM tab2 AS cor0 WHERE col1 BETWEEN col2 AND + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT ALL + ( - - 61 ) * - COUNT( * ) AS col0, - 13 AS col2 FROM tab2 AS cor0
----
-183
-13

skipif mysql # not compatible
query II rowsort label-9072
SELECT ALL + ( - - 61 ) * - COUNT ( * ) AS col0, - 13 AS col2 FROM tab2 AS cor0
----
-183
-13

query I rowsort
SELECT - 42 AS col2 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * - col2 col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL MIN( ALL + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL MIN ( ALL + col1 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - COUNT( col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9076
SELECT - COUNT ( col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT 42 * - + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2
----
378

skipif mysql # not compatible
query I rowsort label-9077
SELECT 42 * - + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT - SUM( 16 ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - SUM ( 16 ) AS col0 FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT ALL + CAST( + col2 AS SIGNED ) * col2 - col0 + - col1 col0 FROM tab0
----
-8
2113
9703

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9079
SELECT ALL + CAST ( + col2 AS INTEGER ) * col2 - col0 + - col1 col0 FROM tab0
----
-8
2113
9703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT CAST( - 41 AS SIGNED ) AS col0 FROM tab0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-9080
SELECT CAST ( - 41 AS INTEGER ) AS col0 FROM tab0
----
-41
-41
-41

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( - col0 ) * 32 <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT - - MAX( ALL col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - - MAX ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT ALL - CAST( NULL AS SIGNED ) * - 72 / - + col2 * - CAST( NULL AS SIGNED ) - - - col1 + - col2 + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL - CAST ( NULL AS INTEGER ) * - 72 / - + col2 * - CAST ( NULL AS INTEGER ) - - - col1 + - col2 + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9085
SELECT - - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT - - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9086
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT - CAST( + col2 AS SIGNED ) / 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9087
SELECT - CAST ( + col2 AS INTEGER ) / 58 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col0 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT 46 / - 33 + - - COUNT( * ) + CAST( NULL AS SIGNED ) * - SUM( - col1 ) * + - AVG ( + 37 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT 46 / - 33 + - - COUNT ( * ) + CAST ( NULL AS INTEGER ) * - SUM ( - col1 ) * + - AVG ( + 37 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 * - - col1 * + col2 col1 FROM tab1
----
10752
2360
25568

query I rowsort
SELECT ALL col0 + 67 - - col1 / + 16 FROM tab0 WHERE + 64 = 97
----

query I rowsort
SELECT DISTINCT ( 56 ) + + - 22 * - col2 FROM tab2
----
1332
562
936

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT + ( + + COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + ( + + COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 34 * + col0 - - + 85 AS col0 FROM tab0 cor0
----
-2873
-3213
-425

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + + ( + - 60 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9096
SELECT - CAST( + CAST( - col1 AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9096
SELECT - CAST ( + CAST ( - col1 AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 * + col1, col0 * col2 col0 FROM tab0 AS cor0
----
1215
705
1827
870
97
9603

query III rowsort
SELECT - + col1 * - col2, col0, 64 + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to bb6a77ed1aa3685e28507f7523e57177

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - COUNT( + 91 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9099
SELECT - COUNT ( + 91 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 26 * - + col1 + + + col0 AS col0 FROM tab1 AS cor0
----
-1131
-313
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT + - SUM( ALL - - 4 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9101
SELECT + - SUM ( ALL - - 4 ) FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT ALL COUNT( * ), COUNT( * ) AS col2 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9102
SELECT ALL COUNT ( * ), COUNT ( * ) AS col2 FROM tab2
----
3
3

query II rowsort
SELECT DISTINCT col1, - col0 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + - col1 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9106
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + + - col0 + - - col1 * + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL + COUNT( - 29 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL + COUNT ( - 29 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL <> - 63 )
----

query I rowsort
SELECT ALL - 69 + + col1 - col2 FROM tab2
----
-32
-41
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + - 9 col0 FROM tab1
----
-105
-68
-77

query I rowsort
SELECT + 2 + + 97 * + col2 * - - col0 FROM tab1 AS cor0
----
474914
486457
600238

query I rowsort
SELECT col0 + col1 - + col0 + 51 * + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-130483
-221783
-53907

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9114
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col1, col1 - - - col2 * + col0 FROM tab2 AS cor0
----
NULL
-1007
NULL
-2483
NULL
-4283

skipif mysql # not compatible
query II rowsort label-9114
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col1, col1 - - - col2 * + col0 FROM tab2 AS cor0
----
NULL
-1007
NULL
-2483
NULL
-4283

query I rowsort
SELECT DISTINCT + ( - + col2 ) + - - 77 AS col1 FROM tab1 AS cor0
----
-19
18
9

query I rowsort
SELECT ALL - 58 * + + col0 * + - 67 + - col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT 66 - + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 cor0 WHERE col0 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 = + + 19
----

query I rowsort
SELECT ALL + 98 * - col2 FROM tab0
----
-4606
-9702
-980

query II rowsort
SELECT col1, 7 + col1 * + 86 AS col0 FROM tab2
----
51
4393
67
5769
77
6629

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND + 91
----

query I rowsort
SELECT - 13 - - col2 + 65 * - 38 AS col1 FROM tab0
----
-2384
-2436
-2473

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL + ( 23 ) + - COUNT( * ) AS col1 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + ( 23 ) + - COUNT ( * ) AS col1 FROM tab1
----
20

query I rowsort
SELECT + col1 - - 31 * col1 * 12 FROM tab1
----
17531
1865
5222

query I rowsort
SELECT 68 - + - 78 FROM tab0 AS cor0
----
146
146
146

query I rowsort
SELECT DISTINCT + - 34 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-9128
SELECT DISTINCT + COUNT( * ) AS col1, + 34 AS col1 FROM tab1 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-9128
SELECT DISTINCT + COUNT ( * ) AS col1, + 34 AS col1 FROM tab1 AS cor0
----
3
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT - COUNT( - 74 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9129
SELECT DISTINCT - COUNT ( - 74 ) col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL - col0, + col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - 61 * COUNT( * ) AS col1 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 61 * COUNT ( * ) AS col1 FROM tab0
----
-183

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col2 + col1
----

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + 56 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 91 + - + col1 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT ALL + MIN( DISTINCT - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9136
SELECT ALL + MIN ( DISTINCT - ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 36 AS col2, col1 col1 FROM tab0 AS cor0
----
-36
1
-36
21
-36
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL SUM( DISTINCT - - 87 ) AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL SUM ( DISTINCT - - 87 ) AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT - - 70 * - + col1 FROM tab1 AS cor0
----
-3290
-350
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT MIN( 98 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-9140
SELECT MIN ( 98 ) FROM tab1
----
98

query I rowsort
SELECT ALL - col2 + col2 * + col0 * + + 75 / - 27 * - + col2 * - + col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL - 96 + + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL - 96 + + COUNT ( * ) FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT SUM( ALL + col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT SUM ( ALL + col1 ) AS col2 FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT + MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT col2 + + col2 + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
128
190
296

query II rowsort
SELECT - 20 + - col0, - col1 * - - col1 AS col2 FROM tab1 AS cor0
----
-105
-25
-111
-2209
-71
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-9147
SELECT - 24 + + col0 DIV col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-110
-120
-38

skipif mysql # not compatible
query I rowsort label-9147
SELECT - 24 + + col0 / col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-110
-120
-38

query I rowsort
SELECT + 19 AS col2 FROM tab2 WHERE - col0 NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT ( + + CAST( NULL AS SIGNED ) ) * + - 21 * + - ( - col2 ) + - 71 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT ( + + CAST ( NULL AS INTEGER ) ) * + - 21 * + - ( - col2 ) + - 71 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - 92 + - col0 FROM tab1
----
1237
375
4233

query I rowsort
SELECT DISTINCT + col0 + + - col0 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / col1 IS NULL
----

query II rowsort
SELECT - - col2 AS col2, + 91 AS col1 FROM tab1 AS cor0
----
59
91
68
91
96
91

query I rowsort
SELECT DISTINCT + - 89 - + - col2 + + col1 * col0 + col0 FROM tab1 AS cor0
----
4347
480
772

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9155
SELECT ALL CAST( NULL AS DECIMAL ) * - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL CAST ( NULL AS REAL ) * - - col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - 67 * - col1 - + col0 col0 FROM tab2
----
3320
4347
5018

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT MIN( ALL - - col1 ) FROM tab0 WHERE NULL NOT BETWEEN - + col2 + - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT MIN ( ALL - - col1 ) FROM tab0 WHERE NULL NOT BETWEEN - + col2 + - col0 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9158
SELECT DISTINCT 24 DIV + ( + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT 24 / + ( + col2 ) AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 + col2, 65 * - 3 col1 FROM tab2
----
27
-195
44
-195
62
-195

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col1, - col2 FROM tab0
----
-210
-10
-3807
-47
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT DISTINCT COUNT( ALL + 57 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9161
SELECT DISTINCT COUNT ( ALL + 57 ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL col0 * + col2 * ( - 32 ) AS col2 FROM tab2
----
-139200
-33856
-81920

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT COUNT( 58 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT COUNT ( 58 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL <= NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9164
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 82 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9166
SELECT - - col2 DIV + 38 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9166
SELECT - - col2 / + 38 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT - COUNT( * ) * - 42 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-9167
SELECT - COUNT ( * ) * - 42 FROM tab2 AS cor0
----
126

query I rowsort
SELECT DISTINCT col0 + + 59 AS col2 FROM tab0 AS cor0 WHERE NOT 16 / col0 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT SUM( + - col2 ) col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9169
SELECT DISTINCT SUM ( + - col2 ) col0 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL 86 * - + 39 AS col1 FROM tab0 AS cor0
----
-3354
-3354
-3354

query II rowsort
SELECT ALL + + col2, - col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query I rowsort
SELECT col1 + + 94 + + - col0 FROM tab1 AS cor0
----
14
50
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9173
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + COUNT( * ) FROM tab1 WHERE NOT + 7 = - col2 + - + col0 + - - col0 * - + col2 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + COUNT ( * ) FROM tab1 WHERE NOT + 7 = - col2 + - + col0 + - - col0 * - + col2 + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT DISTINCT + col1 DIV col2 col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9174
SELECT DISTINCT + col1 / col2 col1 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT + 30 + + COUNT( * ) AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + 30 + + COUNT ( * ) AS col2 FROM tab2
----
33

query I rowsort
SELECT col2 + - col2 - col2 * col1 * - col1 AS col1 FROM tab1
----
1475
150212
18816

query II rowsort
SELECT col1, col2 + + + ( - - 46 ) + - 84 * + + col1 FROM tab1
----
14
-1034
47
-3834
5
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + 50 ) ) col0 FROM tab1
----
-50
-50
-50

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 94 + - + col1 + - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT + MIN( DISTINCT 40 ) FROM tab0 WHERE + col1 IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-9180
SELECT + MIN ( DISTINCT 40 ) FROM tab0 WHERE + col1 IS NOT NULL
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT SUM( col1 ) FROM tab0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT SUM ( col1 ) FROM tab0 WHERE - col2 IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - 95 + + col1 + - - col2 FROM tab1 AS cor0
----
159
205
210

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9184
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0 WHERE - 11 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0 WHERE - 11 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( + col0 ) + - + 85 FROM tab1 cor0
----
-4362
-510
-799

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= + + col1
----

query I rowsort
SELECT - - col1 - + col1 AS col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL + col2 - + + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + col1 * - col0 + col2 - - 59 FROM tab1 cor0
----
-307
-4150
-559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 / - - 9 * - - col2 col1 FROM tab1 cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT ALL - 71 - 96 * - - 5 * + + 56 * + - 20 FROM tab0
----
537529
537529
537529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + col0 col1 FROM tab2
----
2438
3392
3975

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT DISTINCT col2 DIV 32 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT col2 / 32 FROM tab0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT + 2 * - COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT + 2 * - COUNT ( * ) AS col0 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT MIN( - 80 ) col2 FROM tab1
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9195
SELECT MIN ( - 80 ) col2 FROM tab1
----
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL < col0 )
----

query I rowsort
SELECT + col2 * + ( col2 ) * col0 AS col1 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT 93 AS col0, ( + - COUNT( * ) ) + + + 60 FROM tab0
----
93
57

skipif mysql # not compatible
query II rowsort label-9198
SELECT 93 AS col0, ( + - COUNT ( * ) ) + + + 60 FROM tab0
----
93
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE + CAST( - + col0 AS SIGNED ) - - - col0 * - CAST( NULL AS SIGNED ) + + 35 + col0 + - - col0 * col0 BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE + CAST ( - + col0 AS INTEGER ) - - - col0 * - CAST ( NULL AS INTEGER ) + + 35 + col0 + - - col0 * col0 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9200
SELECT ALL + col1, 64 DIV + 82 * - + col2 * + 44 AS col2 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL + col1, 64 / + 82 * - + col2 * + 44 AS col2 FROM tab0 AS cor0
----
1
0
21
0
81
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( + col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL - ( COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9203
SELECT ALL - ( COUNT ( * ) ) col2 FROM tab0
----
-3

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE + col0 - col2 IN ( + 38 )
----

query I rowsort
SELECT ( + 0 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ( - MIN( + 87 ) ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-9206
SELECT ( - MIN ( + 87 ) ) FROM tab1
----
-87

query I rowsort
SELECT + col1 + + 57 AS col2 FROM tab0
----
138
58
78

query I rowsort
SELECT ALL - 78 - + 19 FROM tab2
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - COUNT( ALL + col0 ) FROM tab1 WHERE + col0 / 38 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9209
SELECT - COUNT ( ALL + col0 ) FROM tab1 WHERE + col0 / 38 IS NOT NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * col2 <= NULL
----

query I rowsort
SELECT col2 * + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 65 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT ALL COUNT( - 81 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL COUNT ( - 81 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) * - 17 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 17 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 82 + col2 * col1 AS col2 FROM tab1
----
1426
3278
377

query I rowsort
SELECT col2 + 73 AS col0 FROM tab0
----
120
172
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT IN ( + ( - 2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 47 - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - 86 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 86 <> ( NULL )
----
0

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + SUM( ALL col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + SUM ( ALL col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT ALL 68 / 34 + col0 AS col0 FROM tab2 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 98 * col1 FROM tab1
----
1372
4606
490

query I rowsort
SELECT - col0 + - ( col2 ) * + 1 AS col1 FROM tab1
----
-144
-147
-159

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( col2 ) AND + ( col1 )
----

query I rowsort
SELECT ALL 4 * + col1 FROM tab1
----
188
20
56

query I rowsort
SELECT ALL 39 - 72 AS col2 FROM tab1
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT - ( ( col2 ) ) * - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT - ( ( col2 ) ) * - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9229
SELECT - CAST( COUNT( * ) AS SIGNED ) + + 32 AS col0 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9229
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + + 32 AS col0 FROM tab2 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 66 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - AVG ( ALL - col2 ) + + COUNT( * ) AS col1 FROM tab2 WHERE - col1 * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT - AVG ( ALL - col2 ) + + COUNT ( * ) AS col1 FROM tab2 WHERE - col1 * + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0 CROSS JOIN tab2
----
17

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( - ( 6 ) ) + ( 69 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - 58 FROM tab1 AS cor0 CROSS JOIN tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9236
SELECT + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL COUNT( * ) + + 79 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL COUNT ( * ) + + 79 FROM tab2 cor0
----
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 * col2 ) IS NULL
----

query I rowsort
SELECT ALL + 46 + - col0 AS col0 FROM tab2 AS cor0
----
-18
-29
0

query I rowsort
SELECT DISTINCT + + col0 + - 28 FROM tab1 AS cor0
----
23
57
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL ( + COUNT( col2 ) ) FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - col0 + col2 * 51 AND ( col2 ) + col2
----
3

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL ( + COUNT ( col2 ) ) FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN - col0 + col2 * 51 AND ( col2 ) + col2
----
3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL <= ( - ( + ( col2 ) ) * 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT + + ( + MIN( DISTINCT - ( + 43 ) ) ) * COUNT( * ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9243
SELECT + + ( + MIN ( DISTINCT - ( + 43 ) ) ) * COUNT ( * ) FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9244
SELECT DISTINCT - MAX( col0 ) * MIN( 4 DIV col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT - MAX ( col0 ) * MIN ( 4 / col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 78 * 27 AS col1 FROM tab2 AS cor0
----
-2106
-2106
-2106

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * col1 > ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + MIN( - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + MIN ( - 32 ) FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL MIN( DISTINCT - 44 ) AS col1 FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL MIN ( DISTINCT - 44 ) AS col1 FROM tab2
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT ALL 10 + col1 DIV - col2 FROM tab2 WHERE NOT col0 + 82 IS NULL
----
8
9
9

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL 10 + col1 / - col2 FROM tab2 WHERE NOT col0 + 82 IS NULL
----
8
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT - COUNT( * ) * - MAX( ALL col0 ) AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-9252
SELECT - COUNT ( * ) * - MAX ( ALL col0 ) AS col2 FROM tab1
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9253
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / col0 + 18 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9253
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 / col0 + 18 * + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN + col2 + col0 AND NULL
----

query I rowsort
SELECT ALL + 37 * ( - 55 ) * - 5 AS col2 FROM tab0 AS cor0
----
10175
10175
10175

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT COUNT( * ) * 7 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9256
SELECT COUNT ( * ) * 7 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT MAX( - + 73 ) AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-9257
SELECT MAX ( - + 73 ) AS col1 FROM tab0 AS cor0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT - col0 DIV - 13 FROM tab2 AS cor0
----
3
4
5

skipif mysql # not compatible
query I rowsort label-9258
SELECT - col0 / - 13 FROM tab2 AS cor0
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT + + MAX( ALL + 53 ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT + + MAX ( ALL + 53 ) AS col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL COUNT( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9261
SELECT ALL COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT + - 92 * - + 49 FROM tab0 AS cor0
----
4508
4508
4508

query I rowsort
SELECT ALL - 52 * - 79 + - 37 AS col2 FROM tab0 AS cor0
----
4071
4071
4071

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 + - + col2 NOT BETWEEN NULL AND ( 94 + + ( ( 74 ) ) )
----

query I rowsort
SELECT ( - col1 ) + + col0 AS col0 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT + col2 * + 26 FROM tab0 AS cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9267
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT 33 * - 89 + + + 41 AS col0 FROM tab1 AS cor0
----
-2896
-2896
-2896

query I rowsort
SELECT + ( col1 ) + + col2 FROM tab1 AS cor0 WHERE + 44 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ( - + 53 ) + MAX( ALL col0 ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9270
SELECT ( - + 53 ) + MAX ( ALL col0 ) FROM tab0 AS cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * + ( 27 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * + ( 27 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9272
SELECT - COUNT( * ) + COUNT( * ) col1, - 61 - - COUNT( * ) FROM tab0
----
0
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9272
SELECT - COUNT ( * ) + COUNT ( * ) col1, - 61 - - COUNT ( * ) FROM tab0
----
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT MIN( DISTINCT + + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9273
SELECT MIN ( DISTINCT + + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT ALL - col0 + + 28 AS col0 FROM tab1
----
-23
-57
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 28 * col1 NOT BETWEEN NULL AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 72 - col2 - - - 58 AS col2 FROM tab1 AS cor0
----
-45
-54
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9278
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * + col0 > col2 - + 29
----

skipif mysql # not compatible
query III rowsort label-9278
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col0 > col2 - + 29
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 71 * - - col0 col1 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 - - + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 - - + col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT - + MAX( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9281
SELECT DISTINCT - + MAX ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + + ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + col0 * col0 + - 61 FROM tab2 AS cor0 WHERE NOT 6 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= - ( - + col2 ) / + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 66 ) col1 FROM tab0 AS cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 13 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9287
SELECT + COUNT( * ) col2, - ( + 14 ) AS col0 FROM tab1
----
3
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9287
SELECT + COUNT ( * ) col2, - ( + 14 ) AS col0 FROM tab1
----
3
-14

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT + COUNT( * ), - SUM( 87 ) AS col2 FROM tab1
----
3
-261

skipif mysql # not compatible
query II rowsort label-9289
SELECT + COUNT ( * ), - SUM ( 87 ) AS col2 FROM tab1
----
3
-261

query I rowsort
SELECT - 9 * - col2 * + col0 * + + col1 AS col1 FROM tab2
----
1774080
2623050
485622

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT - COUNT( * ) * + 43 AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-9291
SELECT - COUNT ( * ) * + 43 AS col2 FROM tab1
----
-129

onlyif mysql # DIV for integer division: 
query II rowsort label-9292
SELECT ALL + col1, - 27 DIV - - 31 * + col1 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-9292
SELECT ALL + col1, - 27 / - - 31 * + col1 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT + col0 * + col1 * col1 + + 28 * - 32 AS col2 FROM tab2 cor0 WHERE NOT col2 / + 39 <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9294
SELECT ( + + SUM( - - col2 ) ) DIV + 66 + - 96 AS col1 FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9294
SELECT ( + + SUM ( - - col2 ) ) / + 66 + - 96 AS col1 FROM tab2 AS cor0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9295
SELECT ALL COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9295
SELECT ALL COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + 75 + COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-9297
SELECT + 75 + COUNT ( * ) FROM tab2
----
78

query I rowsort
SELECT DISTINCT - - 96 AS col0 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL SUM( - 56 ) + + ( + 90 ) AS col1 FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL SUM ( - 56 ) + + ( + 90 ) AS col1 FROM tab0 cor0
----
-78

query II rowsort
SELECT DISTINCT + col1 + + 26 AS col0, 15 AS col2 FROM tab2 AS cor0
----
103
15
77
15
93
15

query I rowsort
SELECT + - 62 * - - 6 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-18972
-31620
-33852

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT + COUNT( DISTINCT - - ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + COUNT ( DISTINCT - - ( + - col2 ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( ( - col2 ) ) + - col2 + - - col0 * col1 FROM tab1 AS cor0
----
307
4141
522

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT + + 92 * + - MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-4692

skipif mysql # not compatible
query I rowsort label-9304
SELECT + + 92 * + - MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-4692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT + 71 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT + 71 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 5 * - + col1 FROM tab0
----
-105
-405
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT ALL + CAST( 68 AS SIGNED ) AS col2 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + CAST ( 68 AS INTEGER ) AS col2 FROM tab1
----
68
68
68

query I rowsort
SELECT 98 - + col2 FROM tab1
----
2
30
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL MIN( 52 ) AS col0 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL MIN ( 52 ) AS col0 FROM tab1
----
52

query I rowsort
SELECT ALL col2 + - + col0 - col1 * - 71 - - 80 AS col2 FROM tab0
----
1494
153
5863

query III rowsort
SELECT * FROM tab2 WHERE - + col0 BETWEEN - col0 * col2 AND - - ( - col1 ) + + 23 + - 85 * + col0
----

query I rowsort
SELECT + col2 + 61 AS col2 FROM tab1
----
120
129
157

query III rowsort
SELECT * FROM tab2 WHERE - - col2 NOT IN ( + col0 - 19, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + + 91 * + - col1 FROM tab1
----
-1288
-4324
-460

query I rowsort
SELECT col2 * + col0 * + 74 AS col1 FROM tab0 cor0
----
52170
64380
710622

onlyif mysql # aggregate syntax: 
query II rowsort label-9316
SELECT DISTINCT COUNT( * ) - + 86 AS col2, + 74 FROM tab2
----
-83
74

skipif mysql # not compatible
query II rowsort label-9316
SELECT DISTINCT COUNT ( * ) - + 86 AS col2, + 74 FROM tab2
----
-83
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT COUNT( * ) - - 6 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
15

skipif mysql # not compatible
query I rowsort label-9317
SELECT COUNT ( * ) - - 6 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col0 * col1 * - - 92 ) NOT IN ( col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9319
SELECT DISTINCT - COUNT( * ) DIV - + 71 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9319
SELECT DISTINCT - COUNT ( * ) / - + 71 AS col1 FROM tab0
----
0

query I rowsort
SELECT + ( + 94 ) AS col2 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL + 38 * col1 FROM tab2 AS cor0
----
1938
2546
2926

query I rowsort
SELECT DISTINCT + ( - ( - ( + 80 ) ) ) AS col2 FROM tab0
----
80

query I rowsort
SELECT - 10 FROM tab2 WHERE NOT NULL >= + col1 * col2
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT + col2 + + 87 * + - col1 * + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT DISTINCT col1 DIV 92 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT col1 / 92 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + + 28 AS col2 FROM tab1 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + - ( MIN( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9327
SELECT + - ( MIN ( DISTINCT + + col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 78 * - 20 FROM tab2 AS cor0
----
-1560
-1560
-1560

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 95 * + - 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9330
SELECT - ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT - ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 98 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 60 * + col0 + - + col2 FROM tab0 AS cor0
----
5210
5721
853

query I rowsort
SELECT + 69 + + col0 FROM tab2 AS cor0
----
115
133
144

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT ALL col1 + + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL col1 + + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT DISTINCT + + SUM( DISTINCT - - col1 ) - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + + SUM ( DISTINCT - - col1 ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
192

query I rowsort
SELECT - - col2 + + + col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT + 47 * + MIN( DISTINCT + 75 ) * COUNT( * ) + MIN( - - col0 ) + 93 + - MAX( - - col1 ) AS col0 FROM tab2 AS cor0
----
10637

skipif mysql # not compatible
query I rowsort label-9338
SELECT + 47 * + MIN ( DISTINCT + 75 ) * COUNT ( * ) + MIN ( - - col0 ) + 93 + - MAX ( - - col1 ) AS col0 FROM tab2 AS cor0
----
10637

query I rowsort
SELECT ALL 68 * 41 FROM tab0 AS cor0
----
2788
2788
2788

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-9340
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 col0, 98 DIV + col0 FROM tab2
----
NULL
1
NULL
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9340
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 col0, 98 / + col0 FROM tab2
----
NULL
1
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL 30 * - COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL 30 * - COUNT ( * ) FROM tab2
----
-90

query II rowsort
SELECT ( - + col0 ), 24 AS col2 FROM tab0
----
-15
24
-87
24
-97
24

query I rowsort
SELECT ALL - 25 + - 18 FROM tab0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + - 19 AS col1, + col0 - col2 col1 FROM tab0
----
1881
-2
190
77
893
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + MIN( DISTINCT + + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9345
SELECT + MIN ( DISTINCT + + col2 ) AS col2 FROM tab0
----
10

query I rowsort
SELECT 52 - - ( + + col1 ) * 28 FROM tab0 AS cor0
----
2320
640
80

query I rowsort
SELECT 22 - + + col2 FROM tab2 cor0
----
-1
-18
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL - - 92 + - MIN( DISTINCT + - col0 ) AS col1 FROM tab1 cor0
----
183

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL - - 92 + - MIN ( DISTINCT + - col0 ) AS col1 FROM tab1 cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL ( - + MIN( - col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL ( - + MIN ( - col2 ) ) FROM tab1
----
96

query II rowsort
SELECT ALL + col1 AS col0, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 IN ( + - 7 / - col0 * - col0, 86 * + col0 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9353
SELECT DISTINCT + + 59 AS col2, + CAST( NULL AS SIGNED ) + - COUNT( * ) / 82 AS col0 FROM tab1 AS cor0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-9353
SELECT DISTINCT + + 59 AS col2, + CAST ( NULL AS INTEGER ) + - COUNT ( * ) / 82 AS col0 FROM tab1 AS cor0
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL 85 AS col0 FROM tab0 AS cor0 WHERE ( NOT + col2 * - CAST( NULL AS SIGNED ) + + - ( - col2 ) + + col1 + - - 93 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL 85 AS col0 FROM tab0 AS cor0 WHERE ( NOT + col2 * - CAST ( NULL AS INTEGER ) + + - ( - col2 ) + + col1 + - - 93 IS NULL )
----

query I rowsort
SELECT DISTINCT + - col1 * + 18 + - col2 FROM tab0 cor0
----
-117
-1505
-388

onlyif mysql # aggregate syntax: 
query II rowsort label-9356
SELECT DISTINCT + 31 * COUNT( * ) AS col0, + 47 col2 FROM tab1
----
93
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9356
SELECT DISTINCT + 31 * COUNT ( * ) AS col0, + 47 col2 FROM tab1
----
93
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT ALL 1 DIV + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL 1 / + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * 79 FROM tab0
----
3713
7821
790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9359
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT 67 * + 39, COUNT( * ) AS col1 FROM tab1 cor0
----
2613
3

skipif mysql # not compatible
query II rowsort label-9360
SELECT 67 * + 39, COUNT ( * ) AS col1 FROM tab1 cor0
----
2613
3

query I rowsort
SELECT DISTINCT + col1 + + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - 86 + ( + col0 ) FROM tab2 AS cor0
----
-11
-22
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT COUNT( * ) + - 75 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT COUNT ( * ) + - 75 FROM tab2
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 col1 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT - col0 + + + 53 FROM tab1 AS cor0
----
-32
-38
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9366
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 37 + col1 - ( - + col1 ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9366
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= 37 + col1 - ( - + col1 ) + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9367
SELECT ALL + 7 - + col2 + + col2 * 49 DIV - 9 FROM tab0 AS cor0
----
-295
-57
-631

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + 7 - + col2 + + col2 * 49 / - 9 FROM tab0 AS cor0
----
-295
-57
-631

query I rowsort
SELECT DISTINCT 27 - + + 69 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT ALL - - 24 * col1 * col0 AS col2 FROM tab2 AS cor0
----
118272
120600
56304

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9370
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT - 48 * 63 AS col2 FROM tab1 AS cor0
----
-3024

query I rowsort
SELECT col0 - - col0 + + + col2 * + - col0 + - col0 * - 70 FROM tab2 AS cor0
----
1050
2048
2254

query I rowsort
SELECT 90 + + col1 AS col2 FROM tab1
----
104
137
95

query I rowsort
SELECT ( - - col0 ) + - + col2 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9375
SELECT ALL + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9375
SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
3
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - 36 + + col1 IS NULL
----

query I rowsort
SELECT ( + - 69 ) + col1 AS col1 FROM tab0
----
-48
-68
12

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 74 - + - col1 IS NULL
----

query I rowsort
SELECT ALL - col0 + ( + col1 ) FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE - 49 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT DISTINCT - + MIN( - + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - + MIN ( - + col1 ) AS col2 FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 86 * + col1 * - - ( + col2 ) * 76 / + col2 <= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <= col0 - col2 * - 6 - + + col1 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT - COUNT( * ) * + - 17 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9384
SELECT - COUNT ( * ) * + - 17 FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9385
SELECT DISTINCT * FROM tab2 cor0 WHERE - 64 + - 46 BETWEEN + + col1 + - col1 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9385
SELECT DISTINCT * FROM tab2 cor0 WHERE - 64 + - 46 BETWEEN + + col1 + - col1 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT + COUNT( * ) * + 90 * - COUNT( 74 ) AS col0 FROM tab2 AS cor0
----
-810

skipif mysql # not compatible
query I rowsort label-9386
SELECT + COUNT ( * ) * + 90 * - COUNT ( 74 ) AS col0 FROM tab2 AS cor0
----
-810

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col1
----

query II rowsort
SELECT ( + col0 ), - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT DISTINCT - col1 * + - ( col0 ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9390
SELECT ALL - - 84 DIV COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - - 84 / COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT DISTINCT - 14 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT - 14 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT ALL - SUM( ALL + col2 ) col1 FROM tab2
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9392
SELECT ALL - SUM ( ALL + col2 ) col1 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab2 WHERE NOT 84 * + - 49 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT COUNT( * ) * - + 4 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9395
SELECT COUNT ( * ) * - + 4 FROM tab0
----
-12

query I rowsort
SELECT col2 * - col0 * + - 93 AS col0 FROM tab0
----
65565
80910
893079

query I rowsort
SELECT 93 * + + 5 AS col0 FROM tab1
----
465
465
465

query I rowsort
SELECT DISTINCT - col2 + 72 AS col1 FROM tab0
----
-27
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT COUNT( * ) + + 55 + - - 33 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT COUNT ( * ) + + 55 + - - 33 FROM tab0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9400
SELECT ALL - 93 + + COUNT( ALL + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) * + + 5 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL - 93 + + COUNT ( ALL + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) * + + 5 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT DISTINCT - col2 + - - col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9402
SELECT DISTINCT 72 DIV 39 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9402
SELECT DISTINCT 72 / 39 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT ALL col1 DIV + col0 + + col1 + - col1 + - col0 FROM tab0 AS cor0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL col1 / + col0 + + col1 + - col1 + - col0 FROM tab0 AS cor0
----
-10
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9404
SELECT DISTINCT - col1 DIV + 73 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT - col1 / + 73 AS col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT ALL + col0 DIV - 49 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + col0 / - 49 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT + CAST( - - col0 AS SIGNED ) + - - col2 col0 FROM tab1
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9406
SELECT + CAST ( - - col0 AS INTEGER ) + - - col2 col0 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL 32 + + 90 FROM tab1
----
122
122
122

query I rowsort
SELECT ALL - 39 + + - 6 FROM tab2 AS cor0
----
-45
-45
-45

query II rowsort
SELECT - col2 + col2, - col0 AS col2 FROM tab0 cor0
----
0
-15
0
-87
0
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + SUM( + 75 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + SUM ( + 75 ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - - 4 AS col1 FROM tab2 cor0
----
4

query I rowsort
SELECT ALL + + 5 - - 51 + + col2 * + col0 FROM tab0 cor0
----
761
926
9659

query I rowsort
SELECT DISTINCT - 37 - col0 FROM tab2
----
-101
-112
-83

query I rowsort
SELECT ( - col2 ) FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 67 - 93 FROM tab0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL + COUNT( * ) * MAX( - col0 ) - + - 85 FROM tab0 WHERE NOT NULL = - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL + COUNT ( * ) * MAX ( - col0 ) - + - 85 FROM tab0 WHERE NOT NULL = - 56
----
NULL

query I rowsort
SELECT - 32 AS col1 FROM tab0 cor0
----
-32
-32
-32

query II rowsort
SELECT col1, col0 - + col0 + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT col0 + - col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 + col2 / - + col0 )
----

query I rowsort
SELECT + col0 - - - ( - - col2 ) FROM tab1 AS cor0 WHERE NOT col0 * - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT ( - MAX( - col2 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT ( - MAX ( - col2 ) ) FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 76 col1 FROM tab0 WHERE + 90 + 93 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9426
SELECT ALL + MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9427
SELECT + CAST( 49 AS SIGNED ) * + col2 FROM tab0
----
2303
4851
490

skipif mysql # not compatible
query I rowsort label-9427
SELECT + CAST ( 49 AS INTEGER ) * + col2 FROM tab0
----
2303
4851
490

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > - + col2
----

query II rowsort
SELECT ALL - 73, 42 AS col2 FROM tab0 AS cor0
----
-73
42
-73
42
-73
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 * col0 - - col0 + - col0 col2 FROM tab1 AS cor0
----
1326
2210
2366

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > col2 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT ALL + 22 AS col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
22
3

skipif mysql # not compatible
query II rowsort label-9432
SELECT ALL + 22 AS col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
22
3

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT - - MIN( ALL - 99 ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - - MIN ( ALL - 99 ) AS col0 FROM tab1 AS cor0
----
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) BETWEEN NULL AND + col1 + - col0
----

query I rowsort
SELECT + ( - - 69 ) FROM tab0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT - COUNT( col2 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9437
SELECT - COUNT ( col2 ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 2 <> - 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - + 37 ) AS col1 FROM tab2
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - + col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 22 + 56 AS col1 FROM tab0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 22 / col1 * - + ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE + ( col1 ) + col0 + - col0 > NULL
----

query I rowsort
SELECT + 59 * - 34 - - ( + ( + 79 ) ) FROM tab1 AS cor0
----
-1927
-1927
-1927

query I rowsort
SELECT - col1 - + + 48 FROM tab1 AS cor0
----
-53
-62
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - - col2 * - col0 col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9447
SELECT * FROM tab2 AS cor0 WHERE - col2 / + 95 / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9447
SELECT * FROM tab2 AS cor0 WHERE - col2 / + 95 / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * - col2 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-1311
-7266
-9604

query I rowsort
SELECT + ( + 81 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9450
SELECT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col0 + + col1 + + + col0 AS col0 FROM tab2 AS cor0
----
143
205
217

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND col2 >= + + 71
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - col2 col0 FROM tab1 AS cor0
----
366
4209
618

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) > col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9455
SELECT CAST( NULL AS SIGNED ) * + - AVG ( CAST( - + col2 AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9455
SELECT CAST ( NULL AS INTEGER ) * + - AVG ( CAST ( - + col2 AS INTEGER ) ) col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL + COUNT( - + CAST( col0 AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + COUNT ( - + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9457
SELECT - COUNT( * ) DIV - 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9457
SELECT - COUNT ( * ) / - 87 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 cor0 WHERE NOT + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT 55 * COUNT( * ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9459
SELECT 55 * COUNT ( * ) FROM tab1 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - + MAX( - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - + MAX ( - + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 26 * - - 21 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( + + 37 ) AS col1 FROM tab0 AS cor0
----
37
37
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN + - 20 AND - 56 / col1 )
----

query I rowsort
SELECT - 27 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
-1191
-1651
-1958

query I rowsort
SELECT 72 + - col0 FROM tab0 AS cor0
----
-15
-25
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9466
SELECT - - col0 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) / 7 - - + col1 * + 13 IS NOT NULL
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9466
SELECT - - col0 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) / 7 - - + col1 * + 13 IS NOT NULL
----
141
142
97

query II rowsort
SELECT + - 72 * 31 + col2 AS col1, + col0 AS col1 FROM tab2 cor0
----
-2174
75
-2192
64
-2209
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT MAX( ALL 58 ) - - - COUNT( + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL = 30 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9468
SELECT MAX ( ALL 58 ) - - - COUNT ( + + col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL = 30 + - col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col0 FROM tab1 AS cor0
----
-76
-76
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT DISTINCT ( col1 ) DIV + col2 + + 62 + 69 FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-9470
SELECT DISTINCT ( col1 ) / + col2 + + 62 + 69 FROM tab1
----
131

query I rowsort
SELECT ALL col0 * - 47 AS col1 FROM tab1
----
-2397
-3995
-4277

query I rowsort
SELECT DISTINCT ( - 0 ) + - col2 - + - col1 AS col0 FROM tab2
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT MAX( DISTINCT + - 47 ) AS col0 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9473
SELECT MAX ( DISTINCT + - 47 ) AS col0 FROM tab2
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9475
SELECT - 38 * + CAST( NULL AS SIGNED ) * - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9475
SELECT - 38 * + CAST ( NULL AS INTEGER ) * - + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - 98 FROM tab2 AS cor0
----
-23
-34
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT ALL + + 91 + + 43 DIV + 39 FROM tab2 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + + 91 + + 43 / + 39 FROM tab2 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT DISTINCT 18 * + COUNT( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT 18 * + COUNT ( DISTINCT + + col2 ) AS col2 FROM tab1 AS cor0
----
54

query I rowsort
SELECT DISTINCT - col2 * - 94 * - col0 AS col1 FROM tab2
----
-240640
-408900
-99452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9480
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 24 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT + col2 * + 96 FROM tab1
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query II rowsort label-9483
SELECT COUNT( * ), - COUNT( * ) AS col2 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
3
-3

skipif mysql # not compatible
query II rowsort label-9483
SELECT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab1 WHERE ( ( NULL ) IS NULL )
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT + - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL + 70 - - - col0 FROM tab0 AS cor0
----
-17
-27
55

query I rowsort
SELECT ALL 35 * + 28 + - ( - + col1 ) FROM tab1 cor0
----
1027
985
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 65 col2 FROM tab1 AS cor0 WHERE - 72 < col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT DISTINCT + COUNT( DISTINCT - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9489
SELECT DISTINCT + col0 AS col2, + col1 * + 48 * + - CAST( - + col2 AS SIGNED ) col2 FROM tab0
----
15
182736
87
10080
97
4752

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9489
SELECT DISTINCT + col0 AS col2, + col1 * + 48 * + - CAST ( - + col2 AS INTEGER ) col2 FROM tab0
----
15
182736
87
10080
97
4752

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 45 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9491
SELECT DISTINCT + SUM( DISTINCT col2 ) * - CAST( - 53 AS SIGNED ) FROM tab2
----
6413

skipif mysql # not compatible
query I rowsort label-9491
SELECT DISTINCT + SUM ( DISTINCT col2 ) * - CAST ( - 53 AS INTEGER ) FROM tab2
----
6413

query I rowsort
SELECT 67 * - col2 AS col0 FROM tab1
----
-3953
-4556
-6432

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT 59 DIV + - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT 59 / + - col0 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT ALL - col2 DIV 48 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - col2 / 48 FROM tab1
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT col1 DIV - 66 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9495
SELECT col1 / - 66 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT ALL ( + col2 ) DIV + 82 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL ( + col2 ) / + 82 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ( - + 70 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - 71 * - col2 = + + 2
----
1
21
81

query I rowsort
SELECT ALL - + 6 FROM tab2 cor0
----
-6
-6
-6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND - col2
----

query I rowsort
SELECT ALL 20 * - + col1 FROM tab0 AS cor0
----
-1620
-20
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 WHERE 75 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 WHERE 75 IS NOT NULL
----
-3

query I rowsort
SELECT - 16 + - col2 FROM tab2
----
-39
-56
-74

query I rowsort
SELECT + col0 * 23 AS col1 FROM tab1 WHERE col0 IS NULL OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( * ) * - 70 AS col0 FROM tab0 AS cor0 WHERE + 5 = - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( * ) * - 70 AS col0 FROM tab0 AS cor0 WHERE + 5 = - - col2
----
0

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( + - col2 ) >= + col0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9507
SELECT ALL + COUNT( ALL - col2 ) col0, - 75 DIV - 63 AS col2 FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9507
SELECT ALL + COUNT ( ALL - col2 ) col0, - 75 / - 63 AS col2 FROM tab1 AS cor0
----
3
1

query I rowsort
SELECT 62 AS col0 FROM tab1 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT ALL + MIN( ALL - 97 ) FROM tab1 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + MIN ( ALL - 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - 61 + - 16 AS col0 FROM tab2
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9511
SELECT ALL + CAST( NULL AS DECIMAL ) * - ( col0 ), - 1 * col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-9511
SELECT ALL + CAST ( NULL AS REAL ) * - ( col0 ), - 1 * col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 37 * - col1 NOT BETWEEN 11 * + col1 - - col2 * 36 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT col0 * CAST( NULL AS SIGNED ) + col1 * - ( - - col0 ) - + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT col0 * CAST ( NULL AS INTEGER ) + col1 * - ( - - col0 ) - + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col0 * - 95 AS col1 FROM tab0
----
-1344
-8244
-9214

query I rowsort
SELECT DISTINCT ( - 98 ) AS col2 FROM tab1
----
-98

query I rowsort
SELECT ALL col2 * + 8 + + 92 AS col1 FROM tab1
----
564
636
860

query I rowsort
SELECT ALL col1 + + + 30 AS col2 FROM tab2 cor0
----
107
81
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - - col0
----

query I rowsort
SELECT - col0 * + ( - col2 ) + - col2 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT - - MAX( DISTINCT col0 ) - + - ( - 69 ) AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - - MAX ( DISTINCT col0 ) - + - ( - 69 ) AS col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT + col2 - ( 15 ) AS col1 FROM tab0 AS cor0
----
-5
32
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL + ( ( + - 27 ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL + ( ( + - 27 ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT - CAST( NULL AS SIGNED ) * + - 6 * - - 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9523
SELECT - CAST ( NULL AS INTEGER ) * + - 6 * - - 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT DISTINCT + ( CAST( - - col0 AS SIGNED ) ) * col0 AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-9524
SELECT DISTINCT + ( CAST ( - - col0 AS INTEGER ) ) * col0 AS col1 FROM tab0
----
225
7569
9409

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
23
40
58

query II rowsort
SELECT ALL + + col0, + 60 FROM tab2 cor0
----
46
60
64
60
75
60

query I rowsort
SELECT ALL ( - 14 ) FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-9528
SELECT + 97 AS col1, - COUNT( * ) col2 FROM tab1 cor0
----
97
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9528
SELECT + 97 AS col1, - COUNT ( * ) col2 FROM tab1 cor0
----
97
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL - + 69 * + ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9530
SELECT ALL - + 69 * + ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-207

query I rowsort
SELECT DISTINCT col2 * + - 7 + col1 AS col2 FROM tab1 AS cor0
----
-408
-429
-658

query I rowsort
SELECT ALL + col1 * - - 33 * - 68 FROM tab0 AS cor0
----
-181764
-2244
-47124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9533
SELECT ALL - SUM( DISTINCT - - 19 ) DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - SUM ( DISTINCT - - 19 ) / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9534
SELECT DISTINCT + 75 DIV + - COUNT( ALL + - 27 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + 75 / + - COUNT ( ALL + - 27 ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col1 FROM tab2
----
2601
4489
5929

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( 90, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9537
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT 28 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT 28 / - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 1 * - 63 AS col2 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL 79 * - MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
6083

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL 79 * - MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
6083

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT DISTINCT 91 DIV 40 * col0 col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9541
SELECT DISTINCT 91 / 40 * col0 col0 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + col0 + 44 FROM tab0
----
131
141
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9543
SELECT CAST( NULL AS SIGNED ) * COUNT( - 28 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT CAST ( NULL AS INTEGER ) * COUNT ( - 28 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9544
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT col1 * col2 + - 94 FROM tab0
----
116
3713
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 AS cor0 WHERE col0 * col1 IS NOT NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9547
SELECT ALL + col2 DIV + col2 + 16 AS col1 FROM tab2 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL + col2 / + col2 + 16 AS col1 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9548
SELECT ALL + 49 AS col1, - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
49
0

skipif mysql # not compatible
query II rowsort label-9548
SELECT ALL + 49 AS col1, - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
49
0

query I rowsort
SELECT - col1 + - col0 + - - col2 FROM tab1 AS cor0
----
-31
-70
31

query III rowsort
SELECT * FROM tab2 cor0 WHERE 16 + + ( - ( col2 ) ) >= + + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT - + 90 + + + COUNT( * ) col2 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9551
SELECT - + 90 + + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT ALL MAX( - 76 ) AS col0 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL MAX ( - 76 ) AS col0 FROM tab1 AS cor0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 + + - col1 + col0 * col0 * + + col1 + 74 col0 FROM tab2 cor0
----
107974
315424
376917

query I rowsort
SELECT - 88 FROM tab2 AS cor0 WHERE + col1 >= - - 33
----
-88
-88
-88

query I rowsort
SELECT - - 20 + + - col0 + + - ( + col2 ) + - 48 AS col2 FROM tab1 cor0
----
-172
-175
-187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - 93 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT ALL col0 DIV - + col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL col0 / - + col1 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9558
SELECT CAST( ( - col0 ) AS SIGNED ) * - 43 AS col0, + col0 AS col2 FROM tab2
----
1978
46
2752
64
3225
75

skipif mysql # not compatible
query II rowsort label-9558
SELECT CAST ( ( - col0 ) AS INTEGER ) * - 43 AS col0, + col0 AS col2 FROM tab2
----
1978
46
2752
64
3225
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9559
SELECT + 65 DIV - + COUNT( * ) AS col1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9559
SELECT + 65 / - + COUNT ( * ) AS col1 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT 45 - + col0 + + col2 + + 89 FROM tab0
----
136
166
57

query I rowsort
SELECT + ( + col2 ) FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 50 * - + 32 = + - 31
----

query I rowsort
SELECT - + 80 - - 37 FROM tab2 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + - 20 ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

query I rowsort
SELECT ( + col1 ) * - - col2 * col0 AS col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL - 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) * - + 49 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) * - + 49 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT + + col2 * - - 0 * + col1 + + col1 - - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT + + col2 * - - 0 * + col1 + + col1 - - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
-658
-860
-9504

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 29 * + col1 * - 13 * 84 * - - 52 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT + COUNT( * ) * + 6 AS col1 FROM tab1 AS cor0 WHERE 61 IS NOT NULL
----
18

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT + COUNT ( * ) * + 6 AS col1 FROM tab1 AS cor0 WHERE 61 IS NOT NULL
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT ALL CAST( NULL AS SIGNED ) * col0 * - + col0 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT ALL CAST ( NULL AS INTEGER ) * col0 * - + col0 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + + ( 88 ) AS col2 FROM tab2
----
2024
3520
5104

query II rowsort
SELECT - 15, + col1 FROM tab2
----
-15
51
-15
67
-15
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT ALL - CAST( NULL AS SIGNED ) * - SUM( - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - CAST ( NULL AS INTEGER ) * - SUM ( - col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT - MIN( - 43 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - MIN ( - 43 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) <= NULL
----
NULL

query I rowsort
SELECT + ( + col1 ) * + - col1 + + - 14 FROM tab2
----
-2615
-4503
-5943

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND - ( - col0 ) * + - col2 + - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9581
SELECT SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ( + + COUNT( + col1 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9582
SELECT ( + + COUNT ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 7 - + col1 + + - 16 AS col1 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT + AVG ( + col0 ) FROM tab2 cor0 WHERE 59 IS NULL
----
NULL

query I rowsort
SELECT + 10 * col0 - - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-555
-8633
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 35 + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9588
SELECT - col2 DIV - + col1 + 75 AS col0 FROM tab2
----
75
75
75

skipif mysql # not compatible
query I rowsort label-9588
SELECT - col2 / - + col1 + 75 AS col0 FROM tab2
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT ALL CAST( NULL AS SIGNED ) * 57 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL CAST ( NULL AS INTEGER ) * 57 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 84 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 - 99 + 69 + - 99 AS col1 FROM tab2 AS cor0
----
-54
-65
-83

query I rowsort
SELECT DISTINCT - 99 - - 17 AS col1 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT + ( + 88 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - MAX( col2 ) * - COUNT( * ) * + + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
867

skipif mysql # not compatible
query I rowsort label-9594
SELECT - MAX ( col2 ) * - COUNT ( * ) * + + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
867

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT + col0 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9595
SELECT + col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * col2 * + 9 AS col0 FROM tab2 AS cor0
----
10557
27720
34974

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col2 * + 9 AS col0 FROM tab2 AS cor0
----
10557
27720
34974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9597
SELECT + - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9597
SELECT + - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT DISTINCT + 46 * - - SUM( - + CAST( NULL AS SIGNED ) ) * - 14 + - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + 46 * - - SUM ( - + CAST ( NULL AS INTEGER ) ) * - 14 + - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 * + col1 + - 58 + + col0 FROM tab0 WHERE - 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9601
SELECT ALL CAST( + 93 AS SIGNED ) AS col1 FROM tab1
----
93
93
93

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL CAST ( + 93 AS INTEGER ) AS col1 FROM tab1
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL - COUNT( * ) * + 15 AS col2 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL - COUNT ( * ) * + 15 AS col2 FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9604
SELECT + COUNT( * ) DIV + + 53 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT + COUNT ( * ) / + + 53 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT DISTINCT - col1 DIV + - col2 col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9605
SELECT DISTINCT - col1 / + - col2 col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + col0 FROM tab1 WHERE + 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - ( + COUNT( * ) ) + + 89 + - + MIN( DISTINCT col0 ) col1 FROM tab2
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9607
SELECT - ( + COUNT ( * ) ) + + 89 + - + MIN ( DISTINCT col0 ) col1 FROM tab2
----
40

query I rowsort
SELECT ALL - 76 * col0 + - + 71 AS col2 FROM tab2
----
-3567
-4935
-5771

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + MAX( - 89 ) + - ( + MAX( + 95 ) ) FROM tab0
----
-184

skipif mysql # not compatible
query I rowsort label-9609
SELECT + MAX ( - 89 ) + - ( + MAX ( + 95 ) ) FROM tab0
----
-184

query I rowsort
SELECT DISTINCT - 65 + + - 25 * + col2 + col1 FROM tab2 AS cor0
----
-1448
-589
-988

query I rowsort
SELECT col2 + - 68 - 5 FROM tab2 AS cor0
----
-15
-33
-50

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 31 >= + 91 * - col1 + - col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT ( - col2 ) + col0 * + col2 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ( - col2 ) + col0 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, - col0 * col1 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9616
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - CAST( - 9 AS DECIMAL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - CAST ( - 9 AS REAL ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND - col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT DISTINCT 65 * - + COUNT( * ) * + + 10 FROM tab2
----
-1950

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT 65 * - + COUNT ( * ) * + + 10 FROM tab2
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT 19 - COUNT( * ) + + - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-9619
SELECT 19 - COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT ALL - CAST( + col1 AS SIGNED ) + + ( 69 ) col2 FROM tab1
----
22
55
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9620
SELECT ALL - CAST ( + col1 AS INTEGER ) + + ( 69 ) col2 FROM tab1
----
22
55
64

query I rowsort
SELECT + 53 - + 48 * - col0 FROM tab2
----
2261
3125
3653

query I rowsort
SELECT ALL 95 * col0 + - col1 * col2 FROM tab0
----
-2382
8055
9116

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT ALL + col0 DIV 48 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL + col0 / 48 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT DISTINCT ( + SUM( 62 ) ) AS col0 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9624
SELECT DISTINCT ( + SUM ( 62 ) ) AS col0 FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + COUNT( ALL col0 ) * + + 28 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9625
SELECT + COUNT ( ALL col0 ) * + + 28 FROM tab2
----
84

query II rowsort
SELECT DISTINCT col2, 85 - col0 AS col1 FROM tab2
----
23
39
40
21
58
10

query I rowsort
SELECT ALL - - col0 * - + col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT ALL col2 AS col2, col0 AS col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT col2 * col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9629
SELECT col2 * col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, + 75 AS col0 FROM tab2 AS cor0
----
46
75
64
75
75
75

query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab1 AS cor0 WHERE ( - col0 * + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT col2, 15 * + - ( + + ( 37 ) ) * - col2 AS col1 FROM tab1 AS cor0
----
59
32745
68
37740
96
53280

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT MIN( DISTINCT col1 ) + COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT MIN ( DISTINCT col1 ) + COUNT ( * ) FROM tab1
----
8

query I rowsort
SELECT 10 + + col1 FROM tab2 AS cor0
----
61
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT - - 64 + COUNT( * ) * + 83 FROM tab1 AS cor0
----
313

skipif mysql # not compatible
query I rowsort label-9635
SELECT - - 64 + COUNT ( * ) * + 83 FROM tab1 AS cor0
----
313

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT + - ( - 48 ) + col1 FROM tab1 cor0
----
53
62
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT CAST( NULL AS SIGNED ) - ( - - 1 ) * - 80 AS col1 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT CAST ( NULL AS INTEGER ) - ( - - 1 ) * - 80 AS col1 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * ( + + 81 ) FROM tab0
----
3807
8019
810

query I rowsort
SELECT - 12 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT DISTINCT + COUNT( * ) AS col1, + 89 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
89

skipif mysql # not compatible
query II rowsort label-9641
SELECT DISTINCT + COUNT ( * ) AS col1, + 89 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
89

query III rowsort
SELECT * FROM tab1 WHERE 31 / - 93 * + ( - col0 ) + - ( + ( - + col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL + ( + COUNT( DISTINCT + 73 ) ) + - - 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + ( + COUNT ( DISTINCT + 73 ) ) + - - 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT + - COUNT( * ) + + MIN( 90 ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT + - COUNT ( * ) + + MIN ( 90 ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE + col2 + + 25 IS NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 + col0 + + + 44 AS col0 FROM tab0 AS cor0
----
106
141
240

query I rowsort
SELECT 32 - + col2 FROM tab0 AS cor0
----
-15
-67
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9649
SELECT ALL + col2 DIV col1 - - col1 AS col1 FROM tab0 AS cor0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL + col2 / col1 - - col1 AS col1 FROM tab0 AS cor0
----
100
21
81

query I rowsort
SELECT - col2 - + - col1 FROM tab0 cor0
----
-98
11
34

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 = + - 90
----

query I rowsort
SELECT ALL 38 * + col0 AS col1 FROM tab2 AS cor0
----
1748
2432
2850

query I rowsort
SELECT DISTINCT - - 65 * + + 10 AS col0 FROM tab1 AS cor0
----
650

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT ALL + 56 DIV + 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + 56 / + 96 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT 80 + + + col0 DIV + - 90 FROM tab1
----
79
80
80

skipif mysql # not compatible
query I rowsort label-9656
SELECT 80 + + + col0 / + - 90 FROM tab1
----
79
80
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( col1 ) ) * + col2 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col2, - col0 AS col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT + - 53 FROM tab0 cor0
----
-53
-53
-53

query II rowsort
SELECT + col0, col1 + + - col0 + - 47 AS col2 FROM tab0 AS cor0
----
15
19
87
-113
97
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9661
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9661
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + - 76 FROM tab1 cor0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9663
SELECT - - COUNT( * ) * + - CAST( NULL AS SIGNED ), 94 AS col2 FROM tab2 AS cor0
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9663
SELECT - - COUNT ( * ) * + - CAST ( NULL AS INTEGER ), 94 AS col2 FROM tab2 AS cor0
----
NULL
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - col2
----

query I rowsort
SELECT DISTINCT - - 38 AS col0 FROM tab1 cor0
----
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col0 NOT IN ( + col1, + col1, + col1, ( col2 ) )
----

query I rowsort
SELECT + 7 AS col0 FROM tab0 WHERE + col2 BETWEEN - 98 AND NULL
----

query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab2 WHERE - 25 / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9669
SELECT ALL - COUNT( * ) col2, - 50 AS col0 FROM tab0
----
-3
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9669
SELECT ALL - COUNT ( * ) col2, - 50 AS col0 FROM tab0
----
-3
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9670
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL 27 * 39 + + col2 + - + 7 AS col1 FROM tab1
----
1105
1114
1142

query I rowsort
SELECT ALL + + 29 / - col1 * + col1 * - col1 AS col0 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - col1 + - 96 * + - 75 AS col1 FROM tab0
----
11007
7299
7410

query II rowsort
SELECT - col2 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - 2 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9675
SELECT - 2 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT + - col1, col0 AS col1 FROM tab0 cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT 30 - + col1 FROM tab1 AS cor0
----
-17
16
25

query II rowsort
SELECT DISTINCT - col0, 99 AS col0 FROM tab0 cor0
----
-15
99
-87
99
-97
99

query I rowsort
SELECT col0 * ( + col0 * - col2 ) FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT 2 * + 46 AS col1 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT + COUNT( col1 ) AS col2 FROM tab0 WHERE + col2 NOT IN ( - 92 )
----
3

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT + COUNT ( col1 ) AS col2 FROM tab0 WHERE + col2 NOT IN ( - 92 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9682
SELECT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) * + 80 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9682
SELECT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * + 80 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - 49 FROM tab2
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + SUM( ALL - ( 32 ) ) * COUNT( * ) AS col2 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-9684
SELECT + SUM ( ALL - ( 32 ) ) * COUNT ( * ) AS col2 FROM tab0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT + col0 DIV - col1 + 21 FROM tab2
----
20
21
21

skipif mysql # not compatible
query I rowsort label-9685
SELECT + col0 / - col1 + 21 FROM tab2
----
20
21
21

query I rowsort
SELECT - col1 + + 61 FROM tab0
----
-20
40
60

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN col1 AND ( 69 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT - 71 - - COUNT( * ) AS col0 FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-9688
SELECT - 71 - - COUNT ( * ) AS col0 FROM tab2
----
-68

query I rowsort
SELECT DISTINCT ( 12 ) * col2 AS col0 FROM tab0
----
1188
120
564

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= + col2
----

query I rowsort
SELECT ( ( ( col0 ) ) ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT + 27 DIV - col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + 27 / - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT ( 89 ) AS col2 FROM tab1 WHERE NOT col1 / col1 IS NULL
----
89
89
89

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 8 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 68 NOT BETWEEN - col1 / - 67 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT IN ( + 38 )
----

query I rowsort
SELECT DISTINCT 75 + + col1 * col0 FROM tab1
----
4352
500
789

query I rowsort
SELECT - 87 AS col0 FROM tab2 WHERE NOT col1 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL - MIN( 37 ) * CAST( NULL AS SIGNED ) + + MIN( + 82 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - MIN ( 37 ) * CAST ( NULL AS INTEGER ) + + MIN ( + 82 ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * col0 - - col1 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT MAX( - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9703
SELECT MAX ( - col2 ) FROM tab2 cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab1 cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT DISTINCT - 77 * COUNT( * ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT - 77 * COUNT ( * ) FROM tab2 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9706
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9706
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 99 * + ( - 43 ) AS col2 FROM tab2 AS cor0
----
-4257
-4257
-4257

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT ALL 26 * ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL 26 * ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - 17 <= - col2
----
-15
-97

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) * + col2 < ( + 16 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col1 * 46 col2 FROM tab0 cor0
----
-51
3711
879

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 >= col2
----

query I rowsort
SELECT ALL - 83 * col2 FROM tab2 AS cor0
----
-1909
-3320
-4814

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT ALL - - col0 DIV - col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - - col0 / - col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * - col1 + ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col0 < ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col2 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9719
SELECT ALL - + ( - SUM( ALL - col0 ) ) DIV - COUNT( * ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - + ( - SUM ( ALL - col0 ) ) / - COUNT ( * ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - 80 * ( - col2 ) + col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - 80 * ( - col2 ) + col1 <> NULL
----
0

query I rowsort
SELECT DISTINCT + col1 * ( - 76 + col0 ) AS col2 FROM tab0 AS cor0
----
-4941
21
231

query I rowsort
SELECT DISTINCT + + col0 * ( + ( + 80 ) ) + + 89 FROM tab2 AS cor0
----
3769
5209
6089

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - + MIN( ALL col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9723
SELECT - + MIN ( ALL col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - 16 * - + col1 AS col1 FROM tab1
----
224
752
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9725
SELECT 33 DIV COUNT( * ) * 37 FROM tab2
----
407

skipif mysql # not compatible
query I rowsort label-9725
SELECT 33 / COUNT ( * ) * 37 FROM tab2
----
407

query III rowsort
SELECT * FROM tab1 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 49 - + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
-15
-26
3

query I rowsort
SELECT + col1 + - + col0 - 70 AS col2 FROM tab1
----
-107
-114
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT DISTINCT COUNT( * ) + + - 10 AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT COUNT ( * ) + + - 10 AS col1 FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL 63 + + - 38 * COUNT( * ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL 63 + + - 38 * COUNT ( * ) AS col2 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 WHERE col1 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9732
SELECT + col2 * ( col2 ) DIV 77 + col0 FROM tab1
----
130
151
170

skipif mysql # not compatible
query I rowsort label-9732
SELECT + col2 * ( col2 ) / 77 + col0 FROM tab1
----
130
151
170

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col1 + + col1 + 92 * - col0 AS col1 FROM tab0
----
-1218
-7962
-8922

query I rowsort
SELECT - 38 FROM tab1 WHERE col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9736
SELECT * FROM tab1 AS cor0 WHERE CAST( 9 AS SIGNED ) * - col1 BETWEEN ( col0 + col2 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9736
SELECT * FROM tab1 AS cor0 WHERE CAST ( 9 AS INTEGER ) * - col1 BETWEEN ( col0 + col2 ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 + + 72 AS col0 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT col2 * - ( col1 * ( - col0 / + 99 ) ) + col2 FROM tab1 WHERE ( col1 * + 45 ) IN ( 67 + + col0 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT ALL 69 DIV col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL 69 / col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
1
6

query I rowsort
SELECT DISTINCT - + col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - + col2 - + - col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - col0 - + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 * - col2 col0 FROM tab2 AS cor0 WHERE NOT 98 = NULL
----

query I rowsort
SELECT DISTINCT + 90 * - + col1 AS col2 FROM tab0 AS cor0
----
-1890
-7290
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT - MIN( DISTINCT 18 ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9745
SELECT - MIN ( DISTINCT 18 ) FROM tab2 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT ALL + - COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + - COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9747
SELECT SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab1 cor0
----
50

query I rowsort
SELECT DISTINCT + 97 + + col1 FROM tab0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT DISTINCT CAST( 10 AS SIGNED ) * + 97 - + COUNT( * ) FROM tab1
----
967

skipif mysql # not compatible
query I rowsort label-9750
SELECT DISTINCT CAST ( 10 AS INTEGER ) * + 97 - + COUNT ( * ) FROM tab1
----
967

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT + col0 * col0 <= NULL
----

query I rowsort
SELECT - col2 * + - col1 AS col1 FROM tab0 cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + col1 BETWEEN ( - + col1 + + ( col1 ) ) AND ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9754
SELECT col0 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - - CAST( + - ( + 63 ) AS SIGNED ) * 33 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9754
SELECT col0 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 * - - CAST ( + - ( + 63 ) AS INTEGER ) * 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) * + ( + 65 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( 65 ) * 29 * 4 FROM tab1 AS cor0
----
-7540

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT ALL col2 DIV + col1 - - + ( + + 21 ) * + 60 FROM tab0 AS cor0
----
1260
1260
1359

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL col2 / + col1 - - + ( + + 21 ) * + 60 FROM tab0 AS cor0
----
1260
1260
1359

query I rowsort
SELECT DISTINCT col1 * + - 10 - 11 + - + col0 * - - 42 FROM tab0 AS cor0
----
-1451
-3875
-4095

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + 25
----

query I rowsort
SELECT ALL + + 13 * - col0 - col2 AS col2 FROM tab2 AS cor0
----
-1033
-621
-872

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND ( + + col2 - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9761
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 AND ( + + col2 - + col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT + 93 + 83 + - 25 col2, 19 - - - 72 * + COUNT( * ) FROM tab2 AS cor0
----
151
-197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9762
SELECT + 93 + 83 + - 25 col2, 19 - - - 72 * + COUNT ( * ) FROM tab2 AS cor0
----
151
-197

query I rowsort
SELECT - - 41 + - col0 + + 15 AS col0 FROM tab1 AS cor0
----
-29
-35
5

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT ( col1 / - - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9765
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 + - col2 * - - CAST( NULL AS SIGNED ) - - col2 * 86 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9765
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 + - col2 * - - CAST ( NULL AS INTEGER ) - - col2 * 86 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9766
SELECT ALL - - ( col1 ) DIV col1 + - 43 FROM tab1 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL - - ( col1 ) / col1 + - 43 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL col0 + CAST( NULL AS SIGNED ) * - 9 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * - 9 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT 33 AS col1, COUNT( * ) AS col1 FROM tab1
----
33
3

skipif mysql # not compatible
query II rowsort label-9768
SELECT 33 AS col1, COUNT ( * ) AS col1 FROM tab1
----
33
3

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN - 48 AND + + 12 * - 0 + + col2
----

query I rowsort
SELECT - 15 * col2 - + - 86 FROM tab1 AS cor0
----
-1354
-799
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - - COUNT( * ) + + 29 * + + MAX( ALL + 95 ) AS col2 FROM tab0 AS cor0
----
2758

skipif mysql # not compatible
query I rowsort label-9771
SELECT - - COUNT ( * ) + + 29 * + + MAX ( ALL + 95 ) AS col2 FROM tab0 AS cor0
----
2758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT DISTINCT + 0 * col2 DIV + col0 + - + ( - - col1 ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + 0 * col2 / + col0 + - + ( - - col1 ) AS col2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT - col0 + + col0 + + 37 FROM tab0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( - - ( - col0 ) * - + 29 - + col0 + - col1 + 42 * col1 ) BETWEEN NULL AND 35
----
-3

skipif mysql # not compatible
query I rowsort label-9775
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( - - ( - col0 ) * - + 29 - + col0 + - col1 + 42 * col1 ) BETWEEN NULL AND 35
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT CAST( + MIN( - col0 ) AS SIGNED ) AS col0 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9776
SELECT CAST ( + MIN ( - col0 ) AS INTEGER ) AS col0 FROM tab0
----
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-9777
SELECT + col0 DIV + - col1, 58 col1 FROM tab2 AS cor0
----
-1
58
0
58
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9777
SELECT + col0 / + - col1, 58 col1 FROM tab2 AS cor0
----
-1
58
0
58
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * - - col1 col1 FROM tab2 AS cor0
----
-255
-335
-385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) * - col1
----

query II rowsort
SELECT + - 2 * + col1 + - 69 AS col1, col1 * - col1 * + col2 + 59 * - col2 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NULL
----
-163
-154224
-79
-4956
-97
-24480

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - + 73 IN ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-9782
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 * - + 73 IN ( - col2 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 48 ) <= NULL OR NOT NULL BETWEEN NULL AND 60 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT - MIN( ALL + 20 ) col2 FROM tab2 WHERE NOT + 29 IS NULL
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9784
SELECT - MIN ( ALL + 20 ) col2 FROM tab2 WHERE NOT + 29 IS NULL
----
-20

query II rowsort
SELECT - col2 AS col2, col1 + + + 68 * + + col1 FROM tab2
----
-23
3519
-40
5313
-58
4623

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT COUNT( * ) * + 53 col0 FROM tab1
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9786
SELECT COUNT ( * ) * + 53 col0 FROM tab1
----
159

query I rowsort
SELECT DISTINCT col1 * - 6 FROM tab0
----
-126
-486
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col1 FROM tab0
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT COUNT( * ) * + - 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-9789
SELECT COUNT ( * ) * + - 90 FROM tab2
----
-270

query I rowsort
SELECT col0 * + 21 FROM tab2
----
1344
1575
966

query I rowsort
SELECT 78 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9792
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 ) + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 38 * + col1 FROM tab0 AS cor0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT + SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT + SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
223

query II rowsort
SELECT DISTINCT col2 + - col2 - - col1 + col1 AS col1, col0 AS col1 FROM tab1
----
10
85
28
51
94
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - - 18 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 75 * - + 35 + + + col2 + - + 8 AS col2 FROM tab2 AS cor0
----
-2575
-2593
-2610

query I rowsort
SELECT col2 * - 38 FROM tab0 AS cor0
----
-1786
-3762
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + 72 * + 90 + COUNT( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
6483

skipif mysql # not compatible
query I rowsort label-9799
SELECT + 72 * + 90 + COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
6483

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 28 * + 17 <> + 47 * - + col0
----

query I rowsort
SELECT col0 - + 37 AS col0 FROM tab1 AS cor0
----
14
48
54

query I rowsort
SELECT 22 + - - ( + 40 ) AS col2 FROM tab1
----
62
62
62

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NULL BETWEEN - + col0 AND + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9804
SELECT DISTINCT 78 * + + AVG ( - - CAST( NULL AS DECIMAL ) ) + - - COUNT( * ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT 78 * + + AVG ( - - CAST ( NULL AS REAL ) ) + - - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
NULL

query II rowsort
SELECT ( + col2 ) + - - 25 AS col0, + col1 AS col0 FROM tab0
----
124
1
35
21
72
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 76
----

query I rowsort
SELECT - 94 AS col0 FROM tab2 WHERE + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 3 AS col1 FROM tab2 AS cor0
----
-49
-67
-78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 35 >= col2 - + ( - 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT + - SUM( + + ( col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + - SUM ( + + ( col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-9812
SELECT DISTINCT MAX( + + col2 ) * + 28 AS col0, 71 FROM tab2 AS cor0
----
1624
71

skipif mysql # not compatible
query II rowsort label-9812
SELECT DISTINCT MAX ( + + col2 ) * + 28 AS col0, 71 FROM tab2 AS cor0
----
1624
71

query II rowsort
SELECT - + 44 AS col2, col1 AS col1 FROM tab2 WHERE NOT - 93 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9814
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) <> - col1 * + - col0
----

skipif mysql # not compatible
query III rowsort label-9814
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) <> - col1 * + - col0
----

query I rowsort
SELECT 27 AS col2 FROM tab2 AS cor0 WHERE NOT 2 + col2 IS NULL
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT ALL ( - 59 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL ( - 59 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9818
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

query II rowsort
SELECT ALL - - col0 AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL + COUNT( * ) + - 93 AS col2 FROM tab2 WHERE NULL IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + COUNT ( * ) + - 93 AS col2 FROM tab2 WHERE NULL IS NULL
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT MAX( DISTINCT + 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT MAX ( DISTINCT + 43 ) FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 76 * - col1 * - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - - col2 col2, - col0 + + 67 + 93 * + col0 AS col1 FROM tab2 AS cor0
----
-1173
4299
-3080
5955
-3886
6967

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT SUM( - col2 ) * - ( + + ( + ( + COUNT( * ) ) ) ) + - MIN( 18 ) FROM tab0 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-9824
SELECT SUM ( - col2 ) * - ( + + ( + ( + COUNT ( * ) ) ) ) + - MIN ( 18 ) FROM tab0 AS cor0
----
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( + 85 ) col0, + 34 + - 45 AS col1 FROM tab0 AS cor0
----
-85
-11
-85
-11
-85
-11

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT DISTINCT ( - - ( - 44 ) ) + + - COUNT( * ) FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-9827
SELECT DISTINCT ( - - ( - 44 ) ) + + - COUNT ( * ) FROM tab2
----
-47

query I rowsort
SELECT + 36 + + - col0 AS col2 FROM tab0
----
-51
-61
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9829
SELECT ALL ( - 85 ) + - 16 + + col2 col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) BETWEEN col1 * - 79 AND + col2 + + + col1 + - col0 AND NOT NULL BETWEEN ( col0 ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9829
SELECT ALL ( - 85 ) + - 16 + + col2 col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) BETWEEN col1 * - 79 AND + col2 + + + col1 + - col0 AND NOT NULL BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * - col2 + + + 52 + + col1 AS col2 FROM tab2 AS cor0
----
1276
3209
4005

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE + col2 + + col0 <> - ( - col2 )
----
-46
-64
-75

query I rowsort
SELECT 44 + - - col2 + 63 * - ( + + ( 47 ) ) - + + 5 * - ( + 88 ) AS col0 FROM tab0 AS cor0
----
-2378
-2430
-2467

query I rowsort
SELECT DISTINCT + 87 + - - 67 AS col2 FROM tab2 AS cor0
----
154

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col1 ) >= + col1 + - 66
----

query I rowsort
SELECT - 38 * + - 12 AS col0 FROM tab2 AS cor0
----
456
456
456

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + col2 ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 18 * + + col1
----

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT + SUM( DISTINCT + 80 ) * + + COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + SUM ( DISTINCT + 80 ) * + + COUNT ( * ) FROM tab0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT DISTINCT + MIN( + col2 ) + + 14 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + MIN ( + col2 ) + + 14 FROM tab2
----
37

query III rowsort
SELECT * FROM tab0 WHERE - ( col1 ) + + 61 * + 44 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - 63 - col1 + col2 col2, col2 AS col1 FROM tab2
----
-36
40
-45
23
3
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9844
SELECT + 1 - + + 85 AS col2, MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
-84
-58

skipif mysql # not compatible
query II rowsort label-9844
SELECT + 1 - + + 85 AS col2, MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
-84
-58

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL CAST( 34 AS SIGNED ) FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL CAST ( 34 AS INTEGER ) FROM tab2 AS cor0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT ALL - COUNT( * ) * - 39 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL - COUNT ( * ) * - 39 FROM tab1 AS cor0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT - 49 DIV 57 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9849
SELECT - 49 / 57 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT COUNT( * ) * - 49 col1 FROM tab1 AS cor0 WHERE NOT col2 * - col0 / + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9850
SELECT DISTINCT COUNT ( * ) * - 49 col1 FROM tab1 AS cor0 WHERE NOT col2 * - col0 / + + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT + SUM( ALL col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + SUM ( ALL col0 ) FROM tab0 cor0
----
199

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 + + col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT DISTINCT + COUNT( * ) * - - 78 * + 31 AS col0 FROM tab2 cor0
----
7254

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT + COUNT ( * ) * - - 78 * + 31 AS col0 FROM tab2 cor0
----
7254

query II rowsort
SELECT col2, + ( col2 ) FROM tab1
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT ALL + col1 DIV col2 DIV + + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9856
SELECT ALL + col1 / col2 / + + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT - ( + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT ALL col2 + ( + + 72 ) FROM tab2
----
112
130
95

query I rowsort
SELECT 26 AS col0 FROM tab0 WHERE NOT 30 IN ( - - col1, col1 * - col2, + + 86 * col2 )
----
26
26
26

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL 43 * COUNT( * ) + + 46 AS col1 FROM tab1
----
175

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL 43 * COUNT ( * ) + + 46 AS col1 FROM tab1
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9863
SELECT DISTINCT + col0, - CAST( col0 AS SIGNED ) + - 81 AS col1 FROM tab1 cor0
----
51
-132
85
-166
91
-172

skipif mysql # not compatible
query II rowsort label-9863
SELECT DISTINCT + col0, - CAST ( col0 AS INTEGER ) + - 81 AS col1 FROM tab1 cor0
----
51
-132
85
-166
91
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT COUNT( * ) + - 82 col0 FROM tab1 cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT COUNT ( * ) + - 82 col0 FROM tab1 cor0
----
-79

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 56, - 15 col2 FROM tab0 cor0
----
56
-15
56
-15
56
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL 27 + ( - COUNT( * ) ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL 27 + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT col0 - - col1 * - + col1 FROM tab0 AS cor0
----
-354
-6546
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9871
SELECT DISTINCT - COUNT( * ) AS col2, 96 / - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + - MIN( ALL - - 84 ) * + 17 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9871
SELECT DISTINCT - COUNT ( * ) AS col2, 96 / - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - MIN ( ALL - - 84 ) * + 17 FROM tab2
----
-3
NULL

query I rowsort
SELECT ALL + col2 + + 10 FROM tab1
----
106
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL - SUM( - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL - SUM ( - + col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL + CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9874
SELECT ALL + CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col1 * 21 FROM tab0
----
1701
21
441

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL - 75 * - 77 + - - MAX( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
5872

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 75 * - 77 + - - MAX ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
5872

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT DISTINCT - 46 DIV col2 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - 46 / col2 FROM tab2 cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL + 6 * - SUM( ALL + - 3 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL + 6 * - SUM ( ALL + - 3 ) FROM tab2 AS cor0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT - 23 DIV - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 23 / - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT SUM( - 10 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT SUM ( - 10 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
90

query I rowsort
SELECT DISTINCT - - col0 * + col1 * - - ( - 20 ) FROM tab0 AS cor0
----
-1940
-24300
-36540

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT ALL - + COUNT( * ) * 16 AS col1 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL - + COUNT ( * ) * 16 AS col1 FROM tab0 AS cor0
----
-48

query II rowsort
SELECT DISTINCT ( 86 ) * - ( + col1 ) - - col0 AS col0, col0 + col0 FROM tab0
----
-1719
174
-6951
30
11
194

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT ALL 23 DIV + 48 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL 23 / + 48 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 94 - - col0 FROM tab2 WHERE NOT col1 IS NULL
----
140
158
169

query I rowsort
SELECT DISTINCT 34 + + col1 FROM tab0
----
115
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT - SUM( ALL 7 ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-9888
SELECT - SUM ( ALL 7 ) FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT - 26 ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT - 26 ) AS col2 FROM tab2
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 * - col0 * + 50 col0, + col1 FROM tab0
----
-369750
21
-412250
1
-63750
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9891
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 * + + 43 + - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL CAST ( NULL AS REAL ) * - col1 * + + 43 + - - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9892
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) / col0 * + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9892
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) / col0 * + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9894
SELECT + - COUNT( * ), - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9894
SELECT + - COUNT ( * ), - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT - col0 * CAST( NULL AS SIGNED ) * - - 32 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT - col0 * CAST ( NULL AS INTEGER ) * - - 32 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - + col1 + - - col1 AS col0 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT + col2 + + + col0 AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT + - 32 / ( col0 ) + + + col2 + - + col2 FROM tab0 WHERE - col2 / 82 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9899
SELECT DISTINCT SUM( + - CAST( ( - col2 ) AS SIGNED ) ) + - + ( + - 51 ) * - 34 AS col0 FROM tab0 AS cor0 WHERE col2 IN ( + ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT SUM ( + - CAST ( ( - col2 ) AS INTEGER ) ) + - + ( + - 51 ) * - 34 AS col0 FROM tab0 AS cor0 WHERE col2 IN ( + ( - col2 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + 62 + - - ( - 38 ) FROM tab2 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - COUNT( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9902
SELECT - COUNT ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT - MAX( ALL 95 ) FROM tab1 AS cor0 WHERE NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9904
SELECT - MAX ( ALL 95 ) FROM tab1 AS cor0 WHERE NULL = col2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 86 / + col1, col1 / + - col2 )
----

query I rowsort
SELECT 7 - + col0 AS col1 FROM tab2
----
-39
-57
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT ALL SUM( col2 ) - - 56 DIV + COUNT( * ) FROM tab1
----
241

skipif mysql # not compatible
query I rowsort label-9907
SELECT ALL SUM ( col2 ) - - 56 / + COUNT ( * ) FROM tab1
----
241

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9908
SELECT DISTINCT + CAST( - 38 AS SIGNED ), 36 AS col0 FROM tab1
----
-38
36

skipif mysql # not compatible
query II rowsort label-9908
SELECT DISTINCT + CAST ( - 38 AS INTEGER ), 36 AS col0 FROM tab1
----
-38
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9909
SELECT col0 / col0 / + + ( - CAST( NULL AS SIGNED ) ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT col0 / col0 / + + ( - CAST ( NULL AS INTEGER ) ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 * + 50 AS col0 FROM tab1
----
2350
2350
2350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9911
SELECT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= 80 * 53 * + col1 * - 66
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9913
SELECT DISTINCT + 23 + - col1 FROM tab0 AS cor0 WHERE NOT ( - + col0 * + 57 - 59 + + - col2 / CAST( NULL AS DECIMAL ) <= NULL )
----

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + 23 + - col1 FROM tab0 AS cor0 WHERE NOT ( - + col0 * + 57 - 59 + + - col2 / CAST ( NULL AS REAL ) <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col1 AS col0, 75 FROM tab0
----
1
75
21
75
81
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9916
SELECT * FROM tab0 WHERE NOT - CAST( - col0 AS SIGNED ) BETWEEN + - col0 AND - 66 * + 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9916
SELECT * FROM tab0 WHERE NOT - CAST ( - col0 AS INTEGER ) BETWEEN + - col0 AND - 66 * + 5
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 59 * - - 89 AS col1 FROM tab2
----
5251

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 87 - + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + col0 ) + col0 * - col0 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 40 * - col0 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + col0 + + ( 12 ) * + 59 col2 FROM tab2
----
786
804
815

query I rowsort
SELECT DISTINCT - ( - 17 ) FROM tab0
----
17

query I rowsort
SELECT ALL col2 * - - col2 + - - col0 - - 36 * - - col2 FROM tab2
----
1403
3104
5527

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL MIN( DISTINCT col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL MIN ( DISTINCT col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 69 col0 FROM tab2 AS cor0
----
109
127
92

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * 41 col2 FROM tab0 AS cor0 WHERE + ( - 8 ) + + col2 IS NOT NULL
----
-4018
-4018
-4018

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + ( col2 ) * col2 * - 8 AS col0 FROM tab2
----
-12800
-26912
-4232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT DISTINCT SUM( DISTINCT CAST( + 73 AS SIGNED ) ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-9929
SELECT DISTINCT SUM ( DISTINCT CAST ( + 73 AS INTEGER ) ) AS col2 FROM tab1
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 40 * - col1 col1, col0 - ( - 4 ) + - 80 AS col0 FROM tab0
----
-17640
11
-262440
-61
-40
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT - 18 DIV - 52 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9931
SELECT - 18 / - 52 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT DISTINCT + col0 DIV - 10 + - + ( + - col0 ) AS col1 FROM tab1
----
46
77
82

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + col0 / - 10 + - + ( + - col0 ) AS col1 FROM tab1
----
46
77
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL + - ( - 58 ) + 14 + + MAX( DISTINCT + - 43 ) * + + COUNT( * ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + - ( - 58 ) + 14 + + MAX ( DISTINCT + - 43 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9934
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + - COUNT( * ) - + COUNT( - + 69 ) - + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9934
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) - + COUNT ( - + 69 ) - + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - 20 ) - + + 2 FROM tab1 cor0
----
18

query I rowsort
SELECT col1 + - - col0 + - col2 FROM tab1 AS cor0
----
-31
31
70

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9937
SELECT - col0 + col2 - col1 AS col1, - col2 * - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
-31
NULL
-70
NULL
31
NULL

skipif mysql # not compatible
query II rowsort label-9937
SELECT - col0 + col2 - col1 AS col1, - col2 * - CAST ( NULL AS REAL ) FROM tab1 cor0
----
-31
NULL
-70
NULL
31
NULL

query I rowsort
SELECT - 68 * col0 FROM tab2 AS cor0
----
-3128
-4352
-5100

query II rowsort
SELECT - + col2 * + 94 * col2 + - col0 / + 0, - col0 AS col0 FROM tab2 cor0 WHERE NOT + col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT DISTINCT MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 86 / - 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9942
SELECT + col0 AS col2, col2 DIV + col1 + - col2 * col2 + + 61 - - col2 + - 49 col0 FROM tab0
----
15
-2150
87
-78
97
-9591

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9942
SELECT + col0 AS col2, col2 / + col1 + - col2 * col2 + + 61 - - col2 + - 49 col0 FROM tab0
----
15
-2150
87
-78
97
-9591

query I rowsort
SELECT + col2 * + - col0 AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9944
SELECT DISTINCT + col2 * + + col0 * + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-9944
SELECT DISTINCT + col2 * + + col0 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
295885
420784
470016

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT + 29 AS col1, COUNT( * ) * 28 AS col2 FROM tab1
----
29
84

skipif mysql # not compatible
query II rowsort label-9947
SELECT + 29 AS col1, COUNT ( * ) * 28 AS col2 FROM tab1
----
29
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - 27 ) NOT IN ( 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + + MAX( DISTINCT + - 80 ) AS col2 FROM tab2 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + + MAX ( DISTINCT + - 80 ) AS col2 FROM tab2 cor0
----
-80

query II rowsort
SELECT ALL + - col2, ( 16 ) AS col0 FROM tab1 AS cor0
----
-59
16
-68
16
-96
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9951
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + + 14, col2 AS col2 FROM tab0 AS cor0
----
14
10
14
47
14
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL - - MAX( DISTINCT 79 ) FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL - - MAX ( DISTINCT 79 ) FROM tab1 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - COUNT( * ) * - - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT - COUNT ( * ) * - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ( - col1 ) + - + col1 FROM tab2 AS cor0
----
-102
-134
-154

query I rowsort
SELECT + ( - col0 ) + + ( 73 ) AS col2 FROM tab0 cor0
----
-14
-24
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 / col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT - + col2 DIV + col1 + - 70 + - + col0 + + col0 FROM tab2 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-9962
SELECT - + col2 / + col1 + - 70 + - + col0 + + col0 FROM tab2 AS cor0
----
-70
-70
-70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 47 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL + 52 * + COUNT( * ) * + 22 * - COUNT( * ) AS col0 FROM tab1
----
-10296

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + 52 * + COUNT ( * ) * + 22 * - COUNT ( * ) AS col0 FROM tab1
----
-10296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL + ( - - col1 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + ( - - col1 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 + + ( col0 ) * + + 12 col2 FROM tab2
----
1034
654
922

query I rowsort
SELECT DISTINCT 15 + + 12 FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT COUNT( - 30 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9969
SELECT COUNT ( - 30 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9971
SELECT + 64 AS col2, - col2 DIV - col1 * + - col2 + col0 * + + col0 + + 36 AS col2 FROM tab2 AS cor0
----
64
2152
64
4132
64
5661

skipif mysql # not compatible
query II rowsort label-9971
SELECT + 64 AS col2, - col2 / - col1 * + - col2 + col0 * + + col0 + + 36 AS col2 FROM tab2 AS cor0
----
64
2152
64
4132
64
5661

query I rowsort
SELECT + 96 * 37 FROM tab2 AS cor0
----
3552
3552
3552

query II rowsort
SELECT DISTINCT + 9 AS col0, col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT ALL col0 * + col0 * - col2 AS col1 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL - + ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9976
SELECT DISTINCT - ( - MIN( DISTINCT + - col0 ) ) * ( + 52 ) + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 * col1 < CAST( ( - col1 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT - ( - MIN ( DISTINCT + - col0 ) ) * ( + 52 ) + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 * col1 < CAST ( ( - col1 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9977
SELECT DISTINCT COUNT( ALL + CAST( + 47 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT COUNT ( ALL + CAST ( + 47 AS INTEGER ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + 4 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
4
4
4

query I rowsort
SELECT - 21 * + col0 FROM tab0
----
-1827
-2037
-315

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) IN ( + col1, 42, - col2 * col2 ) )
----

query II rowsort
SELECT ALL - col0, + col1 FROM tab1
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab0
----
48
48
48

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab0 WHERE NOT NULL > col0
----

query I rowsort
SELECT + col2 * - + col2 * + col1 * - - col2 AS col2 FROM tab1
----
-1026895
-12386304
-14778304

query I rowsort
SELECT - 95 * col0 * 95 AS col1 FROM tab2 AS cor0
----
-415150
-577600
-676875

query I rowsort
SELECT + + 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT 46 + + 45 + col2 FROM tab0 cor0
----
101
138
190

query I rowsort
SELECT col1 * + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col2 AS col2 FROM tab2 cor0
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - col1 ) * + - col0 * + 80 < - col2
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT ( COUNT( * ) ) AS col2, 96 FROM tab0 cor0
----
3
96

skipif mysql # not compatible
query II rowsort label-9994
SELECT ( COUNT ( * ) ) AS col2, 96 FROM tab0 cor0
----
3
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 23 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT ALL - COUNT( * ) + + + 11 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9996
SELECT ALL - COUNT ( * ) + + + 11 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL + MAX( + col1 ) AS col0 FROM tab2 WHERE NOT NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + MAX ( + col1 ) AS col0 FROM tab2 WHERE NOT NULL >= col0
----
NULL

query I rowsort
SELECT - col1 + + col0 + - - 26 AS col2 FROM tab2
----
13
21
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT DISTINCT COUNT( * ) + + ( + - 83 ) FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT COUNT ( * ) + + ( + - 83 ) FROM tab1
----
-80

