sqllogictest
Artifact Content
Not logged in

Artifact aafebfda787c8b7882e58c0ae73639c16bffc8af:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL MAX( 94 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL MAX ( 94 ) FROM tab1
----
94

query I rowsort
SELECT - + 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4
SELECT ALL - + CAST( col0 AS SIGNED ) * 11 AS col1 FROM tab0 AS cor0 WHERE NOT 51 NOT BETWEEN + CAST( NULL AS SIGNED ) - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - + CAST ( col0 AS INTEGER ) * 11 AS col1 FROM tab0 AS cor0 WHERE NOT 51 NOT BETWEEN + CAST ( NULL AS INTEGER ) - col0 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-5
SELECT + 16 / col2 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

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

query II rowsort
SELECT ALL 45, + col2 FROM tab1
----
45
59
45
68
45
96

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT + MIN( ALL col2 ) FROM tab1 WHERE NOT + 85 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-10
SELECT + MIN ( ALL col2 ) FROM tab1 WHERE NOT + 85 = NULL
----
NULL

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

query I rowsort
SELECT ALL + + col2 * 45 FROM tab2 AS cor0
----
1035
1800
2610

query I rowsort
SELECT DISTINCT - col0 * + + 32 AS col2 FROM tab1 AS cor0
----
-1632
-2720
-2912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-14
SELECT COUNT( + - CAST( NULL AS SIGNED ) ), 85 col2 FROM tab1 AS cor0
----
0
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-14
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ), 85 col2 FROM tab1 AS cor0
----
0
85

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

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

query I rowsort
SELECT - 62 * 15 FROM tab0 AS cor0
----
-930
-930
-930

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT col0 DIV + col0 - - - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-17
SELECT col0 / + col0 - - - col0 FROM tab2 AS cor0
----
-45
-63
-74

query I rowsort
SELECT - 19 + col1 + - col2 * + ( - col0 ) FROM tab1
----
4891
5001
6216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 37 * + 89 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dddd7ae641466c16f02bcbda2fe2bdfc

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-22
SELECT - + SUM( 72 ), 21 * - 83 AS col1 FROM tab2 AS cor0
----
-216
-1743

skipif mysql # not compatible
query II rowsort label-22
SELECT - + SUM ( 72 ), 21 * - 83 AS col1 FROM tab2 AS cor0
----
-216
-1743

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col1 + - + col1
----

query I rowsort
SELECT ALL - 62 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT col2 * 94 + + 39 + - col0 DIV col1 FROM tab2
----
2201
3799
5490

skipif mysql # not compatible
query I rowsort label-26
SELECT col2 * 94 + + 39 + - col0 / col1 FROM tab2
----
2201
3799
5490

query II rowsort
SELECT ALL col0 AS col0, + 71 FROM tab1
----
51
71
85
71
91
71

query I rowsort
SELECT + 44 AS col2 FROM tab0 WHERE + col1 > - 75
----
44
44
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-29
SELECT 72 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT 72 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col2 * - 7 AS col2 FROM tab2
----
138
240
348

query I rowsort
SELECT ALL - + ( col1 ) + 20 AS col2 FROM tab1 AS cor0
----
-27
15
6

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - 60 * + + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0 WHERE - col2 > + 46
----
0

skipif mysql # not compatible
query I rowsort label-32
SELECT - 60 * + + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 > + 46
----
0

query II rowsort
SELECT - col1 + ( + + col0 ), + 87 + - - col0 AS col2 FROM tab2 AS cor0
----
-13
151
-5
133
8
162

query I rowsort
SELECT DISTINCT - 88 + col1 AS col0 FROM tab0 AS cor0
----
-67
-7
-87

query I rowsort
SELECT DISTINCT col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT ALL col2 + + col1 * col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT - + 37 * - 84 FROM tab1 AS cor0
----
3108
3108
3108

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-39
SELECT ALL - col1 / + col2 col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT - - SUM( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 / 62 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-41
SELECT - - SUM ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 / 62 IS NULL
----
185

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT ALL MIN( DISTINCT ( + col0 ) ) AS col0 FROM tab0 WHERE NULL <= - col0 + + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL MIN ( DISTINCT ( + col0 ) ) AS col0 FROM tab0 WHERE NULL <= - col0 + + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT - COUNT( 87 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-44
SELECT - COUNT ( 87 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-45
SELECT ALL - ( - 10 ) * - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL - ( - 10 ) * - - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, col1 * + col2 * + 18 FROM tab0
----
1
1782
21
3780
81
68526

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

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

query I rowsort
SELECT DISTINCT + + col0 * - + 93 * + 77 + col1 FROM tab2 AS cor0
----
-329355
-458227
-537008

query II rowsort
SELECT + 35 * - col0 AS col1, 26 AS col2 FROM tab2
----
-1610
26
-2240
26
-2625
26

query I rowsort
SELECT ALL + col0 * + 99 FROM tab0
----
1485
8613
9603

query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 FROM tab1 cor0
----
-1395
-3287
-380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-52
SELECT ALL 3 * + 90 + CAST( NULL AS SIGNED ) + + - MIN( - - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL 3 * + 90 + CAST ( NULL AS INTEGER ) + + - MIN ( - - col0 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 20 + + col2 * - + col1 AS col2 FROM tab0 AS cor0
----
-190
-3787
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col0 col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT 77 + + col1 FROM tab2 AS cor0
----
128
144
154

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - 81
----

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

query I rowsort
SELECT + col1 + - + 7 * + col0 FROM tab2
----
-271
-371
-458

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT - + 5 * col0 DIV + - col1 - col0 FROM tab2 AS cor0
----
-42
-60
-70

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT - + 5 * col0 / + - col1 - col0 FROM tab2 AS cor0
----
-42
-60
-70

query I rowsort
SELECT 66 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + ( 9 ) FROM tab1
----
9

query II rowsort
SELECT ALL 60 AS col1, - 42 * - 91 * - col1 AS col2 FROM tab1
----
60
-179634
60
-19110
60
-53508

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

query I rowsort
SELECT + 64 * + col2 FROM tab1 AS cor0
----
3776
4352
6144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-66
SELECT + - SUM( - CAST( + col2 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
156

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

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

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

query I rowsort
SELECT - 58 * - - col1 AS col1 FROM tab0 cor0
----
-1218
-4698
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT DISTINCT - + ( COUNT( * ) ) + 91 AS col0 FROM tab2 WHERE 35 * + col0 IS NOT NULL
----
88

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT - + ( COUNT ( * ) ) + 91 AS col0 FROM tab2 WHERE 35 * + col0 IS NOT NULL
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 37 * + + 73 * - 0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-74
SELECT ALL + 55 DIV col0 col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-74
SELECT ALL + 55 / col0 col0 FROM tab1
----
0
0
1

query I rowsort
SELECT - col2 * - - 2 AS col2 FROM tab0
----
-198
-20
-94

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

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

query I rowsort
SELECT ALL + 33 + - ( - 36 ) * col2 AS col2 FROM tab0 AS cor0
----
1725
3597
393

query I rowsort
SELECT DISTINCT - 78 - + col1 * + col2 FROM tab2
----
-1251
-3158
-3964

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

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

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

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

query I rowsort
SELECT 2 + + - col0 * + - ( - 48 ) AS col1 FROM tab1
----
-2446
-4078
-4366

query II rowsort
SELECT - col2 + + col1, col2 FROM tab0
----
-98
99
11
10
34
47

query I rowsort
SELECT DISTINCT 38 - + 36 AS col1 FROM tab0
----
2

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

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

query I rowsort
SELECT ALL + - 15 AS col2 FROM tab0 AS cor0
----
-15
-15
-15

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

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

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

query III rowsort
SELECT + ( + col0 ) AS col1, + 87, col0 FROM tab0
----
9 values hashing to f2a6cdc3162538d5195f433c5ca9b8c6

onlyif mysql # DIV for integer division: 
query I rowsort label-89
SELECT col1 * ( - 62 ) DIV - 54 AS col1 FROM tab2
----
58
76
88

skipif mysql # not compatible
query I rowsort label-89
SELECT col1 * ( - 62 ) / - 54 AS col1 FROM tab2
----
58
76
88

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 61 IS NOT NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 7 BETWEEN + 97 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-96
SELECT ALL + CAST( + 34 AS SIGNED ) AS col2, - col1 FROM tab1 AS cor0
----
34
-14
34
-47
34
-5

skipif mysql # not compatible
query II rowsort label-96
SELECT ALL + CAST ( + 34 AS INTEGER ) AS col2, - col1 FROM tab1 AS cor0
----
34
-14
34
-47
34
-5

query I rowsort
SELECT 64 * col1 * 18 AS col1 FROM tab1 AS cor0
----
16128
54144
5760

onlyif mysql # DIV for integer division: 
query II rowsort label-98
SELECT DISTINCT - 11 * 71 * - col2 * - col2 * col1 DIV + col2 col1, - 17 DIV - col1 AS col1 FROM tab1
----
-1049664
1
-230395
3
-2496076
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-98
SELECT DISTINCT - 11 * 71 * - col2 * - col2 * col1 / + col2 col1, - 17 / - col1 AS col1 FROM tab1
----
-1049664
1
-230395
3
-2496076
0

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT 1 + COUNT( * ) * 14 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-99
SELECT 1 + COUNT ( * ) * 14 FROM tab2
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - col1 - + 83 + + col1 col2 FROM tab0
----
-181
-272
-3809

query I rowsort
SELECT ALL - 16 * 55 * + 11 * - + 74 AS col0 FROM tab1
----
716320
716320
716320

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 73 <= NULL
----

query II rowsort
SELECT + 78 AS col1, col1 * 34 AS col1 FROM tab0 cor0
----
78
2754
78
34
78
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-104
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * + col1 FROM tab1 cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * + col1 FROM tab1 cor0
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 25 ) * + + col1 * col2 col2 FROM tab1 AS cor0
----
-33600
-7375
-79900

onlyif mysql # DIV for integer division: 
query I rowsort label-106
SELECT - 73 DIV + + col1 + - + col2 FROM tab2 AS cor0
----
-24
-40
-59

skipif mysql # not compatible
query I rowsort label-106
SELECT - 73 / + + col1 + - + col2 FROM tab2 AS cor0
----
-24
-40
-59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) = NULL
----

query I rowsort
SELECT ALL + 85 * 46 + - col0 * - 19 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4879
5525
5639

query I rowsort
SELECT + col2 - + 33 FROM tab2
----
-10
25
7

query I rowsort
SELECT - col2 * + 54 AS col1 FROM tab0
----
-2538
-5346
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + - 70 * col0 col1 FROM tab2
----
-3207
-4467
-5237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-112
SELECT 95 DIV - COUNT( - 37 ) + ( + ( - 66 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-112
SELECT 95 / - COUNT ( - 37 ) + ( + ( - 66 ) ) FROM tab0
----
-97

query I rowsort
SELECT - 16 + col1 AS col1 FROM tab1
----
-11
-2
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * 87 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * + 86 ) <= ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * 72 AS col2 FROM tab1
----
-4248
-4896
-6912

query I rowsort
SELECT DISTINCT col0 * + 2 FROM tab0
----
174
194
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 - + col2 * - 11 col0 FROM tab0
----
1106
127
534

query I rowsort
SELECT ALL col2 * + 13 + col0 FROM tab2
----
345
584
829

query I rowsort
SELECT + 29 - 42 AS col2 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT ( - col2 ) IN ( 31 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col1 * 81 col0 FROM tab1 WHERE NOT ( - 28 * col2 ) <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-124
SELECT ALL + CAST( - col2 AS SIGNED ) + col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL + CAST ( - col2 AS INTEGER ) + col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT ALL 43 - - 86 FROM tab0
----
129
129
129

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

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT DISTINCT + col0 DIV + 54 - + 25 AS col0 FROM tab1
----
-24
-25

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + col0 / + 54 - + 25 AS col0 FROM tab1
----
-24
-25

query I rowsort
SELECT - 94 * AVG ( + col2 / + col1 ) AS col0 FROM tab0 WHERE NOT ( ( - 67 ) + 11 ) NOT IN ( col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT col1 DIV - col1 + + 16 * 89 FROM tab2 WHERE ( - col1 ) IN ( - col1 )
----
1423
1423
1423

skipif mysql # not compatible
query I rowsort label-129
SELECT col1 / - col1 + + 16 * 89 FROM tab2 WHERE ( - col1 ) IN ( - col1 )
----
1423
1423
1423

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-132
SELECT DISTINCT - 33 DIV COUNT( * ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - 33 / COUNT ( * ) FROM tab1 AS cor0
----
-11

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

query I rowsort
SELECT 61 AS col2 FROM tab0 WHERE NOT ( NULL ) > ( + 40 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL + 4 * COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + 4 * COUNT ( * ) AS col1 FROM tab0
----
12

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 59 * 36 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * 20 * - 63 + - 67 FROM tab2
----
-58027
-80707
-94567

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT + col0 DIV - 38 + col2 AS col2 FROM tab1
----
57
66
95

skipif mysql # not compatible
query I rowsort label-146
SELECT + col0 / - 38 + col2 AS col2 FROM tab1
----
57
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT + COUNT( * ) + - COUNT( - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + COUNT ( * ) + - COUNT ( - col0 ) FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT DISTINCT - + 28 DIV - 90 + + 52 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - + 28 / - 90 + + 52 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT - 34 + - COUNT( 30 ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-150
SELECT - 34 + - COUNT ( 30 ) FROM tab0 AS cor0
----
-37

query I rowsort
SELECT ALL 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

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

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

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

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

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

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

query I rowsort
SELECT + 90 - - col0 AS col2 FROM tab0 AS cor0
----
105
177
187

query I rowsort
SELECT col0 - - + col0 - - 54 FROM tab1 cor0
----
156
224
236

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT - - 98 - + SUM( ( - col0 ) ) FROM tab0 cor0
----
297

skipif mysql # not compatible
query I rowsort label-160
SELECT - - 98 - + SUM ( ( - col0 ) ) FROM tab0 cor0
----
297

query I rowsort
SELECT - ( + 98 ) FROM tab0 AS cor0 WHERE ( - col0 * - - col2 ) = - col0 + + 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT - 4 - + col1 + + + col2 DIV - 86 FROM tab1 AS cor0
----
-19
-51
-9

skipif mysql # not compatible
query I rowsort label-162
SELECT - 4 - + col1 + + + col2 / - 86 FROM tab1 AS cor0
----
-19
-51
-9

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-165
SELECT * FROM tab2 AS cor0 WHERE ( - col0 + + col0 * + CAST( NULL AS SIGNED ) ) < col0
----

skipif mysql # not compatible
query III rowsort label-165
SELECT * FROM tab2 AS cor0 WHERE ( - col0 + + col0 * + CAST ( NULL AS INTEGER ) ) < col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 46 NOT BETWEEN - col2 AND + col1 + col0
----

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE + col0 * + 87 >= 98 * + col2
----
-23
-40
-58

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

query I rowsort
SELECT ALL + 82 * - + col0 FROM tab1
----
-4182
-6970
-7462

query I rowsort
SELECT DISTINCT - 49 * col0 AS col2 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query II rowsort label-172
SELECT ALL + MIN( col1 ) AS col0, - 93 FROM tab0
----
1
-93

skipif mysql # not compatible
query II rowsort label-172
SELECT ALL + MIN ( col1 ) AS col0, - 93 FROM tab0
----
1
-93

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

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

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

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

query I rowsort
SELECT + col0 * + 12 AS col0 FROM tab2
----
552
768
900

query I rowsort
SELECT 94 * - - col0 FROM tab0
----
1410
8178
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-177
SELECT - 92 * + COUNT( * ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-177
SELECT - 92 * + COUNT ( * ) FROM tab0
----
-276

query I rowsort
SELECT DISTINCT - col2 * 84 FROM tab1 WHERE NOT ( + - ( - col0 ) - col0 ) BETWEEN ( NULL ) AND ( NULL )
----

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT - 7 * ( 1 ) IS NULL )
----

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

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NOT ( 85 ) BETWEEN - col2 AND - col2
----
51
85
91

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

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

query I rowsort
SELECT DISTINCT - col0 + + + 54 AS col0 FROM tab2 cor0
----
-10
-21
8

query I rowsort
SELECT + - 64 - - 7 FROM tab0 AS cor0 WHERE NOT + 80 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-189
SELECT DISTINCT CAST( + + 93 AS SIGNED ) col0 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-189
SELECT DISTINCT CAST ( + + 93 AS INTEGER ) col0 FROM tab0
----
93

query I rowsort
SELECT col0 * + 9 + col0 FROM tab0
----
150
870
970

query III rowsort
SELECT * FROM tab1 WHERE ( - 88 * + + col2 IN ( + col0 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL 86, - COUNT( * ) AS col2 FROM tab1
----
86
-3

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL 86, - COUNT ( * ) AS col2 FROM tab1
----
86
-3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, + 97 AS col0 FROM tab0 WHERE - - col0 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-196
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-196
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 15 + + - col1 FROM tab1 AS cor0
----
-32
1
10

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT - COUNT( * ) * + ( - + SUM( + col1 ) ) col0 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-202
SELECT DISTINCT - COUNT ( * ) * + ( - + SUM ( + col1 ) ) col0 FROM tab0 AS cor0
----
309

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT - MAX( ALL 91 ) AS col2 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - MAX ( ALL 91 ) AS col2 FROM tab2
----
-91

query I rowsort
SELECT 63 * col0 * 75 FROM tab1
----
240975
401625
429975

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col2 + + col0 + col1 ) NOT BETWEEN 86 AND + 64 * - 5 + ( - 33 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 < + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, 87 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT ALL col1 + + - CAST( - 71 AS SIGNED ) FROM tab1 AS cor0
----
118
76
85

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL col1 + + - CAST ( - 71 AS INTEGER ) FROM tab1 AS cor0
----
118
76
85

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE ( + 3 * - 43 ) IS NULL
----

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

query I rowsort
SELECT ALL - - col2 FROM tab2 cor0 WHERE NOT - col1 * + - 70 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL MIN( - + 83 ) FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL MIN ( - + 83 ) FROM tab1 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-220
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( 88 )
----

skipif mysql # not compatible
query III rowsort label-220
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( 88 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 - 93 + + - ( + ( + - 90 ) ) <= + ( - col0 ) / - col2 + col1
----

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

query I rowsort
SELECT ALL - col2 + + - 21 FROM tab1
----
-117
-80
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-224
SELECT DISTINCT - col2 * - col1 * - col1 col0, CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-237160
77
-260362
67
-59823
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-224
SELECT DISTINCT - col2 * - col1 * - col1 col0, CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-237160
77
-260362
67
-59823
51

query I rowsort
SELECT DISTINCT 6 * + - col2 AS col2 FROM tab1
----
-354
-408
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 * col0 + 49 * + col1 col2 FROM tab1
----
10766
5429
8150

query I rowsort
SELECT DISTINCT - + 65 + - + col1 FROM tab0 AS cor0
----
-146
-66
-86

query I rowsort
SELECT + col0 + + + 82 AS col2 FROM tab2 AS cor0
----
128
146
157

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-231
SELECT DISTINCT CAST( + + 87 AS SIGNED ) - - col0 AS col0 FROM tab0
----
102
174
184

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT CAST ( + + 87 AS INTEGER ) - - col0 AS col0 FROM tab0
----
102
174
184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT ALL + SUM( - col1 ) * + + CAST( + 23 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-232
SELECT ALL + SUM ( - col1 ) * + + CAST ( + 23 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT DISTINCT COUNT( * ) col1 FROM tab0 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-235
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT DISTINCT - COUNT( * ) col2, COUNT( * ) * + 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 40 ) AND ( NULL )
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-236
SELECT DISTINCT - COUNT ( * ) col2, COUNT ( * ) * + 51 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - 40 ) AND ( NULL )
----
0
0

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

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

query II rowsort
SELECT + + 91 AS col1, + col1 + + col2 AS col2 FROM tab0 AS cor0
----
91
100
91
128
91
31

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

query I rowsort
SELECT DISTINCT 99 * col2 AS col2 FROM tab2
----
2277
3960
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( NULL ) < + col0 * - + 18
----

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( NULL ) < + col0 * - + 18
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL <> - col1
----

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

query II rowsort
SELECT 84 * + + 76 AS col0, ( - col1 ) FROM tab2
----
6384
-51
6384
-67
6384
-77

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-248
SELECT DISTINCT col2 DIV col1 AS col0, col1 AS col2 FROM tab1 cor0
----
1
47
11
5
6
14

skipif mysql # not compatible
query II rowsort label-248
SELECT DISTINCT col2 / col1 AS col0, col1 AS col2 FROM tab1 cor0
----
1
47
11
5
6
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-249
SELECT DISTINCT 49 * - - col2 - - + col1 + - - 14 * + - col0 / - 21 FROM tab1 WHERE NOT NULL > CAST( + + col0 AS SIGNED ) + col0
----

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 49 * - - col2 - - + col1 + - - 14 * + - col0 / - 21 FROM tab1 WHERE NOT NULL > CAST ( + + col0 AS INTEGER ) + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT DISTINCT SUM( - - 2 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT SUM ( - - 2 ) FROM tab1
----
6

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

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

query I rowsort
SELECT ALL 47 * - 12 FROM tab0 AS cor0
----
-564
-564
-564

query I rowsort
SELECT col2 + - + 38 AS col2 FROM tab1 AS cor0
----
21
30
58

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 40
----

query I rowsort
SELECT 67 * + 16 AS col2 FROM tab1
----
1072
1072
1072

query I rowsort
SELECT ALL - 71 * + - 87 FROM tab1
----
6177
6177
6177

query I rowsort
SELECT DISTINCT - col2 + + 56 + - + col0 * + - 78 * + - col0 AS col1 FROM tab2
----
-165015
-319472
-438752

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-261
SELECT - col2 / + - 83 col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-262
SELECT ALL + 44 DIV + + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + 44 / + + col1 FROM tab2
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * + + col0 col2 FROM tab0 AS cor0
----
-720
-957
-9700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - - 18 ) col1 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT ALL - CAST( 9 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - CAST ( 9 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-9
-9
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 * ( - col2 ) + + 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT DISTINCT + - MIN( ALL 26 ) AS col1 FROM tab1 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + - MIN ( ALL 26 ) AS col1 FROM tab1 cor0
----
-26

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT - col2 DIV + 28 AS col0 FROM tab1 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-272
SELECT - col2 / + 28 AS col0 FROM tab1 AS cor0
----
-2
-2
-3

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

skipif mysql # not compatible
query I rowsort label-273
SELECT - col0 / - 39 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( - col1 ) + - 80 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-101
-161
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-275
SELECT + 24 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-275
SELECT + 24 / - col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + ( - 79 ) FROM tab2 AS cor0
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-278
SELECT * FROM tab1 WHERE NOT - + CAST( + + col2 AS DECIMAL ) * - - 73 * 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-278
SELECT * FROM tab1 WHERE NOT - + CAST ( + + col2 AS REAL ) * - - 73 * 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-280
SELECT - 80 * - + 58 * - 8 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-1744640
-185600
-519680

skipif mysql # not compatible
query I rowsort label-280
SELECT - 80 * - + 58 * - 8 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-1744640
-185600
-519680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-281
SELECT DISTINCT - ( ( - + col0 ) ) FROM tab1 AS cor0 WHERE - col2 / + CAST( + 43 AS SIGNED ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - ( ( - + col0 ) ) FROM tab1 AS cor0 WHERE - col2 / + CAST ( + 43 AS INTEGER ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-282
SELECT DISTINCT CAST( + 26 AS SIGNED ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT CAST ( + 26 AS INTEGER ) FROM tab0 AS cor0
----
26

query I rowsort
SELECT - + 22 * + + col1 AS col1 FROM tab2 AS cor0
----
-1122
-1474
-1694

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - ( + ( col2 ) ) <= - ( + 99 ) OR NOT 12 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL <= col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT - - MAX( - 58 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-286
SELECT - - MAX ( - 58 ) AS col0 FROM tab2 cor0
----
-58

query II rowsort
SELECT DISTINCT - col0 + - col0, col1 * col1 AS col2 FROM tab0 AS cor0
----
-174
441
-194
1
-30
6561

query I rowsort
SELECT ALL + 37 + - + 5 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-289
SELECT + 66 AS col2, + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
66
0

skipif mysql # not compatible
query II rowsort label-289
SELECT + 66 AS col2, + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= NULL
----
66
0

query I rowsort
SELECT DISTINCT - 10 - - col1 FROM tab0
----
-9
11
71

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

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE - 85 IS NULL
----

query I rowsort
SELECT DISTINCT 1 * + 36 AS col0 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT - MAX( ALL col0 ) + 46 col1 FROM tab0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-294
SELECT - MAX ( ALL col0 ) + 46 col1 FROM tab0
----
-51

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

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

query I rowsort
SELECT col1 + + 77 FROM tab2
----
128
144
154

query I rowsort
SELECT col1 + + 28 AS col0 FROM tab0
----
109
29
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-299
SELECT ALL MIN( ALL - - col0 ) DIV + 84 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL MIN ( ALL - - col0 ) / + 84 FROM tab1
----
0

query II rowsort
SELECT ALL 55 + + ( + ( - col1 ) ) AS col0, + 69 FROM tab0
----
-26
69
34
69
54
69

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT DISTINCT + COUNT( * ) + - 38 AS col2 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + COUNT ( * ) + - 38 AS col2 FROM tab0
----
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 + - 1 - col0 ) = - col1 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT ( COUNT( * ) ) - + MIN( - - 28 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT ( COUNT ( * ) ) - + MIN ( - - 28 ) FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL - COUNT( + 25 ) * + COUNT( * ) - 81 AS col0 FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - COUNT ( + 25 ) * + COUNT ( * ) - 81 AS col0 FROM tab2 cor0
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-305
SELECT - COUNT( * ) AS col2, - MAX( - col2 ) col0 FROM tab2 cor0 WHERE NOT 91 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-305
SELECT - COUNT ( * ) AS col2, - MAX ( - col2 ) col0 FROM tab2 cor0 WHERE NOT 91 IS NOT NULL
----
0
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - MAX( ALL - 18 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-307
SELECT - MAX ( ALL - 18 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-308
SELECT - + ( + - 70 ) AS col2, + MIN( - col1 ) FROM tab0 AS cor0
----
70
-81

skipif mysql # not compatible
query II rowsort label-308
SELECT - + ( + - 70 ) AS col2, + MIN ( - col1 ) FROM tab0 AS cor0
----
70
-81

query I rowsort
SELECT DISTINCT - 4 * + + 73 + - col2 AS col2 FROM tab0 AS cor0
----
-302
-339
-391

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

onlyif mysql # DIV for integer division: 
query I rowsort label-311
SELECT DISTINCT - 77 DIV col0 * + ( + col0 ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT - 77 / col0 * + ( + col0 ) FROM tab2
----
-46
-64
-75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT - MAX( + 69 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-314
SELECT - MAX ( + 69 ) FROM tab1
----
-69

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

query I rowsort
SELECT ALL 44 + + col1 FROM tab1 cor0
----
49
58
91

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

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

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

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

query I rowsort
SELECT ALL + 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # DIV for integer division: 
query I rowsort label-320
SELECT ALL col0 DIV - + col2 + ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1175
-3081
-3887

skipif mysql # not compatible
query I rowsort label-320
SELECT ALL col0 / - + col2 + ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1175
-3081
-3887

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-321
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 + ( ( col0 ) ) / - 6 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-321
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 + ( ( col0 ) ) / - 6 col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col0 + - + col1 AS col1 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - col0 * + - 21 + + col1 FROM tab0 AS cor0
----
1848
2038
396

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 88 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + 44 AS col1 FROM tab1
----
-30
-39
3

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col2 - - 58 + - col2 NOT BETWEEN ( - col0 ) AND col1 * - + ( - col1 ) + - 79
----
15
81
47
87
21
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT 88 DIV - + col0 - - - col1 FROM tab0
----
-1
-22
-86

skipif mysql # not compatible
query I rowsort label-330
SELECT 88 / - + col0 - - - col1 FROM tab0
----
-1
-22
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-331
SELECT DISTINCT - 33 AS col2, COUNT( * ) AS col1 FROM tab0
----
-33
3

skipif mysql # not compatible
query II rowsort label-331
SELECT DISTINCT - 33 AS col2, COUNT ( * ) AS col1 FROM tab0
----
-33
3

query II rowsort
SELECT 62, ( - - 31 ) AS col2 FROM tab0 AS cor0
----
62
31
62
31
62
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + 81 IS NULL AND NOT col1 - - - 29 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-334
SELECT ALL - col0 AS col0, 8 DIV - col0 * - - col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-334
SELECT ALL - col0 AS col0, 8 / - col0 * - - col0 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query I rowsort
SELECT ALL 74 * + 47 + col1 AS col2 FROM tab0 AS cor0
----
3479
3499
3559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-336
SELECT CAST( - + MAX( DISTINCT - col1 ) AS SIGNED ) * - + MAX( ALL col1 ) FROM tab2 AS cor0
----
-3927

skipif mysql # not compatible
query I rowsort label-336
SELECT CAST ( - + MAX ( DISTINCT - col1 ) AS INTEGER ) * - + MAX ( ALL col1 ) FROM tab2 AS cor0
----
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + + 64 * + 47 + MIN( DISTINCT - + col0 ) + 89 AS col1 FROM tab2 AS cor0
----
3022

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + + 64 * + 47 + MIN ( DISTINCT - + col0 ) + 89 AS col1 FROM tab2 AS cor0
----
3022

query I rowsort
SELECT - 59 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
-181720
-229274
-69207

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( - col0 ) NOT BETWEEN NULL AND 66 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT + + 64 + COUNT( * ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + + 64 + COUNT ( * ) FROM tab1 AS cor0
----
67

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

query II rowsort
SELECT DISTINCT - col0 AS col1, 41 FROM tab1
----
-51
41
-85
41
-91
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * - + 71 col1 FROM tab0
----
-15975
-537399
-668039

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT + col1 DIV - 2 AS col0 FROM tab1 AS cor0
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-346
SELECT + col1 / - 2 AS col0 FROM tab1 AS cor0
----
-2
-23
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-348
SELECT ALL - MAX( DISTINCT 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL - MAX ( DISTINCT 37 ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT - 66 - col0 AS col1 FROM tab0 AS cor0
----
-153
-163
-81

query II rowsort
SELECT ALL col2 - col1 * - col2, - ( + 86 ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT + col0 - - + 80 AS col0 FROM tab2 AS cor0
----
126
144
155

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

query I rowsort
SELECT DISTINCT - - 33 - - col0 AS col1 FROM tab2 AS cor0
----
108
79
97

query I rowsort
SELECT ALL - 91 + 77 FROM tab0 cor0
----
-14
-14
-14

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

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

query II rowsort
SELECT 63, col0 AS col0 FROM tab1
----
63
51
63
85
63
91

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

query I rowsort
SELECT ALL - ( 99 ) FROM tab2
----
-99
-99
-99

query II rowsort
SELECT + 2 AS col1, 89 AS col0 FROM tab2, tab0 AS cor0
----
18 values hashing to 0e458ef44482597ef9dc2135dca465ad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL col0 AS col0 FROM tab2 WHERE CAST( - - col0 AS SIGNED ) * - 30 = + 59 - 74
----

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL col0 AS col0 FROM tab2 WHERE CAST ( - - col0 AS INTEGER ) * - 30 = + 59 - 74
----

query I rowsort
SELECT - 52 AS col2 FROM tab1 cor0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-363
SELECT ALL - - col0 DIV - 87 col1 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-363
SELECT ALL - - col0 / - 87 col1 FROM tab0 AS cor0
----
-1
-1
0

query II rowsort
SELECT ALL - ( + 60 ) AS col1, - col1 FROM tab1 cor0
----
-60
-14
-60
-47
-60
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-365
SELECT DISTINCT - - col2 + + CAST( NULL AS DECIMAL ), col2 AS col0 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-365
SELECT DISTINCT - - col2 + + CAST ( NULL AS REAL ), col2 AS col0 FROM tab1 cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - + ( + + 63 ) * - COUNT( DISTINCT + - col2 ) + - 38 + - 73 FROM tab0 cor0 WHERE NOT 35 * - col2 + col1 IS NOT NULL
----
-111

skipif mysql # not compatible
query I rowsort label-366
SELECT - + ( + + 63 ) * - COUNT ( DISTINCT + - col2 ) + - 38 + - 73 FROM tab0 cor0 WHERE NOT 35 * - col2 + col1 IS NOT NULL
----
-111

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

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

query I rowsort
SELECT + ( 26 ) + col2 + - + ( 41 ) * + col1 FROM tab1
----
-120
-1833
-452

query I rowsort
SELECT + col1 + + col1 FROM tab1 WHERE col1 <= - col1 + + col2
----
10
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-370
SELECT ALL + CAST( NULL AS SIGNED ) + + - col0 * + col0 * - + 78 FROM tab0 WHERE NOT NULL >= col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + CAST ( NULL AS INTEGER ) + + - col0 * + col0 * - + 78 FROM tab0 WHERE NOT NULL >= col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-371
SELECT ALL - 62 * - - MAX( - + col2 ) + - 31, COUNT( * ) AS col2 FROM tab1 WHERE + col0 / + - col1 IS NOT NULL
----
3627
3

skipif mysql # not compatible
query II rowsort label-371
SELECT ALL - 62 * - - MAX ( - + col2 ) + - 31, COUNT ( * ) AS col2 FROM tab1 WHERE + col0 / + - col1 IS NOT NULL
----
3627
3

query I rowsort
SELECT ( - + col0 ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-373
SELECT ALL - col1 + 17 + + col1 - - 99 DIV col2 AS col0 FROM tab2 AS cor0
----
18
19
21

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL - col1 + 17 + + col1 - - 99 / col2 AS col0 FROM tab2 AS cor0
----
18
19
21

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-376
SELECT DISTINCT + col2 DIV col0 * - 73 * - - ( + - col1 ) AS col0 FROM tab1
----
0
1022

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + col2 / col0 * - 73 * - - ( + - col1 ) AS col0 FROM tab1
----
0
1022

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT - SUM( ALL + + 17 ) AS col1 FROM tab1 WHERE NULL > ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-377
SELECT - SUM ( ALL + + 17 ) AS col1 FROM tab1 WHERE NULL > ( col1 )
----
NULL

query I rowsort
SELECT ALL - - col1 + - + ( + 97 ) + + 38 AS col1 FROM tab0 AS cor0
----
-38
-58
22

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

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

query II rowsort
SELECT col1, + col2 * col2 AS col1 FROM tab2
----
51
529
67
3364
77
1600

query I rowsort
SELECT DISTINCT - - 38 FROM tab2 WHERE NULL < + + 23 * - col1 * ( - - col0 )
----

query I rowsort
SELECT + 70 * + col1 FROM tab1 cor0
----
3290
350
980

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

query I rowsort
SELECT ALL col0 * - col1 * col2 AS col1 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - ( + + col0 ) * - 80 BETWEEN - 67 AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-387
SELECT DISTINCT col1 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-387
SELECT DISTINCT col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + COUNT( ALL 6 ) * + MAX( ALL + ( CAST( col0 AS SIGNED ) ) ) - + ( + ( + 2 ) ) AS col1 FROM tab1 AS cor0
----
271

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + COUNT ( ALL 6 ) * + MAX ( ALL + ( CAST ( col0 AS INTEGER ) ) ) - + ( + ( + 2 ) ) AS col1 FROM tab1 AS cor0
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-389
SELECT - SUM( + 91 ) AS col0, + CAST( 98 AS SIGNED ) FROM tab1 AS cor0
----
-273
98

skipif mysql # not compatible
query II rowsort label-389
SELECT - SUM ( + 91 ) AS col0, + CAST ( 98 AS INTEGER ) FROM tab1 AS cor0
----
-273
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT ALL - CAST( 35 AS SIGNED ) FROM tab2 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-391
SELECT ALL - CAST ( 35 AS INTEGER ) FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT ALL + - 64 AS col1 FROM tab1 AS cor0 WHERE NOT col2 > NULL
----

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

query I rowsort
SELECT DISTINCT col1 - + col1 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 36 ) IS NULL
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT ALL - MAX( ALL - 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL - MAX ( ALL - 47 ) FROM tab0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col1 * - ( + + 31 ) col1 FROM tab2
----
152768
155775
72726

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col2 * + ( + - col0 ) FROM tab1
----
5310
6240
9384

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

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

query I rowsort
SELECT - 71 + + + col1 AS col0 FROM tab2 AS cor0
----
-20
-4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT MIN( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 28 + col2 AS col0 FROM tab2 AS cor0
----
51
68
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-402
SELECT DISTINCT - col2 + + 55 * ( + CAST( NULL AS DECIMAL ) ) / - CAST( + ( - col0 ) AS DECIMAL ) + + 19 + - + ( col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT - col2 + + 55 * ( + CAST ( NULL AS REAL ) ) / - CAST ( + ( - col0 ) AS REAL ) + + 19 + - + ( col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-403
SELECT DISTINCT - COUNT( * ) DIV SUM( ALL col1 ) - + + 86 FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - COUNT ( * ) / SUM ( ALL col1 ) - + + 86 FROM tab1 cor0
----
-86

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

query I rowsort
SELECT + 81 * - col1 - col1 AS col2 FROM tab2
----
-4182
-5494
-6314

query I rowsort
SELECT DISTINCT col2 + + + 92 + 70 AS col1 FROM tab0
----
172
209
261

query I rowsort
SELECT ALL - 54 + col1 AS col1 FROM tab2 AS cor0
----
-3
13
23

onlyif mysql # aggregate syntax: 
query II rowsort label-408
SELECT DISTINCT + + 88 col2, COUNT( 66 ) AS col0 FROM tab0 AS cor0
----
88
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-408
SELECT DISTINCT + + 88 col2, COUNT ( 66 ) AS col0 FROM tab0 AS cor0
----
88
3

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT COUNT( * ) * + - SUM( - col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-409
SELECT COUNT ( * ) * + - SUM ( - col0 ) FROM tab2
----
555

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

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

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

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

query II rowsort
SELECT - col1 * - 64 * + + col0 AS col2, - col1 AS col2 FROM tab2
----
150144
-51
315392
-77
321600
-67

query I rowsort
SELECT DISTINCT 99 * col2 AS col0 FROM tab2
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT + MIN( ALL 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-415
SELECT + MIN ( ALL 81 ) FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( 4 ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-417
SELECT DISTINCT - 91 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - 91 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-419
SELECT DISTINCT - 52 * + CAST( - col1 AS SIGNED ) * CAST( NULL AS DECIMAL ) + - - 4 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-419
SELECT DISTINCT - 52 * + CAST ( - col1 AS INTEGER ) * CAST ( NULL AS REAL ) + - - 4 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-420
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL IN ( - col2 + - 0, + col0 + - 62 + - CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL IN ( - col2 + - 0, + col0 + - 62 + - CAST ( - col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + ( - - ( - AVG ( 67 ) ) ) FROM tab0 AS cor0 WHERE - 90 * col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT - 27 + - COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
-27

skipif mysql # not compatible
query I rowsort label-422
SELECT - 27 + - COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + - ( + + 65 ) + COUNT( * ) FROM tab0 AS cor0
----
-62

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

query I rowsort
SELECT ALL ( 77 ) * col1 + - col1 + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3927
5159
5929

query I rowsort
SELECT col0 + + 15 + - + 75 AS col1 FROM tab1 AS cor0
----
-9
25
31

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

skipif mysql # not compatible
query I rowsort label-426
SELECT col2 + + CAST ( NULL AS REAL ) + + CAST ( + - ( - + 55 ) AS REAL ) * col2 + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT + COUNT( * ) * 42 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT + COUNT ( * ) * 42 FROM tab0
----
126

query I rowsort
SELECT ALL - col2 * col1 + - 83 FROM tab0
----
-182
-293
-3890

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + COUNT( + - ( + + col2 ) ) + - 91 AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + COUNT ( + - ( + + col2 ) ) + - 91 AS col1 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - col0 - 88 - col0 * + - col0 AS col0 FROM tab1 AS cor0
----
2462
7052
8102

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 53 - - col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 41 + 94 FROM tab2
----
53

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

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT SUM( + col1 ) / 20 FROM tab2 cor0 WHERE NOT ( ( ( NOT - col0 <= NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT SUM ( + col1 ) / 20 FROM tab2 cor0 WHERE NOT ( ( ( NOT - col0 <= NULL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-441
SELECT + MAX( col0 ) * + + 92, MAX( ALL 44 ) col1 FROM tab1 AS cor0
----
8372
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-441
SELECT + MAX ( col0 ) * + + 92, MAX ( ALL 44 ) col1 FROM tab1 AS cor0
----
8372
44

query II rowsort
SELECT ALL + col0 * - col0 AS col1, - col1 + + col2 * 66 * - col0 AS col1 FROM tab2 AS cor0
----
-2116
-69879
-4096
-169037
-5625
-287167

query I rowsort
SELECT ALL + col1 * - col0 * - - 92 FROM tab1 AS cor0
----
-39100
-393484
-65688

onlyif mysql # DIV for integer division: 
query I rowsort label-444
SELECT col1 * - col2 DIV + - col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-444
SELECT col1 * - col2 / + - col2 FROM tab1 AS cor0
----
14
47
5

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT COUNT( DISTINCT + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-447
SELECT COUNT ( DISTINCT + + col2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT ALL - col0 DIV + + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL - col0 / + + col1 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT ALL + 82 AS col1, COUNT( * ) FROM tab2
----
82
3

skipif mysql # not compatible
query II rowsort label-449
SELECT ALL + 82 AS col1, COUNT ( * ) FROM tab2
----
82
3

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT DISTINCT + col2 DIV - 87 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT + col2 / - 87 AS col2 FROM tab2
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-451
SELECT DISTINCT MIN ( col2 ) col0 FROM tab1
----
59

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

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE 23 * - col1 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-456
SELECT + COUNT ( * ) * - - 23 FROM tab0 cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-457
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 33 + - col2 + + CAST( NULL AS SIGNED ) * 53 <> ( col0 )
----

skipif mysql # not compatible
query III rowsort label-457
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + 33 + - col2 + + CAST ( NULL AS INTEGER ) * 53 <> ( col0 )
----

query II rowsort
SELECT - 39, + col1 AS col0 FROM tab2 AS cor0
----
-39
51
-39
67
-39
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

query I rowsort
SELECT ALL - 84 + - col2 FROM tab2 AS cor0
----
-107
-124
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT DISTINCT + MIN( - ( + col0 ) ) DIV COUNT( * ) * 69 - - ( + 19 ) + - 88 AS col0 FROM tab2 AS cor0
----
-1794

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + MIN ( - ( + col0 ) ) / COUNT ( * ) * 69 - - ( + 19 ) + - 88 AS col0 FROM tab2 AS cor0
----
-1794

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

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

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

query I rowsort
SELECT + col1 * + 11 + + col1 AS col2 FROM tab1
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT DISTINCT + MAX( ALL + 38 ) AS col0 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + MAX ( ALL + 38 ) AS col0 FROM tab1
----
38

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

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

query I rowsort
SELECT DISTINCT col0 + + col0 - + + col2 FROM tab2
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL SUM( ALL + 75 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL SUM ( ALL + 75 ) FROM tab2
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-470
SELECT + col0 + + - col1 + col1 DIV - col2 FROM tab2
----
-14
-7
7

skipif mysql # not compatible
query I rowsort label-470
SELECT + col0 + + - col1 + col1 / - col2 FROM tab2
----
-14
-7
7

query I rowsort
SELECT + col0 + col0 * + + col0 AS col1 FROM tab2 cor0
----
2162
4160
5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-472
SELECT ALL - + col2 * + CAST( + + col1 AS SIGNED ) + - - 99 AS col0 FROM tab2 AS cor0
----
-1074
-2981
-3787

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL - + col2 * + CAST ( + + col1 AS INTEGER ) + - - 99 AS col0 FROM tab2 AS cor0
----
-1074
-2981
-3787

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

query I rowsort
SELECT ALL 7 - + - ( col0 ) AS col1 FROM tab0 AS cor0
----
104
22
94

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - col2 * + col0 * + + 26 AS col0 FROM tab0
----
-18330
-22620
-249678

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT DISTINCT - - col0 * + col1 DIV col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT - - col0 * + col1 / col1 FROM tab2 AS cor0
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT col0 / - ( + + col2 ) FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col2 * + + col1 * + - 5 * + col2 FROM tab2 AS cor0
----
-1126940
-134895
-616000

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT DISTINCT - COUNT( * ) * - 32 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT - COUNT ( * ) * - 32 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL - col2 * - + col0 * + 81 AS col2 FROM tab0 AS cor0
----
57105
70470
777843

query I rowsort
SELECT DISTINCT col0 * + - 74 - 8 FROM tab0 AS cor0
----
-1118
-6446
-7186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT + SUM( DISTINCT 38 ) AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-486
SELECT + SUM ( DISTINCT 38 ) AS col2 FROM tab0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-487
SELECT ALL - CAST( SUM( DISTINCT - + col0 ) AS SIGNED ) AS col2, 20 FROM tab1
----
227
20

skipif mysql # not compatible
query II rowsort label-487
SELECT ALL - CAST ( SUM ( DISTINCT - + col0 ) AS INTEGER ) AS col2, 20 FROM tab1
----
227
20

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

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

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

query II rowsort
SELECT 72 * + col1 AS col1, - col1 FROM tab2 AS cor0
----
3672
-51
4824
-67
5544
-77

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

query I rowsort
SELECT DISTINCT - col1 * + + 11 FROM tab1
----
-154
-517
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT MAX( DISTINCT + 49 ) + SUM( + col1 ) AS col0 FROM tab2
----
244

skipif mysql # not compatible
query I rowsort label-493
SELECT MAX ( DISTINCT + 49 ) + SUM ( + col1 ) AS col0 FROM tab2
----
244

query I rowsort
SELECT DISTINCT + col1 * + 96 * col1 + + 39 + + + 16 AS col1 FROM tab1
----
18871
212119
2455

query I rowsort
SELECT DISTINCT + col2 * + col0 + 9 AS col2 FROM tab0 cor0
----
714
879
9612

query I rowsort
SELECT DISTINCT - 92 + - + col2 AS col0 FROM tab2 AS cor0
----
-115
-132
-150

query I rowsort
SELECT ALL + col1 + + 98 AS col0 FROM tab2 AS cor0
----
149
165
175

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

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

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

query I rowsort
SELECT DISTINCT col2 - + 84 * - - col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT ALL - + SUM( - 28 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL - + SUM ( - 28 ) FROM tab0 AS cor0
----
84

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

query I rowsort
SELECT - ( - - 26 ) FROM tab1
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 * + 47 * + col2 * - 30 col0 FROM tab2
----
-144384000
-34310940
-355743000

query I rowsort
SELECT + col0 * + + ( + 58 ) AS col0 FROM tab1
----
2958
4930
5278

query I rowsort
SELECT DISTINCT 45 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 77 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * - + ( col0 ) col2 FROM tab0
----
-1479
-1649
-255

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = - + 64 / + - col2
----

query I rowsort
SELECT ALL - col1 * + 28 * + + col1 FROM tab2 AS cor0
----
-125692
-166012
-72828

query I rowsort
SELECT DISTINCT col0 * 69 AS col2 FROM tab1 AS cor0
----
3519
5865
6279

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-521
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-521
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, 56 FROM tab1 AS cor0
----
59
56
68
56
96
56

query I rowsort
SELECT DISTINCT 57 * + col1 FROM tab0
----
1197
4617
57

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

skipif mysql # not compatible
query III rowsort label-524
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT - COUNT( * ) AS col0, ( + 19 ) + - COUNT( * ) FROM tab1 AS cor0 WHERE + col0 BETWEEN + col1 AND 12 + + ( + col2 )
----
-1
18

skipif mysql # not compatible
query II rowsort label-525
SELECT - COUNT ( * ) AS col0, ( + 19 ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 BETWEEN + col1 AND 12 + + ( + col2 )
----
-1
18

query I rowsort
SELECT col1 * - col0 - + 33 AS col2 FROM tab0 AS cor0
----
-1248
-130
-1860

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

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

query I rowsort
SELECT + + col1 - ( 66 ) AS col1 FROM tab0 AS cor0
----
-45
-65
15

query II rowsort
SELECT ALL col1, - 84 + 67 FROM tab1
----
14
-17
47
-17
5
-17

query I rowsort
SELECT ALL + 69 + - 88 AS col0 FROM tab0
----
-19
-19
-19

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT COUNT( * ) + 58 AS col2 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-535
SELECT COUNT ( * ) + 58 AS col2 FROM tab1
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-537
SELECT DISTINCT CAST( col2 AS SIGNED ) + col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-537
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col1 FROM tab1
----
110
115
64

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

query I rowsort
SELECT DISTINCT ( - ( 8 ) ) + 94 AS col0 FROM tab0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT DISTINCT - COUNT( DISTINCT 74 ) FROM tab0 WHERE NOT ( 0 ) >= col2
----
-1

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT - COUNT ( DISTINCT 74 ) FROM tab0 WHERE NOT ( 0 ) >= col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL COUNT( * ) * + MIN( col1 ) col1 FROM tab1 WHERE NOT col1 * + col1 <= 90 + - 4
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT ALL COUNT ( * ) * + MIN ( col1 ) col1 FROM tab1 WHERE NOT col1 * + col1 <= 90 + - 4
----
28

query I rowsort
SELECT 36 - 64 FROM tab2
----
-28
-28
-28

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT NULL IN ( col1 - 94 )
----

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

query I rowsort
SELECT 10 - col1 * + col0 AS col1 FROM tab2
----
-2336
-4918
-5015

query I rowsort
SELECT DISTINCT - AVG ( + col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 78 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 - 81 * col0 FROM tab0
----
-1134
-7026
-7856

query III rowsort
SELECT ALL * FROM tab2 WHERE + 85 NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT 34 * + col2 AS col2 FROM tab0
----
1598
3366
340

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT DISTINCT COUNT( * ) + 90 col1 FROM tab0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-552
SELECT DISTINCT COUNT ( * ) + 90 col1 FROM tab0
----
93

query I rowsort
SELECT col2 * + 70 AS col1 FROM tab0
----
3290
6930
700

query I rowsort
SELECT DISTINCT + 85 + + 5 FROM tab2
----
90

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 > 84
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT 45 * + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 16
----
0

skipif mysql # not compatible
query I rowsort label-558
SELECT 45 * + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 16
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT ALL - 47 DIV - ( - MAX( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - 47 / - ( - MAX ( DISTINCT - col1 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-563
SELECT ALL + col2 + + col2 DIV col2 AS col0 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + col2 + + col2 / col2 AS col0 FROM tab2 AS cor0
----
24
41
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE 29 NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE 29 NOT BETWEEN col2 AND NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 + 5 col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
58

query I rowsort
SELECT col0 + 45 * + 17 FROM tab2
----
811
829
840

query I rowsort
SELECT - 67 + + 46 FROM tab0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL COUNT( DISTINCT - 32 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
1

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL COUNT ( DISTINCT - 32 ) FROM tab0 AS cor0 CROSS JOIN tab2
----
1

query I rowsort
SELECT col2 + 29 AS col0 FROM tab2
----
52
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + 55 col0 FROM tab1
----
88
88
88

query I rowsort
SELECT col1 * 47 + - 40 AS col1 FROM tab2
----
2357
3109
3579

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-573
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + CAST( 7 AS SIGNED ) / - CAST( NULL AS SIGNED ) <> col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-573
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + CAST ( 7 AS INTEGER ) / - CAST ( NULL AS INTEGER ) <> col1 * + col2
----

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

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

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

query I rowsort
SELECT ALL - col1 / col0 AS col1 FROM tab2 AS cor0 WHERE NULL = col1 * + 2 + col1
----

query I rowsort
SELECT DISTINCT - - 74 + col0 AS col0 FROM tab0 AS cor0
----
161
171
89

query I rowsort
SELECT 40 AS col0 FROM tab0 cor0 WHERE 74 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + 73 FROM tab1 AS cor0
----
-23
14
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col2 ) = - 5
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col0 col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ( - 14 ) * + col1 FROM tab0
----
-1134
-14
-294

query I rowsort
SELECT ALL - 68 - + 71 AS col0 FROM tab2
----
-139
-139
-139

query I rowsort
SELECT DISTINCT ( + 16 ) - 99 AS col1 FROM tab2
----
-83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT DISTINCT - + col0 * 64 + - 25 DIV - 54 AS col0 FROM tab1 AS cor0
----
-3264
-5440
-5824

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT - + col0 * 64 + - 25 / - 54 AS col0 FROM tab1 AS cor0
----
-3264
-5440
-5824

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 33 + - 30 < ( col1 )
----

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

query I rowsort
SELECT DISTINCT 87 - + 96 AS col0 FROM tab2 AS cor0 WHERE col2 / - 1 * - col2 = ( + 44 + - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL SUM( + 47 ) AS col1 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL SUM ( + 47 ) AS col1 FROM tab2 AS cor0
----
141

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

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

query I rowsort
SELECT ( - 33 ) - - col2 FROM tab0 WHERE NULL NOT IN ( - 99 + - 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT MIN( ALL - col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-601
SELECT MIN ( ALL - col2 ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 WHERE NULL BETWEEN + ( - 6 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-603
SELECT ALL 0 DIV - ( COUNT( * ) ) col0 FROM tab0 WHERE NOT - 4 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-603
SELECT ALL 0 / - ( COUNT ( * ) ) col0 FROM tab0 WHERE NOT - 4 IS NULL
----
0

query I rowsort
SELECT ( + col2 ) * - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - col1 + - col0 - col0 FROM tab1
----
-116
-175
-229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + col1 col1, col1 FROM tab0 AS cor0
----
100
1
128
81
31
21

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT + ( - - 63 ) * - - COUNT( * ) + 77 * - COUNT( * ) col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-607
SELECT + ( - - 63 ) * - - COUNT ( * ) + 77 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT + 25 * + col2 - + ( - 11 ) + + col2 AS col2 FROM tab1 AS cor0
----
1545
1779
2507

query I rowsort
SELECT ALL 26 * col2 - col1 AS col0 FROM tab1 AS cor0
----
1529
1721
2482

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-610
SELECT + col0 col2 FROM tab2 AS cor0 WHERE ( 50 ) BETWEEN CAST( NULL AS SIGNED ) * - + CAST( col2 AS DECIMAL ) * 38 AND ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-610
SELECT + col0 col2 FROM tab2 AS cor0 WHERE ( 50 ) BETWEEN CAST ( NULL AS INTEGER ) * - + CAST ( col2 AS REAL ) * 38 AND ( NULL )
----

query I rowsort
SELECT ALL + col1 * 53 + - col2 - - 64 + - col0 * - 83 + col0 * 95 FROM tab1 AS cor0
----
15400
18685
9788

query I rowsort
SELECT ALL + col0 * - 74 - + - col2 + + col0 * col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1142
-2136
-2323

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT - 50 * + COUNT( * ) FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-613
SELECT - 50 * + COUNT ( * ) FROM tab1
----
-150

query I rowsort
SELECT + col1 * + - col1 AS col0 FROM tab1
----
-196
-2209
-25

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT - ( - - CAST( col0 AS SIGNED ) ) - col0 col1 FROM tab2
----
-128
-150
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-616
SELECT - ( - - CAST ( col0 AS INTEGER ) ) - col0 col1 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT - 49 - + - col1 AS col2 FROM tab2
----
18
2
28

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + COUNT( * ) FROM tab0 cor0 WHERE col1 / + - col0 * col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE col1 / + - col0 * col1 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT DISTINCT - ( - - col0 ) + + col2 + + ( 39 ) DIV - col0 col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-622
SELECT DISTINCT - ( - - col0 ) + + col2 + + ( 39 ) / - col0 col2 FROM tab2 AS cor0
----
-17
-23
-24

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-626
SELECT - 47 AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT DISTINCT - 80 DIV - - col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT - 80 / - - col0 FROM tab2
----
-1

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 > - 89 * + 72 + + col1
----

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

query II rowsort
SELECT DISTINCT col0, col2 * col0 + + 33 AS col0 FROM tab1
----
51
4929
85
5048
91
6221

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT - 56 * + ( + 59 * ( AVG ( DISTINCT 31 ) / + MIN( DISTINCT ( + 98 ) + + col0 ) ) ) AS col0 FROM tab2 WHERE NOT - + ( col1 ) * - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-632
SELECT - 56 * + ( + 59 * ( AVG ( DISTINCT 31 ) / + MIN ( DISTINCT ( + 98 ) + + col0 ) ) ) AS col0 FROM tab2 WHERE NOT - + ( col1 ) * - col0 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - 82 * - 53 FROM tab2
----
4346
4346
4346

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

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( 90 ) AS col1 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT col0 * col1 * - ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-638
SELECT - CAST( - 2 AS SIGNED ) AS col2 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-638
SELECT - CAST ( - 2 AS INTEGER ) AS col2 FROM tab1
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL 86 * - + COUNT( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-258

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL 86 * - + COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NULL
----
-258

onlyif mysql # DIV for integer division: 
query II rowsort label-640
SELECT + 21 DIV - col0 AS col1, - col1 - - col2 AS col1 FROM tab2
----
0
-28
0
-37
0
-9

skipif mysql # not compatible
query II rowsort label-640
SELECT + 21 / - col0 AS col1, - col1 - - col2 AS col1 FROM tab2
----
0
-28
0
-37
0
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-641
SELECT DISTINCT MIN( DISTINCT 56 ) AS col0, + COUNT( * ) FROM tab0 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-641
SELECT DISTINCT MIN ( DISTINCT 56 ) AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
56
3

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

query II rowsort
SELECT - col0 + - 31, 17 AS col1 FROM tab0 AS cor0
----
-118
17
-128
17
-46
17

query II rowsort
SELECT - col0 * - - col0 + - 42, 36 + - col1 AS col0 FROM tab1
----
-2643
22
-7267
31
-8323
-11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT - SUM( - ( - 44 ) ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-646
SELECT - SUM ( - ( - 44 ) ) FROM tab1
----
-132

query II rowsort
SELECT + col1, 85 FROM tab1
----
14
85
47
85
5
85

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

query I rowsort
SELECT DISTINCT - + 12 + 3 AS col1 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT ALL - 33 + ( - + 25 ) AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
-58
NULL
-58
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL - 33 + ( - + 25 ) AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
-58
NULL
-58
NULL
-58
NULL

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

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

query I rowsort
SELECT DISTINCT + col0 + + 46 AS col2 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT - 5 - - - col0 AS col1 FROM tab0 AS cor0
----
-102
-20
-92

query I rowsort
SELECT + 34 * - col2 + col1 FROM tab0 AS cor0
----
-1517
-319
-3365

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col2 * - col1 + + col2 + + - 42 * + + ( - 57 ) >= ( NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 BETWEEN 92 AND - col2 * col1
----

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

skipif mysql # not compatible
query II rowsort label-657
SELECT ALL + 3 * COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
9
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-658
SELECT - COUNT( * ) DIV - - 75 + 72 AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-658
SELECT - COUNT ( * ) / - - 75 + 72 AS col2 FROM tab2 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 40 NOT IN ( + + col2, ( - 3 ) )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-661
SELECT DISTINCT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col2 * + + col1
----
0

query I rowsort
SELECT DISTINCT - - col2 * - + col2 * 83 FROM tab0 AS cor0
----
-183347
-813483
-8300

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

skipif mysql # not compatible
query I rowsort label-663
SELECT CAST ( - - 18 AS INTEGER ) FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT col0 * 62 + 31 AS col2 FROM tab0 AS cor0 WHERE ( - 46 > - ( - - col2 ) + - + col1 ) OR NOT col1 IS NOT NULL
----
6045
961

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT ALL + ( + CAST( - - CAST( + 92 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + ( + CAST ( - - CAST ( + 92 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( - + col0 + - 24 + col0 ) <> - col2 + ( + col2 ) + + + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-670
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( - + col0 + - 24 + col0 ) <> - col2 + ( + col2 ) + + + col2 * - col2
----
0

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

query I rowsort
SELECT - - 60 / - col1 AS col0 FROM tab1 WHERE NOT NULL <> col1 * + col1 - - - col0 + - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL - SUM( - - col1 ) col1 FROM tab2 WHERE + 89 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-673
SELECT ALL - SUM ( - - col1 ) col1 FROM tab2 WHERE + 89 IS NULL
----
NULL

query II rowsort
SELECT - col2 * + + col0 * + col2 AS col2, + 31 + - col1 AS col2 FROM tab2
----
-102400
-46
-24334
-20
-252300
-36

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

query I rowsort
SELECT DISTINCT - 66 * 85 AS col1 FROM tab1 AS cor0
----
-5610

query II rowsort
SELECT ALL - col2 AS col1, 37 FROM tab0
----
-10
37
-47
37
-99
37

query I rowsort
SELECT ALL + 44 + - ( + col1 ) FROM tab1 AS cor0
----
-3
30
39

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT ALL - MAX( - + col0 ) + + MAX( + + col1 ) col2 FROM tab1 AS cor0
----
98

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

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

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

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

query I rowsort
SELECT + - 6 AS col2 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL 18 + + col0 AS col2 FROM tab2 AS cor0
----
64
82
93

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT - - 2 * 0 DIV - - col1 col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-685
SELECT - - 2 * 0 / - - col1 col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-686
SELECT ALL col1 - col0 + - - col1 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-45
NULL
-95
NULL
147
NULL

skipif mysql # not compatible
query II rowsort label-686
SELECT ALL col1 - col0 + - - col1 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-45
NULL
-95
NULL
147
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT DISTINCT COUNT( + ( - 23 ) ) FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-687
SELECT DISTINCT COUNT ( + ( - 23 ) ) FROM tab2, tab1 AS cor0
----
9

query I rowsort
SELECT - col2 * - + col1 / col1 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 63 + + 42 AS col1 FROM tab0
----
105

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 - 20 - - + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + 26 + + + 4 FROM tab1 AS cor0
----
30
30
30

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-693
SELECT ( - MAX ( ALL col0 ) ) col1, COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1
----
-91
9

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT ALL + 89 AS col2, ( MAX( - - col1 ) ) FROM tab0
----
89
81

skipif mysql # not compatible
query II rowsort label-694
SELECT ALL + 89 AS col2, ( MAX ( - - col1 ) ) FROM tab0
----
89
81

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

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

query II rowsort
SELECT + - col2 AS col2, col0 * col0 FROM tab2 cor0
----
-23
2116
-40
4096
-58
5625

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

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

query I rowsort
SELECT ALL + 1 AS col1 FROM tab0 AS cor0 WHERE NULL <= ( - 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-700
SELECT + col0 DIV - 29 AS col0 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-700
SELECT + col0 / - 29 AS col0 FROM tab2
----
-1
-2
-2

query II rowsort
SELECT ALL col0 * + + col2, + col0 FROM tab0
----
705
15
870
87
9603
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-702
SELECT DISTINCT - MIN ( + col1 ) col2 FROM tab1
----
-5

query II rowsort
SELECT DISTINCT + 30 * + col1, col0 FROM tab0
----
2430
15
30
97
630
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-705
SELECT DISTINCT ( COUNT( * ) ) * 8 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT ( COUNT ( * ) ) * 8 FROM tab2
----
24

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

skipif mysql # not compatible
query I rowsort label-706
SELECT col2 FROM tab2 WHERE NOT + + col0 + - + col2 = ( - - ( - ( + - CAST ( NULL AS INTEGER ) ) ) )
----

query I rowsort
SELECT DISTINCT + + col2 * - + ( - col0 ) * col0 * col1 + + col2 FROM tab2 AS cor0
----
12615720
21858808
2482091

query I rowsort
SELECT + 82 * col1 AS col1 FROM tab2 AS cor0
----
4182
5494
6314

query I rowsort
SELECT ALL 78 * - col2 + - col0 * + + col0 FROM tab1 AS cor0
----
-10089
-11827
-13585

onlyif mysql # DIV for integer division: 
query I rowsort label-710
SELECT - col2 DIV + + 97 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-710
SELECT - col2 / + + 97 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 81 * + col2 * 12 AS col1 FROM tab2
----
22356
38880
56376

query I rowsort
SELECT + col1 + 64 AS col0 FROM tab0
----
145
65
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-714
SELECT - + ( - col2 ) + + 49 DIV + col0 FROM tab2 AS cor0
----
24
40
58

skipif mysql # not compatible
query I rowsort label-714
SELECT - + ( - col2 ) + + 49 / + col0 FROM tab2 AS cor0
----
24
40
58

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

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

query II rowsort
SELECT + + col0 AS col1, col1 - + ( - col2 ) + + 88 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) - + + 92 FROM tab1 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) - + + 92 FROM tab1 cor0
----
-92

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

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

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

query I rowsort
SELECT - col0 * - col1 * + 28 FROM tab2 AS cor0
----
137984
140700
65688

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

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

query I rowsort
SELECT ALL + 29 * ( 90 ) AS col0 FROM tab1
----
2610
2610
2610

query II rowsort
SELECT col2 AS col1, - col0 + col0 AS col2 FROM tab2
----
23
0
40
0
58
0

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT ALL 80 DIV - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL 80 / - col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT + - col0 AS col1 FROM tab2 WHERE ( 7 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT ALL - COUNT( * ) * - 42 / - MIN( DISTINCT col1 ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL - COUNT ( * ) * - 42 / - MIN ( DISTINCT col1 ) FROM tab1 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT 23 DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-727
SELECT 23 / - col0 AS col0 FROM tab2
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - col2 + - 79 AS col1 FROM tab2 AS cor0
----
-102
-119
-137

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

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

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 69 + col0 FROM tab1 AS cor0
----
120
154
160

query I rowsort
SELECT - 81 * + - 28 AS col0 FROM tab2
----
2268
2268
2268

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT ( + col1 ) DIV + col2 AS col1 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-735
SELECT ( + col1 ) / + col2 AS col1 FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT col2 * - + ( + - col1 ) + + col0 FROM tab1 AS cor0
----
1395
3287
380

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

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

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

query II rowsort
SELECT col2 AS col0, - 6 FROM tab2
----
23
-6
40
-6
58
-6

query I rowsort
SELECT ALL + col0 * 4 FROM tab2
----
184
256
300

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-742
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - + 82 + - col2 AS col1 FROM tab2 AS cor0
----
-105
-122
-140

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

query I rowsort
SELECT ALL + 31 * + 80 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT ALL - MAX( DISTINCT - ( col1 ) ) + - 38 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - MAX ( DISTINCT - ( col1 ) ) + - 38 FROM tab1
----
-33

onlyif mysql # DIV for integer division: 
query II rowsort label-747
SELECT + + col2 * - - col2 AS col1, col1 DIV + + 52 FROM tab1 AS cor0
----
3481
0
4624
0
9216
0

skipif mysql # not compatible
query II rowsort label-747
SELECT + + col2 * - - col2 AS col1, col1 / + + 52 FROM tab1 AS cor0
----
3481
0
4624
0
9216
0

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT DISTINCT col2 DIV + col0 + - + col0 + - + 79 col1 FROM tab0 AS cor0
----
-166
-175
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-748
SELECT DISTINCT col2 / + col0 + - + col0 + - + 79 col1 FROM tab0 AS cor0
----
-166
-175
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-749
SELECT - col1 - - col0 DIV + col2 + col2 AS col0 FROM tab0 AS cor0
----
-3
-34
98

skipif mysql # not compatible
query I rowsort label-749
SELECT - col1 - - col0 / + col2 + col2 AS col0 FROM tab0 AS cor0
----
-3
-34
98

query I rowsort
SELECT DISTINCT - - 51 + + - col1 FROM tab1 AS cor0
----
37
4
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT ALL + col2 DIV - + 78 * col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + col2 / - + 78 * col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 - + + col1 AS col0 FROM tab1
----
21
54
82

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-755
SELECT col1 + + CAST( - 80 AS SIGNED ) DIV + - CAST( col2 AS SIGNED ) FROM tab2
----
54
68
79

skipif mysql # not compatible
query I rowsort label-755
SELECT col1 + + CAST ( - 80 AS INTEGER ) / + - CAST ( col2 AS INTEGER ) FROM tab2
----
54
68
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-756
SELECT + 57 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT + 57 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query II rowsort
SELECT DISTINCT - 74 AS col1, ( 94 ) FROM tab0 AS cor0
----
-74
94

query II rowsort
SELECT DISTINCT + col1, 97 FROM tab2 cor0
----
51
97
67
97
77
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-762
SELECT - CAST( - 15 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-762
SELECT - CAST ( - 15 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT DISTINCT - - ( - SUM( ALL ( - col1 ) ) ) * COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT - - ( - SUM ( ALL ( - col1 ) ) ) * COUNT ( * ) FROM tab1 AS cor0
----
198

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

onlyif mysql # DIV for integer division: 
query I rowsort label-765
SELECT DISTINCT col2 DIV - col1 col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-765
SELECT DISTINCT col2 / - col1 col1 FROM tab0 AS cor0
----
-99
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-766
SELECT DISTINCT - MAX ( ALL + 98 ) col1 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-767
SELECT 75 DIV + + SUM( - + 73 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT 75 / + + SUM ( - + 73 ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - 29 / - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT - + COUNT( + 73 ) AS col2 FROM tab2 WHERE NOT col1 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT - + COUNT ( + 73 ) AS col2 FROM tab2 WHERE NOT col1 + - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT MIN( + - 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-770
SELECT MIN ( + - 98 ) FROM tab1
----
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT MIN( + col2 ) * ( - 62 ) FROM tab0
----
-620

skipif mysql # not compatible
query I rowsort label-772
SELECT MIN ( + col2 ) * ( - 62 ) FROM tab0
----
-620

query I rowsort
SELECT ALL + 35 + + + col0 AS col1 FROM tab2
----
110
81
99

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

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

query I rowsort
SELECT DISTINCT - - 68 FROM tab2 AS cor0 WHERE NOT 36 / col2 <> + col0 + col0
----

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

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

query I rowsort
SELECT + col2 + + 95 + - col0 * col2 FROM tab0 WHERE NULL IS NULL
----
-563
-765
-9409

query I rowsort
SELECT col1 + 56 + col2 FROM tab1 AS cor0
----
120
166
171

query I rowsort
SELECT ALL + col2 + - 35 FROM tab2 AS cor0
----
-12
23
5

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

query I rowsort
SELECT ALL + + 9 + - col2 AS col1 FROM tab1 AS cor0
----
-50
-59
-87

query I rowsort
SELECT ALL + 82 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL - ( - col2 ) + + + col0 + + 80 + + col1 FROM tab0 AS cor0
----
198
223
277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-785
SELECT * FROM tab1 AS cor0 WHERE 18 * - + col1 - - 36 * - col0 > + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-785
SELECT * FROM tab1 AS cor0 WHERE 18 * - + col1 - - 36 * - col0 > + ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT DISTINCT - COUNT( DISTINCT ( - 58 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT - COUNT ( DISTINCT ( - 58 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-787
SELECT + col1 - col1 * - 34 + col1, - CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
1836
46
2412
75
2772
64

skipif mysql # not compatible
query II rowsort label-787
SELECT + col1 - col1 * - 34 + col1, - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
1836
46
2412
75
2772
64

query I rowsort
SELECT + 1 * + col1 - + 72 AS col2 FROM tab1
----
-25
-58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT - col1 DIV + col2 * 68 DIV col2 - - 37 FROM tab1
----
37
37
37

skipif mysql # not compatible
query I rowsort label-789
SELECT - col1 / + col2 * 68 / col2 - - 37 FROM tab1
----
37
37
37

query I rowsort
SELECT - 1 - - + 70 FROM tab2
----
69
69
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL + + 20 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-792
SELECT ALL + + 20 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT ( - + col0 ) * + ( col1 ) * + CAST( col1 AS SIGNED ) / + + 35 AS col2 FROM tab1 AS cor0 WHERE NOT col2 >= ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-794
SELECT ( - + col0 ) * + ( col1 ) * + CAST ( col1 AS INTEGER ) / + + 35 AS col2 FROM tab1 AS cor0 WHERE NOT col2 >= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT 63 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-795
SELECT 63 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-189

query I rowsort
SELECT ALL + 36 * 85 AS col1 FROM tab2 AS cor0
----
3060
3060
3060

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT 98 DIV + 66 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-797
SELECT 98 / + 66 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-798
SELECT 79 DIV MIN( ALL 37 ), COUNT( * ) DIV - + ( + - COUNT( DISTINCT + 40 ) ) AS col0 FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-798
SELECT 79 / MIN ( ALL 37 ), COUNT ( * ) / - + ( + - COUNT ( DISTINCT + 40 ) ) AS col0 FROM tab0 AS cor0
----
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-799
SELECT DISTINCT ( + col2 ) DIV col2 AS col2 FROM tab1 AS cor0
----
1

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

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

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

query I rowsort
SELECT - 6 * - + 10 FROM tab1
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL + 18 * COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + 18 * COUNT ( * ) FROM tab1
----
54

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

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE 59 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE 83 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-807
SELECT - SUM( DISTINCT + + col2 ) + + ( - COUNT( + + ( CAST( 39 AS SIGNED ) ) ) ) + + 85 AS col1 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-807
SELECT - SUM ( DISTINCT + + col2 ) + + ( - COUNT ( + + ( CAST ( 39 AS INTEGER ) ) ) ) + + 85 AS col1 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT ALL + 45 * 65 + + 82 + + col1 AS col2 FROM tab1 AS cor0
----
3012
3021
3054

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

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

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

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

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + col2 + - 16 / col0 * col0 * - - col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - col2 - 15 AS col2 FROM tab2 AS cor0
----
-38
-55
-73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 / col2 + + 44 * col2 IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-814
SELECT DISTINCT + col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) * - ( - 83 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT + col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - ( - 83 ) = NULL
----

query I rowsort
SELECT DISTINCT - ( + col2 ) + - 85 FROM tab2
----
-108
-125
-143

query I rowsort
SELECT DISTINCT - col2 - + 67 FROM tab1
----
-126
-135
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT + COUNT( * ) + + 10 * + + 84 col2, - COUNT( * ) + + + COUNT( * ) FROM tab1
----
843
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-817
SELECT + COUNT ( * ) + + 10 * + + 84 col2, - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
843
0

query I rowsort
SELECT DISTINCT 85 - - + 87 FROM tab2
----
172

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-820
SELECT + + COUNT( DISTINCT + col0 ) DIV 71 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-820
SELECT + + COUNT ( DISTINCT + col0 ) / 71 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL 63 * - col1 AS col2 FROM tab1 AS cor0
----
-2961
-315
-882

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT ALL + - COUNT( * ) + + AVG ( ALL + 57 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + - COUNT ( * ) + + AVG ( ALL + 57 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col2 < NULL
----
NULL

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

query I rowsort
SELECT ALL + + col0 * + col2 AS col0 FROM tab1 WHERE NOT 49 + + col0 - 2 + - col2 * col2 < - col0 * + col0
----
5015
6188

query I rowsort
SELECT DISTINCT 3 * col2 * col1 AS col1 FROM tab0
----
11421
297
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT - col0 * 58 * + CAST( - col0 AS SIGNED ) FROM tab0
----
13050
439002
545722

skipif mysql # not compatible
query I rowsort label-828
SELECT - col0 * 58 * + CAST ( - col0 AS INTEGER ) FROM tab0
----
13050
439002
545722

query II rowsort
SELECT ALL - ( + col2 ), - col0 + - 45 AS col0 FROM tab1 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT - col2 * + - 77 FROM tab1
----
4543
5236
7392

query III rowsort
SELECT ALL * FROM tab1 WHERE 66 + col0 > col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + + col1 - + - 15 FROM tab0
----
-51
-81
81

query I rowsort
SELECT col1 + + - 25 FROM tab2
----
26
42
52

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 76 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-835
SELECT ALL + + MIN( ALL - col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT ALL + + MIN ( ALL - col1 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT COUNT( * ) + + 54 * + - 38 + + 8 FROM tab2
----
-2041

skipif mysql # not compatible
query I rowsort label-836
SELECT COUNT ( * ) + + 54 * + - 38 + + 8 FROM tab2
----
-2041

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 89 + + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 34 + - 72 + - ( - + col1 ) AS col1, col2 - - ( - col2 ) FROM tab1 AS cor0
----
-101
0
-59
0
-92
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col2 * - col0 * - col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 14 + + 38 FROM tab0 AS cor0
----
52

query II rowsort
SELECT - col0 AS col0, + col1 + + col1 FROM tab0 AS cor0
----
-15
162
-87
42
-97
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-843
SELECT DISTINCT - CAST( 34 AS SIGNED ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT - CAST ( 34 AS INTEGER ) FROM tab1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT col1 * + col1 AS col2 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-844
SELECT col1 * + col1 AS col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-845
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( - + col0 AS DECIMAL ) * + + col0 + - col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-845
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( - + col0 AS REAL ) * + + col0 + - col2 >= NULL
----

query I rowsort
SELECT + col0 * col2 * + col1 + ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
197184
291525
54004

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-848
SELECT DISTINCT + CAST( - AVG ( ALL - + 94 ) AS SIGNED ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT + CAST ( - AVG ( ALL - + 94 ) AS INTEGER ) FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT + col2 DIV 57 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-849
SELECT + col2 / 57 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT ALL - + 46 / - col2 + col0 * 50 + - 24 AS col1 FROM tab1 WHERE NOT - - col0 / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-852
SELECT + COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT + ( - - col1 ) >= - - col1 )
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-855
SELECT + col0, ( col1 ) DIV + - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-855
SELECT + col0, ( col1 ) / + - col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 + 30 - col1 * - 30 col2 FROM tab2 AS cor0
----
1537
2023
2316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT - col0 / + col2 + + + CAST( NULL AS SIGNED ) + - + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT - col0 / + col2 + + + CAST ( NULL AS INTEGER ) + - + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-858
SELECT - SUM ( DISTINCT + col0 ) col0 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL 52 * - + col2 AS col0 FROM tab1
----
-3068
-3536
-4992

query I rowsort
SELECT + col0 + 23 FROM tab0
----
110
120
38

onlyif mysql # DIV for integer division: 
query I rowsort label-861
SELECT ALL col2 DIV + + 68 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL col2 / + + 68 AS col1 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT ALL + col1 * - col2 DIV - + col2 col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-862
SELECT ALL + col1 * - col2 / - + col2 col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT DISTINCT 15 DIV - 73 + 66 AS col1 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT 15 / - 73 + 66 AS col1 FROM tab2
----
66

query I rowsort
SELECT 44 + - col0 * col0 FROM tab2
----
-2072
-4052
-5581

query I rowsort
SELECT ALL col2 * - 68 + - - 73 AS col2 FROM tab1 AS cor0
----
-3939
-4551
-6455

query I rowsort
SELECT - + 36 + - col1 FROM tab0 AS cor0
----
-117
-37
-57

query I rowsort
SELECT ALL - col2 + + 69 FROM tab0 AS cor0
----
-30
22
59

query I rowsort
SELECT DISTINCT - 25 * 47 - ( + - 94 ) + - 1 FROM tab2 AS cor0
----
-1082

query I rowsort
SELECT DISTINCT col0 * - col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

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

query I rowsort
SELECT ALL - 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # aggregate syntax: 
query II rowsort label-872
SELECT DISTINCT + 75 col1, + COUNT( * ) FROM tab2
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-872
SELECT DISTINCT + 75 col1, + COUNT ( * ) FROM tab2
----
75
3

query I rowsort
SELECT DISTINCT + 72 + + 85 AS col1 FROM tab0 WHERE NULL IS NULL
----
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-874
SELECT DISTINCT - 58 DIV COUNT( * ) AS col0 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - 58 / COUNT ( * ) AS col0 FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-875
SELECT col0 - - - CAST( NULL AS SIGNED ) * 60 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-875
SELECT col0 - - - CAST ( NULL AS INTEGER ) * 60 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT - COUNT( DISTINCT + + 46 ) * + - 42 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-877
SELECT - COUNT ( DISTINCT + + 46 ) * + - 42 FROM tab1 AS cor0
----
42

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

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, - col2 * + - 33 FROM tab1
----
51
3168
85
1947
91
2244

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 55 AS col0 FROM tab2 WHERE NOT + - col0 - - col1 + 4 NOT BETWEEN NULL AND - 64 * + - 22
----

query I rowsort
SELECT ALL - col0 * ( + col2 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-887
SELECT * FROM tab2 WHERE NOT + 73 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-887
SELECT * FROM tab2 WHERE NOT + 73 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT - SUM( - + 23 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-888
SELECT - SUM ( - + 23 ) AS col1 FROM tab1
----
69

onlyif mysql # DIV for integer division: 
query II rowsort label-889
SELECT col2 * - col1 AS col2, + ( - + col0 ) + - col1 DIV - - col1 AS col2 FROM tab0
----
-210
-88
-3807
-16
-99
-98

skipif mysql # not compatible
query II rowsort label-889
SELECT col2 * - col1 AS col2, + ( - + col0 ) + - col1 / - - col1 AS col2 FROM tab0
----
-210
-88
-3807
-16
-99
-98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 87 IS NULL
----

query I rowsort
SELECT + col1 * - col0 + 39 * + - 43 FROM tab2 AS cor0
----
-4023
-6605
-6702

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT - + ( + 29 ) + + + SUM( - col2 ) * - COUNT( * ) * - + ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
1978

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-892
SELECT DISTINCT - + ( + 29 ) + + + SUM ( - col2 ) * - COUNT ( * ) * - + ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
1978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT + + CAST( - - col1 AS SIGNED ) * + 61 + col0 + - col2 * col2 FROM tab0 AS cor0
----
-9643
1268
2747

skipif mysql # not compatible
query I rowsort label-893
SELECT + + CAST ( - - col1 AS INTEGER ) * + 61 + col0 + - col2 * col2 FROM tab0 AS cor0
----
-9643
1268
2747

query II rowsort
SELECT ALL + col1 + + - 12 AS col0, + 96 FROM tab2 AS cor0
----
39
96
55
96
65
96

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col1 < + - 86
----

query I rowsort
SELECT col0 * - 79 AS col1 FROM tab2
----
-3634
-5056
-5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * ( - col1 ) AS col2, + col1 col1 FROM tab0
----
-1
1
-441
21
-6561
81

onlyif mysql # DIV for integer division: 
query I rowsort label-899
SELECT ( col0 ) * - - col1 DIV + + col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-899
SELECT ( col0 ) * - - col1 / + + col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-900
SELECT + 31 DIV - + CAST( + + COUNT( * ) AS SIGNED ) AS col2, MIN( 21 ) FROM tab1
----
-10
21

skipif mysql # not compatible
query II rowsort label-900
SELECT + 31 / - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2, MIN ( 21 ) FROM tab1
----
-10
21

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT - col2 DIV - 13 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT - col2 / - 13 FROM tab2
----
1
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT SUM( + col2 ) * 81 AS col0 FROM tab2
----
9801

skipif mysql # not compatible
query I rowsort label-902
SELECT SUM ( + col2 ) * 81 AS col0 FROM tab2
----
9801

query I rowsort
SELECT - 97 * col0 * + - col0 FROM tab2
----
205252
397312
545625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-904
SELECT ALL CAST( + AVG ( ALL + col0 ) AS SIGNED ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL CAST ( + AVG ( ALL + col0 ) AS INTEGER ) AS col2 FROM tab0
----
66

query I rowsort
SELECT DISTINCT 68 + + col0 FROM tab2
----
114
132
143

query I rowsort
SELECT ALL - + 53 + + - col1 AS col1 FROM tab1 AS cor0
----
-100
-58
-67

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

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

query I rowsort
SELECT ALL col2 - col0 * + + 59 FROM tab0 AS cor0
----
-5123
-5624
-838

query I rowsort
SELECT + col2 + col0 * - + col0 FROM tab1 AS cor0
----
-2505
-7166
-8213

query I rowsort
SELECT + col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
-9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT DISTINCT + col0 * CAST( + + ( - + 61 ) AS SIGNED ) * - ( 52 ) - - col1 + - col0 col1 FROM tab1 AS cor0
----
161735
269540
288608

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-913
SELECT DISTINCT + col0 * CAST ( + + ( - + 61 ) AS INTEGER ) * - ( 52 ) - - col1 + - col0 col1 FROM tab1 AS cor0
----
161735
269540
288608

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

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

query I rowsort
SELECT ALL + - 26 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
1303
2575
281

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + + col0 BETWEEN + col2 / + col1 + col0 + - col0 AND - 95 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, + col1 + - 22 AS col0 FROM tab2
----
51
29
67
45
77
55

query II rowsort
SELECT 5 AS col0, + col0 AS col2 FROM tab0
----
5
15
5
87
5
97

query I rowsort
SELECT + - ( - - 70 ) FROM tab2 cor0
----
-70
-70
-70

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

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

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

query I rowsort
SELECT DISTINCT - + col2 * 9 FROM tab2 AS cor0
----
-207
-360
-522

query II rowsort
SELECT ALL 62 + + col2, + col1 FROM tab0 AS cor0
----
109
81
161
1
72
21

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

skipif mysql # not compatible
query II rowsort label-924
SELECT COUNT ( * ) AS col0, SUM ( ALL + + 56 ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
171

query II rowsort
SELECT - 52 - col0 * + col2 * + col2, 98 * - + 96 AS col0 FROM tab2 cor0
----
-102452
-9408
-24386
-9408
-252352
-9408

query I rowsort
SELECT ALL + + 86 + - + col2 FROM tab0 AS cor0
----
-13
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - + COUNT( DISTINCT + - col0 ) AS col0 FROM tab2 WHERE + 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-927
SELECT - + COUNT ( DISTINCT + - col0 ) AS col0 FROM tab2 WHERE + 59 IS NULL
----
0

query II rowsort
SELECT - + col1 AS col2, + col1 - + 27 FROM tab1 WHERE ( NOT NULL < - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + - col2 + - ( - + col1 ) * col2 + col0 col2 FROM tab0 AS cor0
----
-573
-9407
3117

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 16 col2 FROM tab1 AS cor0
----
224
752
80

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

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

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) * + - 83 FROM tab0 cor0
----
-249

query I rowsort
SELECT ALL - ( + + col1 ) AS col2 FROM tab2 AS cor0 WHERE col1 <= NULL
----

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

query I rowsort
SELECT ALL col2 * - col0 * - col1 FROM tab2 AS cor0
----
197120
291450
53958

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT + 70 DIV + + ( ( - 96 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT + 70 / + + ( ( - 96 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 30 ) * + + 64 + - ( + col0 ) + + - ( 4 ) FROM tab1
----
1825
1831
1865

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

query II rowsort
SELECT ALL col2 + + + col2, + col2 FROM tab0
----
198
99
20
10
94
47

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT ALL col2 DIV + 74 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL col2 / + 74 AS col2 FROM tab0
----
0
0
1

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

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

query II rowsort
SELECT col1, + col1 + - col2 + - 91 FROM tab2 AS cor0 WHERE NOT + 4 BETWEEN NULL AND - - 81
----

query I rowsort
SELECT ALL - col1 + + - col0 - 5 + - + col0 FROM tab1 AS cor0
----
-121
-180
-234

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

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

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

query I rowsort
SELECT + + col2 * - col2 + - col1 FROM tab2 AS cor0
----
-1677
-3431
-580

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

skipif mysql # not compatible
query I rowsort label-950
SELECT - ( MAX ( ALL 29 ) ) FROM tab2 AS cor0
----
-29

query I rowsort
SELECT ALL col1 - + + 69 FROM tab1 AS cor0
----
-22
-55
-64

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

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

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL 57 - + col1 FROM tab2
----
-10
-20
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN + 53 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT COUNT( * ) * + 28 + ( + 10 ) col0 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-957
SELECT COUNT ( * ) * + 28 + ( + 10 ) col0 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-958
SELECT - - COUNT( ALL - + col0 ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-958
SELECT - - COUNT ( ALL - + col0 ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT - 58 FROM tab2 cor0 WHERE NOT + 69 >= - 33
----

query I rowsort
SELECT + 30 * - col1 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT + 56 DIV + 13 AS col0 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-961
SELECT + 56 / + 13 AS col0 FROM tab0
----
4
4
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 WHERE - col0 + 69 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 WHERE - col0 + 69 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 22 < + 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT DISTINCT 47 + - col2 FROM tab1
----
-12
-21
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-969
SELECT col0 + + ( - col2 ), ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-969
SELECT col0 + + ( - col2 ), ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
17
NULL
23
NULL
24
NULL

query I rowsort
SELECT + 62 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
4339
487
776

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT - 66 + + - COUNT( + col2 ) + - MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-971
SELECT - 66 + + - COUNT ( + col2 ) + - MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
-150

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

query I rowsort
SELECT 98 * - col0 FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT 45 * - 60 AS col1 FROM tab2
----
-2700

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

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

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

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

query I rowsort
SELECT ALL + ( + col0 ) * col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT DISTINCT SUM( - 98 ) + 44 AS col2 FROM tab1
----
-250

skipif mysql # not compatible
query I rowsort label-980
SELECT DISTINCT SUM ( - 98 ) + 44 AS col2 FROM tab1
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT SUM( ALL col1 ) * SUM( 84 ) FROM tab1 WHERE NULL <= ( 32 - - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT SUM ( ALL col1 ) * SUM ( 84 ) FROM tab1 WHERE NULL <= ( 32 - - 67 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT - ( + 26 ) DIV 47 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-983
SELECT - ( + 26 ) / 47 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-984
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) / + col0 > - 87
----

skipif mysql # not compatible
query III rowsort label-984
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) / + col0 > - 87
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + ( - 75 ) ) ) = - 1 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 3 * - 1 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL 73 + + COUNT( * ) FROM tab1 WHERE + col1 NOT IN ( CAST( NULL AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL 73 + + COUNT ( * ) FROM tab1 WHERE + col1 NOT IN ( CAST ( NULL AS INTEGER ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT DISTINCT + col1 * - col0 + - ( col0 ) DIV + col0 FROM tab1
----
-426
-4278
-715

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT + col1 * - col0 + - ( col0 ) / + col0 FROM tab1
----
-426
-4278
-715

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-992
SELECT COUNT( * ) DIV 25 FROM tab2 WHERE NOT col1 IN ( + col0 + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-992
SELECT COUNT ( * ) / 25 FROM tab2 WHERE NOT col1 IN ( + col0 + 64 )
----
0

query I rowsort
SELECT DISTINCT + ( - 99 ) + col1 * col2 FROM tab0
----
0
111
3708

query I rowsort
SELECT 63 * 71 FROM tab0
----
4473
4473
4473

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

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

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab2 AS cor0 WHERE NOT 43 IS NULL
----
2346
4928
5025

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT MAX( ALL 23 ) col2 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1000
SELECT MAX ( ALL 23 ) col2 FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1001
SELECT - ( col2 ) * ( col2 DIV + col2 ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1001
SELECT - ( col2 ) * ( col2 / + col2 ) AS col2 FROM tab0
----
-10
-47
-99

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

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

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - - MIN ( ALL 3 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT - COUNT( * ) * 97 AS col2 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1004
SELECT - COUNT ( * ) * 97 AS col2 FROM tab2 AS cor0
----
-291

query I rowsort
SELECT - + col1 * - ( col2 ) + + col1 FROM tab1 cor0
----
1358
300
3243

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * ( col0 ) NOT IN ( + 0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col1 ) + 26 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - - 74 FROM tab2
----
3774
4958
5698

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN ( col2 ) AND col1
----
97
1
99

query I rowsort
SELECT ( + - 9 ) AS col0 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT ALL - col1 * - + 30 FROM tab0
----
2430
30
630

query I rowsort
SELECT DISTINCT - + 30 * + col0 AS col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

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

query I rowsort
SELECT DISTINCT 50 + + + col0 FROM tab1 AS cor0
----
101
135
141

query I rowsort
SELECT DISTINCT + col1 + + col2 + 93 FROM tab1 cor0
----
157
203
208

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

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

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

query I rowsort
SELECT ( + col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - col2 * + 17 - + col1 AS col1 FROM tab1 WHERE - col0 NOT BETWEEN ( - col0 * col0 ) AND + col1 * col2
----

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

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

query I rowsort
SELECT - col1 * + 24 + - 5 + col0 + 81 FROM tab1 cor0
----
-209
-961
41

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

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

query I rowsort
SELECT ALL + + 2 - 2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 93 - - 44 * col2 FROM tab1
----
2503
2899
4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1029
SELECT ALL + col2 * col2 - - CAST( 82 AS SIGNED ) - + col1 * + 68 * - col2 FROM tab2
----
211122
267694
80375

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL + col2 * col2 - - CAST ( 82 AS INTEGER ) - + col1 * + 68 * - col2 FROM tab2
----
211122
267694
80375

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT MAX( ALL + 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT MAX ( ALL + 46 ) FROM tab1
----
46

query I rowsort
SELECT DISTINCT col1 - col1 / 38 FROM tab1 WHERE NULL BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT col2 * - - col1 * + - col1 FROM tab0
----
-308367
-4410
-99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1036
SELECT + CAST( NULL AS SIGNED ) DIV col2 col2, col2 + - - col2 DIV 41 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1036
SELECT + CAST ( NULL AS INTEGER ) / col2 col2, col2 + - - col2 / 41 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
59

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1038
SELECT ALL - 47 DIV - col2 col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1038
SELECT ALL - 47 / - col2 col1 FROM tab2
----
0
1
2

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT DISTINCT - col0 + 29 + - col2 + + + col1 * col1 DIV + col0 FROM tab2 AS cor0
----
-45
16
17

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT - col0 + 29 + - col2 + + + col1 * col1 / + col0 FROM tab2 AS cor0
----
-45
16
17

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 * + col0 + - col2 < NULL
----

query I rowsort
SELECT 56 * - + col2 AS col2 FROM tab1 AS cor0
----
-3304
-3808
-5376

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT DISTINCT + SUM( DISTINCT - 49 ) * + MIN( - col0 ) AS col1 FROM tab0
----
4753

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT + SUM ( DISTINCT - 49 ) * + MIN ( - col0 ) AS col1 FROM tab0
----
4753

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

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

query I rowsort
SELECT ALL - 72 * + col0 FROM tab1
----
-3672
-6120
-6552

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) >= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * 71 / ( - + col2 ) >= ( + 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 93 - - col2 * - col1 AS col0 FROM tab1
----
-1251
-202
-3103

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT ALL - 99 - + MIN( ALL col0 ) + COUNT( * ) FROM tab1 cor0 WHERE NOT + 60 / + 52 * + col1 IS NULL
----
-147

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - 99 - + MIN ( ALL col0 ) + COUNT ( * ) FROM tab1 cor0 WHERE NOT + 60 / + 52 * + col1 IS NULL
----
-147

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

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

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

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

query I rowsort
SELECT ALL - col1 * + col2 + + + ( - 17 ) FROM tab0 AS cor0
----
-116
-227
-3824

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + + + col2 + - - 94 + - + 97 - 98 ) BETWEEN + col2 AND + col1 + - col1
----

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

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

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( - 86 IS NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT + 20 * + COUNT( * ) FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + 20 * + COUNT ( * ) FROM tab1 AS cor0
----
60

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) NOT BETWEEN 56 + col2 AND ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT DISTINCT - 83 / 43 * CAST( NULL AS SIGNED ) * - MAX( col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT - 83 / 43 * CAST ( NULL AS INTEGER ) * - MAX ( col0 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT ALL - 38 DIV col0 AS col0 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - 38 / col0 AS col0 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL - 82 FROM tab2 WHERE NULL IS NULL
----
-82
-82
-82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT DISTINCT + + 27 - + COUNT( * ) FROM tab0 WHERE NOT + 99 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT + + 27 - + COUNT ( * ) FROM tab0 WHERE NOT + 99 IS NULL
----
24

query I rowsort
SELECT DISTINCT + col0 * 90 FROM tab2
----
4140
5760
6750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 8 col0 FROM tab0
----
168
648
8

query I rowsort
SELECT ALL - 82 * + col0 FROM tab2
----
-3772
-5248
-6150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1079
SELECT - - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1079
SELECT - - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT 23 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT 23 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT - COUNT( DISTINCT + + 73 ) AS col1, 34 * + - 9 FROM tab0
----
-1
-306

skipif mysql # not compatible
query II rowsort label-1083
SELECT - COUNT ( DISTINCT + + 73 ) AS col1, 34 * + - 9 FROM tab0
----
-1
-306

query II rowsort
SELECT col1 AS col0, - col2 * - 23 AS col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
1
2277
21
230
81
1081

query I rowsort
SELECT ALL + 24 + - col1 * + col2 * + - col1 - + col0 AS col0 FROM tab0 AS cor0
----
26
308376
4347

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1086
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( col0 AS SIGNED ) + - - col2 ) >= col2
----

skipif mysql # not compatible
query III rowsort label-1086
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( col0 AS INTEGER ) + - - col2 ) >= col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) = + CAST( - ( + - col0 ) AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1089
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) = + CAST ( - ( + - col0 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1090
SELECT * FROM tab0 AS cor0 WHERE ( 87 * col2 * CAST( - col2 AS SIGNED ) / col2 / - + col0 + - col1 + - + col2 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1090
SELECT * FROM tab0 AS cor0 WHERE ( 87 * col2 * CAST ( - col2 AS INTEGER ) / col2 / - + col0 + - col1 + - + col2 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1091
SELECT 66 + - - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
113
71
80

skipif mysql # not compatible
query I rowsort label-1091
SELECT 66 + - - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - COUNT( * ) * - 94 AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-1092
SELECT - COUNT ( * ) * - 94 AS col1 FROM tab1
----
282

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + col2 * - 44
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - MAX( DISTINCT - 96 ) - 35 AS col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1096
SELECT - MAX ( DISTINCT - 96 ) - 35 AS col1 FROM tab2 AS cor0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT MAX( ALL - col0 ) - - - CAST( - COUNT( - ( col2 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-1097
SELECT MAX ( ALL - col0 ) - - - CAST ( - COUNT ( - ( col2 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1098
SELECT 68 + - - col1 * + 35 AS col2, col1 - - CAST( - ( 11 ) AS SIGNED ) FROM tab2 AS cor0
----
1853
40
2413
56
2763
66

skipif mysql # not compatible
query II rowsort label-1098
SELECT 68 + - - col1 * + 35 AS col2, col1 - - CAST ( - ( 11 ) AS INTEGER ) FROM tab2 AS cor0
----
1853
40
2413
56
2763
66

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

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

query I rowsort
SELECT DISTINCT + 61 * 33 AS col2 FROM tab1 AS cor0
----
2013

query I rowsort
SELECT ALL - + 65 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL 18 * col1 * + 18 FROM tab0 AS cor0
----
26244
324
6804

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT + COUNT( * ) * 33 FROM tab0 AS cor0 WHERE NOT + col0 + + + col0 / - col2 NOT IN ( 7 )
----
0

skipif mysql # not compatible
query I rowsort label-1104
SELECT + COUNT ( * ) * 33 FROM tab0 AS cor0 WHERE NOT + col0 + + + col0 / - col2 NOT IN ( 7 )
----
0

query I rowsort
SELECT DISTINCT - - 56 * - ( - - 65 ) FROM tab0 AS cor0
----
-3640

onlyif mysql # DIV for integer division: 
query I rowsort label-1106
SELECT ALL 25 DIV + - 7 + - col2 FROM tab2 AS cor0
----
-26
-43
-61

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL 25 / + - 7 + - col2 FROM tab2 AS cor0
----
-26
-43
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT col2 DIV - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1107
SELECT col2 / - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
1
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1110
SELECT - - col2 DIV - - col2 + col1 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-1110
SELECT - - col2 / - - col2 + col1 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT 98 * - 21 * 12 * + COUNT( * ) * + 50 FROM tab1
----
-3704400

skipif mysql # not compatible
query I rowsort label-1111
SELECT 98 * - 21 * 12 * + COUNT ( * ) * + 50 FROM tab1
----
-3704400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT 10 * COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1113
SELECT 10 * COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1114
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) * - + 12 AS col2 FROM tab2, tab2 AS cor0
----
18 values hashing to 3c495c23af03b1a76a498e8361417159

skipif mysql # not compatible
query II rowsort label-1114
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) * - + 12 AS col2 FROM tab2, tab2 AS cor0
----
18 values hashing to 3c495c23af03b1a76a498e8361417159

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + + 60 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT COUNT( * ) * + 26 + - 69 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1119
SELECT COUNT ( * ) * + 26 + - 69 FROM tab2 AS cor0
----
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT - col2 DIV 50 * - + 88 * + col1 AS col2 FROM tab2
----
0
0
5896

skipif mysql # not compatible
query I rowsort label-1121
SELECT - col2 / 50 * - + 88 * + col1 AS col2 FROM tab2
----
0
0
5896

query II rowsort
SELECT DISTINCT - col0 AS col0, - 52 AS col0 FROM tab2
----
-46
-52
-64
-52
-75
-52

query I rowsort
SELECT ALL + col2 + 41 * col0 AS col0 FROM tab1 AS cor0
----
2187
3544
3799

query II rowsort
SELECT - col1 AS col1, 44 FROM tab0 AS cor0
----
-1
44
-21
44
-81
44

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 - - + col1 + - 82 * - - col1 IS NULL )
----

query I rowsort
SELECT ALL - 38 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-39
-59

query I rowsort
SELECT DISTINCT + 98 + col2 FROM tab1 AS cor0
----
157
166
194

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT MIN( ALL - 17 ) AS col2 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1128
SELECT MIN ( ALL - 17 ) AS col2 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT ALL - - MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL - - MAX ( - col0 ) FROM tab1 AS cor0
----
-51

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

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0 WHERE NOT + - col2 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT + COUNT( * ) + + 19 AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-1132
SELECT + COUNT ( * ) + + 19 AS col1 FROM tab2
----
22

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

query I rowsort
SELECT - + col2 * col2 + - + 56 * + 56 FROM tab2 WHERE + col1 IS NOT NULL
----
-3665
-4736
-6500

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + ( COUNT( * ) ) * - ( 72 ) AS col0 FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-1135
SELECT + ( COUNT ( * ) ) * - ( 72 ) AS col0 FROM tab0
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 * + - 23 col0 FROM tab0 AS cor0
----
-322
-322
-322

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT DISTINCT - 55 * + + SUM( + col0 ) FROM tab1 AS cor0
----
-12485

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - 55 * + + SUM ( + col0 ) FROM tab1 AS cor0
----
-12485

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1141
SELECT + col2 AS col1, + col0 * - col2 * - + CAST( - 35 AS SIGNED ) FROM tab0
----
10
-30450
47
-24675
99
-336105

skipif mysql # not compatible
query II rowsort label-1141
SELECT + col2 AS col1, + col0 * - col2 * - + CAST ( - 35 AS INTEGER ) FROM tab0
----
10
-30450
47
-24675
99
-336105

query I rowsort
SELECT DISTINCT - col2 * 21 + + 40 + col2 + + + col2 FROM tab2 WHERE + 87 = - - col2
----

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

query II rowsort
SELECT DISTINCT - + 2 + - 56, + col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
-58
15
-58
87
-58
97

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE 39 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * - + ( - col0 ) AS col2 FROM tab0
----
-705
-870
-9603

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

query II rowsort
SELECT col0 AS col0, - 30 * + - col1 + col0 FROM tab0
----
15
2445
87
717
97
127

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

query II rowsort
SELECT ALL - col2 * + col2 AS col0, col1 FROM tab2
----
-1600
77
-3364
67
-529
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1152
SELECT DISTINCT + col1 DIV - + ( - + 90 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + col1 / - + ( - + 90 ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1153
SELECT - - col2 DIV + + 61 + - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 22 IS NULL
----
59
69
97

skipif mysql # not compatible
query I rowsort label-1153
SELECT - - col2 / + + 61 + - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - 22 IS NULL
----
59
69
97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1156
SELECT MAX( - + ( + + ( 88 ) ) ) + - 9 AS col2, - SUM( ALL - + 99 ) AS col1 FROM tab2 AS cor0
----
-97
297

skipif mysql # not compatible
query II rowsort label-1156
SELECT MAX ( - + ( + + ( 88 ) ) ) + - 9 AS col2, - SUM ( ALL - + 99 ) AS col1 FROM tab2 AS cor0
----
-97
297

query I rowsort
SELECT ALL col1 + + 68 AS col2 FROM tab1 AS cor0
----
115
73
82

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

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

query I rowsort
SELECT ALL - 54 * col1 FROM tab1
----
-2538
-270
-756

query I rowsort
SELECT DISTINCT col2 * 0 * col0 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + COUNT( col1 ) * + SUM( - col0 ) * + 74 AS col1 FROM tab1
----
-50394

skipif mysql # not compatible
query I rowsort label-1162
SELECT + COUNT ( col1 ) * + SUM ( - col0 ) * + 74 AS col1 FROM tab1
----
-50394

query I rowsort
SELECT ALL 31 * - - 79 - + col0 - col0 FROM tab1
----
2267
2279
2347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1164
SELECT + CAST( - 28 AS SIGNED ) - + + COUNT( * ) AS col0 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-1164
SELECT + CAST ( - 28 AS INTEGER ) - + + COUNT ( * ) AS col0 FROM tab0
----
-31

query I rowsort
SELECT DISTINCT - 59 * + 67 FROM tab1
----
-3953

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL + - 88 * - + COUNT( * ) + - + 77 AS col2 FROM tab2 AS cor0
----
187

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + - 88 * - + COUNT ( * ) + - + 77 AS col2 FROM tab2 AS cor0
----
187

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

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

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

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

query II rowsort
SELECT 11 AS col0, 94 FROM tab0
----
11
94
11
94
11
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1171
SELECT ALL - CAST( - + MIN( - 34 ) AS SIGNED ) * 44 AS col0 FROM tab2
----
-1496

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - CAST ( - + MIN ( - 34 ) AS INTEGER ) * 44 AS col0 FROM tab2
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT DISTINCT - MAX( DISTINCT - ( ( + 70 ) ) ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-1172
SELECT DISTINCT - MAX ( DISTINCT - ( ( + 70 ) ) ) FROM tab1
----
70

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN + + 24 * + col1 - 1 AND + + 60
----

query I rowsort
SELECT DISTINCT ( col2 ) * + 4 + col0 + - 25 + col0 AS col1 FROM tab0
----
189
193
565

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

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

query I rowsort
SELECT - - 80 * col1 * col0 + + ( + 98 ) AS col1 FROM tab0 AS cor0
----
146258
7858
97298

query I rowsort
SELECT + 28 + 75 FROM tab2 cor0
----
103
103
103

query I rowsort
SELECT col1 * - 10 FROM tab1 AS cor0 WHERE NULL BETWEEN 64 / 21 - + ( - col0 ) AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

query III rowsort
SELECT * FROM tab2 WHERE ( col0 > col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 38 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= 78 / 95
----

query I rowsort
SELECT - col1 + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-11
-34
98

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

query I rowsort
SELECT ALL - ( - - col2 ) + - 72 AS col1 FROM tab0 AS cor0
----
-119
-171
-82

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 73 * - col1 NOT BETWEEN - - col0 + - 83 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - 83 FROM tab0 AS cor0
----
-170
-180
-98

query I rowsort
SELECT + 63 + + col0 AS col2 FROM tab0
----
150
160
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT ALL CAST( - 89 AS SIGNED ) - - 42 FROM tab0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL CAST ( - 89 AS INTEGER ) - - 42 FROM tab0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-1192
SELECT ALL - col2 DIV - col0 AS col2, col0 AS col1 FROM tab1
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-1192
SELECT ALL - col2 / - col0 AS col2, col0 AS col1 FROM tab1
----
0
85
0
91
1
51

onlyif mysql # DIV for integer division: 
query II rowsort label-1193
SELECT DISTINCT - 78 DIV + col0, ( + col1 ) AS col2 FROM tab1
----
-1
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-1193
SELECT DISTINCT - 78 / + col0, ( + col1 ) AS col2 FROM tab1
----
-1
14
0
47
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1194
SELECT DISTINCT 69 - - - CAST( NULL AS SIGNED ) * - col0 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1194
SELECT DISTINCT 69 - - - CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 - - col2 FROM tab1
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-1196
SELECT MIN( DISTINCT + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT MIN ( DISTINCT + col2 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 * col2 + + + 78 AS col2 FROM tab1
----
-1266
-217
-3118

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( 23 ) col0 FROM tab2
----
1058
1472
1725

query II rowsort
SELECT 1 * - col2, ( + col0 ) FROM tab0
----
-10
87
-47
15
-99
97

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 * 80 NOT IN ( + col2 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 col0 FROM tab0 WHERE 85 IS NULL
----

query I rowsort
SELECT - ( col0 ) * ( ( col0 ) ) AS col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query II rowsort label-1208
SELECT + MAX( + + 36 ), + COUNT( DISTINCT - - 0 ) + + 85 AS col1 FROM tab0
----
36
86

skipif mysql # not compatible
query II rowsort label-1208
SELECT + MAX ( + + 36 ), + COUNT ( DISTINCT - - 0 ) + + 85 AS col1 FROM tab0
----
36
86

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

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 - col2 - 41 * + col0 AS col2 FROM tab1
----
-2040
-3400
-3640

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

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

query I rowsort
SELECT + 41 + + col1 + col0 FROM tab1
----
106
131
179

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT col0 DIV 92 * col1 + - col2 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1214
SELECT col0 / 92 * col1 + - col2 AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - col2 + - col1 * - col0 FROM tab1
----
366
4209
618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 + + ( - 2 ) col0 FROM tab1 AS cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 88 * + col2 * 29 + - 31 col1 FROM tab0
----
-119990
-252776
-25638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1218
SELECT CAST( NULL AS SIGNED ) - + + MIN( ALL - + 82 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1218
SELECT CAST ( NULL AS INTEGER ) - + + MIN ( ALL - + 82 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT SUM( DISTINCT 78 ) col2 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT DISTINCT SUM ( DISTINCT 78 ) col2 FROM tab2
----
78

query I rowsort
SELECT 71 * col0 - + + col2 AS col0 FROM tab2
----
3243
4504
5267

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT SUM( ALL + - col2 ) - + 55 AS col1 FROM tab1
----
-278

skipif mysql # not compatible
query I rowsort label-1222
SELECT SUM ( ALL + - col2 ) - + 55 AS col1 FROM tab1
----
-278

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL - MAX( 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL - MAX ( 52 ) FROM tab1
----
-52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT DISTINCT + - 5 DIV - - 65 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + - 5 / - - 65 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT ALL + - CAST( 63 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + - CAST ( 63 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT ALL + + col2 DIV - + col0 * + - 65 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + + col2 / - + col0 * + - 65 - + col0 FROM tab2 AS cor0
----
-46
-64
-75

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 col1 * - + col1 AS col2 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT 12 FROM tab2 AS cor0 WHERE NOT ( 89 ) IS NULL
----
12
12
12

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1236
SELECT - - CAST( + - ( + 82 ) AS SIGNED ) FROM tab1 WHERE + col0 IS NOT NULL
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-1236
SELECT - - CAST ( + - ( + 82 ) AS INTEGER ) FROM tab1 WHERE + col0 IS NOT NULL
----
-82
-82
-82

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

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

query II rowsort
SELECT DISTINCT 83 + - ( - + 98 ) AS col1, 33 FROM tab1 AS cor0
----
181
33

query I rowsort
SELECT + 60 + + col1 FROM tab1 cor0
----
107
65
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT ALL 70 + - - COUNT( * ) AS col0 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL 70 + - - COUNT ( * ) AS col0 FROM tab1
----
73

query I rowsort
SELECT DISTINCT ( - 66 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-66

query I rowsort
SELECT - - col2 - + col0 + + col2 FROM tab0 AS cor0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT - - 39 - + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1245
SELECT - - 39 - + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT - 38 + col2 + - + ( - + CAST( col0 AS SIGNED ) ) + ( + - col0 ) FROM tab0 AS cor0
----
-28
61
9

skipif mysql # not compatible
query I rowsort label-1246
SELECT - 38 + col2 + - + ( - + CAST ( col0 AS INTEGER ) ) + ( + - col0 ) FROM tab0 AS cor0
----
-28
61
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1247
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * CAST( + 34 AS SIGNED ) IS NOT NULL AND 78 NOT BETWEEN + + col0 * - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1247
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * CAST ( + 34 AS INTEGER ) IS NOT NULL AND 78 NOT BETWEEN + + col0 * - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1248
SELECT + ( - + col2 ) + col0 DIV - - 99 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1248
SELECT + ( - + col2 ) + col0 / - - 99 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + - col1 + - ( - 65 ) + 17 * - col0 AS col1 FROM tab0 AS cor0
----
-1435
-1585
-271

query I rowsort
SELECT DISTINCT 18 + - 17 * col2 AS col2 FROM tab0 AS cor0
----
-152
-1665
-781

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

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

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

query II rowsort
SELECT ALL 60 AS col2, col0 / - 55 - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL ( - 44 ) * + col0 + + col0 FROM tab2
----
-1978
-2752
-3225

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1257
SELECT DISTINCT + col1 * + - 69 FROM tab0 WHERE + col0 = + + ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT + col1 * + - 69 FROM tab0 WHERE + col0 = + + ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + COUNT( * ) * 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1258
SELECT + COUNT ( * ) * 66 FROM tab2
----
198

query I rowsort
SELECT ALL + 94 * + + col2 * + col2 * + 94 * + 18 FROM tab0 AS cor0
----
1558829448
15904800
351337032

query I rowsort
SELECT - 59 * + col2 FROM tab0 AS cor0
----
-2773
-5841
-590

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 41 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT DISTINCT - + ( + + col2 ) DIV + 30 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - + ( + + col2 ) / + 30 AS col2 FROM tab0 AS cor0
----
-1
-3
0

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

query I rowsort
SELECT ALL - 66 * 9 + - col1 AS col2 FROM tab0 AS cor0
----
-595
-615
-675

query I rowsort
SELECT ALL - + 86 FROM tab1 cor0
----
-86
-86
-86

query I rowsort
SELECT 31 * - col1 AS col0 FROM tab2
----
-1581
-2077
-2387

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

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

query I rowsort
SELECT col1 * col2 - - + col2 FROM tab1 cor0
----
1440
3264
354

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE 56 * 93 IS NULL
----

query I rowsort
SELECT ALL 16 AS col2 FROM tab0 WHERE NOT NULL <= + + 14
----

query I rowsort
SELECT + + 10 + - 43 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1274
SELECT + 36, + COUNT( * ) * + 38 * + CAST( - + CAST( + 10 AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
36
-3420

skipif mysql # not compatible
query II rowsort label-1274
SELECT + 36, + COUNT ( * ) * + 38 * + CAST ( - + CAST ( + 10 AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
36
-3420

query I rowsort
SELECT - + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

query I rowsort
SELECT + - col2 * - + col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT DISTINCT + 57 AS col2, - 34 FROM tab1 AS cor0
----
57
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - MAX( 62 ) FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-1279
SELECT - MAX ( 62 ) FROM tab2
----
-62

query I rowsort
SELECT col1 * - col1 * - col1 AS col1 FROM tab0
----
1
531441
9261

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

query I rowsort
SELECT ALL ( + - col1 ) * - 72 FROM tab0
----
1512
5832
72

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + col2 <> NULL
----

query I rowsort
SELECT DISTINCT 57 * - 33 + + ( + col2 ) FROM tab1 AS cor0
----
-1785
-1813
-1822

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT DISTINCT 44 * - COUNT( * ) FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT 44 * - COUNT ( * ) FROM tab2
----
-132

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

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

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

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

query I rowsort
SELECT DISTINCT + 44 + + col0 FROM tab2 AS cor0
----
108
119
90

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

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

query II rowsort
SELECT ALL - col1 * - col0 + col2 AS col2, + 28 AS col2 FROM tab1 AS cor0
----
4345
28
484
28
810
28

query I rowsort
SELECT - 79 * + ( - - 0 ) + + 79 FROM tab1 cor0
----
79
79
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) + + + col2 col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT ALL SUM( DISTINCT 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL SUM ( DISTINCT 73 ) FROM tab0 AS cor0
----
73

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 24 col2 FROM tab2
----
1392
552
960

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT SUM( + col2 ) + + 2 + COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT SUM ( + col2 ) + + 2 + COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
114

query I rowsort
SELECT ALL col1 * + + 95 FROM tab2
----
4845
6365
7315

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

query I rowsort
SELECT 39 FROM tab2 cor0 WHERE NULL IS NULL
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT + col1 DIV + - col2 * col1 * - - 21 * + - 20 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT + col1 / + - col2 * col1 * - - 21 * + - 20 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 40 + + 68 FROM tab0 AS cor0
----
28

query I rowsort
SELECT DISTINCT + 10 + - col0 FROM tab2 AS cor0
----
-36
-54
-65

query I rowsort
SELECT 97 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT + MAX( DISTINCT - + 32 ) * - 26 AS col1 FROM tab0 AS cor0
----
832

skipif mysql # not compatible
query I rowsort label-1307
SELECT + MAX ( DISTINCT - + 32 ) * - 26 AS col1 FROM tab0 AS cor0
----
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - + 41 ), + col2 + - + col2 + + - 1 col1 FROM tab0 AS cor0
----
-41
-1
-41
-1
-41
-1

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT ALL - 32 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - + col1 - - 63 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1312
SELECT ALL - 32 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * - + col1 - - 63 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT ALL + SUM( DISTINCT - - ( - 29 ) ) AS col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + SUM ( DISTINCT - - ( - 29 ) ) AS col0 FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1314
SELECT ALL + ( + - CAST( + col1 AS SIGNED ) ) * col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-1314
SELECT ALL + ( + - CAST ( + col1 AS INTEGER ) ) * col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-425
-4277
-714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT ALL + SUM( - - 49 ) FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL + SUM ( - - 49 ) FROM tab1
----
147

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE - - col0 NOT IN ( + + 61, col1, - 86, col0, - 33 + - col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT - COUNT( * ) * + 65 FROM tab2 WHERE NOT + col1 * col0 + - col0 + + col1 IS NULL
----
-195

skipif mysql # not compatible
query I rowsort label-1319
SELECT - COUNT ( * ) * + 65 FROM tab2 WHERE NOT + col1 * col0 + - col0 + + col1 IS NULL
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-1320
SELECT DISTINCT - col1 DIV 56 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - col1 / 56 AS col2 FROM tab2
----
-1
0

query II rowsort
SELECT ALL + 27 AS col2, 45 + col2 FROM tab2
----
27
103
27
68
27
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1322
SELECT col0 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1322
SELECT col0 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - + 37 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-37

query I rowsort
SELECT col0 + + 37 - col2 AS col2 FROM tab1 AS cor0
----
-8
60
63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 > NULL
----

query I rowsort
SELECT 89 + + col1 + col0 * col0 AS col0 FROM tab1 cor0
----
2704
7319
8417

onlyif mysql # DIV for integer division: 
query I rowsort label-1332
SELECT DISTINCT - + 81 DIV - 91 + + 63 * + 75 * + + col2 + col2 * + col1 AS col2 FROM tab2 cor0
----
109848
192080
277936

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - + 81 / - 91 + + 63 * + 75 * + + col2 + col2 * + col1 AS col2 FROM tab2 cor0
----
109848
192080
277936

query I rowsort
SELECT DISTINCT + + col0 * + col0 * + col2 AS col1 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT - + ( - - COUNT( * ) ) * - + MAX( - - col2 ), + 51 * 94 AS col1 FROM tab0 AS cor0
----
297
4794

skipif mysql # not compatible
query II rowsort label-1334
SELECT - + ( - - COUNT ( * ) ) * - + MAX ( - - col2 ), + 51 * 94 AS col1 FROM tab0 AS cor0
----
297
4794

query I rowsort
SELECT ALL 74 * - col1 AS col1 FROM tab0
----
-1554
-5994
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + 53 * COUNT( * ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-1336
SELECT + 53 * COUNT ( * ) FROM tab1
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1337
SELECT col2 DIV 45 * col2 DIV col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1337
SELECT col2 / 45 * col2 / col2 FROM tab2
----
0
0
1

query I rowsort
SELECT col1 * + 12 FROM tab0
----
12
252
972

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT ALL - COUNT( * ), COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1339
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT DISTINCT COUNT( + - 6 ) * + SUM( DISTINCT col1 ) AS col1 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT COUNT ( + - 6 ) * + SUM ( DISTINCT col1 ) AS col1 FROM tab1
----
198

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

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

query I rowsort
SELECT ALL - col2 + + col0 * + + 11 FROM tab0
----
118
947
968

query I rowsort
SELECT + 20 * + col1 * col2 FROM tab1
----
26880
5900
63920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1345
SELECT CAST( + col0 AS SIGNED ) + col1, - col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1345
SELECT CAST ( + col0 AS INTEGER ) + col1, - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT - 3 DIV - 57 + + - col0 * + 56 AS col0 FROM tab2
----
-2576
-3584
-4200

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - 3 / - 57 + + - col0 * + 56 AS col0 FROM tab2
----
-2576
-3584
-4200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT - - 22 - + COUNT( * ) FROM tab2 cor0
----
19

skipif mysql # not compatible
query I rowsort label-1348
SELECT - - 22 - + COUNT ( * ) FROM tab2 cor0
----
19

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + col2 col1, - col0 * + + 34 * + + col1 AS col0 FROM tab0
----
100
-3298
128
-41310
31
-62118

query I rowsort
SELECT ( + - col0 ) * col2 FROM tab1
----
-4896
-5015
-6188

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

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

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

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

query I rowsort
SELECT ALL + + 79 * col0 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1356
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST( NULL AS DECIMAL ) * - 6
----

skipif mysql # not compatible
query III rowsort label-1356
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= CAST ( NULL AS REAL ) * - 6
----

query II rowsort
SELECT DISTINCT - 4, + col2 AS col2 FROM tab1 AS cor0
----
-4
59
-4
68
-4
96

query I rowsort
SELECT ALL - ( - ( + 25 ) ) FROM tab2 AS cor0
----
25
25
25

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1360
SELECT DISTINCT MIN( ALL + col0 ), MIN( DISTINCT ( col1 ) ) AS col0, COUNT( * ) AS col0 FROM tab2
----
46
51
3

skipif mysql # not compatible
query III rowsort label-1360
SELECT DISTINCT MIN ( ALL + col0 ), MIN ( DISTINCT ( col1 ) ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
46
51
3

query II rowsort
SELECT + col1 AS col0, - ( + - col0 ) + + ( - col0 ) * + - col2 AS col2 FROM tab0 WHERE NOT + col0 + col1 IS NULL
----
1
9700
21
957
81
720

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL COUNT( ALL - + 33 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL COUNT ( ALL - + 33 ) FROM tab2
----
3

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

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

query II rowsort
SELECT col2 + - 68 AS col1, col0 FROM tab2 AS cor0
----
-10
75
-28
64
-45
46

query I rowsort
SELECT + 1 * 18 + + 43 AS col2 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1366
SELECT 50 col0, 55 * - + CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 557680387502912e1ce09076d6a0c64a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1366
SELECT 50 col0, 55 * - + CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to 557680387502912e1ce09076d6a0c64a

query II rowsort
SELECT - col0 AS col1, - col2 * 5 + + col2 FROM tab0 AS cor0
----
-15
-188
-87
-40
-97
-396

query I rowsort
SELECT ALL + + col1 + + 40 AS col2 FROM tab2 AS cor0
----
107
117
91

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

query I rowsort
SELECT ALL col2 + + 70 AS col2 FROM tab1 AS cor0
----
129
138
166

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
66

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

query I rowsort
SELECT - 48 * 60 - + - 0 FROM tab1 cor0
----
-2880
-2880
-2880

query I rowsort
SELECT col0 - ( + col2 ) + - col0 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 9 + col0 * + 54 + col1 AS col2 FROM tab0 AS cor0
----
4728
5248
900

onlyif mysql # DIV for integer division: 
query II rowsort label-1376
SELECT + 30 + - 38 AS col1, + col1 DIV - col2 FROM tab1
----
-8
0
-8
0
-8
0

skipif mysql # not compatible
query II rowsort label-1376
SELECT + 30 + - 38 AS col1, + col1 / - col2 FROM tab1
----
-8
0
-8
0
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT ALL + + MIN( DISTINCT + col2 ) * + COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1377
SELECT ALL + + MIN ( DISTINCT + col2 ) * + COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1378
SELECT col0 DIV - col0 + - col0 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-1378
SELECT col0 / - col0 + - col0 FROM tab2
----
-47
-65
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1379
SELECT ALL MIN( - + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT ALL MIN ( - + CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1380
SELECT + 91 * COUNT ( * ) + + 56 FROM tab2
----
329

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1381
SELECT 6 DIV 48 + COUNT( * ) - - COUNT( * ) AS col0, + 92 AS col0 FROM tab1
----
6
92

skipif mysql # not compatible
query II rowsort label-1381
SELECT 6 / 48 + COUNT ( * ) - - COUNT ( * ) AS col0, + 92 AS col0 FROM tab1
----
6
92

query I rowsort
SELECT DISTINCT col2 * - 88 / + 8 FROM tab0 AS cor0 WHERE NULL IN ( - 98 * col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1383
SELECT - - 95 * + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1383
SELECT - - 95 * + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - - 80 * + col1 + - 57 * + col2 FROM tab0 cor0
----
-5563
1110
3801

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

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

query I rowsort
SELECT ALL 43 * - 18 FROM tab2 AS cor0
----
-774
-774
-774

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

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

query II rowsort
SELECT DISTINCT col2 AS col0, col0 * col2 + - col1 AS col1 FROM tab0
----
10
849
47
624
99
9602

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - SUM( ALL + - 94 ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-1390
SELECT - SUM ( ALL + - 94 ) AS col2 FROM tab1
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT ALL 76 DIV + col0 AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 76 / + col0 AS col1 FROM tab0
----
0
0
5

query II rowsort
SELECT + 67, col0 * - 14 AS col2 FROM tab1
----
67
-1190
67
-1274
67
-714

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

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col2, - 4 FROM tab2 cor0
----
23
-4
40
-4
58
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT DISTINCT + MAX( + 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-1399
SELECT DISTINCT + MAX ( + 69 ) FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT + 25 + SUM( ALL + 3 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-1400
SELECT + 25 + SUM ( ALL + 3 ) FROM tab1 AS cor0
----
34

query II rowsort
SELECT DISTINCT - - col1 + - col1, - 46 AS col1 FROM tab2 AS cor0
----
0
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL MAX( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL MAX ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1403
SELECT - CAST( NULL AS SIGNED ) AS col2, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-1403
SELECT - CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1404
SELECT DISTINCT CAST( 51 AS SIGNED ) - 42 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT CAST ( 51 AS INTEGER ) - 42 AS col2 FROM tab2
----
9

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1407
SELECT DISTINCT + 87 AS col0, + COUNT ( * ) AS col0 FROM tab0
----
87
3

query I rowsort
SELECT col0 - - 37 FROM tab1
----
122
128
88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 94 NOT BETWEEN - 9 AND + 74 + 67
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1410
SELECT - col1 * ( 65 ) + 95 DIV CAST( 75 DIV - col2 AS SIGNED ) AS col2 FROM tab2
----
-3346
-4450
-5100

skipif mysql # not compatible
query I rowsort label-1410
SELECT - col1 * ( 65 ) + 95 / CAST ( 75 / - col2 AS INTEGER ) AS col2 FROM tab2
----
-3346
-4450
-5100

query I rowsort
SELECT col2 * col2 AS col2 FROM tab0 WHERE NOT 34 IS NULL
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT DISTINCT + MIN( 89 ) FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + MIN ( 89 ) FROM tab1
----
89

query I rowsort
SELECT ALL col2 + 73 FROM tab1
----
132
141
169

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + col0 IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab0 WHERE ( - col0 ) IN ( + 14 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT + 67 AS col0 FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND ( + CAST( - col0 AS SIGNED ) * - col0 - 19 )
----

skipif mysql # not compatible
query I rowsort label-1416
SELECT + 67 AS col0 FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND ( + CAST ( - col0 AS INTEGER ) * - col0 - 19 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 8 - ( 95 ) FROM tab0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - col0 * 4 + col2 FROM tab1
----
-108
-281
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT DISTINCT SUM( ALL 94 ) col0 FROM tab1
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1420
SELECT DISTINCT SUM ( ALL 94 ) col0 FROM tab1
----
282

query I rowsort
SELECT 20 + - 28 AS col1 FROM tab0
----
-8
-8
-8

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT col1 * col2 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

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

query I rowsort
SELECT DISTINCT 64 + 0 FROM tab2 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1425
SELECT * FROM tab1 WHERE + col0 BETWEEN 80 * 23 + - 4 / col1 AND CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1425
SELECT * FROM tab1 WHERE + col0 BETWEEN 80 * 23 + - 4 / col1 AND CAST ( col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * 81 col0 FROM tab1
----
-3645
-3645
-3645

query I rowsort
SELECT ALL - 86 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT MIN( col0 ) * + 84 AS col0 FROM tab1
----
4284

skipif mysql # not compatible
query I rowsort label-1428
SELECT MIN ( col0 ) * + 84 AS col0 FROM tab1
----
4284

query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab1 WHERE ( + col0 ) < - col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT MAX( 29 ) * COUNT( * ) col0 FROM tab1
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1430
SELECT DISTINCT MAX ( 29 ) * COUNT ( * ) col0 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1431
SELECT col1 * ( CAST( + ( col0 ) AS SIGNED ) ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-1431
SELECT col1 * ( CAST ( + ( col0 ) AS INTEGER ) ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col2 ) NOT IN ( 79 - + ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT ALL col0 DIV + ( - 36 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL col0 / + ( - 36 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-2
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT DISTINCT CAST( 25 AS SIGNED ) * 22 col0 FROM tab1 cor0
----
550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1434
SELECT DISTINCT CAST ( 25 AS INTEGER ) * 22 col0 FROM tab1 cor0
----
550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * - 86 + col1 col2 FROM tab1 AS cor0
----
5767
5776
5809

query I rowsort
SELECT ALL col2 + 95 * 97 FROM tab2 AS cor0
----
9238
9255
9273

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

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

query I rowsort
SELECT + col1 * + 23 AS col0 FROM tab2
----
1173
1541
1771

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
18

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1442
SELECT + col0 DIV ( + 80 * - col0 ) FROM tab0
----
0
0
0

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) IN ( - 42 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( 59 + + col0 * col2 )
----

query I rowsort
SELECT + 94 - + 19 FROM tab2 AS cor0
----
75
75
75

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

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

query I rowsort
SELECT - col1 + - col0 * - 27 FROM tab2 AS cor0
----
1191
1651
1958

query I rowsort
SELECT DISTINCT - col1 * + 11 + col0 AS col1 FROM tab0 cor0
----
-144
-876
86

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

query I rowsort
SELECT DISTINCT - col1 - + 8 FROM tab1 cor0
----
-13
-22
-55

query I rowsort
SELECT ALL col1 - - 79 * + col0 AS col0 FROM tab0
----
1266
6894
7664

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1453
SELECT DISTINCT + 90 - col0 / + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1453
SELECT DISTINCT + 90 - col0 / + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT SUM( col2 ) FROM tab2 WHERE NULL < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT SUM ( col2 ) FROM tab2 WHERE NULL < col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1455
SELECT * FROM tab2 WHERE NOT + col0 > ( CAST( - 42 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1455
SELECT * FROM tab2 WHERE NOT + col0 > ( CAST ( - 42 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT DISTINCT + MAX( ALL + - ( - 71 ) ) AS col0 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT + MAX ( ALL + - ( - 71 ) ) AS col0 FROM tab1
----
71

query I rowsort
SELECT col2 * - col0 * - 32 FROM tab2
----
139200
33856
81920

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1464
SELECT + 96 DIV COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-1464
SELECT + 96 / COUNT ( * ) FROM tab2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1465
SELECT DISTINCT SUM( - 56 ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT SUM ( - 56 ) FROM tab0
----
-168

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 74 ) IN ( 38 * + ( + col0 / col2 ) + + 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT ALL - col1 * 65 + col1 * col2 FROM tab1 AS cor0 WHERE NOT - 40 + col0 BETWEEN ( col2 + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - col1 * 65 + col1 * col2 FROM tab1 AS cor0 WHERE NOT - 40 + col0 BETWEEN ( col2 + CAST ( NULL AS INTEGER ) ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - ( + ( COUNT( * ) ) ) + - MIN( ALL 15 + 13 ) AS col1 FROM tab1 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1471
SELECT - ( + ( COUNT ( * ) ) ) + - MIN ( ALL 15 + 13 ) AS col1 FROM tab1 cor0
----
-31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT DISTINCT - col2 * + + CAST( + 78 AS SIGNED ) FROM tab2
----
-1794
-3120
-4524

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - col2 * + + CAST ( + 78 AS INTEGER ) FROM tab2
----
-1794
-3120
-4524

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) > ( + 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT - col0 DIV 98 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT - col0 / 98 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col1 / - 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1477
SELECT ( - + 66 ) / + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN + 75 AND ( + - 26 / - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 86 * col1 > NULL
----

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

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

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

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

query I rowsort
SELECT + - col2 * + 79 + - col0 / - col2 FROM tab0 WHERE NULL IN ( 89, + col0 )
----

query II rowsort
SELECT + 1 + - - col1 - + - 48 AS col0, col0 FROM tab0
----
130
15
50
97
70
87

query I rowsort
SELECT col1 * - col2 - col0 AS col1 FROM tab2 AS cor0 WHERE ( col2 + 75 ) IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT ALL 48 + + CAST( + 61 AS SIGNED ) * - COUNT( * ) col2 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT ALL 48 + + CAST ( + 61 AS INTEGER ) * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-135

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

query I rowsort
SELECT ALL + 40 * - - col2 + - - col1 FROM tab0 AS cor0
----
1961
3961
421

query I rowsort
SELECT - - col2 - - 75 * 32 AS col0 FROM tab2 AS cor0
----
2423
2440
2458

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT 15 - 12 + - + COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1491
SELECT 15 - 12 + - + COUNT ( * ) AS col1 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT 64 * - MIN( DISTINCT + 85 ) AS col0 FROM tab0
----
-5440

skipif mysql # not compatible
query I rowsort label-1493
SELECT 64 * - MIN ( DISTINCT + 85 ) AS col0 FROM tab0
----
-5440

query II rowsort
SELECT - 10 AS col2, col2 AS col1 FROM tab1 AS cor0
----
-10
59
-10
68
-10
96

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1499
SELECT DISTINCT + - col0 + col2 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-1499
SELECT DISTINCT + - col0 + col2 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT + COUNT( * ) * + 54 * + 13 + SUM( DISTINCT + col2 ) * COUNT( * ) FROM tab0 AS cor0
----
2574

skipif mysql # not compatible
query I rowsort label-1501
SELECT + COUNT ( * ) * + 54 * + 13 + SUM ( DISTINCT + col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
2574

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col0 col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT DISTINCT - 95 + - 37 - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-133
-153
-213

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT - 95 + - 37 - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-133
-153
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( col0 ) - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( col0 ) - + col0 )
----
0

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

query I rowsort
SELECT DISTINCT col2 * 78 FROM tab0
----
3666
7722
780

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT DISTINCT COUNT( * ) * - - 6 * + SUM( - + ( - 73 ) ) * COUNT( * ) + COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - - col0 ) IS NULL
----
11829

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT COUNT ( * ) * - - 6 * + SUM ( - + ( - 73 ) ) * COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - - col0 ) IS NULL
----
11829

query I rowsort
SELECT ALL 7 * col2 * + + col2 AS col1 FROM tab0
----
15463
68607
700

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT 46 * - - COUNT( * ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT 46 * - - COUNT ( * ) FROM tab0
----
138

query I rowsort
SELECT + 50 * col2 + + + ( - - col2 ) FROM tab0
----
2397
5049
510

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

query I rowsort
SELECT DISTINCT - 56 * col2 AS col2 FROM tab2
----
-1288
-2240
-3248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT + COUNT( + col0 ) * COUNT( * ) + - AVG ( ALL col2 ) - + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

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

query II rowsort
SELECT ALL - 93 AS col1, 4 FROM tab0
----
-93
4
-93
4
-93
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT ALL + 40 + - MAX( DISTINCT - + col1 ) * - 98 + 18 FROM tab2
----
-4940

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL + 40 + - MAX ( DISTINCT - + col1 ) * - 98 + 18 FROM tab2
----
-4940

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT + ( - + 9 ) + - 58, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-67
-3

skipif mysql # not compatible
query II rowsort label-1519
SELECT + ( - + 9 ) + - 58, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-67
-3

query I rowsort
SELECT DISTINCT col1 / 95 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1521
SELECT DISTINCT + 32 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT + 32 - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN - col1 + - 89 * + 57 + + 4 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV col2 AS col2 FROM tab0
----
0
8

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / col2 AS col2 FROM tab0
----
0
8

query II rowsort
SELECT 21 - - + col2 AS col1, + 72 AS col2 FROM tab0
----
120
72
31
72
68
72

query I rowsort
SELECT + 38 * + col1 + + + 61 * + col1 AS col1 FROM tab0 AS cor0
----
2079
8019
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT 26 DIV + col0 - + 35 FROM tab2 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-1527
SELECT 26 / + col0 - + 35 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 * ( - 96 ) AND + col1 * 26
----

query I rowsort
SELECT ALL - 22 * - 96 FROM tab0
----
2112
2112
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1530
SELECT COUNT( * ) * AVG ( 74 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 64 AND - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1530
SELECT COUNT ( * ) * AVG ( 74 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 64 AND - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT - 28 * + + SUM( + 86 ) FROM tab2
----
-7224

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - 28 * + + SUM ( + 86 ) FROM tab2
----
-7224

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1533
SELECT ALL + 95 DIV - ( COUNT( * ) ) col0 FROM tab1
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1533
SELECT ALL + 95 / - ( COUNT ( * ) ) col0 FROM tab1
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * + col0 * + 97 * + + col2 col0 FROM tab1
----
-39417696
-40375765
-49819588

onlyif mysql # aggregate syntax: 
query II rowsort label-1535
SELECT - COUNT( * ) AS col0, + 65 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
65

skipif mysql # not compatible
query II rowsort label-1535
SELECT - COUNT ( * ) AS col0, + 65 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT - CAST( + ( - MIN( + col2 ) ) AS SIGNED ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1536
SELECT - CAST ( + ( - MIN ( + col2 ) ) AS INTEGER ) FROM tab2
----
23

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

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

query II rowsort
SELECT - 28 * 44, col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NULL ) NOT IN ( + 31 ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE 97 BETWEEN ( - col1 ) AND NULL OR ( - col2 + + + col0 IN ( col2 - + col2 ) )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 + - + col0 FROM tab1
----
51
45
85
-26
91
-23

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

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

query I rowsort
SELECT + col1 + + col2 + 19 FROM tab2
----
136
144
93

query II rowsort
SELECT DISTINCT - + col2 AS col1, 85 * + - col2 AS col0 FROM tab1 AS cor0
----
-59
-5015
-68
-5780
-96
-8160

query I rowsort
SELECT DISTINCT col1 * col2 + - 57 FROM tab1 cor0
----
1287
238
3139

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL 25 * + COUNT( DISTINCT + col0 ) FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL 25 * + COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( * ) * ( - + 20 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( * ) * ( - + 20 ) FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT COUNT( * ) * - + 16 col2 FROM tab0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1549
SELECT COUNT ( * ) * - + 16 col2 FROM tab0
----
-48

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1551
SELECT DISTINCT + col0 + - - 5 DIV + + col0 + + + 4 AS col2 FROM tab0
----
101
19
91

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + col0 + - - 5 / + + col0 + + + 4 AS col2 FROM tab0
----
101
19
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT - + COUNT( * ) - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-6
3

skipif mysql # not compatible
query II rowsort label-1552
SELECT - + COUNT ( * ) - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-6
3

query I rowsort
SELECT 74 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 + - - 32 * - 75 + col1 AS col0, col0 AS col0 FROM tab2
----
-2246
64
-2266
75
-2298
46

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1556
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL <> ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-1556
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL <> ( - - col2 )
----

query II rowsort
SELECT ALL col2 - 59 - + + 79 * col2, col0 FROM tab1
----
-4661
85
-5363
91
-7547
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - col2 * 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - col0 * col0 / 31 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

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

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

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

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

query II rowsort
SELECT ALL + col1 * - + ( 5 ), col2 - + + ( - col2 ) * col0 + + 6 AS col2 FROM tab2 AS cor0
----
-255
1087
-335
4414
-385
2606

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1565
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - col0 * - - col2 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

skipif mysql # not compatible
query II rowsort label-1565
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - col0 * - - col2 FROM tab1 AS cor0
----
NULL
-4896
NULL
-5015
NULL
-6188

query I rowsort
SELECT ALL ( + - 83 ) FROM tab2
----
-83
-83
-83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT + MIN( + col1 ) * + 61 + + COUNT( * ) AS col0 FROM tab1
----
308

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT + MIN ( + col1 ) * + 61 + + COUNT ( * ) AS col0 FROM tab1
----
308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1569
SELECT - 43 DIV + + COUNT( * ) - - - 93 AS col0 FROM tab0 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-1569
SELECT - 43 / + + COUNT ( * ) - - - 93 AS col0 FROM tab0 AS cor0
----
-107

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

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

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

query I rowsort
SELECT - 66 * 96 AS col1 FROM tab2
----
-6336
-6336
-6336

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

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE + col1 * - - col0 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT ALL - + MAX( ( + col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL - + MAX ( ( + col2 ) ) FROM tab1 AS cor0
----
-96

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

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

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

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

query I rowsort
SELECT DISTINCT 90 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
104
137
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1583
SELECT 13 * + col1 + CAST( ( + col2 ) AS SIGNED ) + + + 67 + + 36 + + col1 * + + col2 * + - 79 AS col1 FROM tab2
----
-242176
-305962
-91878

skipif mysql # not compatible
query I rowsort label-1583
SELECT 13 * + col1 + CAST ( ( + col2 ) AS INTEGER ) + + + 67 + + 36 + + col1 * + + col2 * + - 79 AS col1 FROM tab2
----
-242176
-305962
-91878

query I rowsort
SELECT - col1 + + col1 + - + 20 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT ALL - 83 * col0 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT 19 + col1 AS col2 FROM tab0
----
100
20
40

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

query I rowsort
SELECT DISTINCT + 44 + + col2 FROM tab1
----
103
112
140

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

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

query I rowsort
SELECT ALL - - col1 * + col0 + + - col0 AS col2 FROM tab2 AS cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT DISTINCT MAX( DISTINCT - 71 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT DISTINCT MAX ( DISTINCT - 71 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT + + 17 DIV 56 + + col0 DIV + 37 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1592
SELECT + + 17 / 56 + + col0 / + 37 AS col2 FROM tab2 AS cor0
----
1
1
2

query II rowsort
SELECT DISTINCT - col0 * - - col0, + col2 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - col0 FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1595
SELECT CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) + - COUNT( - col2 ) AS col2 FROM tab0
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-1595
SELECT CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + - COUNT ( - col2 ) AS col2 FROM tab0
----
NULL
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= col1 + col0 * + col1
----

query I rowsort
SELECT DISTINCT - 44 * - 99 FROM tab1
----
4356

query I rowsort
SELECT ALL - 64 * - col1 FROM tab0 cor0
----
1344
5184
64

query II rowsort
SELECT DISTINCT - col0 AS col0, + col0 * + 59 AS col2 FROM tab1 AS cor0
----
-51
3009
-85
5015
-91
5369

query I rowsort
SELECT DISTINCT - - 31 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + SUM( ALL 89 ) AS col0 FROM tab0 AS cor0 WHERE + ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT + SUM ( ALL 89 ) AS col0 FROM tab0 AS cor0 WHERE + ( col1 ) IS NULL
----
NULL

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

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

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

query I rowsort
SELECT + 83 * 98 FROM tab1
----
8134
8134
8134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * col0 - - col2 + + - col2 + - col2 * + - 2 col2 FROM tab0
----
-154
4
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT ALL - 50 * MIN( - 19 ) FROM tab2
----
950

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL - 50 * MIN ( - 19 ) FROM tab2
----
950

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

query II rowsort
SELECT col0 + - - col1 AS col2, 77 * - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
138
-5236
65
-7392
90
-4543

onlyif mysql # DIV for integer division: 
query I rowsort label-1609
SELECT DISTINCT - 20 + - + 80 * - col1 DIV + col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT - 20 + - + 80 * - col1 / + col1 FROM tab1 AS cor0
----
60

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

query II rowsort
SELECT ALL col2 AS col1, + col0 AS col0 FROM tab2
----
23
46
40
64
58
75

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

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

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL 25 * + col1 + + col0 * + col0 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 - + CAST ( + 37 AS INTEGER ) NOT IN ( + col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col1 - - + col0 col1 FROM tab1 AS cor0
----
-51
65
-85
90
-91
138

query I rowsort
SELECT - - ( + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1617
SELECT DISTINCT + col0 / - + 22 * 2, + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1617
SELECT DISTINCT + col0 / - + 22 * 2, + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < - CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1618
SELECT + 54 DIV - MIN( DISTINCT - 51 ) + - + 31 AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-1618
SELECT + 54 / - MIN ( DISTINCT - 51 ) + - + 31 AS col0 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < + 54
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT 38 * + - SUM( - col0 ) AS col1 FROM tab2
----
7030

skipif mysql # not compatible
query I rowsort label-1620
SELECT 38 * + - SUM ( - col0 ) AS col1 FROM tab2
----
7030

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / - col1 < 28 + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + ( 57 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 92 IS NULL
----

query II rowsort
SELECT ALL 55 + - col1 AS col1, + 18 FROM tab0
----
-26
18
34
18
54
18

query II rowsort
SELECT 86 + - col0, col1 FROM tab2
----
11
67
22
77
40
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT - 55 + - 7 - ( - + COUNT( * ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT - 55 + - 7 - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT DISTINCT + 86 + col1 FROM tab1 cor0
----
100
133
91

query I rowsort
SELECT - - col2 * - 41 + + col0 + col0 * - col0 * - - col1 * + col1 + + + 42 AS col1 FROM tab0 AS cor0
----
-13329
-1478095
-3338210

onlyif mysql # aggregate syntax: 
query II rowsort label-1629
SELECT ALL - 91 AS col1, + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 * 91 * - col1 IS NOT NULL
----
-91
0

skipif mysql # not compatible
query II rowsort label-1629
SELECT ALL - 91 AS col1, + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 * 91 * - col1 IS NOT NULL
----
-91
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1630
SELECT 30 + - 60 AS col2, col2 + - - col2 DIV 60 AS col0 FROM tab1 AS cor0
----
-30
59
-30
69
-30
97

skipif mysql # not compatible
query II rowsort label-1630
SELECT 30 + - 60 AS col2, col2 + - - col2 / 60 AS col0 FROM tab1 AS cor0
----
-30
59
-30
69
-30
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * - ( col2 ) col0 FROM tab2
----
-2024
-3520
-5104

query I rowsort
SELECT DISTINCT + + 67 + + col2 AS col1 FROM tab0 cor0
----
114
166
77

query I rowsort
SELECT + 93 * + - ( - col0 ) FROM tab2 cor0
----
4278
5952
6975

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT + + CAST( col0 AS SIGNED ) - + 11 + + 6 * - col2 AS col1 FROM tab1 AS cor0
----
-280
-328
-536

skipif mysql # not compatible
query I rowsort label-1636
SELECT + + CAST ( col0 AS INTEGER ) - + 11 + + 6 * - col2 AS col1 FROM tab1 AS cor0
----
-280
-328
-536

query I rowsort
SELECT DISTINCT 68 * + col2 FROM tab0 AS cor0
----
3196
6732
680

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT - COUNT( * ) + - 75 AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-1638
SELECT - COUNT ( * ) + - 75 AS col1 FROM tab1 AS cor0
----
-78

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

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

query I rowsort
SELECT DISTINCT - col2 * + 31 * - col1 FROM tab0
----
118017
3069
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL - MAX( DISTINCT - 58 ) col1 FROM tab0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1641
SELECT ALL - MAX ( DISTINCT - 58 ) col1 FROM tab0
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1642
SELECT ALL - ( + - 67 ) / - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL - ( + - 67 ) / - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1644
SELECT ALL - ( - 24 ), + SUM( - CAST( NULL AS SIGNED ) ) + + - 9 col2 FROM tab2 AS cor0
----
24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1644
SELECT ALL - ( - 24 ), + SUM ( - CAST ( NULL AS INTEGER ) ) + + - 9 col2 FROM tab2 AS cor0
----
24
NULL

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

skipif mysql # not compatible
query III rowsort label-1645
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * - col1 col1 FROM tab1
----
-1372
-4606
-490

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 NOT IN ( + + col0, ( - - 33 ) )
----

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

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

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

query I rowsort
SELECT ALL - + 19 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-19
-19
-19

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, col1 * + col0 col0 FROM tab0
----
1
97
21
1827
81
1215

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

query II rowsort
SELECT 66 AS col2, 18 * - col2 AS col2 FROM tab1
----
66
-1062
66
-1224
66
-1728

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1658
SELECT + 63 AS col0, COUNT( * ) + - 90 + - COUNT( * ) * + 39 - SUM( DISTINCT - - col1 ) - + + 56 DIV + + SUM( ALL col1 ) FROM tab2
----
63
-399

skipif mysql # not compatible
query II rowsort label-1658
SELECT + 63 AS col0, COUNT ( * ) + - 90 + - COUNT ( * ) * + 39 - SUM ( DISTINCT - - col1 ) - + + 56 / + + SUM ( ALL col1 ) FROM tab2
----
63
-399

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 14 IN ( 87 )
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - ( 24 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-24

query I rowsort
SELECT DISTINCT - 55 + + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

query II rowsort
SELECT ALL col1 + - - 12 AS col1, 48 + col1 AS col2 FROM tab1
----
17
53
26
62
59
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT ALL - CAST( + col2 AS SIGNED ) * col2 * + col1 + - 53 * + 98 FROM tab0 cor0
----
-14995
-184123
-7294

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - CAST ( + col2 AS INTEGER ) * col2 * + col1 + - 53 * + 98 FROM tab0 cor0
----
-14995
-184123
-7294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 65 - - ( + col2 ) col0 FROM tab1 cor0
----
3411
5584
5983

query I rowsort
SELECT DISTINCT - + 65 - - + col0 AS col1 FROM tab1 AS cor0
----
-14
20
26

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1671
SELECT ALL - + 78 AS col0, CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-78
-46
-78
-64
-78
-75

skipif mysql # not compatible
query II rowsort label-1671
SELECT ALL - + 78 AS col0, CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-78
-46
-78
-64
-78
-75

query I rowsort
SELECT ALL + + 59 * + + col2 AS col2 FROM tab0 cor0
----
2773
5841
590

query I rowsort
SELECT - - col2 * + + col1 + col2 FROM tab0 AS cor0
----
198
220
3854

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

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

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0 WHERE + - 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT ALL + ( - 65 ) * COUNT( - - col0 ) FROM tab1
----
-195

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + ( - 65 ) * COUNT ( - - col0 ) FROM tab1
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1678
SELECT DISTINCT CAST( - col0 AS SIGNED ), + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
query II rowsort label-1678
SELECT DISTINCT CAST ( - col0 AS INTEGER ), + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL 5 + - col0 * - 1 * col0 FROM tab2 AS cor0
----
2121
4101
5630

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 16 * + - col2 AND ( + + col2 * - 88 * + col1 + + col0 )
----

query II rowsort
SELECT + - 6 * col0 AS col0, + col2 + + 86 FROM tab0 cor0
----
-522
96
-582
185
-90
133

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

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 85 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL + 16 + COUNT( * ) FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + 16 + COUNT ( * ) FROM tab0 cor0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1685
SELECT - - col1 + - col2 + - CAST( + + ( col0 ) AS SIGNED ) * - col0 AS col1, + 71 AS col1 FROM tab2 cor0
----
2144
71
4133
71
5634
71

skipif mysql # not compatible
query II rowsort label-1685
SELECT - - col1 + - col2 + - CAST ( + + ( col0 ) AS INTEGER ) * - col0 AS col1, + 71 AS col1 FROM tab2 cor0
----
2144
71
4133
71
5634
71

query I rowsort
SELECT ALL + col1 * - ( - col1 ) * - col2 + - + col1 + col1 - - col1 * + - 55 AS col2 FROM tab0
----
-154
-312822
-5565

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT 22 - - 90 * + + COUNT( * ) FROM tab1
----
292

skipif mysql # not compatible
query I rowsort label-1687
SELECT 22 - - 90 * + + COUNT ( * ) FROM tab1
----
292

onlyif mysql # DIV for integer division: 
query I rowsort label-1688
SELECT DISTINCT - 34 * ( + + col2 ) * + col2 - col0 DIV + - col0 + - - col2 AS col1 FROM tab1 AS cor0
----
-118294
-157147
-313247

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - 34 * ( + + col2 ) * + col2 - col0 / + - col0 + - - col2 AS col1 FROM tab1 AS cor0
----
-118294
-157147
-313247

query I rowsort
SELECT ALL - 37 + 59 AS col1 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT 30 + 18 AS col0 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT COUNT( * ) + - 34 + - + 1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1691
SELECT COUNT ( * ) + - 34 + - + 1 FROM tab1 AS cor0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL + + 37 * - 99 - - + COUNT( * ) * + 86 + + CAST( - 68 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3473

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + + 37 * - 99 - - + COUNT ( * ) * + 86 + + CAST ( - 68 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3473

query I rowsort
SELECT + col1 + 90 FROM tab0 AS cor0
----
111
171
91

query I rowsort
SELECT DISTINCT 20 + 78 FROM tab0 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT - SUM( + col0 ) + + 8 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT - SUM ( + col0 ) + + 8 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

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

query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab0 WHERE NOT col0 * - + col2 - - col2 > - - col2
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1701
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 WHERE NOT col0 * - + col2 - - col2 > - - col2
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT ALL 87 * + - ( col2 ) + - col2 FROM tab1 AS cor0
----
-5192
-5984
-8448

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT NULL < + 43 + - 18
----

query II rowsort
SELECT ALL + ( + 85 ), col2 * 52 * - - col0 AS col1 FROM tab1
----
85
254592
85
260780
85
321776

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

skipif mysql # not compatible
query I rowsort label-1707
SELECT - 90 / col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE - - ( - col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col0 * col2 * + + col0, ( + col1 ) col0 FROM tab1
----
23970816
14
25150225
5
38291344
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + col0 col0 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT ALL + - 60, - col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * + + 67 AND - 16
----

query I rowsort
SELECT - 72 + - + 73 FROM tab2
----
-145
-145
-145

onlyif mysql # aggregate syntax: 
query II rowsort label-1714
SELECT - MIN( - col0 ) * 79 AS col0, - 2 AS col1 FROM tab0
----
7663
-2

skipif mysql # not compatible
query II rowsort label-1714
SELECT - MIN ( - col0 ) * 79 AS col0, - 2 AS col1 FROM tab0
----
7663
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + COUNT( col1 ) * + 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-1715
SELECT + COUNT ( col1 ) * + 76 FROM tab0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-1716
SELECT ALL col0 * - col2 * col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL col0 * - col2 * col1 / col1 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + 64 * - 81 AS col0 FROM tab1 AS cor0
----
-5184
-5184
-5184

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

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

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT 95 * + col0 - - 20 * - col0 + - - 18 / + ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * 37 AS col0 FROM tab0
----
3219
3589
555

query I rowsort
SELECT ( 13 ) AS col0 FROM tab0
----
13
13
13

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= - - col1
----
15
81
47
87
21
10

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT ( NOT 12 IS NOT NULL )
----
46
64
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1726
SELECT CAST( + 16 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
-1072
-1232
-816

skipif mysql # not compatible
query I rowsort label-1726
SELECT CAST ( + 16 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-1072
-1232
-816

query II rowsort
SELECT ALL 93 + - - col2, col1 AS col1 FROM tab0 cor0
----
103
21
140
81
192
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 78 col2 FROM tab1 AS cor0
----
-27
13
7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * 76 col0 FROM tab1 cor0
----
3876
6460
6916

query I rowsort
SELECT - col2 * + + col0 + - + col0 + + ( - + 1 ) FROM tab0 AS cor0
----
-721
-958
-9701

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

query I rowsort
SELECT - ( + - 12 ) + + col0 + - col2 + 97 * col1 + 31 + + - col1 FROM tab2 AS cor0
----
4962
6492
7459

query I rowsort
SELECT DISTINCT 53 * + 93 * - + 31 FROM tab1
----
-152799

query II rowsort
SELECT DISTINCT 53 AS col2, - col0 FROM tab1
----
53
-51
53
-85
53
-91

query I rowsort
SELECT ALL 0 * + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 69 + col0 * - col0 AS col1 FROM tab2
----
-2047
-4027
-5556

query I rowsort
SELECT - ( 88 ) FROM tab0 WHERE 43 + + 67 IN ( - col1 - + col2 + + col1 / + - 88, + 93 + + col2 * - - col0 * - + col0 )
----

query I rowsort
SELECT col2 + - col0 * + col0 * + - ( col1 ) + 75 AS col2 FROM tab1
----
36259
36585
389350

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

query II rowsort
SELECT - 21 AS col0, - ( col0 ) * - + col2 FROM tab2 AS cor0
----
-21
1058
-21
2560
-21
4350

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = + col0 + - + col0
----

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

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

query I rowsort
SELECT 28 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - - 30 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1747
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - col2 / + col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - col2 / + col1 >= NULL
----
0

query I rowsort
SELECT - - col2 * - + col1 - col0 AS col2 FROM tab1 cor0
----
-1395
-3287
-380

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

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

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT + - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

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

query I rowsort
SELECT DISTINCT - + 65 AS col1 FROM tab1 cor0
----
-65

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

query I rowsort
SELECT - col2 / - col0 - col2 AS col1 FROM tab1 WHERE NOT NULL < - col0
----

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

query I rowsort
SELECT - ( - 61 ) FROM tab2 AS cor0
----
61
61
61

query I rowsort
SELECT ALL - + 23 * - 45 AS col1 FROM tab0 AS cor0
----
1035
1035
1035

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT SUM( ALL + + 28 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1759
SELECT SUM ( ALL + + 28 ) FROM tab0
----
84

query I rowsort
SELECT - col2 + - - col1 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1761
SELECT 77 + 49 DIV - CAST( col0 AS SIGNED ) FROM tab0
----
74
77
77

skipif mysql # not compatible
query I rowsort label-1761
SELECT 77 + 49 / - CAST ( col0 AS INTEGER ) FROM tab0
----
74
77
77

query III rowsort
SELECT * FROM tab1 WHERE - 52 IN ( + col0 * - ( + col2 ) * 78 )
----

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

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

query I rowsort
SELECT ALL col1 + + col2 + - 12 FROM tab1 AS cor0
----
103
52
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL COUNT( * ) + 92 AS col2 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL COUNT ( * ) + 92 AS col2 FROM tab0 AS cor0
----
95

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1767
SELECT DISTINCT col2 * 19 - - - CAST( NULL AS DECIMAL ) * - - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT col2 * 19 - - - CAST ( NULL AS REAL ) * - - col0 AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE 21 + + 11 <= + 33
----
59
68
96

query I rowsort
SELECT ALL 23 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
4300
448
737

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

query I rowsort
SELECT DISTINCT + col2 - 45 + + col0 AS col0 FROM tab2
----
24
59
88

query I rowsort
SELECT DISTINCT + col2 * + 19 * - col1 FROM tab1
----
-25536
-5605
-60724

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

query III rowsort
SELECT DISTINCT col2 * 14, + 1 AS col2, col0 * + col1 * - - 85 AS col1 FROM tab1
----
9 values hashing to 58aa83c0f7b0b8b9b77ee3c9965b47c0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT ALL + 36 + + + 76 + + col0 / CAST( NULL AS SIGNED ) + col0 * - 10 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL + 36 + + + 76 + + col0 / CAST ( NULL AS INTEGER ) + col0 * - 10 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 92 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > 28
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1779
SELECT DISTINCT ( - col0 ) + - col2 - - col2 DIV + + CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT ( - col0 ) + - col2 - - col2 / + + CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-104
-133
-69

query II rowsort
SELECT ALL - + 88 + + col1 AS col2, - col2 * + col1 FROM tab1 AS cor0
----
-41
-3196
-74
-1344
-83
-295

query I rowsort
SELECT + 73 + + col0 * + col1 + 1 FROM tab2 AS cor0
----
2420
5002
5099

query I rowsort
SELECT DISTINCT + col2 * - col1 - + - 9 AS col2 FROM tab1 AS cor0
----
-1335
-286
-3187

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT MAX( ALL + 4 ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1783
SELECT MAX ( ALL + 4 ) AS col2 FROM tab0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT + COUNT( * ) * + 70 * - - MAX( DISTINCT - - 60 ) AS col1 FROM tab2 AS cor0
----
12600

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT + COUNT ( * ) * + 70 * - - MAX ( DISTINCT - - 60 ) AS col1 FROM tab2 AS cor0
----
12600

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT + COUNT( ALL + col1 ) DIV - + 92 * 62 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 > 87
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT + COUNT ( ALL + col1 ) / - + 92 * 62 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 > 87
----
0

query II rowsort
SELECT ALL col0 * col0 * - 8, col2 AS col0 FROM tab0 AS cor0
----
-1800
47
-60552
10
-75272
99

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

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

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT NULL > - 41
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT MAX( + col1 ) + - COUNT( * ) * + 86 FROM tab2 AS cor0
----
-181

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT MAX ( + col1 ) + - COUNT ( * ) * + 86 FROM tab2 AS cor0
----
-181

query I rowsort
SELECT - + col1 + - + col0 + - col2 * col2 FROM tab2 AS cor0
----
-1741
-3506
-626

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

query I rowsort
SELECT DISTINCT + 7 * 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
133

query I rowsort
SELECT + + 21 AS col1 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT ALL 35 + - + col0 AS col2 FROM tab1 AS cor0
----
-16
-50
-56

query I rowsort
SELECT + col0 - - 82 FROM tab2 AS cor0
----
128
146
157

query I rowsort
SELECT + ( ( col1 ) ) - col1 * + - 83 * + + ( 71 ) - + col2 AS col2 FROM tab0 AS cor0
----
123764
477367
5795

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

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

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col0 + + col1 AS col0 FROM tab2 AS cor0
----
1270
3221
4028

query I rowsort
SELECT 74 + - - ( - + 94 ) AS col1 FROM tab2 AS cor0
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 97 * - col1 * - col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1807
SELECT DISTINCT - + CAST( - 13 AS SIGNED ) * col0 - + col1 DIV + + col2 FROM tab1 AS cor0
----
1105
1183
663

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - + CAST ( - 13 AS INTEGER ) * col0 - + col1 / + + col2 FROM tab1 AS cor0
----
1105
1183
663

query I rowsort
SELECT 89 + - 95 AS col1 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + col0 * + 46 AS col1 FROM tab1
----
2346
3910
4186

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT + col0 * + 80 + - + col1 DIV col1 FROM tab1
----
4079
6799
7279

skipif mysql # not compatible
query I rowsort label-1810
SELECT + col0 * + 80 + - + col1 / col1 FROM tab1
----
4079
6799
7279

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT + COUNT( * ), - 49 col1 FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
3
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1811
SELECT + COUNT ( * ), - 49 col1 FROM tab1 WHERE ( + - col0 ) IS NOT NULL
----
3
-49

query I rowsort
SELECT - 61 + - - col1 * + col2 FROM tab0
----
149
3746
38

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

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

query II rowsort
SELECT DISTINCT 99 AS col0, 97 * 42 FROM tab0
----
99
4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col1 col2, + col1 FROM tab0
----
1215
81
1827
21
97
1

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

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL 7 + - COUNT ( * ) - + 4 FROM tab2
----
0

query I rowsort
SELECT 58 * - - 80 FROM tab0 AS cor0
----
4640
4640
4640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT + - COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) + 7 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1818
SELECT + - COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) + 7 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT col2 * col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 * - 6 AS col0 FROM tab1 AS cor0
----
-269
-317
-525

query I rowsort
SELECT ALL + 94 * + + col0 - - - 21 FROM tab0 AS cor0
----
1389
8157
9097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - col1 ), - col2 col1 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL - + 67 DIV col1 FROM tab0 WHERE NULL IS NULL
----
-3
-67
0

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL - + 67 / col1 FROM tab0 WHERE NULL IS NULL
----
-3
-67
0

query I rowsort
SELECT DISTINCT + col2 * - col2 * - + col0 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 28 IS NULL
----

query II rowsort
SELECT DISTINCT col1 * - col1, col1 AS col0 FROM tab1 cor0
----
-196
14
-2209
47
-25
5

query I rowsort
SELECT - + col1 AS col0 FROM tab1 WHERE NOT ( NOT col1 + + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT - COUNT( - 64 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1828
SELECT - COUNT ( - 64 ) FROM tab0
----
-3

query II rowsort
SELECT col0, + col2 * col1 AS col0 FROM tab0
----
15
3807
87
210
97
99

query II rowsort
SELECT + 67, + col0 AS col0 FROM tab1
----
67
51
67
85
67
91

query II rowsort
SELECT col1 AS col0, + 90 * col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - 36 - - MIN( + col2 ) col1 FROM tab0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1832
SELECT DISTINCT - 36 - - MIN ( + col2 ) col1 FROM tab0
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1833
SELECT 65 + - 62 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT 65 + - 62 * - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( + col0 * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT 57 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1835
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT 57 + + col1 IS NOT NULL
----
0

query I rowsort
SELECT - ( - 57 ) * 12 FROM tab2
----
684
684
684

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL + MIN( col2 ) + + 20 AS col0 FROM tab2 WHERE + ( + 65 ) * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL + MIN ( col2 ) + + 20 AS col0 FROM tab2 WHERE + ( + 65 ) * col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1839
SELECT - 11 * COUNT( * ) + 62 DIV + 52 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 11 * COUNT ( * ) + 62 / + 52 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL 40 + ( COUNT( * ) ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL 40 + ( COUNT ( * ) ) FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 + + col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1842
SELECT ALL COUNT( * ) * - ( + CAST( MIN( ( - col1 ) ) AS SIGNED ) ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL COUNT ( * ) * - ( + CAST ( MIN ( ( - col1 ) ) AS INTEGER ) ) FROM tab0
----
243

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1843
SELECT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) <= + 2 * 30 + col0
----

skipif mysql # not compatible
query III rowsort label-1843
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) <= + 2 * 30 + col0
----

query I rowsort
SELECT DISTINCT col0 + + 1 AS col2 FROM tab2
----
47
65
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1845
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ) * + col0 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-1845
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ) * + col0 + + col2 )
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1847
SELECT + ( + CAST( NULL AS SIGNED ) ) + 20 * 46 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1847
SELECT + ( + CAST ( NULL AS INTEGER ) ) + 20 * 46 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT DISTINCT + col2 DIV - 27 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + col2 / - 27 FROM tab0
----
-1
-3
0

query I rowsort
SELECT 92 FROM tab1 WHERE col2 BETWEEN - col2 AND ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 64 * col2 > ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 27 col1 FROM tab0 WHERE ( NULL ) IS NULL
----
114
124
42

query I rowsort
SELECT - ( - 98 ) * + col0 + 88 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT DISTINCT MIN( ALL + col0 ) + ( + COUNT( * ) + + ( - 66 ) ) AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT MIN ( ALL + col0 ) + ( + COUNT ( * ) + + ( - 66 ) ) AS col0 FROM tab0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT CAST( NULL AS SIGNED ) / 28 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT CAST ( NULL AS INTEGER ) / 28 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN + 18 * - 63 AND + col2 * col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1856
SELECT + 91 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT + 91 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 47 * 88 FROM tab1
----
4136
4136
4136

query I rowsort
SELECT DISTINCT - col1 * 37 + 55 AS col1 FROM tab1
----
-130
-1684
-463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT - 60 * + col2 >= ( - col2 - + 41 )
----
46
64
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 + ( 56 ) < NULL
----

query I rowsort
SELECT ALL - 81 * - col0 AS col2 FROM tab2 AS cor0
----
3726
5184
6075

query I rowsort
SELECT DISTINCT + 87 * 77 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT DISTINCT + COUNT( ALL col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT + COUNT ( ALL col1 ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - 73 ) + + ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT ALL COUNT( * ) DIV + 44 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL COUNT ( * ) / + 44 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1866
SELECT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1867
SELECT ALL col0 DIV + 10 AS col0 FROM tab1 AS cor0
----
5
8
9

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL col0 / + 10 AS col0 FROM tab1 AS cor0
----
5
8
9

query I rowsort
SELECT - 3 + 0 AS col1 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 12 * + col2 AS col2 FROM tab0 AS cor0
----
1188
120
564

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - COUNT( ALL col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1871
SELECT - COUNT ( ALL col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT ( 12 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ( 12 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( - 84 ) FROM tab1 AS cor0
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT - col2 DIV - + col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1874
SELECT - col2 / - + col2 FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT DISTINCT + ( - COUNT( ALL + 8 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT + ( - COUNT ( ALL + 8 ) ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 89 AS col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL - 21 + + 83 AS col0 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT + 21 + - + col0 FROM tab0 AS cor0
----
-66
-76
6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + col0 BETWEEN NULL AND ( col2 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1881
SELECT + CAST( NULL AS SIGNED ) * col1 + 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT + CAST ( NULL AS INTEGER ) * col1 + 52 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + ( col1 ) + col1 )
----

query I rowsort
SELECT DISTINCT col2 * 40 FROM tab0 WHERE NOT ( NULL ) <= ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < 5
----

query I rowsort
SELECT DISTINCT - col0 + + 71 + - col2 - ( col2 ) AS col2 FROM tab2
----
-120
-21
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT + + 88 * + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1887
SELECT + + 88 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + ( - col1 ) ) * + col2 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT IN ( + - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 8 + - 8 AS col1 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT - 4 + - - col0 AS col0 FROM tab2 AS cor0
----
42
60
71

query I rowsort
SELECT ALL + 19 AS col0 FROM tab0 cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT - col0 + - + col0 * - 61 FROM tab1 AS cor0
----
3060
5100
5460

query I rowsort
SELECT - col0 * - + col1 - + 68 + 47 * - col2 AS col1 FROM tab2 AS cor0
----
1197
2231
2980

query I rowsort
SELECT ALL + col2 + - + col0 + 14 AS col2 FROM tab1 AS cor0
----
-12
-9
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + - ( - - 25 ) + + - MIN( DISTINCT + 88 ) FROM tab2 cor0
----
-113

skipif mysql # not compatible
query I rowsort label-1896
SELECT + - ( - - 25 ) + + - MIN ( DISTINCT + 88 ) FROM tab2 cor0
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT DISTINCT COUNT( * ) + - MAX( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1897
SELECT DISTINCT COUNT ( * ) + - MAX ( DISTINCT col1 ) col0 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT - COUNT( - - 66 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - COUNT ( - - 66 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT MIN( + 30 ) FROM tab0 WHERE + + col2 * + 84 + + col2 IN ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT MIN ( + 30 ) FROM tab0 WHERE + + col2 * + 84 + + col2 IN ( + col1 )
----
NULL

query I rowsort
SELECT col1 * 11 FROM tab1 WHERE + col1 <= col2 - - col1 / col0
----
154
517
55

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) >= + col2 - + col1 + + col0
----

query I rowsort
SELECT ALL - ( + 37 ) AS col1 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT + 97 AS col1 FROM tab2 WHERE NOT + - col0 + col1 BETWEEN ( NULL ) AND - 63
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT + MIN( - col0 ) * + MAX( DISTINCT - - 93 ) FROM tab1 AS cor0
----
-8463

skipif mysql # not compatible
query I rowsort label-1904
SELECT + MIN ( - col0 ) * + MAX ( DISTINCT - - 93 ) FROM tab1 AS cor0
----
-8463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT ALL + col0 - + col0 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN ( NULL ) AND + col2 - CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + col0 - + col0 AS col0 FROM tab1 AS cor0 WHERE - col1 BETWEEN ( NULL ) AND + col2 - CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT COUNT( * ) AS col1, + 80 col0 FROM tab1
----
3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1906
SELECT COUNT ( * ) AS col1, + 80 col0 FROM tab1
----
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT ALL + COUNT( * ) * - COUNT( DISTINCT + 36 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1907
SELECT ALL + COUNT ( * ) * - COUNT ( DISTINCT + 36 ) col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - + 68 * col2 AS col1 FROM tab0 AS cor0
----
-3196
-6732
-680

query I rowsort
SELECT + + col2 + col2 + + 8 FROM tab1 AS cor0
----
126
144
200

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 WHERE NOT ( col0 * - - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col1 / + col0 * - + col1
----

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT - col0 + - + col2 <> + 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1913
SELECT + CAST( NULL AS SIGNED ) * 31 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1913
SELECT + CAST ( NULL AS INTEGER ) * 31 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE 46 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1915
SELECT col1, - CAST( NULL AS SIGNED ) + 37 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1915
SELECT col1, - CAST ( NULL AS INTEGER ) + 37 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * 52 * - + col1 * 40 col2 FROM tab0
----
-2052960
-7918560
-97760

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT ALL - + COUNT( * ) + - + 60 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL - + COUNT ( * ) + - + 60 FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT DISTINCT 77 - - COUNT( * ) col2 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT DISTINCT 77 - - COUNT ( * ) col2 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL + MIN( ALL + 79 ) * + 41 AS col2 FROM tab0 AS cor0
----
3239

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + MIN ( ALL + 79 ) * + 41 AS col2 FROM tab0 AS cor0
----
3239

query I rowsort
SELECT 78 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + + 89 AS col1 FROM tab0 WHERE 98 IS NOT NULL
----
89

query I rowsort
SELECT - ( + 2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - 2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL BETWEEN NULL AND 35
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1924
SELECT DISTINCT - 71 DIV - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - 71 / - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT DISTINCT - col2 - 63, col2 AS col1 FROM tab0 AS cor0
----
-110
47
-162
99
-73
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT DISTINCT + col0 DIV - col1 + col1 FROM tab0 AS cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-1926
SELECT DISTINCT + col0 / - col1 + col1 FROM tab0 AS cor0
----
-96
17
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL - COUNT( ALL - 65 ) AS col2 FROM tab1 WHERE - 55 * - ( + - col0 ) + col0 <= 21
----
-3

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL - COUNT ( ALL - 65 ) AS col2 FROM tab1 WHERE - 55 * - ( + - col0 ) + col0 <= 21
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 34 col0, + 36 col0 FROM tab2
----
34
36
34
36
34
36

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL + 7 DIV + + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + 7 / + + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 78 * - col0 AS col2 FROM tab1
----
-3978
-6630
-7098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 79, - ( col1 ) + 75 col2 FROM tab0
----
-79
-6
-79
54
-79
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1932
SELECT CAST( 30 AS SIGNED ) * col0 DIV 55 * col1 * - col2 + - col2 AS col2 FROM tab1
----
-13629
-156672
-36384

skipif mysql # not compatible
query I rowsort label-1932
SELECT CAST ( 30 AS INTEGER ) * col0 / 55 * col1 * - col2 + - col2 AS col2 FROM tab1
----
-13629
-156672
-36384

query II rowsort
SELECT ALL 24, col2 AS col2 FROM tab0
----
24
10
24
47
24
99

query II rowsort
SELECT ALL 69 AS col1, col1 AS col0 FROM tab1
----
69
14
69
47
69
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1935
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IN ( - - col0 )
----

skipif mysql # not compatible
query III rowsort label-1935
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1936
SELECT 39 AS col0, - col2 * + - col1 / - CAST( NULL AS SIGNED ) + + 11 FROM tab0
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-1936
SELECT 39 AS col0, - col2 * + - col1 / - CAST ( NULL AS INTEGER ) + + 11 FROM tab0
----
39
NULL
39
NULL
39
NULL

query II rowsort
SELECT - col2 AS col1, col1 + + col0 AS col2 FROM tab0 AS cor0
----
-10
108
-47
96
-99
98

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( - ( + - 3 ) * - col2 + + col0 + - - col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 73 NOT IN ( + col0, col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( - 26 )
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE + ( - 46 ) + + 11 + - + 53 * + 86 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 64 col2 FROM tab0 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1943
SELECT ALL - 88 DIV + - col2 + - col1 + col1 + + 5 DIV - - 83 col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1943
SELECT ALL - 88 / + - col2 + - col1 + col1 + + 5 / - - 83 col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + 18 + + col2 FROM tab2 AS cor0
----
41
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 AS cor0 WHERE ( NULL ) = ( - - 76 + col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1946
SELECT - - 49 * 26 * - col1 DIV + col1 AS col2, col2 AS col1 FROM tab2 cor0
----
-1274
23
-1274
40
-1274
58

skipif mysql # not compatible
query II rowsort label-1946
SELECT - - 49 * 26 * - col1 / + col1 AS col2, col2 AS col1 FROM tab2 cor0
----
-1274
23
-1274
40
-1274
58

onlyif mysql # DIV for integer division: 
query II rowsort label-1947
SELECT - - col1 + + - col1, col0 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0
1
0
1

skipif mysql # not compatible
query II rowsort label-1947
SELECT - - col1 + + - col1, col0 / col2 AS col1 FROM tab1 cor0
----
0
0
0
1
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT col1 * - 19 + - + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-1458
-18
-378

skipif mysql # not compatible
query I rowsort label-1948
SELECT col1 * - 19 + - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + COUNT( * ) * + 22 AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + COUNT ( * ) * + 22 AS col2 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT DISTINCT 96 * + - COUNT( * ) FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT 96 * + - COUNT ( * ) FROM tab2
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT DISTINCT - MAX( ALL 50 ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - MAX ( ALL 50 ) FROM tab2
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col1 col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL col2 * + - col0 FROM tab1 WHERE NULL IS NULL
----
-4896
-5015
-6188

query I rowsort
SELECT 15 - + 0 * - + 40 + 45 / col2 AS col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 46 col0, 57 FROM tab0 cor0
----
-46
57
-46
57
-46
57

query II rowsort
SELECT DISTINCT - col1 AS col0, + 60 AS col1 FROM tab1 AS cor0
----
-14
60
-47
60
-5
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1957
SELECT DISTINCT COUNT( * ) + - CAST( + 45 AS SIGNED ) - + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT COUNT ( * ) + - CAST ( + 45 AS INTEGER ) - + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1958
SELECT col1 DIV - 94 + 49 FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-1958
SELECT col1 / - 94 + 49 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT - 35 + 56 FROM tab1 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1960
SELECT MIN ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1961
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 + - col1 BETWEEN NULL AND + 9 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1961
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 + - col1 BETWEEN NULL AND + 9 + + CAST ( NULL AS INTEGER )
----

query IIII rowsort
SELECT - col0 AS col0, col0 AS col1, col2 + col0, - - col0 AS col1 FROM tab1 AS cor0
----
12 values hashing to a689c014c027c4924538b46405de9cf4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + - col1 col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # DIV for integer division: 
query I rowsort label-1964
SELECT ALL - 53 DIV + col0 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - 53 / + col0 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE ( + 61 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE ( + 61 ) IS NULL
----
0

query II rowsort
SELECT + 77 * + col1 AS col2, col2 AS col2 FROM tab0 cor0
----
1617
10
6237
47
77
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1967
SELECT * FROM tab2 cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + col0 + + - col0 / + ( - CAST( NULL AS SIGNED ) ) NOT IN ( col2 * CAST( NULL AS SIGNED ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-1967
SELECT * FROM tab2 cor0 WHERE NOT - CAST ( NULL AS REAL ) + col0 + + - col0 / + ( - CAST ( NULL AS INTEGER ) ) NOT IN ( col2 * CAST ( NULL AS INTEGER ) + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # DIV for integer division: 
query I rowsort label-1969
SELECT - 94 DIV 10 FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-1969
SELECT - 94 / 10 FROM tab1
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1970
SELECT DISTINCT + MAX( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT + MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - 93 + + COUNT( * ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-1971
SELECT - 93 + + COUNT ( * ) FROM tab2
----
-90

query II rowsort
SELECT DISTINCT - - col0 + - 88 * + col0, + ( + col2 ) AS col0 FROM tab2 cor0
----
-4002
23
-5568
40
-6525
58

query I rowsort
SELECT DISTINCT - 30 + - col0 AS col1 FROM tab2 AS cor0
----
-105
-76
-94

query I rowsort
SELECT - col0 + col0 + - + col0 * col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + 65, col0 - + CAST( NULL AS SIGNED ) * - 1 + col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + 65, col0 - + CAST ( NULL AS INTEGER ) * - 1 + col1, - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( NOT ( col2 * + col2 ) > NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - - col1 + + col1 ) IS NULL
----

query I rowsort
SELECT ALL col2 + - ( + + 72 ) FROM tab1
----
-13
-4
24

query II rowsort
SELECT + 60 * + col1 AS col2, - col0 FROM tab2
----
3060
-46
4020
-75
4620
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT COUNT( * ) - + 76 * 37 FROM tab1
----
-2809

skipif mysql # not compatible
query I rowsort label-1980
SELECT COUNT ( * ) - + 76 * 37 FROM tab1
----
-2809

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT 21 * - ( SUM( + col0 ) ) - + ( - + COUNT( ALL + col2 ) ), ( - - 33 ) AS col2 FROM tab2
----
-3882
33

skipif mysql # not compatible
query II rowsort label-1981
SELECT 21 * - ( SUM ( + col0 ) ) - + ( - + COUNT ( ALL + col2 ) ), ( - - 33 ) AS col2 FROM tab2
----
-3882
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col2 col0 FROM tab0 AS cor0
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NOT 61 IS NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 14 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT SUM( ALL - 69 ) AS col0 FROM tab1 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT SUM ( ALL - 69 ) AS col0 FROM tab1 cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT + MAX( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT + MAX ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( + col2 ) AND NULL
----
NULL

query II rowsort
SELECT ALL col0 AS col2, - col2 * + 36 AS col0 FROM tab0
----
15
-1692
87
-360
97
-3564

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT DISTINCT 95 AS col2 FROM tab0 WHERE ( CAST( + col1 AS SIGNED ) * - col2 * + col1 - + 73 ) IS NOT NULL
----
95

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT 95 AS col2 FROM tab0 WHERE ( CAST ( + col1 AS INTEGER ) * - col2 * + col1 - + 73 ) IS NOT NULL
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col2, - 45 col0 FROM tab0
----
15
-45
87
-45
97
-45

query I rowsort
SELECT DISTINCT col2 * + col0 * 11 * - 50 FROM tab2
----
-1408000
-2392500
-581900

query II rowsort
SELECT + 28 AS col2, col0 * + - col1 * col2 FROM tab0 AS cor0
----
28
-18270
28
-57105
28
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

query II rowsort
SELECT ALL - 17 AS col2, + col1 * + - col1 AS col0 FROM tab2 AS cor0
----
-17
-2601
-17
-4489
-17
-5929

query II rowsort
SELECT 31 * + - col2, + col0 AS col2 FROM tab0
----
-1457
15
-3069
97
-310
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT - ( + 55 ) + + COUNT( + col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-1996
SELECT - ( + 55 ) + + COUNT ( + col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT + col2 + - 58 + col2 FROM tab0 AS cor0
----
-38
140
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1998
SELECT ALL + - CAST( NULL AS SIGNED ) + + - 11, COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1998
SELECT ALL + - CAST ( NULL AS INTEGER ) + + - 11, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT + - MIN( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE col1 + 48 - + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT + - MIN ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE col1 + 48 - + + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 - - 16 FROM tab0
----
17
37
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL + ( + MAX( ALL col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL + ( + MAX ( ALL col2 ) ) FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 + col0 * - 88 ) NOT BETWEEN col1 + + 23 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2003
SELECT ALL * FROM tab1 WHERE NOT + - 34 + - + col0 * + + 14 * + + ( - + CAST( NULL AS SIGNED ) ) NOT BETWEEN - col1 + col0 AND col1
----

skipif mysql # not compatible
query III rowsort label-2003
SELECT ALL * FROM tab1 WHERE NOT + - 34 + - + col0 * + + 14 * + + ( - + CAST ( NULL AS INTEGER ) ) NOT BETWEEN - col1 + col0 AND col1
----

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT - 10, - COUNT( * ) AS col1 FROM tab2
----
-10
-3

skipif mysql # not compatible
query II rowsort label-2005
SELECT - 10, - COUNT ( * ) AS col1 FROM tab2
----
-10
-3

query I rowsort
SELECT DISTINCT col1 * - + 8 * + col2 + col0 AS col2 FROM tab2
----
-24576
-31013
-9338

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( - 57 ) AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2008
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) FROM tab2 cor0 WHERE col0 * + CAST( - 85 AS SIGNED ) > ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0 WHERE col0 * + CAST ( - 85 AS INTEGER ) > ( - + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 AS col0, - col1 col0 FROM tab0 AS cor0
----
62
-1
62
-21
62
-81

query I rowsort
SELECT - + ( + 97 ) FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - 40 + col2 FROM tab2 AS cor0
----
-17
0
18

query I rowsort
SELECT + - 24 * - 92 * 48 - - + ( 28 ) AS col2 FROM tab2 AS cor0
----
106012
106012
106012

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * - 85 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 38 - col0 + + - col0 - - 85 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 96 col1 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2016
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + - col0 + + col0 + col0 + - col1 + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2016
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + - col0 + + col0 + col0 + - col1 + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT - COUNT( * ) DIV 53 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2017
SELECT - COUNT ( * ) / 53 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 + - col2 * - - 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL - SUM( + col2 ) * + + 4 FROM tab0 AS cor0
----
-624

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL - SUM ( + col2 ) * + + 4 FROM tab0 AS cor0
----
-624

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT - 98 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - 6 col1 FROM tab2
----
46
-6
64
-6
75
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2022
SELECT 2 AS col1, COUNT( * ) col0 FROM tab1
----
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2022
SELECT 2 AS col1, COUNT ( * ) col0 FROM tab1
----
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col1 FROM tab2
----
51
51
67
67
77
77

query I rowsort
SELECT ALL - col2 * - 20 AS col2 FROM tab0
----
1980
200
940

query I rowsort
SELECT DISTINCT - 41 + + 82 FROM tab1 AS cor0
----
41

query II rowsort
SELECT DISTINCT + 95, 20 * + + 96 + - + 68 AS col2 FROM tab2
----
95
1852

query I rowsort
SELECT + 78 * col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - ( - + col2 ) + + col1 + col0 NOT IN ( - col0, col0, - + 51 * + 58, col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2029
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + - CAST( - col0 AS SIGNED ) + - + col0 + 41 NOT BETWEEN 95 AND - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2029
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + - CAST ( - col0 AS INTEGER ) + - + col0 + 41 NOT BETWEEN 95 AND - 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT COUNT( * ) + - 19 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT COUNT ( * ) + - 19 FROM tab0 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT DISTINCT + MAX( - col0 ) - + COUNT( ALL + col2 ) + + 47 AS col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2031
SELECT DISTINCT + MAX ( - col0 ) - + COUNT ( ALL + col2 ) + + 47 AS col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT - - 79 AS col0 FROM tab2 AS cor0 WHERE NOT + 32 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 12 - + col1 IS NULL
----

query I rowsort
SELECT ALL - 73 - - + col0 AS col0 FROM tab1 AS cor0
----
-22
12
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT 96 + - COUNT( * ) * + - 40 FROM tab1 AS cor0 WHERE NULL < + 71 / 79
----
96

skipif mysql # not compatible
query I rowsort label-2035
SELECT 96 + - COUNT ( * ) * + - 40 FROM tab1 AS cor0 WHERE NULL < + 71 / 79
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT - CAST( 82 AS SIGNED ) FROM tab1 cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-2036
SELECT - CAST ( 82 AS INTEGER ) FROM tab1 cor0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT ALL - col0 DIV + col1 - - + col1 + + col0 + - col1 * col1 AS col0 FROM tab0
----
-337
-6465
0

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL - col0 / + col1 - - + col1 + + col0 + - col1 * col1 AS col0 FROM tab0
----
-337
-6465
0

query I rowsort
SELECT + 68 - - - 68 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2039
SELECT - col2 - col0 AS col1, CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab0
----
-196
NULL
-62
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-2039
SELECT - col2 - col0 AS col1, CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab0
----
-196
NULL
-62
NULL
-97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ALL col1 DIV 48 * + + 93 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL col1 / 48 * + + 93 AS col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2041
SELECT ALL - 17 DIV - 21 + + + col0 - ( - col2 ) FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - 17 / - 21 + + + col0 - ( - col2 ) FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT DISTINCT - 47 - - 54 DIV - col0 AS col2 FROM tab0 AS cor0
----
-47
-50

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - 47 - - 54 / - col0 AS col2 FROM tab0 AS cor0
----
-47
-50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > ( + - col0 )
----

query II rowsort
SELECT ( + + 51 ) * 90 AS col0, col2 FROM tab2 cor0
----
4590
23
4590
40
4590
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT - MAX( DISTINCT - 15 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT - MAX ( DISTINCT - 15 ) AS col1 FROM tab0 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2047
SELECT ALL - 22 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-22
NULL
-22
NULL
-22
NULL

skipif mysql # not compatible
query II rowsort label-2047
SELECT ALL - 22 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-22
NULL
-22
NULL
-22
NULL

query II rowsort
SELECT ALL + col0, - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2049
SELECT + + col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2049
SELECT + + col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - SUM( DISTINCT 14 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - SUM ( DISTINCT 14 ) FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT - COUNT( * ) DIV - COUNT( * ) col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2051
SELECT - COUNT ( * ) / - COUNT ( * ) col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + SUM( - col2 ) AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2052
SELECT + SUM ( - col2 ) AS col2 FROM tab2 cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2053
SELECT col0 * + CAST( col2 AS SIGNED ) + ( col2 ) FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-2053
SELECT col0 * + CAST ( col2 AS INTEGER ) + ( col2 ) FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT COUNT( ALL col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT COUNT ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT - - COUNT( * ) * + + 67 * MIN( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-15075

skipif mysql # not compatible
query I rowsort label-2055
SELECT - - COUNT ( * ) * + + 67 * MIN ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-15075

onlyif mysql # aggregate syntax: 
query II rowsort label-2056
SELECT ALL - COUNT( * ), + MAX( - col1 ) col0 FROM tab1 AS cor0
----
-3
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2056
SELECT ALL - COUNT ( * ), + MAX ( - col1 ) col0 FROM tab1 AS cor0
----
-3
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT - COUNT( * ) AS col1, 15 FROM tab1 AS cor0
----
-3
15

skipif mysql # not compatible
query II rowsort label-2057
SELECT - COUNT ( * ) AS col1, 15 FROM tab1 AS cor0
----
-3
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2058
SELECT + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2058
SELECT + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL - col1 * + - col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - + COUNT( * ) col1 FROM tab1 WHERE NOT 21 - + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT - + COUNT ( * ) col1 FROM tab1 WHERE NOT 21 - + + col1 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 69 * - + col2 + - - 53 col2 FROM tab1 AS cor0
----
4124
4745
6677

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 80 + - ( + ( + - ( - ( + col2 ) ) ) ) + - col2 IS NOT NULL
----

query I rowsort
SELECT 39 * - 86 FROM tab0
----
-3354
-3354
-3354

query I rowsort
SELECT - ( + + col0 ) AS col1 FROM tab1 WHERE - - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 41 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 41 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 * - col2 + - + col0 - + - col2 AS col1 FROM tab1 AS cor0
----
3455
4601
9261

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT - 21 + + MIN( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2067
SELECT - 21 + + MIN ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL + COUNT( * ) + - + COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) FROM tab0 cor0
----
0

query II rowsort
SELECT - - col0, ( - col2 ) - + 58 AS col0 FROM tab1 AS cor0 WHERE NULL >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 < - 33
----

query I rowsort
SELECT DISTINCT 50 - + col2 AS col0 FROM tab1
----
-18
-46
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2073
SELECT ALL + col2 DIV + + ( + + 42 ) FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + col2 / + + ( + + 42 ) FROM tab0
----
0
1
2

query I rowsort
SELECT ALL col2 - - col2 * - col0 AS col2 FROM tab1
----
-4800
-4956
-6120

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT 7 DIV - 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2075
SELECT 7 / - 70 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2076
SELECT + SUM( DISTINCT 22 ), 34 AS col0 FROM tab1
----
22
34

skipif mysql # not compatible
query II rowsort label-2076
SELECT + SUM ( DISTINCT 22 ), 34 AS col0 FROM tab1
----
22
34

query I rowsort
SELECT - ( - - 97 ) FROM tab1
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2078
SELECT + CAST( NULL AS SIGNED ), - ( 38 ) AS col2 FROM tab1 AS cor0
----
NULL
-38
NULL
-38
NULL
-38

skipif mysql # not compatible
query II rowsort label-2078
SELECT + CAST ( NULL AS INTEGER ), - ( 38 ) AS col2 FROM tab1 AS cor0
----
NULL
-38
NULL
-38
NULL
-38

query I rowsort
SELECT - - 39 AS col1 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2080
SELECT - 91 DIV - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2080
SELECT - 91 / - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT - + col0 * + 4 FROM tab2 AS cor0
----
-184
-256
-300

query II rowsort
SELECT ALL col2, - col2 AS col2 FROM tab2 cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL <= - 57 + + + col1 + - 44 )
----

query I rowsort
SELECT + 59 + 80 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec60c4a1fe63bc8e6608e204b0ee0405

query I rowsort
SELECT ALL - - 86 AS col1 FROM tab0 WHERE + + ( - + col0 ) IS NOT NULL
----
86
86
86

query I rowsort
SELECT col1 * col2 + + - col2 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - SUM( + - 87 ) FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-2087
SELECT - SUM ( + - 87 ) FROM tab2 AS cor0
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT - COUNT( - - 45 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - COUNT ( - - 45 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2089
SELECT ALL ( + 15 ) AS col2, + MIN( DISTINCT - + 42 ) FROM tab2 AS cor0
----
15
-42

skipif mysql # not compatible
query II rowsort label-2089
SELECT ALL ( + 15 ) AS col2, + MIN ( DISTINCT - + 42 ) FROM tab2 AS cor0
----
15
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * + col2 col1 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 48 + + - col0 + - + col1 FROM tab2 WHERE NOT + 77 * col1 + col1 NOT BETWEEN + - col0 AND - - col2 * + + 27 * col2 + col0 + - 8 / + col1
----
-49
-93
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + ( - COUNT( * ) ) * + - 11 AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-2093
SELECT + ( - COUNT ( * ) ) * + - 11 AS col1 FROM tab0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2094
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2094
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + + col1 NOT BETWEEN col0 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - - col1 - col2 FROM tab0
----
-195
-76
19

query I rowsort
SELECT ALL - col2 + 85 AS col0 FROM tab0
----
-14
38
75

query II rowsort
SELECT - col1 AS col0, - col0 AS col2 FROM tab1
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT DISTINCT 89 + col2 + - col1 AS col0 FROM tab0
----
187
55
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <= + 73
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 - - + 32 - - - 1 col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 + - 30 AS col2 FROM tab1 AS cor0
----
21
55
61

query I rowsort
SELECT + + col0 * 55 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * + 5 + - col0 col2 FROM tab0
----
153
163
235

query I rowsort
SELECT ALL 40 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT COUNT( * ) AS col1 FROM tab0 WHERE - col2 + ( + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2108
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - col2 + ( + col0 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT + COUNT( * ) + MAX( ALL + col1 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + COUNT ( * ) + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 + - 92 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 + - 92 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT - COUNT( - 90 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2111
SELECT - COUNT ( - 90 ) col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col2, + col0 * + col1 AS col0 FROM tab1
----
59
425
68
4277
96
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2113
SELECT ALL + 38 DIV + COUNT( * ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + 38 / + COUNT ( * ) AS col2 FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col2 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT ALL + + col0 / + 44 FROM tab0 AS cor0 WHERE - 20 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT - CAST( - + ( COUNT( + col1 ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2117
SELECT - CAST ( - + ( COUNT ( + col1 ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2118
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) * + col2 + + col2 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2118
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) * + col2 + + col2 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 19 ) FROM tab2
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2120
SELECT DISTINCT - col0 DIV + + col1 AS col0 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT - col0 / + + col1 AS col0 FROM tab0
----
-4
-97
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * + + ( 1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2122
SELECT ALL - 73 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - 73 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT - MAX( + col0 ) col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2123
SELECT - MAX ( + col0 ) col1 FROM tab2 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - - 85 * + col0 - + - col0 + + - col0 * - col1 * 45 AS col1, col2 col2, + col0 FROM tab1 AS cor0
----
9 values hashing to e04c48a318c58bc6803ca10c0f002013

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2125
SELECT + ( + 35 ) * + + CAST( NULL AS SIGNED ) * 27 + + 39 + + + COUNT( DISTINCT - - col0 ) * - MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT + ( + 35 ) * + + CAST ( NULL AS INTEGER ) * 27 + + 39 + + + COUNT ( DISTINCT - - col0 ) * - MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2126
SELECT DISTINCT - - CAST( + MIN( - col1 ) AS SIGNED ) DIV + 43 - - COUNT( * ) FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - - CAST ( + MIN ( - col1 ) AS INTEGER ) / + 43 - - COUNT ( * ) FROM tab0 AS cor0
----
2

query I rowsort
SELECT - col2 * + 20 * + 40 + - col1 AS col2 FROM tab0 AS cor0
----
-37681
-79201
-8021

query I rowsort
SELECT DISTINCT col1 + col0 + + col1 AS col0 FROM tab2
----
148
209
218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL col0 * - 34 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL col0 * - 34 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col0 + - + col1 AS col0 FROM tab1
----
-4910
-5020
-6235

onlyif mysql # DIV for integer division: 
query I rowsort label-2131
SELECT col0 + - col2 DIV - + 22 FROM tab0
----
101
17
87

skipif mysql # not compatible
query I rowsort label-2131
SELECT col0 + - col2 / - + 22 FROM tab0
----
101
17
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT - COUNT( DISTINCT - col1 ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2133
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND col0 * + col1 * - col0 + - - CAST( NULL AS SIGNED ) - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2133
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND col0 * + col1 * - col0 + - - CAST ( NULL AS INTEGER ) - ( col2 )
----

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 cor1 ) WHERE NOT + 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT COUNT( * ) - - MAX( DISTINCT col0 ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-2135
SELECT COUNT ( * ) - - MAX ( DISTINCT col0 ) FROM tab0
----
100

query I rowsort
SELECT + 0 + col0 AS col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT col2 AS col0, 0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 + col1 + + - col0 col1 FROM tab1 cor0
----
-42
-49
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT - - col1 * - + col2 / + + col0 * CAST( NULL AS SIGNED ) + - col1 + + 24 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - - col1 * - + col2 / + + col0 * CAST ( NULL AS INTEGER ) + - col1 + + 24 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - 33, 38 * + 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2141
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * - 82, 79 AS col2 FROM tab2 AS cor0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-2141
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * - 82, 79 AS col2 FROM tab2 AS cor0
----
NULL
79

query II rowsort
SELECT ALL 90 * + 34 * - - 79 AS col0, col1 AS col0 FROM tab2 AS cor0
----
241740
51
241740
67
241740
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2143
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 / + CAST( - 14 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2143
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 / + CAST ( - 14 AS INTEGER ) )
----

query I rowsort
SELECT ALL - col0 * - col2 + - + col1 AS col2 FROM tab2 AS cor0
----
1007
2483
4283

query I rowsort
SELECT ALL 81 AS col1 FROM tab0 cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2146
SELECT DISTINCT CAST( 76 AS SIGNED ) AS col2, - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
76
0

skipif mysql # not compatible
query II rowsort label-2146
SELECT DISTINCT CAST ( 76 AS INTEGER ) AS col2, - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
76
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * 33 / - + col2 - + col1 <> NULL
----

query I rowsort
SELECT ( + 4 ) + - col1 FROM tab0 WHERE NOT 37 + - col2 * + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT + + CAST( NULL AS SIGNED ) * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col1 - - col1 AS col0 FROM tab1 cor0
----
-1330
-290
-3149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2153
SELECT ( - COUNT( * ) ) DIV + - MIN( ALL + 17 ) + + 41 AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2153
SELECT ( - COUNT ( * ) ) / + - MIN ( ALL + 17 ) + + 41 AS col2 FROM tab2 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL - COUNT( * ) * + + 74 AS col1 FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - COUNT ( * ) * + + 74 AS col1 FROM tab1 AS cor0
----
-222

query II rowsort
SELECT ALL col2 AS col2, col1 * 70 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( - 26 )
----

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2 cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + ( - - COUNT( * ) ) * - 74 col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT ALL + ( - - COUNT ( * ) ) * - 74 col0 FROM tab2 WHERE NULL NOT BETWEEN + col2 AND NULL
----
0

query I rowsort
SELECT col1 + + 48 AS col0 FROM tab1
----
53
62
95

query I rowsort
SELECT + + 0 + - + col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 40 col2 FROM tab0 AS cor0
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT COUNT( * ) + + 90 AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2162
SELECT COUNT ( * ) + + 90 AS col1 FROM tab0 AS cor0
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT + + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 58 FROM tab0 cor0
----
58

query II rowsort
SELECT DISTINCT col1, + ( + col2 ) FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT - 83 AS col1, + COUNT( ALL + - col0 ) * - - ( - - 16 ) FROM tab2
----
-83
48

skipif mysql # not compatible
query II rowsort label-2166
SELECT - 83 AS col1, + COUNT ( ALL + - col0 ) * - - ( - - 16 ) FROM tab2
----
-83
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT col2 DIV + 71 col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2167
SELECT col2 / + 71 col2 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * - col2 col0 FROM tab1
----
5664
6528
9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2169
SELECT - COUNT( * ) AS col2, CAST( + + 19 AS SIGNED ) FROM tab0
----
-3
19

skipif mysql # not compatible
query II rowsort label-2169
SELECT - COUNT ( * ) AS col2, CAST ( + + 19 AS INTEGER ) FROM tab0
----
-3
19

query II rowsort
SELECT ( + 20 ) AS col1, - col0 FROM tab0
----
20
-15
20
-87
20
-97

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT COUNT( * ) AS col0, - ( + 9 ) AS col0 FROM tab0
----
3
-9

skipif mysql # not compatible
query II rowsort label-2172
SELECT COUNT ( * ) AS col0, - ( + 9 ) AS col0 FROM tab0
----
3
-9

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 15 + + 78 + - - col2 * - col2 + + - 31 AS col1 FROM tab0 AS cor0
----
-2147
-38
-9739

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - MAX( ALL + col0 ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-78

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - MAX ( ALL + col0 ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-78

query I rowsort
SELECT - 13 + - 95 AS col0 FROM tab2 AS cor0
----
-108
-108
-108

query I rowsort
SELECT DISTINCT - col1 - 79 FROM tab1 AS cor0
----
-126
-84
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL - - SUM( + col2 ) AS col2 FROM tab1 WHERE - 90 IS NOT NULL
----
223

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL - - SUM ( + col2 ) AS col2 FROM tab1 WHERE - 90 IS NOT NULL
----
223

query I rowsort
SELECT ALL - 93 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT + MAX( - 1 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2182
SELECT + MAX ( - 1 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL col0 AS col0, - 24 AS col1 FROM tab2
----
46
-24
64
-24
75
-24

query II rowsort
SELECT DISTINCT 40 AS col2, - 39 AS col0 FROM tab1
----
40
-39

query II rowsort
SELECT - 2 AS col2, + col2 AS col0 FROM tab1
----
-2
59
-2
68
-2
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT + MAX( 9 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2186
SELECT + MAX ( 9 ) AS col0 FROM tab0
----
9

query I rowsort
SELECT DISTINCT - ( + + ( - 16 ) ) FROM tab0
----
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + - + col2 / + + col2 * col1 * - - 4 - - 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col0 * - col2 * - col1 - + - col1 * - - col2 FROM tab0 AS cor0
----
-1589280
-852768
-931392

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 88 * + + col1 * + - col1 AS col0 FROM tab1 AS cor0
----
17248
194392
2200

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT + 55 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL - + ( + SUM( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + ( + SUM ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - col2 + - col0 - ( + col0 ) + - 80 IS NOT NULL
----

query II rowsort
SELECT + - col0 * col0 + + col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-2070
46
-4032
64
-5550
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2196
SELECT - COUNT( + - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2196
SELECT - COUNT ( + - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 NOT BETWEEN 23 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2198
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 5 ) - + + CAST( NULL AS SIGNED ) * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2198
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 5 ) - + + CAST ( NULL AS INTEGER ) * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - - col0 ) AS col2, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL + col2 * - col1 * - col0 AS col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT ALL + 39 * - + col0 AS col2 FROM tab1
----
-1989
-3315
-3549

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - ( ( + col2 ) ), - 51 * 94, + - 65 )
----

query I rowsort
SELECT ALL + ( ( - col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT - 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 cor0 WHERE NOT + ( - + col0 ) * col0 * - - col0 + col0 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2205
SELECT DISTINCT MIN( + - 85 ) AS col2, 71 AS col0 FROM tab2 AS cor0
----
-85
71

skipif mysql # not compatible
query II rowsort label-2205
SELECT DISTINCT MIN ( + - 85 ) AS col2, 71 AS col0 FROM tab2 AS cor0
----
-85
71

query I rowsort
SELECT ALL - col1 * col1 FROM tab2 AS cor0 WHERE NOT + 47 * col1 IS NULL
----
-2601
-4489
-5929

query I rowsort
SELECT - - 84 * 55 * - - 30 + - col1 AS col1 FROM tab2 AS cor0
----
138523
138533
138549

query I rowsort
SELECT DISTINCT + col0 * - 21 AS col1 FROM tab0
----
-1827
-2037
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( col0 ) col0 FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 WHERE + col0 > + col0
----

query I rowsort
SELECT 16 * 71 + ( - 56 ) FROM tab0
----
1080
1080
1080

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2212
SELECT DISTINCT * FROM tab0 WHERE col2 - + - col1 NOT BETWEEN + - col2 * - CAST( col2 AS SIGNED ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2212
SELECT DISTINCT * FROM tab0 WHERE col2 - + - col1 NOT BETWEEN + - col2 * - CAST ( col2 AS INTEGER ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + + COUNT( * ) + - + COUNT( - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + + COUNT ( * ) + - + COUNT ( - col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT - MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-2214
SELECT - MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
47

query I rowsort
SELECT DISTINCT - col1 - + + col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL + SUM( ALL + col1 ) col1 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2216
SELECT ALL + SUM ( ALL + col1 ) col1 FROM tab2
----
195

query II rowsort
SELECT col1, + 18 FROM tab1
----
14
18
47
18
5
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2218
SELECT + COUNT( * ) * + 90 AS col1, + COUNT( DISTINCT ( - col0 ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2218
SELECT + COUNT ( * ) * + 90 AS col1, + COUNT ( DISTINCT ( - col0 ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 66, + 12 * col1 col1 FROM tab1 AS cor0
----
-66
168
-66
564
-66
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 52 + - + ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND 52 + - + ( + - col1 )
----
0

query I rowsort
SELECT DISTINCT + + ( - 90 ) AS col1 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 38 + 26 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2223
SELECT DISTINCT * FROM tab0 WHERE - col0 * CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2223
SELECT DISTINCT * FROM tab0 WHERE - col0 * CAST ( col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 95 <> + col1 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT COUNT( 97 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2225
SELECT COUNT ( 97 ) FROM tab0 cor0
----
3

query I rowsort
SELECT - - 25 AS col1 FROM tab1 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT ALL MIN( + - col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL MIN ( + - col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT + 33 * + 17 AS col1 FROM tab0
----
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + - 72 col1 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT 42 + + col2 FROM tab2
----
100
65
82

query I rowsort
SELECT ALL col0 * 62 AS col1 FROM tab1
----
3162
5270
5642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col1 + + col1 FROM tab0 AS cor0
----
2
462
6642

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col1 + + col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2233
SELECT - CAST( NULL AS SIGNED ) AS col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-2233
SELECT - CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE col2 * col2 > 92 + - - col0 - - col2 - col0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT + - 98 DIV - - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2235
SELECT + - 98 / - - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 83 + 6 FROM tab0 cor0
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT + + CAST( + + 61 AS SIGNED ) * - 71 + - - AVG ( + + col2 ) AS col0 FROM tab1 AS cor0 WHERE 23 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT + + CAST ( + + 61 AS INTEGER ) * - 71 + - - AVG ( + + col2 ) AS col0 FROM tab1 AS cor0 WHERE 23 <> NULL
----
NULL

query I rowsort
SELECT - col2 * - col2 * - - 29 AS col0 FROM tab1
----
100949
134096
267264

query I rowsort
SELECT ALL col1 - - 66 FROM tab2
----
117
133
143

query I rowsort
SELECT + 22 * - col1 AS col0 FROM tab0
----
-1782
-22
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2241
SELECT - CAST( 43 AS SIGNED ) * + ( + + col2 ) * + col1 AS col1 FROM tab1
----
-12685
-137428
-57792

skipif mysql # not compatible
query I rowsort label-2241
SELECT - CAST ( 43 AS INTEGER ) * + ( + + col2 ) * + col1 AS col1 FROM tab1
----
-12685
-137428
-57792

query I rowsort
SELECT - - col0 * - col1 AS col0 FROM tab2 WHERE 82 BETWEEN - col2 * col2 + - + col0 AND - + 68
----

query II rowsort
SELECT - 88 - + - col0 AS col1, + ( + ( - + col2 ) ) * 73 FROM tab0
----
-1
-730
-73
-3431
9
-7227

query I rowsort
SELECT col2 - 20 - - + col1 AS col0 FROM tab2
----
105
54
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2245
SELECT ALL ( - ( - ( + - col1 ) ) ) DIV - ( + col0 ) + - - 86 + - 92 + col1 AS col1 FROM tab0
----
-5
15
80

skipif mysql # not compatible
query I rowsort label-2245
SELECT ALL ( - ( - ( + - col1 ) ) ) / - ( + col0 ) + - - 86 + - 92 + col1 AS col1 FROM tab0
----
-5
15
80

query I rowsort
SELECT 70 - + col1 * + col1 FROM tab2
----
-2531
-4419
-5859

query I rowsort
SELECT - col2 + 85 AS col0 FROM tab2
----
27
45
62

query I rowsort
SELECT ALL - ( col1 ) - - col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT - CAST( - - 69 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif mysql # not compatible
query I rowsort label-2249
SELECT - CAST ( - - 69 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT DISTINCT - 70 * - COUNT( * ) FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - 70 * - COUNT ( * ) FROM tab2
----
210

query I rowsort
SELECT ALL + col1 * + - col1 AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 75 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2253
SELECT ALL col1 * - CAST( + + 61 AS SIGNED ) AS col1, - 87 AS col1 FROM tab0 AS cor0
----
-1281
-87
-4941
-87
-61
-87

skipif mysql # not compatible
query II rowsort label-2253
SELECT ALL col1 * - CAST ( + + 61 AS INTEGER ) AS col1, - 87 AS col1 FROM tab0 AS cor0
----
-1281
-87
-4941
-87
-61
-87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + col1 * + - col0 * - - 88 AND NULL
----

query I rowsort
SELECT DISTINCT - 89 * - col0 AS col0 FROM tab2 AS cor0
----
4094
5696
6675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2256
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 / + 80 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 / + 80 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 7 AS col2, col0 FROM tab2 AS cor0
----
7
46
7
64
7
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 = col0 - + col1 * 91 + + col1 + - 90 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT MAX( - 58 ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-2259
SELECT MAX ( - 58 ) FROM tab0
----
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 16 + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2262
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) + + 25 - + 94 * - + col0 * - - 63 * 69 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2262
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) + + 25 - + 94 * - + col0 * - - 63 * 69 IS NULL
----

query II rowsort
SELECT ALL - col0, col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2264
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ) * + + 77 AS col1 FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ) * + + 77 AS col1 FROM tab0 AS cor0
----
231

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 12 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT DISTINCT COUNT( ALL col1 ) * + AVG ( ALL 24 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT COUNT ( ALL col1 ) * + AVG ( ALL 24 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT ALL + + CAST( - col1 AS SIGNED ) col1 FROM tab2 WHERE - + 62 = - - col1 + - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2267
SELECT ALL + + CAST ( - col1 AS INTEGER ) col1 FROM tab2 WHERE - + 62 = - - col1 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2268
SELECT + 30 - - col1 DIV + - col2 + col0 col1 FROM tab1 AS cor0
----
115
121
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2268
SELECT + 30 - - col1 / + - col2 + col0 col1 FROM tab1 AS cor0
----
115
121
81

query I rowsort
SELECT - - col1 + + 59 + + - col2 * - col1 FROM tab2 AS cor0
----
1283
3216
4012

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2270
SELECT + CAST( NULL AS DECIMAL ) + + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2270
SELECT + CAST ( NULL AS REAL ) + + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - col0 * - + col0 + + + 56 AS col0 FROM tab0 AS cor0
----
10631
75746
931547

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT + 80 * 32 + - col1 * - ( - - col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT + 80 * 32 + - col1 * - ( - - col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT + MIN( ALL col1 ) + 87 AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + MIN ( ALL col1 ) + 87 AS col2 FROM tab2 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-2274
SELECT ALL - + 63 DIV + + 60 - col0 + + - 12 * - 93 AS col2 FROM tab1 AS cor0
----
1024
1030
1064

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - + 63 / + + 60 - col0 + + - 12 * - 93 AS col2 FROM tab1 AS cor0
----
1024
1030
1064

query III rowsort
SELECT * FROM tab1 WHERE 72 * - + col1 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab0 WHERE + - 30 * - col2 + + col0 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL - COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL - COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
-9

query I rowsort
SELECT 60 * + 48 FROM tab2
----
2880
2880
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + 81 + col1 <> - 4 + + col2
----
3

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + 81 + col1 <> - 4 + + col2
----
3

query I rowsort
SELECT ALL - - ( - - col2 ) + + - col0 + 26 FROM tab1 AS cor0
----
0
3
71

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * + - col0 = - + 24
----

query I rowsort
SELECT DISTINCT + col2 * + 45 FROM tab0 AS cor0
----
2115
4455
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT DISTINCT SUM( ALL - col1 ) + + SUM( ALL - 88 ) * ( - 70 ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT SUM ( ALL - col1 ) + + SUM ( ALL - 88 ) * ( - 70 ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col1 / + 5 = ( + col1 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT COUNT( DISTINCT 21 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2285
SELECT COUNT ( DISTINCT 21 ) AS col0 FROM tab2
----
1

query I rowsort
SELECT - 32 + col0 AS col1 FROM tab1
----
19
53
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( - 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + COUNT( * ) + + 17 AS col0 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-2288
SELECT + COUNT ( * ) + + 17 AS col0 FROM tab0
----
20

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT ( ( + 36 ) / - col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 60 * - 86 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col1 * + 17 IS NULL
----

query I rowsort
SELECT col1 - col2 AS col0 FROM tab2 WHERE NOT + 86 IS NULL
----
28
37
9

query I rowsort
SELECT + ( 97 ) AS col2 FROM tab0
----
97
97
97

query I rowsort
SELECT DISTINCT 84 * + 15 - + col2 * ( + col0 ) AS col1 FROM tab1
----
-3636
-3755
-4928

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NULL < ( - col2 + 88 )
----

query I rowsort
SELECT DISTINCT ( 43 ) FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT + MIN( ALL - 69 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2297
SELECT + MIN ( ALL - 69 ) FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT - 65 - + ( COUNT( * ) + - COUNT( * ) ) AS col2 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2298
SELECT - 65 - + ( COUNT ( * ) + - COUNT ( * ) ) AS col2 FROM tab2
----
-65

query I rowsort
SELECT DISTINCT + col2 + + 89 AS col1 FROM tab0
----
136
188
99

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 FROM tab1
----
2505
7166
8213

query I rowsort
SELECT - ( + 2 ) - col0 AS col2 FROM tab2 WHERE + 89 * 7 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT CAST( col1 AS SIGNED ) col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT CAST ( col1 AS INTEGER ) col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT DISTINCT + ( COUNT( * ) ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT + ( COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 48 + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 71 * - 83 FROM tab1
----
-5893

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----
0

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col2 IN ( + col0 * + 13 )
----

query I rowsort
SELECT ALL + 78 + - col1 AS col0 FROM tab0 cor0
----
-3
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT DISTINCT 4 * - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT 4 * - COUNT ( * ) FROM tab1 AS cor0
----
-12

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 27 ) * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT ALL - CAST( + ( + col2 ) AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - CAST ( + ( + col2 ) AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - 98 / col0 AS col2 FROM tab2 WHERE col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2313
SELECT DISTINCT + ( - COUNT( * ) ) + + CAST( - COUNT( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT + ( - COUNT ( * ) ) + + CAST ( - COUNT ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2314
SELECT * FROM tab1 cor0 WHERE - col2 BETWEEN ( + CAST( NULL AS SIGNED ) ) AND + 96
----

skipif mysql # not compatible
query III rowsort label-2314
SELECT * FROM tab1 cor0 WHERE - col2 BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND + 96
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 43 + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + 7 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2317
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + 7 IN ( col0 )
----
0

query I rowsort
SELECT DISTINCT 5 * ( col0 ) FROM tab0 AS cor0 WHERE + col2 * col2 NOT IN ( col2 + 67 * col1 )
----
435
485
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT ALL - 17 * + 45 - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-762

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - 17 * + 45 - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-762

query I rowsort
SELECT DISTINCT - col0 - ( - 25 ) * ( col2 + col0 ) AS col2 FROM tab2 AS cor0
----
1679
2536
3250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT + ( - 30 ) - - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-29
-9
51

skipif mysql # not compatible
query I rowsort label-2321
SELECT + ( - 30 ) - - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-29
-9
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 88 - COUNT( * ) * + 46 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-2322
SELECT 88 - COUNT ( * ) * + 46 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL + COUNT( * ) col1 FROM tab1 WHERE NOT ( NULL ) <= + col2 OR NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2323
SELECT ALL + COUNT ( * ) col1 FROM tab1 WHERE NOT ( NULL ) <= + col2 OR NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT 21 - 94 FROM tab0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col0 + - col0 * + 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT 29 + SUM( col0 ) * COUNT( * ) FROM tab1
----
710

skipif mysql # not compatible
query I rowsort label-2327
SELECT 29 + SUM ( col0 ) * COUNT ( * ) FROM tab1
----
710

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT DISTINCT - col2 - + col1 DIV col0 FROM tab2
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - col2 - + col1 / col0 FROM tab2
----
-24
-41
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + col1 <= col1
----

query I rowsort
SELECT ALL - col1 - 73 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-154
-74
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + col2 * + col0 AND - 78
----

query I rowsort
SELECT ALL 5 * col2 FROM tab1 AS cor0
----
295
340
480

onlyif mysql # DIV for integer division: 
query I rowsort label-2333
SELECT DISTINCT col0 DIV - col1 FROM tab1 AS cor0 WHERE + col0 + 50 <> col1 + - ( col2 ) DIV col1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT col0 / - col1 FROM tab1 AS cor0 WHERE + col0 + 50 <> col1 + - ( col2 ) / col1
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2334
SELECT + col2 DIV CAST( 81 AS SIGNED ) AS col2 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2334
SELECT + col2 / CAST ( 81 AS INTEGER ) AS col2 FROM tab0 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 17 ) * col2 IN ( + col2 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 43 * - 10 AS col2 FROM tab0
----
-430

query I rowsort
SELECT ALL + + 63 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2338
SELECT ALL + CAST( 85 AS DECIMAL ) * + col2 AS col1 FROM tab1 WHERE NULL IN ( - col2 )
----

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL + CAST ( 85 AS REAL ) * + col2 AS col1 FROM tab1 WHERE NULL IN ( - col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( 99 * 47 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT DISTINCT COUNT( * ), COUNT( * ) * - MAX( DISTINCT col1 ) AS col2 FROM tab0
----
3
-243

skipif mysql # not compatible
query II rowsort label-2340
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * - MAX ( DISTINCT col1 ) AS col2 FROM tab0
----
3
-243

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - + col2 ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT + 34 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2342
SELECT + 34 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL + 79 AS col1, + col1 * + 10 AS col1 FROM tab2 AS cor0
----
79
510
79
670
79
770

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 94 + + col0 BETWEEN ( col0 ) AND - 45
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT ALL + - col2 * - col2 + - col1 AS col2 FROM tab1 AS cor0
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - MIN( ALL 30 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - MIN ( ALL 30 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT + - col0 * 53 FROM tab0 AS cor0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----
0

query I rowsort
SELECT + + 35 * - col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2351
SELECT 96 DIV + COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2351
SELECT 96 / + COUNT ( * ) FROM tab0 AS cor0
----
32

query I rowsort
SELECT - - col1 * - 2 - ( col1 ) AS col1 FROM tab1 cor0
----
-141
-15
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL - col1 DIV ( + 73 ) AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - col1 / ( + 73 ) AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT DISTINCT - + col1 DIV + 36 col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2354
SELECT DISTINCT - + col1 / + 36 col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + col0 * col1 FROM tab1 AS cor0 WHERE NOT col1 >= + - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT + COUNT( * ) * + + 84 AS col1 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-2356
SELECT + COUNT ( * ) * + + 84 AS col1 FROM tab2
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT CAST( NULL AS SIGNED ) / - + 57 + - col2 + - - col1 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT CAST ( NULL AS INTEGER ) / - + 57 + - col2 + - - col1 * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 - - 84 / + col1 ) < ( 30 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + + - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-66
-96
66

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 AND col0
----

query I rowsort
SELECT ALL + col0 * - ( + col2 ) + col2 * + 72 AS col2 FROM tab0
----
-150
-2475
2679

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT - col0 + + col1 * 98 AS col1 FROM tab0 AS cor0
----
1
1971
7923

query I rowsort
SELECT + col1 * + - 62 AS col0 FROM tab1 AS cor0
----
-2914
-310
-868

query I rowsort
SELECT DISTINCT col2 + - col2 FROM tab0 WHERE NOT ( NULL ) IN ( ( - - col1 ) )
----

query I rowsort
SELECT DISTINCT - + col2 + 9 AS col2 FROM tab0 cor0
----
-1
-38
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 72 * + col0 col1 FROM tab2 AS cor0
----
-3261
-4531
-5333

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT + - MIN( DISTINCT - col1 ) + + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT + - MIN ( DISTINCT - col1 ) + + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2369
SELECT * FROM tab2 AS cor0 WHERE - ( - + ( - CAST( - + CAST( 77 AS SIGNED ) AS SIGNED ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2369
SELECT * FROM tab2 AS cor0 WHERE - ( - + ( - CAST ( - + CAST ( 77 AS INTEGER ) AS INTEGER ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 22 - col0 - - ( 91 ) * 75 * 37 AS col0 FROM tab0 AS cor0
----
252450
252460
252532

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT 91 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2371
SELECT 91 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT - + ( 0 ) + - - col1 AS col0 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( 27 ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - ( + - COUNT( * ) ) * + COUNT( * ) + + + 3 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2374
SELECT - ( + - COUNT ( * ) ) * + COUNT ( * ) + + + 3 FROM tab1 AS cor0
----
12

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE + - ( - + col0 ) * - col1 * + + 47 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col2 FROM tab2 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT - MAX( col1 ) + - ( COUNT( * ) ) AS col1 FROM tab1 WHERE - + col0 >= ( + + 78 + + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT - MAX ( col1 ) + - ( COUNT ( * ) ) AS col1 FROM tab1 WHERE - + col0 >= ( + + 78 + + 32 )
----
NULL

query I rowsort
SELECT col0 * + - 94 FROM tab1
----
-4794
-7990
-8554

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL <= - 30 * - col0 )
----

query I rowsort
SELECT ALL + 90 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
90
90
90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - 21 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-21

query I rowsort
SELECT ALL ( 1 ) + + 93 AS col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT - col1 * col0 + + col1 + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1119
-1719
1

query I rowsort
SELECT col0 + col1 * 81 AS col1 FROM tab0 AS cor0
----
178
1788
6576

query I rowsort
SELECT + col2 * 62 AS col0 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL - MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL col1 * + 31 * col1 AS col0 FROM tab1
----
6076
68479
775

query III rowsort
SELECT * FROM tab0 WHERE - - ( - ( - col1 ) ) BETWEEN + col0 AND 47
----

query I rowsort
SELECT ALL - 5 * + col1 AS col1 FROM tab0
----
-105
-405
-5

query I rowsort
SELECT - 12 * + 57 FROM tab0
----
-684
-684
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT - COUNT( * ) + - SUM( + ( 81 ) ) FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT - COUNT ( * ) + - SUM ( + ( 81 ) ) FROM tab2
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT - COUNT( * ) * 86 FROM tab0
----
-258

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT - COUNT ( * ) * 86 FROM tab0
----
-258

query II rowsort
SELECT DISTINCT + 50 AS col1, col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT COUNT( ALL - 58 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2395
SELECT COUNT ( ALL - 58 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT MAX( + 13 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-2396
SELECT MAX ( + 13 ) FROM tab1
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < col1
----

query I rowsort
SELECT - 10 * + - 13 FROM tab2
----
130
130
130

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2399
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - + col0 ) * + col2 * - col1 IN ( + - CAST( + 98 AS SIGNED ) - CAST( NULL AS SIGNED ) ) AND NOT CAST( NULL AS SIGNED ) / col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2399
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - + col0 ) * + col2 * - col1 IN ( + - CAST ( + 98 AS INTEGER ) - CAST ( NULL AS INTEGER ) ) AND NOT CAST ( NULL AS INTEGER ) / col2 IS NOT NULL
----

query I rowsort
SELECT 78 + - col2 + + - col0 FROM tab0
----
-118
-19
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL ( - 49 ) * COUNT( * ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL ( - 49 ) * COUNT ( * ) FROM tab1
----
-147

query I rowsort
SELECT - 19 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 / - 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 - 16 AS col0 FROM tab0 AS cor0
----
-6
31
83

query I rowsort
SELECT ALL + col0 + + - 9 AS col0 FROM tab0 AS cor0
----
6
78
88

query I rowsort
SELECT DISTINCT - col1 * + ( 54 ) AS col2 FROM tab1 AS cor0
----
-2538
-270
-756

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + - COUNT( * ) + + + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 21 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2408
SELECT + - COUNT ( * ) + + + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + 21 > NULL
----
0

query II rowsort
SELECT + 33 * - col1 AS col2, + 82 FROM tab2 AS cor0
----
-1683
82
-2211
82
-2541
82

query I rowsort
SELECT - col2 FROM tab0 WHERE col2 NOT IN ( - ( - - col0 ) * 46 - - 95 ) AND NOT + col0 NOT BETWEEN ( NULL ) AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT + col1 AS col2 FROM tab1 WHERE NOT col1 BETWEEN + CAST( + - 74 AS SIGNED ) AND ( - + col1 + - 29 - - col2 + - ( + 81 ) * col0 )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2411
SELECT + col1 AS col2 FROM tab1 WHERE NOT col1 BETWEEN + CAST ( + - 74 AS INTEGER ) AND ( - + col1 + - 29 - - col2 + - ( + 81 ) * col0 )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2412
SELECT MIN( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2412
SELECT MIN ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2413
SELECT COUNT( * ) - - + MIN( DISTINCT - col2 ) + - + 15 * + - 49 + CAST( 85 AS SIGNED ) + 37 FROM tab0 WHERE NOT col2 + + 0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT COUNT ( * ) - - + MIN ( DISTINCT - col2 ) + - + 15 * + - 49 + CAST ( 85 AS INTEGER ) + 37 FROM tab0 WHERE NOT col2 + + 0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2414
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 87 * - CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2414
SELECT ALL * FROM tab0 WHERE NOT NULL <> + 87 * - CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 * + + 81 * col0 * - col0 FROM tab0
----
-6130890
-75450771
-856575

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 - 57 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2417
SELECT - col0 + - + col0 - CAST( + col2 AS DECIMAL ) - CAST( - - col1 AS SIGNED ) FROM tab1 cor0 WHERE NOT ( NULL = NULL )
----

skipif mysql # not compatible
query I rowsort label-2417
SELECT - col0 + - + col0 - CAST ( + col2 AS REAL ) - CAST ( - - col1 AS INTEGER ) FROM tab1 cor0 WHERE NOT ( NULL = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2419
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT 22 DIV + - 87 * - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT 22 / + - 87 * - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 2 * + col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT ALL - col0 + - + col0 * - col1 AS col1 FROM tab0 AS cor0
----
0
1200
1740

query I rowsort
SELECT DISTINCT - col1 * - col2 + + + col0 AS col2 FROM tab2 AS cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT ALL - - MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL - - MIN ( - col2 ) FROM tab1 AS cor0
----
-96

query II rowsort
SELECT DISTINCT + col0 AS col2, 86 * - col2 * col2 FROM tab0 AS cor0
----
15
-189974
87
-8600
97
-842886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2426
SELECT - + COUNT( * ) + CAST( 49 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2426
SELECT - + COUNT ( * ) + CAST ( 49 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT DISTINCT - ( + 96 ) AS col2 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT ALL COUNT( * ) * - COUNT( + + 91 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL COUNT ( * ) * - COUNT ( + + 91 ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE + ( 12 ) * + col0 + + - col2 + - col0 NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT - - 32 FROM tab1 WHERE ( NOT ( NOT ( - 43 + 58 + + 54 + 64 ) = ( NULL ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * + col1 + - ( - col0 ) NOT BETWEEN ( + col0 * + + 78 - - col1 ) AND ( NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT - - COUNT( * ) + 6 * - 44 * - - 87 + + 61 * - MIN( - col1 ) FROM tab1 AS cor0
----
-20098

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT - - COUNT ( * ) + 6 * - 44 * - - 87 + + 61 * - MIN ( - col1 ) FROM tab1 AS cor0
----
-20098

query I rowsort
SELECT DISTINCT - - 94 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
94

query I rowsort
SELECT col2 + + ( + - col2 ) * - - col1 AS col1 FROM tab2
----
-1150
-3040
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 40 ) col0 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + 99 * + - 65 FROM tab2 AS cor0
----
-6435
-6435
-6435

query I rowsort
SELECT - + col2 * + 3 AS col0 FROM tab0 AS cor0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT DISTINCT + SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT + SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + 70 col0 FROM tab0 AS cor0
----
-420
-420
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT - MAX( + 39 ) FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2440
SELECT - MAX ( + 39 ) FROM tab2 cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 / - col1 col1, 94 - - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * + 27 ) >= col1 / + - 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT - - col2 DIV + 92 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT - - col2 / + 92 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 91 * + - col1 + + 64 AS col0 FROM tab0 AS cor0
----
-1847
-27
-7307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT ALL - CAST( NULL AS SIGNED ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - CAST ( NULL AS INTEGER ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT ALL + col0 DIV 45 FROM tab1 WHERE NULL IS NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + col0 / 45 FROM tab1 WHERE NULL IS NULL
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2447
SELECT - 61 AS col1 FROM tab1 WHERE NOT - 42 > + - col0 + ( - CAST( + col2 AS SIGNED ) ) * - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2447
SELECT - 61 AS col1 FROM tab1 WHERE NOT - 42 > + - col0 + ( - CAST ( + col2 AS INTEGER ) ) * - CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----

query II rowsort
SELECT + col0 * + 58, + col2 FROM tab1
----
2958
96
4930
59
5278
68

query I rowsort
SELECT + col0 * 76 AS col2 FROM tab0
----
1140
6612
7372

query I rowsort
SELECT - col2 * - + col2 * + col1 AS col0 FROM tab1
----
129024
17405
217328

query II rowsort
SELECT - col2 * col0 AS col2, col1 FROM tab0 AS cor0
----
-705
81
-870
21
-9603
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= + - col1 + 73
----
15
81
47
97
1
99

query I rowsort
SELECT - 28 * - col0 FROM tab0 cor0
----
2436
2716
420

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2455
SELECT + 35 * ( ( 8 ) ) + - CAST( NULL AS SIGNED ) - + + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT + 35 * ( ( 8 ) ) + - CAST ( NULL AS INTEGER ) - + + col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 10 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 + 96 AS col1 FROM tab0 cor0
----
15
75
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + 50 col0 FROM tab1 cor0
----
-2350
-250
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT + - 37 * - + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT + - 37 * - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT MAX( - 77 ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-2460
SELECT MAX ( - 77 ) FROM tab0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL 85 * COUNT( * ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL 85 * COUNT ( * ) FROM tab1
----
255

query III rowsort
SELECT * FROM tab1 WHERE + 37 * - col2 * + 5 IS NULL
----

query II rowsort
SELECT ALL + col1, - col2 + + col2 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT 21 * + + 2 - + - COUNT( * ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-2464
SELECT 21 * + + 2 - + - COUNT ( * ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL MIN( DISTINCT - col1 ) col0 FROM tab1 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-2465
SELECT ALL MIN ( DISTINCT - col1 ) col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( 7 ) + - col1 FROM tab2 AS cor0
----
-44
-60
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT ALL col2 - - 98 DIV col2 + col1 FROM tab2
----
119
126
78

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL col2 - - 98 / col2 + col1 FROM tab2
----
119
126
78

query I rowsort
SELECT + 7 AS col1 FROM tab1 AS cor0 WHERE NOT 46 = NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 49 + + col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2470
SELECT ALL - col2 * CAST( - 69 AS SIGNED ) AS col1, 92 FROM tab0 AS cor0
----
3243
92
6831
92
690
92

skipif mysql # not compatible
query II rowsort label-2470
SELECT ALL - col2 * CAST ( - 69 AS INTEGER ) AS col1, 92 FROM tab0 AS cor0
----
3243
92
6831
92
690
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT - COUNT( * ) * 55 + + + 29 FROM tab2 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - COUNT ( * ) * 55 + + + 29 FROM tab2 AS cor0
----
-136

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + 2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - + col2 ) + + + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 20 * + 46 - + + 83 - + col1 AS col1 FROM tab1 AS cor0
----
790
823
832

query II rowsort
SELECT ALL + col0, - 12 FROM tab2
----
46
-12
64
-12
75
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 - - - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 90 AS col1, + col2 AS col1 FROM tab1
----
-90
59
-90
68
-90
96

query I rowsort
SELECT + col0 + + + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 3 * - col2 * + - 13 * + col0 * col0 * col0 AS col0 FROM tab1
----
1413101625
1998470292
496645344

query I rowsort
SELECT ALL ( - 61 ) AS col1 FROM tab0
----
-61
-61
-61

query I rowsort
SELECT ALL + - 43 FROM tab0 WHERE NULL IS NULL
----
-43
-43
-43

query I rowsort
SELECT ALL - 94 * - 8 AS col2 FROM tab2 AS cor0
----
752
752
752

query I rowsort
SELECT DISTINCT + - col0 + - 51 FROM tab1 AS cor0
----
-102
-136
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT SUM( DISTINCT + 86 ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2487
SELECT SUM ( DISTINCT + 86 ) FROM tab2 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 * - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 * - col1 <= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / + - col1 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT - MIN( 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - MIN ( 92 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 96 * col1 * + - 45 + + 72 col0, + 40 col2 FROM tab0 AS cor0
----
-349848
40
-4248
40
-90648
40

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE 59 >= - - col1 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT DISTINCT - ( - CAST( 68 AS SIGNED ) ) + - CAST( + 62 AS SIGNED ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - ( - CAST ( 68 AS INTEGER ) ) + - CAST ( + 62 AS INTEGER ) AS col1 FROM tab2 cor0
----
6

query I rowsort
SELECT ALL - col0 + 61 FROM tab2 cor0
----
-14
-3
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT - col1 + + 85 * + 29 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2495
SELECT - col1 + + 85 * + 29 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT COUNT( ALL + 93 ) + + 37 * 99 + - COUNT( * ) * + 90 AS col0 FROM tab2 cor0
----
3396

skipif mysql # not compatible
query I rowsort label-2496
SELECT COUNT ( ALL + 93 ) + + 37 * 99 + - COUNT ( * ) * + 90 AS col0 FROM tab2 cor0
----
3396

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT ALL - SUM( - col2 ) + 24 AS col0 FROM tab1 AS cor0
----
247

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL - SUM ( - col2 ) + 24 AS col0 FROM tab1 AS cor0
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL + MAX( + + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + MAX ( + + col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + ( - col1 ) + + col0 * + col2 * - 28 + + + 70 FROM tab2 AS cor0
----
-121797
-29605
-71687

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL - + COUNT( ALL - + col0 ) * SUM( ALL - col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL - + COUNT ( ALL - + col0 ) * SUM ( ALL - col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
558

query II rowsort
SELECT DISTINCT + 50 AS col2, 0 FROM tab2
----
50
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IN ( + 14, col0 )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2503
SELECT ALL COUNT( * ) + + COUNT( ALL + - col0 ), 39 - - 30 AS col1 FROM tab1
----
6
69

skipif mysql # not compatible
query II rowsort label-2503
SELECT ALL COUNT ( * ) + + COUNT ( ALL + - col0 ), 39 - - 30 AS col1 FROM tab1
----
6
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL + 52 + - + col1 - 7 + col0 / - + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + 52 + - + col1 - 7 + col0 / - + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 - 21 FROM tab1 AS cor0
----
-106
-112
-72

query I rowsort
SELECT ALL 98 - - col2 FROM tab2 AS cor0
----
121
138
156

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 + - 24 FROM tab1
----
59
-19
68
23
96
-10

query I rowsort
SELECT ALL 85 * + 52 FROM tab1
----
4420
4420
4420

query I rowsort
SELECT DISTINCT - + ( + + 24 ) FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ( + + col0 ) * + - col1 * - col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col1, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query II rowsort
SELECT ALL - col0, col2 AS col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT ( - col2 ) * - ( + 91 ) + + - col2 AS col1 FROM tab2
----
2070
3600
5220

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT DISTINCT - MIN( + col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT - MIN ( + col1 ) AS col0 FROM tab2
----
-51

query II rowsort
SELECT + col0 * col2, ( col0 ) * + 5 AS col0 FROM tab2
----
1058
230
2560
320
4350
375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT ALL col2 * + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT ALL col2 * + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) * + - 38 FROM tab1
----
1786
190
532

query I rowsort
SELECT DISTINCT 59 * - col0 FROM tab1
----
-3009
-5015
-5369

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - MAX( - - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2519
SELECT - MAX ( - - col2 ) FROM tab0
----
-99

query I rowsort
SELECT ALL col2 + 16 * - - col2 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL ( + COUNT( * ) ) + - 25 AS col1 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL ( + COUNT ( * ) ) + - 25 AS col1 FROM tab0 AS cor0
----
-22

query II rowsort
SELECT ALL - + col2 * - + col0 AS col0, + col1 FROM tab1 cor0
----
4896
14
5015
5
6188
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT + SUM( DISTINCT - 94 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + SUM ( DISTINCT - 94 ) FROM tab0 AS cor0
----
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - col2 * col1 + - - col2 + + + 99 <= ( + col0 + - col1 + col1 * + + col1 / + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT COUNT( * ) + 9 * + - SUM( DISTINCT 72 ) FROM tab0 AS cor0
----
-645

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT COUNT ( * ) + 9 * + - SUM ( DISTINCT 72 ) FROM tab0 AS cor0
----
-645

query I rowsort
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2527
SELECT ALL + - col2 col1, ( + 71 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
-59
-1
-68
-1
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2527
SELECT ALL + - col2 col1, ( + 71 ) / - col2 AS col1 FROM tab1 AS cor0
----
-59
-1
-68
-1
-96
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT ALL CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) + - - 80 * + col2 FROM tab0 AS cor0
----
3679
779
7919

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) + - - 80 * + col2 FROM tab0 AS cor0
----
3679
779
7919

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT SUM( + 85 ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2529
SELECT SUM ( + 85 ) FROM tab0 AS cor0
----
255

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 35 + + - col0 AS col1 FROM tab2 AS cor0
----
-110
-81
-99

query I rowsort
SELECT DISTINCT - 20 + - col2 FROM tab1 AS cor0
----
-116
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + - MIN( DISTINCT 53 ) * 18 AS col2 FROM tab2 cor0
----
-954

skipif mysql # not compatible
query I rowsort label-2533
SELECT + - MIN ( DISTINCT 53 ) * 18 AS col2 FROM tab2 cor0
----
-954

query I rowsort
SELECT DISTINCT + col1 - - 47 + + ( + - col2 ) * - col0 * - 72 AS col2 FROM tab0
----
-50632
-62572
-691368

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT + SUM( ALL - - ( + 85 ) ) * COUNT( * ) + - COUNT( * ) - + ( - - 22 ) * - + COUNT( * ) AS col0 FROM tab2
----
828

skipif mysql # not compatible
query I rowsort label-2535
SELECT + SUM ( ALL - - ( + 85 ) ) * COUNT ( * ) + - COUNT ( * ) - + ( - - 22 ) * - + COUNT ( * ) AS col0 FROM tab2
----
828

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT - 64 - - + MAX( + col2 ) DIV - ( - 93 ) col1 FROM tab2
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2536
SELECT - 64 - - + MAX ( + col2 ) / - ( - 93 ) col1 FROM tab2
----
-64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT IN ( - col2, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL - 84 FROM tab1 WHERE NOT NULL BETWEEN - 59 + + + CAST( + + 59 AS SIGNED ) + - col1 * col0 AND - + 78
----

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL - 84 FROM tab1 WHERE NOT NULL BETWEEN - 59 + + + CAST ( + + 59 AS INTEGER ) + - col1 * col0 AND - + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL + MIN( 9 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL + MIN ( 9 ) FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT - 49 * - - ( + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( ( col1 ), - 2 * col0 * col1 )
----

skipif mysql # not compatible
query I rowsort label-2540
SELECT - 49 * - - ( + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( ( col1 ), - 2 * col0 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT - 78 DIV + + 8 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif mysql # not compatible
query I rowsort label-2541
SELECT - 78 / + + 8 AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query II rowsort
SELECT ALL - - 56 * - col0, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 45 IN ( - col2, - col2 * 22 * + col1 )
----
-2576
23
-3584
40
-4200
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT DISTINCT SUM( col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT SUM ( col0 ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
185

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
26
26
26

query I rowsort
SELECT ALL + + col1 * + 25 AS col1 FROM tab2 AS cor0
----
1275
1675
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - 21 * + - COUNT( * ) - - COUNT( * ) * - + 20 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 21 * + - COUNT ( * ) - - COUNT ( * ) * - + 20 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT 51 DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2547
SELECT 51 / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < + col0 - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT COUNT( ALL + - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2549
SELECT COUNT ( ALL + - col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 BETWEEN + 89 AND - - col2 - - 27
----
51
14
96

query I rowsort
SELECT col2 * + - ( - col0 ) * - col1 * - 17 AS col2 FROM tab2
----
3351040
4954650
917286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73, 22 col2 FROM tab2
----
73
22

query I rowsort
SELECT ALL - col1 * + - 28 FROM tab0
----
2268
28
588

query II rowsort
SELECT ALL + col2 AS col2, 73 * - col2 - + col2 * - ( 90 ) AS col0 FROM tab1
----
59
1003
68
1156
96
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL COUNT( * ) * + MIN( DISTINCT + - col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL COUNT ( * ) * + MIN ( DISTINCT + - col0 ) FROM tab0
----
-291

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 AND - col2
----

query I rowsort
SELECT DISTINCT 81 + + ( col0 ) - + 37 FROM tab1
----
129
135
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + 6 * col2 + col1 FROM tab0 cor0
----
363
595
81

query I rowsort
SELECT + + ( + 23 ) AS col0 FROM tab0 AS cor0 WHERE ( - - col0 ) IS NULL
----

query I rowsort
SELECT ALL + 41 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
41
41
41

query I rowsort
SELECT ALL - ( + - col2 ) + + + col0 AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE - 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT 75 * - 16 * COUNT( * ) FROM tab1 AS cor0
----
-3600

skipif mysql # not compatible
query I rowsort label-2564
SELECT 75 * - 16 * COUNT ( * ) FROM tab1 AS cor0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT + COUNT( * ) + + 90 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-2565
SELECT + COUNT ( * ) + + 90 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT + COUNT( * ) AS col2 FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2566
SELECT + COUNT ( * ) AS col2 FROM tab2, tab0 cor0
----
9

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL > 77 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * col0 col0 FROM tab0
----
786
891
9604

query I rowsort
SELECT - - 41 + 84 * + col1 * - col1 FROM tab1 AS cor0
----
-16423
-185515
-2059

query I rowsort
SELECT + - col2 * - + 32 + 60 FROM tab0 AS cor0
----
1564
3228
380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT + + SUM( DISTINCT - + col0 ) * - 5 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT + + SUM ( DISTINCT - + col0 ) * - 5 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0 + col1, col1 AS col0 FROM tab1 cor0
----
-37
14
-44
47
-80
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - + 42 col2 FROM tab0 AS cor0
----
-3321
-41
-861

query I rowsort
SELECT ALL + col1 * - 25 * - col0 - + - col2 + - - col2 - - col2 AS col2 FROM tab0 AS cor0
----
2722
30516
45705

query I rowsort
SELECT DISTINCT - + 71 + col2 AS col1 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT ALL 75 DIV 33 + + 50 col1 FROM tab0 AS cor0
----
52
52
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2576
SELECT ALL 75 / 33 + + 50 col1 FROM tab0 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT + - 53 + - COUNT( * ) + - + 21 * - + SUM( col2 ) FROM tab2 AS cor0
----
2485

skipif mysql # not compatible
query I rowsort label-2577
SELECT + - 53 + - COUNT ( * ) + - + 21 * - + SUM ( col2 ) FROM tab2 AS cor0
----
2485

query II rowsort
SELECT ALL ( + - col2 ) * + + 3 + + + col2 * + 60 AS col0, col1 FROM tab2 AS cor0
----
1311
51
2280
77
3306
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL + + 60 AS col2 FROM tab0 WHERE NOT + col2 * CAST( + 19 AS SIGNED ) * - + col1 * - + 24 - + col2 IS NULL
----
60
60
60

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + + 60 AS col2 FROM tab0 WHERE NOT + col2 * CAST ( + 19 AS INTEGER ) * - + col1 * - + 24 - + col2 IS NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query II rowsort label-2580
SELECT COUNT( * ), - MIN( - - 74 ) * - COUNT( * ) AS col0 FROM tab0
----
3
222

skipif mysql # not compatible
query II rowsort label-2580
SELECT COUNT ( * ), - MIN ( - - 74 ) * - COUNT ( * ) AS col0 FROM tab0
----
3
222

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2582
SELECT col2 AS col0 FROM tab0 WHERE + col0 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2582
SELECT col2 AS col0 FROM tab0 WHERE + col0 >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE - col1 / + 57 * col2 - col0 / + 87 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2584
SELECT DISTINCT + COUNT( * ), COUNT( col1 ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2584
SELECT DISTINCT + COUNT ( * ), COUNT ( col1 ) AS col2 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT COUNT( ALL - - 73 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( ALL - - 73 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL 27, + col0 AS col0 FROM tab1
----
27
51
27
85
27
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL - + 98 + + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-98

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - + 98 + + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + - SUM( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2588
SELECT + - SUM ( DISTINCT + col0 ) AS col0 FROM tab0 cor0
----
-199

query II rowsort
SELECT DISTINCT + col1, 4 FROM tab2 AS cor0
----
51
4
67
4
77
4

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
2

query I rowsort
SELECT - - 18 * 32 + + col0 AS col2 FROM tab2 cor0
----
622
640
651

query I rowsort
SELECT ALL - + 50 / + 11 * - col2 AS col2 FROM tab2 cor0 WHERE NOT + 56 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT - + ( + COUNT( - - col1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT - + ( + COUNT ( - - col1 ) ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 * + 29 col2 FROM tab0
----
-841

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE - col0 = + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT 64 + + - COUNT( * ) col0 FROM tab0, tab0 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2597
SELECT 64 + + - COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT 12 + + col0 AS col0 FROM tab2
----
58
76
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL + + CAST( NULL AS SIGNED ) + 67 * + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL + + CAST ( NULL AS INTEGER ) + 67 * + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * 17 FROM tab2 AS cor0
----
-1139
-1309
-867

query I rowsort
SELECT DISTINCT 97 + + + 16 FROM tab2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT - 59 + - + COUNT( * ) FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - 59 + - + COUNT ( * ) FROM tab2 AS cor0
----
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 36 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( col1 ) + 2 AS col0 FROM tab2 cor0
----
53
69
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col0 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2607
SELECT ALL + + 97 + 52 + 76 DIV - - 99, 54 AS col2 FROM tab1 AS cor0
----
149
54
149
54
149
54

skipif mysql # not compatible
query II rowsort label-2607
SELECT ALL + + 97 + 52 + 76 / - - 99, 54 AS col2 FROM tab1 AS cor0
----
149
54
149
54
149
54

query I rowsort
SELECT + + 76 - col2 FROM tab0 AS cor0
----
-23
29
66

query I rowsort
SELECT DISTINCT 69 + + ( - - col1 ) FROM tab0 cor0
----
150
70
90

query I rowsort
SELECT col1 - 51 AS col2 FROM tab2
----
0
16
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2611
SELECT DISTINCT - 96 DIV 2 * + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-2208
-3072
-3600

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - 96 / 2 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-2208
-3072
-3600

query II rowsort
SELECT - ( + col0 ), - col0 AS col1 FROM tab2
----
-46
-46
-64
-64
-75
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-2613
SELECT - ( - col2 ) AS col0, 10 DIV col2 AS col2 FROM tab2
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-2613
SELECT - ( - col2 ) AS col0, 10 / col2 AS col2 FROM tab2
----
23
0
40
0
58
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col1 ) + - 67 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT + + ( - - col1 ) DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2615
SELECT + + ( - - col1 ) / col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT 47 DIV - + 66 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT 47 / - + 66 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT 23 AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT 23 AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL

query I rowsort
SELECT - + 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + - 44 * COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT 93 = + col0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2621
SELECT + - 44 * COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT 93 = + col0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL - 60 * COUNT( * ) FROM tab2 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL - 60 * COUNT ( * ) FROM tab2 AS cor0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2623
SELECT DISTINCT + + COUNT( * ), CAST( - 25 AS SIGNED ) AS col0 FROM tab0 cor0
----
3
-25

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT + + COUNT ( * ), CAST ( - 25 AS INTEGER ) AS col0 FROM tab0 cor0
----
3
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT + SUM( - 60 ) FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-2624
SELECT + SUM ( - 60 ) FROM tab1 cor0
----
-180

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab0 cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT + + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT + + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + 95, col2 AS col2 FROM tab2 AS cor0
----
95
23
95
40
95
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - 29 FROM tab1
----
1363
145
406

query III rowsort
SELECT ALL * FROM tab2 WHERE - 39 / - col2 - - - col0 IS NULL
----

query I rowsort
SELECT ALL + col2 + + col1 + - + 60 AS col0 FROM tab1 WHERE + - col1 * col1 = - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL + MIN( + col2 ) + - + COUNT( * ) * 85 FROM tab0 AS cor0
----
-245

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + MIN ( + col2 ) + - + COUNT ( * ) * 85 FROM tab0 AS cor0
----
-245

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 * - 54 * + 71 + - col1 = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ) AS col2, col1 col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2635
SELECT - MAX( col2 ) AS col0, - 96 FROM tab2 AS cor0
----
-58
-96

skipif mysql # not compatible
query II rowsort label-2635
SELECT - MAX ( col2 ) AS col0, - 96 FROM tab2 AS cor0
----
-58
-96

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE + col0 * - col1 <= + + 75 + + col1
----
15
87
97

query I rowsort
SELECT DISTINCT ( - col1 ) - + 80 AS col1 FROM tab1 AS cor0
----
-127
-85
-94

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL <= col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL - 18 - + - MIN( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - 18 - + - MIN ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
-8

query I rowsort
SELECT DISTINCT col1 - - col0 + + + col0 FROM tab2
----
143
205
217

query I rowsort
SELECT ALL 82 * col0 FROM tab1
----
4182
6970
7462

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL >= 31
----

query I rowsort
SELECT + + 37 + + 35 FROM tab2 AS cor0
----
72
72
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2645
SELECT ALL - COUNT( * ) * - 90 DIV COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - COUNT ( * ) * - 90 / COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-270

query I rowsort
SELECT ALL 53 * - - col2 FROM tab1 AS cor0
----
3127
3604
5088

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 43 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT - ( + ( - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2648
SELECT - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ( + + 48 ) FROM tab2
----
48
48
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2651
SELECT DISTINCT + - 87 * + col1 AS col2 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) >= col2
----

skipif mysql # not compatible
query I rowsort label-2651
SELECT DISTINCT + - 87 * + col1 AS col2 FROM tab0 WHERE + CAST ( NULL AS REAL ) >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT col2 + + + 54 / + - ( 74 ) / - col0 - + CAST( + col2 AS SIGNED ) FROM tab1 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2652
SELECT col2 + + + 54 / + - ( 74 ) / - col0 - + CAST ( + col2 AS INTEGER ) FROM tab1 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2653
SELECT - CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2653
SELECT - CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ( - - col2 ) * col0 + - col1 AS col0 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT + 14 * + - COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT + 14 * + - COUNT ( * ) FROM tab0 AS cor0
----
-42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( - + col1 / - 11 )
----

query I rowsort
SELECT ALL - 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT MAX( ALL - - 4 ) * + MAX( ALL col0 ) AS col2 FROM tab2
----
300

skipif mysql # not compatible
query I rowsort label-2658
SELECT MAX ( ALL - - 4 ) * + MAX ( ALL col0 ) AS col2 FROM tab2
----
300

query I rowsort
SELECT + col1 + + 43 - + 60 - + col1 FROM tab1
----
-17
-17
-17

query II rowsort
SELECT - col0 + + col2 AS col1, 48 FROM tab2
----
-17
48
-23
48
-24
48

query I rowsort
SELECT - + col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

query I rowsort
SELECT + + col2 + + 53 FROM tab0 AS cor0
----
100
152
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT + 90 FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2666
SELECT + col2 DIV + + 71 + - col1 * + col2 + - + 2, + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1345
14
-297
5
-3198
47

skipif mysql # not compatible
query II rowsort label-2666
SELECT + col2 / + + 71 + - col1 * + col2 + - + 2, + col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1345
14
-297
5
-3198
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 col0 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT col2 * - col0 * - - 1 * col2 * col1 AS col1 FROM tab0
----
-182700
-2683935
-950697

query III rowsort
SELECT * FROM tab0 WHERE + + col2 * - col0 IS NULL
----

query I rowsort
SELECT - col1 * + 29 * - - col1 FROM tab1
----
-5684
-64061
-725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2671
SELECT DISTINCT * FROM tab0 WHERE + col1 <= - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2671
SELECT DISTINCT * FROM tab0 WHERE + col1 <= - CAST ( + col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL COUNT( DISTINCT + + 56 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL COUNT ( DISTINCT + + 56 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT col0 - + - col0 AS col2 FROM tab1
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE - 94 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2675
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + ( - col0 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2675
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + ( - col0 ) AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 * + - col1 + - + col0 * + col0 FROM tab2
----
-10650
-4462
-9024

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2677
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2677
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 40 * - 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2600

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - 72 * + + ( + - COUNT( * ) ) AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 72 * + + ( + - COUNT ( * ) ) AS col2 FROM tab0
----
216

query I rowsort
SELECT ALL col0 * - + col0 + col1 AS col2 FROM tab1 AS cor0
----
-2587
-7220
-8234

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 * 93 < + 84
----

query I rowsort
SELECT + 38 FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT - col2 * - col0 + + 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-2684
SELECT - col2 * - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2685
SELECT DISTINCT 73 AS col2, + COUNT( * ) AS col1 FROM tab0
----
73
3

skipif mysql # not compatible
query II rowsort label-2685
SELECT DISTINCT 73 AS col2, + COUNT ( * ) AS col1 FROM tab0
----
73
3

query I rowsort
SELECT ALL - 96 + 7 - - - col0 FROM tab0 WHERE + 8 >= - + ( + + 20 ) * + 12 + col1 + + ( - col1 )
----
-104
-176
-186

query I rowsort
SELECT DISTINCT 64 * - 36 FROM tab2
----
-2304

query I rowsort
SELECT DISTINCT + 41 * - + 43 AS col0 FROM tab2
----
-1763

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT col1 <= - + 58
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT - - col1 * CAST( - - 51 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
2397
255
714

skipif mysql # not compatible
query I rowsort label-2690
SELECT - - col1 * CAST ( - - 51 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
2397
255
714

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( col2 <= + - 11 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - 88 col2 FROM tab2 AS cor0
----
-7040
-7040
-7040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2693
SELECT ALL COUNT( - col1 ) + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL COUNT ( - col1 ) + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 98 / - 49 FROM tab1 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT ( + + 28 ) FROM tab1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2696
SELECT + COUNT( * ) * - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT + COUNT ( * ) * - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2697
SELECT ALL - + col0 + 32 - + + col2 * 1 DIV col1 FROM tab0 AS cor0
----
-164
-55
17

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - + col0 + 32 - + + col2 * 1 / col1 FROM tab0 AS cor0
----
-164
-55
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 74 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 - - + 26 + + ( 81 ) AS col1 FROM tab0 AS cor0
----
332
7676
9516

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT COUNT( * ) * + COUNT( 49 ) + - 38 col0 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2700
SELECT COUNT ( * ) * + COUNT ( 49 ) + - 38 col0 FROM tab2 AS cor0
----
-29

query I rowsort
SELECT + col1 + + + col1 - - col2 FROM tab2 AS cor0
----
125
192
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT COUNT( * ) * - 21 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + CAST( NULL AS SIGNED ), 26, 97 / + 24 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT COUNT ( * ) * - 21 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + CAST ( NULL AS INTEGER ), 26, 97 / + 24 + + col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2703
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * 36 + 26 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * 36 + 26 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2704
SELECT 63 * - ( - - col2 ) + col2 + - + CAST( NULL AS SIGNED ) + - + col1 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-2704
SELECT 63 * - ( - - col2 ) + col2 + - + CAST ( NULL AS INTEGER ) + - + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL MAX( - - 90 ) AS col2 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL MAX ( - - 90 ) AS col2 FROM tab1 AS cor0
----
90

query I rowsort
SELECT - - col0 * + col0 * ( - 8 ) - + 94 + - 31 * - col0 * + col1 FROM tab1 cor0
----
-44719
1232
66245

query I rowsort
SELECT ALL ( 97 ) * - - col2 * col1 AS col2 FROM tab0
----
20370
369279
9603

query I rowsort
SELECT ALL - col2 * - - col2 * + 80 FROM tab2
----
-128000
-269120
-42320

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - 93 ) AS col2 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL CAST( - - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL CAST ( - - col1 AS INTEGER ) FROM tab0
----
1
21
81

query I rowsort
SELECT + 17 * + col2 - 61 AS col2 FROM tab1 AS cor0
----
1095
1571
942

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - MAX( - col1 ) AS col1 FROM tab0 WHERE NOT - 45 BETWEEN NULL AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2713
SELECT - MAX ( - col1 ) AS col1 FROM tab0 WHERE NOT - 45 BETWEEN NULL AND + col1
----
NULL

query II rowsort
SELECT DISTINCT + - col1 AS col1, - 17 FROM tab1 AS cor0
----
-14
-17
-47
-17
-5
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COUNT( * ) * + + 71 AS col0 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COUNT ( * ) * + + 71 AS col0 FROM tab2 AS cor0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT col2 * col2 + - + col1 + - col0 DIV + + col2 AS col2 FROM tab2 AS cor0
----
1522
3296
476

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT col2 * col2 + - + col1 + - col0 / + + col2 AS col2 FROM tab2 AS cor0
----
1522
3296
476

onlyif mysql # DIV for integer division: 
query II rowsort label-2717
SELECT DISTINCT + col0 AS col2, 56 DIV + 26 AS col0 FROM tab1 AS cor0
----
51
2
85
2
91
2

skipif mysql # not compatible
query II rowsort label-2717
SELECT DISTINCT + col0 AS col2, 56 / + 26 AS col0 FROM tab1 AS cor0
----
51
2
85
2
91
2

query II rowsort
SELECT - - col1 AS col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 19 * - - 36 * - col1 * - col1 AS col2, col0 AS col0 FROM tab0
----
301644
87
4487724
15
684
97

query I rowsort
SELECT ALL col0 * - + col0 * + - 2 FROM tab0
----
15138
18818
450

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND col2 + + 8
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT ALL - 85 * + COUNT( * ) + + 5 AS col2 FROM tab1
----
-250

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL - 85 * + COUNT ( * ) + + 5 AS col2 FROM tab1
----
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 col0, - col2 FROM tab2 AS cor0
----
70
-23
70
-40
70
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL COUNT( * ) * + SUM( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
585

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL COUNT ( * ) * + SUM ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT - + 17 * + 86 + + - 85 * CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1037
-272
2533

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - + 17 * + 86 + + - 85 * CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1037
-272
2533

query I rowsort
SELECT ALL - 21 AS col2 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT col2 * - ( + col1 ) * - + col2 * - - ( + ( - - 62 ) ) AS col1 FROM tab1
----
1079110
13474336
7999488

query I rowsort
SELECT 5 * + 1 AS col0 FROM tab2
----
5
5
5

query I rowsort
SELECT DISTINCT + 74 - 27 AS col0 FROM tab2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT - COUNT( col1 ) / + - COUNT( * ) + 13 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - COUNT ( col1 ) / + - COUNT ( * ) + 13 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 * 60 col1 FROM tab1
----
1440
1440
1440

query I rowsort
SELECT ALL + 19 + + col0 AS col1 FROM tab0
----
106
116
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT CAST( NULL AS SIGNED ) - + - SUM( col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT CAST ( NULL AS INTEGER ) - + - SUM ( col0 ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT 39, ( + + col1 ) FROM tab0
----
39
1
39
21
39
81

query II rowsort
SELECT ALL - col1 AS col0, 96 AS col1 FROM tab2
----
-51
96
-67
96
-77
96

query I rowsort
SELECT ALL col0 * + + col1 * + col2 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT 54 + - - 36 * - col1 AS col1 FROM tab0
----
-2862
-702
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( 91 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( 91 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) + - - 0 + 23 FROM tab1
----
-4873
-4992
-6165

query I rowsort
SELECT ALL 66 * 93 FROM tab2
----
6138
6138
6138

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2743
SELECT DISTINCT - col1 + 32 + + col1 + - CAST( - 66 AS SIGNED ) + col1 * + 36 * - + 8 + + + ( col2 ) * + col0, col1 AS col1 FROM tab2 cor0
----
-13532
51
-14848
67
-19518
77

skipif mysql # not compatible
query II rowsort label-2743
SELECT DISTINCT - col1 + 32 + + col1 + - CAST ( - 66 AS INTEGER ) + col1 * + 36 * - + 8 + + + ( col2 ) * + col0, col1 AS col1 FROM tab2 cor0
----
-13532
51
-14848
67
-19518
77

query I rowsort
SELECT col1 - col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT 7 * - col2 + col2 + - + col0 IN ( col1 * + col2 + - 73, col2 ) )
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + + col0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2746
SELECT DISTINCT col1 DIV + + col1 col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2746
SELECT DISTINCT col1 / + + col1 col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT + MAX( DISTINCT 69 ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-2747
SELECT + MAX ( DISTINCT 69 ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-207

query I rowsort
SELECT col2 * - - 8 FROM tab2 AS cor0
----
184
320
464

query I rowsort
SELECT - ( - + 93 ) * + - col2 + col0 AS col0 FROM tab0 AS cor0
----
-4356
-843
-9110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE NOT 76 * 12 NOT BETWEEN NULL AND - + ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, - col1 FROM tab1
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT ALL col2 * + + 5 FROM tab2
----
115
200
290

onlyif mysql # aggregate syntax: 
query II rowsort label-2754
SELECT ALL 85 col0, + COUNT( * ) FROM tab2
----
85
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2754
SELECT ALL 85 col0, + COUNT ( * ) FROM tab2
----
85
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2755
SELECT col1, + ( + 36 ) DIV - col2 AS col0 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-2755
SELECT col1, + ( + 36 ) / - col2 AS col0 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT + 31 + - + col1 FROM tab1
----
-16
17
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT - COUNT( * ) + + COUNT( ALL - col2 ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - COUNT ( * ) + + COUNT ( ALL - col2 ) AS col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 58 col0 FROM tab0 AS cor0
----
-58
-58
-58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 65 * - col2 ) NOT BETWEEN - 18 AND col0
----

query I rowsort
SELECT - 4 * 44 + - col1 FROM tab0
----
-177
-197
-257

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - ( - 49 ) * - ( ( + SUM( ALL 72 ) ) ) + COUNT( * ) FROM tab2
----
-10581

skipif mysql # not compatible
query I rowsort label-2761
SELECT - ( - 49 ) * - ( ( + SUM ( ALL 72 ) ) ) + COUNT ( * ) FROM tab2
----
-10581

query I rowsort
SELECT DISTINCT - col2 * + 26 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT 58 * col0 AS col0 FROM tab2
----
2668
3712
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT - col2 - col1 * - CAST( - 58 AS SIGNED ) FROM tab0
----
-1228
-157
-4745

skipif mysql # not compatible
query I rowsort label-2764
SELECT - col2 - col1 * - CAST ( - 58 AS INTEGER ) FROM tab0
----
-1228
-157
-4745

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT 62 + - col1 / - col0 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT MIN( - 13 ) AS col2 FROM tab1 WHERE - col1 * col1 + - col1 BETWEEN 16 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT MIN ( - 13 ) AS col2 FROM tab1 WHERE - col1 * col1 + - col1 BETWEEN 16 AND NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 - 97 col2 FROM tab1
----
-126

query I rowsort
SELECT 28 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col0 - 37 )
----

query I rowsort
SELECT DISTINCT 89 * 26 + + col2 FROM tab2
----
2337
2354
2372

query I rowsort
SELECT AVG ( DISTINCT + col1 ) AS col0 FROM tab0 WHERE ( NULL ) >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2772
SELECT - ( ( CAST( NULL AS SIGNED ) ) ) * ( - col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2772
SELECT - ( ( CAST ( NULL AS INTEGER ) ) ) * ( - col2 ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT DISTINCT + MIN( col2 ) FROM tab1 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT + MIN ( col2 ) FROM tab1 WHERE NULL IS NULL
----
59

query I rowsort
SELECT - 17 * 13 FROM tab0
----
-221
-221
-221

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2775
SELECT ALL * FROM tab1 WHERE + 61 = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2775
SELECT ALL * FROM tab1 WHERE + 61 = + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE + 84 NOT IN ( + ( ( 84 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + + 76 col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 66 col1 FROM tab0
----
153
163
81

query I rowsort
SELECT 21 * col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT - 13 * col0 + col0 * col2 FROM tab1 WHERE NOT col2 * + 81 + + col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col0 AND + col0 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2782
SELECT DISTINCT col1 DIV 87 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT col1 / 87 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL 43 + col1 FROM tab0 WHERE NOT NULL > + col0
----

query I rowsort
SELECT DISTINCT + col1 * + 67 FROM tab1
----
3149
335
938

query I rowsort
SELECT ( 5 ) * col0 FROM tab1 AS cor0
----
255
425
455

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 41 NOT IN ( - ( col0 ) - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 76 * col2 FROM tab2 AS cor0
----
1748
3040
4408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2788
SELECT CAST( - SUM( DISTINCT - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2788
SELECT CAST ( - SUM ( DISTINCT - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 88 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 7 * 96 + ( 57 ) * - col0 ) <> 65 * - col1 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2792
SELECT - 3 DIV + COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2792
SELECT - 3 / + COUNT ( * ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2793
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-2793
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT MIN( col1 ) * 55 AS col2 FROM tab1 AS cor0
----
275

skipif mysql # not compatible
query I rowsort label-2794
SELECT MIN ( col1 ) * 55 AS col2 FROM tab1 AS cor0
----
275

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL <> 95 / col1
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE NOT - 9 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + col1 AND - col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + ( col1 ) * + col2 + + 68 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 68 col0 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT 19 * col2 + col1 FROM tab0 WHERE NOT col2 IS NULL
----
1882
211
974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT col2 + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT - 82 DIV + SUM( ( - col2 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT - 82 / + SUM ( ( - col2 ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT + CAST( + - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2803
SELECT + CAST ( + - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT DISTINCT COUNT( + 79 ) + ( COUNT( * ) + - CAST( - 46 AS SIGNED ) ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT COUNT ( + 79 ) + ( COUNT ( * ) + - CAST ( - 46 AS INTEGER ) ) FROM tab1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - COUNT( col2 ) + - 68 AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - COUNT ( col2 ) + - 68 AS col0 FROM tab1
----
-71

query I rowsort
SELECT DISTINCT + ( + + 3 ) * - 47 FROM tab2 AS cor0
----
-141

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 + + col0 BETWEEN ( NULL ) AND NULL AND NOT ( + ( + col1 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 16 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - - 54 * + col0 - - col0 IS NULL
----

query I rowsort
SELECT 8 * col0 + + col1 FROM tab2
----
419
589
667

query I rowsort
SELECT + col1 + 32 * col2 AS col1 FROM tab0 WHERE ( col1 NOT BETWEEN NULL AND ( col2 - + col1 ) )
----
1585
341

query I rowsort
SELECT ALL - 57 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2813
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 + CAST( col1 AS SIGNED ) + + col1 >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2813
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 + CAST ( col1 AS INTEGER ) + + col1 >= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 13 + 70 FROM tab2 AS cor0 WHERE - col0 * col0 IS NULL
----

query I rowsort
SELECT ALL - 63 AS col0 FROM tab2 cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2816
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2816
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL + 10 - - MIN( ALL 27 ) AS col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL + 10 - - MIN ( ALL 27 ) AS col1 FROM tab0 AS cor0
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + - col0 ) BETWEEN col1 AND col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 62 AND ( col2 * + col0 )
----
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT - col2 FROM tab2 cor0 WHERE + ( - col2 ) >= + col0 * + col1 + - CAST( - col1 + + col2 * col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2820
SELECT - col2 FROM tab2 cor0 WHERE + ( - col2 ) >= + col0 * + col1 + - CAST ( - col1 + + col2 * col2 AS INTEGER )
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( - col1 * col0 )
----

query I rowsort
SELECT DISTINCT - 49 * - + col0 + 2 AS col2 FROM tab2 AS cor0
----
2256
3138
3677

query I rowsort
SELECT ALL col2 - col0 + 52 + + col0 + col1 AS col0 FROM tab1
----
116
162
167

query I rowsort
SELECT + col1 - + - col1 AS col1 FROM tab1
----
10
28
94

query I rowsort
SELECT 5 - 17 * col0 FROM tab0
----
-1474
-1644
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT 79 - + COUNT( * ) + - - 46 + + ( 7 ) + - 48 AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2826
SELECT 79 - + COUNT ( * ) + - - 46 + + ( 7 ) + - 48 AS col0 FROM tab0
----
81

query I rowsort
SELECT col2 + + col1 * - col2 * + - col2 + + 39 FROM tab0
----
179015
2149
9939

query II rowsort
SELECT DISTINCT + ( + + 27 ) AS col1, - 97 - 75 FROM tab2
----
27
-172

onlyif mysql # DIV for integer division: 
query I rowsort label-2829
SELECT col0 DIV col0 + 91 * - 74 + - col0 FROM tab0
----
-6748
-6820
-6830

skipif mysql # not compatible
query I rowsort label-2829
SELECT col0 / col0 + 91 * - 74 + - col0 FROM tab0
----
-6748
-6820
-6830

query I rowsort
SELECT + col0 * + ( + - 53 ) AS col1 FROM tab0
----
-4611
-5141
-795

query I rowsort
SELECT - col2 * - 38 * 34 FROM tab0
----
127908
12920
60724

query I rowsort
SELECT - 36 FROM tab2 WHERE NOT ( - + 8 ) BETWEEN ( col2 * - col1 ) AND ( - col2 )
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT + 97 * ( - COUNT( * ) ) col0 FROM tab0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2833
SELECT DISTINCT + 97 * ( - COUNT ( * ) ) col0 FROM tab0
----
-291

query II rowsort
SELECT DISTINCT + col2 * col2 AS col1, 90 AS col2 FROM tab0 AS cor0
----
100
90
2209
90
9801
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2835
SELECT ALL col2 * col1 * 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-2835
SELECT ALL col2 * col1 * CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT col2 + + + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
118
136
192

skipif mysql # not compatible
query I rowsort label-2836
SELECT col2 + + + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
118
136
192

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 67 * - col2 FROM tab1 AS cor0
----
3953
4556
6432

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 84 + - col1 col0 FROM tab2 cor0
----
-3915
-5453
-6367

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + col0 * + 0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - col0 * + col2 * - ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT - MIN( + - col2 ) col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT DISTINCT - MIN ( + - col2 ) col1 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * - - col1 > ( col0 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * - - col1 > ( col0 )
----
-59
-68
-96

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE NOT col1 IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT 6 DIV + + col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT 6 / + + col0 AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - 89 ) = 62
----

query I rowsort
SELECT col1 + - ( col1 ) + 61 AS col1 FROM tab0
----
61
61
61

query I rowsort
SELECT col2 * + col2 + + 43 FROM tab1
----
3524
4667
9259

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2850
SELECT + CAST( NULL AS SIGNED ) + ( - col2 ) + + + col2 * + 86 + + - col2 + + 36 / + 8 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT + CAST ( NULL AS INTEGER ) + ( - col2 ) + + + col2 * + 86 + + - col2 + + 36 / + 8 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 95 * col1 FROM tab2 WHERE col2 * 17 IS NOT NULL
----
4845
6365
7315

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col1 <> ( + - col2 - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * col1 + + 32 * - - 61 + - 32 / col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + col1 + + ( 17 ) * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT DISTINCT - col2 - - CAST( - - col0 AS SIGNED ) + 82 * - + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3886
-743
-8120

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT - col2 - - CAST ( - - col0 AS INTEGER ) + 82 * - + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-3886
-743
-8120

query I rowsort
SELECT ( + + 63 ) AS col1 FROM tab0 AS cor0
----
63
63
63

query I rowsort
SELECT + col0 * col0 * col0 AS col0 FROM tab0 AS cor0
----
3375
658503
912673

query I rowsort
SELECT - 66 AS col1 FROM tab1 WHERE + ( col1 ) IS NOT NULL
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 cor0 WHERE 43 <> - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2860
SELECT CAST( ( - col0 ) AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT CAST ( ( - col0 ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - + ( MIN( + + col1 ) ) + - 77 AS col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-2861
SELECT - + ( MIN ( + + col1 ) ) + - 77 AS col0 FROM tab0 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2862
SELECT DISTINCT + + col1 - col0 * - col2 + + 12 + col0 DIV col1 FROM tab1 AS cor0
----
4925
5049
6248

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + + col1 - col0 * - col2 + + 12 + col0 / col1 FROM tab1 AS cor0
----
4925
5049
6248

onlyif mysql # aggregate syntax: 
query II rowsort label-2863
SELECT - - 74 + - 75, + COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-1
3

skipif mysql # not compatible
query II rowsort label-2863
SELECT - - 74 + - 75, + COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT - 84 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT - 84 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT + 29 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col1 - + 99 FROM tab2 cor0
----
-22
-32
-48

query II rowsort
SELECT ALL - col2 AS col0, 86 FROM tab1
----
-59
86
-68
86
-96
86

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2868
SELECT DISTINCT * FROM tab1 WHERE 21 - col0 NOT BETWEEN NULL AND + col0 / + CAST( NULL AS DECIMAL ) * - col0
----

skipif mysql # not compatible
query III rowsort label-2868
SELECT DISTINCT * FROM tab1 WHERE 21 - col0 NOT BETWEEN NULL AND + col0 / + CAST ( NULL AS REAL ) * - col0
----

query I rowsort
SELECT + col1 * - col1 * + 86 FROM tab0
----
-37926
-564246
-86

query I rowsort
SELECT DISTINCT + col0 * 7 AS col1 FROM tab2
----
322
448
525

query I rowsort
SELECT + 2 * + col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2872
SELECT - col0 AS col2, - CAST( + + 47 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-47
-85
-47
-91
-47

skipif mysql # not compatible
query II rowsort label-2872
SELECT - col0 AS col2, - CAST ( + + 47 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-47
-85
-47
-91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT - + 94 * - 65 + - COUNT( * ) AS col0 FROM tab0 cor0
----
6107

skipif mysql # not compatible
query I rowsort label-2873
SELECT - + 94 * - 65 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
6107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 col0 FROM tab2 cor0
----
23
23
40
40
58
58

query II rowsort
SELECT col1, col1 * + 6 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
84
47
282
5
30

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL + - 45 - CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 WHERE 71 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + - 45 - CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 WHERE 71 + + col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2878
SELECT + CAST( NULL AS SIGNED ) + + 45 AS col2, + col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2878
SELECT + CAST ( NULL AS INTEGER ) + + 45 AS col2, + col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 * + col2 + - col2 col0 FROM tab0 AS cor0
----
-1980
-200
-940

query I rowsort
SELECT - - col2 * 43 + + - col1 AS col2 FROM tab1 AS cor0
----
2532
2877
4114

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 * - 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT ALL - + MAX( ALL 59 ) AS col2 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL - + MAX ( ALL 59 ) AS col2 FROM tab2 AS cor0
----
-59

query III rowsort
SELECT * FROM tab0 WHERE + col1 <> - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT 0 * + - ( COUNT( + 87 ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 0 * + - ( COUNT ( + 87 ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 70 + col2 - 11 AS col2 FROM tab2
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT col2 / - ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT col2 / - ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 15 ) col0 FROM tab0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab2 WHERE - col0 / - 51 + - col1 + - + col1 + col1 - + col2 <= NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2890
SELECT * FROM tab2 WHERE + 21 > ( + col2 ) * + + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2890
SELECT * FROM tab2 WHERE + 21 > ( + col2 ) * + + CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT 6 * COUNT( * ) AS col2 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2891
SELECT 6 * COUNT ( * ) AS col2 FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL - COUNT( * ) + - 7 FROM tab1 WHERE 92 / - + col1 IS NOT NULL AND col1 + - 7 * col2 / - + col0 IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL - COUNT ( * ) + - 7 FROM tab1 WHERE 92 / - + col1 IS NOT NULL AND col1 + - 7 * col2 / - + col0 IS NOT NULL
----
-10

query I rowsort
SELECT + 18 FROM tab1 AS cor0 WHERE NULL IS NULL
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 + + 96 col1 FROM tab2 AS cor0
----
189
189
189

query I rowsort
SELECT DISTINCT - 86 + - col1 - - 90 + + + 32 * + + 61 AS col1 FROM tab2 AS cor0
----
1879
1889
1905

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT DISTINCT 7 * - + COUNT( * ) AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT 7 * - + COUNT ( * ) AS col2 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - 88 + - COUNT( * ) col1 FROM tab2 WHERE NOT 76 >= ( NULL )
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2897
SELECT ALL - 88 + - COUNT ( * ) col1 FROM tab2 WHERE NOT 76 >= ( NULL )
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, - col1 + col2 AS col2 FROM tab2
----
51
-28
67
-9
77
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 76 - - + col2 BETWEEN + + 46 * + + col2 + + - 73 - + col1 * 19 AND 33 * + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT ALL col2 + - col0 + col1 + + 13 DIV 26 FROM tab0 AS cor0
----
-56
113
3

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL col2 + - col0 + col1 + + 13 / 26 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL - + ( 39 ) * + MAX( ALL + ( + 98 ) ) * + 2 FROM tab2 AS cor0
----
-7644

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - + ( 39 ) * + MAX ( ALL + ( + 98 ) ) * + 2 FROM tab2 AS cor0
----
-7644

query II rowsort
SELECT col2, - 28 + + col1 AS col0 FROM tab0 cor0
----
10
-7
47
53
99
-27

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * col1 col0 FROM tab1
----
1106
3713
395

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT + col2 * col0 NOT IN ( - + 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT DISTINCT MAX( ALL - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT MAX ( ALL - col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + ( + MIN( DISTINCT - + col2 ) ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2907
SELECT + ( + MIN ( DISTINCT - + col2 ) ) FROM tab2 cor0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2908
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL OR col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL OR col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT DISTINCT - col0 * + - col2 / + CAST( + - 40 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - col0 * + - col2 / + CAST ( + - 40 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 35 col2 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT ( + - 41 ) AS col0 FROM tab1
----
-41

query II rowsort
SELECT col1, col1 * - 33 * col1 AS col0 FROM tab1
----
14
-6468
47
-72897
5
-825

query I rowsort
SELECT ALL 86 * + col0 FROM tab0 WHERE NOT - col0 <> - col0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 77 + + SUM( DISTINCT - col2 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN 69 + + 34 * col1 AND + 39 / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT 77 + + SUM ( DISTINCT - col2 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN 69 + + 34 * col1 AND + 39 / + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2915
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
-3

query I rowsort
SELECT ALL col1 * - col1 * + ( + + 82 ) FROM tab1 AS cor0
----
-16072
-181138
-2050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 83 col1, col0 AS col2 FROM tab1 AS cor0
----
83
51
83
85
83
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( + - col2 ) + - col1 + + + 98 * - + col0 + 37 + - 51 col2 FROM tab1 cor0
----
-11830
-13603
-14242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT ALL - ( + 43 ) * + col0 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2029
-2829
-3292

skipif mysql # not compatible
query I rowsort label-2919
SELECT ALL - ( + 43 ) * + col0 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2029
-2829
-3292

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + SUM( ALL - - 87 ) * + 79 col0 FROM tab2
----
20619

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2920
SELECT ALL + SUM ( ALL - - 87 ) * + 79 col0 FROM tab2
----
20619

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT - 99 + - MIN( - - col1 ) + + COUNT( * ) * - 46 + 32 + MAX( - + col2 ) col1 FROM tab1
----
-269

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2921
SELECT - 99 + - MIN ( - - col1 ) + + COUNT ( * ) * - 46 + 32 + MAX ( - + col2 ) col1 FROM tab1
----
-269

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT 57 + - col2 FROM tab0
----
-42
10
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 * + 40 + - col1 col2 FROM tab2 cor0
----
-3451
-3467
-3477

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT + col0 DIV - col0 + + - col0 FROM tab0 cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-2926
SELECT + col0 / - col0 + + - col0 FROM tab0 cor0
----
-16
-88
-98

query I rowsort
SELECT DISTINCT col2 - + + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + 3 - - - 21 + + + col0 * + col0 FROM tab1 AS cor0
----
2577
7201
8257

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE ( ( NULL ) <= + col2 * 26 )
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT + - col1 * - col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + - col1 * - col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 - + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + 18 col1 FROM tab2 AS cor0
----
1512
1512
1512

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT - 68 * - ( + + COUNT( * ) ) col0, 33 FROM tab2 AS cor0
----
204
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2934
SELECT - 68 * - ( + + COUNT ( * ) ) col0, 33 FROM tab2 AS cor0
----
204
33

onlyif mysql # aggregate syntax: 
query II rowsort label-2935
SELECT - + 31 * - COUNT( * ), + 8 * - COUNT( * ) FROM tab1 WHERE NOT NULL = NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2935
SELECT - + 31 * - COUNT ( * ), + 8 * - COUNT ( * ) FROM tab1 WHERE NOT NULL = NULL
----
0
0

query II rowsort
SELECT ALL 14, - col0 * col1 AS col0 FROM tab0
----
14
-1215
14
-1827
14
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + ( - col0 ) + + 86, - 77 )
----

query I rowsort
SELECT DISTINCT + 67 * - - col1 AS col2 FROM tab0
----
1407
5427
67

query II rowsort
SELECT DISTINCT + 23 AS col1, col1 AS col0 FROM tab2
----
23
51
23
67
23
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT SUM( ALL 55 ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-2940
SELECT SUM ( ALL 55 ) FROM tab0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 WHERE - - 11 + col0 NOT BETWEEN col1 * - col1 * + - col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 WHERE - - 11 + col0 NOT BETWEEN col1 * - col1 * + - col2 AND NULL
----
3

query II rowsort
SELECT - 71 AS col1, col1 - + col2 * + col1 + ( col0 ) + + - col1 AS col2 FROM tab2 AS cor0
----
-71
-1127
-71
-3016
-71
-3811

query I rowsort
SELECT + ( + ( + col1 ) ) * - 15 * - - 58 * + col0 FROM tab1 AS cor0
----
-369750
-3720990
-621180

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT COUNT( DISTINCT - - col2 ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2944
SELECT COUNT ( DISTINCT - - col2 ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - ( col0 )
----

query II rowsort
SELECT - + col0 AS col2, + 8 FROM tab2 AS cor0
----
-46
8
-64
8
-75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT + ( COUNT( * ) ) + - COUNT( + - 76 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT + ( COUNT ( * ) ) + - COUNT ( + - 76 ) col0 FROM tab0
----
0

query I rowsort
SELECT col0 * 27 + col0 - - - col0 FROM tab2
----
1242
1728
2025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2949
SELECT CAST( NULL AS DECIMAL ) / + 71 + - - ( col1 ) / + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT CAST ( NULL AS REAL ) / + 71 + - - ( col1 ) / + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 55 FROM tab0
----
2585
5445
550

query I rowsort
SELECT - col2 * 43 FROM tab1 AS cor0
----
-2537
-2924
-4128

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <= - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 - - - col1 - + col0 / + 44 * - 60 AND + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2, - 89 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> 39
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * + 87 + + 11 * 60 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2957
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) + - col0 - 34 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL col0 * - CAST ( NULL AS REAL ) + - col0 - 34 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 * - 90 AS col1, - col1 FROM tab0 AS cor0
----
-4230
-81
-8910
-1
-900
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2959
SELECT - 61 DIV - 66 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT - 61 / - 66 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT SUM( + 16 ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT SUM ( + 16 ) AS col0 FROM tab1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT CAST( NULL AS SIGNED ) - + ( + + col2 ) * - 21 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT CAST ( NULL AS INTEGER ) - + ( + + col2 ) * - 21 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 64 * 70 + - 31 FROM tab2
----
4449
4449
4449

query I rowsort
SELECT col2 + + ( - col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 + - 98 AS col0 FROM tab2
----
-21
-31
-47

query I rowsort
SELECT ALL - 61 + + + col0 AS col2 FROM tab2 cor0
----
-15
14
3

query I rowsort
SELECT DISTINCT 26 + 46 AS col0 FROM tab1 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2967
SELECT * FROM tab1 AS cor0 WHERE - 1 / + - col1 NOT BETWEEN NULL AND + col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2967
SELECT * FROM tab1 AS cor0 WHERE - 1 / + - col1 NOT BETWEEN NULL AND + col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - + col1 + - + 94 AS col0 FROM tab2 AS cor0
----
-145
-161
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - + MAX( ALL col1 ) + - MAX( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT - + MAX ( ALL col1 ) + - MAX ( DISTINCT - col1 ) col1 FROM tab2 AS cor0
----
-26

query I rowsort
SELECT DISTINCT - 60 * col0 - col1 FROM tab1
----
-3074
-5105
-5507

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - + 27 + + 55 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT + COUNT( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 94 BETWEEN + 79 + + 11 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-2972
SELECT + COUNT ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 94 BETWEEN + 79 + + 11 AND NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * col2 * + ( + 95 ) BETWEEN col1 AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL COUNT( DISTINCT + 85 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL COUNT ( DISTINCT + 85 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, col1 col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT + 32 * - - COUNT( * ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 32 * - - COUNT ( * ) AS col1 FROM tab2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT MIN( DISTINCT - + 30 ) * AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT MIN ( DISTINCT - + 30 ) * AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT col2 DIV + col0 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2979
SELECT col2 / + col0 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2980
SELECT ALL - 94 DIV + 81 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2980
SELECT ALL - 94 / + 81 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col2 * - + 29 AS col1 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT DISTINCT + - 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, 87 + + col0 * - + col1 AS col1 FROM tab1
----
-59
-338
-68
-4190
-96
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT 11 + + COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2984
SELECT 11 + + COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT COUNT( * ) + - ( - - 63 ) AS col2 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT COUNT ( * ) + - ( - - 63 ) AS col2 FROM tab1 AS cor0
----
-60

query I rowsort
SELECT ALL col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( CAST( - 97 AS SIGNED ) ) IN ( 50 * - col2 * - col0, col0 )
----

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( CAST ( - 97 AS INTEGER ) ) IN ( 50 * - col2 * - col0, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-2988
SELECT - 56 + - + 50 AS col2, - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) col0, COUNT( * ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
-106
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2988
SELECT - 56 + - + 50 AS col2, - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) col0, COUNT ( * ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
-106
NULL
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - - COUNT( * ) + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2989
SELECT - - COUNT ( * ) + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT DISTINCT - MAX( ( + 88 ) ) AS col2 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT - MAX ( ( + 88 ) ) AS col2 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( + + 93 + col0, + col2 * col2 )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT + COUNT( DISTINCT 67 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2992
SELECT + COUNT ( DISTINCT 67 ) FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 85 * - col1 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2995
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - MIN( 38 ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2995
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - MIN ( 38 ) col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 BETWEEN NULL AND + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT + 26 * col1 DIV + + col2 FROM tab0
----
0
44
54

skipif mysql # not compatible
query I rowsort label-2997
SELECT + 26 * col1 / + + col2 FROM tab0
----
0
44
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2998
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 97 * col2 / 49 - + col1 - + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 97 * col2 / 49 - + col1 - + CAST ( col2 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT col2 - - 8 AS col0, 35 FROM tab2 AS cor0
----
31
35
48
35
66
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3000
SELECT DISTINCT col2 + - + col2 DIV + ( + 18 ) col0 FROM tab2 AS cor0
----
22
38
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3000
SELECT DISTINCT col2 + - + col2 / + ( + 18 ) col0 FROM tab2 AS cor0
----
22
38
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT DISTINCT COUNT( * ) * + 25 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
225

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT COUNT ( * ) * + 25 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
225

query II rowsort
SELECT + col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col2 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT DISTINCT - 80 * - - 67 AS col2 FROM tab1 AS cor0
----
-5360

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 6 DIV 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3005
SELECT 6 / 92 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3006
SELECT ALL + 21 DIV ( - col2 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL + 21 / ( - col2 ) FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3007
SELECT DISTINCT - 56 * - 35 * + + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1960

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - 56 * - 35 * + + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT + COUNT( DISTINCT - 28 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + COUNT ( DISTINCT - 28 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - MAX( - col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3009
SELECT - MAX ( - col1 ) AS col2 FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE - 67 + col0 / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT MAX( DISTINCT 30 ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3011
SELECT MAX ( DISTINCT 30 ) AS col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL + col0 * + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT - COUNT( * ) * + ( - 13 ) AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - COUNT ( * ) * + ( - 13 ) AS col0 FROM tab0
----
39

query I rowsort
SELECT DISTINCT 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
6

query II rowsort
SELECT + ( + col1 ) + - col2 AS col2, + col1 FROM tab0
----
-98
1
11
21
34
81

query I rowsort
SELECT ( + + 92 ) FROM tab0 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + 36 + - SUM( col0 ) AS col0 FROM tab0 AS cor0
----
-163

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + 36 + - SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3019
SELECT * FROM tab0 cor0 WHERE col1 >= col1 * + + col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3019
SELECT * FROM tab0 cor0 WHERE col1 >= col1 * + + col0 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 + + 76 FROM tab2 AS cor0
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + ( - + 68 ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-3021
SELECT + ( - + 68 ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 / + col2 col0 FROM tab1 cor0 WHERE 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3023
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 76 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 76 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3024
SELECT - 69 - 96 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT - 69 - 96 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT - col1 DIV col1 - + 44 FROM tab0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3025
SELECT - col1 / col1 - + 44 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT col1 - 55 * col1 AS col1 FROM tab1
----
-2538
-270
-756

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3027
SELECT ALL 78 AS col2, CAST( + + ( - 32 ) AS SIGNED ) AS col1 FROM tab1
----
78
-32
78
-32
78
-32

skipif mysql # not compatible
query II rowsort label-3027
SELECT ALL 78 AS col2, CAST ( + + ( - 32 ) AS INTEGER ) AS col1 FROM tab1
----
78
-32
78
-32
78
-32

query I rowsort
SELECT - col0 + + 65 AS col2 FROM tab0
----
-22
-32
50

query I rowsort
SELECT col0 + - 18 AS col0 FROM tab1
----
33
67
73

query I rowsort
SELECT + + 61 + + col2 FROM tab1 AS cor0
----
120
129
157

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3031
SELECT DISTINCT + - col0, + 57 + + col0 * + col1 * - col1 * 83 + - 96 - - + col0 * col0 * + col1 / + col1 * - + col1 * - col2 * - col2 FROM tab2 AS cor0 WHERE + 85 + - 2 BETWEEN CAST( NULL AS SIGNED ) - col2 AND + col2 + + ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query II rowsort label-3031
SELECT DISTINCT + - col0, + 57 + + col0 * + col1 * - col1 * 83 + - 96 - - + col0 * col0 * + col1 / + col1 * - + col1 * - col2 * - col2 FROM tab2 AS cor0 WHERE + 85 + - 2 BETWEEN CAST ( NULL AS INTEGER ) - col2 AND + col2 + + ( + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + col1 AS col2, - 65 AS col0 FROM tab0 AS cor0
----
1
-65
21
-65
81
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3033
SELECT + - 73 col0, COUNT( * ) FROM tab1 AS cor0
----
-73
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3033
SELECT + - 73 col0, COUNT ( * ) FROM tab1 AS cor0
----
-73
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT - ( + + COUNT( * ) ) * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3034
SELECT - ( + + COUNT ( * ) ) * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT 75 * - MIN( DISTINCT - col1 ) AS col1 FROM tab0
----
6075

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT 75 * - MIN ( DISTINCT - col1 ) AS col1 FROM tab0
----
6075

query I rowsort
SELECT + 37 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT SUM( ALL - - 77 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
231

skipif mysql # not compatible
query I rowsort label-3037
SELECT SUM ( ALL - - 77 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 18 * col2 * + - col0 col1 FROM tab0 cor0
----
-12690
-15660
-172854

query I rowsort
SELECT DISTINCT + + 30 AS col0 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN 95 AND NULL
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3040
SELECT + + COUNT( * ) DIV + 64 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT + + COUNT ( * ) / + 64 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( - + 58 ) AS col1 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3042
SELECT - CAST( NULL AS DECIMAL ) * - - ( col1 ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT - CAST ( NULL AS REAL ) * - - ( col1 ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 col1 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT - - col1 * + + ( 89 ) AS col1 FROM tab0 AS cor0
----
1869
7209
89

query II rowsort
SELECT ALL col0, col2 * + 92 FROM tab2
----
46
2116
64
3680
75
5336

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 < - + 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT ALL COUNT( * ) col0 FROM tab0 WHERE + 15 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3047
SELECT ALL COUNT ( * ) col0 FROM tab0 WHERE + 15 < NULL
----
0

query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 + 32 FROM tab0 WHERE NULL IS NULL
----
15
79
87
42
97
131

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 91 * ( + - col0 ) <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT - 7 + COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-3050
SELECT - 7 + COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT - ( MIN( + col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - ( MIN ( + col2 ) ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab2 WHERE + 82 * 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3053
SELECT DISTINCT * FROM tab1 WHERE col0 * 31 - - - col1 - + CAST( NULL AS SIGNED ) - - col0 * + + 9 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3053
SELECT DISTINCT * FROM tab1 WHERE col0 * 31 - - - col1 - + CAST ( NULL AS INTEGER ) - - col0 * + + 9 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3054
SELECT ALL + col1 + + + col0 * col1 DIV + - 2 FROM tab2 AS cor0
----
-1122
-2387
-2445

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + col1 + + + col0 * col1 / + - 2 FROM tab2 AS cor0
----
-1122
-2387
-2445

query II rowsort
SELECT DISTINCT - col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + - ( + col0 ) col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3059
SELECT ALL * FROM tab1 cor0 WHERE + + CAST( + + 81 AS SIGNED ) BETWEEN ( NULL ) AND ( NULL ) AND NOT ( NULL IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3059
SELECT ALL * FROM tab1 cor0 WHERE + + CAST ( + + 81 AS INTEGER ) BETWEEN ( NULL ) AND ( NULL ) AND NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL - - col1 + + + ( - 60 ) AS col1 FROM tab1 AS cor0
----
-13
-46
-55

query I rowsort
SELECT ALL col1 * - - 11 - - - col2 * + 25 - + 12 FROM tab2 AS cor0
----
-165
-26
-725

query I rowsort
SELECT + 47 * + + col2 + + 23 FROM tab2 AS cor0
----
1104
1903
2749

query I rowsort
SELECT - 20 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT DISTINCT - CAST( - 57 AS SIGNED ) * 47 FROM tab2
----
2679

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - CAST ( - 57 AS INTEGER ) * 47 FROM tab2
----
2679

query I rowsort
SELECT ( - 71 ) AS col1 FROM tab2 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT + - MAX( ALL - - col2 ) col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3066
SELECT + - MAX ( ALL - - col2 ) col0 FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT DISTINCT COUNT( ALL - col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3067
SELECT DISTINCT COUNT ( ALL - col2 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT SUM( - 38 ) AS col2 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3068
SELECT SUM ( - 38 ) AS col2 FROM tab2
----
-114

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= col1 + + 50
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT - COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-3070
SELECT - COUNT ( * ) / - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT - SUM( + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3071
SELECT - SUM ( + col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3072
SELECT + MAX( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT - - MAX( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3073
SELECT - - MAX ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - - col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL - - COUNT( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3075
SELECT ALL - - COUNT ( DISTINCT - col2 ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 14 + + - col2 + - 49 * col1 FROM tab2 AS cor0
----
-2508
-3327
-3799

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
-47
-5

query I rowsort
SELECT + + col0 FROM tab1 cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT col2 * + - ( - - col2 ) FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3080
SELECT * FROM tab2 WHERE - + col2 <> + col2 + + + CAST( - + col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3080
SELECT * FROM tab2 WHERE - + col2 <> + col2 + + + CAST ( - + col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 63 * - col1 FROM tab1
----
-2961
-315
-882

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * - + 47 * + 87 NOT BETWEEN + 53 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col0 * col1 + - col2 + - col1 AS col1 FROM tab1 WHERE NOT - col1 + + col0 <> + 93
----

query II rowsort
SELECT ALL + col1 * + col0 AS col0, 83 FROM tab0
----
1215
83
1827
83
97
83

query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, - 10 FROM tab2 AS cor0
----
141
-10
142
-10
97
-10

query I rowsort
SELECT - col1 + - col0 * + - 18 FROM tab2
----
1075
1283
777

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT - COUNT( * ) * + + 99 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-891

skipif mysql # not compatible
query I rowsort label-3087
SELECT - COUNT ( * ) * + + 99 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + ( - COUNT( * ) ) + + SUM( 11 ) * SUM( ALL + - col1 ) FROM tab0 WHERE NOT col0 * - - col2 * - col1 * + col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + ( - COUNT ( * ) ) + + SUM ( 11 ) * SUM ( ALL + - col1 ) FROM tab0 WHERE NOT col0 * - - col2 * - col1 * + col1 * - col1 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT ALL - col0 * + - col2 DIV col2 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - col0 * + - col2 / col2 AS col2 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT - 76 DIV + + col1 AS col1 FROM tab0
----
-3
-76
0

skipif mysql # not compatible
query I rowsort label-3090
SELECT - 76 / + + col1 AS col1 FROM tab0
----
-3
-76
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT DISTINCT + 48 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + 48 / - col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 27 + + col2 FROM tab2 cor0
----
50
67
85

query II rowsort
SELECT - col0 - - col2 + col0, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3094
SELECT ALL CAST( - ( + COUNT( * ) ) AS SIGNED ) DIV COUNT( * ) + + SUM( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL CAST ( - ( + COUNT ( * ) ) AS INTEGER ) / COUNT ( * ) + + SUM ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
226

query I rowsort
SELECT - col0 * col0 - col1 + + + col1 * + col0 - - - 46 AS col2 FROM tab2 AS cor0
----
-713
133
709

query I rowsort
SELECT - col0 - + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT 50 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT - MAX( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NULL <> 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NULL <> 74
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3099
SELECT ALL COUNT( * ) + + + ( + 41 ) DIV - + 93 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL COUNT ( * ) + + + ( + 41 ) / - + 93 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - 12 FROM tab1 WHERE NULL IS NULL
----
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 * 64 BETWEEN + col1 AND - 11 + 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT SUM( + ( + 93 ) ) AS col1 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-3102
SELECT SUM ( + ( + 93 ) ) AS col1 FROM tab1
----
279

query I rowsort
SELECT DISTINCT + - col2 + col0 + - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-3104
SELECT DISTINCT + 52 DIV + col2 AS col2, col2 FROM tab0
----
0
99
1
47
5
10

skipif mysql # not compatible
query II rowsort label-3104
SELECT DISTINCT + 52 / + col2 AS col2, col2 FROM tab0
----
0
99
1
47
5
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT col1 DIV + + ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3105
SELECT col1 / + + ( col0 ) AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 / - col2 col2 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

query I rowsort
SELECT 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL - 46, 73 AS col2 FROM tab0
----
-46
73
-46
73
-46
73

query I rowsort
SELECT ALL col0 + + col0 + + col0 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 * col0 * - + col2 AS col0, - col2 * col2 FROM tab1 AS cor0
----
-249696
-9216
-426275
-3481
-563108
-4624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col0, col1 col1, col2 FROM tab0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + + col1 * - col1 col2 FROM tab0
----
-439
-6559
1

query II rowsort
SELECT DISTINCT col2 * - 84, + col2 AS col0 FROM tab2
----
-1932
23
-3360
40
-4872
58

query I rowsort
SELECT DISTINCT - col2 + - - col1 AS col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT - 1 * col0 + 47 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / col1 * col1 / + 49 + + - 22 IS NULL OR ( NULL NOT BETWEEN 57 * - col2 AND col0 )
----
-40
-50
32

onlyif mysql # DIV for integer division: 
query II rowsort label-3118
SELECT + col1 col2, + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
14
1
47
1
5
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3118
SELECT + col1 col2, + col2 / + col2 AS col1 FROM tab1 AS cor0
----
14
1
47
1
5
1

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3120
SELECT COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3121
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3121
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) <> NULL
----

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-83

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3124
SELECT DISTINCT + col0 AS col2, - 26 AS col2 FROM tab1 AS cor0 WHERE NOT 80 NOT BETWEEN + CAST( NULL AS SIGNED ) - - col0 * + 59 - + 66 AND NULL
----

skipif mysql # not compatible
query II rowsort label-3124
SELECT DISTINCT + col0 AS col2, - 26 AS col2 FROM tab1 AS cor0 WHERE NOT 80 NOT BETWEEN + CAST ( NULL AS INTEGER ) - - col0 * + 59 - + 66 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - 47 AS col2 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3126
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3127
SELECT DISTINCT - col1 DIV - - 96 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - col1 / - - 96 AS col2 FROM tab2
----
0

query II rowsort
SELECT ALL 4 AS col0, 58 + + - 34 AS col2 FROM tab1
----
4
24
4
24
4
24

query I rowsort
SELECT DISTINCT - 4 * + + col1 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT ALL - col1 * - col2 * - - ( - - col2 ) FROM tab0
----
178929
2100
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3131
SELECT ALL - - 55 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - - 55 / - col1 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE col2 + 83 <= + col0
----
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE col2 + 83 <= + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT + 28 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + + CAST( NULL AS SIGNED ) ) + - 95 IS NOT NULL
----
28
28
28

skipif mysql # not compatible
query I rowsort label-3133
SELECT + 28 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + + CAST ( NULL AS INTEGER ) ) + - 95 IS NOT NULL
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT ALL + - COUNT( * ) + - + 75 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + - COUNT ( * ) + - + 75 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT COUNT( * ) + + ( + + MAX( - col0 ) ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT COUNT ( * ) + + ( + + MAX ( - col0 ) ) FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT DISTINCT 22 * + 95 AS col1, ( COUNT( * ) ) - + - 40 FROM tab0 cor0
----
2090
43

skipif mysql # not compatible
query II rowsort label-3136
SELECT DISTINCT 22 * + 95 AS col1, ( COUNT ( * ) ) - + - 40 FROM tab0 cor0
----
2090
43

query I rowsort
SELECT DISTINCT - 13 + + col1 FROM tab1 AS cor0
----
-8
1
34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= 78
----

query II rowsort
SELECT DISTINCT col0, + ( - col2 ) + + - 35 + ( - 34 ) AS col2 FROM tab1
----
51
-165
85
-128
91
-137

query I rowsort
SELECT 48 FROM tab0 WHERE NULL IS NULL
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + MAX( ALL - 32 ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + MAX ( ALL - 32 ) AS col1 FROM tab1
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT ALL + 4 + - col1 - + + 62 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + 4 + - col1 - + + 62 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col2 - - col0 + - col0 AS col2, + col0 * + col2 FROM tab1
----
59
5015
68
6188
96
4896

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + 45 + col0 / - col1 * 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT 63 * CAST( NULL AS SIGNED ) / + + 72 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT 63 * CAST ( NULL AS INTEGER ) / + + 72 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col2 + 88, - col2 )
----

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-28

query I rowsort
SELECT - 35 * - 68 AS col2 FROM tab0 AS cor0
----
2380
2380
2380

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + + COUNT( * ) * - - 25 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + + COUNT ( * ) * - - 25 FROM tab1 AS cor0
----
75

query II rowsort
SELECT ALL - col0, 18 AS col0 FROM tab0 AS cor0
----
-15
18
-87
18
-97
18

query II rowsort
SELECT + - 22 AS col0, col0 + + col0 FROM tab0 AS cor0
----
-22
174
-22
194
-22
30

query I rowsort
SELECT - + 56 AS col2 FROM tab2 cor0
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3153
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NULL < + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT - MAX( ALL - + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3154
SELECT - MAX ( ALL - + col1 ) FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 52 ) col1, ( + 4 ) + col1 + col0 FROM tab2
----
52
101
52
145
52
146

onlyif mysql # aggregate syntax: 
query II rowsort label-3156
SELECT MIN( DISTINCT - + 71 ) AS col2, COUNT( * ) * - MAX( ALL - - 90 ) AS col0 FROM tab0
----
-71
-270

skipif mysql # not compatible
query II rowsort label-3156
SELECT MIN ( DISTINCT - + 71 ) AS col2, COUNT ( * ) * - MAX ( ALL - - 90 ) AS col0 FROM tab0
----
-71
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3157
SELECT DISTINCT - ( MIN( ALL + CAST( + 52 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT - ( MIN ( ALL + CAST ( + 52 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 / - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3159
SELECT ALL col0 DIV + - col1, - col0 - 87 * col2 * - 70 AS col1 FROM tab1 AS cor0
----
-1
414029
-17
359225
-3
584589

skipif mysql # not compatible
query II rowsort label-3159
SELECT ALL col0 / + - col1, - col0 - 87 * col2 * - 70 AS col1 FROM tab1 AS cor0
----
-1
414029
-17
359225
-3
584589

query I rowsort
SELECT col1 * + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
237160
260362
59823

query I rowsort
SELECT DISTINCT ( 35 ) FROM tab1 cor0
----
35

query III rowsort
SELECT * FROM tab1 WHERE NULL = - + 37 + - 84 / + 41
----

query I rowsort
SELECT + + 41 FROM tab0 WHERE col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 59 * + col2 * + ( col1 ) + - 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + 82 AS col1 FROM tab2 AS cor0
----
133
149
159

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - ( - col2 ) / + 13 > - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + - col0 + + col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3168
SELECT ALL ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + 47 FROM tab1 AS cor0
----
132
138
98

query I rowsort
SELECT 17 + - col1 * col2 FROM tab1 AS cor0
----
-1327
-278
-3179

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - + 21
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT + CAST( NULL AS SIGNED ) * - 86 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3172
SELECT + CAST ( NULL AS INTEGER ) * - 86 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 26 + + - 32 AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL - + col1 + + - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + 90 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 48 - 2 AS col2 FROM tab0 AS cor0
----
46
46
46

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 10 <> - - col0 * - + col2
----

query I rowsort
SELECT + col2 * + 43 AS col1 FROM tab0 AS cor0
----
2021
4257
430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col1 FROM tab0 AS cor0
----
5
5
5

query II rowsort
SELECT - + col1, - 21 AS col0 FROM tab1 AS cor0
----
-14
-21
-47
-21
-5
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT MIN( ALL + col2 ) col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3181
SELECT DISTINCT MIN ( ALL + col2 ) col2 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT + 79 DIV ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3182
SELECT + 79 / ( + col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
1
1

query II rowsort
SELECT ALL 9, col1 FROM tab1
----
9
14
9
47
9
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * 35 col1 FROM tab0
----
-2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2 AS col0, - col2 AS col2 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL ( + + 57 ) AS col2 FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT 12 * MAX( DISTINCT - - col2 ) FROM tab2
----
696

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 12 * MAX ( DISTINCT - - col2 ) FROM tab2
----
696

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + + MIN( ALL + + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-3189
SELECT + + MIN ( ALL + + col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT - 32 * + - 29 FROM tab1 AS cor0
----
928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT - 18 DIV - + COUNT( * ) + - + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3191
SELECT - 18 / - + COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT COUNT( * ) + COUNT( col1 ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3192
SELECT COUNT ( * ) + COUNT ( col1 ) AS col2 FROM tab1
----
6

query I rowsort
SELECT + col0 + 62 FROM tab0
----
149
159
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 99 + - + COUNT( * ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 99 + - + COUNT ( * ) FROM tab0
----
-102

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * 35 - - col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 6 + - ( + col2 ) FROM tab1 AS cor0
----
-53
-62
-90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + + 16 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 46 FROM tab0 AS cor0 WHERE + col2 * + col2 * col2 > col2 * - col0 / col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL + - MAX( DISTINCT 97 ) - 19 + + + 30 AS col0 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL + - MAX ( DISTINCT 97 ) - 19 + + + 30 AS col0 FROM tab0 AS cor0
----
-86

query II rowsort
SELECT DISTINCT + col2 - + col1 * - - col2, col2 AS col1 FROM tab2 AS cor0
----
-1150
23
-3040
40
-3828
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT DISTINCT 71 DIV + - col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT 71 / + - col2 FROM tab1 cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT + SUM( DISTINCT - + col2 ) - + COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-3202
SELECT + SUM ( DISTINCT - + col2 ) - + COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
-120

query II rowsort
SELECT DISTINCT col0, + col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + 8 + - col1 AS col0 FROM tab2
----
-43
-59
-69

query I rowsort
SELECT + col1 + - - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - MAX( + col1 ) + COUNT( * ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-3206
SELECT - MAX ( + col1 ) + COUNT ( * ) FROM tab2
----
-74

query I rowsort
SELECT 92 + - col0 AS col2 FROM tab0
----
-5
5
77

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE ( - 80 ) IS NULL
----

query I rowsort
SELECT ALL 0 + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT ALL + col2 DIV 7 + - 84 * - 14 FROM tab0
----
1177
1182
1190

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL + col2 / 7 + - 84 * - 14 FROM tab0
----
1177
1182
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT COUNT( * ) + - 14 AS col2 FROM tab1 WHERE - col0 * col1 + 91 NOT IN ( + col1 )
----
-11

skipif mysql # not compatible
query I rowsort label-3211
SELECT COUNT ( * ) + - 14 AS col2 FROM tab1 WHERE - col0 * col1 + 91 NOT IN ( + col1 )
----
-11

query I rowsort
SELECT col0 * col0 AS col2 FROM tab2 WHERE NOT ( + col2 ) / - col0 IS NULL
----
2116
4096
5625

query I rowsort
SELECT + 35 * col2 + col1 AS col0 FROM tab2
----
1477
2097
856

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 51 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT - CAST( + 14 AS SIGNED ) AS col0 FROM tab2
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-3216
SELECT - CAST ( + 14 AS INTEGER ) AS col0 FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL 42 + COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 / 59 NOT BETWEEN + col1 AND NULL
----
42

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL 42 + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 / 59 NOT BETWEEN + col1 AND NULL
----
42

query I rowsort
SELECT col1 * col0 - - col2 * col1 FROM tab0
----
196
2037
5022

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <= ( NULL )
----

query I rowsort
SELECT ALL - 87 AS col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( + 58 / col1 ) IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / - ( - col0 ) < ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 + ( + col2 ) col1 FROM tab1
----
-25
-34
3

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT 94 * 90 IN ( 36 + col0 )
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + ( 94 ) - col2 * + col1 AS col1 FROM tab1
----
-1250
-201
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT SUM( DISTINCT + 68 ) * + COUNT( * ) AS col2 FROM tab0 WHERE NOT + col2 >= 31 + col1
----
136

skipif mysql # not compatible
query I rowsort label-3226
SELECT SUM ( DISTINCT + 68 ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + col2 >= 31 + col1
----
136

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 22 BETWEEN ( + 96 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col2 BETWEEN ( NULL ) AND + 50
----

query I rowsort
SELECT + col1 * + 88 FROM tab1
----
1232
4136
440

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 FROM tab2 cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT - MAX( DISTINCT - 88 ) + - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT - MAX ( DISTINCT - 88 ) + - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-139

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE ( - 41 + - col1 ) IN ( - 0 - - col1 )
----

query I rowsort
SELECT ( - 81 ) AS col1 FROM tab0 AS cor0
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3234
SELECT 72 DIV col2 col0 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3234
SELECT 72 / col2 col0 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT 48 * - SUM( ALL + col2 * col2 ) AS col1 FROM tab1
----
-831408

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 48 * - SUM ( ALL + col2 * col2 ) AS col1 FROM tab1
----
-831408

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col0 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col0 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT 72 * 89 + col2 FROM tab1
----
6467
6476
6504

query I rowsort
SELECT DISTINCT + + 64 + - 52 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT - 61 * - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
5307
5917
915

query I rowsort
SELECT ALL - ( col0 ) + col2 AS col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT - col1 + - 42 FROM tab2 AS cor0
----
-109
-119
-93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - 80 / 47 < - col1
----

query I rowsort
SELECT + + 1 + + col0 * - col0 FROM tab1 AS cor0
----
-2600
-7224
-8280

query I rowsort
SELECT DISTINCT - col0 * - col1 FROM tab1 AS cor0 WHERE NOT + ( 80 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT COUNT( * ) FROM tab0 cor0 WHERE + 56 * - col2 <> col1
----
3

skipif mysql # not compatible
query I rowsort label-3245
SELECT COUNT ( * ) FROM tab0 cor0 WHERE + 56 * - col2 <> col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3246
SELECT + + 86 + ( - col0 + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
118
88
9

skipif mysql # not compatible
query I rowsort label-3246
SELECT + + 86 + ( - col0 + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
118
88
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * + col1 >= NULL
----

query I rowsort
SELECT + + col1 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + 59 + + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3249
SELECT + 59 + + COUNT ( * ) FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL + + 84 - + col1 AS col2 FROM tab0 AS cor0
----
3
63
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT 87 * CAST( NULL AS SIGNED ) + 5 * + 21 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT 87 * CAST ( NULL AS INTEGER ) + 5 * + 21 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT + 92 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 22 * - ( 92 / + col2 ) <= col1 * col0
----
95

skipif mysql # not compatible
query I rowsort label-3252
SELECT + 92 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 22 * - ( 92 / + col2 ) <= col1 * col0
----
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 23 / + 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3254
SELECT ALL * FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3254
SELECT ALL * FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT DISTINCT col0 - + 66 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT col0 - + 66 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3256
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE ( col1 * 30 ) IS NULL
----

query I rowsort
SELECT col1 - col1 * + 8 FROM tab0
----
-147
-567
-7

query I rowsort
SELECT DISTINCT col0 * - 7 + + col2 * col0 AS col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT - COUNT( DISTINCT col1 ) * + 10 - 61 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3260
SELECT - COUNT ( DISTINCT col1 ) * + 10 - 61 FROM tab2
----
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT - MIN( ALL 33 ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT - MIN ( ALL 33 ) AS col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL - col2 * col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT ALL ( + col2 ) * 75 AS col0 FROM tab2 cor0
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT 84 * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 73 + 1 AND col2 + 11
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT 84 * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 73 + 1 AND col2 + 11
----
0

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( + 83 + col0 ) IS NULL
----
-10
-47
-99

query II rowsort
SELECT DISTINCT + 85 AS col1, col2 AS col2 FROM tab1
----
85
59
85
68
85
96

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
22

query I rowsort
SELECT ( - 96 ) FROM tab1
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3272
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3273
SELECT + CAST( NULL AS DECIMAL ) / - COUNT( * ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT + CAST ( NULL AS REAL ) / - COUNT ( * ) FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - 19 * - 26 * - 44 AS col2 FROM tab2 AS cor0
----
-1260688
-499928
-869440

query II rowsort
SELECT DISTINCT + - col1 AS col0, - 19 * - + col0 FROM tab1 AS cor0
----
-14
969
-47
1729
-5
1615

query I rowsort
SELECT + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT col0 AS col0, + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query II rowsort
SELECT DISTINCT + col1 AS col1, ( col2 ) + + ( + col2 + - col1 ) FROM tab0 AS cor0
----
1
197
21
-1
81
13

query I rowsort
SELECT DISTINCT + - 99 * + 51 FROM tab2 AS cor0
----
-5049

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 32 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 + 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL COUNT( + 75 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL COUNT ( + 75 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT ALL - col1 DIV - col0 AS col2 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - col1 / - col0 AS col2 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3285
SELECT 62 DIV + + col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3285
SELECT 62 / + + col2 AS col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + - col1 col2 FROM tab1
----
-102
-135
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT DISTINCT MIN( - col0 ) FROM tab1 WHERE + 84 - - col1 + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT MIN ( - col0 ) FROM tab1 WHERE + 84 - - col1 + col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3288
SELECT ALL - 82 + + + 58 DIV + + col2 AS col2 FROM tab2 AS cor0
----
-80
-81
-81

skipif mysql # not compatible
query I rowsort label-3288
SELECT ALL - 82 + + + 58 / + + col2 AS col2 FROM tab2 AS cor0
----
-80
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT - SUM( 54 ) FROM tab0 AS cor0 WHERE NOT ( NOT col0 = ( + col0 * + col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - SUM ( 54 ) FROM tab0 AS cor0 WHERE NOT ( NOT col0 = ( + col0 * + col0 ) )
----
NULL

query I rowsort
SELECT + ( + 73 ) + 13 AS col1 FROM tab0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT + COUNT( * ) * - - 19 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT + COUNT ( * ) * - - 19 FROM tab2
----
57

query I rowsort
SELECT DISTINCT col2 + 56 + + 23 + - col2 FROM tab0 cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT ALL - ( + 64 ) * + CAST( NULL AS SIGNED ) + + 57 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - ( + 64 ) * + CAST ( NULL AS INTEGER ) + + 57 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT DISTINCT + 33 + + col0 DIV + ( col2 ) + + 80 FROM tab0 AS cor0
----
113
121

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + 33 + + col0 / + ( col2 ) + + 80 FROM tab0 AS cor0
----
113
121

query I rowsort
SELECT DISTINCT - + col2 * + ( + col0 ) + col2 + + 77 FROM tab0 AS cor0
----
-581
-783
-9427

query I rowsort
SELECT ALL 51 - col1 AS col2 FROM tab2 AS cor0
----
-16
-26
0

query I rowsort
SELECT - col1 - - - 2 * - col1 + - + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 - + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 87 - - + 36 AS col0 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT col1 * + 99 * - 80 FROM tab1
----
-110880
-372240
-39600

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT COUNT( * ) * + COUNT( ALL + + col0 ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3301
SELECT COUNT ( * ) * + COUNT ( ALL + + col0 ) AS col1 FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col2 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT COUNT( * ) * + COUNT( 72 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3303
SELECT COUNT ( * ) * + COUNT ( 72 ) FROM tab1
----
9

query I rowsort
SELECT ALL ( - - 79 ) FROM tab2 AS cor0
----
79
79
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT + + 50 DIV - 39 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3305
SELECT + + 50 / - 39 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT MAX( ALL + col1 ) AS col1, COUNT( * ) FROM tab2
----
77
3

skipif mysql # not compatible
query II rowsort label-3306
SELECT MAX ( ALL + col1 ) AS col1, COUNT ( * ) FROM tab2
----
77
3

query I rowsort
SELECT ALL - 91 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL < 15 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - 63 NOT BETWEEN col0 * - 21 AND ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT - + ( + COUNT( * ) ) DIV + 28 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT - + ( + COUNT ( * ) ) / + 28 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT col2 DIV + col0 col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3310
SELECT DISTINCT col2 / + col0 col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT ALL + - col0 DIV - 17 + col1 FROM tab0 AS cor0
----
26
6
81

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + - col0 / - 17 + col1 FROM tab0 AS cor0
----
26
6
81

query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT 34 + - - col2 * 13 * col2 * + - ( - col2 ) FROM tab1
----
11501602
2669961
4087650

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT - COUNT( * ) + - 30 AS col2 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3314
SELECT - COUNT ( * ) + - 30 AS col2 FROM tab2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3315
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + + - ( + COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + - ( + COUNT ( * ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL ( + 35 ) FROM tab1
----
35
35
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3317
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( - col0 ) + + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( - col0 ) + + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT ALL - col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + COUNT( * ) FROM tab0 WHERE ( + 42 ) BETWEEN NULL AND - col0 + col0
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT + COUNT ( * ) FROM tab0 WHERE ( + 42 ) BETWEEN NULL AND - col0 + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - col1 <> + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - 56 + + col1 FROM tab0 AS cor0
----
40
42
52

query II rowsort
SELECT DISTINCT ( col2 ) AS col0, 48 AS col0 FROM tab2
----
23
48
40
48
58
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - ( - col0 ) col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3325
SELECT ALL + COUNT( * ) + + + 99 DIV + 22 AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL + COUNT ( * ) + + + 99 / + 22 AS col1 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL - 42 - + - col0 * col0 * col2 FROM tab2 AS cor0
----
163798
326208
48626

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT COUNT( ALL - 73 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3327
SELECT COUNT ( ALL - 73 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT - MIN( ALL 99 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - MIN ( ALL 99 ) FROM tab0
----
-99

query II rowsort
SELECT ALL - 24, + col2 AS col2 FROM tab0
----
-24
10
-24
47
-24
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT - col2 * + CAST( - col0 AS SIGNED ) * - col1 FROM tab1
----
-25075
-290836
-68544

skipif mysql # not compatible
query I rowsort label-3330
SELECT - col2 * + CAST ( - col0 AS INTEGER ) * - col1 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 54 col0 FROM tab2 WHERE NOT ( - 9 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3332
SELECT DISTINCT + ( MIN( - col2 ) ) AS col1, 39 AS col0 FROM tab2
----
-58
39

skipif mysql # not compatible
query II rowsort label-3332
SELECT DISTINCT + ( MIN ( - col2 ) ) AS col1, 39 AS col0 FROM tab2
----
-58
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT COUNT( * ) * + MAX( col0 ) AS col2 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT COUNT ( * ) * + MAX ( col0 ) AS col2 FROM tab0
----
291

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 68 NOT BETWEEN NULL AND ( - col0 - col1 - + col1 + - - 63 )
----

query I rowsort
SELECT col1 / - col1 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) + 73 + - col1 BETWEEN - col0 AND ( ( + - col0 ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) + 73 + - col1 BETWEEN - col0 AND ( ( + - col0 ) )
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3337
SELECT ALL + - 45 col2, - 84 DIV + col0 FROM tab1 AS cor0
----
-45
-1
-45
0
-45
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3337
SELECT ALL + - 45 col2, - 84 / + col0 FROM tab1 AS cor0
----
-45
-1
-45
0
-45
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 + + 47 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 AS col2, 85 FROM tab2
----
23
85
40
85
58
85

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= ( - col1 * + + ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3341
SELECT ALL * FROM tab1 WHERE - col2 IN ( + + col1 + + CAST( NULL AS SIGNED ) + - - col0, - col0 )
----

skipif mysql # not compatible
query III rowsort label-3341
SELECT ALL * FROM tab1 WHERE - col2 IN ( + + col1 + + CAST ( NULL AS INTEGER ) + - - col0, - col0 )
----

query I rowsort
SELECT 67 + + col1 FROM tab2
----
118
134
144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 78 )
----

query I rowsort
SELECT - 1 * ( - - col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-3345
SELECT DISTINCT - col0 AS col0, ( + - col2 ) * + ( ( + 34 ) ) + - - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
-1598
-87
-336
-97
-3269

skipif mysql # not compatible
query II rowsort label-3345
SELECT DISTINCT - col0 AS col0, ( + - col2 ) * + ( ( + 34 ) ) + - - col0 / + col1 AS col2 FROM tab0 AS cor0
----
-15
-1598
-87
-336
-97
-3269

query I rowsort
SELECT 78 * - col1 * 13 * + - col0 * col0 FROM tab1 AS cor0
----
36630750
36923796
394655898

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 = 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3349
SELECT * FROM tab0 WHERE ( - col2 + - CAST( NULL AS DECIMAL ) >= - - col0 )
----

skipif mysql # not compatible
query III rowsort label-3349
SELECT * FROM tab0 WHERE ( - col2 + - CAST ( NULL AS REAL ) >= - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3350
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) - - + col0 <> CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3350
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) - - + col0 <> CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT 42 * + + col0 + col0 + ( + col0 ) + 23 IS NOT NULL
----

query I rowsort
SELECT ALL - 37 + + col2 AS col1 FROM tab1
----
22
31
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL + COUNT( * ) * 80 col2 FROM tab1
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3353
SELECT ALL + COUNT ( * ) * 80 col2 FROM tab1
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL + col2 FROM tab0 WHERE ( + col1 IN ( + CAST( NULL AS SIGNED ), - CAST( 11 AS SIGNED ) + col2 + + + col0 + col2 * + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL + col2 FROM tab0 WHERE ( + col1 IN ( + CAST ( NULL AS INTEGER ), - CAST ( 11 AS INTEGER ) + col2 + + + col0 + col2 * + col2 ) )
----

query I rowsort
SELECT 13 + col2 + 19 * + - col2 + - col2 FROM tab2
----
-1089
-424
-747

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3356
SELECT - 85 * col0 * - + CAST( NULL AS SIGNED ) + + + col0 + - col2 - + 93 + - col1 AS col2, - 60 FROM tab1 AS cor0
----
NULL
-60
NULL
-60
NULL
-60

skipif mysql # not compatible
query II rowsort label-3356
SELECT - 85 * col0 * - + CAST ( NULL AS INTEGER ) + + + col0 + - col2 - + 93 + - col1 AS col2, - 60 FROM tab1 AS cor0
----
NULL
-60
NULL
-60
NULL
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT ALL + col1 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL + col1 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT + col0 DIV - - col2 + - col0 + - + 13 AS col2 FROM tab2 AS cor0
----
-57
-76
-87

skipif mysql # not compatible
query I rowsort label-3358
SELECT + col0 / - - col2 + - col0 + - + 13 AS col2 FROM tab2 AS cor0
----
-57
-76
-87

query I rowsort
SELECT DISTINCT - 9 * ( + 83 ) FROM tab1
----
-747

query III rowsort
SELECT * FROM tab0 WHERE + ( 22 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT DISTINCT CAST( - 75 AS SIGNED ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT CAST ( - 75 AS INTEGER ) AS col1 FROM tab2
----
-75

query II rowsort
SELECT 50 AS col2, 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to 11641fee4552c3a907fc712514e1e3b1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3364
SELECT DISTINCT - MIN( col2 ) * 84 * + COUNT( DISTINCT - 97 ) + - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - MIN ( col2 ) * 84 * + COUNT ( DISTINCT - 97 ) + - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT ALL col2 DIV + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL col2 / + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + - MIN( DISTINCT - + 47 ) AS col0 FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + - MIN ( DISTINCT - + 47 ) AS col0 FROM tab2 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT DISTINCT MAX( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE - 3 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0 WHERE - 3 IS NOT NULL
----
-51

query I rowsort
SELECT DISTINCT + + ( - 41 ) AS col1 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT - - SUM( ALL - 66 ) AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3369
SELECT - - SUM ( ALL - 66 ) AS col1 FROM tab1 AS cor0
----
-198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - col1 col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-37
-44
-80

query I rowsort
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 3 * - + col2 <> - + 80
----

query I rowsort
SELECT ALL + - 87 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT + col0 * + 40 AS col1 FROM tab2
----
1840
2560
3000

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3375
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( + CAST( + col1 AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query III rowsort label-3375
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( + CAST ( + col1 AS INTEGER ) ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT DISTINCT 60 FROM tab0 WHERE NOT - + CAST( + + 31 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT 60 FROM tab0 WHERE NOT - + CAST ( + + 31 AS INTEGER ) <> NULL
----

query II rowsort
SELECT + col1 * col2, col2 AS col1 FROM tab1
----
1344
96
295
59
3196
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT MAX( + 66 ) AS col0 FROM tab1 WHERE NOT - + col0 NOT IN ( - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT MAX ( + 66 ) AS col0 FROM tab1 WHERE NOT - + col0 NOT IN ( - 40 )
----
NULL

query I rowsort
SELECT DISTINCT 52 * + - 77 - ( - col0 ) FROM tab2 AS cor0
----
-3929
-3940
-3958

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT + col1 + + col1 DIV - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3380
SELECT + col1 + + col1 / - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

query II rowsort
SELECT - ( col0 ) AS col2, + col1 + - 95 * col2 FROM tab2 AS cor0
----
-46
-2134
-64
-3723
-75
-5443

query I rowsort
SELECT DISTINCT 17 * + + col0 FROM tab2
----
1088
1275
782

query I rowsort
SELECT + 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT ( - + col1 ) + + col2 * - 53 FROM tab0
----
-2572
-5248
-551

query I rowsort
SELECT ALL + + col1 + col0 + + - col0 + + + 72 * - col2 + col0 * + ( - 87 ) + - - ( - 69 ) AS col2 FROM tab2 AS cor0
----
-10703
-5676
-8440

query I rowsort
SELECT DISTINCT + + col1 + 96 FROM tab2 AS cor0
----
147
163
173

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 78 * + + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1638
6318
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3389
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - + 63 * ( - 30 ) * col2 + col2 FROM tab2 AS cor0
----
109678
43493
75640

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 = - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3392
SELECT DISTINCT col1, col0 DIV - col2 col0 FROM tab0 AS cor0
----
1
0
21
-8
81
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3392
SELECT DISTINCT col1, col0 / - col2 col0 FROM tab0 AS cor0
----
1
0
21
-8
81
0

query I rowsort
SELECT + col1 + 20 AS col1 FROM tab2 AS cor0
----
71
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 83 col0 FROM tab2 AS cor0
----
4233
5561
6391

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL - MAX( ALL + + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL - MAX ( ALL + + col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT + CAST( col1 AS SIGNED ) + - + ( - 3 ) + + 43 AS col1 FROM tab1
----
51
60
93

skipif mysql # not compatible
query I rowsort label-3396
SELECT + CAST ( col1 AS INTEGER ) + - + ( - 3 ) + + 43 AS col1 FROM tab1
----
51
60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT - ( - COUNT( + 36 ) ) AS col1 FROM tab0 WHERE + col0 * col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - ( - COUNT ( + 36 ) ) AS col1 FROM tab0 WHERE + col0 * col2 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT BETWEEN NULL AND + 60
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3399
SELECT DISTINCT 74 DIV col2, + col1 FROM tab1
----
0
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-3399
SELECT DISTINCT 74 / col2, + col1 FROM tab1
----
0
14
1
47
1
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 90 + + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 90 + + col2 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 * - + col2 IN ( - + 48 * col2 )
----

query II rowsort
SELECT ALL - + col1, col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + MIN( DISTINCT - + 60 ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3403
SELECT + MIN ( DISTINCT - + 60 ) FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL - 87 + + col2 + CAST( NULL AS SIGNED ) + col1 * + 95 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-3404
SELECT ALL - 87 + + col2 + CAST ( NULL AS INTEGER ) + col1 * + 95 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT + - col0 FROM tab1 AS cor0 WHERE col0 <= + + col1 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3405
SELECT + - col0 FROM tab1 AS cor0 WHERE col0 <= + + col1 * + + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3407
SELECT ALL col1 DIV col0, + 49 AS col1 FROM tab0
----
0
49
0
49
5
49

skipif mysql # not compatible
query II rowsort label-3407
SELECT ALL col1 / col0, + 49 AS col1 FROM tab0
----
0
49
0
49
5
49

query I rowsort
SELECT + 65 * + col1 * - 19 FROM tab2 AS cor0
----
-62985
-82745
-95095

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT - + 96 DIV col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3409
SELECT - + 96 / col2 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3411
SELECT DISTINCT + CAST( col1 AS SIGNED ), col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-3411
SELECT DISTINCT + CAST ( col1 AS INTEGER ), col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + 41 col2 FROM tab1 AS cor0
----
-1927
-205
-574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + 72 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3414
SELECT CAST( NULL AS SIGNED ) AS col0, 21 AS col0 FROM tab0
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-3414
SELECT CAST ( NULL AS INTEGER ) AS col0, 21 AS col0 FROM tab0
----
NULL
21
NULL
21
NULL
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL col1, col1 * - col2 - - + 41 FROM tab0
----
1
-58
21
-169
81
-3766

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3417
SELECT * FROM tab0 WHERE NOT - 99 * + CAST( + 23 AS SIGNED ) + 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3417
SELECT * FROM tab0 WHERE NOT - 99 * + CAST ( + 23 AS INTEGER ) + 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 82 + - col2 AS col1 FROM tab2 AS cor0
----
-105
-122
-140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3419
SELECT 84 AS col0, col2 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-3419
SELECT 84 AS col0, col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
84
NULL
84
NULL
84
NULL

query I rowsort
SELECT ALL ( 2 ) FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT DISTINCT COUNT( - - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3421
SELECT DISTINCT COUNT ( - - col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE 71 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE 71 IS NULL
----
0

query I rowsort
SELECT - + ( + + 74 ) AS col2 FROM tab0 cor0
----
-74
-74
-74

query I rowsort
SELECT - + 38 * + 49 * 55 FROM tab2 cor0
----
-102410
-102410
-102410

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT + ( + + MAX( - 63 ) ) AS col0 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3425
SELECT + ( + + MAX ( - 63 ) ) AS col0 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT + + col2 * - col0 + - - 28 FROM tab0 AS cor0
----
-677
-842
-9575

query I rowsort
SELECT ALL - - 89 * - 5 FROM tab1 AS cor0
----
-445
-445
-445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 85 FROM tab1
----
51
85
85
85
91
85

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT BETWEEN NULL AND + col2
----
87
21
10

query III rowsort
SELECT + 6 - 27 + + 91 AS col0, - 97 + + col1 + - 21 AS col0, + ( - 66 ) FROM tab0
----
9 values hashing to c4e7e3c3bacff0e7ec23db77f3a7d20c

query I rowsort
SELECT 63 * - + col0 - + col1 AS col1 FROM tab2
----
-2949
-4109
-4792

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT COUNT( DISTINCT + col1 ) * - + 29 + - 82 AS col0 FROM tab0
----
-169

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT COUNT ( DISTINCT + col1 ) * - + 29 + - 82 AS col0 FROM tab0
----
-169

query I rowsort
SELECT DISTINCT - col1 * + 29 AS col0 FROM tab1
----
-1363
-145
-406

query I rowsort
SELECT - col2 + + + 67 AS col1 FROM tab1
----
-1
-29
8

query I rowsort
SELECT ( + col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT MAX( 60 ) + + 53 FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT MAX ( 60 ) + + 53 FROM tab2
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT ALL - + 39 + 98 + + + CAST( + 44 AS SIGNED ) FROM tab1 cor0
----
103
103
103

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - + 39 + 98 + + + CAST ( + 44 AS INTEGER ) FROM tab1 cor0
----
103
103
103

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3440
SELECT DISTINCT + 89 AS col0, 95 * + - MIN( - col2 ) FROM tab2
----
89
5510

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT + 89 AS col0, 95 * + - MIN ( - col2 ) FROM tab2
----
89
5510

query I rowsort
SELECT 40 * + col1 AS col2 FROM tab0
----
3240
40
840

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT - + COUNT( - 26 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT - + COUNT ( - 26 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + 45 / 26 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
1
21
81

query II rowsort
SELECT + col1 AS col0, + 40 FROM tab0 AS cor0
----
1
40
21
40
81
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3446
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) BETWEEN + col2 AND - + col2 * + 92 * - + col1 * - - col0 + 23 + - 0 + 97
----

skipif mysql # not compatible
query III rowsort label-3446
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) BETWEEN + col2 AND - + col2 * + 92 * - + col1 * - - col0 + 23 + - 0 + 97
----

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NULL BETWEEN + 60 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3448
SELECT DISTINCT SUM( DISTINCT 71 ), + 78 AS col0 FROM tab0
----
71
78

skipif mysql # not compatible
query II rowsort label-3448
SELECT DISTINCT SUM ( DISTINCT 71 ), + 78 AS col0 FROM tab0
----
71
78

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 > - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + col1 * - + col2 AS col2 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT DISTINCT 29 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + 43 * + col1 FROM tab1
----
2021
215
602

query I rowsort
SELECT ALL col2 + - 23 * + + col1 FROM tab2 AS cor0
----
-1150
-1483
-1731

query II rowsort
SELECT - col0 * 94 + + 22, - col2 AS col0 FROM tab2 AS cor0
----
-4302
-23
-5994
-40
-7028
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT + 14 + + MAX( DISTINCT + 43 ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-3455
SELECT + 14 + + MAX ( DISTINCT + 43 ) AS col2 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT DISTINCT + col1 * - col1 + + col2 + + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-518
-6529
1

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT + col1 * - col1 + + col2 + + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-518
-6529
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 60 NOT IN ( + 30, - ( col2 ), + 67 / - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT + col1 + - CAST( NULL AS SIGNED ) * + col0 + - 92 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-3458
SELECT + col1 + - CAST ( NULL AS INTEGER ) * + col0 + - 92 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 * ( - + 92 ) * col1 + + + col2 AS col2 FROM tab0 AS cor0 WHERE col0 <= + 30
----
-111733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 * - ( - - 30 ) * col0 col1 FROM tab0
----
-227080
-282369
-6797

query II rowsort
SELECT + 94 - col1 AS col2, - 19 FROM tab2 AS cor0
----
17
-19
27
-19
43
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE col2 BETWEEN + - col2 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE col2 BETWEEN + - col2 AND - col2
----
0

query I rowsort
SELECT + ( - - ( - col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL col2 * - - 88 FROM tab1
----
5192
5984
8448

query I rowsort
SELECT - - 41 FROM tab0 cor0 WHERE NOT ( NOT NULL NOT IN ( + col2 - 84, + ( + col2 ), col1 + - + 98, - col0, - 53 * - col2 * - 88 ) )
----

query I rowsort
SELECT ALL + col2 * - 31 * + - col1 + - col0 FROM tab1 AS cor0
----
41613
9060
98985

onlyif mysql # DIV for integer division: 
query I rowsort label-3467
SELECT DISTINCT + 52 DIV + - 46 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT + 52 / + - 46 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 10 * + - col2 AS col2 FROM tab2 cor0
----
-230
-400
-580

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 FROM tab1 cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL col0 * 3 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
153
255
273

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT ALL + 79, + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL <> col1
----
79
0

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL + 79, + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL <> col1
----
79
0

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3473
SELECT DISTINCT ( - COUNT( * ) ) DIV 71 * + 55 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT ( - COUNT ( * ) ) / 71 * + 55 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT ALL - col2 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - col2 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 AS col0, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + ( - 61 ) + 84 AS col1 FROM tab0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT ( - - ( - CAST( + + 5 AS SIGNED ) ) ) FROM tab0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3477
SELECT ( - - ( - CAST ( + + 5 AS INTEGER ) ) ) FROM tab0
----
-5
-5
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 52, col0 AS col0 FROM tab0 AS cor0
----
52
15
52
87
52
97

query I rowsort
SELECT - 52 * - col2 FROM tab1 cor0
----
3068
3536
4992

query I rowsort
SELECT DISTINCT + 28 + + col1 AS col2 FROM tab1 AS cor0
----
33
42
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT + MAX( - - col1 ) + - COUNT( + 45 ) * MIN( + - col0 ) FROM tab2 AS cor0
----
302

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT + MAX ( - - col1 ) + - COUNT ( + 45 ) * MIN ( + - col0 ) FROM tab2 AS cor0
----
302

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 25 <= - ( + 54 ) - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT SUM( ALL - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT SUM ( ALL - col2 ) FROM tab2
----
-121

query I rowsort
SELECT - 59 * + col1 AS col1 FROM tab0
----
-1239
-4779
-59

query I rowsort
SELECT ALL + - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 77 + - 43 + - 39 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 77 + 75, 48 AS col1 FROM tab0 AS cor0
----
152
48

query I rowsort
SELECT DISTINCT + col2 + - col2 + - 77 AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL - col1 + + - 60 AS col0 FROM tab2 AS cor0
----
-111
-127
-137

query I rowsort
SELECT DISTINCT + + col2 + - 92 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-24
-33
4

query I rowsort
SELECT DISTINCT - 96 * col2 + 45 + - + col2 FROM tab1 cor0
----
-5678
-6551
-9267

query I rowsort
SELECT ALL + + col2 + + + 97 FROM tab1 AS cor0
----
156
165
193

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT DISTINCT + 85 - + COUNT( * ) AS col1 FROM tab0 cor0
----
82

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + 85 - + COUNT ( * ) AS col1 FROM tab0 cor0
----
82

query I rowsort
SELECT 46 - col2 AS col0 FROM tab1
----
-13
-22
-50

query I rowsort
SELECT DISTINCT 6 - - - col2 FROM tab2
----
-17
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT ALL + MAX( - 84 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + MAX ( - 84 ) FROM tab1
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT - col0 DIV - + col2 + - - col2 AS col0 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-3497
SELECT - col0 / - + col2 + - - col2 AS col0 FROM tab1
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT 87 + - + SUM( ALL + 44 ) + - - COUNT( * ) AS col2 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-3498
SELECT 87 + - + SUM ( ALL + 44 ) + - - COUNT ( * ) AS col2 FROM tab1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT + 25 + + + 37 DIV col1 - - + 49 * - col0 col1 FROM tab0
----
-4237
-4691
-710

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3499
SELECT + 25 + + + 37 / col1 - - + 49 * - col0 col1 FROM tab0
----
-4237
-4691
-710

query I rowsort
SELECT DISTINCT ( + ( + + col2 ) ) - + + col0 * - - col1 FROM tab1
----
-366
-4209
-618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT ALL CAST( + - 69 AS SIGNED ) FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL CAST ( + - 69 AS INTEGER ) FROM tab2
----
-69
-69
-69

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL = - + 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3503
SELECT - 93 DIV - SUM( DISTINCT + + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3503
SELECT - 93 / - SUM ( DISTINCT + + col1 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - - 70 + 14 + + col0 - + col1 / col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + 96 * + col1 FROM tab2 AS cor0
----
4896
6432
7392

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL + - MIN( + 90 ) FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + - MIN ( + 90 ) FROM tab0 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL - + SUM( 69 ) FROM tab1 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - + SUM ( 69 ) FROM tab1 cor0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT ALL 8 * + CAST( - ( + AVG ( DISTINCT - col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL 8 * + CAST ( - ( + AVG ( DISTINCT - col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
176

query I rowsort
SELECT DISTINCT ( - 84 ) * - + 84 FROM tab2
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT - MAX( 88 ) + - - MIN( col0 ) FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-3511
SELECT - MAX ( 88 ) + - - MIN ( col0 ) FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT DISTINCT - 87 + COUNT( * ) col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3512
SELECT DISTINCT - 87 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col2 col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3514
SELECT * FROM tab2 WHERE - - ( col2 ) >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3514
SELECT * FROM tab2 WHERE - - ( col2 ) >= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT - ( + col1 ) + + 61 - CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT - ( + col1 ) + + 61 - CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 + + + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - 3 + + col2 AS col0 FROM tab0 AS cor0
----
44
7
96

query I rowsort
SELECT col1 + - + 24 AS col2 FROM tab2 cor0
----
27
43
53

query I rowsort
SELECT - 6 * - 0 + + col0 AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT ALL col2 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col2 + + + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT - 72, col0 FROM tab1 AS cor0
----
-72
51
-72
85
-72
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT DISTINCT COUNT( * ) * + + COUNT( - 97 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT COUNT ( * ) * + + COUNT ( - 97 ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - - col1 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT DISTINCT col2 * 88 * CAST( + - 74 AS SIGNED ) AS col2 FROM tab2
----
-149776
-260480
-377696

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT col2 * 88 * CAST ( + - 74 AS INTEGER ) AS col2 FROM tab2
----
-149776
-260480
-377696

query I rowsort
SELECT DISTINCT - + col2 / + 21 FROM tab2 WHERE col1 BETWEEN + 32 AND NULL
----

query I rowsort
SELECT DISTINCT - 63 FROM tab1 WHERE + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col0 FROM tab0
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-3529
SELECT + 42 DIV + - 94, col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-3529
SELECT + 42 / + - 94, col2 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + - 12 * + - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1, - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT - ( + - col1 ) * - col1 AS col1 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT + ( - col1 ) FROM tab1 WHERE NOT NULL > NULL
----

query II rowsort
SELECT col0 AS col0, + col1 + - col2 - + - 60 + col1 AS col2 FROM tab2
----
46
139
64
174
75
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL + - COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3535
SELECT ALL + - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 60, - col2 col1 FROM tab0
----
60
-10
60
-47
60
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT DISTINCT COUNT( - 89 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT COUNT ( - 89 ) FROM tab0 cor0
----
3

query I rowsort
SELECT + + col1 * - col0 * - ( + - col0 ) AS col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT DISTINCT MAX( - 36 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT MAX ( - 36 ) FROM tab2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3540
SELECT * FROM tab0 WHERE CAST( col1 AS SIGNED ) * - - col2 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3540
SELECT * FROM tab0 WHERE CAST ( col1 AS INTEGER ) * - - col2 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3541
SELECT MIN( DISTINCT CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3541
SELECT MIN ( DISTINCT CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col2 FROM tab2
----
NULL
3

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col1 * + 56 AS col2 FROM tab0
----
-1176
-4536
-56

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 93 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT - MAX( - col1 ) AS col0, MAX( col0 ) - - - MAX( col2 ) AS col1 FROM tab0
----
1
-2

skipif mysql # not compatible
query II rowsort label-3545
SELECT - MAX ( - col1 ) AS col0, MAX ( col0 ) - - - MAX ( col2 ) AS col1 FROM tab0
----
1
-2

query I rowsort
SELECT DISTINCT + 84 * + - col1 * - - col2 AS col2 FROM tab2
----
-258720
-326424
-98532

onlyif mysql # DIV for integer division: 
query II rowsort label-3547
SELECT ALL col1 + + + 70 * col2 DIV col1 * + 7, col1 FROM tab1 AS cor0
----
3374
14
5787
5
754
47

skipif mysql # not compatible
query II rowsort label-3547
SELECT ALL col1 + + + 70 * col2 / col1 * + 7, col1 FROM tab1 AS cor0
----
3374
14
5787
5
754
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT DISTINCT + 74 + col1 DIV - - 79 FROM tab0 AS cor0
----
74
75

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT + 74 + col1 / - - 79 FROM tab0 AS cor0
----
74
75

query I rowsort
SELECT DISTINCT + col2 - - col2 FROM tab0 AS cor0 WHERE NOT ( - 43 * - col0 ) IS NULL
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT col2 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT col2 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 42 * col1 AS col1 FROM tab0 AS cor0
----
3402
42
882

query I rowsort
SELECT DISTINCT 30 / - + ( col2 ) / - col1 * + col2 * + - 70 + + - col0 + + col2 / - - 44 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3553
SELECT ALL 80 DIV + - col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL 80 / + - col0 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3554
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS DECIMAL ) + + 81 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS REAL ) + + 81 FROM tab1
----
NULL

query II rowsort
SELECT col1 AS col1, col0 * col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + - col0 ) - + 65 col1, + 27 * + col0 col0 FROM tab2 AS cor0
----
-111
1242
-129
1728
-140
2025

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + - col0 * + col0 IS NULL AND NOT - col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + 31 - + COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + 31 - + COUNT ( * ) FROM tab2 AS cor0
----
28

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * + - col2 * - 49 <> NULL
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE + col2 + col0 / - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT + 10 DIV col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT + 10 / col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3562
SELECT ALL - 77 DIV - - col2 AS col2, + ( - col1 ) * + - col2 AS col0 FROM tab0
----
-1
3807
-7
210
0
99

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL - 77 / - - col2 AS col2, + ( - col1 ) * + - col2 AS col0 FROM tab0
----
-1
3807
-7
210
0
99

query I rowsort
SELECT ALL - - 51 AS col1 FROM tab2 WHERE NULL IS NULL
----
51
51
51

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3566
SELECT + col0, + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3566
SELECT + col0, + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT DISTINCT + + col0 AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / - 35 + + 10 + + ( + col1 ) + + + col2 >= + 54 * - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT 45 * - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT 45 * - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT DISTINCT COUNT( * ) + 23 AS col0, COUNT( * ) FROM tab1 cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-3571
SELECT DISTINCT COUNT ( * ) + 23 AS col0, COUNT ( * ) FROM tab1 cor0
----
26
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3572
SELECT ALL - MIN( + col0 ) AS col0, + 81 AS col1 FROM tab2 AS cor0
----
-46
81

skipif mysql # not compatible
query II rowsort label-3572
SELECT ALL - MIN ( + col0 ) AS col0, + 81 AS col1 FROM tab2 AS cor0
----
-46
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) = + - ( 58 ) * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * + ( - col1 ) > NULL
----

query I rowsort
SELECT - 33 + 49 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT ALL 0 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + SUM( DISTINCT ( + - col1 ) ) + - COUNT( * ) FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3577
SELECT + SUM ( DISTINCT ( + - col1 ) ) + - COUNT ( * ) FROM tab2
----
-198

query I rowsort
SELECT DISTINCT 44 + - 98 AS col0 FROM tab1
----
-54

query I rowsort
SELECT ALL 92 * - - 77 FROM tab2
----
7084
7084
7084

query II rowsort
SELECT ALL col1 + 22 AS col1, 31 FROM tab1 AS cor0 WHERE ( NULL ) <= + col1 * - col0
----

query II rowsort
SELECT DISTINCT - col2 + 29 + + + 39, + 35 * col2 AS col0 FROM tab2 AS cor0
----
10
2030
28
1400
45
805

query II rowsort
SELECT + 21 AS col1, 10 FROM tab2 AS cor0
----
21
10
21
10
21
10

query I rowsort
SELECT 36 - col1 FROM tab0 AS cor0
----
-45
15
35

query I rowsort
SELECT col0 - - + col2 + + ( col0 ) FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT col2 - col2 * 18 AS col2 FROM tab0
----
-1683
-170
-799

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT 62 + - - 91 + + SUM( - col2 ) AS col0 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-3586
SELECT 62 + - - 91 + + SUM ( - col2 ) AS col0 FROM tab1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3587
SELECT ALL - CAST( + + ( + COUNT( DISTINCT + col0 ) ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - CAST ( + + ( + COUNT ( DISTINCT + col0 ) ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3588
SELECT - COUNT( * ) - - - COUNT( DISTINCT + CAST( - - 22 AS SIGNED ) ) AS col1 FROM tab1, tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3588
SELECT - COUNT ( * ) - - - COUNT ( DISTINCT + CAST ( - - 22 AS INTEGER ) ) AS col1 FROM tab1, tab2 AS cor0
----
-10

query I rowsort
SELECT col1 * + 45 + + - 39 + - 50 + - - 93 + - + 61 * - col0 FROM tab0 AS cor0
----
4564
5966
6256

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 88 / - - col2 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1 * + + col2, + col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query II rowsort
SELECT DISTINCT col0 * - col0, ( + col2 ) AS col1 FROM tab0 AS cor0
----
-225
47
-7569
10
-9409
99

query I rowsort
SELECT DISTINCT - 50 * - col0 FROM tab0
----
4350
4850
750

onlyif mysql # DIV for integer division: 
query II rowsort label-3594
SELECT ALL ( col1 ) DIV - 26, + col2 AS col0 FROM tab1
----
-1
68
0
59
0
96

skipif mysql # not compatible
query II rowsort label-3594
SELECT ALL ( col1 ) / - 26, + col2 AS col0 FROM tab1
----
-1
68
0
59
0
96

query II rowsort
SELECT DISTINCT col2, col2 + ( col2 ) - - col0 AS col1 FROM tab2
----
23
92
40
144
58
191

query I rowsort
SELECT 56 * col0 AS col2 FROM tab2
----
2576
3584
4200

query I rowsort
SELECT - col1 * - + col0 + - 83 * - - col0 + - + col2 FROM tab2 AS cor0
----
-1258
-1495
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT DISTINCT - COUNT( * ) * 53 AS col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT - COUNT ( * ) * 53 AS col1 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT - 69 + - 8 + - col2 FROM tab1
----
-136
-145
-173

query II rowsort
SELECT ( + + col0 ), - col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT - 29 * + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT - 29 * + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3602
SELECT CAST( NULL AS SIGNED ) AS col1, CAST( - 94 AS SIGNED ) * - - ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
NULL
282

skipif mysql # not compatible
query II rowsort label-3602
SELECT CAST ( NULL AS INTEGER ) AS col1, CAST ( - 94 AS INTEGER ) * - - ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
NULL
282

query II rowsort
SELECT DISTINCT col0 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 30 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2 AS cor0 WHERE NOT 18 = col0
----
38

query I rowsort
SELECT - ( AVG ( DISTINCT - 21 ) ) FROM tab1 AS cor0 WHERE - ( - + col2 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 54 NOT IN ( + col2, - 50 + - 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT COUNT( * ) * MAX( col1 ) AS col0 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-3608
SELECT COUNT ( * ) * MAX ( col1 ) AS col0 FROM tab2
----
231

onlyif mysql # DIV for integer division: 
query II rowsort label-3609
SELECT + col1 DIV + - col2 + - 91 * - ( col2 ) AS col2, + col1 AS col1 FROM tab1
----
5369
5
6188
47
8736
14

skipif mysql # not compatible
query II rowsort label-3609
SELECT + col1 / + - col2 + - 91 * - ( col2 ) AS col2, + col1 AS col1 FROM tab1
----
5369
5
6188
47
8736
14

query I rowsort
SELECT col1 * col0 + col2 * + col0 + - col2 AS col2 FROM tab0
----
1873
2687
9601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT - CAST( NULL AS SIGNED ) * - 71 + + 69 / + col0 * 68 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT - CAST ( NULL AS INTEGER ) * - 71 + + 69 / + col0 * 68 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 62 col0 FROM tab1
----
-113
-147
-153

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT - 59 AS col0, + 43 * - - COUNT( * ) AS col2 FROM tab0
----
-59
129

skipif mysql # not compatible
query II rowsort label-3614
SELECT - 59 AS col0, + 43 * - - COUNT ( * ) AS col2 FROM tab0
----
-59
129

query I rowsort
SELECT ALL + - 92 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT + SUM( - col1 ) col0 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3616
SELECT + SUM ( - col1 ) col0 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL - - SUM( ALL - + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL - - SUM ( ALL - + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-227

query II rowsort
SELECT ALL 33, 90 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
18 values hashing to cc25bca8909cc30361bb4265a478e43c

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + 54 * COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-3619
SELECT + 54 * COUNT ( * ) FROM tab1
----
162

query I rowsort
SELECT + col0 * + 64 AS col1 FROM tab2
----
2944
4096
4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 < + col1 * + 13
----

skipif mysql # not compatible
query I rowsort label-3621
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 < + col1 * + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL + SUM( DISTINCT - col2 ) * + - MIN( DISTINCT + col0 ) FROM tab1 AS cor0
----
11373

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + SUM ( DISTINCT - col2 ) * + - MIN ( DISTINCT + col0 ) FROM tab1 AS cor0
----
11373

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL + SUM( + 7 ) AS col0 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL + SUM ( + 7 ) AS col0 FROM tab1 cor0
----
21

query I rowsort
SELECT ALL - 31 * col1 FROM tab0 AS cor0
----
-2511
-31
-651

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL BETWEEN + col2 AND + - 99 + - col1 * - 6 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * - 13 AS col1 FROM tab2 AS cor0
----
-598
-832
-975

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
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-3629
SELECT ALL ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - - ( + col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3631
SELECT DISTINCT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) - + 39 <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3631
SELECT DISTINCT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) - + 39 <> - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 63 FROM tab0 WHERE + 6 + 70 <> 48 + col1 * - col1 * - + col2 + - 80 - ( - col1 )
----
63
63
63

query I rowsort
SELECT col0 * + 80 * - col2 FROM tab0
----
-56400
-69600
-768240

query II rowsort
SELECT ALL + 89 AS col2, - 33 FROM tab2
----
89
-33
89
-33
89
-33

query I rowsort
SELECT 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - 0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + + ( - + col0 ) + - + 40 * - col0 AS col0 FROM tab0 AS cor0
----
3393
3783
585

query I rowsort
SELECT DISTINCT - 65 * col1 * col0 - 38 + + 39 AS col1 FROM tab2 AS cor0
----
-152489
-320319
-326624

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3639
SELECT ALL col2 + - col2 - + + CAST( NULL AS SIGNED ) * + 0 * - 86 AS col0, + 11 FROM tab2 AS cor0
----
NULL
11
NULL
11
NULL
11

skipif mysql # not compatible
query II rowsort label-3639
SELECT ALL col2 + - col2 - + + CAST ( NULL AS INTEGER ) * + 0 * - 86 AS col0, + 11 FROM tab2 AS cor0
----
NULL
11
NULL
11
NULL
11

query II rowsort
SELECT + 2 * col0 + col0 AS col2, + col0 FROM tab2 cor0
----
138
46
192
64
225
75

query I rowsort
SELECT + - col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT - 58 DIV - - col1 + - + col1 - + col1 * - col1 col2 FROM tab0 AS cor0
----
-58
418
6480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3642
SELECT - 58 / - - col1 + - + col1 - + col1 * - col1 col2 FROM tab0 AS cor0
----
-58
418
6480

query I rowsort
SELECT ALL + ( - 86 ) FROM tab2
----
-86
-86
-86

query I rowsort
SELECT col2 * + 67 AS col0 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT DISTINCT - col1 * col1 * col2 AS col1 FROM tab1
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL + + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 17 * - ( - 69 ) * - 1 AS col2 FROM tab0 WHERE NOT + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 17 * - ( - 69 ) * - 1 AS col2 FROM tab0 WHERE NOT + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - 99 * COUNT( * ) * - COUNT( * ) * + ( + COUNT( * ) ) FROM tab0
----
2673

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - 99 * COUNT ( * ) * - COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab0
----
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT DISTINCT COUNT( * ) + 62 FROM tab2 WHERE NOT NULL IS NULL
----
62

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT COUNT ( * ) + 62 FROM tab2 WHERE NOT NULL IS NULL
----
62

query I rowsort
SELECT ALL col0 * 45 FROM tab1 cor0 WHERE ( ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT ALL + col0 + - col0 - - col2 * 29 * + + col2 AS col2 FROM tab1 AS cor0
----
100949
134096
267264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT + CAST( NULL AS SIGNED ) + + 12 * ( - ( 81 ) ) * - ( col0 ) + col1 + col1 + + col2 * + + ( - - col1 ) * 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT + CAST ( NULL AS INTEGER ) + + 12 * ( - ( 81 ) ) * - ( col0 ) + col1 + col1 + + col2 * + + ( - - col1 ) * 60 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3652
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - - 32 + ( col2 ) NOT BETWEEN + - col0 AND CAST( NULL AS SIGNED ) - + 30
----

skipif mysql # not compatible
query III rowsort label-3652
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - - 32 + ( col2 ) NOT BETWEEN + - col0 AND CAST ( NULL AS INTEGER ) - + 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL - MAX( + 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - MAX ( + 25 ) FROM tab2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT - 77 DIV - col2 col0 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3654
SELECT - 77 / - col2 col0 FROM tab0 AS cor0
----
0
1
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * col1 AND - - col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT COUNT( * ) * + + 48 + + + 57 AS col1 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-3656
SELECT COUNT ( * ) * + + 48 + + + 57 AS col1 FROM tab2 AS cor0
----
201

query II rowsort
SELECT + col0 * + col2 * col1 + + + ( + + 78 ) AS col0, col0 + ( + col2 ) - + col1 AS col0 FROM tab0 cor0
----
18348
76
57183
-19
9681
195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query II rowsort
SELECT + col0, 96 * + - ( + - col0 ) FROM tab1
----
51
4896
85
8160
91
8736

query I rowsort
SELECT DISTINCT - 66 * ( - ( - ( - - col1 ) ) ) FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL - COUNT( + 5 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - COUNT ( + 5 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT + ( + ( - COUNT( * ) ) ) + + - COUNT( * ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT + ( + ( - COUNT ( * ) ) ) + + - COUNT ( * ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT ( + COUNT( * ) ) FROM tab2, tab0 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab2, tab0 AS cor0 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT + 70 * - col2 AS col2 FROM tab2
----
-1610
-2800
-4060

query II rowsort
SELECT col2 AS col1, col1 AS col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3666
SELECT + col1 * + 39 * - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
16575
166803
27846

skipif mysql # not compatible
query I rowsort label-3666
SELECT + col1 * + 39 * - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
16575
166803
27846

query I rowsort
SELECT + 2 * + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + col0 * + 66 + + col0 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT 73 + 83 FROM tab2
----
156
156
156

query I rowsort
SELECT - col2 * + 61 AS col1 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT + ( col1 ) + - col2 * col2 AS col2 FROM tab1
----
-3476
-4577
-9202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) * 74 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) * 74 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT ALL MAX( DISTINCT ( 96 ) ) AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL MAX ( DISTINCT ( 96 ) ) AS col1 FROM tab2
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT 76 DIV + SUM( + col1 ) + - ( 76 ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-3674
SELECT 76 / + SUM ( + col1 ) + - ( 76 ) AS col1 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - ( + MIN( DISTINCT 53 ) ) AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - ( + MIN ( DISTINCT 53 ) ) AS col2 FROM tab1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT col0 DIV col2 + - ( - col1 ) AS col1 FROM tab1
----
14
48
6

skipif mysql # not compatible
query I rowsort label-3676
SELECT col0 / col2 + - ( - col1 ) AS col1 FROM tab1
----
14
48
6

query I rowsort
SELECT ALL - 18 * - col1 + + ( - 17 ) * col0 FROM tab0 WHERE NOT ( 5 * - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT CAST( - 23 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT CAST ( - 23 AS INTEGER ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL + 35 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL + 35 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 77 + 88 AS col1 FROM tab0
----
165
165
165

query I rowsort
SELECT DISTINCT - 14 * - col0 FROM tab2
----
1050
644
896

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT ALL + col2 DIV + 81 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + col2 / + 81 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT 45 * - 66 AS col0 FROM tab0
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL MIN( col0 ) * COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL MIN ( col0 ) * COUNT ( * ) FROM tab0
----
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 63 + + 36 NOT IN ( 66 )
----

query I rowsort
SELECT ALL - 3 * - 11 AS col2 FROM tab1 WHERE NOT ( NULL ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT ALL * FROM tab1 WHERE ( col0 - ( CAST( 17 AS SIGNED ) ) * - col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3687
SELECT ALL * FROM tab1 WHERE ( col0 - ( CAST ( 17 AS INTEGER ) ) * - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT - 80 DIV - 65 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3688
SELECT - 80 / - 65 AS col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3689
SELECT - 91 DIV COUNT( * ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-3689
SELECT - 91 / COUNT ( * ) FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - COUNT( * ) - + COUNT( * ) col2 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT - COUNT ( * ) - + COUNT ( * ) col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT COUNT( * ) FROM tab0 WHERE NOT - col1 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3691
SELECT COUNT ( * ) FROM tab0 WHERE NOT - col1 + col1 IS NULL
----
3

query I rowsort
SELECT 7 FROM tab1 WHERE NOT ( col1 ) NOT IN ( + 59 * col0 )
----

query I rowsort
SELECT ALL + 11 FROM tab1 WHERE NULL NOT BETWEEN - col0 AND ( 4 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 2 - - col1 * + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( ( + col2 ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT DISTINCT MIN( DISTINCT 29 ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT MIN ( DISTINCT 29 ) FROM tab0
----
29

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 14 ) NOT IN ( - col2 * - 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT COUNT( * ) * 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-3698
SELECT COUNT ( * ) * 42 FROM tab2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3699
SELECT DISTINCT 94 DIV + 32 + col2 AS col0 FROM tab1
----
61
70
98

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT 94 / + 32 + col2 AS col0 FROM tab1
----
61
70
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT DISTINCT + 3 * ( + COUNT( * ) * - ( ( + COUNT( * ) ) ) ) AS col1 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT + 3 * ( + COUNT ( * ) * - ( ( + COUNT ( * ) ) ) ) AS col1 FROM tab1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ( CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) ) col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3701
SELECT ( CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) ) col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE + col2 * 81 - + col2 <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT DISTINCT col2 DIV 22 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT col2 / 22 FROM tab2
----
1
2

query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT ALL - CAST( 5 AS SIGNED ) FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - CAST ( 5 AS INTEGER ) FROM tab1
----
-5
-5
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 * col1 + col2 * 78 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT - CAST( COUNT( 75 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3709
SELECT - CAST ( COUNT ( 75 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT ALL + - COUNT( * ) col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3710
SELECT ALL + - COUNT ( * ) col1 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + + COUNT( DISTINCT + 1 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3711
SELECT + + COUNT ( DISTINCT + 1 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN + 17 AND ( NULL )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT NULL > 34 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 - col2 IS NOT NULL
----

query I rowsort
SELECT 92 * + - 15 + + 74 AS col2 FROM tab1
----
-1306
-1306
-1306

query I rowsort
SELECT - col2 + - 83 AS col1 FROM tab1
----
-142
-151
-179

query I rowsort
SELECT 53 * col1 + 67 AS col0 FROM tab2
----
2770
3618
4148

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 - col2 ) NOT IN ( - 78 )
----

query I rowsort
SELECT ALL 37 + + col1 FROM tab1 WHERE ( col0 / - col2 + col0 / col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3720
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( 49 AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-3720
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( 49 AS INTEGER ) AND + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col1 * - col2 AND + 22 + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT - ( 84 ) + 75 AS col0 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT + + COUNT( * ) * + - 17 * - COUNT( * ) + 66 FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-3724
SELECT + + COUNT ( * ) * + - 17 * - COUNT ( * ) + 66 FROM tab2 cor0
----
219

query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab2 cor0 WHERE ( 54 ) NOT IN ( col1 )
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 71 / 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + + 21 col2 FROM tab0 AS cor0
----
1869
1869
1869

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT ALL COUNT( + 85 ) + + - 37 col0 FROM tab1
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3728
SELECT ALL COUNT ( + 85 ) + + - 37 col0 FROM tab1
----
-34

query I rowsort
SELECT ALL + 83 * col0 AS col1 FROM tab2
----
3818
5312
6225

query I rowsort
SELECT DISTINCT + 80 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
80

query I rowsort
SELECT + - col2 * + 52 + + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2414
-346
-4954

query I rowsort
SELECT DISTINCT col2 + - - col0 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( 75 + + CAST( NULL AS SIGNED ) - 60 * + col1 ) NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - col2 FROM tab1 AS cor0 WHERE ( 75 + + CAST ( NULL AS INTEGER ) - 60 * + col1 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 49 + + 0 + 93 - + 27 * + col0 FROM tab2 AS cor0
----
-1100
-1586
-1883

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + COUNT( * ) + - 43 FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3735
SELECT + COUNT ( * ) + - 43 FROM tab0 AS cor0
----
-40

query I rowsort
SELECT ALL - 29 + - col0 FROM tab0 AS cor0
----
-116
-126
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - + ( COUNT( * ) ) * + + 36 + 40 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - + ( COUNT ( * ) ) * + + 36 + 40 FROM tab2 AS cor0
----
-68

query II rowsort
SELECT col1, col2 * - - col1 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

query I rowsort
SELECT DISTINCT 34 - + col0 FROM tab0 AS cor0
----
-53
-63
19

query I rowsort
SELECT DISTINCT col0 * - col0 * - 6 * col1 AS col0 FROM tab2 AS cor0
----
1892352
2261250
647496

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 78 + 68 + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT - col0 * col1 AS col1, - col1 AS col1 FROM tab1
----
-425
-5
-4277
-47
-714
-14

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL < + + col2
----

query I rowsort
SELECT - 71 * + col1 FROM tab0
----
-1491
-5751
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT ALL - 73 DIV + - 76 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL - 73 / + - 76 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3746
SELECT DISTINCT - col2 - - 87 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) + col2 + col0 * + 33 * + 44 ) IS NULL
----
-9
19
28

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - col2 - - 87 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) + col2 + col0 * + 33 * + 44 ) IS NULL
----
-9
19
28

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = ( - - 90 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT - 44 * + CAST( NULL AS SIGNED ) / + + 53 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - 44 * + CAST ( NULL AS INTEGER ) / + + 53 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 15 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 80 ) = - 8 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 56 + + 41 FROM tab0 AS cor0 WHERE NOT 15 < col0 * - + col2
----
97
97
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL IN ( + - col0 ) )
----

query I rowsort
SELECT DISTINCT + col2 * - ( 90 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( 76 + - + col1 * 1 )
----
-5310
-6120
-8640

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + 33 * 63 * - - col1 + col1 )
----

query I rowsort
SELECT DISTINCT 78 * + 3 AS col0 FROM tab2
----
234

query I rowsort
SELECT col0 * - + ( - 99 ) FROM tab0
----
1485
8613
9603

query I rowsort
SELECT + + col0 * + col0 * + + col2 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT + col2 * + + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT - COUNT( * ) * COUNT( * ) col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3759
SELECT - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 cor0
----
-9

query I rowsort
SELECT ALL + col1 * - 53 FROM tab0 AS cor0
----
-1113
-4293
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 + - col0 AND ( 98 ) AND ( - col1 * + col0 ) = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3762
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 29 * - - 33 * + CAST( NULL AS SIGNED ) * + + col1 * + 75 ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - 29 * - - 33 * + CAST ( NULL AS INTEGER ) * + + col1 * + 75 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3763
SELECT + + ( - + 30 ) * - + COUNT( * ) DIV - SUM( ALL ( col2 ) ) * 66 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3763
SELECT + + ( - + 30 ) * - + COUNT ( * ) / - SUM ( ALL ( col2 ) ) * 66 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ( - - 25 ) FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT - ( - SUM( - col2 ) ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3765
SELECT - ( - SUM ( - col2 ) ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( NOT col0 < ( col0 * - ( col0 ) * - col0 ) )
----
1
21
81

query II rowsort
SELECT - col2 AS col1, - 18 AS col2 FROM tab2
----
-23
-18
-40
-18
-58
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + ( + COUNT( * ) ) AS col2 FROM tab2 WHERE 52 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab2 WHERE 52 IS NULL
----
0

query I rowsort
SELECT ALL col2 * - + 98 AS col0 FROM tab2
----
-2254
-3920
-5684

query II rowsort
SELECT - 16 AS col0, col0 FROM tab1
----
-16
51
-16
85
-16
91

query I rowsort
SELECT col2 + ( - + col0 ) - + - col1 + + col1 + - col0 + + 57 FROM tab1 AS cor0
----
-44
37
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 - + - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 - + - 77 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL MIN( 95 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3774
SELECT ALL MIN ( 95 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT - col2 DIV ( + 66 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT - col2 / ( + 66 ) FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 55 * col0 * col0 <= ( + 5 )
----

query I rowsort
SELECT ALL 87 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 28 - - col2 + col2 + + 65 AS col2 FROM tab2 AS cor0
----
117
153
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3779
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 93 * 74 - + col2 + + col2 * - CAST( NULL AS SIGNED ) - + col1 * col2 AND ( col1 )
----

skipif mysql # not compatible
query III rowsort label-3779
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 93 * 74 - + col2 + + col2 * - CAST ( NULL AS INTEGER ) - + col1 * col2 AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - COUNT( * ) * - COUNT( * ) + + - 17 + + + 88 * + COUNT( * ) FROM tab0
----
256

skipif mysql # not compatible
query I rowsort label-3780
SELECT - COUNT ( * ) * - COUNT ( * ) + + - 17 + + + 88 * + COUNT ( * ) FROM tab0
----
256

query I rowsort
SELECT col2 * + - col0 + + + col0 * + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL COUNT( * ) * + COUNT( * ) - 44 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL COUNT ( * ) * + COUNT ( * ) - 44 FROM tab2
----
-35

query II rowsort
SELECT 35, + col2 AS col2 FROM tab1
----
35
59
35
68
35
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3784
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3785
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( + + 54 ) AND + col1 + + col2 * + - 43 * - 16 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3785
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( + + 54 ) AND + col1 + + col2 * + - 43 * - 16 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT DISTINCT COUNT( ALL 45 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT COUNT ( ALL 45 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 98 * + col0 AND + 58 + col1 * + col2 * col1 OR NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT 93 * - - COUNT( * ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-3788
SELECT 93 * - - COUNT ( * ) FROM tab1
----
279

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL < col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + 14 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT ALL + MAX( ALL - + CAST( ( + col2 ) AS SIGNED ) ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + MAX ( ALL - + CAST ( ( + col2 ) AS INTEGER ) ) AS col1 FROM tab2 cor0
----
-23

query I rowsort
SELECT DISTINCT 91 * col1 AS col1 FROM tab0 cor0
----
1911
7371
91

query I rowsort
SELECT ALL + col2 * - col2 FROM tab1 AS cor0 WHERE ( + 1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL MIN( - + col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL MIN ( - + col0 ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + col1 * - + ( 63 ) FROM tab1
----
-2961
-315
-882

query I rowsort
SELECT DISTINCT ( + - col2 ) * + 94 FROM tab1
----
-5546
-6392
-9024

query I rowsort
SELECT + col0 + + ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col2
----

query I rowsort
SELECT ALL 4 + + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
445
5
6565

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3799
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) - - col1 * + col0 / - col1 - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) - - col1 * + col0 / - col1 - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - MAX( ALL col2 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - MAX ( ALL col2 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT - SUM( + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT - SUM ( + col0 ) FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT + + col0 + - CAST( NULL AS SIGNED ) / + 21 AS col2 FROM tab2 WHERE ( NULL ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3802
SELECT + + col0 + - CAST ( NULL AS INTEGER ) / + 21 AS col2 FROM tab2 WHERE ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL col1 + + col0 + + col1 + col0 + + 68 * + ( col2 ) + - - col1 FROM tab1
----
4197
4947
6672

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col1 AS col2 FROM tab0 cor0
----
-162
-2
-42

query I rowsort
SELECT ALL col2 + + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 25 * ( - col2 ) + + col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - - ( - col2 ) FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT 53 * - col1 - - col1 FROM tab1
----
-2444
-260
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NOT 77 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL + MIN( DISTINCT col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + MIN ( DISTINCT col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT - ( - col2 ) DIV - col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT - ( - col2 ) / - col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT + 4 + - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT + 4 + - COUNT ( * ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT 43 * - - col0 + + col1 FROM tab0 AS cor0
----
3762
4172
726

query II rowsort
SELECT - col0, - ( - ( col2 ) ) + col0 - + col1 + - col1 - + + 22 * + col1 AS col2 FROM tab1 AS cor0
----
-51
-189
-85
24
-91
-969

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 21 * col2 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT + ( + MIN( - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3817
SELECT + ( + MIN ( - col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL col2 * 63 + + col1 FROM tab2 AS cor0
----
1500
2597
3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 22 + - + col0 col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 96 * + + 92 AS col2 FROM tab2 cor0
----
8832

query II rowsort
SELECT + col2 + 16 * col1 AS col1, - 6 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT 13 * - MAX( ALL - col2 ) FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-3822
SELECT 13 * - MAX ( ALL - col2 ) FROM tab0
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3823
SELECT - + 45 DIV - + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3823
SELECT - + 45 / - + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT IN ( - + 60 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT DISTINCT - + COUNT( * ) * SUM( ALL + - 64 ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5175

skipif mysql # not compatible
query I rowsort label-3826
SELECT DISTINCT - + COUNT ( * ) * SUM ( ALL + - 64 ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5175

query I rowsort
SELECT + 5 * + 94 * - - col1 AS col2 FROM tab2 AS cor0
----
23970
31490
36190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT DISTINCT - - col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT - - col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3830
SELECT - + 93 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-93
-3

skipif mysql # not compatible
query II rowsort label-3830
SELECT - + 93 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-93
-3

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab0 AS cor0 WHERE NOT NULL <> 41
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 12 IS NOT NULL
----

query I rowsort
SELECT col0 * col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 3 AS col0 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT DISTINCT - + ( col2 ) * col2 FROM tab2 WHERE NOT - - ( + col0 ) NOT BETWEEN - - 52 AND NULL
----

query I rowsort
SELECT DISTINCT 18 * + ( + + 1 ) FROM tab1
----
18

query I rowsort
SELECT col2 + col1 - + + col0 FROM tab2
----
28
50
53

query I rowsort
SELECT - 57 + - 30 AS col2 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT col2 + - col2 * - - 16 + + + col2 AS col2 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT + col0 + ( - - col1 ) + - + 22 * - 34 + - col0 AS col1 FROM tab0
----
749
769
829

query I rowsort
SELECT 61 + 11 AS col2 FROM tab2
----
72
72
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT + - 71 + 5 AS col2, COUNT( * ) FROM tab1 cor0
----
-66
3

skipif mysql # not compatible
query II rowsort label-3842
SELECT + - 71 + 5 AS col2, COUNT ( * ) FROM tab1 cor0
----
-66
3

query I rowsort
SELECT + col1 * - - col0 + + col0 AS col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3844
SELECT ALL + 72 DIV - + COUNT( * ) AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL + 72 / - + COUNT ( * ) AS col1 FROM tab1
----
-24

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 17 * - col1 IS NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col2 FROM tab2 cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL + SUM( + 63 ) + - MIN( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + SUM ( + 63 ) + - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - 32, col1 AS col0 FROM tab0 cor0
----
-32
1
-32
21
-32
81

query II rowsort
SELECT DISTINCT 12 AS col0, - 84 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
12
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT MAX( DISTINCT col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT - 5 AS col0, + ( - 99 ) + + COUNT( * ) FROM tab1
----
-5
-96

skipif mysql # not compatible
query II rowsort label-3851
SELECT - 5 AS col0, + ( - 99 ) + + COUNT ( * ) FROM tab1
----
-5
-96

query II rowsort
SELECT 45, - ( col1 ) AS col1 FROM tab0
----
45
-1
45
-21
45
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col2 FROM tab2 cor0
----
76
76
76

query I rowsort
SELECT DISTINCT col1 + - 12 FROM tab2 AS cor0
----
39
55
65

query I rowsort
SELECT col0 + + - col2 * - 12 FROM tab0 AS cor0
----
1285
207
579

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + - COUNT( * ) * ( - - ( - ( - COUNT( * ) ) ) ) + - + 62 col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3856
SELECT ALL + - COUNT ( * ) * ( - - ( - ( - COUNT ( * ) ) ) ) + - + 62 col2 FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT + col0 + + col1 + + CAST( - col0 AS SIGNED ) * ( + + col1 ) FROM tab2 AS cor0
----
-2249
-4787
-4883

skipif mysql # not compatible
query I rowsort label-3857
SELECT + col0 + + col1 + + CAST ( - col0 AS INTEGER ) * ( + + col1 ) FROM tab2 AS cor0
----
-2249
-4787
-4883

query I rowsort
SELECT - 41 * col0 + - + ( col1 ) FROM tab0 AS cor0
----
-3588
-3978
-696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + + + col0 + - - col2 col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( NOT 16 * - 38 <= - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3861
SELECT DISTINCT + col1 + - + CAST( col1 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + col1 + - + CAST ( col1 AS INTEGER ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( col1, - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3863
SELECT ALL 66 DIV col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL 66 / col1 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT - + col1 FROM tab2 WHERE - + 47 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + 25 FROM tab1 WHERE NOT + - col0 * + - 71 + + col1 * - col0 NOT IN ( - - col0, col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 57 + col2 )
----

query I rowsort
SELECT ALL + col1 + + 58 FROM tab0
----
139
59
79

query I rowsort
SELECT DISTINCT + - col2 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3869
SELECT * FROM tab2 cor0 WHERE col0 + + col2 + + - CAST( NULL AS SIGNED ) * - - col1 * + + col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-3869
SELECT * FROM tab2 cor0 WHERE col0 + + col2 + + - CAST ( NULL AS INTEGER ) * - - col1 * + + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT + col2 DIV col1 - - col1 FROM tab0 AS cor0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-3870
SELECT + col2 / col1 - - col1 FROM tab0 AS cor0
----
100
21
81

query I rowsort
SELECT col0 + col1 + + + col1 FROM tab1
----
185
79
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT - col0 - - ( - col1 ) FROM tab2
----
-141
-142
-97

query I rowsort
SELECT + 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3875
SELECT ALL - - col1 * + + col2 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1344
NULL
295
NULL
3196
NULL

skipif mysql # not compatible
query II rowsort label-3875
SELECT ALL - - col1 * + + col2 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1344
NULL
295
NULL
3196
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3876
SELECT + COUNT( * ) DIV + 36 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3876
SELECT + COUNT ( * ) / + 36 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN 95 / - 25 * col2 + col1 AND + - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + col1 + - col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > 0 / - col0
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + + 22 * col0 + 0 + ( col0 ) + + 28 * + + col2 NOT IN ( 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT 21 * + - COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-3881
SELECT 21 * + - COUNT ( * ) AS col0 FROM tab0
----
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 10 / - 26 - - ( - col0 ) * + + 6 - col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ( + - ( COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3883
SELECT ( + - ( COUNT ( * ) ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL - 62 FROM tab0 cor0
----
-62
-62
-62

query I rowsort
SELECT col1 * - - col2 + col1 AS col1 FROM tab2
----
1224
3157
3953

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3886
SELECT ALL * FROM tab2 WHERE + 1 * - col2 + - col0 + - col1 > + + col1 + col2 * - CAST( + 3 AS SIGNED ) * col1 + col1 * - - ( + - col2 ) - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3886
SELECT ALL * FROM tab2 WHERE + 1 * - col2 + - col0 + - col1 > + + col1 + col2 * - CAST ( + 3 AS INTEGER ) * col1 + col1 * - - ( + - col2 ) - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT - MAX( ALL - - 19 ) AS col1 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-3888
SELECT - MAX ( ALL - - 19 ) AS col1 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT - MIN( + col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3889
SELECT - MIN ( + col2 ) AS col0 FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT - + col1 + ( - col1 ) FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT ALL - 83 * + CAST( + 84 AS SIGNED ) * - 2 AS col0 FROM tab2 cor0
----
13944
13944
13944

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - 83 * + CAST ( + 84 AS INTEGER ) * - 2 AS col0 FROM tab2 cor0
----
13944
13944
13944

query II rowsort
SELECT - col1 / + col2 + + 69, 43 * + col0 - + col1 + - 60 * + col0 AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + + col0 AND NULL
----

query I rowsort
SELECT - + ( col0 ) AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 9 + + + col1 * col0 AS col0 FROM tab2
----
2337
4919
5016

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3895
SELECT + COUNT( * ) + - ( + - CAST( NULL AS DECIMAL ) ) + - 80 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3895
SELECT + COUNT ( * ) + - ( + - CAST ( NULL AS REAL ) ) + - 80 col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT ALL + col0 DIV ( - 33 ) AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL + col0 / ( - 33 ) AS col0 FROM tab0
----
-2
-2
0

query I rowsort
SELECT col2 * - + 77 + + col0 AS col1 FROM tab1
----
-4458
-5145
-7341

query I rowsort
SELECT + col2 * - 4 * col2 + + col0 AS col1 FROM tab0
----
-313
-39107
-8821

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - 77 + + COUNT( DISTINCT 89 ) AS col0 FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-3899
SELECT - 77 + + COUNT ( DISTINCT 89 ) AS col0 FROM tab2
----
-76

query I rowsort
SELECT DISTINCT + ( - 18 ) + + - col0 AS col2 FROM tab1 cor0
----
-103
-109
-69

query I rowsort
SELECT DISTINCT col0 - col0 + + + 91 FROM tab1 cor0
----
91

query II rowsort
SELECT DISTINCT col2 * col2 * - col2, + 94 AS col2 FROM tab0
----
-1000
94
-103823
94
-970299
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col1 - - - col1 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - ( - col0 ) - - col2 NOT IN ( - + ( + + col1 ) * + - 15 + + 88 + - + col2 + + col0 + + + col2 * + - 0 + - col0, - col0, - col2 * - 24 )
----

query II rowsort
SELECT ALL - 11, + col2 FROM tab1 AS cor0
----
-11
59
-11
68
-11
96

query I rowsort
SELECT DISTINCT - col0 * + - 3 AS col0 FROM tab0 AS cor0
----
261
291
45

query I rowsort
SELECT DISTINCT + 64 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT + MAX( 93 ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3908
SELECT + MAX ( 93 ) FROM tab0
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3909
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 >= - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3909
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 >= - - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + MAX( DISTINCT + 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3910
SELECT + MAX ( DISTINCT + 97 ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT + CAST( + + col0 AS SIGNED ) * - - col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-3911
SELECT + CAST ( + + col0 AS INTEGER ) * - - col0 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col1 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 62 + + 52 col2 FROM tab0 AS cor0
----
114

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 WHERE NULL IS NULL
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 AS cor0 WHERE NOT + col0 <> + col0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3916
SELECT 82 DIV - SUM( + col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3916
SELECT 82 / - SUM ( + col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT 83 * - + 13 + col2 + + col1 AS col1 FROM tab0 AS cor0
----
-1048
-951
-979

onlyif mysql # DIV for integer division: 
query II rowsort label-3918
SELECT DISTINCT 28 AS col1, - 92 DIV col0 FROM tab1
----
28
-1

skipif mysql # not compatible
query II rowsort label-3918
SELECT DISTINCT 28 AS col1, - 92 / col0 FROM tab1
----
28
-1

query I rowsort
SELECT - 11 + + 75 AS col2 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT col2 * - 61 + + - col1 * + ( + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND - + col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 68 + COUNT( * ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3921
SELECT 68 + COUNT ( * ) FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT - - 23 * + col2 + - - col0 FROM tab0 AS cor0
----
1096
2374
317

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT ALL - + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= - col2 * - 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT + 30 + - 62 + - - col1 DIV - ( col2 ) - col2 - - + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-4377
-516
-842

skipif mysql # not compatible
query I rowsort label-3926
SELECT + 30 + - 62 + - - col1 / - ( col2 ) - col2 - - + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-4377
-516
-842

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT ALL + col1 * - col2 + - - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL + col1 * - col2 + - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT ALL + col1 - - col1 * 45 * - col0 FROM tab1
----
-19120
-192418
-32116

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT DISTINCT COUNT( DISTINCT + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT COUNT ( DISTINCT + + col2 ) FROM tab2
----
3

query I rowsort
SELECT - ( 99 ) AS col2 FROM tab2
----
-99
-99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3932
SELECT ALL - 92 DIV - col1 + - + col0 * - - col1 AS col0 FROM tab0
----
-1214
-1823
-5

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - 92 / - col1 + - + col0 * - - col1 AS col0 FROM tab0
----
-1214
-1823
-5

query I rowsort
SELECT 11 - - col0 + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
48
55
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 * + col0 col2 FROM tab2 AS cor0
----
1344
1575
966

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3935
SELECT ALL + 15 DIV - 17 - + + COUNT( * ), - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-3935
SELECT ALL + 15 / - 17 - + + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT + COUNT( * ) * - 97 + - + SUM( ALL col2 ) + - COUNT( col2 ) FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) / 15 < NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT + COUNT ( * ) * - 97 + - + SUM ( ALL col2 ) + - COUNT ( col2 ) FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) / 15 < NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL ( + ( + - COUNT( * ) ) ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL ( + ( + - COUNT ( * ) ) ) FROM tab1, tab2 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 * 19 col0, 46 FROM tab0 AS cor0
----
-1881
46
-190
46
-893
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT ALL + COUNT( 7 ) + COUNT( DISTINCT + 40 ) FROM tab2 cor0 WHERE NOT 84 NOT BETWEEN + col1 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + COUNT ( 7 ) + COUNT ( DISTINCT + 40 ) FROM tab2 cor0 WHERE NOT 84 NOT BETWEEN + col1 AND - col1
----
0

query I rowsort
SELECT ALL + col2 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - col0 * + 69 FROM tab2 AS cor0
----
-3174
-4416
-5175

query I rowsort
SELECT DISTINCT col1 * + + col2 + + col1 + - 83 AS col0 FROM tab2 AS cor0
----
1141
3074
3870

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3944
SELECT + - CAST( NULL AS DECIMAL ) / - + col2, + col2 * - 27 AS col2 FROM tab0 cor0
----
NULL
-1269
NULL
-2673
NULL
-270

skipif mysql # not compatible
query II rowsort label-3944
SELECT + - CAST ( NULL AS REAL ) / - + col2, + col2 * - 27 AS col2 FROM tab0 cor0
----
NULL
-1269
NULL
-2673
NULL
-270

query I rowsort
SELECT ALL - + 94 * - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-244494
-679150
-778414

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col1 * + + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 19 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3949
SELECT DISTINCT + col0 DIV - + col0, col1 * 88 * + col2 col1 FROM tab1 AS cor0
----
-1
118272
-1
25960
-1
281248

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3949
SELECT DISTINCT + col0 / - + col0, col1 * 88 * + col2 col1 FROM tab1 AS cor0
----
-1
118272
-1
25960
-1
281248

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT DISTINCT - col1 DIV 12 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT - col1 / 12 FROM tab0 AS cor0
----
-1
-6
0

query II rowsort
SELECT - col0, 24 AS col2 FROM tab1
----
-51
24
-85
24
-91
24

query I rowsort
SELECT ALL - AVG ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL 20 * + MAX( + col2 ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
1980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3953
SELECT ALL 20 * + MAX ( + col2 ) col2 FROM tab0 WHERE ( NULL ) IS NULL
----
1980

query II rowsort
SELECT + col1, col1 * + col2 * - col0 AS col2 FROM tab0
----
1
-9603
21
-18270
81
-57105

query I rowsort
SELECT DISTINCT + 90 + 8 AS col1 FROM tab2 AS cor0
----
98

query I rowsort
SELECT DISTINCT col1 + + - 80 * - - 54 AS col1 FROM tab1
----
-4273
-4306
-4315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL + col1 * + + CAST( - - 92 AS SIGNED ) FROM tab0
----
1932
7452
92

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + col1 * + + CAST ( - - 92 AS INTEGER ) FROM tab0
----
1932
7452
92

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + 23 + 67 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 54 - 17 - - + 57 + + + col2 FROM tab0 AS cor0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT - COUNT( * ) - + 6 AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3960
SELECT - COUNT ( * ) - + 6 AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT DISTINCT + + CAST( col2 AS SIGNED ) * col1 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NULL ) IS NULL
----
1224
3157
3953

skipif mysql # not compatible
query I rowsort label-3961
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) * col1 + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND ( NULL ) IS NULL
----
1224
3157
3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT ALL + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + 4 ) <= col0
----

query I rowsort
SELECT + 10 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query II rowsort
SELECT DISTINCT - 53, col1 AS col1 FROM tab0
----
-53
1
-53
21
-53
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3966
SELECT col1 * - col0 + - + CAST( NULL AS DECIMAL ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT col1 * - col0 + - + CAST ( NULL AS REAL ) + - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT 86 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT 86 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - - col0 * + 82 FROM tab1
----
401472
411230
507416

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT DISTINCT - COUNT( * ) * + 8 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - COUNT ( * ) * + 8 FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT - CAST( - + 31 AS SIGNED ) col0 FROM tab2
----
31
31
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3970
SELECT - CAST ( - + 31 AS INTEGER ) col0 FROM tab2
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col1, ( + 23 ) FROM tab0
----
83
23
83
23
83
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT COUNT( * ) * + 30 AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3972
SELECT COUNT ( * ) * + 30 AS col1 FROM tab1
----
90

query I rowsort
SELECT ALL - col2 * 92 AS col1 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT DISTINCT + 0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0

query II rowsort
SELECT DISTINCT + col0 AS col1, + 16 * + col2 AS col0 FROM tab1
----
51
1536
85
944
91
1088

onlyif mysql # aggregate syntax: 
query II rowsort label-3976
SELECT 89 AS col1, - COUNT( * ) FROM tab1
----
89
-3

skipif mysql # not compatible
query II rowsort label-3976
SELECT 89 AS col1, - COUNT ( * ) FROM tab1
----
89
-3

query I rowsort
SELECT ALL 75 * + col2 AS col0 FROM tab2
----
1725
3000
4350

query I rowsort
SELECT + AVG ( - - ( 27 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT DISTINCT 71 * - + MAX( ALL + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT 71 * - + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 * - + 58 + ( col2 ) AS col2 FROM tab1 cor0
----
3054
4989
5346

query I rowsort
SELECT DISTINCT - - col0 * + 53 AS col1 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT DISTINCT - col2 DIV col0 * col0 DIV - + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT - col2 / col0 * col0 / - + col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT + 56 DIV - - SUM( - 83 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT + 56 / - - SUM ( - 83 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) * - - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3985
SELECT + + 34 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3985
SELECT + + 34 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 2 * col2 col0 FROM tab0 cor0
----
107
109
295

onlyif mysql # DIV for integer division: 
query I rowsort label-3987
SELECT + col0 + col2 DIV - + 52 + col2 col0 FROM tab2
----
104
132
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3987
SELECT + col0 + col2 / - + 52 + col2 col0 FROM tab2
----
104
132
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3988
SELECT col2 + CAST( NULL AS DECIMAL ) / - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT col2 + CAST ( NULL AS REAL ) / - col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col1 FROM tab2 WHERE NOT + - col2 + col2 <> - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * - 7 col1 FROM tab1
----
-630
-630
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT ALL - col2 DIV col0 + + + 54 FROM tab0
----
51
53
54

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL - col2 / col0 + + + 54 FROM tab0
----
51
53
54

query I rowsort
SELECT DISTINCT - 83 + - 27 FROM tab2 AS cor0
----
-110

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + 72 / - 73 + + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL COUNT( * ) * - 43 + + COUNT( * ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL COUNT ( * ) * - 43 + + COUNT ( * ) FROM tab0 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - + 41 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-3995
SELECT - + 41 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-123

query I rowsort
SELECT DISTINCT - col2 * - col0 + + + col0 AS col2 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0 + + ( 52 ) * + + ( 80 ) * - + col2 * + - col1 * + 37 - - - col0 * + col2 + col2 AS col0, col0 FROM tab2 AS cor0
----
180547171
46
474071144
64
598128903
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3999
SELECT - col2 * - + col1 * - col2 * + - col0 + + CAST( 18 AS SIGNED ) DIV + 37 FROM tab1 AS cor0
----
1479425
19776848
6580224

skipif mysql # not compatible
query I rowsort label-3999
SELECT - col2 * - + col1 * - col2 * + - col0 + + CAST ( 18 AS INTEGER ) / + 37 FROM tab1 AS cor0
----
1479425
19776848
6580224

query II rowsort
SELECT - col2, + col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - - ( + + 31 ) FROM tab1 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4002
SELECT - AVG ( DISTINCT - - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT - AVG ( DISTINCT - - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + MIN( DISTINCT - 7 ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4003
SELECT + MIN ( DISTINCT - 7 ) FROM tab1 AS cor0
----
-7

query I rowsort
SELECT DISTINCT - col2 + 57 * col0 FROM tab2 AS cor0
----
2599
3608
4217

query I rowsort
SELECT DISTINCT ( + - col0 ) - 37 FROM tab0 AS cor0
----
-124
-134
-52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4006
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + CAST( NULL AS DECIMAL ) ) * - 10 < NULL
----

skipif mysql # not compatible
query III rowsort label-4006
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - + CAST ( NULL AS REAL ) ) * - 10 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT + SUM( DISTINCT - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + SUM ( DISTINCT - - col1 ) FROM tab1
----
66

query I rowsort
SELECT ALL + 69 * + 57 FROM tab2
----
3933
3933
3933

query II rowsort
SELECT 73 * + 67, col0 FROM tab2
----
4891
46
4891
64
4891
75

query I rowsort
SELECT - col0 * + + 38 + 52 AS col1 FROM tab2 AS cor0
----
-1696
-2380
-2798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT - CAST( NULL AS SIGNED ) * + + ( col2 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT - CAST ( NULL AS INTEGER ) * + + ( col2 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT ( ( - COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT ( ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 46 + - col2 FROM tab2 AS cor0
----
-12
23
6

query I rowsort
SELECT - 72 * col1 * - + ( 93 ) AS col2 FROM tab0 AS cor0
----
140616
542376
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4016
SELECT COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL MIN( - 93 ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL MIN ( - 93 ) AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT DISTINCT ( - 53 ) + - COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT ( - 53 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-56

query I rowsort
SELECT ( + + col0 ) * - ( 49 ) AS col0 FROM tab1 cor0
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query II rowsort label-4020
SELECT ALL + 22 AS col1, COUNT( * ) FROM tab1 AS cor0
----
22
3

skipif mysql # not compatible
query II rowsort label-4020
SELECT ALL + 22 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
22
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, + 83 col0 FROM tab1 AS cor0
----
-14
83
-47
83
-5
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 / + 42
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4023
SELECT ALL 87 AS col0, COUNT( * ) * 50 FROM tab0 AS cor0
----
87
150

skipif mysql # not compatible
query II rowsort label-4023
SELECT ALL 87 AS col0, COUNT ( * ) * 50 FROM tab0 AS cor0
----
87
150

query I rowsort
SELECT ALL - 25 + - + 39 - + - col2 + - col2 * - col0 AS col1 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4025
SELECT * FROM tab2 WHERE - + col1 * + + col1 < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4025
SELECT * FROM tab2 WHERE - + col1 * + + col1 < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 75 * + ( col0 ) FROM tab0
----
1125
6525
7275

query I rowsort
SELECT DISTINCT - 42 * col0 AS col1 FROM tab2
----
-1932
-2688
-3150

query II rowsort
SELECT DISTINCT + col1 + col0, col2 AS col0 FROM tab1
----
138
68
65
96
90
59

query I rowsort
SELECT - col2 + - 67 AS col2 FROM tab0
----
-114
-166
-77

query II rowsort
SELECT ALL col1 + col1 AS col1, + col2 FROM tab2
----
102
23
134
58
154
40

query III rowsort
SELECT * FROM tab2 WHERE col0 - + 94 IS NULL
----

query I rowsort
SELECT DISTINCT 17 + + col1 AS col2 FROM tab1 AS cor0
----
22
31
64

query I rowsort
SELECT ALL - 11 + + 37 * - + col1 * + 53 - col2 FROM tab0 AS cor0
----
-158899
-2071
-41202

query I rowsort
SELECT - 97 + + - 24 AS col0 FROM tab2 AS cor0
----
-121
-121
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT DISTINCT + - 97 * + CAST( + 52 AS SIGNED ) FROM tab1 AS cor0
----
-5044

skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT + - 97 * + CAST ( + 52 AS INTEGER ) FROM tab1 AS cor0
----
-5044

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT DISTINCT - COUNT( * ) + - - MIN( DISTINCT + col2 ) DIV - - SUM( DISTINCT + 78 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT - COUNT ( * ) + - - MIN ( DISTINCT + col2 ) / - - SUM ( DISTINCT + 78 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * - + 13 FROM tab1
----
1248
767
884

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT DISTINCT + col1 * - + 0 DIV - col1 * - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + col1 * - + 0 / - col1 * - col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL MAX( DISTINCT 7 ) + + COUNT( * ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL MAX ( DISTINCT 7 ) + + COUNT ( * ) AS col0 FROM tab0
----
10

query I rowsort
SELECT - col1 * ( ( 70 ) ) AS col0 FROM tab1
----
-3290
-350
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - col2 FROM tab2
----
0

query II rowsort
SELECT - 67 - - - ( col2 ) AS col0, - 78 AS col0 FROM tab0 AS cor0
----
-114
-78
-166
-78
-77
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4044
SELECT ALL + COUNT( * ) + - COUNT( * ) DIV - + 56 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + COUNT ( * ) + - COUNT ( * ) / - + 56 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col2 - - col0 AS col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - ( + 13 ) * - col0 - + col1 FROM tab0 AS cor0
----
1110
114
1260

query I rowsort
SELECT DISTINCT col1 + + 27 * + col2 FROM tab0 AS cor0
----
1350
2674
291

query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab2 AS cor0 WHERE NULL = col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + 13 + + + 32
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4050
SELECT DISTINCT COUNT( * ) * + - COUNT( * ), 96 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-4050
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ), 96 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-9
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND - 14
----
97
1
99

query II rowsort
SELECT DISTINCT + 91, 15 * + col0 FROM tab1 WHERE - col0 * col1 IN ( - 86 )
----

query II rowsort
SELECT 55, col2 AS col1 FROM tab2
----
55
23
55
40
55
58

query II rowsort
SELECT DISTINCT col0, + 26 * - col0 FROM tab0
----
15
-390
87
-2262
97
-2522

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT - 91 DIV - 80 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4055
SELECT - 91 / - 80 AS col1 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT DISTINCT 9 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT 9 / + col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4057
SELECT DISTINCT + + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT - MIN( - + 71 ) col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4058
SELECT DISTINCT - MIN ( - + 71 ) col1 FROM tab2 AS cor0
----
71

query I rowsort
SELECT - 55 * + 60 FROM tab0 AS cor0
----
-3300
-3300
-3300

query I rowsort
SELECT - 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT - ( - 9 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + ( + col0 ) + + 34 AS col2 FROM tab0 cor0
----
121
131
49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4063
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 99 * - 84 < + + CAST( NULL AS SIGNED ) * + col1 + + - ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-4063
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 99 * - 84 < + + CAST ( NULL AS INTEGER ) * + col1 + + - ( - col1 )
----

query I rowsort
SELECT - - col0 + - ( + - col0 ) FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT DISTINCT - - MIN( - 82 ) col1 FROM tab1 AS cor0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4065
SELECT DISTINCT - - MIN ( - 82 ) col1 FROM tab1 AS cor0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4066
SELECT - - 79 DIV + COUNT( * ) + COUNT( * ) - + COUNT( * ) + CAST( - SUM( - col0 ) AS SIGNED ) FROM tab0 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - 79 / + COUNT ( * ) + COUNT ( * ) - + COUNT ( * ) + CAST ( - SUM ( - col0 ) AS INTEGER ) FROM tab0 cor0
----
225

query I rowsort
SELECT - 96 + + 43 AS col0 FROM tab0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT DISTINCT SUM( + col2 ) * + 14 AS col0 FROM tab0
----
2184

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT SUM ( + col2 ) * + 14 AS col0 FROM tab0
----
2184

onlyif mysql # DIV for integer division: 
query II rowsort label-4069
SELECT DISTINCT + 41, 34 DIV - 74 - + col2 * 30 AS col2 FROM tab2
----
41
-1200
41
-1740
41
-690

skipif mysql # not compatible
query II rowsort label-4069
SELECT DISTINCT + 41, 34 / - 74 - + col2 * 30 AS col2 FROM tab2
----
41
-1200
41
-1740
41
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT - MAX( DISTINCT + 37 ) * + 91 + + 92 + - + COUNT( * ) * + 41 * + - 80 + - + COUNT( * ) + + MIN( - 84 ) FROM tab1
----
6478

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - MAX ( DISTINCT + 37 ) * + 91 + + 92 + - + COUNT ( * ) * + 41 * + - 80 + - + COUNT ( * ) + + MIN ( - 84 ) FROM tab1
----
6478

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 33 * col0 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + ( col2 ) * - col2 col2 FROM tab0
----
-13
-2194
-9704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT - CAST( NULL AS SIGNED ) * + col1 * - - col0 - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CAST ( NULL AS INTEGER ) * + col1 * - - col0 - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 54 + col2 AS col0 FROM tab0
----
101
153
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL MIN( + col1 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL MIN ( + col1 ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT - col1 * + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2, 57 FROM tab2 AS cor0
----
23
57
40
57
58
57

query II rowsort
SELECT + col0, + col2 + - + col1 FROM tab2 AS cor0
----
46
-28
64
-37
75
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4080
SELECT + - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT + - col1 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, - 88 * + 31 col2 FROM tab0 AS cor0
----
15
-2728
87
-2728
97
-2728

query II rowsort
SELECT DISTINCT - 52 * - col1 AS col0, col1 * col2 + 60 FROM tab0 AS cor0
----
1092
270
4212
3867
52
159

query I rowsort
SELECT ALL + + 92 * + - col0 AS col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 - - 37 + - 71 * + + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL MIN( 41 ) AS col0 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL MIN ( 41 ) AS col0 FROM tab2
----
41

query I rowsort
SELECT ALL ( + + 59 ) FROM tab2
----
59
59
59

query I rowsort
SELECT DISTINCT + col1 + + col1 AS col0 FROM tab2 WHERE col2 IS NOT NULL
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL MIN( ALL - + 73 ) FROM tab2, tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL MIN ( ALL - + 73 ) FROM tab2, tab2 AS cor0
----
-73

query I rowsort
SELECT col1 * + + 71 FROM tab0
----
1491
5751
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT col1 * 81 DIV col1 * - + 28 col1 FROM tab1 AS cor0
----
-2268
-2268
-2268

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4090
SELECT col1 * 81 / col1 * - + 28 col1 FROM tab1 AS cor0
----
-2268
-2268
-2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT - col1 * - + CAST( NULL AS SIGNED ) / + - 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT - col1 * - + CAST ( NULL AS INTEGER ) / + - 18 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-4093
SELECT DISTINCT - 64 + + col2 DIV 86 col2 FROM tab0
----
-63
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4093
SELECT DISTINCT - 64 + + col2 / 86 col2 FROM tab0
----
-63
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT - - COUNT( * ) * MIN( DISTINCT col2 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - - COUNT ( * ) * MIN ( DISTINCT col2 ) FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT ALL + COUNT( * ) + - - COUNT( * ) + 33 AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) + 33 AS col1 FROM tab1 AS cor0
----
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> 28
----

query II rowsort
SELECT + + col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4098
SELECT MIN( ( + col0 ) ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-4098
SELECT MIN ( ( + col0 ) ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
46
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + SUM( col1 ) * + COUNT( * ) + - 95 * 25 col0 FROM tab1 AS cor0
----
-2177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4099
SELECT + SUM ( col1 ) * + COUNT ( * ) + - 95 * 25 col0 FROM tab1 AS cor0
----
-2177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4100
SELECT ALL SUM( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4102
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4102
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 43 * + + 56 + - - 28 FROM tab2
----
2436
2436
2436

query III rowsort
SELECT * FROM tab0 WHERE + 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4105
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
6

query II rowsort
SELECT ALL col0 + + + 18 AS col1, col1 FROM tab0
----
105
21
115
1
33
81

query III rowsort
SELECT * FROM tab2 WHERE + 22 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4108
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col1 AS col0 FROM tab1
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT DISTINCT 22 * + 91, 69 AS col0 FROM tab2, tab0 cor0
----
2002
69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 78 + - 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT + SUM( - 47 ) col1 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4111
SELECT DISTINCT + SUM ( - 47 ) col1 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT ALL 84 * col1 AS col0 FROM tab0 AS cor0
----
1764
6804
84

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT - + col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 + - col0 * + 91 / - + 29 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL - COUNT( DISTINCT CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - COUNT ( DISTINCT CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4118
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4118
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT + SUM( - 34 ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-4119
SELECT + SUM ( - 34 ) FROM tab2
----
-102

query I rowsort
SELECT DISTINCT col0 * - + ( + col1 ) * + col0 FROM tab2
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL + COUNT( DISTINCT col2 ) * - 35 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + COUNT ( DISTINCT col2 ) * - 35 FROM tab0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT ALL - - ( - col1 ) + + + col2 DIV col2 * + 73 * - 54 col2 FROM tab1 cor0
----
-3947
-3956
-3989

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4122
SELECT ALL - - ( - col1 ) + + + col2 / col2 * + 73 * - 54 col2 FROM tab1 cor0
----
-3947
-3956
-3989

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4123
SELECT + COUNT( * ) * + COUNT( * ) DIV + COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4123
SELECT + COUNT ( * ) * + COUNT ( * ) / + COUNT ( * ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT ALL ( - col0 ) DIV + 42 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL ( - col0 ) / + 42 AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 46 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT col0 * + 81 AS col0 FROM tab0
----
1215
7047
7857

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( + + 37, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 78 FROM tab1 AS cor0 WHERE col2 * + + col1 IS NULL
----

query I rowsort
SELECT + + 61 + - col2 AS col0 FROM tab1 AS cor0
----
-35
-7
2

query I rowsort
SELECT + col0 * - col2 * + - ( + - ( ( col2 ) ) ) * + ( + + col1 ) + + + 64 AS col2 FROM tab0 AS cor0
----
-182636
-2683871
-950633

query II rowsort
SELECT DISTINCT - col1 - col2, + col1 AS col1 FROM tab0 AS cor0
----
-100
1
-128
81
-31
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - - ( col1 ) col0 FROM tab0 AS cor0
----
-162
-2
-42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 19 > NULL
----

query I rowsort
SELECT + col0 * col1 * + col1 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4136
SELECT DISTINCT 27, - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-4136
SELECT DISTINCT 27, - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
27
NULL

query I rowsort
SELECT ALL - 46 FROM tab2 WHERE NOT col0 * col2 IS NULL
----
-46
-46
-46

query I rowsort
SELECT + 54 * + col0 FROM tab0
----
4698
5238
810

query II rowsort
SELECT DISTINCT - 90 AS col0, + ( 90 ) AS col1 FROM tab1
----
-90
90

query I rowsort
SELECT + 28 - + ( + col2 ) AS col0 FROM tab0
----
-19
-71
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4141
SELECT DISTINCT + 55 + - SUM( col1 ) AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-48
3

skipif mysql # not compatible
query II rowsort label-4141
SELECT DISTINCT + 55 + - SUM ( col1 ) AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-48
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT - 7 + - CAST( + col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
-103
-66
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT - 7 + - CAST ( + col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-103
-66
-75

query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 FROM tab1 AS cor0 WHERE - col2 * col2 + + col0 IS NULL
----

query I rowsort
SELECT - 11 + - 60 + + 46 - + col0 FROM tab0 AS cor0
----
-112
-122
-40

query I rowsort
SELECT ALL 51 FROM tab1 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT col1 + 21 FROM tab1
----
26
35
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 + col0 * + col1 AS col0 FROM tab2
----
2300
4864
4950

query III rowsort
SELECT * FROM tab2 WHERE + 65 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + col1 BETWEEN ( 39 ) AND - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 50 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4153
SELECT DISTINCT * FROM tab1 WHERE + col1 + + CAST( NULL AS DECIMAL ) NOT IN ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-4153
SELECT DISTINCT * FROM tab1 WHERE + col1 + + CAST ( NULL AS REAL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - 33 + - col1 FROM tab1 WHERE NULL <> col0
----

query I rowsort
SELECT ALL 7 * + 51 + col1 FROM tab1
----
362
371
404

query III rowsort
SELECT ALL * FROM tab0 WHERE - 78 > 73 / + 29
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( col1 ) IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT ALL + 63 + + ( col0 ) DIV - col1 FROM tab1
----
46
60
62

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + 63 + + ( col0 ) / - col1 FROM tab1
----
46
60
62

onlyif mysql # DIV for integer division: 
query I rowsort label-4159
SELECT ALL 73 DIV col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL 73 / col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
1
1

query I rowsort
SELECT + 38 / ( - col0 ) FROM tab0 WHERE + col1 BETWEEN NULL AND ( - ( 95 ) ) * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL 39 col0 FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + col1 + - 37 ) <> ( - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT ALL 39 col0 FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + col1 + - 37 ) <> ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT ( + 33 ) FROM tab1
----
33

query I rowsort
SELECT col1 - col0 * 29 AS col1 FROM tab0
----
-2502
-2812
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL + ( + COUNT( * ) ) * + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT ALL + 29 + col2 AS col0 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + COUNT( * ) + 92 col0 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4167
SELECT + COUNT ( * ) + 92 col0 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT 8 * + COUNT( ( col0 ) ) + + SUM( ALL + col1 ) * - COUNT( * ) FROM tab1 cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4168
SELECT 8 * + COUNT ( ( col0 ) ) + + SUM ( ALL + col1 ) * - COUNT ( * ) FROM tab1 cor0
----
-174

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 83 / col1 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + + col0 col1 FROM tab2
----
47
65
76

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE NOT col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + + col2 col0 FROM tab1 AS cor0
----
126
135
163

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 + col0 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT + ( - COUNT( + 45 ) ) * - MIN( DISTINCT 75 ) + 14 FROM tab0 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT + ( - COUNT ( + 45 ) ) * - MIN ( DISTINCT 75 ) + 14 FROM tab0 AS cor0
----
239

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 + col0 ) NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT + MIN( - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4176
SELECT + MIN ( - col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT + ( - col1 ) + - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-102
-134
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT DISTINCT - col0 + - 53 DIV col1 AS col0 FROM tab0 AS cor0
----
-15
-150
-89

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT - col0 + - 53 / col1 AS col0 FROM tab0 AS cor0
----
-15
-150
-89

query I rowsort
SELECT DISTINCT - 43 - col0 * 27 AS col0 FROM tab2 AS cor0
----
-1285
-1771
-2068

query I rowsort
SELECT - 2 AS col0 FROM tab2 AS cor0 WHERE + col0 * + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / col2 + col2 NOT IN ( ( 64 ) / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE ( + ( 8 ) * 26 + + 86 ) IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 * 57 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT DISTINCT - 95 DIV 19 - col1 FROM tab1 AS cor0
----
-10
-19
-52

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - 95 / 19 - col1 FROM tab1 AS cor0
----
-10
-19
-52

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-45
23
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT - 71 + + 34 AS col1 FROM tab2
----
-37
-37
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4188
SELECT * FROM tab0 WHERE col0 - - col2 BETWEEN ( + 4 * + col0 ) AND - col0 / - CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4188
SELECT * FROM tab0 WHERE col0 - - col2 BETWEEN ( + 4 * + col0 ) AND - col0 / - CAST ( - col0 AS REAL )
----

query I rowsort
SELECT + col0 + col2 * 28 AS col2 FROM tab0
----
1331
2869
367

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT 53 > ( col1 )
----
15

query I rowsort
SELECT col1 + col2 * 99 FROM tab0
----
1011
4734
9802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 49 ) col0 FROM tab1
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4193
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4193
SELECT * FROM tab1 WHERE NULL NOT IN ( - col1 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 + + 37 / + ( 38 / 26 ) AS col2 FROM tab1 AS cor0 WHERE col2 + col1 * - col2 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL + SUM( - ( + col2 ) ) col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4195
SELECT ALL + SUM ( - ( + col2 ) ) col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - - SUM( ALL col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - - SUM ( ALL col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT + MAX( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4197
SELECT + MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 9 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + col0 + - 73
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT ( NOT col0 NOT BETWEEN - col0 AND ( + col0 + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT SUM( ALL + 77 ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-4201
SELECT SUM ( ALL + 77 ) FROM tab1
----
231

query I rowsort
SELECT + col2 * + 8 AS col1 FROM tab0 WHERE NOT col2 > 33
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT - + 28 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-4203
SELECT - + 28 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-19

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col2 ) + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - col2 * - col0 FROM tab0 cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL - - ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - - ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN + col1 AND - ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + col1 * ( + col1 ) + + 61 FROM tab1 AS cor0
----
145
2338
353

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 73 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 60 + - col1 AS col0 FROM tab1
----
13
46
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT CAST( NULL AS SIGNED ) + - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT CAST ( NULL AS INTEGER ) + - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 42 AS col1 FROM tab0
----
-3654
-4074
-630

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + 35 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 48 + col1 col1 FROM tab0
----
-2175
-459
-4751

query I rowsort
SELECT ALL + 68 + + 86 + + col0 + ( col1 ) + - col0 * - col1 * col0 AS col0 FROM tab2
----
108167
315687
377171

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL - ( COUNT( * ) ) * - - COUNT( * ) * - 43 FROM tab1 AS cor0
----
387

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - ( COUNT ( * ) ) * - - COUNT ( * ) * - 43 FROM tab1 AS cor0
----
387

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT - + 22 * COUNT( - 10 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT - + 22 * COUNT ( - 10 ) FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4218
SELECT * FROM tab1 WHERE NULL BETWEEN + 0 AND - - col0 * 43 * + CAST( NULL AS SIGNED ) + + col2 * 83
----

skipif mysql # not compatible
query III rowsort label-4218
SELECT * FROM tab1 WHERE NULL BETWEEN + 0 AND - - col0 * 43 * + CAST ( NULL AS INTEGER ) + + col2 * 83
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + - col2 ) <> ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4220
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL 93 * - 76 + + SUM( ALL + col2 ) + - 59 AS col0 FROM tab0
----
-6971

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL 93 * - 76 + + SUM ( ALL + col2 ) + - 59 AS col0 FROM tab0
----
-6971

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IS NOT NULL AND NOT ( col2 * 10 ) > - col0
----

query I rowsort
SELECT - + col1 + + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * col1 + ( - col0 ) + col0 * 66 + 79 * - col2 FROM tab1 cor0
----
-4073
2752
889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT ALL + 61 - - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND 8
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + 61 - - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND 8
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( + col0 ) col1 FROM tab1 cor0
----
37
44
80

query I rowsort
SELECT + - col1 * + + col0 + - + col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 17 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + 1 + - + ( 92 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + 1 + - + ( 92 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4230
SELECT DISTINCT - ( + col2 ) * 90 + + 89 * + CAST( col2 AS SIGNED ) - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT - ( + col2 ) * 90 + + 89 * + CAST ( col2 AS INTEGER ) - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT ALL CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4232
SELECT DISTINCT 50 DIV + - col1 FROM tab0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT 50 / + - col1 FROM tab0
----
-2
-50
0

query I rowsort
SELECT ALL 52 * - col1 FROM tab0 WHERE ( NULL >= NULL )
----

query II rowsort
SELECT + ( + col2 ) AS col0, + col0 + - + ( col2 ) FROM tab1 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 59 ) * - - col0 col1 FROM tab2
----
2714
3776
4425

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 40 NOT BETWEEN - - 72 AND - + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COUNT( * ) * + - 33 AS col0 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-4237
SELECT COUNT ( * ) * + - 33 AS col0 FROM tab2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT + - CAST( NULL AS SIGNED ) / col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4238
SELECT + - CAST ( NULL AS INTEGER ) / col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4239
SELECT + + 8 DIV - col1 AS col0 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT + + 8 / - col1 AS col0 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT ALL - 98 * + col0 FROM tab0 AS cor0
----
-1470
-8526
-9506

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4242
SELECT + - 16 * col2 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
25600
53824
8464

skipif mysql # not compatible
query I rowsort label-4242
SELECT + - 16 * col2 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
25600
53824
8464

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL COUNT( * ) * - SUM( ALL - col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL COUNT ( * ) * - SUM ( ALL - col2 ) FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT - ( + ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4244
SELECT - ( + ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL < NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - 21 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4247
SELECT - 21 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
63

query I rowsort
SELECT + + 93 * + + 2 + - col2 FROM tab0 AS cor0
----
139
176
87

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 48 = NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + 54 + + COUNT( ALL + col0 ) col0 FROM tab1
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4251
SELECT + 54 + + COUNT ( ALL + col0 ) col0 FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT DISTINCT + 2 + + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + 2 + + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT + + MIN( DISTINCT col1 ) FROM tab2 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-4253
SELECT + + MIN ( DISTINCT col1 ) FROM tab2 WHERE NULL IS NULL
----
51

query II rowsort
SELECT col2 * + + col0 + - 42 AS col0, col2 FROM tab1
----
4854
96
4973
59
6146
68

query II rowsort
SELECT ALL col1 + + + 60 * 57 AS col1, + col2 AS col0 FROM tab0
----
3421
99
3441
10
3501
47

query I rowsort
SELECT DISTINCT + 24 * + - 54 + + - col1 FROM tab2
----
-1347
-1363
-1373

query I rowsort
SELECT - col0 * + ( - col2 ) + + col2 * - col0 + - 85 FROM tab2
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4258
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS DECIMAL ) + - COUNT( * ) + - ( MIN( - - 10 ) ) * - MAX( DISTINCT + col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS REAL ) + - COUNT ( * ) + - ( MIN ( - - 10 ) ) * - MAX ( DISTINCT + col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT + COUNT( * ) col1 FROM tab2 WHERE ( col0 IS NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4259
SELECT + COUNT ( * ) col1 FROM tab2 WHERE ( col0 IS NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4260
SELECT CAST( - COUNT( * ) AS SIGNED ) - + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT + - 58 - - - SUM( DISTINCT + + 80 ) AS col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4261
SELECT + - 58 - - - SUM ( DISTINCT + + 80 ) AS col1 FROM tab0 AS cor0
----
-138

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + ( col1 ) AND + + 83
----

query I rowsort
SELECT ALL + 1 * + 34 AS col0 FROM tab2
----
34
34
34

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4264
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - col2, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4264
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( - col2, + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4265
SELECT + MIN( ALL + ( + col1 ) ) AS col2, - COUNT( * ) FROM tab2
----
51
-3

skipif mysql # not compatible
query II rowsort label-4265
SELECT + MIN ( ALL + ( + col1 ) ) AS col2, - COUNT ( * ) FROM tab2
----
51
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL + COUNT( * ) * - 91 AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL + COUNT ( * ) * - 91 AS col1 FROM tab1
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-4267
SELECT ALL - + col1 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - + col1 / - - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4268
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= col1 * - - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL <= col1 * - - col2 + - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT ALL - col0 DIV + + col2 AS col0 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - col0 / + + col2 AS col0 FROM tab0
----
-8
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4270
SELECT - COUNT( * ), 83 AS col0 FROM tab2
----
-3
83

skipif mysql # not compatible
query II rowsort label-4270
SELECT - COUNT ( * ), 83 AS col0 FROM tab2
----
-3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( + col0 ) * - ( - 12 ) + - col2 FROM tab0
----
1034
1065
133

query I rowsort
SELECT ALL - + 42 * + 22 FROM tab2 AS cor0
----
-924
-924
-924

query I rowsort
SELECT DISTINCT + col2 + 67 * col0 + col1 AS col1 FROM tab2 AS cor0
----
3156
4405
5150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4275
SELECT DISTINCT + ( 22 ) / 90 * + CAST( NULL AS SIGNED ) + col1 + - 79 * - col0 + - 19 * - 66 + + col0 * + 86 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT + ( 22 ) / 90 * + CAST ( NULL AS INTEGER ) + col1 + - 79 * - col0 + - 19 * - 66 + + col0 * + 86 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 47 ) <> + col1 / + col2 + + 98
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 / 31, 53 / + col2, ( - 68 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( ( + 99 ) ) - col0 col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4279
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-4279
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) * col0
----

query II rowsort
SELECT ALL + col0, + col2 * + col2 FROM tab2 cor0
----
46
529
64
1600
75
3364

query II rowsort
SELECT + 0 + + + col2 AS col0, - 8 FROM tab1 AS cor0
----
59
-8
68
-8
96
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT + 4 + - - COUNT( * ) FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4282
SELECT + 4 + - - COUNT ( * ) FROM tab0 AS cor0
----
7

query I rowsort
SELECT + - col2 + 88 + + - 55 FROM tab2 AS cor0
----
-25
-7
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT + col0 DIV - 55 AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4284
SELECT + col0 / - 55 AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4285
SELECT ALL + 1 + - COUNT( * ) FROM tab1 WHERE - + col2 + + CAST( NULL AS DECIMAL ) * + col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + 1 + - COUNT ( * ) FROM tab1 WHERE - + col2 + + CAST ( NULL AS REAL ) * + col0 IS NOT NULL
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col1 FROM tab2
----
79
79
79

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE - col0 * + ( - col2 ) * - col1 + + + col0 NOT BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT + + col2 * - 67 AS col2 FROM tab0 AS cor0
----
-3149
-6633
-670

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 67
----

query I rowsort
SELECT - + col1 - - col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL + col0 + 28 FROM tab1 AS cor0
----
113
119
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL + - MIN( + 75 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + - MIN ( + 75 ) FROM tab2 cor0
----
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - - col0 IN ( - - col2 * - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT DISTINCT + + col2 DIV ( + ( - col1 ) ) + col0 FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NULL
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-4294
SELECT DISTINCT + + col2 / ( + ( - col1 ) ) + col0 FROM tab0 AS cor0 WHERE NOT col0 * col2 IS NULL
----
-2
15
87

query II rowsort
SELECT col2, - col1 AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 * + col2 col0 FROM tab0 AS cor0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT - 0, - COUNT( * ) * + + 72 AS col1 FROM tab2 AS cor0
----
0
-216

skipif mysql # not compatible
query II rowsort label-4297
SELECT - 0, - COUNT ( * ) * + + 72 AS col1 FROM tab2 AS cor0
----
0
-216

query I rowsort
SELECT - ( 73 ) AS col0 FROM tab0 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT 6 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 71 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-23
-26
45

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
182
20
2162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4304
SELECT - ( - col1 ) AS col2, CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4304
SELECT - ( - col1 ) AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4305
SELECT ALL + - MAX( DISTINCT - col0 ), - 39 AS col0 FROM tab0 AS cor0
----
15
-39

skipif mysql # not compatible
query II rowsort label-4305
SELECT ALL + - MAX ( DISTINCT - col0 ), - 39 AS col0 FROM tab0 AS cor0
----
15
-39

query I rowsort
SELECT ALL - col2 + + col0 * - - col2 AS col2 FROM tab0 AS cor0
----
658
860
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * - 9 / + col2 col1 FROM tab2 cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 71 + ( + col0 ) col2 FROM tab0 AS cor0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT - col2 + + 14 FROM tab2 AS cor0 WHERE + col1 + col2 * CAST( col0 AS SIGNED ) * col0 + - - col0 * + 33 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4310
SELECT - col2 + + 14 FROM tab2 AS cor0 WHERE + col1 + col2 * CAST ( col0 AS INTEGER ) * col0 + - - col0 * + 33 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + + COUNT( * ) + - 10 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4311
SELECT + + COUNT ( * ) + - 10 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT DISTINCT 39 DIV - col2 + + col0 - 65 * ( - - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
5739
6402
990

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT 39 / - col2 + + col0 - 65 * ( - - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
5739
6402
990

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4313
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( CAST( 86 AS SIGNED ) ) + - col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-4313
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( CAST ( 86 AS INTEGER ) ) + - col1 <= NULL
----

query I rowsort
SELECT DISTINCT ( - + col2 ) * - ( 23 ) * - - col1 * + col1 FROM tab1
----
33925
3454876
432768

query I rowsort
SELECT + ( + ( col1 ) ) + col0 AS col0 FROM tab2
----
141
142
97

query II rowsort
SELECT DISTINCT col0 AS col2, - 99 FROM tab1
----
51
-99
85
-99
91
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT + 15 + - + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4317
SELECT + 15 + - + COUNT ( * ) FROM tab1
----
12

query III rowsort
SELECT * FROM tab0 WHERE - col0 < ( - col2 )
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4319
SELECT + CAST( NULL AS SIGNED ) + - MIN( DISTINCT + ( - col0 ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT + CAST ( NULL AS INTEGER ) + - MIN ( DISTINCT + ( - col0 ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col2 + + 77 AS col1 FROM tab2
----
100
117
135

query I rowsort
SELECT ALL - col0 + - 53 + - ( + col0 ) AS col0 FROM tab2
----
-145
-181
-203

query I rowsort
SELECT - ( + - col2 ) FROM tab1 WHERE + col0 > + 25
----
59
68
96

query II rowsort
SELECT ALL col0 * col1 - ( - col0 ), - 7 AS col1 FROM tab0 AS cor0
----
1230
-7
1914
-7
194
-7

query I rowsort
SELECT DISTINCT + 9 - + - col1 FROM tab2 AS cor0
----
60
76
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT col1 - + col0 DIV + - ( col0 ) FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4325
SELECT col1 - + col0 / + - ( col0 ) FROM tab1
----
15
48
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 47 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT - CAST( - - 7 AS SIGNED ) - + 95 * - col1 FROM tab0
----
1988
7688
88

skipif mysql # not compatible
query I rowsort label-4327
SELECT - CAST ( - - 7 AS INTEGER ) - + 95 * - col1 FROM tab0
----
1988
7688
88

query I rowsort
SELECT DISTINCT + ( 3 ) FROM tab0
----
3

query I rowsort
SELECT 78 AS col2 FROM tab0 AS cor0 WHERE NOT 82 IS NULL
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT DISTINCT + - col1 FROM tab2 cor0 WHERE NOT 90 NOT BETWEEN - 49 AND CAST( NULL AS SIGNED ) / - ( col0 ) - + col0
----

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + - col1 FROM tab2 cor0 WHERE NOT 90 NOT BETWEEN - 49 AND CAST ( NULL AS INTEGER ) / - ( col0 ) - + col0
----

query I rowsort
SELECT - 24 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col0 ) * + 10 IS NOT NULL
----

query I rowsort
SELECT col1 * 86 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1806
6966
86

onlyif mysql # DIV for integer division: 
query I rowsort label-4333
SELECT + + col1 DIV - 37 + col2 AS col2 FROM tab1 AS cor0
----
59
67
96

skipif mysql # not compatible
query I rowsort label-4333
SELECT + + col1 / - 37 + col2 AS col2 FROM tab1 AS cor0
----
59
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MAX( + + col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4334
SELECT MAX ( + + col0 ) col2 FROM tab0
----
97

query I rowsort
SELECT + 33 * 45 FROM tab1
----
1485
1485
1485

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) / + col2 IS NOT NULL
----

query I rowsort
SELECT - 0 * - col1 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT - MIN( ALL - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / + 84 <> + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL + ( - 84 ) * - + 37 * COUNT( * ) * + 2 AS col2 FROM tab2
----
18648

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL + ( - 84 ) * - + 37 * COUNT ( * ) * + 2 AS col2 FROM tab2
----
18648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + 5 col2, - col0 FROM tab1
----
295
-85
340
-91
480
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL <> NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4343
SELECT ALL + CAST( NULL AS SIGNED ) col0, + col0 * 29 * 54 FROM tab1 AS cor0 WHERE + col0 * + col1 > + col1
----
NULL
133110
NULL
142506
NULL
79866

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4343
SELECT ALL + CAST ( NULL AS INTEGER ) col0, + col0 * 29 * 54 FROM tab1 AS cor0 WHERE + col0 * + col1 > + col1
----
NULL
133110
NULL
142506
NULL
79866

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT DISTINCT - COUNT( ALL col1 ) + + - COUNT( * ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT - COUNT ( ALL col1 ) + + - COUNT ( * ) FROM tab1 cor0
----
-6

query I rowsort
SELECT + + 85 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-3914
-829
-8414

query I rowsort
SELECT + col1 * - - col2 * + 25 + + + 87 FROM tab2 AS cor0
----
29412
77087
97237

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL - COUNT( * ) + - + SUM( - 60 ) col2 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4347
SELECT ALL - COUNT ( * ) + - + SUM ( - 60 ) col2 FROM tab0 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT - + 32 + - col0 + col0 - CAST( NULL AS SIGNED ) * + col2 + + col0 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT - + 32 + - col0 + col0 - CAST ( NULL AS INTEGER ) * + col2 + + col0 + + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + - + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT + + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col2 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT col2 * - 80 * + 67 AS col2 FROM tab0
----
-251920
-530640
-53600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 * col1 col2 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT ALL col2 * - - col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 10 FROM tab0
----
100
470
990

query I rowsort
SELECT DISTINCT + col2 + 1 FROM tab2
----
24
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4359
SELECT - col2 DIV - - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4359
SELECT - col2 / - - col1 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT + SUM( - col2 ) * - COUNT( ALL + - 79 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT + SUM ( - col2 ) * - COUNT ( ALL + - 79 ) FROM tab1
----
669

query I rowsort
SELECT - 77 + + - 88 AS col1 FROM tab0 AS cor0
----
-165
-165
-165

query I rowsort
SELECT 7 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( ( NOT NULL IN ( 97 ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4363
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT + + col1 * - + ( + 62 ) FROM tab1 AS cor0
----
-2914
-310
-868

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 66 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - SUM( DISTINCT + 64 ) * - ( - ( - 67 ) ) - + COUNT( + col0 ) * + + 14 AS col2 FROM tab0 AS cor0
----
4246

skipif mysql # not compatible
query I rowsort label-4367
SELECT - SUM ( DISTINCT + 64 ) * - ( - ( - 67 ) ) - + COUNT ( + col0 ) * + + 14 AS col2 FROM tab0 AS cor0
----
4246

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 * + + col2 IS NOT NULL
----

query II rowsort
SELECT ALL + - col2 AS col2, + 52 AS col2 FROM tab1 AS cor0
----
-59
52
-68
52
-96
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT - SUM( ALL - 66 ) FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - SUM ( ALL - 66 ) FROM tab0 AS cor0
----
198

query I rowsort
SELECT DISTINCT col2 * - col1 AS col0 FROM tab2 WHERE + col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4372
SELECT DISTINCT col2 AS col0, + col2 + + 99 + - CAST( + 69 AS SIGNED ) + col0 AS col2 FROM tab1 WHERE - ( + - 95 ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT col2 AS col0, + col2 + + 99 + - CAST ( + 69 AS INTEGER ) + col0 AS col2 FROM tab1 WHERE - ( + - 95 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND + + col2 / + col2 + - + 46
----

query I rowsort
SELECT col0 * col0 * - col0 * - 67 + + - col0 - + col1 + - col2 AS col2 FROM tab0 WHERE NOT + 76 * + + col1 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4375
SELECT - MIN( ( CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT - MIN ( ( CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 + - col0 / col0 NOT BETWEEN + + 1 AND + + 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL + 36 * - 32 + + 83 FROM tab2 AS cor0
----
-1069
-1069
-1069

query II rowsort
SELECT + - col0, - col1 * 5 AS col1 FROM tab1 AS cor0
----
-51
-70
-85
-25
-91
-235

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT - + col0 * 95 DIV + ( + + 15 ) col2 FROM tab2 AS cor0
----
-291
-405
-475

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4380
SELECT - + col0 * 95 / + ( + + 15 ) col2 FROM tab2 AS cor0
----
-291
-405
-475

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + ( - col2 )
----

query I rowsort
SELECT + col1 - + + 21 + - col2 + - 40 AS col1 FROM tab1 cor0
----
-115
-143
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT DISTINCT + - 80 + - 11 * + col0 DIV - - col0 AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + - 80 + - 11 * + col0 / - - col0 AS col0 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT + 95 * - - 43 * - MIN( 16 ) AS col1 FROM tab0 AS cor0
----
-65360

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT + 95 * - - 43 * - MIN ( 16 ) AS col1 FROM tab0 AS cor0
----
-65360

query II rowsort
SELECT ALL col0 - + + 86 * - col0 AS col2, + 75 + + col2 + + + col1 FROM tab0 AS cor0
----
1305
203
7569
106
8439
175

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT + COUNT( * ) * + - MIN( - col1 ) FROM tab2 cor0
----
231

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + COUNT ( * ) * + - MIN ( - col1 ) FROM tab2 cor0
----
231

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4389
SELECT ALL + 72 DIV + - col2 AS col1, - ( + col2 ) AS col0 FROM tab1
----
-1
-59
-1
-68
0
-96

skipif mysql # not compatible
query II rowsort label-4389
SELECT ALL + 72 / + - col2 AS col1, - ( + col2 ) AS col0 FROM tab1
----
-1
-59
-1
-68
0
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - + 71 + + col1 + + 52 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 46 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 41 NOT IN ( 23 * - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT ALL + col2 DIV - col0 * + 2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL + col2 / - col0 * + 2 FROM tab2
----
0
0
0

query I rowsort
SELECT + - col1 * 16 FROM tab2 cor0
----
-1072
-1232
-816

query I rowsort
SELECT + col1 * - col0 * - col2 * - ( + col2 ) FROM tab0 AS cor0
----
-182700
-2683935
-950697

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 78 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4398
SELECT - CAST( NULL AS DECIMAL ) * - ( - ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT - CAST ( NULL AS REAL ) * - ( - ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT MIN( col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4399
SELECT MIN ( col2 ) col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > 38 - + 53
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT ALL - col1 DIV col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT - 63 * + - col0 IS NULL )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - col1 / col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT - 63 * + - col0 IS NULL )
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + MIN( ( - 13 ) ) AS col1 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-4403
SELECT + MIN ( ( - 13 ) ) AS col1 FROM tab0
----
-13

query II rowsort
SELECT + col2 AS col1, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT - 83 - col2 AS col1 FROM tab1 WHERE NOT + 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT ALL - 31 * CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab0
----
-1442
-223
-2972

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - 31 * CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab0
----
-1442
-223
-2972

query I rowsort
SELECT + - col2 + - ( - col1 ) FROM tab1 AS cor0 WHERE NULL >= col0 - - col2 / + - col2 + - col2 - ( - 87 )
----

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT 27 * + - 57 FROM tab2 AS cor0
----
-1539
-1539
-1539

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + col2 - + - 6 * - col1 + + - col2 NOT IN ( - col2, + 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( 32 ) AS col0 FROM tab1
----
32
32
32

query I rowsort
SELECT ALL - 80 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + 6 * - 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ceea7215d265e15a570f1309daac50d8

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT ( - + col1 ) DIV - - col2 + - - col0 FROM tab2 cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-4414
SELECT ( - + col1 ) / - - col2 + - - col0 FROM tab2 cor0
----
44
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4415
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) < - col0
----

skipif mysql # not compatible
query III rowsort label-4415
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT DISTINCT + col2 + col0 + + CAST( col1 AS SIGNED ) * + + col0 * - col1 * col1 FROM tab0 AS cor0
----
-7971553
-805610
99

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT + col2 + col0 + + CAST ( col1 AS INTEGER ) * + + col0 * - col1 * col1 FROM tab0 AS cor0
----
-7971553
-805610
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ( ( - SUM( ALL col2 ) ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4417
SELECT ( ( - SUM ( ALL col2 ) ) ) FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > - - 39 / - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + COUNT( ALL + col2 ) col2 FROM tab2 AS cor0 WHERE 55 <> - - col1 * - col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4419
SELECT + COUNT ( ALL + col2 ) col2 FROM tab2 AS cor0 WHERE 55 <> - - col1 * - col1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) * + col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - - col1 * col0 * + col0 FROM tab1 AS cor0
----
36125
36414
389207

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 <= 69 * + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, + 3 + + - 80 AS col1 FROM tab2
----
46
-77
64
-77
75
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT SUM( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT SUM ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT ALL + col1 - + - col0 + - col0 AS col0, 22 * + 58 + col0 + 45 AS col0 FROM tab0
----
1
1418
21
1408
81
1336

query II rowsort
SELECT ALL + col2 AS col1, col0 - - col0 FROM tab1
----
59
170
68
182
96
102

query I rowsort
SELECT col0 - + 23 FROM tab1
----
28
62
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT - COUNT( * ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4428
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col1 * - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT DISTINCT ( - CAST( 12 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT ( - CAST ( 12 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL COUNT( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4431
SELECT ALL COUNT ( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + col2 * - + ( - + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT COUNT( * ) DIV + + 90 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( * ) / + + 90 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 39 * col1 FROM tab1 AS cor0
----
-1833
-195
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - col2 ) col0, - col2 AS col2 FROM tab1 cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4436
SELECT ALL + COUNT( ( - col0 ) ) DIV + + 35 FROM tab2 AS cor0 WHERE NOT - 84 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL + COUNT ( ( - col0 ) ) / + + 35 FROM tab2 AS cor0 WHERE NOT - 84 <> NULL
----
0

query I rowsort
SELECT ALL col2 * - ( - - col0 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - 38 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4439
SELECT CAST( NULL AS SIGNED ) * + - 34 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4439
SELECT CAST ( NULL AS INTEGER ) * + - 34 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - MAX( + 82 ) AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - MAX ( + 82 ) AS col2 FROM tab2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT DISTINCT col1 * - CAST( - - col2 AS SIGNED ) + - col0 FROM tab1
----
-1395
-3287
-380

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT col1 * - CAST ( - - col2 AS INTEGER ) + - col0 FROM tab1
----
-1395
-3287
-380

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT 69 + - col0 + - col0 DIV - 72 AS col0 FROM tab2
----
-5
23
5

skipif mysql # not compatible
query I rowsort label-4442
SELECT 69 + - col0 + - col0 / - 72 AS col0 FROM tab2
----
-5
23
5

query I rowsort
SELECT ALL + col2 + - + col0 AS col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT - col1 + col1 - - col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT + 8 + + - col2 * + 92 * + - ( + - col1 ) DIV + - col1 AS col2 FROM tab2 AS cor0
----
2124
3688
5344

skipif mysql # not compatible
query I rowsort label-4445
SELECT + 8 + + - col2 * + 92 * + - ( + - col1 ) / + - col1 AS col2 FROM tab2 AS cor0
----
2124
3688
5344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 * + 33 * - col0 ) >= + col2
----

query II rowsort
SELECT ALL col0 AS col0, - 98 FROM tab0
----
15
-98
87
-98
97
-98

query I rowsort
SELECT col2 * - col0 * - col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT ALL ( col1 ) + 15 AS col2 FROM tab1
----
20
29
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 WHERE NOT col0 * col1 >= NULL
----

query I rowsort
SELECT DISTINCT 94 * - - 16 + - - col0 AS col2 FROM tab0
----
1519
1591
1601

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( 5 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4455
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( 5 ) IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + COUNT( * ) - + + 58 AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4456
SELECT + COUNT ( * ) - + + 58 AS col2 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT DISTINCT 78 - 25 AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 WHERE + 85 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( - - 33 ) IN ( + - col1, col1 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + - col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL - ( - CAST( ( + 3 ) AS SIGNED ) ) - + col0 AS col2 FROM tab2 AS cor0
----
-43
-61
-72

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - ( - CAST ( ( + 3 ) AS INTEGER ) ) - + col0 AS col2 FROM tab2 AS cor0
----
-43
-61
-72

query I rowsort
SELECT - 30 * + col0 * col0 + + 23 + - + 32 FROM tab1
----
-216759
-248439
-78039

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4464
SELECT DISTINCT * FROM tab2 WHERE NOT + 91 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4464
SELECT DISTINCT * FROM tab2 WHERE NOT + 91 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 * + 62 FROM tab0
----
5394
6014
930

query I rowsort
SELECT ALL - 60 * col2 AS col1 FROM tab1
----
-3540
-4080
-5760

query II rowsort
SELECT ALL - + col2 * 68 AS col0, + col0 * col1 AS col2 FROM tab2 AS cor0
----
-1564
2346
-2720
4928
-3944
5025

query I rowsort
SELECT DISTINCT ( 2 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - COUNT( - + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4469
SELECT - COUNT ( - + 24 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 98 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 20 * col1 * + 60 <= + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 col0 FROM tab2 cor0
----
47
47
47

query II rowsort
SELECT DISTINCT + - col1 * + col1 + - col2 + - 40, col1 + + col0 AS col0 FROM tab2 AS cor0
----
-2664
97
-4587
142
-6009
141

query I rowsort
SELECT + col2 + + 45 AS col0 FROM tab1 cor0
----
104
113
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT - - SUM( + 46 ) * + AVG ( ALL + col0 ) / - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT - - SUM ( + 46 ) * + AVG ( ALL + col0 ) / - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 + - ( - 45 ) + 22 + 65 FROM tab1
----
137
146
179

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 90 AND NULL
----

query I rowsort
SELECT ALL - 60 + - + 57 AS col1 FROM tab0
----
-117
-117
-117

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 10 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col1 BETWEEN 99 AND - + 46 + - 72 * + - col2
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 BETWEEN 99 AND - + 46 + - 72 * + - col2
----

query I rowsort
SELECT DISTINCT + col0 + + + col0 AS col2 FROM tab1 cor0
----
102
170
182

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 + - 2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL - 52 * - - MAX( + + 34 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 - + col0 * col0 * + - col1 AND - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL - 52 * - - MAX ( + + 34 ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 - + col0 * col0 * + - col1 AND - + col0
----
NULL

query I rowsort
SELECT - - 18 - + + col0 AS col0 FROM tab2 AS cor0
----
-28
-46
-57

query I rowsort
SELECT - col0 + - - col1 FROM tab1 cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4486
SELECT ALL - - 45 - + CAST( + col1 AS SIGNED ), col1 FROM tab2 AS cor0
----
-22
67
-32
77
-6
51

skipif mysql # not compatible
query II rowsort label-4486
SELECT ALL - - 45 - + CAST ( + col1 AS INTEGER ), col1 FROM tab2 AS cor0
----
-22
67
-32
77
-6
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4487
SELECT * FROM tab0 AS cor0 WHERE + CAST( col1 AS SIGNED ) * - 32 + - 52 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4487
SELECT * FROM tab0 AS cor0 WHERE + CAST ( col1 AS INTEGER ) * - 32 + - 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 - + col1 col2 FROM tab1 AS cor0
----
-102
-111
-144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT ALL SUM( - + 77 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL SUM ( - + 77 ) FROM tab2
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT DISTINCT - - MAX( DISTINCT col1 ) AS col0 FROM tab1 WHERE - + 83 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - - MAX ( DISTINCT col1 ) AS col0 FROM tab1 WHERE - + 83 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4492
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4492
SELECT * FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4493
SELECT + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4493
SELECT + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT ( - CAST( NULL AS SIGNED ) ) * - col0 + 53 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ( - CAST ( NULL AS INTEGER ) ) * - col0 + 53 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 69 + col0 AS col2 FROM tab2 AS cor0
----
-23
-5
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) - + - 38 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4497
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) - + - 38 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
41

onlyif mysql # DIV for integer division: 
query II rowsort label-4498
SELECT + - 99 DIV - col2, col2 FROM tab2 cor0
----
1
58
2
40
4
23

skipif mysql # not compatible
query II rowsort label-4498
SELECT + - 99 / - col2, col2 FROM tab2 cor0
----
1
58
2
40
4
23

query I rowsort
SELECT - 22 * col1 AS col0 FROM tab0 AS cor0
----
-1782
-22
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT - + col0 * ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT - + col0 * ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 94 * - 38 FROM tab1
----
3572

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL - 4 + - MIN( + + col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-19

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - 4 + - MIN ( + + col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4503
SELECT ALL - 0 * - - 78 DIV COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - 0 * - - 78 / COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT 61 + + + col0 * - col0 - + col0 FROM tab2
----
-2101
-4099
-5639

query I rowsort
SELECT - col0 * + - col0 * - col2 AS col2 FROM tab2 WHERE - 29 IS NOT NULL
----
-163840
-326250
-48668

query I rowsort
SELECT - col0 * - col2 + - col0 * + 66 AS col0 FROM tab0
----
-285
-4872
3201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4507
SELECT ALL MAX( DISTINCT + col0 ) DIV - + COUNT( * ) + MAX( 7 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL MAX ( DISTINCT + col0 ) / - + COUNT ( * ) + MAX ( 7 ) FROM tab1
----
-23

query I rowsort
SELECT - col1 + ( - col2 ) + + col0 * 95 AS col1 FROM tab0
----
1297
8234
9115

query I rowsort
SELECT DISTINCT + 31 * - col0 * + col1 FROM tab1
----
-13175
-132587
-22134

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT ALL - COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col1
----
0
0

skipif mysql # not compatible
query II rowsort label-4510
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> col1
----
0
0

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - + col1 + - 9 AS col2 FROM tab2 AS cor0
----
-60
-76
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT - MIN( ALL + + col2 ) AS col1, + 98 col0 FROM tab1
----
-59
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4513
SELECT - MIN ( ALL + + col2 ) AS col1, + 98 col0 FROM tab1
----
-59
98

query I rowsort
SELECT col2 - + - col1 * col0 AS col2 FROM tab0
----
1262
1837
196

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4515
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4515
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 42 col0 FROM tab2
----
-2142
-2814
-3234

query I rowsort
SELECT DISTINCT + ( col1 ) - - 48 + + 99 AS col0 FROM tab2 WHERE + + 68 + - 52 * + col0 * - 95 IS NOT NULL
----
198
214
224

query I rowsort
SELECT ( - 17 ) FROM tab0
----
-17
-17
-17

query II rowsort
SELECT col2 AS col2, + col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT col1 * + col0 * + + 93 AS col0, ( - 22 ) FROM tab2
----
218178
-22
458304
-22
467325
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4521
SELECT ALL 52 DIV + col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL 52 / + col1 FROM tab1
----
1
10
3

query I rowsort
SELECT ALL ( + 93 ) AS col2 FROM tab1
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL MAX( DISTINCT - 79 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL MAX ( DISTINCT - 79 ) FROM tab2
----
-79

query II rowsort
SELECT col0 AS col1, col1 * + 97 FROM tab0
----
15
7857
87
2037
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 > + + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 <> ( col0 ) + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT + + MAX( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + + MAX ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT - - 42 + MIN( 34 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4528
SELECT - - 42 + MIN ( 34 ) FROM tab0 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT 56 + + COUNT( * ) AS col0 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4529
SELECT 56 + + COUNT ( * ) AS col0 FROM tab1 cor0
----
59

query I rowsort
SELECT + + col1 + + + col1 * + col2 FROM tab2 AS cor0
----
1224
3157
3953

query II rowsort
SELECT + 6 * col1, 85 AS col0 FROM tab1
----
282
85
30
85
84
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT + 24 DIV + col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 24 / + col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - MIN( ALL + col0 ) * 32 AS col1 FROM tab2
----
-1472

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - MIN ( ALL + col0 ) * 32 AS col1 FROM tab2
----
-1472

query II rowsort
SELECT DISTINCT 92 * - + col0 AS col0, 67 FROM tab0
----
-1380
67
-8004
67
-8924
67

query I rowsort
SELECT col0 * + 1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4536
SELECT DISTINCT - 32 + - COUNT( * ) + + + 60, - 89 col2 FROM tab2
----
25
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4536
SELECT DISTINCT - 32 + - COUNT ( * ) + + + 60, - 89 col2 FROM tab2
----
25
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + 34 - + COUNT( * ) + - + 0 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 34 - + COUNT ( * ) + - + 0 FROM tab0 AS cor0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4538
SELECT - col1 - 85 DIV 6 * - 68 AS col0 FROM tab0 AS cor0
----
871
931
951

skipif mysql # not compatible
query I rowsort label-4538
SELECT - col1 - 85 / 6 * - 68 AS col0 FROM tab0 AS cor0
----
871
931
951

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + 39 + + COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4539
SELECT + 39 + + COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT 85 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + 60 - 16 FROM tab2
----
44
44
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT DISTINCT MAX( DISTINCT + 57 ) DIV + 70 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT MAX ( DISTINCT + 57 ) / + 70 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 84 + - - 67 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
151

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT ALL MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT ALL MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * 76 * + col1 FROM tab1 AS cor0
----
14896
167884
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT + - MIN( + + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + - MIN ( + + col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT ALL - col1 * col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - col1 * col1 / col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + + 52 * - MAX( - col0 ) FROM tab1 AS cor0
----
2652

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + + 52 * - MAX ( - col0 ) FROM tab1 AS cor0
----
2652

query II rowsort
SELECT 27 AS col1, + col0 - col0 * - col1 FROM tab1 AS cor0
----
27
4368
27
510
27
765

query I rowsort
SELECT ALL 86 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 64 * + - col2 AS col2 FROM tab1
----
-3776
-4352
-6144

query I rowsort
SELECT ALL - col0 * 14 FROM tab1
----
-1190
-1274
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-4554
SELECT DISTINCT col1 DIV + col0, + col0 FROM tab0
----
0
87
0
97
5
15

skipif mysql # not compatible
query II rowsort label-4554
SELECT DISTINCT col1 / + col0, + col0 FROM tab0
----
0
87
0
97
5
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 - + + col1 NOT IN ( - + col2, 60, + + 65 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT ALL 49 DIV 21 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 49 / 21 FROM tab2
----
2
2
2

query I rowsort
SELECT DISTINCT col0 + + + ( - - col0 ) FROM tab2 AS cor0
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT ALL - - col0 * - + col2 + - + 54 DIV - - col1 AS col2 FROM tab2 AS cor0
----
-1059
-2560
-4350

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - - col0 * - + col2 + - + 54 / - - col1 AS col2 FROM tab2 AS cor0
----
-1059
-2560
-4350

query I rowsort
SELECT DISTINCT - - col0 * 71 * + col1 FROM tab1 AS cor0
----
30175
303667
50694

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4560
SELECT - col1 DIV + CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT - col1 / + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + - - 23 - - col2 * + 78 AS col1 FROM tab0
----
3736
7844
813

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT - SUM( DISTINCT - - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4563
SELECT - SUM ( DISTINCT - - col1 ) FROM tab1 cor0
----
-66

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 NOT BETWEEN + col2 * - col1 + - - col0 + - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4565
SELECT 19, COUNT( * ) AS col1 FROM tab0 AS cor0
----
19
3

skipif mysql # not compatible
query II rowsort label-4565
SELECT 19, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
19
3

query I rowsort
SELECT ALL + + col0 + + - 77 + + 58 AS col2 FROM tab1 AS cor0
----
32
66
72

query I rowsort
SELECT ALL 84 + 60 - + - col1 FROM tab0 AS cor0
----
145
165
225

onlyif mysql # DIV for integer division: 
query II rowsort label-4568
SELECT DISTINCT - col0 AS col1, + col2 DIV col1 - + + 1 AS col2 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-4568
SELECT DISTINCT - col0 AS col1, + col2 / col1 - + + 1 AS col2 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT + CAST( - 74 AS SIGNED ) - - col2 * 3 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

skipif mysql # not compatible
query I rowsort label-4569
SELECT + CAST ( - 74 AS INTEGER ) - - col2 * 3 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT col2 - + + CAST( - 60 AS SIGNED ) FROM tab2 AS cor0
----
100
118
83

skipif mysql # not compatible
query I rowsort label-4571
SELECT col2 - + + CAST ( - 60 AS INTEGER ) FROM tab2 AS cor0
----
100
118
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE + col1 * + col0 + ( 1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE + col1 * + col0 + ( 1 ) IS NOT NULL
----
0

query I rowsort
SELECT col1 + col0 * + + 88 FROM tab0
----
1401
7677
8537

query I rowsort
SELECT DISTINCT + col2 * col1 * 48 + col0 * + + col2 AS col0 FROM tab1
----
159596
19175
69408

query I rowsort
SELECT 10 * - col1 + - 82 * - ( - 77 ) AS col1 FROM tab1
----
-6364
-6454
-6784

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 BETWEEN - col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT - 16 + + 18 + + COUNT( * ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4577
SELECT - 16 + + 18 + + COUNT ( * ) AS col2 FROM tab0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4578
SELECT ALL - COUNT( - + 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 / - CAST( NULL AS SIGNED ) * + + 39 * 30 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL - COUNT ( - + 82 ) AS col1 FROM tab0 AS cor0 WHERE NOT col1 / - CAST ( NULL AS INTEGER ) * + + 39 * 30 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL + COUNT( * ) + - + COUNT( - col0 ) - 30 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + COUNT ( * ) + - + COUNT ( - col0 ) - 30 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4580
SELECT + - COUNT( * ) DIV COUNT( DISTINCT col2 ) - + COUNT( * ) + - COUNT( DISTINCT col1 ) * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4580
SELECT + - COUNT ( * ) / COUNT ( DISTINCT col2 ) - + COUNT ( * ) + - COUNT ( DISTINCT col1 ) * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT + ( 22 ) FROM tab1 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) * + 19 * + + 30 col2 FROM tab2 WHERE NOT col0 IS NULL OR NOT NULL > NULL
----
-13110
-22800
-33060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 44 ) col1 FROM tab2
----
44
44
44

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 <= + - ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + 55 * COUNT( * ) FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-4585
SELECT + 55 * COUNT ( * ) FROM tab2
----
165

query II rowsort
SELECT ALL + ( + col0 ), + 27 FROM tab2
----
46
27
64
27
75
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 59
----

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT MIN( + 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4589
SELECT MIN ( + 69 ) FROM tab2 AS cor0
----
69

query II rowsort
SELECT + col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT ( + 50 ) AS col1 FROM tab2
----
50

query III rowsort
SELECT * FROM tab2 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT - 43 AS col1, MIN( + col0 ) FROM tab0
----
-43
15

skipif mysql # not compatible
query II rowsort label-4593
SELECT - 43 AS col1, MIN ( + col0 ) FROM tab0
----
-43
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT CAST( + 38 AS SIGNED ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT CAST ( + 38 AS INTEGER ) FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - MAX( 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-4595
SELECT - MAX ( 48 ) FROM tab2
----
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - + ( - + 83 ) NOT BETWEEN ( - 58 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT - 91 + - COUNT( * ) + - 78 * - + 77 AS col1 FROM tab1 AS cor0
----
5912

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT - 91 + - COUNT ( * ) + - 78 * - + 77 AS col1 FROM tab1 AS cor0
----
5912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT - CAST( - col0 AS SIGNED ) FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - - col2 AND + ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-4598
SELECT - CAST ( - col0 AS INTEGER ) FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - - col2 AND + ( + col2 )
----

query I rowsort
SELECT ALL - + col0 + + 12 AS col2 FROM tab0 AS cor0
----
-3
-75
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - ( SUM( + 90 ) ) AS col1 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-4600
SELECT - ( SUM ( + 90 ) ) AS col1 FROM tab2
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT CAST( SUM( ALL - col2 ) AS SIGNED ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4601
SELECT CAST ( SUM ( ALL - col2 ) AS INTEGER ) FROM tab1
----
-223

query I rowsort
SELECT ALL + 36 - - col0 FROM tab2
----
100
111
82

query III rowsort
SELECT * FROM tab0 WHERE NOT 87 BETWEEN ( col1 / + col1 ) AND 1 + - ( + 68 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 56 * 22 AS col1 FROM tab0
----
1232
1232
1232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( + 68 ) col1 FROM tab2
----
108
126
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT 20 + + COUNT( * ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT 20 + + COUNT ( * ) AS col0 FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 AND ( + col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 WHERE NOT 14 + col0 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * col2 + + 77 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ( MAX( DISTINCT + col0 ) ) * - 78 AS col2 FROM tab1 WHERE NOT + 0 IS NULL
----
-7098

skipif mysql # not compatible
query I rowsort label-4611
SELECT ( MAX ( DISTINCT + col0 ) ) * - 78 AS col2 FROM tab1 WHERE NOT + 0 IS NULL
----
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT COUNT( * ) FROM tab2 WHERE ( + 90 * col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT COUNT ( * ) FROM tab2 WHERE ( + 90 * col1 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 63 - 89 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 89 - - 42 FROM tab1
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4615
SELECT MAX( 97 ) DIV + 8 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4615
SELECT MAX ( 97 ) / + 8 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4616
SELECT ALL * FROM tab2 WHERE ( - col0 - 68 * + 68 ) NOT IN ( col0 * + CAST( + col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4616
SELECT ALL * FROM tab2 WHERE ( - col0 - 68 * + 68 ) NOT IN ( col0 * + CAST ( + col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col0 * - col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + MIN( col2 ) * 84 + + 87 AS col0 FROM tab1
----
5043

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + MIN ( col2 ) * 84 + + 87 AS col0 FROM tab1
----
5043

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + ( col2 ) NOT BETWEEN - 99 AND ( col0 + 21 )
----
59
68

query I rowsort
SELECT 73 FROM tab0 AS cor0 WHERE col1 - col1 * 87 NOT IN ( 48 )
----
73
73
73

query I rowsort
SELECT 95 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( col2 ) * 82 AS col0 FROM tab2 AS cor0
----
1886
3280
4756

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( 42 ) + + 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT MIN( 2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4625
SELECT MIN ( 2 ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + COUNT( - 31 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4626
SELECT + COUNT ( - 31 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL - ( SUM( col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL - ( SUM ( col0 ) ) FROM tab0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT col2 * CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4628
SELECT col2 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT + 39 * MIN( DISTINCT + 1 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4629
SELECT + 39 * MIN ( DISTINCT + 1 ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT - - col0 * + ( - col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col1 * - 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT + 51 DIV + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4633
SELECT + 51 / + COUNT ( * ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + MAX( ALL + col1 ) * 21 FROM tab0 AS cor0
----
1701

skipif mysql # not compatible
query I rowsort label-4634
SELECT + MAX ( ALL + col1 ) * 21 FROM tab0 AS cor0
----
1701

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab1 AS cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT 42 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - 57 * + 16 FROM tab2 AS cor0
----
912
912
912

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 29 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 29 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 71 * + col2 FROM tab2
----
1633
2840
4118

query I rowsort
SELECT DISTINCT ( + col2 ) + - 76 AS col1 FROM tab1
----
-17
-8
20

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 IS NULL OR ( - 55 ) = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT 81 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * - - ( + col0 ) FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL - - col1 * 6 AS col1 FROM tab2 AS cor0
----
306
402
462

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT + + 19 + - 23 DIV - 23 FROM tab1 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-4645
SELECT + + 19 + - 23 / - 23 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4646
SELECT ALL + 20 DIV + - COUNT( * ) + + 48 + 49 AS col0 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + 20 / + - COUNT ( * ) + + 48 + 49 AS col0 FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT - - 50 + - col1 AS col1 FROM tab1 AS cor0
----
3
36
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT + + MIN( ALL - 84 ) + 51 AS col1 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-4648
SELECT + + MIN ( ALL - 84 ) + 51 AS col1 FROM tab2 AS cor0
----
-33

query I rowsort
SELECT DISTINCT ( - - 58 ) * col1 AS col1 FROM tab2 AS cor0
----
2958
3886
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL - COUNT( - ( 55 ) ) * + COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - COUNT ( - ( 55 ) ) * + COUNT ( * ) AS col0 FROM tab0
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col0 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4652
SELECT COUNT( * ) FROM tab1 WHERE + - col0 IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT COUNT ( * ) FROM tab1 WHERE + - col0 IN ( CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL col2 * col1 FROM tab2 WHERE NULL IN ( + 10 * - ( 50 * 60 - + 4 ) + + ( 81 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4654
SELECT + col0 / - col1 AS col0 FROM tab1 WHERE ( col0 * CAST( NULL AS DECIMAL ) + col1 ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4654
SELECT + col0 / - col1 AS col0 FROM tab1 WHERE ( col0 * CAST ( NULL AS REAL ) + col1 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT - + 47 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT - + 47 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT ALL 50 * - 64 + + + CAST( NULL AS SIGNED ) * + 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL 50 * - 64 + + + CAST ( NULL AS INTEGER ) * + 53 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - 42 FROM tab2 AS cor0
----
25
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT COUNT( + 48 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4658
SELECT COUNT ( + 48 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT + col0 * 8 + col0 FROM tab0 AS cor0
----
135
783
873

query I rowsort
SELECT col1 - - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1358
300
3243

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 - 19 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 AND + col2 + - col2
----

query I rowsort
SELECT - + col1 * + + 97 + + - col1 FROM tab1 AS cor0
----
-1372
-4606
-490

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + + col1 - + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL COUNT( * ) - + - ( - 9 ) * 23 * - 97 FROM tab0
----
20082

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL COUNT ( * ) - + - ( - 9 ) * 23 * - 97 FROM tab0
----
20082

query I rowsort
SELECT - 69 - - col1 FROM tab1 WHERE NULL <> ( - + col0 * - col1 )
----

query I rowsort
SELECT + ( - - col1 ) + + + col2 AS col0 FROM tab1
----
110
115
64

query I rowsort
SELECT + 29 * 3 * - col0 AS col2 FROM tab2
----
-4002
-5568
-6525

query I rowsort
SELECT ALL + 87 FROM tab0 WHERE NOT NULL >= + col0 + + + col2 + - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT + col0 + - 37 - - CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-39
-69
40

skipif mysql # not compatible
query I rowsort label-4672
SELECT + col0 + - 37 - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-39
-69
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT + ( + COUNT( * ) ) AS col1, 83 AS col0 FROM tab0 AS cor0
----
3
83

skipif mysql # not compatible
query II rowsort label-4673
SELECT + ( + COUNT ( * ) ) AS col1, 83 AS col0 FROM tab0 AS cor0
----
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT - + COUNT( + - col0 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4674
SELECT DISTINCT - + COUNT ( + - col0 ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT + CAST( NULL AS SIGNED ) / col1 col0 FROM tab2 cor0 WHERE NOT ( - col2 * + col1 ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4675
SELECT + CAST ( NULL AS INTEGER ) / col1 col0 FROM tab2 cor0 WHERE NOT ( - col2 * + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) BETWEEN - col2 AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL + MAX( DISTINCT + + 13 ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL + MAX ( DISTINCT + + 13 ) AS col2 FROM tab0
----
13

query I rowsort
SELECT 70 * - + col1 * - 94 FROM tab2
----
335580
440860
506660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( col2 * + col0 + - + ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 31 AS col0 FROM tab2 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT 90 AS col2 FROM tab1 cor0
----
90

query I rowsort
SELECT - col2 + - 41 + + 63 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-37
-46
-74

query I rowsort
SELECT - - 3 + col1 + + - 21 FROM tab2 AS cor0
----
33
49
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT - CAST( NULL AS SIGNED ) + + + col2 + - col1 + + ( + 59 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT - CAST ( NULL AS INTEGER ) + + + col2 + - col1 + + ( + 59 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + + 37 - col1 AS col1 FROM tab1
----
37
37
37

query II rowsort
SELECT col2 AS col1, + col1 + - 85 FROM tab2
----
23
-34
40
-8
58
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT ( SUM( ALL 11 ) ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT ( SUM ( ALL 11 ) ) AS col2 FROM tab0
----
33

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 - + + 99 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE ( - + 31 ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > ( col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4692
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4693
SELECT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT - AVG ( DISTINCT col0 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT - AVG ( DISTINCT col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + + col0 * - + col2 FROM tab2
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - MIN( - 33 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
33

skipif mysql # not compatible
query I rowsort label-4696
SELECT - MIN ( - 33 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + MAX( - + col0 ) + + 6 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + MAX ( - + col0 ) + + 6 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT DISTINCT + - 28 + + 19 * col1 FROM tab1 cor0
----
238
67
865

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 >= col1
----

query I rowsort
SELECT ALL - col2 * - 11 - + 26 AS col0 FROM tab2 AS cor0
----
227
414
612

query I rowsort
SELECT - - ( - 22 ) AS col1 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT DISTINCT + col0 - CAST( - 20 AS SIGNED ) FROM tab1 AS cor0
----
105
111
71

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT + col0 - CAST ( - 20 AS INTEGER ) FROM tab1 AS cor0
----
105
111
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT + SUM( ALL + 44 ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-4703
SELECT + SUM ( ALL + 44 ) FROM tab1
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4704
SELECT - 87 - - + COUNT( * ) DIV + 40, COUNT( * ) AS col1 FROM tab0
----
-87
3

skipif mysql # not compatible
query II rowsort label-4704
SELECT - 87 - - + COUNT ( * ) / + 40, COUNT ( * ) AS col1 FROM tab0
----
-87
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 9 col2 FROM tab2
----
-414
-576
-675

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 26 + + + 38 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4707
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + - CAST( + - 18 AS DECIMAL ) + + - col2 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4707
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 IN ( + - CAST ( + - 18 AS REAL ) + + - col2 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + col2 AS col1 FROM tab0 WHERE NOT - + col0 + - - col2 * - + col2 + col0 + + col2 * + col0 * - 84 + col0 * - col0 * ( col1 ) <= + 14
----

query II rowsort
SELECT - col2 AS col1, + col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT + CAST( - col2 AS SIGNED ) FROM tab0 WHERE NOT + 52 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4710
SELECT + CAST ( - col2 AS INTEGER ) FROM tab0 WHERE NOT + 52 IS NOT NULL
----

query I rowsort
SELECT - + 78 AS col0 FROM tab0 AS cor0
----
-78
-78
-78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 40 FROM tab0 AS cor0
----
15
40
87
40
97
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * - + col1 col0 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4715
SELECT ALL * FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND ( - 0 + col0 + col1 * + - CAST( NULL AS SIGNED ) - + - col0 + - ( 23 ) )
----

skipif mysql # not compatible
query III rowsort label-4715
SELECT ALL * FROM tab2 cor0 WHERE + col0 BETWEEN NULL AND ( - 0 + col0 + col1 * + - CAST ( NULL AS INTEGER ) - + - col0 + - ( 23 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - ( MIN( 17 ) ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - ( MIN ( 17 ) ) FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT 44 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT 44 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
396

query I rowsort
SELECT ALL - 9 FROM tab2, tab1 cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4719
SELECT DISTINCT + COUNT( * ) DIV + 12, 59 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
59

skipif mysql # not compatible
query II rowsort label-4719
SELECT DISTINCT + COUNT ( * ) / + 12, 59 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
59

query I rowsort
SELECT - - col2 * ( + col1 ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL ( - + 92 ) AS col1 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL - ( + ( 66 ) ) FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL + COUNT( ALL + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( - + col1 ) ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + COUNT ( ALL + - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - ( - + col1 ) ) <> ( NULL )
----
0

query II rowsort
SELECT ALL + ( - col2 ), col0 AS col2 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL 79 AS col1 FROM tab2 WHERE - + col1 NOT BETWEEN + col2 / col2 AND col0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT SUM( + - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT SUM ( + - col2 ) AS col0 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col0 FROM tab2 WHERE - + 91 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( - col1 / - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col1 / + 96 + 80 * + + col2 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT ALL - 28 AS col0, COUNT( * ) + - - 83 FROM tab1
----
-28
86

skipif mysql # not compatible
query II rowsort label-4730
SELECT ALL - 28 AS col0, COUNT ( * ) + - - 83 FROM tab1
----
-28
86

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 cor0 WHERE NULL = + ( - + col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + 23 * - col2 / - col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - + 98 AS col2 FROM tab2
----
-4998
-6566
-7546

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT - 86 AS col1, + COUNT( * ) * + 90 FROM tab2
----
-86
270

skipif mysql # not compatible
query II rowsort label-4735
SELECT - 86 AS col1, + COUNT ( * ) * + 90 FROM tab2
----
-86
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT - + MIN( + 65 ) - COUNT( * ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-4736
SELECT - + MIN ( + 65 ) - COUNT ( * ) FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT - SUM( - 41 ) FROM tab0 AS cor0 WHERE NULL < - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT - SUM ( - 41 ) FROM tab0 AS cor0 WHERE NULL < - 85
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col1 col1 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4739
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > 88 - - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4739
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > 88 - - CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4740
SELECT ALL col1 * col1 * - + col0 AS col1, - CAST( NULL AS DECIMAL ) FROM tab2
----
-119646
NULL
-336675
NULL
-379456
NULL

skipif mysql # not compatible
query II rowsort label-4740
SELECT ALL col1 * col1 * - + col0 AS col1, - CAST ( NULL AS REAL ) FROM tab2
----
-119646
NULL
-336675
NULL
-379456
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 * - col0 AS col0, + ( - col2 ) + + - col1 AS col1, - col0 * + col1 col2 FROM tab2
----
9 values hashing to 07ddda7068a1d143ab552f77d9ac92ba

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT - COUNT( * ) * + + 20 AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - COUNT ( * ) * + + 20 AS col1 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT col2 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT col2 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL 52 - + col2 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL 52 - + col2 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT MAX( ALL - + col2 ) * MIN( + col0 ) AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-4746
SELECT MAX ( ALL - + col2 ) * MIN ( + col0 ) AS col0 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT DISTINCT + MAX( ALL - + col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + MAX ( ALL - + col0 ) FROM tab2
----
-46

query I rowsort
SELECT - + col0 * - - col0 + 18 FROM tab2 AS cor0 WHERE NOT col0 * - - 52 * + + col2 <> - 53
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT ALL - 62 * - - 70 + SUM( DISTINCT + 28 ) col0, MAX( + + col0 ) - + + 63 col1 FROM tab0 AS cor0
----
-4312
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4749
SELECT ALL - 62 * - - 70 + SUM ( DISTINCT + 28 ) col0, MAX ( + + col0 ) - + + 63 col1 FROM tab0 AS cor0
----
-4312
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - + + col1 * 99 + - 12 = - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT COUNT( * ) + COUNT( * ) * - + 82 DIV 37 * - 79 AS col1 FROM tab2 AS cor0
----
477

skipif mysql # not compatible
query I rowsort label-4751
SELECT COUNT ( * ) + COUNT ( * ) * - + 82 / 37 * - 79 AS col1 FROM tab2 AS cor0
----
477

query II rowsort
SELECT + + 98 * - col1 + - + 90, 63 + + - ( col1 ) * - col1 AS col0 FROM tab0 cor0
----
-188
64
-2148
504
-8028
6624

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - col1 >= + 57 * + - 68 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT + COUNT( * ) * 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-4754
SELECT + COUNT ( * ) * 76 FROM tab0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4755
SELECT * FROM tab2 WHERE + CAST( + 87 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4755
SELECT * FROM tab2 WHERE + CAST ( + 87 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL col1 - - + 54 AS col1 FROM tab1 WHERE - CAST( NULL AS SIGNED ) > + 87
----

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL col1 - - + 54 AS col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) > + 87
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 <= 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 + + col0 * - col2 + + col0, ( - col0 ) * - - col1 AS col0 FROM tab2 AS cor0
----
-2419
-4928
-4208
-5025
-961
-2346

query II rowsort
SELECT ALL - col0 - + col1 AS col0, + 69 FROM tab0 AS cor0
----
-108
69
-96
69
-98
69

query II rowsort
SELECT 0 + + + 41 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
41
-1
41
-21
41
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL 92 * - 92 + - COUNT( * ) + ( - + COUNT( * ) ) - - - 47 * - + 1 * 78 AS col0 FROM tab0 AS cor0
----
-4804

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL 92 * - 92 + - COUNT ( * ) + ( - + COUNT ( * ) ) - - - 47 * - + 1 * 78 AS col0 FROM tab0 AS cor0
----
-4804

query I rowsort
SELECT DISTINCT 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
44

query I rowsort
SELECT ALL + 83 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT - 81 DIV col2 AS col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4764
SELECT - 81 / col2 AS col2 FROM tab2
----
-1
-2
-3

query II rowsort
SELECT ALL col2 AS col0, col2 + ( - + 12 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
11
40
28
58
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 27 + - + 38 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT DISTINCT COUNT( * ) * + - 68 AS col2 FROM tab2 cor0
----
-204

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT COUNT ( * ) * + - 68 AS col2 FROM tab2 cor0
----
-204

query I rowsort
SELECT - + 60 FROM tab2 AS cor0 WHERE NOT + col2 <> - + 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4769
SELECT - - COUNT( * ) / + CAST( NULL AS SIGNED ) - + COUNT( * ) + 64 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) - + COUNT ( * ) + 64 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + COUNT( DISTINCT - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4770
SELECT + COUNT ( DISTINCT - col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT 39 * col1 FROM tab1 AS cor0
----
1833
195
546

query I rowsort
SELECT ALL ( col2 ) * + + 94 FROM tab0
----
4418
9306
940

query II rowsort
SELECT DISTINCT col0 AS col1, col1 + + 11 AS col1 FROM tab2
----
46
62
64
88
75
78

query II rowsort
SELECT DISTINCT col1, + 97 * - - col0 FROM tab1
----
14
4947
47
8827
5
8245

query II rowsort
SELECT - 2 AS col1, col0 AS col0 FROM tab1
----
-2
51
-2
85
-2
91

query I rowsort
SELECT ALL + col0 * 44 AS col1 FROM tab0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT DISTINCT - 84 * - 97 AS col0 FROM tab1 AS cor0
----
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-4778
SELECT + 13 col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4778
SELECT + 13 col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
13
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT DISTINCT + - col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT + - col1 / + col1 AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL + 34 * - - 85 + + 39 FROM tab2 cor0 WHERE NOT ( 81 ) * + + col0 / + col1 IS NULL
----
2929
2929
2929

query II rowsort
SELECT + ( + col2 ) AS col0, - col0 * - col2 AS col0 FROM tab0 AS cor0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 5 IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4784
SELECT + + CAST( NULL AS SIGNED ) * col0 * col0 * + + col0 + 19 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT + + CAST ( NULL AS INTEGER ) * col0 * col0 * + + col0 + 19 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col2 FROM tab1 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + - 32 + ( - col2 ) * col2 / ( col1 ) * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ALL + SUM( ALL - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + SUM ( ALL - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE ( ( + col2 IS NULL ) )
----

query I rowsort
SELECT 28 + + col0 AS col2 FROM tab0
----
115
125
43

query I rowsort
SELECT - 36 FROM tab1 WHERE + - 0 / - col1 / col1 * + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 * - - 85 col2 FROM tab2
----
7140
7140
7140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4793
SELECT ALL - MIN( DISTINCT + col0 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL - MIN ( DISTINCT + col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 10 + + col0 * col2, 94 col2 FROM tab2 AS cor0
----
1068
94
2570
94
4360
94

onlyif mysql # DIV for integer division: 
query II rowsort label-4795
SELECT + - 61 + 61 DIV - col2 AS col2, + col0 col2 FROM tab1 AS cor0
----
-61
51
-61
91
-62
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4795
SELECT + - 61 + 61 / - col2 AS col2, + col0 col2 FROM tab1 AS cor0
----
-61
51
-61
91
-62
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT + 9 - + 4 + - COUNT( ALL + 53 ) + + 42 AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4796
SELECT + 9 - + 4 + - COUNT ( ALL + 53 ) + + 42 AS col0 FROM tab1
----
44

query II rowsort
SELECT ( + col2 ) AS col2, - 41 AS col2 FROM tab2 AS cor0
----
23
-41
40
-41
58
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 55 col0 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - COUNT( * ) * - + COUNT( * ) * + - COUNT( * ) * - + MAX( + 28 ) AS col0 FROM tab1 AS cor0
----
756

skipif mysql # not compatible
query I rowsort label-4799
SELECT - COUNT ( * ) * - + COUNT ( * ) * + - COUNT ( * ) * - + MAX ( + 28 ) AS col0 FROM tab1 AS cor0
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT + MAX( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4800
SELECT + MAX ( DISTINCT - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT DISTINCT - MIN( ALL 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - MIN ( ALL 95 ) FROM tab0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT - COUNT( * ) * COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4804
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col1 = ( NULL )
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT - 76 DIV + - ( + 34 ) FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4808
SELECT - 76 / + - ( + 34 ) FROM tab2 cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT + col0 DIV col2 col1 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4809
SELECT + col0 / col2 col1 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + ( + + col0 )
----

query II rowsort
SELECT DISTINCT 13, col2 AS col1 FROM tab0 AS cor0
----
13
10
13
47
13
99

query I rowsort
SELECT ALL - col2 * - - col1 + 58 AS col1 FROM tab0 cor0
----
-152
-3749
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL - COUNT( ALL - - col2 ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - COUNT ( ALL - - col2 ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4815
SELECT ALL CAST( NULL AS SIGNED ) AS col2, MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4815
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT - 41 AS col2 FROM tab1 AS cor0 WHERE 26 IS NOT NULL
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL 30 * CAST( NULL AS SIGNED ) + - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL 30 * CAST ( NULL AS INTEGER ) + - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT + col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + - 89 FROM tab1
----
5251
6052
8544

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN - 51 / + col1 * + col2 - - ( 77 ) AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col0 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4822
SELECT * FROM tab2 WHERE + col0 * - 71 + - ( - CAST( NULL AS SIGNED ) ) + - 67 NOT BETWEEN NULL AND ( CAST( + col1 AS SIGNED ) ) / - + col0 / + col0
----

skipif mysql # not compatible
query III rowsort label-4822
SELECT * FROM tab2 WHERE + col0 * - 71 + - ( - CAST ( NULL AS INTEGER ) ) + - 67 NOT BETWEEN NULL AND ( CAST ( + col1 AS INTEGER ) ) / - + col0 / + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT - col2 DIV - 57 col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4823
SELECT - col2 / - 57 col1 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT MAX( DISTINCT col1 ) * MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
-8019

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT MAX ( DISTINCT col1 ) * MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
-8019

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + COUNT( * ) col2 FROM tab2 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4825
SELECT + COUNT ( * ) col2 FROM tab2 WHERE + - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT - COUNT( * ) + - SUM( + + col1 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - COUNT ( * ) + - SUM ( + + col1 ) FROM tab2 AS cor0
----
-198

query I rowsort
SELECT + - 84 * col0 * col0 - + col2 - - 6 FROM tab2 cor0
----
-177761
-344098
-472552

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE - 13 < - col2 - + 55
----

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 82 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4831
SELECT ALL + 29 DIV + + COUNT( * ) col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT ALL + 29 / + + COUNT ( * ) col0 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT + SUM( - 29 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + SUM ( - 29 ) FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT ALL - SUM( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - SUM ( DISTINCT + - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT - + COUNT( * ) * 41 AS col1 FROM tab2 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4834
SELECT - + COUNT ( * ) * 41 AS col1 FROM tab2 AS cor0
----
-123

query II rowsort
SELECT - 18 AS col0, + 84 FROM tab0 AS cor0
----
-18
84
-18
84
-18
84

query II rowsort
SELECT ALL + - col0, col1 * - - 31 AS col1 FROM tab2 AS cor0
----
-46
1581
-64
2387
-75
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 col1 FROM tab0 cor0
----
25
25
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4839
SELECT + SUM( - 49 ) DIV + COUNT( * ) col1, + 43 - - 55 + + + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-49
107

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4839
SELECT + SUM ( - 49 ) / + COUNT ( * ) col1, + 43 - - 55 + + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-49
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col0, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT DISTINCT + + 99, - 83 AS col2 FROM tab0 AS cor0
----
99
-83

query II rowsort
SELECT 61, ( - + ( - + col0 ) ) AS col2 FROM tab2 AS cor0
----
61
46
61
64
61
75

query I rowsort
SELECT - 7 * + 79 * + col2 + + - 95 * - - col0 + 52 + - 16 AS col1 FROM tab0 AS cor0
----
-13759
-27380
-63926

query I rowsort
SELECT ALL - 74 * col1 AS col0 FROM tab1
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL + - COUNT( * ) + - ( - ( MAX( ALL col0 ) ) ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + - COUNT ( * ) + - ( - ( MAX ( ALL col0 ) ) ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 92 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + + 70 AND col1 + + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + + 67 + + + col2 IS NOT NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4849
SELECT - col1 * - + col0 DIV - col0 AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4849
SELECT - col1 * - + col0 / - col0 AS col1 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / - - 7 + + 32 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - 44 + - COUNT( ALL - ( + + 63 ) ) FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4851
SELECT - 44 + - COUNT ( ALL - ( + + 63 ) ) FROM tab2 AS cor0
----
-47

query II rowsort
SELECT DISTINCT + 7, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * - ( - + col1 ) AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT + 61 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT ALL + col1 DIV + 46 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4855
SELECT ALL + col1 / + 46 col2 FROM tab1
----
0
0
1

query II rowsort
SELECT 7 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
7
46
7
64
7
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4857
SELECT DISTINCT col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 26 - - 58 FROM tab1 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4859
SELECT DISTINCT - CAST( + ( - 86 ) AS SIGNED ) + 55 * + col1 AS col0, + col2 * - col2 AS col2 FROM tab1 AS cor0
----
2671
-4624
361
-3481
856
-9216

skipif mysql # not compatible
query II rowsort label-4859
SELECT DISTINCT - CAST ( + ( - 86 ) AS INTEGER ) + 55 * + col1 AS col0, + col2 * - col2 AS col2 FROM tab1 AS cor0
----
2671
-4624
361
-3481
856
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL + 57 + + MAX( + + 24 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 57 + + MAX ( + + 24 ) FROM tab0 cor0
----
81

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col0 <> - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT DISTINCT + 71 * + COUNT( * ) - - 54 AS col2, + 42 FROM tab0 AS cor0
----
267
42

skipif mysql # not compatible
query II rowsort label-4862
SELECT DISTINCT + 71 * + COUNT ( * ) - - 54 AS col2, + 42 FROM tab0 AS cor0
----
267
42

query I rowsort
SELECT ALL - + col1 * + 53 FROM tab2 cor0
----
-2703
-3551
-4081

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( col0 ) + 67 / + col0 IS NOT NULL
----

query I rowsort
SELECT 66 FROM tab2 WHERE + 52 BETWEEN 48 AND - ( col2 )
----

query I rowsort
SELECT ALL - col0 * + 38 AS col1 FROM tab0
----
-3306
-3686
-570

query I rowsort
SELECT DISTINCT - col2 * + col0 * + col0 AS col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL 78 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
1638
6318
78

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL 78 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
1638
6318
78

query I rowsort
SELECT col1 * col1 + + + col2 FROM tab2
----
2624
4547
5969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT col2 + + - col1 + - 85 * + col2 AS col1 FROM tab0 WHERE - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4870
SELECT col2 + + - col1 + - 85 * + col2 AS col1 FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT - CAST( 82 AS SIGNED ) + - col0 col0 FROM tab0
----
-169
-179
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4871
SELECT - CAST ( 82 AS INTEGER ) + - col0 col0 FROM tab0
----
-169
-179
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT + col0 DIV 95 DIV + - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT + col0 / 95 / + - col0 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4873
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) AS col2, col1 AS col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-4873
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) AS col2, col1 AS col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT 80 * + MIN( - 23 ) FROM tab1 AS cor0
----
-1840

skipif mysql # not compatible
query I rowsort label-4874
SELECT 80 * + MIN ( - 23 ) FROM tab1 AS cor0
----
-1840

query I rowsort
SELECT ALL + 71 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <= + + col1 / - col1
----
3

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <= + + col1 / - col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT ALL + col2 DIV + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-21
-78
0

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + col2 / + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-21
-78
0

query I rowsort
SELECT + 50 * + col1 FROM tab0
----
1050
4050
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4879
SELECT - 76 AS col2, - CAST( + - MAX( + col0 ) AS SIGNED ) * + 35 AS col0 FROM tab2
----
-76
2625

skipif mysql # not compatible
query II rowsort label-4879
SELECT - 76 AS col2, - CAST ( + - MAX ( + col0 ) AS INTEGER ) * + 35 AS col0 FROM tab2
----
-76
2625

query III rowsort
SELECT * FROM tab0 WHERE NOT + 72 * + col0 * + col1 + + col2 / + 31 IS NOT NULL
----

query II rowsort
SELECT ALL + 24, 97 AS col1 FROM tab0
----
24
97
24
97
24
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 + - 45 col0 FROM tab1
----
-84
-84
-84

query II rowsort
SELECT + col0, - 51 FROM tab0
----
15
-51
87
-51
97
-51

query I rowsort
SELECT + 49 * - col1 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT - COUNT( * ) + + 80 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - COUNT ( * ) + + 80 FROM tab1 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = + ( - col1 )
----

query I rowsort
SELECT - 17 * - col2 + + + 32 + col2 FROM tab2 AS cor0
----
1076
446
752

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4888
SELECT MAX( + 83 ) / - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT MAX ( + 83 ) / - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 51 + 2 + + col2 * - col1 * col0, - col0, - col2, + 97 / - - col0 + + col1 * - col0 + + + 22 * 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT 6 * + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4890
SELECT 6 * + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4891
SELECT ALL - CAST( + col0 AS SIGNED ) col2, col2 FROM tab2
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4891
SELECT ALL - CAST ( + col0 AS INTEGER ) col2, col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT DISTINCT + CAST( + 38 AS SIGNED ) FROM tab1 WHERE NULL <> + + CAST( 81 AS SIGNED ) / - 17
----

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + CAST ( + 38 AS INTEGER ) FROM tab1 WHERE NULL <> + + CAST ( 81 AS INTEGER ) / - 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 52 - + + col1
----
0

skipif mysql # not compatible
query I rowsort label-4893
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 52 - + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT DISTINCT + COUNT( * ) + - - 21 AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT + COUNT ( * ) + - - 21 AS col1 FROM tab0 AS cor0
----
24

query I rowsort
SELECT DISTINCT - col1 - col1 + + col0 * ( + 43 ) FROM tab1 cor0
----
2165
3645
3819

query I rowsort
SELECT ALL - col0 + + + col1 * - 80 FROM tab2 AS cor0
----
-4126
-5435
-6224

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT + COUNT( + - col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4897
SELECT + COUNT ( + - col1 ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4898
SELECT * FROM tab1 cor0 WHERE - 47 = - col1 * + col0 / + CAST( NULL AS SIGNED ) * + col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-4898
SELECT * FROM tab1 cor0 WHERE - 47 = - col1 * + col0 / + CAST ( NULL AS INTEGER ) * + col0 * + col1
----

query I rowsort
SELECT DISTINCT - 11 * col0 AS col1 FROM tab1
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + COUNT( ALL - ( col0 ) ) - + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4900
SELECT + COUNT ( ALL - ( col0 ) ) - + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + col0 * + + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4902
SELECT ALL 46 AS col2, SUM( DISTINCT col0 ) FROM tab2
----
46
185

skipif mysql # not compatible
query II rowsort label-4902
SELECT ALL 46 AS col2, SUM ( DISTINCT col0 ) FROM tab2
----
46
185

query II rowsort
SELECT DISTINCT 31, col0 FROM tab1 AS cor0
----
31
51
31
85
31
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT COUNT( * ) * + - 23 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4904
SELECT COUNT ( * ) * + - 23 FROM tab1 cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT + - col2 DIV - 90 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4905
SELECT + - col2 / - 90 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4907
SELECT DISTINCT - CAST( - ( ( - COUNT( * ) ) ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT - CAST ( - ( ( - COUNT ( * ) ) ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - - 76 + - - 3 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT + col1 * 92 FROM tab2 AS cor0
----
4692
6164
7084

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT - + 85 * - col2 * - 93 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4910
SELECT - + 85 * - col2 * - 93 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - + MIN( DISTINCT - ( ( - 32 ) ) ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4911
SELECT - + MIN ( DISTINCT - ( ( - 32 ) ) ) FROM tab1 AS cor0
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT DISTINCT + CAST( ( - 7 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + CAST ( ( - 7 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT col2 * - 19 + - CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT col2 * - 19 + - CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT - MAX( ALL + - 86 ) AS col2 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4914
SELECT - MAX ( ALL + - 86 ) AS col2 FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88, - 93 col2 FROM tab1 AS cor0
----
88
-93
88
-93
88
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL + COUNT( - + col2 ) DIV MIN( - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + COUNT ( - + col2 ) / MIN ( - col0 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + + col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT + 33 + + COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4918
SELECT + 33 + + COUNT ( * ) AS col1 FROM tab2
----
36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL - + CAST( - + 44 AS SIGNED ) + - + col0 FROM tab1 AS cor0
----
-41
-47
-7

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - + CAST ( - + 44 AS INTEGER ) + - + col0 FROM tab1 AS cor0
----
-41
-47
-7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col2 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4922
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4922
SELECT DISTINCT + - CAST ( NULL AS REAL ) col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4923
SELECT COUNT( * ) AS col2, - 38 FROM tab0
----
3
-38

skipif mysql # not compatible
query II rowsort label-4923
SELECT COUNT ( * ) AS col2, - 38 FROM tab0
----
3
-38

query I rowsort
SELECT - + col1 - - col2 * + col2 * - - col1 + col0 FROM tab2 AS cor0
----
123187
225396
26974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT col2 / + col1 * + col0 * + col0 - 39 + CAST( 89 AS SIGNED ) * + col1 + + col2 * + CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT col2 / + col1 * + col0 * + col0 - 39 + CAST ( 89 AS INTEGER ) * + col1 + + col2 * + CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT - col0 - - + col1 + - + col1 + col0 * + + col0 DIV col0 * - - col1 * + col1 AS col2 FROM tab0 cor0
----
0
38280
98400

skipif mysql # not compatible
query I rowsort label-4926
SELECT - col0 - - + col1 + - + col1 + col0 * + + col0 / col0 * - - col1 * + col1 AS col2 FROM tab0 cor0
----
0
38280
98400

query I rowsort
SELECT + + 57 - 11 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT - ( MAX( - + 44 ) ) FROM tab0 AS cor0 WHERE col1 / - 94 BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT DISTINCT - ( MAX ( - + 44 ) ) FROM tab0 AS cor0 WHERE col1 / - 94 BETWEEN NULL AND col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL - + 45 + - COUNT( * ) AS col2 FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL - + 45 + - COUNT ( * ) AS col2 FROM tab0 cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT ALL COUNT( * ) - - + CAST( - - MAX( col1 ) AS SIGNED ) FROM tab2 cor0
----
80

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL COUNT ( * ) - - + CAST ( - - MAX ( col1 ) AS INTEGER ) FROM tab2 cor0
----
80

query I rowsort
SELECT ALL - - col1 - - 55 FROM tab2 AS cor0
----
106
122
132

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 14 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + - col0 + + col2 + col1 * col0 <> ( - 70 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + - col0 + + col2 + col1 * col0 <> ( - 70 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + - col2 col0 FROM tab2
----
-20
-37
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT + SUM( + - 37 ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-4935
SELECT + SUM ( + - 37 ) FROM tab2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL - MAX( - 38 ) AS col0 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL - MAX ( - 38 ) AS col0 FROM tab1
----
38

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4938
SELECT CAST( + col1 AS SIGNED ) * - col1 * - 38 + + col0 DIV col0 FROM tab2
----
170583
225303
98839

skipif mysql # not compatible
query I rowsort label-4938
SELECT CAST ( + col1 AS INTEGER ) * - col1 * - 38 + + col0 / col0 FROM tab2
----
170583
225303
98839

query I rowsort
SELECT ALL + - 97 AS col0 FROM tab0 WHERE NOT + col1 NOT BETWEEN + 70 * + 15 + - col1 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4940
SELECT + 87 DIV - col0 - - - 74 FROM tab1 AS cor0
----
-74
-75
-75

skipif mysql # not compatible
query I rowsort label-4940
SELECT + 87 / - col0 - - - 74 FROM tab1 AS cor0
----
-74
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT + MIN( 59 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 + col1, + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4941
SELECT DISTINCT + MIN ( 59 ) col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col2 + col1, + col1 )
----
NULL

query I rowsort
SELECT ALL - 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query III rowsort
SELECT ALL * FROM tab1 WHERE + 56 * col1 BETWEEN - - col1 AND + - col1 * 67 + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ( + MIN( - col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4944
SELECT ( + MIN ( - col1 ) ) AS col1 FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, + 8 col2 FROM tab1 AS cor0
----
59
8
68
8
96
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - ( - 57 ) + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4947
SELECT - 53 col0 FROM tab2 AS cor0 WHERE NOT - 93 + - - CAST( NULL AS DECIMAL ) + + - col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT - 53 col0 FROM tab2 AS cor0 WHERE NOT - 93 + - - CAST ( NULL AS REAL ) + + - col1 IS NULL
----

query I rowsort
SELECT - - col2 * - col1 + - col2 + - col0 FROM tab2 cor0
----
-1242
-3184
-4019

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT MAX( - 17 ) AS col0 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-4949
SELECT MAX ( - 17 ) AS col0 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4950
SELECT - MAX( ALL - col0 ), - MAX( + col2 ) AS col2 FROM tab0
----
15
-99

skipif mysql # not compatible
query II rowsort label-4950
SELECT - MAX ( ALL - col0 ), - MAX ( + col2 ) AS col2 FROM tab0
----
15
-99

query I rowsort
SELECT DISTINCT 18 FROM tab1 WHERE NOT NULL > + col2 + - 74
----

query I rowsort
SELECT ALL - col0 + + col0 * + - col2 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT ( col0 ) * - col0 FROM tab2 WHERE - col0 * - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT DISTINCT - 17 + - MIN( DISTINCT - + col2 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - 17 + - MIN ( DISTINCT - + col2 ) FROM tab2
----
41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN 13 + + col1 AND - col1
----

query I rowsort
SELECT + col0 * col2 * + col0 - - col0 FROM tab1 AS cor0
----
249747
426360
563199

query II rowsort
SELECT 77 + col0, + col0 FROM tab1
----
128
51
162
85
168
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab2 WHERE col0 IS NOT NULL AND NOT ( NULL ) BETWEEN + 26 * + col0 AND + col2 * + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - 62 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT - 78 AS col2 FROM tab2 WHERE NOT NULL >= + - CAST( - col2 AS SIGNED ) + col2
----

skipif mysql # not compatible
query I rowsort label-4960
SELECT - 78 AS col2 FROM tab2 WHERE NOT NULL >= + - CAST ( - col2 AS INTEGER ) + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4961
SELECT + COUNT( * ) AS col2, MAX( DISTINCT col1 ) + + 46 FROM tab2
----
3
123

skipif mysql # not compatible
query II rowsort label-4961
SELECT + COUNT ( * ) AS col2, MAX ( DISTINCT col1 ) + + 46 FROM tab2
----
3
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT DISTINCT ( + MAX( col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4962
SELECT DISTINCT ( + MAX ( col1 ) ) FROM tab1
----
47

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL > NULL
----

query II rowsort
SELECT ALL + col0 AS col1, + 63 AS col1 FROM tab2
----
46
63
64
63
75
63

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT COUNT( * ), 62 + 50 + SUM( + + col1 ) AS col0 FROM tab1
----
3
178

skipif mysql # not compatible
query II rowsort label-4965
SELECT COUNT ( * ), 62 + 50 + SUM ( + + col1 ) AS col0 FROM tab1
----
3
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col0 FROM tab1
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + MAX( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4967
SELECT ALL + MAX ( DISTINCT + col0 ) col2 FROM tab1 AS cor0
----
91

query II rowsort
SELECT - 59 AS col0, - col2 AS col0 FROM tab2 AS cor0
----
-59
-23
-59
-40
-59
-58

query I rowsort
SELECT ALL - ( - - 15 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT - col0 * - 74 FROM tab1
----
3774
6290
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col0 FROM tab0
----
15
15
15

query I rowsort
SELECT col2 * - col2 + - 22 FROM tab1 AS cor0 WHERE NOT col2 + 47 * - col1 BETWEEN - + col2 * + col1 AND NULL
----

query I rowsort
SELECT - - col0 * 32 FROM tab0 cor0
----
2784
3104
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) + 45 AS col2 FROM tab0 AS cor0
----
144
55
92

query I rowsort
SELECT ALL 6 FROM tab1 AS cor0 WHERE NOT + 21 IS NULL
----
6
6
6

query I rowsort
SELECT ALL - + col0 * - - 99 * 76 * + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-5304420
-6545880
-72252972

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col1 + col2 + + 70
----

query II rowsort
SELECT - col2 + - col2 * + 13 AS col1, 95 + - 8 + + col2 AS col2 FROM tab2
----
-322
110
-560
127
-812
145

query I rowsort
SELECT DISTINCT - 89 * 91 AS col0 FROM tab2
----
-8099

query I rowsort
SELECT DISTINCT - 84 + + col1 * - col1 FROM tab1
----
-109
-2293
-280

query I rowsort
SELECT ALL + 56 * + + col0 AS col2 FROM tab1
----
2856
4760
5096

query I rowsort
SELECT ALL + col1 + - ( + col2 ) AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT - 86 + + + 77 FROM tab1
----
-9
-9
-9

query II rowsort
SELECT DISTINCT col1 + col1 + - col2, 63 AS col1 FROM tab0
----
-97
63
115
63
32
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4986
SELECT + CAST( NULL AS SIGNED ) + + MAX( - - CAST( - 86 AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( - - CAST ( - 86 AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT - - ( + CAST( - col1 AS SIGNED ) ) + - + 86 FROM tab0 AS cor0
----
-107
-167
-87

skipif mysql # not compatible
query I rowsort label-4987
SELECT - - ( + CAST ( - col1 AS INTEGER ) ) + - + 86 FROM tab0 AS cor0
----
-107
-167
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4988
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 47 - - 95 FROM tab1
----
142
142
142

query I rowsort
SELECT ( + col1 ) - + 20 AS col0 FROM tab2
----
31
47
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4991
SELECT DISTINCT + col2 DIV + - 38 AS col0, 64 * - CAST( - - 99 AS SIGNED ) FROM tab1
----
-1
-6336
-2
-6336

skipif mysql # not compatible
query II rowsort label-4991
SELECT DISTINCT + col2 / + - 38 AS col0, 64 * - CAST ( - - 99 AS INTEGER ) FROM tab1
----
-1
-6336
-2
-6336

query I rowsort
SELECT + 25 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - - 35 + - + col1 AS col2 FROM tab1 cor0 WHERE NOT - 47 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4994
SELECT ALL 33 col2, CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4994
SELECT ALL 33 col2, CAST ( NULL AS REAL ) FROM tab2 cor0
----
33
NULL
33
NULL
33
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4995
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col2 + 43 + + 70 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4995
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col2 + 43 + + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT COUNT( + 42 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4996
SELECT COUNT ( + 42 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT col2 * - 35, 79 + 71 AS col2 FROM tab1
----
-2065
150
-2380
150
-3360
150

query I rowsort
SELECT + 39 * + col1 AS col0 FROM tab2
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT + MAX( + + 78 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
78

skipif mysql # not compatible
query I rowsort label-4999
SELECT + MAX ( + + 78 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
78

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 61 col2 FROM tab0 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( + 35 ) ) col0 FROM tab0 AS cor0
----
-35

query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab2 AS cor0 WHERE + col0 - + col0 IS NULL
----

query I rowsort
SELECT 19 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5005
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 98 + - - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5005
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 98 + - - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 9 + + col0 - - col1 * - col0 * - 33 + + col2 * + col2 FROM tab0 cor0
----
13090
42310
60469

query II rowsort
SELECT DISTINCT + - 83 AS col2, - col1 AS col0 FROM tab1 cor0
----
-83
-14
-83
-47
-83
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 85 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 2 + + + col0 NOT BETWEEN NULL AND - col0 / + - col1
----

query I rowsort
SELECT - col1 + + - 36 FROM tab0 AS cor0
----
-117
-37
-57

query I rowsort
SELECT DISTINCT - 61 * - col0 + col1 FROM tab0 AS cor0
----
5328
5918
996

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL ) >= NULL )
----

query II rowsort
SELECT - - col1 * - + col1 + + col2 AS col1, 77 AS col0 FROM tab2 AS cor0
----
-2578
77
-4431
77
-5889
77

query I rowsort
SELECT col0 * + ( - ( + 88 ) ) AS col0 FROM tab2
----
-4048
-5632
-6600

query I rowsort
SELECT ALL - 74 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT - COUNT( - ( + ( col2 ) ) ) * - + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5016
SELECT - COUNT ( - ( + ( col2 ) ) ) * - + COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 / + 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 62 * - 53 FROM tab1
----
-3286
-3286
-3286

query II rowsort
SELECT ALL - col0 * col2 AS col1, - col1 AS col1 FROM tab0
----
-705
-81
-870
-21
-9603
-1

query III rowsort
SELECT * FROM tab2 WHERE - 37 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT + + col0 + - + 28 + - col2 * - col1 AS col1 FROM tab2 cor0
----
1191
3116
3933

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5023
SELECT - - CAST( NULL AS SIGNED ) + + SUM( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5023
SELECT - - CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT - col2 * + col1 + - CAST( 39 AS SIGNED ) AS col2 FROM tab2
----
-1212
-3119
-3925

skipif mysql # not compatible
query I rowsort label-5024
SELECT - col2 * + col1 + - CAST ( 39 AS INTEGER ) AS col2 FROM tab2
----
-1212
-3119
-3925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5025
SELECT DISTINCT - 52 DIV COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5025
SELECT DISTINCT - 52 / COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 99 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT + + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5027
SELECT + + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + + 79 AS col0 FROM tab2 AS cor0
----
79

query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 * + 37 AS col1 FROM tab0 AS cor0
----
-3222
-8346
-9446

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col0 col2 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query I rowsort
SELECT + ( + 50 ) AS col2 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT ALL - + col2 DIV - 13 FROM tab1 cor0
----
4
5
7

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - + col2 / - 13 FROM tab1 cor0
----
4
5
7

query II rowsort
SELECT 44 AS col2, col0 AS col1 FROM tab0
----
44
15
44
87
44
97

query I rowsort
SELECT DISTINCT - 89 * + 87 AS col1 FROM tab1
----
-7743

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 0 + - col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT DISTINCT 75 DIV + 79 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT 75 / + 79 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT MAX( ALL 75 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT MAX ( ALL 75 ) AS col1 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT - MAX( - 1 ) col2 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5040
SELECT DISTINCT - MAX ( - 1 ) col2 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT + ( COUNT( + 81 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5041
SELECT + ( COUNT ( + 81 ) ) FROM tab1
----
3

query I rowsort
SELECT col2 - - + 17 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
113
76
85

query II rowsort
SELECT DISTINCT col2 AS col0, - 78 FROM tab0
----
10
-78
47
-78
99
-78

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT ALL - CAST( NULL AS SIGNED ) col2, + 29 col2 FROM tab1 AS cor0
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5045
SELECT ALL - CAST ( NULL AS INTEGER ) col2, + 29 col2 FROM tab1 AS cor0
----
NULL
29
NULL
29
NULL
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col2 AS col1 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT DISTINCT col1 * col1 + 0 * - col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - col1 + - + 30 AS col2 FROM tab1 AS cor0
----
-35
-44
-77

query I rowsort
SELECT DISTINCT - + 75 + col0 AS col2 FROM tab0 AS cor0
----
-60
12
22

query I rowsort
SELECT col2 / - 93 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 + + 35 FROM tab2 AS cor0
----
58
75
93

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( + col0 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL - col2 + - col2 FROM tab2 WHERE NOT + - col1 - - 89 * col1 BETWEEN - + col1 * - 68 AND col2 + col0 * CAST( NULL AS SIGNED ) * + ( - + ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - col2 + - col2 FROM tab2 WHERE NOT + - col1 - - 89 * col1 BETWEEN - + col1 * - 68 AND col2 + col0 * CAST ( NULL AS INTEGER ) * + ( - + ( + col2 ) )
----

query I rowsort
SELECT DISTINCT + 63 * + ( + col2 ) FROM tab2
----
1449
2520
3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5055
SELECT - AVG ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2, tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 67 * - 62 / + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5057
SELECT 42 + COUNT( ALL - col0 ) - CAST( COUNT( + col1 ) AS SIGNED ) + 1 col0 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5057
SELECT 42 + COUNT ( ALL - col0 ) - CAST ( COUNT ( + col1 ) AS INTEGER ) + 1 col0 FROM tab0
----
43

query I rowsort
SELECT + 12 + + col2 AS col1 FROM tab2
----
35
52
70

query II rowsort
SELECT DISTINCT + ( ( + + col1 ) ), 95 + + - col1 AS col0 FROM tab0
----
1
94
21
74
81
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT 12 DIV + col0 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5060
SELECT 12 / + col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5061
SELECT ALL + ( 13 ) - + col1 DIV + col1 col1, col0 + - col2 * - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
12
NULL
12
NULL
12
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5061
SELECT ALL + ( 13 ) - + col1 / + col1 col1, col0 + - col2 * - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
12
NULL
12
NULL
12
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 + + 86 IS NULL
----

query I rowsort
SELECT DISTINCT 10 + 60 * 90 AS col0 FROM tab0 WHERE - col0 + + col0 NOT IN ( + col0 * + col2 )
----
5410

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT ALL - col1 DIV - col2 + + 96 * 80 AS col2 FROM tab0
----
7680
7681
7682

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - col1 / - col2 + + 96 * 80 AS col2 FROM tab0
----
7680
7681
7682

query I rowsort
SELECT ALL + 72 + col1 * - col2 FROM tab2
----
-1101
-3008
-3814

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - SUM( ALL - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5067
SELECT - SUM ( ALL - col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT - 70 FROM tab2 WHERE + col2 BETWEEN - 13 * 22 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND ( + 28 )
----

query I rowsort
SELECT - 3 + - col1 * + 72 FROM tab1
----
-1011
-3387
-363

query I rowsort
SELECT + 93 + - col0 AS col2 FROM tab0
----
-4
6
78

query I rowsort
SELECT ALL + col0 * 74 FROM tab1 WHERE + col0 IS NOT NULL
----
3774
6290
6734

query I rowsort
SELECT 42 + col2 FROM tab1
----
101
110
138

query I rowsort
SELECT ( col2 ) + - 78 * 67 FROM tab2
----
-5168
-5186
-5203

query I rowsort
SELECT ALL - 93 * col0 FROM tab2 WHERE NOT ( - col0 + + col2 ) <> ( col2 )
----

query I rowsort
SELECT DISTINCT + col2 / - 6 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + ( ( - col2 ) ) ) AS col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT COUNT( - 6 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5080
SELECT COUNT ( - 6 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab2 WHERE col2 > ( NULL )
----

query I rowsort
SELECT DISTINCT 22 + - col1 AS col2 FROM tab1
----
-25
17
8

query I rowsort
SELECT 71 * + col2 FROM tab2 AS cor0
----
1633
2840
4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 70 col1 FROM tab1 AS cor0
----
4130
4760
6720

query I rowsort
SELECT ALL + col1 - + col2 FROM tab0 AS cor0 WHERE NOT NULL > ( 60 * 97 + 84 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 * + 51 + - col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT MAX( ( 33 ) ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT MAX ( ( 33 ) ) AS col0 FROM tab0
----
33

query I rowsort
SELECT - col2 + + 58 * + col2 AS col2 FROM tab0
----
2679
5643
570

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT ALL - MAX( DISTINCT - 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL - MAX ( DISTINCT - 83 ) FROM tab2
----
83

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE 62 * 98 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT col0 - col2 <= ( + ( - 36 ) * col1 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + 55 IN ( 9 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * 6 <> ( NULL )
----

query I rowsort
SELECT - 44 + col2 * - col0 FROM tab0 AS cor0
----
-749
-914
-9647

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 + col2 AND col2
----

query I rowsort
SELECT DISTINCT - 61 + ( + col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
364
4216
653

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * ( - col2 ) NOT BETWEEN col0 AND ( 31 * - 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL ( col1 ) + col1 * 35 FROM tab0 AS cor0
----
2916
36
756

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT + MIN( 87 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT + MIN ( 87 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT + COUNT( * ) * - ( + 58 ) AS col0 FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-5103
SELECT + COUNT ( * ) * - ( + 58 ) AS col0 FROM tab2
----
-174

query I rowsort
SELECT - col2 * 3 FROM tab0
----
-141
-297
-30

query I rowsort
SELECT DISTINCT + ( + 82 ) AS col0 FROM tab0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5106
SELECT ALL * FROM tab2 WHERE NOT + CAST( - col1 AS SIGNED ) * - col1 <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5106
SELECT ALL * FROM tab2 WHERE NOT + CAST ( - col1 AS INTEGER ) * - col1 <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab1 WHERE NOT - col2 / col2 > + col0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 42 BETWEEN + 17 AND NULL
----

query I rowsort
SELECT - col1 + 39 FROM tab0 WHERE ( NULL ) > 45 / - ( col1 )
----

query I rowsort
SELECT DISTINCT + - 88 AS col0 FROM tab0 cor0
----
-88

query I rowsort
SELECT DISTINCT - ( - 86 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT - ( + 47 ) * COUNT( * ) AS col2 FROM tab0 cor0 WHERE ( ( col2 ) ) IN ( 63 )
----
0

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT - ( + 47 ) * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE ( ( col2 ) ) IN ( 63 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 87 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT + + CAST( - + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5114
SELECT + + CAST ( - + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT + CAST( + SUM( + 17 ) AS SIGNED ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5115
SELECT + CAST ( + SUM ( + 17 ) AS INTEGER ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT ALL col1 AS col2, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - 81 * COUNT( * ) + + 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-638

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 81 * COUNT ( * ) + + 91 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-638

query I rowsort
SELECT - 63 * + 4 AS col2 FROM tab2
----
-252
-252
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT + + COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5119
SELECT + + COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT + + col2 * + ( CAST( + 12 AS SIGNED ) ) FROM tab0 AS cor0
----
1188
120
564

skipif mysql # not compatible
query I rowsort label-5120
SELECT + + col2 * + ( CAST ( + 12 AS INTEGER ) ) FROM tab0 AS cor0
----
1188
120
564

query I rowsort
SELECT DISTINCT + 27 * + col1 * + col2 * 81 AS col1 FROM tab0 AS cor0
----
216513
459270
8325909

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5122
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + + 85 NOT BETWEEN col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5122
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + + 85 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - + col0 * + - col1 + + 12 FROM tab2 AS cor0
----
2358
4940
5037

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT + 53 * col2 DIV - - col2 FROM tab1 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-5124
SELECT + 53 * col2 / - - col2 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5125
SELECT DISTINCT - - col0 * - CAST( + + 79 AS SIGNED ) FROM tab0 AS cor0
----
-1185
-6873
-7663

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - - col0 * - CAST ( + + 79 AS INTEGER ) FROM tab0 AS cor0
----
-1185
-6873
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT DISTINCT + COUNT( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5127
SELECT - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 col1 FROM tab2 cor0
----
18
18
18

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 - + col1 + col1 ) = ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT ALL + MIN( + 63 ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL + MIN ( + 63 ) AS col1 FROM tab0
----
63

query I rowsort
SELECT DISTINCT - col1 + col1 * - + col0 FROM tab0
----
-1296
-1848
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT + CAST( col2 AS SIGNED ) * - col1 FROM tab2 WHERE NOT + - col2 > ( - ( CAST( col2 AS SIGNED ) ) * + col2 + - CAST( + 1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5134
SELECT + CAST ( col2 AS INTEGER ) * - col1 FROM tab2 WHERE NOT + - col2 > ( - ( CAST ( col2 AS INTEGER ) ) * + col2 + - CAST ( + 1 AS INTEGER ) )
----

query I rowsort
SELECT ALL + 12 + - ( col0 ) AS col1 FROM tab0
----
-3
-75
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col0 ) * col2 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 27 + 15 + + + 86 * - col1 AS col2 FROM tab0
----
-1764
-44
-6924

query II rowsort
SELECT ALL col2 + - - col2, + col2 FROM tab2
----
116
58
46
23
80
40

query I rowsort
SELECT - 90 + - col2 + col0 * - + col1 + col2 AS col0 FROM tab1 AS cor0
----
-4367
-515
-804

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - 94 + - + ( - SUM( - col2 ) ) col1 FROM tab2 AS cor0
----
-215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5140
SELECT - 94 + - + ( - SUM ( - col2 ) ) col1 FROM tab2 AS cor0
----
-215

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT - MAX( - col2 ) + 62 * - 32 FROM tab1 cor0 WHERE - 40 IS NOT NULL
----
-1925

skipif mysql # not compatible
query I rowsort label-5141
SELECT - MAX ( - col2 ) + 62 * - 32 FROM tab1 cor0 WHERE - 40 IS NOT NULL
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT MIN( col2 ) col2 FROM tab0 cor0 WHERE ( - ( + ( - - 38 ) ) ) IS NOT NULL
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT MIN ( col2 ) col2 FROM tab0 cor0 WHERE ( - ( + ( - - 38 ) ) ) IS NOT NULL
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT - + CAST( NULL AS SIGNED ) + - COUNT( * ) + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + - 36 - - col1 + + col1 AS col1 FROM tab1
----
-111
-33
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5145
SELECT COUNT( * ) AS col2, - 39 AS col2 FROM tab0
----
3
-39

skipif mysql # not compatible
query II rowsort label-5145
SELECT COUNT ( * ) AS col2, - 39 AS col2 FROM tab0
----
3
-39

query I rowsort
SELECT + + col0 - - col2 * - - 46 * 91 + + 73 FROM tab0 AS cor0
----
196830
414584
42020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 22 + col2 col1 FROM tab0 AS cor0 WHERE - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT ALL + - COUNT( * ) DIV - - 28 + 82 AS col0 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + - COUNT ( * ) / - - 28 + 82 AS col0 FROM tab2 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - + 4 AS col1, col0 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
42
46
60
64
71
75

query II rowsort
SELECT DISTINCT col0 AS col1, 66 - - 92 AS col0 FROM tab2
----
46
158
64
158
75
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL - 11 * + COUNT( * ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - 11 * + COUNT ( * ) FROM tab1
----
-33

query I rowsort
SELECT 6 * - col2 + - col2 AS col2 FROM tab1
----
-413
-476
-672

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5154
SELECT + 64 DIV 22 * MIN( ALL + 88 ) + COUNT( * ) DIV - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
175

skipif mysql # not compatible
query I rowsort label-5154
SELECT + 64 / 22 * MIN ( ALL + 88 ) + COUNT ( * ) / - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
175

query I rowsort
SELECT 42 * + col2 FROM tab2
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT COUNT( ALL col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5156
SELECT COUNT ( ALL col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 54 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5158
SELECT + 53 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT + 53 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT CAST( NULL AS SIGNED ) / - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col2
----

skipif mysql # not compatible
query I rowsort label-5160
SELECT CAST ( NULL AS INTEGER ) / - ( - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + col1 + - 79 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 46 + + col0 + - + col1 * - ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + col1 + - 43 + - - 18 FROM tab0 AS cor0
----
1190
1802
72

query I rowsort
SELECT + col1 + - col0 + - 70 FROM tab2 AS cor0
----
-57
-65
-78

query II rowsort
SELECT DISTINCT - 82 AS col0, - col2 * col1 FROM tab1
----
-82
-1344
-82
-295
-82
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5166
SELECT ( + MIN( DISTINCT - col1 ) ) FROM tab2 WHERE NOT 55 BETWEEN col2 + - col0 + col2 * - col0 + - CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ( + MIN ( DISTINCT - col1 ) ) FROM tab2 WHERE NOT 55 BETWEEN col2 + - col0 + col2 * - col0 + - CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query II rowsort
SELECT col2 AS col0, ( - col1 ) FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL 96 * + 51 + - + col1 * - col1 + + + 60 AS col2 FROM tab1
----
4981
5152
7165

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT COUNT( * ) + - 85 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT COUNT ( * ) + - 85 FROM tab0 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5170
SELECT DISTINCT + col0 FROM tab0 WHERE - CAST( + - col1 AS SIGNED ) - + col2 / col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT + col0 FROM tab0 WHERE - CAST ( + - col1 AS INTEGER ) - + col2 / col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT - 54 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT 8 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + 83 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT ALL + col1 + + + col0 + + CAST( NULL AS SIGNED ) + col1 * + - 80 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + col1 + + + col0 + + CAST ( NULL AS INTEGER ) + col1 * + - 80 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT 0 DIV + 95 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5175
SELECT 0 / + 95 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 + - 64 AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-145
-65
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT DISTINCT 13 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT 13 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT + - 5 - + + COUNT( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + - 5 - + + COUNT ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT DISTINCT + col0 DIV + col1 - col1 AS col0 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + col0 / + col1 - col1 AS col0 FROM tab2 AS cor0
----
-51
-66
-77

query I rowsort
SELECT + col0 - - 5 * - - col0 * 4 FROM tab2 AS cor0
----
1344
1575
966

query I rowsort
SELECT col1 - + 60 AS col1 FROM tab0
----
-39
-59
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 col0, 81 FROM tab2 WHERE NOT + + col0 * + - col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 * - 53 * - + 83 / col2 * - - col2 + + 87 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT + - SUM( - + 75 ) FROM tab1 WHERE - col2 / 75 * col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + - SUM ( - + 75 ) FROM tab1 WHERE - col2 / 75 * col1 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 BETWEEN + - 79 AND + + 49 * - 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT + MIN( + col1 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5186
SELECT + MIN ( + col1 ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL = ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - SUM( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5188
SELECT - SUM ( DISTINCT - col0 ) col0 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5189
SELECT col1 col1, + col2 * + CAST( NULL AS SIGNED ) / - ( 92 ) 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-5189
SELECT col1 col1, + col2 * + CAST ( NULL AS INTEGER ) / - ( 92 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - - col2 - + col2 NOT IN ( + - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col1 AS col2, 72 AS col2 FROM tab2
----
51
72
67
72
77
72

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT col0 + + + CAST( NULL AS SIGNED ) + ( - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT col0 + + + CAST ( NULL AS INTEGER ) + ( - col1 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT DISTINCT + - COUNT( ALL 55 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + - COUNT ( ALL 55 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 / - ( + - 46 ) FROM tab0 cor0 WHERE NOT col0 NOT IN ( + - 14 + - 23 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5197
SELECT DISTINCT - 61 AS col1, CAST( NULL AS SIGNED ) + - 25 * + col1 AS col0 FROM tab1 AS cor0
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-5197
SELECT DISTINCT - 61 AS col1, CAST ( NULL AS INTEGER ) + - 25 * + col1 AS col0 FROM tab1 AS cor0
----
-61
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT - - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + + col0 AS col1, - col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT col1 * + - 17 + col0 AS col2 FROM tab1 cor0
----
-187
-708
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + 37 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT - - MIN( 23 ) FROM tab2 AS cor0 WHERE NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - - MIN ( 23 ) FROM tab2 AS cor0 WHERE NULL = col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5203
SELECT 63 AS col1, + col0 + CAST( NULL AS SIGNED ) * col0 * col2 * + + col2 FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

skipif mysql # not compatible
query II rowsort label-5203
SELECT 63 AS col1, + col0 + CAST ( NULL AS INTEGER ) * col0 * col2 * + + col2 FROM tab2 AS cor0
----
63
NULL
63
NULL
63
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5204
SELECT DISTINCT - col2 AS col1, - 31 DIV col2 * + + ( col1 ) AS col0 FROM tab0 AS cor0
----
-10
-63
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-5204
SELECT DISTINCT - col2 AS col1, - 31 / col2 * + + ( col1 ) AS col0 FROM tab0 AS cor0
----
-10
-63
-47
0
-99
0

query III rowsort
SELECT * FROM tab0 WHERE + + 49 = + col2 + + col1
----

query II rowsort
SELECT ALL col2 * - 6, 82 * col0 AS col0 FROM tab1
----
-354
6970
-408
7462
-576
4182

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT + 22 + - + COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5207
SELECT + 22 + - + COUNT ( * ) FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE - + 40 + + col2 IN ( col1 * + - col2, 93 * + col1 / 80 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5211
SELECT AVG ( + CAST( NULL AS SIGNED ) ) + + AVG ( - - 56 ) * 59 * + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) + + AVG ( - - 56 ) * 59 * + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col0 + col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + COUNT( * ) + 64 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5214
SELECT + COUNT ( * ) + 64 FROM tab1 AS cor0
----
67

query I rowsort
SELECT ALL + col1 * + 38 - - col0 + - + 92 FROM tab1 cor0
----
1785
183
491

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT - + 86 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - + 86 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-258

query I rowsort
SELECT ALL - col1 * - - col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + 76 ) > + + col1 * + 2 * 47 * - ( - col2 ) + - col1 + - col1 + + - ( + ( - - ( + col0 ) ) ) + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5219
SELECT ALL - col0 * + - 21 DIV col1 DIV 82 AS col2, col0 + - + col1 + + - ( + 8 ) AS col1 FROM tab2
----
0
-13
0
-21
0
0

skipif mysql # not compatible
query II rowsort label-5219
SELECT ALL - col0 * + - 21 / col1 / 82 AS col2, col0 + - + col1 + + - ( + 8 ) AS col1 FROM tab2
----
0
-13
0
-21
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - + col1 IS NOT NULL
----

query I rowsort
SELECT - 93 * + + col0 * - 19 FROM tab1
----
150195
160797
90117

query I rowsort
SELECT DISTINCT - 64 * - + col2 + col0 FROM tab0 AS cor0
----
3023
6433
727

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col1 * + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT + col0 DIV 18 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-5224
SELECT + col0 / 18 FROM tab1
----
2
4
5

query I rowsort
SELECT col1 * 56 AS col2 FROM tab0
----
1176
4536
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT + + ( - - CAST( NULL AS SIGNED ) ) * + - CAST( NULL AS SIGNED ) * + CAST( col0 AS SIGNED ) AS col1 FROM tab0 WHERE NOT 68 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5226
SELECT + + ( - - CAST ( NULL AS INTEGER ) ) * + - CAST ( NULL AS INTEGER ) * + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 WHERE NOT 68 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - + col0
----

query II rowsort
SELECT ALL - + col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT - - MAX( DISTINCT 7 ) FROM tab0 AS cor0 WHERE col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT - - MAX ( DISTINCT 7 ) FROM tab0 AS cor0 WHERE col2 >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5230
SELECT DISTINCT col1 DIV - + ( + CAST( - + 86 AS SIGNED ) ) + - 12 + - col2 * + - 57 FROM tab2 AS cor0
----
1299
2268
3294

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT col1 / - + ( + CAST ( - + 86 AS INTEGER ) ) + - 12 + - col2 * + - 57 FROM tab2 AS cor0
----
1299
2268
3294

query I rowsort
SELECT + 36 + 2 FROM tab1 AS cor0 WHERE 27 * col2 <> ( + ( 33 ) + + - col1 )
----
38
38
38

query I rowsort
SELECT - + col2 + - 65 * col1 FROM tab0 cor0
----
-1375
-164
-5312

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab1 AS cor0 WHERE NOT + col1 * 32 * 96 * - 61 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 17 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT MIN( + 66 ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5235
SELECT MIN ( + 66 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT DISTINCT 80 + + col2 AS col2 FROM tab0
----
127
179
90

query I rowsort
SELECT ( - + col2 ) * - - 9 FROM tab2
----
-207
-360
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT - 12 * - COUNT( * ) col1 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT - 12 * - COUNT ( * ) col1 FROM tab2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT + COUNT( * ) DIV - MAX( ALL - - col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT + COUNT ( * ) / - MAX ( ALL - - col0 ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 43 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 43 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 + - + 61 FROM tab1
----
-2
35
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT + ( + COUNT( col1 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5242
SELECT + ( + COUNT ( col1 ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 60 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - col0 <= col2 + + col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + 35 + col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
110
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 BETWEEN ( col2 ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 BETWEEN ( col2 ) AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT 61 * - 48 - COUNT( * ) col0 FROM tab0 AS cor0
----
-2931

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5248
SELECT 61 * - 48 - COUNT ( * ) col0 FROM tab0 AS cor0
----
-2931

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 15 NOT BETWEEN + 98 * - - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 78 + - ( + + 98 ) AS col2 FROM tab1 AS cor0
----
-176
-176
-176

query I rowsort
SELECT - col2 + + 63 AS col0 FROM tab1 AS cor0
----
-33
-5
4

onlyif mysql # DIV for integer division: 
query II rowsort label-5253
SELECT DISTINCT - - col1 DIV - 57 col0, col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1
2560
-1
4350
0
1058

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5253
SELECT DISTINCT - - col1 / - 57 col0, col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1
2560
-1
4350
0
1058

query I rowsort
SELECT DISTINCT + 87 * - 11 + col0 AS col0 FROM tab1 cor0
----
-866
-872
-906

query I rowsort
SELECT + col2 * + 58 AS col1 FROM tab1 AS cor0
----
3422
3944
5568

query I rowsort
SELECT + - 83 AS col1 FROM tab1 AS cor0 WHERE NULL <> + col2 AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL 0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 - - col2 + col0 AND - col0 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab1 cor0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT DISTINCT ( + ( col0 ) ) DIV - col1 AS col2 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT ( + ( col0 ) ) / - col1 AS col2 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT CAST( col0 AS SIGNED ) * - 1 col2 FROM tab1 AS cor0 WHERE NOT + 59 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5261
SELECT CAST ( col0 AS INTEGER ) * - 1 col2 FROM tab1 AS cor0 WHERE NOT + 59 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT - COUNT( * ) * + 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-693

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT - COUNT ( * ) * + 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-693

query II rowsort
SELECT DISTINCT - 87 AS col0, ( + + 33 ) FROM tab1 WHERE - col1 IS NOT NULL
----
-87
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT + CAST( - + 43 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-5264
SELECT + CAST ( - + 43 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - + col1 * + col1 * + - ( + - ( + 41 ) ) FROM tab0 AS cor0
----
-18081
-269001
-41

query I rowsort
SELECT - 45 * col2 AS col0 FROM tab2 AS cor0
----
-1035
-1800
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + COUNT( ALL - col2 ) * + 24 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5267
SELECT + COUNT ( ALL - col2 ) * + 24 AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT - + col1 + 91 AS col0 FROM tab2 AS cor0
----
14
24
40

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT ALL + col1 DIV + + col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL + col1 / + + col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 col0 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + COUNT( * ) * + 81 * - MIN( col1 ) + - + COUNT( * ) * - 97 - - COUNT( * ) FROM tab2 cor0
----
-12099

skipif mysql # not compatible
query I rowsort label-5271
SELECT + COUNT ( * ) * + 81 * - MIN ( col1 ) + - + COUNT ( * ) * - 97 - - COUNT ( * ) FROM tab2 cor0
----
-12099

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( NOT col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT + col2 FROM tab1 WHERE + CAST( - col0 AS SIGNED ) + col0 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5273
SELECT + col2 FROM tab1 WHERE + CAST ( - col0 AS INTEGER ) + col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 + - + 82 - + 19 * - + col0 AS col1 FROM tab2
----
1094
1285
769

query I rowsort
SELECT ( col2 ) * - + col0 + 5 * - - 78 AS col1 FROM tab2
----
-2170
-3960
-668

query I rowsort
SELECT ( - col0 ) + - + 28 FROM tab1
----
-113
-119
-79

query I rowsort
SELECT + 15 + - ( + - 24 ) FROM tab2
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 76 + + - COUNT( * ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-5278
SELECT 76 + + - COUNT ( * ) AS col2 FROM tab1
----
73

query I rowsort
SELECT DISTINCT + col2 * + 9 + - col2 FROM tab2 WHERE NOT - 80 < NULL
----

query I rowsort
SELECT - + 48 + + - 80 FROM tab0 cor0
----
-128
-128
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL - ( + CAST( - COUNT( * ) AS SIGNED ) ) + - 15 AS col1 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - ( + CAST ( - COUNT ( * ) AS INTEGER ) ) + - 15 AS col1 FROM tab0 AS cor0
----
-12

query II rowsort
SELECT 13 AS col1, 33 * 37 AS col1 FROM tab2 AS cor0
----
13
1221
13
1221
13
1221

query I rowsort
SELECT - col1 - - ( - col0 ) + + col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - - 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
40

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

query I rowsort
SELECT - 40 * + + 27 FROM tab2 AS cor0
----
-1080
-1080
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5287
SELECT DISTINCT - col0 AS col2, + 31 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-5287
SELECT DISTINCT - col0 AS col2, + 31 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 7 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 79 AS col1, col1 AS col0 FROM tab1 cor0
----
79
14
79
47
79
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5290
SELECT DISTINCT col0, - CAST( NULL AS SIGNED ) * - col1 * + ( - col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5290
SELECT DISTINCT col0, - CAST ( NULL AS INTEGER ) * - col1 * + ( - col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > - col1
----

query II rowsort
SELECT DISTINCT ( + 60 ) AS col2, - col2 + col2 FROM tab1
----
60
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 37 > + col0 - - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 1 * + 28 * - col2 AS col1 FROM tab0
----
-1316
-2772
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT DISTINCT 93 + - 53 + MAX( ( - col1 ) ) col0 FROM tab1 WHERE - + ( col2 ) <= - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5295
SELECT DISTINCT 93 + - 53 + MAX ( ( - col1 ) ) col0 FROM tab1 WHERE - + ( col2 ) <= - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT col0 * + - 35 FROM tab2
----
-1610
-2240
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT MIN( ALL - + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT MIN ( ALL - + ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL + 70 + 25, col0 FROM tab0 AS cor0
----
95
15
95
87
95
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 99 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT + AVG ( - + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + AVG ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 37
----

query I rowsort
SELECT DISTINCT + col2 + - + 31 AS col2 FROM tab1
----
28
37
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT ALL - 6 + + - col1 + - - CAST( - 64 AS SIGNED ) FROM tab2 AS cor0
----
-121
-137
-147

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - 6 + + - col1 + - - CAST ( - 64 AS INTEGER ) FROM tab2 AS cor0
----
-121
-137
-147

query I rowsort
SELECT - 87 * + 77 + + - 76 FROM tab1 AS cor0
----
-6775
-6775
-6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT ALL CAST( NULL AS SIGNED ) + + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL CAST ( NULL AS INTEGER ) + + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - col1 * - 50 FROM tab1 AS cor0
----
165
2259
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 79 col2, col2 FROM tab1 AS cor0
----
-79
59
-79
68
-79
96

query II rowsort
SELECT + col0, + col1 * + 65 FROM tab0 AS cor0
----
15
5265
87
1365
97
65

query I rowsort
SELECT + col0 * + 28 FROM tab2
----
1288
1792
2100

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 NOT BETWEEN NULL AND + + 64
----

query I rowsort
SELECT DISTINCT + col1 * + col2 + + + col1 AS col1 FROM tab1
----
1358
300
3243

query I rowsort
SELECT + - col2 + - - 71 FROM tab1 AS cor0
----
-25
12
3

query I rowsort
SELECT + ( + ( - + 18 ) ) FROM tab0 cor0
----
-18
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col0 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT ALL col2 DIV 54 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL col2 / 54 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND - + 56
----

query I rowsort
SELECT 7 * + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-18207
-31423
-41503

query I rowsort
SELECT ALL - + 68 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-68
-68
-68

query I rowsort
SELECT ALL 75 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
75
75
75

query II rowsort
SELECT + col0 AS col1, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT + col1 * + + 41 AS col0 FROM tab1 AS cor0
----
1927
205
574

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL MAX( 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL MAX ( 49 ) FROM tab1
----
49

query I rowsort
SELECT + 79 FROM tab2 WHERE NOT - - 82 <= col2
----
79
79
79

query II rowsort
SELECT DISTINCT col1 AS col0, - ( col1 ) AS col2 FROM tab0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col0 ) BETWEEN 98 AND + 29 - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 4 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT ALL col0 / + - col1 + + ( - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL col0 / + - col1 + + ( - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT + 40 + - - COUNT( * ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5329
SELECT + 40 + - - COUNT ( * ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT + ( 89 ) AS col1 FROM tab1 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5332
SELECT ALL - + CAST( NULL AS DECIMAL ) * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL - + CAST ( NULL AS REAL ) * + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + col1 ) * - 5 * col1 FROM tab1
----
11045
125
980

query I rowsort
SELECT 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL + 64 AS col2 FROM tab1 cor0 WHERE NULL NOT IN ( col1, 71, col0, col2, + 24 * 17, - 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT - + SUM( ALL - 11 ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5336
SELECT - + SUM ( ALL - 11 ) AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT DISTINCT - col0 * + - 29 + + - col0 DIV + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
1382
2405
2570

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - col0 * + - 29 + + - col0 / + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
1382
2405
2570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL col0 + - - col0 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT 48 - 62 + - 86 FROM tab1 cor0
----
-100
-100
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT - + COUNT( * ) - 46 AS col0 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5341
SELECT - + COUNT ( * ) - 46 AS col0 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT - - col0 * 80 + - col0 + - col0 AS col1 FROM tab0 cor0
----
1170
6786
7566

query II rowsort
SELECT ALL + + 16 - + 90, col0 + col2 AS col1 FROM tab2 AS cor0
----
-74
104
-74
133
-74
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * col1 col1 FROM tab2 AS cor0
----
1020
1340
1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 - + col1 + + 59 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 - + col1 + + 59 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - - col2 * 59 + + col0 AS col0 FROM tab2 AS cor0
----
-198401
-31165
-94336

query I rowsort
SELECT ALL - + col1 * + - col2 + - - col2 FROM tab2 AS cor0
----
1196
3120
3944

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 3 + - 26 >= NULL
----

query II rowsort
SELECT DISTINCT + col0 * - - col0 AS col1, + col1 * - col1 FROM tab1 cor0
----
2601
-196
7225
-25
8281
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + ( + + COUNT( * ) ) + 44 AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-5350
SELECT + ( + + COUNT ( * ) ) + 44 AS col1 FROM tab0
----
47

query I rowsort
SELECT + col1 * + 95 FROM tab1
----
1330
4465
475

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT col2 DIV - 78 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT col2 / - 78 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - + 11 BETWEEN NULL AND + 71
----

query I rowsort
SELECT - 16 * + ( + - col2 ) FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT COUNT( * ) col0 FROM tab0 WHERE - - col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5355
SELECT COUNT ( * ) col0 FROM tab0 WHERE - - col0 IS NULL
----
0

query II rowsort
SELECT DISTINCT 87 AS col2, - col0 * + col0 AS col1 FROM tab1
----
87
-2601
87
-7225
87
-8281

query I rowsort
SELECT ALL + 28 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT - + MAX( - 82 ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5358
SELECT - + MAX ( - 82 ) FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + COUNT( * ) * 84 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-5359
SELECT + COUNT ( * ) * 84 FROM tab1 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT DISTINCT + MIN( DISTINCT + 56 ) FROM tab0 cor0
----
56

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT + MIN ( DISTINCT + 56 ) FROM tab0 cor0
----
56

query I rowsort
SELECT 11 * - col2 FROM tab0 AS cor0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT MIN( + 98 ) col2 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT MIN ( + 98 ) col2 FROM tab0 AS cor0
----
98

query I rowsort
SELECT - + col0 - + col0 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL - + col0 + col2 FROM tab0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col0 ) col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 96 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT COUNT( DISTINCT - + ( 59 ) ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5367
SELECT COUNT ( DISTINCT - + ( 59 ) ) AS col2 FROM tab1
----
1

query I rowsort
SELECT ALL + 70 + - + 92 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - 64 AS col2 FROM tab0 cor0
----
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT - col0 * + col2 DIV - col2 + col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5371
SELECT - col0 * + col2 / - col2 + col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + MIN( ALL - 86 ) AS col2 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5372
SELECT + MIN ( ALL - 86 ) AS col2 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT ( col0 ) + 34 AS col0 FROM tab2
----
109
80
98

query I rowsort
SELECT col1 * + 71 + - col0 FROM tab0
----
-26
1404
5736

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT 43 + COUNT( * ) AS col0 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-5375
SELECT 43 + COUNT ( * ) AS col0 FROM tab0
----
46

query I rowsort
SELECT ALL col0 + 5 + - col1 FROM tab0 cor0
----
-61
101
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT + CAST( ( + + col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) > + + 92 + col1
----

skipif mysql # not compatible
query I rowsort label-5377
SELECT + CAST ( ( + + col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) > + + 92 + col1
----

query I rowsort
SELECT + ( - col2 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT DISTINCT + - 92 - + ( - - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-4369
-517
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 97 * col0 col1 FROM tab0 AS cor0
----
-1455
-8439
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 29 * + col2 col0, 41 FROM tab2 AS cor0
----
-1160
41
-1682
41
-667
41

query I rowsort
SELECT ALL + 69 - + - ( + - 17 ) AS col0 FROM tab2
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5383
SELECT - 26 - + 54 DIV - + col0 FROM tab1
----
-25
-26
-26

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 26 - + 54 / - + col0 FROM tab1
----
-25
-26
-26

query II rowsort
SELECT + col1 - + col1 AS col2, 79 FROM tab1
----
0
79
0
79
0
79

query II rowsort
SELECT DISTINCT + 76 - - - 99 AS col1, col2 * - 31 - + col1 FROM tab1
----
-23
-1834
-23
-2155
-23
-2990

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + + col1 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT ALL - 43 DIV + - ( COUNT( * ) ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL - 43 / + - ( COUNT ( * ) ) FROM tab0
----
14

query I rowsort
SELECT ALL + 57 * - col0 - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-5400
-5530
-7416

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5389
SELECT COUNT( * ) DIV + + ( + ( - 64 ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT COUNT ( * ) / + + ( + ( - 64 ) ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT DISTINCT - 99 * MAX( DISTINCT - + col0 ) FROM tab2 AS cor0
----
4554

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT - 99 * MAX ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT MIN( + 70 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT MIN ( + 70 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5392
SELECT - 61 + - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-5392
SELECT - 61 + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

query II rowsort
SELECT DISTINCT col2, - 14 AS col0 FROM tab1
----
59
-14
68
-14
96
-14

query I rowsort
SELECT - 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query II rowsort
SELECT DISTINCT + - 70, ( col0 ) FROM tab2 AS cor0
----
-70
46
-70
64
-70
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5397
SELECT col0 DIV 43 col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT col0 / 43 col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT DISTINCT - - COUNT( * ) * + 62 + + + 75 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - - COUNT ( * ) * + 62 + + + 75 FROM tab0 AS cor0
----
261

query I rowsort
SELECT - 54 * + 58 FROM tab0 AS cor0
----
-3132
-3132
-3132

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT ALL - 24 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL - 24 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 84 * + col1 AS col2 FROM tab0 AS cor0
----
-1764
-6804
-84

query I rowsort
SELECT ALL - - 58 * - 99 + col2 - + + col0 + 49 FROM tab0 AS cor0
----
-5661
-5691
-5770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT ALL - MIN( - ( - 40 ) ) DIV + 55 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL - MIN ( - ( - 40 ) ) / + 55 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2 )
----
0

query I rowsort
SELECT - 10 * - - 92 AS col1 FROM tab1 AS cor0
----
-920
-920
-920

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT ALL - ( + + COUNT( 18 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - ( + + COUNT ( 18 ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT + col2 + + 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-5408
SELECT + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT - COUNT( * ) * - 27 + - - COUNT( * ) AS col1 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-5409
SELECT - COUNT ( * ) * - 27 + - - COUNT ( * ) AS col1 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5411
SELECT ALL * FROM tab1 WHERE CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5411
SELECT ALL * FROM tab1 WHERE CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT DISTINCT ( - col2 ) DIV 19 + + - col2 * - 79 AS col0 FROM tab1
----
4658
5369
7579

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT ( - col2 ) / 19 + + - col2 * - 79 AS col0 FROM tab1
----
4658
5369
7579

query II rowsort
SELECT ALL + 41 + + col0, 37 AS col0 FROM tab1
----
126
37
132
37
92
37

query I rowsort
SELECT DISTINCT - col0 + + + 32 + 16 AS col1 FROM tab0
----
-39
-49
33

query I rowsort
SELECT DISTINCT col1 * + col1 + - - col2 FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT 64 * + 16 * - ( - - 62 ) FROM tab2
----
-63488
-63488
-63488

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT + + ( + + COUNT( * ) ) - + 12 FROM tab1 WHERE - - 72 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5417
SELECT + + ( + + COUNT ( * ) ) - + 12 FROM tab1 WHERE - - 72 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ( - COUNT( + col2 ) ) * - + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5418
SELECT ( - COUNT ( + col2 ) ) * - + COUNT ( * ) AS col2 FROM tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + - 66 col0 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT + ( col2 ) + 33 AS col0 FROM tab1 AS cor0
----
101
129
92

query I rowsort
SELECT ALL + ( + - 28 ) FROM tab2
----
-28
-28
-28

query I rowsort
SELECT + col1 * - 56 AS col2 FROM tab0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT ALL ( - MIN( col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL ( - MIN ( col1 ) ) AS col1 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT + + col0 * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5425
SELECT + + col0 * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT + MIN( - - 24 ) FROM tab1 AS cor0 WHERE NOT 44 + col0 IS NULL
----
24

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + MIN ( - - 24 ) FROM tab1 AS cor0 WHERE NOT 44 + col0 IS NULL
----
24

query I rowsort
SELECT ALL - col0 * - + ( - 44 ) * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
112704
191475
46598

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT + 7 * + 67 * COUNT( * ) col0 FROM tab2 AS cor0
----
1407

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5428
SELECT DISTINCT + 7 * + 67 * COUNT ( * ) col0 FROM tab2 AS cor0
----
1407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col0 FROM tab2
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5430
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - col0 + 43 / col0 * - CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - col0 + 43 / col0 * - CAST ( NULL AS REAL ) IS NULL
----
0

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT NULL <> - col2 * - col2 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - + col1 + + + col1 * - col1 + - 94, - col0 + - + col2 col0 FROM tab1 cor0 WHERE NOT 64 <= 54
----
-1004
-147
-544
-144
-6580
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT ALL + SUM( + - col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL + SUM ( + - col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT DISTINCT + col2 DIV + - col1 FROM tab0 AS cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + col2 / + - col1 FROM tab0 AS cor0
----
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL + - MAX( ALL + - 26 ) col0 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5435
SELECT ALL + - MAX ( ALL + - 26 ) col0 FROM tab2 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5436
SELECT + ( + + CAST( NULL AS SIGNED ) ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT + ( + + CAST ( NULL AS INTEGER ) ) * + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL + MAX( DISTINCT - - 83 ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + MAX ( DISTINCT - - 83 ) AS col1 FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col1 FROM tab1 WHERE NULL = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT - col1 + + col1 / - col1 AS col1 FROM tab1 WHERE ( + - CAST( + - col0 AS SIGNED ) ) BETWEEN - - col2 * - col1 AND - col1
----

skipif mysql # not compatible
query I rowsort label-5439
SELECT - col1 + + col1 / - col1 AS col1 FROM tab1 WHERE ( + - CAST ( + - col0 AS INTEGER ) ) BETWEEN - - col2 * - col1 AND - col1
----

query II rowsort
SELECT col0, + 31 FROM tab1
----
51
31
85
31
91
31

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - col0 * - 56 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 + + + ( + col1 ) * col0 col2 FROM tab1
----
333
4185
622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5443
SELECT AVG ( ALL + CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN col2 * + - ( + col2 ) - col2 + 28 * col2 AND - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN col2 * + - ( + col2 ) - col2 + 28 * col2 AND - - col1
----
NULL

query I rowsort
SELECT col0 + - - 72 * 34 FROM tab1 AS cor0 WHERE col2 + + + col2 > + - col0 / - + col2
----
2499
2533
2539

query II rowsort
SELECT + col0 - col1 + - col2, col2 AS col2 FROM tab1 AS cor0
----
-24
68
-59
96
21
59

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + 26 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - + 13 FROM tab2 cor0
----
-13
-13
-13

query I rowsort
SELECT ALL - 43 * - + 83 + + + col0 FROM tab1 cor0
----
3620
3654
3660

query I rowsort
SELECT DISTINCT col1 * col2 - - col1 + col0 FROM tab0 AS cor0
----
197
318
3903

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT - 27 DIV col0 * - col1 + - col1 + + col2 AS col1 FROM tab2 cor0
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-5451
SELECT - 27 / col0 * - col1 + - col1 + + col2 AS col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - ( MAX( ALL + col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5452
SELECT - ( MAX ( ALL + col2 ) ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT + 0 * + col2 * - - col2 - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5454
SELECT DISTINCT + CAST( MAX( - 71 ) AS SIGNED ) AS col1, - 42 DIV + COUNT( * ) FROM tab1
----
-71
-14

skipif mysql # not compatible
query II rowsort label-5454
SELECT DISTINCT + CAST ( MAX ( - 71 ) AS INTEGER ) AS col1, - 42 / + COUNT ( * ) FROM tab1
----
-71
-14

query II rowsort
SELECT DISTINCT - col2, - 93 - + 56 + + - col1 - col1 AS col2 FROM tab0
----
-10
-191
-47
-311
-99
-151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT - CAST( 28 AS SIGNED ) AS col1 FROM tab0
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-5456
SELECT - CAST ( 28 AS INTEGER ) AS col1 FROM tab0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT DISTINCT - MAX( 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT - MAX ( 15 ) FROM tab2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5458
SELECT - + ( CAST( + + ( + MAX( DISTINCT + col0 ) ) AS SIGNED ) ) FROM tab1 WHERE NOT + - 23 + - CAST( NULL AS DECIMAL ) BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5458
SELECT - + ( CAST ( + + ( + MAX ( DISTINCT + col0 ) ) AS INTEGER ) ) FROM tab1 WHERE NOT + - 23 + - CAST ( NULL AS REAL ) BETWEEN - col1 AND NULL
----
NULL

query I rowsort
SELECT ALL + 13 * + col1 * - ( - - 27 ) FROM tab0 AS cor0
----
-28431
-351
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - + COUNT( * ) * + - 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5460
SELECT - + COUNT ( * ) * + - 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT MIN( ALL + + 99 ) col1 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT DISTINCT MIN ( ALL + + 99 ) col1 FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * col2 - - 62 col1 FROM tab1 AS cor0
----
1502
3326
416

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT COUNT( - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT COUNT ( - - col1 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + - col2 + 81 AS col1 FROM tab1 cor0
----
-15
13
22

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 * + - ( 77 ) * + 48 FROM tab2
----
-232848

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - COUNT( * ) FROM tab2 WHERE - col1 / - col1 - - 35 = 5 * col0
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT - COUNT ( * ) FROM tab2 WHERE - col1 / - col1 - - 35 = 5 * col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT CAST( - 57 AS SIGNED ) + - 48 AS col0 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT CAST ( - 57 AS INTEGER ) + - 48 AS col0 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT DISTINCT + SUM( - 72 ) - - COUNT( * ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT + SUM ( - 72 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-213

query II rowsort
SELECT - 97 - - - col0 * - 75 * col0 AS col1, + col2 * 43 * col1 FROM tab0
----
16778
163701
567578
9030
705578
4257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5472
SELECT - col2 - - - 96 - + col1 * + col0 * + 78 + + - col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT - col2 - - - 96 - + col1 * + col0 * + 78 + + - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 30 AS col0 FROM tab0
----
-30
-30
-30

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL - + MAX( ALL - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL - + MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
-81

query II rowsort
SELECT ALL col2, + 78 FROM tab1 AS cor0
----
59
78
68
78
96
78

query I rowsort
SELECT DISTINCT + col2 + - 98 - + 22 * col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-1124
-1909
-2032

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5479
SELECT DISTINCT CAST( + 40 AS SIGNED ) col0, 44 * col2 FROM tab1
----
40
2596
40
2992
40
4224

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5479
SELECT DISTINCT CAST ( + 40 AS INTEGER ) col0, 44 * col2 FROM tab1
----
40
2596
40
2992
40
4224

query II rowsort
SELECT 48 * + + col0 AS col2, 90 * - col0 * - col0 FROM tab0
----
4176
681210
4656
846810
720
20250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5481
SELECT ALL + - MIN( ALL - - col2 ) FROM tab2 WHERE - CAST( NULL AS SIGNED ) = + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + - MIN ( ALL - - col2 ) FROM tab2 WHERE - CAST ( NULL AS INTEGER ) = + col2
----
NULL

query I rowsort
SELECT DISTINCT - ( + + ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - ( - - ( + - col2 ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5484
SELECT - CAST( NULL AS SIGNED ) * - col1 + - + 51 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT - CAST ( NULL AS INTEGER ) * - col1 + - + 51 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * col1 * + - 3 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-291
-3645
-5481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5486
SELECT MIN( DISTINCT + CAST( + + col2 AS SIGNED ) ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5486
SELECT MIN ( DISTINCT + CAST ( + + col2 AS INTEGER ) ) FROM tab0 cor0
----
10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 48 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - 2 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT MIN( - 85 ) * - MIN( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT MIN ( - 85 ) * - MIN ( - 0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - 62 * + + col0 col0, col1 AS col0 FROM tab1
----
-3213
14
-5355
5
-5733
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + col0 + - 7 col0 FROM tab0
----
698
863
9596

query I rowsort
SELECT ALL + 82 + - + ( - 94 ) AS col2 FROM tab2 AS cor0
----
176
176
176

query I rowsort
SELECT DISTINCT - - 18 + + col0 AS col0 FROM tab2 AS cor0
----
64
82
93

query I rowsort
SELECT ALL + - col0 + + col1 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT col0 + + 29 FROM tab0 AS cor0
----
116
126
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5496
SELECT + + 23 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT + + 23 / col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 + - + 26 AS col2 FROM tab0 AS cor0
----
-125
-36
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * col2 + col1 col2 FROM tab2 AS cor0
----
1822
3157
4533

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + COUNT( + - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( + - col1 ) FROM tab0
----
3

query I rowsort
SELECT + ( - - 6 ) * - + col2 FROM tab1
----
-354
-408
-576

query I rowsort
SELECT ALL col0 * - - ( + ( - col2 ) ) AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT col0 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5502
SELECT col0 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT DISTINCT 60 * 32 DIV - + COUNT( * ) AS col2 FROM tab0
----
-640

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT 60 * 32 / - + COUNT ( * ) AS col2 FROM tab0
----
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT DISTINCT + ( - col1 ) * col2 + col1 DIV col2 - - ( + + col2 ) + ( + col0 ) FROM tab1
----
-1197
-151
-3037

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT + ( - col1 ) * col2 + col1 / col2 - - ( + + col2 ) + ( + col0 ) FROM tab1
----
-1197
-151
-3037

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT - COUNT( * ) * - - 36 + + SUM( - 39 ) AS col1 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5506
SELECT - COUNT ( * ) * - - 36 + + SUM ( - 39 ) AS col1 FROM tab0 AS cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT ALL - - 90 + - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
104
137
95

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL - - 90 + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT - - CAST( - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) / - 49 - 69 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - - CAST ( - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) / - 49 - 69 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT 72 >= NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - 2 IS NOT NULL OR NOT - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * 81 col1, col1 AS col2 FROM tab1
----
-1134
14
-3807
47
-405
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5513
SELECT DISTINCT 60 DIV COUNT( * ) AS col1 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT 60 / COUNT ( * ) AS col1 FROM tab0
----
20

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab1 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT 60 * ( + + COUNT( * ) ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT 60 * ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL - + ( + + 75 ) * + col0 - + - col1 * col2 FROM tab2 AS cor0
----
-1720
-1739
-2277

query III rowsort
SELECT ALL * FROM tab2 WHERE - 22 + + 72 NOT BETWEEN - ( col2 ) AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + col0 + + ( - 4 ) + - col2 AS col0 FROM tab2 WHERE NOT - col0 - - - col2 + + + 89 * - + col0 < 7
----

query I rowsort
SELECT col0 * col0 + 92 AS col0 FROM tab0 AS cor0
----
317
7661
9501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5520
SELECT DISTINCT CAST( 99 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - ( - col1 ) ) + - + col1 * col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT CAST ( 99 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( - ( - col1 ) ) + - + col1 * col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 81 * - 38 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + - + 30 + col2 * + - 16 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5523
SELECT ALL col0 AS col1 FROM tab1 WHERE - CAST( + col0 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL col0 AS col1 FROM tab1 WHERE - CAST ( + col0 AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 17 ) col0 FROM tab1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5525
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 94 )
----

query I rowsort
SELECT - 96 + + 78 * col0 AS col2 FROM tab2
----
3492
4896
5754

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL COUNT( col0 ) * + 33 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL COUNT ( col0 ) * + 33 FROM tab1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 45 col2 FROM tab0
----
3645
45
945

query III rowsort
SELECT * FROM tab2 WHERE ( + 74 ) < col2
----

query I rowsort
SELECT DISTINCT - col0 * - 98 FROM tab0
----
1470
8526
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT + 33 + 3 FROM tab2 WHERE ( + 4 + + CAST( - col2 AS SIGNED ) ) BETWEEN NULL AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-5532
SELECT + 33 + 3 FROM tab2 WHERE ( + 4 + + CAST ( - col2 AS INTEGER ) ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab0 WHERE NOT ( + col1 ) + col1 > + col2
----
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN col0 AND - ( - col1 ) + + col0 * + 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT COUNT( * ) - + COUNT( * ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5535
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) col0 FROM tab1
----
0

query I rowsort
SELECT - 94 * col1 AS col1 FROM tab0
----
-1974
-7614
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT + 79 * - 63 FROM tab1 WHERE CAST( + col1 AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5537
SELECT + 79 * - 63 FROM tab1 WHERE CAST ( + col1 AS INTEGER ) * col0 IS NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE - col0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + ( 42 ) + - MAX( ALL col1 + + col1 * - col0 ) AS col0 FROM tab0 WHERE NOT 40 IS NULL
----
138

skipif mysql # not compatible
query I rowsort label-5539
SELECT + ( 42 ) + - MAX ( ALL col1 + + col1 * - col0 ) AS col0 FROM tab0 WHERE NOT 40 IS NULL
----
138

query I rowsort
SELECT - col2 * col0 + 30 * - 12 AS col1 FROM tab1 WHERE NOT + 97 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col0 - - col2 IS NULL
----

query I rowsort
SELECT ALL - 10 * - 22 AS col2 FROM tab1
----
220
220
220

query I rowsort
SELECT - col0 - ( - col1 ) AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT COUNT( * ) - 6 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5544
SELECT COUNT ( * ) - 6 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col1 + col2 * 86 AS col1 FROM tab0
----
3961
839
8513

query I rowsort
SELECT ALL - col1 * + 53 AS col1 FROM tab2
----
-2703
-3551
-4081

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT col2 * - CAST( - col2 AS SIGNED ) FROM tab2 cor0 WHERE ( 94 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-5547
SELECT col2 * - CAST ( - col2 AS INTEGER ) FROM tab2 cor0 WHERE ( 94 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT ALL - col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 / - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 / - col0 )
----
0

query I rowsort
SELECT + AVG ( DISTINCT 52 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col2 < ( + col2 + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL 22 * + COUNT( * ) col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5554
SELECT ALL 22 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col1 * - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5556
SELECT + col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * 81 + 51 * + col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-5556
SELECT + col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * 81 + 51 * + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 15 ) NOT IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col0 + - col2 NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col0 + - col2 NOT IN ( col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 67 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT ALL + 19 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5561
SELECT ALL + 19 / - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT + ( + COUNT( ALL - col1 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT + ( + COUNT ( ALL - col1 ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + MIN( ALL + - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5563
SELECT + MIN ( ALL + - 49 ) FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5564
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) + + 21 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5564
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) + + 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - 79 * - COUNT( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5565
SELECT - 79 * - COUNT ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
237

query I rowsort
SELECT - col0 * - - 26 AS col1 FROM tab0 AS cor0
----
-2262
-2522
-390

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5567
SELECT CAST( 38 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5567
SELECT CAST ( 38 AS INTEGER ) / col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT + MAX( DISTINCT + 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT + MAX ( DISTINCT + 13 ) FROM tab2
----
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + 13 ) NOT BETWEEN ( NULL ) AND col2 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - 49 ) = - col1
----

query I rowsort
SELECT DISTINCT - 93 + - - 13 - + col0 * - col2 FROM tab0 cor0
----
625
790
9523

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT ALL + + MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL + + MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 72 )
----

query I rowsort
SELECT ALL + - 28 + - col2 FROM tab0 AS cor0
----
-127
-38
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5575
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5576
SELECT col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5576
SELECT col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - 9 * + - 60 + - col0 AS col2 FROM tab1 AS cor0
----
449
455
489

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT - COUNT( * ) - + - COUNT( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( col0 ) FROM tab1
----
0

query II rowsort
SELECT - 94 * - 52 AS col0, - col0 FROM tab2
----
4888
-46
4888
-64
4888
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT - COUNT( * ) - - 93 col1 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5580
SELECT - COUNT ( * ) - - 93 col1 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT + 60 - + 15 + + MIN( col2 ) AS col2 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-5581
SELECT + 60 - + 15 + + MIN ( col2 ) AS col2 FROM tab0
----
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> col1 AND col1 * - ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT DISTINCT - COUNT( * ) * 99 AS col2, COUNT( * ) * 7 AS col1 FROM tab1 AS cor0
----
-297
21

skipif mysql # not compatible
query II rowsort label-5583
SELECT DISTINCT - COUNT ( * ) * 99 AS col2, COUNT ( * ) * 7 AS col1 FROM tab1 AS cor0
----
-297
21

query I rowsort
SELECT + - 58 FROM tab0 cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 col1 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + MAX( + + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + MAX ( + + col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + col0 + 90 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * ( + + 4 ) * - col2 * - col0 col1 FROM tab1
----
-105864304
-13982976
-8525500

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 - col0 > 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 16 NOT IN ( col1 )
----

query I rowsort
SELECT 65 * + - col1 FROM tab1 AS cor0
----
-3055
-325
-910

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE + col0 = ( + col0 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 89 col2 FROM tab0 AS cor0
----
4183
8811
890

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 38 * col0 * + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * - - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 34, + 83 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 - - col1 * - col2 * col0 * 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE NOT NULL > ( - 42 ) * col0 + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 16 IN ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT COUNT( + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 91 ) * col2 * col0 * + col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT MIN( ALL + 34 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT MIN ( ALL + 34 ) FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT DISTINCT MIN( ALL - 60 ) FROM tab2, tab1 AS cor0
----
-60

skipif mysql # not compa