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 compatible
query I rowsort label-5604
SELECT DISTINCT MIN ( ALL - 60 ) FROM tab2, tab1 AS cor0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5605
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE - col2 NOT BETWEEN - - col2 AND NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5607
SELECT 1 + col1 + - ( col2 ) AS col1, CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1
----
-20
NULL
-53
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-5607
SELECT 1 + col1 + - ( col2 ) AS col1, CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1
----
-20
NULL
-53
NULL
-81
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT ALL - col0 DIV - + 72 + + + col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - col0 / - + 72 + + + col2 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT 33 + + MAX( - col2 ) * - - 58 AS col0 FROM tab1 AS cor0
----
-3389

skipif mysql # not compatible
query I rowsort label-5610
SELECT 33 + + MAX ( - col2 ) * - - 58 AS col0 FROM tab1 AS cor0
----
-3389

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

query I rowsort
SELECT - col2 * 25 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2376
-40
2632

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + MIN ( DISTINCT ( + col0 ) ) FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT ALL 38 DIV + - col1 + + - 30 col0 FROM tab0 AS cor0
----
-30
-31
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5617
SELECT ALL 38 / + - col1 + + - 30 col0 FROM tab0 AS cor0
----
-30
-31
-68

query I rowsort
SELECT ALL + - col1 - + + col2 * 91 + - col0 FROM tab2 AS cor0
----
-2190
-3781
-5420

query I rowsort
SELECT + col2 - 54 AS col2 FROM tab1 AS cor0
----
14
42
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT + + 22 DIV - 27 + - 82 FROM tab1 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-5620
SELECT + + 22 / - 27 + - 82 FROM tab1 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5621
SELECT ALL + + COUNT( * ) - 18 DIV + ( + SUM( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + + COUNT ( * ) - 18 / + ( + SUM ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col2 + - - col1 + - 39 >= ( 2 ) - col0
----
59
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT + COUNT( * ) + - 9 FROM tab0 WHERE NOT - col1 NOT IN ( - - CAST( - col1 AS SIGNED ), col1 )
----
-6

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT + COUNT ( * ) + - 9 FROM tab0 WHERE NOT - col1 NOT IN ( - - CAST ( - col1 AS INTEGER ), col1 )
----
-6

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

query I rowsort
SELECT - col1 * + 59 FROM tab1 WHERE ( - col2 ) > NULL
----

query I rowsort
SELECT - 79 * - + 29 AS col2 FROM tab2
----
2291
2291
2291

query I rowsort
SELECT + col2 * + + ( + - col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT col0 DIV ( + ( - 46 ) ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5629
SELECT col0 / ( + ( - 46 ) ) FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT - 63 * + - COUNT( * ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-5630
SELECT - 63 * + - COUNT ( * ) FROM tab2
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT ( + + COUNT( * ) ) * + ( + 69 ) + + MAX( - ( col1 ) ) FROM tab1
----
202

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT ( + + COUNT ( * ) ) * + ( + 69 ) + + MAX ( - ( col1 ) ) FROM tab1
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - COUNT( + 72 ) * - 71 col2 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5632
SELECT - COUNT ( + 72 ) * - 71 col2 FROM tab0
----
213

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN 87 AND ( - 32 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT 3 col1, + 79 * - COUNT( * ) * + COUNT( * ) * MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
3
68256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5634
SELECT 3 col1, + 79 * - COUNT ( * ) * + COUNT ( * ) * MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
3
68256

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + SUM( - 8 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + SUM ( - 8 ) FROM tab2 AS cor0
----
-24

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 52 <> + - 17
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + + 24 * COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT 51 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT + + 24 * COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT 51 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 + col0 AS col0, col0 col2 FROM tab1 AS cor0
----
102
51
170
85
182
91

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 col2, + col1 col2 FROM tab0
----
58
1
58
21
58
81

query I rowsort
SELECT ALL + - 74 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE - - 36 * - + 14 * + col1 + - - col1 IN ( col0 + 40 )
----

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

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - AVG ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 * - - 43 * col2 AS col1 FROM tab2
----
132440
167098
50439

query I rowsort
SELECT DISTINCT - col2 + - col2 * - col2 + + ( - + col0 ) AS col1 FROM tab1
----
3337
4465
9069

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT DISTINCT col2 + + + 39 + 68 DIV 8 + - + 1 + + col0 * + col0 AS col1 FROM tab0
----
318
7625
9554

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT col2 + + + 39 + 68 / 8 + - + 1 + + col0 * + col0 AS col1 FROM tab0
----
318
7625
9554

onlyif mysql # aggregate syntax: 
query II rowsort label-5654
SELECT DISTINCT - - SUM( DISTINCT - col0 ) + - - COUNT( * ), - ( - 28 ) AS col2 FROM tab2 AS cor0
----
-182
28

skipif mysql # not compatible
query II rowsort label-5654
SELECT DISTINCT - - SUM ( DISTINCT - col0 ) + - - COUNT ( * ), - ( - 28 ) AS col2 FROM tab2 AS cor0
----
-182
28

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5656
SELECT ALL 2 DIV + + CAST( col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL 2 / + + CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5657
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( + ( + col1 ) AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query III rowsort label-5657
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( + ( + col1 ) AS INTEGER ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT DISTINCT + - COUNT( * ) * - 50 + 15 AS col1 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + - COUNT ( * ) * - 50 + 15 AS col1 FROM tab0 AS cor0
----
165

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

skipif mysql # not compatible
query III rowsort label-5659
SELECT * FROM tab1 AS cor0 WHERE CAST ( col2 AS INTEGER ) NOT IN ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - ( col0 ) * col1 FROM tab2 cor0
----
-2346
-4928
-5025

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

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

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

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

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

query II rowsort
SELECT - + 65, - col0 AS col2 FROM tab2 cor0
----
-65
-46
-65
-64
-65
-75

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL > - 60
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5670
SELECT + MIN( + + ( + + 39 ) ) AS col1, MAX( + col2 ) AS col2 FROM tab0 cor0
----
39
99

skipif mysql # not compatible
query II rowsort label-5670
SELECT + MIN ( + + ( + + 39 ) ) AS col1, MAX ( + col2 ) AS col2 FROM tab0 cor0
----
39
99

query I rowsort
SELECT ALL - - ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 44 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 44 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 43 + + col0 col0 FROM tab1
----
2622
3015
4179

query I rowsort
SELECT col0 + col0 + - - col0 FROM tab2
----
138
192
225

query I rowsort
SELECT - 56 AS col2 FROM tab2 WHERE + col2 * + + 66 / + col1 + col1 IS NOT NULL
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT ALL + col2 DIV - - col2 + - - 19 * col1 FROM tab2
----
1274
1464
970

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + col2 / - - col2 + - - 19 * col1 FROM tab2
----
1274
1464
970

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT - + ( MIN( ALL col1 ) ) + - 53 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-5682
SELECT - + ( MIN ( ALL col1 ) ) + - 53 FROM tab2 AS cor0
----
-104

query II rowsort
SELECT DISTINCT - col2 + + + col2, + col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query I rowsort
SELECT col1 * + col2 - + col0 * + + col1 AS col0 FROM tab2
----
-1139
-1173
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5685
SELECT + 56 * CAST( NULL AS SIGNED ) * - + col0 col0, - 29 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-5685
SELECT + 56 * CAST ( NULL AS INTEGER ) * - + col0 col0, - 29 FROM tab1 AS cor0
----
NULL
-29
NULL
-29
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + COUNT( DISTINCT - 46 ) FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT MIN( ALL - 19 ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT MIN ( ALL - 19 ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 5 BETWEEN col2 AND + - col2 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 5 BETWEEN col2 AND + - col2 + - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5689
SELECT + col0 AS col2, col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> + 48 + + + col0 + + col1 - + col0 / + - CAST( + 13 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5689
SELECT + col0 AS col2, col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> + 48 + + + col0 + + col1 - + col0 / + - CAST ( + 13 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT 44 * - COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-5690
SELECT 44 * - COUNT ( * ) FROM tab1
----
-132

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 4 BETWEEN - 24 - - col0 AND + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT SUM( + + ( - 63 ) ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-5692
SELECT SUM ( + + ( - 63 ) ) FROM tab1
----
-189

query II rowsort
SELECT ALL col2, 59 + col0 FROM tab2
----
23
105
40
123
58
134

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

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

query I rowsort
SELECT ALL - 47 * + - col2 AS col0 FROM tab0
----
2209
4653
470

query I rowsort
SELECT col2 * - - 26 AS col0 FROM tab2
----
1040
1508
598

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT + COUNT( * ) * + 36 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5699
SELECT + COUNT ( * ) * + 36 FROM tab2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5700
SELECT - col0 col2, col1 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + 64 * + 26 / + col1 + col2 * - - col2 IN ( col1, col2, col2 + col0, + col1 * + - col2 )
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5700
SELECT - col0 col2, col1 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + 64 * + 26 / + col1 + col2 * - - col2 IN ( col1, col2, col2 + col0, + col1 * + - col2 )
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT col2 * + col2 * 99 AS col0 FROM tab0
----
218691
970299
9900

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5702
SELECT + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 + 17 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 * - col1 * - ( - - col2 ) AS col2 FROM tab2 cor0
----
-237160
-260362
-59823

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( + 98 )
----

query I rowsort
SELECT ALL + col0 * - col0 - + - col1 AS col1 FROM tab0 cor0
----
-144
-7548
-9408

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

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

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

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

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

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

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE - col0 IN ( + - 89 )
----

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

query I rowsort
SELECT ALL col2 + ( - 77 ) + 38 FROM tab0
----
-29
60
8

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col2 / - 11 >= - 62
----
51
85
91

query I rowsort
SELECT ALL - col0 + - 34 FROM tab1 AS cor0 WHERE col0 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5720
SELECT + + CAST( NULL AS DECIMAL ) * - + 14 FROM tab2 cor0 WHERE NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5720
SELECT + + CAST ( NULL AS REAL ) * - + 14 FROM tab2 cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT DISTINCT 75 + - - COUNT( * ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT 75 + - - COUNT ( * ) FROM tab1 AS cor0
----
78

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5723
SELECT DISTINCT - CAST( + 55 AS SIGNED ) AS col0, col0 AS col1 FROM tab0
----
-55
15
-55
87
-55
97

skipif mysql # not compatible
query II rowsort label-5723
SELECT DISTINCT - CAST ( + 55 AS INTEGER ) AS col0, col0 AS col1 FROM tab0
----
-55
15
-55
87
-55
97

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

query I rowsort
SELECT ALL + col2 * - - 82 * + col0 FROM tab1 cor0
----
401472
411230
507416

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT + COUNT( - 47 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5727
SELECT + COUNT ( - 47 ) FROM tab0 cor0
----
3

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

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

query I rowsort
SELECT ALL - 28 * + col0 AS col0 FROM tab1 WHERE NOT - col1 + col2 BETWEEN ( NULL ) AND + col0
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT SUM( 6 ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5730
SELECT SUM ( 6 ) AS col2 FROM tab2 AS cor0
----
18

query II rowsort
SELECT col1 * 52 + - col2 AS col0, col2 FROM tab2 AS cor0
----
2629
23
3426
58
3964
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 - - col2, col1, - ( + 25 ) )
----

query I rowsort
SELECT DISTINCT + 96 * - col2 AS col2 FROM tab2 AS cor0
----
-2208
-3840
-5568

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT DISTINCT CAST( 18 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT CAST ( 18 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5736
SELECT DISTINCT - 87 DIV 85 + - col0 * + col2 * + + col1 FROM tab1 cor0
----
-25076
-290837
-68545

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - 87 / 85 + - col0 * + col2 * + + col1 FROM tab1 cor0
----
-25076
-290837
-68545

query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-17

query I rowsort
SELECT + 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT 11 + + - col1 FROM tab2 AS cor0
----
-40
-56
-66

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

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

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

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

query I rowsort
SELECT - 78 AS col1 FROM tab0 AS cor0 WHERE 32 >= 98 * - 29
----
-78
-78
-78

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5744
SELECT ALL - col2 + + ( - CAST( + + 69 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-116
-168
-79

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - col2 + + ( - CAST ( + + 69 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-116
-168
-79

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

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

query I rowsort
SELECT DISTINCT - - 29 AS col0 FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT 49 + + 47 AS col0 FROM tab0 AS cor0
----
96
96
96

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * col2 = ( NULL )
----

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

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

query I rowsort
SELECT + col1 + - - 2 + - + 68 AS col1 FROM tab0
----
-45
-65
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - 91 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5756
SELECT DISTINCT 43 + COUNT ( * ) col2 FROM tab2 AS cor0
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT + + COUNT( * ) * 60 AS col0 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5758
SELECT + + COUNT ( * ) * 60 AS col0 FROM tab0 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT - col1 DIV - + col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5759
SELECT - col1 / - + col1 FROM tab0 cor0
----
1
1
1

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

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

skipif mysql # not compatible
query I rowsort label-5761
SELECT - MIN ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col2 * - + 81 FROM tab0 AS cor0
----
3807
8019
810

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

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * + + col2 * - 80 AS col0 FROM tab1
----
-391680
-401200
-495040

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT ALL COUNT( * ) * + + 51 AS col2 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL COUNT ( * ) * + + 51 AS col2 FROM tab0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT DISTINCT - 22 DIV - COUNT( * ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - 22 / - COUNT ( * ) AS col0 FROM tab2
----
7

query I rowsort
SELECT DISTINCT 79 * - col1 * - - col0 FROM tab0
----
-144333
-7663
-95985

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

query I rowsort
SELECT ALL + ( 15 ) + - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT 10 = NULL
----

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

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

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

query I rowsort
SELECT ALL 28 * + col2 FROM tab1 AS cor0
----
1652
1904
2688

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 NOT BETWEEN + 81 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 * + 64 * - col1 + - col2 AS col1 FROM tab0 cor0
----
-163
-28234
-419951

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

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT + - COUNT ( * ) / ( + MAX ( DISTINCT + 47 ) ) + - 75 AS col1 FROM tab2 AS cor0
----
-75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT MAX( ALL + 45 ) * - 31 AS col2 FROM tab2 AS cor0
----
-1395

skipif mysql # not compatible
query I rowsort label-5780
SELECT MAX ( ALL + 45 ) * - 31 AS col2 FROM tab2 AS cor0
----
-1395

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - col2 * - 46 AS col2 FROM tab2 AS cor0
----
117760
200100
48668

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5784
SELECT + SUM( + col0 ) DIV - - 31 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5784
SELECT + SUM ( + col0 ) / - - 31 FROM tab0
----
6

query I rowsort
SELECT col0 * - + 76 AS col1 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL 49 * - COUNT( - col0 ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL 49 * - COUNT ( - col0 ) FROM tab1
----
-147

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

query I rowsort
SELECT col0 - ( col0 ) AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT + col1 - + 34 * + col1 AS col2 FROM tab0
----
-2673
-33
-693

query I rowsort
SELECT - 72 FROM tab2 WHERE NULL >= + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5792
SELECT ALL + col0 DIV - col2 + 67 FROM tab0 AS cor0
----
59
67
67

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + col0 / - col2 + 67 FROM tab0 AS cor0
----
59
67
67

query II rowsort
SELECT + col2 AS col0, col2 + + col2 FROM tab2 AS cor0
----
23
46
40
80
58
116

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( - 46 * col1 + - + 37 ) = col1 - - + 6
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5795
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 25 * col2 AS col0 FROM tab2 AS cor0
----
-1000
-1450
-575

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT - 82 DIV + - 37 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5797
SELECT - 82 / + - 37 FROM tab2 cor0
----
2
2
2

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

query I rowsort
SELECT - - col2 * 12 FROM tab2 AS cor0
----
276
480
696

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT 17 DIV + 64 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT 17 / + 64 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + 6
----

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

query I rowsort
SELECT DISTINCT ( 30 ) AS col1 FROM tab0
----
30

query III rowsort
SELECT * FROM tab2 WHERE NOT + 81 NOT BETWEEN + 37 AND - col1 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + - MIN( col0 ) FROM tab1 WHERE NOT - 14 NOT BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5807
SELECT + - MIN ( col0 ) FROM tab1 WHERE NOT - 14 NOT BETWEEN - col1 AND NULL
----
NULL

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

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

query I rowsort
SELECT ALL col0 + - - 46 - - + col2 AS col2 FROM tab0 AS cor0
----
108
143
242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5810
SELECT - COUNT( * ) DIV - - 70 * - 9 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5810
SELECT - COUNT ( * ) / - - 70 * - 9 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
0

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

query I rowsort
SELECT - 7 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + col0 + + col2 + + col0 FROM tab0
----
184
293
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= + + col1 + - col0
----
91
47
68

query I rowsort
SELECT ALL + 39 + 35 FROM tab2
----
74
74
74

query I rowsort
SELECT - + 51 - - col0 AS col0 FROM tab1 cor0
----
0
34
40

query I rowsort
SELECT ALL ( + col1 ) + + 59 AS col1 FROM tab1 AS cor0
----
106
64
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT + - SUM( - - col0 ) + + 9 FROM tab1 AS cor0
----
-218

skipif mysql # not compatible
query I rowsort label-5819
SELECT + - SUM ( - - col0 ) + + 9 FROM tab1 AS cor0
----
-218

query I rowsort
SELECT DISTINCT + - col2 + 82 + - col2 AS col2 FROM tab1 AS cor0
----
-110
-36
-54

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

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

query I rowsort
SELECT 81 + 42 * - col1 FROM tab1 AS cor0
----
-129
-1893
-507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5823
SELECT + CAST( + col1 AS SIGNED ) + + col1 col0 FROM tab0 AS cor0
----
162
2
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5823
SELECT + CAST ( + col1 AS INTEGER ) + + col1 col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + col1 - - col2 - - 43 FROM tab2 AS cor0
----
117
160
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 - col1, 42 col1 FROM tab1 AS cor0
----
20
42
53
42
62
42

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col2 - - 77 AS col2, 99 FROM tab1 cor0
----
-19
99
18
99
9
99

query I rowsort
SELECT ALL 80 * 80 AS col1 FROM tab0
----
6400
6400
6400

query I rowsort
SELECT - col1 + + col0 + + col1 AS col2 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT col2 * 91 FROM tab0
----
4277
9009
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5832
SELECT ALL + CAST( NULL AS SIGNED ) * ( MAX( + col0 ) ) FROM tab1
----
NULL

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

query I rowsort
SELECT col1 * - + col0 * - + col2 * + 70 AS col2 FROM tab0
----
1278900
3997350
672210

onlyif mysql # DIV for integer division: 
query I rowsort label-5834
SELECT DISTINCT col2 DIV + 90 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT col2 / + 90 AS col2 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT - 43 * 63 DIV - ( - - col2 ) - 77 + 86 + - col0 * + col1 FROM tab0 AS cor0
----
-1149
-1548
-61

skipif mysql # not compatible
query I rowsort label-5835
SELECT - 43 * 63 / - ( - - col2 ) - 77 + 86 + - col0 * + col1 FROM tab0 AS cor0
----
-1149
-1548
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 96 >= + - col2 * + col1
----
85
5
59
91
47
68

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

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

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

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

query I rowsort
SELECT - col1 * - 39 FROM tab1
----
1833
195
546

query I rowsort
SELECT ALL 98 * + 23 * + col2 AS col0 FROM tab1
----
132986
153272
216384

query I rowsort
SELECT DISTINCT - col0 + col0 + - - col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT + 54 + - col1 AS col1 FROM tab0
----
-27
33
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5843
SELECT DISTINCT CAST( NULL AS SIGNED ) + + SUM( ALL + col1 ) AS col0 FROM tab0 WHERE CAST( - 75 AS SIGNED ) + + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + SUM ( ALL + col1 ) AS col0 FROM tab0 WHERE CAST ( - 75 AS INTEGER ) + + + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5844
SELECT ALL + - 1, MIN( DISTINCT - 8 ) AS col0 FROM tab0 WHERE - 3 / + + col1 * - col0 BETWEEN + + col0 AND NULL
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5844
SELECT ALL + - 1, MIN ( DISTINCT - 8 ) AS col0 FROM tab0 WHERE - 3 / + + col1 * - col0 BETWEEN + + col0 AND NULL
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT COUNT ( - - ( + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) ) + - MAX ( + - 24 ) AS col0 FROM tab0
----
24

query I rowsort
SELECT ALL ( + col0 ) / 54 FROM tab1 WHERE - - col0 IS NULL
----

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

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

query I rowsort
SELECT ALL col0 * - - col2 + col1 FROM tab1 AS cor0
----
4910
5020
6235

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + COUNT( * ) + + + MIN( ALL + - 52 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-5850
SELECT + COUNT ( * ) + + + MIN ( ALL + - 52 ) FROM tab0
----
-49

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL NOT IN ( + 3, 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT - + 92 * 95 * + + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5854
SELECT - + 92 * 95 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT ALL - - col2 DIV 70 + - col0 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL - - col2 / 70 + - col0 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT ALL + 81 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
4085
5352
6173

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

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

query I rowsort
SELECT ALL + - 69 - - col0 * + - ( - + 24 ) AS col0 FROM tab2 AS cor0
----
1035
1467
1731

query I rowsort
SELECT + col0 - + 72 AS col0 FROM tab1 cor0
----
-21
13
19

query I rowsort
SELECT col0 FROM tab0 WHERE NULL BETWEEN - - col1 * - col1 AND ( - 22 * + + 88 / + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT + COUNT( * ) - + - ( + COUNT( * ) ) + + 82 DIV - + 52 AS col1 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-5862
SELECT + COUNT ( * ) - + - ( + COUNT ( * ) ) + + 82 / - + 52 AS col1 FROM tab2
----
5

query I rowsort
SELECT ALL - ( - 49 ) + col0 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - 94 * col1 FROM tab0
----
-1974
-7614
-94

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) / + col0 > NULL
----

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

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

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

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

query II rowsort
SELECT ALL + col0 * + col0, col0 FROM tab1 AS cor0
----
2601
51
7225
85
8281
91

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5871
SELECT + 89, + 82 DIV + 23 AS col0 FROM tab1
----
89
3
89
3
89
3

skipif mysql # not compatible
query II rowsort label-5871
SELECT + 89, + 82 / + 23 AS col0 FROM tab1
----
89
3
89
3
89
3

query I rowsort
SELECT 6 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col1 FROM tab1 cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT col0 * 52 * + col1 + col0 + + 36 - + col0 AS col1 FROM tab0
----
5080
63216
95040

query I rowsort
SELECT DISTINCT 43 FROM tab1 WHERE + col1 IS NULL
----

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

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

query I rowsort
SELECT col0 * + 7 + - + 10 AS col0 FROM tab1
----
347
585
627

query II rowsort
SELECT DISTINCT col1 + - col0, + 29 AS col1 FROM tab0
----
-66
29
-96
29
66
29

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 + - col0 col1, col0 * - col1 AS col0 FROM tab1
----
1
-4277
41
-714
7
-425

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

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

query III rowsort
SELECT - col2 AS col2, col1 AS col1, col2 FROM tab0 AS cor0
----
9 values hashing to 77da421e30d60cc3365a706e77ad5740

query I rowsort
SELECT ALL 47 * - 61 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c30ace49b5299e6e25a2bf27603ecbc5

query I rowsort
SELECT DISTINCT + col0 - 60 * - col1 AS col0 FROM tab0 AS cor0
----
1347
157
4875

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

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

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

skipif mysql # not compatible
query I rowsort label-5890
SELECT + 13 + - + CAST ( NULL AS INTEGER ) / - 57 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT + col0 + ( + col0 ) + 99 AS col0 FROM tab1 AS cor0
----
201
269
281

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT - - MAX( DISTINCT - col1 ) - - ( - - 15 ) FROM tab0 cor0
----
14

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT - - MAX ( DISTINCT - col1 ) - - ( - - 15 ) FROM tab0 cor0
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE NOT NULL BETWEEN col1 AND ( ( - 50 ) )
----

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

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

query I rowsort
SELECT + 32 * + - col2 AS col2 FROM tab2
----
-1280
-1856
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col0 col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL + 39 * - 85 AS col0 FROM tab2
----
-3315
-3315
-3315

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT - COUNT( * ) * 48 FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT - COUNT ( * ) * 48 FROM tab2 AS cor0
----
-144

query I rowsort
SELECT ALL ( + col1 ) * + 88 FROM tab2 AS cor0
----
4488
5896
6776

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5905
SELECT * FROM tab1 WHERE NOT + col1 * col0 / - - col1 + - + col2 / + - col2 - + col0 + + 45 / - + 29 - - - col1 - - - 56 + + CAST( + col0 AS SIGNED ) + col0 / + - col0 * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5905
SELECT * FROM tab1 WHERE NOT + col1 * col0 / - - col1 + - + col2 / + - col2 - + col0 + + 45 / - + 29 - - - col1 - - - 56 + + CAST ( + col0 AS INTEGER ) + col0 / + - col0 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT DISTINCT col1 DIV - + ( 7 ) FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT col1 / - + ( 7 ) FROM tab1
----
-2
-6
0

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

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 44 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL - COUNT( * ) + - ( + + 95 ) AS col0 FROM tab2, tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - COUNT ( * ) + - ( + + 95 ) AS col0 FROM tab2, tab2 AS cor0
----
-104

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 49 * - 14 * + + col1 AS col0 FROM tab2 AS cor0
----
-34986
-45962
-52822

query I rowsort
SELECT DISTINCT - col0 * 25 * col0 AS col0 FROM tab0 AS cor0
----
-189225
-235225
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT + + MIN( - 11 ) FROM tab2 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + + MIN ( - 11 ) FROM tab2 cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 42 col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT ALL + + col0 DIV + 14 + 77 FROM tab2 cor0
----
80
81
82

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL + + col0 / + 14 + 77 FROM tab2 cor0
----
80
81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - 27 + + COUNT( col1 ) * + COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - 27 + + COUNT ( col1 ) * + COUNT ( * ) AS col2 FROM tab0
----
-18

query II rowsort
SELECT + 82 AS col2, - col2 AS col1 FROM tab2
----
82
-23
82
-40
82
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + + + col1 * + - 55 col0 FROM tab1
----
-250
-376
-574

query I rowsort
SELECT DISTINCT col0 + - col2 + - col2 + col1 AS col1 FROM tab1
----
-127
-28
2

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5925
SELECT ALL + + CAST ( NULL AS INTEGER ) + - 52 / - COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT - - 80 + - - col2 * + col2 AS col2 FROM tab0 AS cor0
----
180
2289
9881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 + col0 + + 79 AS col2, 63 - + col0 col0 FROM tab0 AS cor0
----
79
-24
79
-34
79
48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5929
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - - col0 + - col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-5929
SELECT DISTINCT + - CAST ( NULL AS REAL ) - - col0 + - col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT 48 * + 58 * + col0 + + col2 DIV + col2 AS col2 FROM tab0
----
242209
270049
41761

skipif mysql # not compatible
query I rowsort label-5930
SELECT 48 * + 58 * + col0 + + col2 / + col2 AS col2 FROM tab0
----
242209
270049
41761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * - + 37 col0 FROM tab1
----
15725
158249
26418

query I rowsort
SELECT - - 91 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL col0 * col2 / - + CAST ( NULL AS REAL ) * - - col0 + + col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2, - 81 AS col2 FROM tab2 AS cor0
----
-23
-81
-40
-81
-58
-81

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

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

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

query I rowsort
SELECT ALL + col2 * - col0 + ( - + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT - + 8 * 98 FROM tab0 AS cor0
----
-784

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5940
SELECT ALL * FROM tab2 AS cor0 WHERE 98 NOT BETWEEN - CAST( NULL AS SIGNED ) * - + col1 / - col2 AND + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5940
SELECT ALL * FROM tab2 AS cor0 WHERE 98 NOT BETWEEN - CAST ( NULL AS INTEGER ) * - + col1 / - col2 AND + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT DISTINCT + + COUNT( DISTINCT 10 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT + + COUNT ( DISTINCT 10 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT ALL + - 15 * MAX( + - 46 ) FROM tab1 cor0 WHERE NULL >= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + - 15 * MAX ( + - 46 ) FROM tab1 cor0 WHERE NULL >= col0
----
NULL

query II rowsort
SELECT 29, - 12 * - - col1 AS col1 FROM tab2 AS cor0
----
29
-612
29
-804
29
-924

query II rowsort
SELECT + 38 AS col0, - col1 * col2 * + 26 + col0 AS col0 FROM tab1 AS cor0
----
38
-34893
38
-7585
38
-83005

query I rowsort
SELECT - col2 * 3 FROM tab2 WHERE NOT - 57 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - + col1 ) * col1 + - col2 * + - col2 * + col2 FROM tab2
----
190623
58071
9566

query II rowsort
SELECT ALL 51 * 73, 7 AS col1 FROM tab1
----
3723
7
3723
7
3723
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT DISTINCT - - SUM( + col1 ) * + ( - MIN( + 54 ) ) AS col0 FROM tab1 AS cor0
----
-3564

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - - SUM ( + col1 ) * + ( - MIN ( + 54 ) ) AS col0 FROM tab1 AS cor0
----
-3564

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT + MAX( DISTINCT col1 ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
141

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

query I rowsort
SELECT ALL 82 + - col0 + - - col2 * - - col1 + - col2 + col1 FROM tab2
----
1237
3135
3902

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

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

query I rowsort
SELECT ALL + 61 + - col0 * 64 AS col2 FROM tab0 AS cor0
----
-5507
-6147
-899

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5955
SELECT ALL - - 68 + - col1 * - CAST( + col2 AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) + - - col0 + - - col1 FROM tab0 AS cor0
----
167
NULL
278
NULL
3875
NULL

skipif mysql # not compatible
query II rowsort label-5955
SELECT ALL - - 68 + - col1 * - CAST ( + col2 AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) + - - col0 + - - col1 FROM tab0 AS cor0
----
167
NULL
278
NULL
3875
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT DISTINCT + 33 AS col1, MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
33
91

skipif mysql # not compatible
query II rowsort label-5957
SELECT DISTINCT + 33 AS col1, MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
33
91

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

query I rowsort
SELECT DISTINCT - 72 * - col1 FROM tab2
----
3672
4824
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT DISTINCT 73 * - CAST( - MAX( + - col0 ) AS SIGNED ) + + 75 AS col0 FROM tab0
----
-1020

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT 73 * - CAST ( - MAX ( + - col0 ) AS INTEGER ) + + 75 AS col0 FROM tab0
----
-1020

query III rowsort
SELECT * FROM tab0 WHERE - - col0 >= - col1 - - col2
----
15
81
47
87
21
10

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

query II rowsort
SELECT ALL col1 + - col0, col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + 5, + 58 + - - col0 + - col0 + + + col2 * col2 / - 66 + + col2 + 65 * col1, + - col2 )
----

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

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

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

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

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

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

query I rowsort
SELECT ALL + 48 * + col0 AS col1 FROM tab2 cor0
----
2208
3072
3600

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT CAST( + col1 AS SIGNED ) * - col2 * col1 AS col0 FROM tab2
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-5971
SELECT CAST ( + col1 AS INTEGER ) * - col2 * col1 AS col0 FROM tab2
----
-237160
-260362
-59823

query II rowsort
SELECT 66 AS col1, + col0 FROM tab2
----
66
46
66
64
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT COUNT( * ) * - 58 AS col1 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT COUNT ( * ) * - 58 AS col1 FROM tab0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5974
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + - CAST( NULL AS SIGNED ) * + col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-5974
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + - CAST ( NULL AS INTEGER ) * + col0 > NULL
----

query I rowsort
SELECT 78 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1638
-6318
-78

query I rowsort
SELECT - col1 * + ( - col2 ) + - col0 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT ALL - - 0 * col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col0, - 79 * col0 * - 20 FROM tab0 AS cor0
----
15
23700
87
137460
97
153260

query III rowsort
SELECT - col0, - col0 AS col1, + col2 * + col0 + - 52 AS col0 FROM tab0 AS cor0
----
9 values hashing to c7eeb0ac526d7061893419e6f9bb4758

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL MAX( DISTINCT + - 56 ), + 42 AS col2 FROM tab2
----
-56
42

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL MAX ( DISTINCT + - 56 ), + 42 AS col2 FROM tab2
----
-56
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT DISTINCT + + MIN( + + col2 ) AS col1 FROM tab1 WHERE - 58 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT + + MIN ( + + col2 ) AS col1 FROM tab1 WHERE - 58 IS NOT NULL
----
59

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

query I rowsort
SELECT DISTINCT 46 * + - ( - + 70 ) + - 55 AS col0 FROM tab1 cor0
----
3165

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE - ( - - ( - 66 ) ) <> + col1
----
-15
-87
-97

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

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

query I rowsort
SELECT DISTINCT ( col0 ) * 55 FROM tab1
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT DISTINCT 12 * - + COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT 12 * - + COUNT ( * ) FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT DISTINCT 79 * MIN( - ( - col1 ) ) AS col0 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT 79 * MIN ( - ( - col1 ) ) AS col0 FROM tab0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT + COUNT( * ) * + 65 AS col1 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-5989
SELECT + COUNT ( * ) * + 65 AS col1 FROM tab0
----
195

query I rowsort
SELECT + col1 - - 13 FROM tab1
----
18
27
60

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

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

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

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

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

query I rowsort
SELECT col1 + + ( col2 ) + col0 FROM tab2 AS cor0
----
120
181
200

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND - 61
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5996
SELECT 46 AS col1, CAST( + 36 AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
46
1836
46
2412
46
2772

skipif mysql # not compatible
query II rowsort label-5996
SELECT 46 AS col1, CAST ( + 36 AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
46
1836
46
2412
46
2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + col1 ) col1 FROM tab2 WHERE NOT + 67 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 23 * - 34 AS col1 FROM tab0
----
-683
-735
-772

query I rowsort
SELECT + 48 * - col0 FROM tab2 WHERE 99 * col0 + - 88 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT 20 * COUNT( * ) AS col1 FROM tab1 WHERE NOT 10 * - col2 IN ( - 22 )
----
60

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT 20 * COUNT ( * ) AS col1 FROM tab1 WHERE NOT 10 * - col2 IN ( - 22 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT + col1 NOT IN ( col0 )
----

skipif mysql # not compatible
query I rowsort label-6002
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT + col1 NOT IN ( col0 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6004
SELECT DISTINCT SUM( ALL col1 ) + CAST( COUNT( * ) AS SIGNED ) * + 8 AS col0 FROM tab2
----
219

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT SUM ( ALL col1 ) + CAST ( COUNT ( * ) AS INTEGER ) * + 8 AS col0 FROM tab2
----
219

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

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

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

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

query I rowsort
SELECT col0 * col2 + + 6 AS col0 FROM tab2
----
1064
2566
4356

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab1 WHERE NOT col2 - col0 > ( col2 )
----
64

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL ) = col0
----

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

query I rowsort
SELECT col2 - + ( 94 + col1 * 89 ) FROM tab2
----
-4610
-5999
-6907

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT MIN( ALL 39 ) - 73 AS col1 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-6014
SELECT MIN ( ALL 39 ) - 73 AS col1 FROM tab1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT DISTINCT - CAST( - 85 AS SIGNED ) col2 FROM tab1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6015
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) col2 FROM tab1
----
85

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 92 < - 6 * 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - ( col0 ) * - 89 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT 26 * col2 - col0 AS col1 FROM tab0
----
1207
173
2477

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 2 NOT IN ( - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT + 23 + ( 34 + - COUNT( * ) ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6022
SELECT + 23 + ( 34 + - COUNT ( * ) ) FROM tab0 AS cor0
----
54

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

query I rowsort
SELECT - col2 * - 82 AS col2 FROM tab0 AS cor0
----
3854
8118
820

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

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

query I rowsort
SELECT DISTINCT 59 * + col0 - col1 FROM tab2 AS cor0 WHERE NOT + 33 IN ( col2 )
----
2663
3699
4358

query I rowsort
SELECT ALL 91 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT 43 * - 53 AS col1 FROM tab2
----
-2279

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT + ( + 1 ) DIV - COUNT( * ) + + 98 DIV + ( SUM( + col0 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6030
SELECT + ( + 1 ) / - COUNT ( * ) + + 98 / + ( SUM ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * + col2 + - col2 * + 95 FROM tab0 AS cor0
----
-658
-740
-9306

query I rowsort
SELECT + ( 45 ) + col0 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT ALL + 47 * col0 AS col1 FROM tab0 cor0 WHERE NOT NULL <> col1 - col1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT - + COUNT( * ) + - 30 AS col0 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6034
SELECT - + COUNT ( * ) + - 30 AS col0 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT - 36 AS col2 FROM tab1 cor0 WHERE NULL < - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL ( + COUNT( * ) ) * - ( MIN( + col1 ) ) - ( + COUNT( - 76 ) + COUNT( * ) * - SUM( col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL > + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL ( + COUNT ( * ) ) * - ( MIN ( + col1 ) ) - ( + COUNT ( - 76 ) + COUNT ( * ) * - SUM ( col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL > + col0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - 79 FROM tab2 cor0
----
-4029
-5293
-6083

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 86 * + col0 col2 FROM tab2 AS cor0
----
4007
5581
6517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT - CAST( ( ( - col0 ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - CAST ( ( ( - col0 ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - MAX( + 89 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6042
SELECT - MAX ( + 89 ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col0 - + col1 AS col0 FROM tab2
----
-2167
-4173
-5692

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

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

query I rowsort
SELECT ALL 23 * - col0 AS col0 FROM tab1
----
-1173
-1955
-2093

query III rowsort
SELECT * FROM tab0 WHERE col1 / 37 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6047
SELECT + CAST ( + + 9 AS INTEGER ) FROM tab2
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT DISTINCT 93 + 21 + COUNT( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6048
SELECT DISTINCT 93 + 21 + COUNT ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 * - col2 col1 FROM tab1 AS cor0
----
129024
17405
217328

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

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

query I rowsort
SELECT DISTINCT 80 * col2 AS col2 FROM tab0
----
3760
7920
800

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL - SUM( - 41 ) AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL - SUM ( - 41 ) AS col1 FROM tab2 AS cor0
----
123

query I rowsort
SELECT + 42 * - col0 AS col2 FROM tab0 AS cor0
----
-3654
-4074
-630

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 + + col2 )
----

query I rowsort
SELECT DISTINCT col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT - 77 * SUM( col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + + 71 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT - 77 * SUM ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 + + 71 AND ( NULL )
----
NULL

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

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

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

query I rowsort
SELECT - 31 + 14 FROM tab0 AS cor0 WHERE NOT 44 IS NULL
----
-17
-17
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT ALL CAST( ( + MIN( DISTINCT 31 ) ) AS SIGNED ) FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL CAST ( ( + MIN ( DISTINCT 31 ) ) AS INTEGER ) FROM tab1 cor0
----
31

query I rowsort
SELECT + ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT + ( + MIN( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-6065
SELECT + ( + MIN ( DISTINCT - col0 ) ) AS col1 FROM tab0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT + + 19 + COUNT( * ) * + ( 69 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < + col2
----
19

skipif mysql # not compatible
query I rowsort label-6067
SELECT + + 19 + COUNT ( * ) * + ( 69 ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < + col2
----
19

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

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

query I rowsort
SELECT col0 + + col1 + 69 * col0 AS col1 FROM tab0 AS cor0
----
1131
6111
6791

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

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

query II rowsort
SELECT ALL - + 79 AS col2, - col1 FROM tab0 AS cor0 WHERE + 95 IS NULL
----

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

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

query I rowsort
SELECT + 38 - col1 AS col0 FROM tab2
----
-13
-29
-39

query I rowsort
SELECT 79 - - col1 * - col0 FROM tab0
----
-1136
-1748
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( 46 ) col2, + 40 + + col2 FROM tab1
----
46
108
46
136
46
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab2 WHERE - 64 + col2 + + col0 NOT BETWEEN 23 / + col0 AND - col0 - + 80
----
20
20
20

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6079
SELECT - - 38 AS col2, col0 DIV col0 FROM tab0 AS cor0
----
38
1
38
1
38
1

skipif mysql # not compatible
query II rowsort label-6079
SELECT - - 38 AS col2, col0 / col0 FROM tab0 AS cor0
----
38
1
38
1
38
1

query I rowsort
SELECT DISTINCT + 33 * - + 65 FROM tab2 AS cor0
----
-2145

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT ALL + col2 DIV - - col1 AS col1 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + col2 / - - col1 AS col1 FROM tab1
----
1
11
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6082
SELECT + 11 * - CAST( ( col1 ) AS SIGNED ) * - col2 * - - col2 * - col1 FROM tab0
----
-107811
-159425739
-485100

skipif mysql # not compatible
query I rowsort label-6082
SELECT + 11 * - CAST ( ( col1 ) AS INTEGER ) * - col2 * - - col2 * - col1 FROM tab0
----
-107811
-159425739
-485100

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( 4 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) * - 70 AS col0 FROM tab0 cor0
----
1470
5670
70

query I rowsort
SELECT - 11 * - 68 - - col2 + - 74 AS col0 FROM tab1 cor0
----
733
742
770

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6088
SELECT ALL - 22 DIV + + col1 + + 67 FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - 22 / + + col1 + + 67 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT + col0 * + 50 AS col2 FROM tab2 AS cor0
----
2300
3200
3750

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL - 9 - + COUNT( * ) AS col0 FROM tab2 WHERE NULL <= NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - 9 - + COUNT ( * ) AS col0 FROM tab2 WHERE NULL <= NULL
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6094
SELECT - CAST( NULL AS DECIMAL ) * - CAST( - 32 AS DECIMAL ) * - 66 * - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT - CAST ( NULL AS REAL ) * - CAST ( - 32 AS REAL ) * - 66 * - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT ALL MIN( DISTINCT + - 70 ) col2 FROM tab2
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6095
SELECT ALL MIN ( DISTINCT + - 70 ) col2 FROM tab2
----
-70

query I rowsort
SELECT col2 * 10 * - col1 + - + 51 AS col0 FROM tab2 cor0
----
-11781
-30851
-38911

query I rowsort
SELECT 71 + - ( 21 ) FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - col2 + - - 18 + - col0 * - col2 FROM tab0 AS cor0
----
676
878
9522

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT MAX( col2 ) + + - 82 AS col2 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT MAX ( col2 ) + + - 82 AS col2 FROM tab1 AS cor0
----
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6101
SELECT 86 + 47 + - + CAST( NULL AS SIGNED ) + - + 40 * - 73 * - - AVG ( - CAST( NULL AS SIGNED ) ) + 71 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6101
SELECT 86 + 47 + - + CAST ( NULL AS INTEGER ) + - + 40 * - 73 * - - AVG ( - CAST ( NULL AS INTEGER ) ) + 71 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 84 + + 45 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT MAX( ALL + - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-6104
SELECT MAX ( ALL + - 41 ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT col2 * + + col0 * - col2 AS col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( - + col0 ) * 84 )
----
0

skipif mysql # not compatible
query I rowsort label-6106
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + ( - + col0 ) * 84 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT - 35 AS col1, - COUNT( * ) AS col0 FROM tab2
----
-35
-3

skipif mysql # not compatible
query II rowsort label-6107
SELECT - 35 AS col1, - COUNT ( * ) AS col0 FROM tab2
----
-35
-3

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

skipif mysql # not compatible
query II rowsort label-6108
SELECT ALL - - 75 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
75
3

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

query II rowsort
SELECT 30 + - + 54 AS col2, + col0 * - col1 FROM tab0 AS cor0
----
-24
-1215
-24
-1827
-24
-97

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

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT + - COUNT( * ) + + 10 * + 27 col2 FROM tab1 AS cor0 WHERE NOT ( 31 ) NOT BETWEEN NULL AND col1 * + col2 * + col1
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6113
SELECT DISTINCT + - COUNT ( * ) + + 10 * + 27 col2 FROM tab1 AS cor0 WHERE NOT ( 31 ) NOT BETWEEN NULL AND col1 * + col2 * + col1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL - 51 * - COUNT( - col2 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL - 51 * - COUNT ( - col2 ) FROM tab0
----
153

query I rowsort
SELECT + col1 FROM tab2 WHERE + col2 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - 7 * 29 + + + col2 NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 20 * + + ( 37 ) AS col1 FROM tab2
----
740

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6119
SELECT COUNT( * ) DIV 21 * + 25 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6119
SELECT COUNT ( * ) / 21 * + 25 FROM tab2, tab1 AS cor0
----
0

query II rowsort
SELECT ALL col2 + - + 38 AS col2, + col0 + 30 * - col0 AS col2 FROM tab2
----
-15
-1334
2
-1856
20
-2175

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

query I rowsort
SELECT DISTINCT + col1 + col0 + 8 FROM tab1 AS cor0
----
146
73
98

query I rowsort
SELECT DISTINCT + 72 + col0 AS col1 FROM tab0 cor0
----
159
169
87

query II rowsort
SELECT - - 82 + - 76, + 22 AS col2 FROM tab2 AS cor0
----
6
22
6
22
6
22

query I rowsort
SELECT + + 52 FROM tab0 AS cor0 WHERE - 92 * col0 > + - col0
----

query I rowsort
SELECT DISTINCT - 73 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL + col2 * ( ( 30 ) ) AS col0 FROM tab2
----
1200
1740
690

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

query I rowsort
SELECT ALL - col2 + + + 61 FROM tab1
----
-35
-7
2

query I rowsort
SELECT DISTINCT + + 92 + - - 75 AS col2 FROM tab2 AS cor0
----
167

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 32 / 81 + - 2 NOT IN ( + col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + 47 * + col1 * col2 + col0 * - - col0 FROM tab2 AS cor0
----
148779
188200
57196

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT MAX( DISTINCT ( col1 ) ) * + SUM( - + col2 ) FROM tab0 AS cor0 WHERE + col2 BETWEEN col2 AND - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT MAX ( DISTINCT ( col1 ) ) * + SUM ( - + col2 ) FROM tab0 AS cor0 WHERE + col2 BETWEEN col2 AND - + col1
----
NULL

query I rowsort
SELECT DISTINCT + col1 - col2 - + 42 + + col1 FROM tab1 AS cor0
----
-110
-16
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6136
SELECT + + 82 AS col2, ( - AVG ( DISTINCT + ( - col0 ) ) ) + + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6136
SELECT + + 82 AS col2, ( - AVG ( DISTINCT + ( - col0 ) ) ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 = NULL
----
82
NULL

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

skipif mysql # not compatible
query I rowsort label-6137
SELECT - ( - MAX ( ALL - - 12 ) ) AS col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6138
SELECT COUNT( * ) * COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6138
SELECT COUNT ( * ) * COUNT ( * ) col2 FROM tab2
----
9

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

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - col0 / + 53 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6140
SELECT + COUNT( * ) DIV - - 89 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6140
SELECT + COUNT ( * ) / - - 89 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab1 cor0
----
11

query II rowsort
SELECT col0 * + col1, + col0 FROM tab0 AS cor0
----
1215
15
1827
87
97
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT + MIN( - - ( + - 69 ) ) + + + 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

skipif mysql # not compatible
query I rowsort label-6144
SELECT + MIN ( - - ( + - 69 ) ) + + + 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-50

query II rowsort
SELECT DISTINCT + col2, - 95 + + + col1 FROM tab2
----
23
-44
40
-18
58
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT ALL 84 * + COUNT( * ) AS col0 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL 84 * + COUNT ( * ) AS col0 FROM tab1
----
252

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

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

query I rowsort
SELECT DISTINCT col2 + + + 52 AS col0 FROM tab0 AS cor0
----
151
62
99

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

query I rowsort
SELECT ALL - + col0 * 19 + - - 17 + + - 43 FROM tab2 AS cor0
----
-1242
-1451
-900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6152
SELECT DISTINCT + + COUNT( DISTINCT - CAST( + - col2 AS SIGNED ) ) + - - 50 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT + + COUNT ( DISTINCT - CAST ( + - col2 AS INTEGER ) ) + - - 50 FROM tab1 AS cor0
----
53

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

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

query I rowsort
SELECT col1 * + col0 * - - 56 AS col0 FROM tab1 AS cor0
----
23800
239512
39984

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0 * - + 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT SUM( ALL + col1 ) + - 11 FROM tab2 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-6157
SELECT SUM ( ALL + col1 ) + - 11 FROM tab2 AS cor0
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT - col1 DIV - 89 + + + col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6158
SELECT - col1 / - 89 + + + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + - col2 + - + 15 + + col0 * - + 9 AS col0 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ALL - SUM( DISTINCT + + col1 ) AS col0 FROM tab2 WHERE NOT col1 IN ( col2 * + ( col0 ) )
----
-195

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - SUM ( DISTINCT + + col1 ) AS col0 FROM tab2 WHERE NOT col1 IN ( col2 * + ( col0 ) )
----
-195

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

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

query I rowsort
SELECT DISTINCT col2 * + - 35 FROM tab1 AS cor0
----
-2065
-2380
-3360

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 54 AND ( - ( + col0 ) * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6164
SELECT + 15, 38 DIV COUNT( col0 ) + + 15 + 56 + + COUNT( * ) col0 FROM tab2 AS cor0
----
15
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6164
SELECT + 15, 38 / COUNT ( col0 ) + + 15 + 56 + + COUNT ( * ) col0 FROM tab2 AS cor0
----
15
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 40 * + - col2 col0 FROM tab2
----
123200
155440
46920

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

query I rowsort
SELECT ALL + col2 * + ( col1 ) - + col2 AS col2 FROM tab0 AS cor0
----
0
200
3760

query I rowsort
SELECT DISTINCT - 9 + - col0 - + col0 + + 96 FROM tab1 AS cor0
----
-15
-83
-95

query I rowsort
SELECT col1 * - col1 FROM tab0 AS cor0 WHERE NOT 48 + - + col2 - + col1 * + col2 * - 98 - + col2 * + col0 IS NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT DISTINCT - + COUNT( * ) * 2 AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT - + COUNT ( * ) * 2 AS col1 FROM tab0 AS cor0
----
-6

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

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

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

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

query I rowsort
SELECT ALL - col2 * - 50 AS col1 FROM tab0
----
2350
4950
500

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

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

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

query I rowsort
SELECT + 94 * + col2 AS col2 FROM tab0
----
4418
9306
940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, - col2 * col0 FROM tab1
----
51
-4896
85
-5015
91
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT ALL COUNT( ALL 32 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL COUNT ( ALL 32 ) FROM tab0
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, 29 AS col1 FROM tab1 AS cor0
----
51
29
85
29
91
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT DISTINCT 78 * + - COUNT( * ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT 78 * + - COUNT ( * ) FROM tab1 AS cor0
----
-234

query I rowsort
SELECT - + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

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

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

query I rowsort
SELECT DISTINCT - 96 + col2 * - col2 * - col0 AS col0 FROM tab0 cor0
----
33039
8604
950601

query I rowsort
SELECT ALL - 28 * + 75 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col2 IS NULL )
----
-2100
-2100
-2100

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

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT 84 <> + col1 / - col0 + ( + 60 )
----

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

query II rowsort
SELECT ALL col0, 16 FROM tab2 WHERE NOT col0 = - + col1
----
46
16
64
16
75
16

query II rowsort
SELECT - col1 * + + col1, col1 FROM tab2 WHERE + + 87 IS NOT NULL
----
-2601
51
-4489
67
-5929
77

query I rowsort
SELECT ALL 13 * + + col2 FROM tab1
----
1248
767
884

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

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

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

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

query I rowsort
SELECT ALL + col2 + + col1 + - + col0 * + + 85 + - - 70 + - + col0 AS col1 FROM tab2
----
-3812
-5317
-6255

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 33 ) > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6199
SELECT DISTINCT - MIN( - col0 ) * 79 + CAST( - COUNT( ALL + - CAST( + 66 AS SIGNED ) ) AS SIGNED ) + + SUM( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
6959

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - MIN ( - col0 ) * 79 + CAST ( - COUNT ( ALL + - CAST ( + 66 AS INTEGER ) ) AS INTEGER ) + + SUM ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
6959

query I rowsort
SELECT + 64 + + ( col2 ) + - + 81 FROM tab1 AS cor0
----
42
51
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6201
SELECT ALL + 78 DIV + 30 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + 78 / + 30 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col0 / + - 24 * - 2 * + - 51
----

query I rowsort
SELECT DISTINCT col0 * + col0 + - - col2 * col2 FROM tab1 cor0
----
10706
11817
12905

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT DISTINCT - + COUNT( * ) * - - 61 col2, - 41 FROM tab1 AS cor0
----
-183
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6205
SELECT DISTINCT - + COUNT ( * ) * - - 61 col2, - 41 FROM tab1 AS cor0
----
-183
-41

query I rowsort
SELECT ALL + ( col0 ) * + 80 AS col0 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # DIV for integer division: 
query I rowsort label-6207
SELECT DISTINCT + + 50 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + + 50 / + col0 AS col0 FROM tab2 AS cor0
----
0
1

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

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL ( + + COUNT ( * ) ) * CAST ( - 58 AS INTEGER ) AS col1 FROM tab2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT ALL + COUNT( - 97 ) * COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL + COUNT ( - 97 ) * COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 WHERE NOT col0 + 95 + - + col2 <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT DISTINCT 86 DIV - 35 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT 86 / - 35 AS col0 FROM tab1
----
-2

query I rowsort
SELECT + col2 / + col2 FROM tab0 WHERE NOT - col1 * - col0 NOT IN ( + + col1 + - + col0, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT DISTINCT col1 DIV - 47 col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6213
SELECT DISTINCT col1 / - 47 col1 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + + col1 col1 FROM tab1
----
196
658
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN + col0 + 83 / - col0 * + col2 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-6216
SELECT MAX ( ALL 86 ) AS col2 FROM tab0 AS cor0
----
86

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

query I rowsort
SELECT ALL + + col2 * 45 + + col2 AS col0 FROM tab0 AS cor0
----
2162
4554
460

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT - - col1 + - + col0 + + col0 DIV - - 97 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-6220
SELECT - - col1 + - + col0 + + col0 / - - 97 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT DISTINCT 9 * + col1 DIV col1 * - + 17 + col1 col2 FROM tab2 AS cor0
----
-102
-76
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6221
SELECT DISTINCT 9 * + col1 / col1 * - + 17 + col1 col2 FROM tab2 AS cor0
----
-102
-76
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL + COUNT( + 98 ) FROM tab2 WHERE + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL + COUNT ( + 98 ) FROM tab2 WHERE + - col1 IS NOT NULL
----
3

query I rowsort
SELECT 92 + - col1 FROM tab2
----
15
25
41

query I rowsort
SELECT ALL + col1 + - + 88 FROM tab1
----
-41
-74
-83

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE col0 / - 16 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - + 23 col0 FROM tab2 AS cor0
----
69
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT 76 * - + COUNT( * ) * - 9 * + + COUNT( * ) FROM tab1
----
6156

skipif mysql # not compatible
query I rowsort label-6228
SELECT 76 * - + COUNT ( * ) * - 9 * + + COUNT ( * ) FROM tab1
----
6156

query I rowsort
SELECT DISTINCT - + 56 * - - col2 - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
-1927
310
4059

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

query I rowsort
SELECT - + 86 * + col0 AS col1 FROM tab2 AS cor0
----
-3956
-5504
-6450

query I rowsort
SELECT - + col2 * - 97 * + 2 + 34 FROM tab1 AS cor0 WHERE NOT col0 + col1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT DISTINCT + CAST( - SUM( + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-103

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6238
SELECT + col0 AS col1, - col0 / + col1 * + 90 * + - 61 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6238
SELECT + col0 AS col1, - col0 / + col1 * + 90 * + - 61 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT + 63 AS col2, + 43 AS col2 FROM tab1
----
63
43
63
43
63
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col2 col2 FROM tab1
----
-51
96
-85
59
-91
68

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

skipif mysql # not compatible
query II rowsort label-6241
SELECT COUNT ( * ) AS col1, - COUNT ( * ) - + 26 AS col0 FROM tab0
----
3
-29

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE - 49 + + 13 + 69 / col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT col0 * - - col0 * - col2 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col2 * col1 * - col1 * - col0 + 38 * - + col2 AND - 37
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + + col1 ) = - - col2 + + 44
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + + 92 AS col2 FROM tab2 cor0
----
143
159
169

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT - 11 DIV - + col1 * + col1 FROM tab0 AS cor0
----
0
0
11

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 11 / - + col1 * + col1 FROM tab0 AS cor0
----
0
0
11

query II rowsort
SELECT ALL col1 AS col1, + col0 * col1 * - - col1 AS col1 FROM tab2 AS cor0
----
51
119646
67
336675
77
379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 * + 50 + + 92 col2 FROM tab1 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + + + col2, 71 col2 FROM tab2
----
116
71
46
71
80
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL - 63 * MAX( + col2 ) FROM tab1
----
-6048

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - 63 * MAX ( + col2 ) FROM tab1
----
-6048

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT ALL - col0 + - 0 * + col0 DIV + col0 * - 51 DIV - + 9 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL - col0 + - 0 * + col0 / + col0 * - 51 / - + 9 FROM tab0
----
-15
-87
-97

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

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

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

query II rowsort
SELECT ALL - col0 - + col1 AS col0, 60 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
-108
160
-96
2269
-98
9861

query I rowsort
SELECT - 42 * - - 82 FROM tab2 AS cor0
----
-3444
-3444
-3444

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT ( + 78 ) - - - 39 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ( + 78 ) - - - 39 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT + SUM( - 77 ) - COUNT( * ) AS col1 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-6259
SELECT + SUM ( - 77 ) - COUNT ( * ) AS col1 FROM tab0
----
-234

query I rowsort
SELECT 13 - - col0 AS col1 FROM tab0
----
100
110
28

query II rowsort
SELECT DISTINCT + col2, col1 + col2 AS col0 FROM tab0
----
10
31
47
128
99
100

query II rowsort
SELECT 21 - col2 + + col2, col0 + col0 AS col0 FROM tab2
----
21
128
21
150
21
92

query III rowsort
SELECT * FROM tab2 WHERE NULL = - - 91
----

query I rowsort
SELECT + 14 FROM tab0 WHERE + col1 NOT IN ( - + col2 * - col1 + 35, col2, - - col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT - MIN( + - 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6266
SELECT - MIN ( + - 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL + + 31 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

skipif mysql # not compatible
query I rowsort label-6268
SELECT + COUNT ( ALL 50 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 61 + - col0 col1 FROM tab1 AS cor0
----
-3684
-4239
-5907

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 25 )
----

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

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

query II rowsort
SELECT - ( col0 ) * + + ( - col1 ) + col2, - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
4345
-47
484
-5
810
-14

query I rowsort
SELECT 82 * + col1 * ( - col1 ) + + col2 FROM tab1 AS cor0
----
-15976
-181070
-1991

query I rowsort
SELECT - 42 * + - col2 FROM tab1 AS cor0
----
2478
2856
4032

query I rowsort
SELECT ALL + col1 * - + ( + 71 ) FROM tab0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE col2 + - 91 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6276
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE col2 + - 91 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 = + - 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6279
SELECT - + COUNT( * ) + - 55 AS col0 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6279
SELECT - + COUNT ( * ) + - 55 AS col0 FROM tab0 AS cor0
----
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT - + COUNT( * ) * - 39 AS col0 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-6281
SELECT - + COUNT ( * ) * - 39 AS col0 FROM tab0 AS cor0
----
117

query I rowsort
SELECT ALL - 2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + - 99 NOT BETWEEN col1 + 63 AND + col1
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT 35 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT 35 IS NULL
----
3

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

query I rowsort
SELECT ALL + col0 + + col0 + + 40 + col1 * col1 AS col0 FROM tab1 AS cor0
----
235
2431
338

query I rowsort
SELECT 1 FROM tab0 cor0 WHERE - ( - col1 ) IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - MIN( DISTINCT + col1 ) * + + 30 + - - SUM( DISTINCT + 54 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6289
SELECT - MIN ( DISTINCT + col1 ) * + + 30 + - - SUM ( DISTINCT + 54 ) AS col2 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT - col0 * + 31 - ( ( col0 ) ) + - col2 AS col1, 97 FROM tab0 AS cor0
----
-2794
97
-3203
97
-527
97

query I rowsort
SELECT ALL + col0 * + + 25 * + - 5 - 73 * 2 FROM tab2 cor0
----
-5896
-8146
-9521

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

query I rowsort
SELECT + ( col2 ) * - col2 + - col0 FROM tab1 AS cor0
----
-3566
-4715
-9267

query I rowsort
SELECT DISTINCT col0 * + 79 AS col2 FROM tab1 AS cor0
----
4029
6715
7189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6295
SELECT ALL + + COUNT( * ) + - + SUM( ALL + - CAST( col2 AS SIGNED ) ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
124
NULL

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL + + COUNT ( * ) + - + SUM ( ALL + - CAST ( col2 AS INTEGER ) ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
124
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT + + COUNT( * ) - - 92 * 37 FROM tab1 AS cor0
----
3407

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT + + COUNT ( * ) - - 92 * 37 FROM tab1 AS cor0
----
3407

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT + MAX( + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 18 * - col2 * col0 AND + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT + MAX ( + col1 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 18 * - col2 * col0 AND + 75
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 AND col0 + 36
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 + 75 < + + col1
----

query I rowsort
SELECT + 18 * + 97 FROM tab0
----
1746
1746
1746

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL <= + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6302
SELECT + 36 DIV + - 87 * - col0, 23 AS col1 FROM tab0
----
0
23
0
23
0
23

skipif mysql # not compatible
query II rowsort label-6302
SELECT + 36 / + - 87 * - col0, 23 AS col1 FROM tab0
----
0
23
0
23
0
23

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

query II rowsort
SELECT - 84 * 17 AS col2, + col2 AS col2 FROM tab1
----
-1428
59
-1428
68
-1428
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT - COUNT( ALL - - col2 ) * - 16 AS col1 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6307
SELECT - COUNT ( ALL - - col2 ) * - 16 AS col1 FROM tab2 AS cor0
----
48

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 < col1
----
97
1
99

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6311
SELECT CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6311
SELECT CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT + 16 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-6313
SELECT MAX ( ALL - 18 ) FROM tab2 AS cor0
----
-18

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

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

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

query II rowsort
SELECT ALL + + col2, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query II rowsort
SELECT DISTINCT + 32, 9 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 36, 60 AS col0 FROM tab2 AS cor0
----
36
60

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL < NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT ( MAX( 85 ) ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-6326
SELECT ( MAX ( 85 ) ) FROM tab1
----
85

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6328
SELECT + ( + CAST( NULL AS SIGNED ) ), SUM( - - 97 ) AS col2 FROM tab2
----
NULL
291

skipif mysql # not compatible
query II rowsort label-6328
SELECT + ( + CAST ( NULL AS INTEGER ) ), SUM ( - - 97 ) AS col2 FROM tab2
----
NULL
291

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

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

query I rowsort
SELECT - - col1 + 17 FROM tab0 cor0
----
18
38
98

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

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

query I rowsort
SELECT ( - 68 ) + ( 26 ) FROM tab0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT ALL CAST( - col2 AS SIGNED ) * - col0 col2 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6333
SELECT ALL CAST ( - col2 AS INTEGER ) * - col0 col2 FROM tab2
----
1058
2560
4350

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

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

query II rowsort
SELECT ALL - 36 * - col0 * - col2 AS col1, - col2 FROM tab2
----
-156600
-58
-38088
-23
-92160
-40

query I rowsort
SELECT DISTINCT 8 + + col0 FROM tab0
----
105
23
95

query I rowsort
SELECT col0 * - 61 AS col0 FROM tab1 AS cor0
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6338
SELECT DISTINCT - CAST( - col2 AS SIGNED ) - + col0 col2 FROM tab0 AS cor0
----
-77
2
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6338
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) - + col0 col2 FROM tab0 AS cor0
----
-77
2
32

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6339
SELECT + ( + + COUNT ( DISTINCT 98 ) ) - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL + - col1 + 68 AS col1 FROM tab0 AS cor0
----
-13
47
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 24 * - - 0 * + col1 col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ( 52 ) - - col2 AS col1 FROM tab1 AS cor0
----
111
120
148

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT DISTINCT - 84 * - SUM( - 69 ) * + 82 col0 FROM tab1
----
-1425816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6343
SELECT DISTINCT - 84 * - SUM ( - 69 ) * + 82 col0 FROM tab1
----
-1425816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6344
SELECT + COUNT( * ) - COUNT( * ) - - MIN( col2 ) DIV + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6344
SELECT + COUNT ( * ) - COUNT ( * ) - - MIN ( col2 ) / + COUNT ( * ) FROM tab0
----
3

query II rowsort
SELECT ALL + col1 * col1 AS col0, + ( + col0 ) + + 26 AS col2 FROM tab0
----
1
123
441
113
6561
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL - 90 * - + MIN( col2 ) FROM tab0
----
900

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - 90 * - + MIN ( col2 ) FROM tab0
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6347
SELECT ALL col0, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-6347
SELECT ALL col0, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT DISTINCT + 57 DIV col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT + 57 / col2 FROM tab2
----
0
1
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6350
SELECT ALL + 64 DIV - - SUM( ALL - col1 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT ALL + 64 / - - SUM ( ALL - col1 ) AS col1 FROM tab1
----
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 34 <> 1 + col1
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 40 + - col0
----

query II rowsort
SELECT col0, - 12 FROM tab0 AS cor0
----
15
-12
87
-12
97
-12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 < + 97 * - col1 OR NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6357
SELECT DISTINCT - 60 DIV - col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT - 60 / - col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE + 83 < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6360
SELECT * FROM tab1 AS cor0 WHERE NOT + 15 BETWEEN + col2 AND CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6360
SELECT * FROM tab1 AS cor0 WHERE NOT + 15 BETWEEN + col2 AND CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 26 * - - col0 FROM tab0 AS cor0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT + COUNT( 92 ) AS col0, 77 FROM tab1 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-6362
SELECT + COUNT ( 92 ) AS col0, 77 FROM tab1 AS cor0
----
3
77

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

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

skipif mysql # not compatible
query I rowsort label-6364
SELECT 19 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT - col2 + - 19 FROM tab1
----
-115
-78
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT col0 * - CAST( + + col1 AS SIGNED ) + 3 - - col2 + + col1 FROM tab2
----
-2269
-4808
-4897

skipif mysql # not compatible
query I rowsort label-6369
SELECT col0 * - CAST ( + + col1 AS INTEGER ) + 3 - - col2 + + col1 FROM tab2
----
-2269
-4808
-4897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT DISTINCT col2 * + CAST( - col1 AS SIGNED ) + - + 44 FROM tab0
----
-143
-254
-3851

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT col2 * + CAST ( - col1 AS INTEGER ) + - + 44 FROM tab0
----
-143
-254
-3851

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6371
SELECT ALL - - COUNT( * ) col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + + 30 + - - ( + CAST( NULL AS SIGNED ) ) + col0 AND + - 81
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6371
SELECT ALL - - COUNT ( * ) col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + + 30 + - - ( + CAST ( NULL AS INTEGER ) ) + col0 AND + - 81
----
0

query I rowsort
SELECT ALL - 97 + ( - 10 ) FROM tab0
----
-107
-107
-107

query I rowsort
SELECT ALL - ( - col1 ) + + + col1 AS col0 FROM tab1 AS cor0 WHERE col0 / + col2 IS NULL
----

query I rowsort
SELECT ALL 9 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT - MIN( DISTINCT + + 48 ) FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - MIN ( DISTINCT + + 48 ) FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ( col1 ) * + - 46 - + 46 AS col1 FROM tab0
----
-1012
-3772
-92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT - + ( + - col0 ) DIV + col0 + + col2 + - col1 FROM tab0 AS cor0
----
-10
-33
99

skipif mysql # not compatible
query I rowsort label-6378
SELECT - + ( + - col0 ) / + col0 + + col2 + - col1 FROM tab0 AS cor0
----
-10
-33
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - + - 44, - 86 col2 FROM tab1 AS cor0
----
129
-86
135
-86
95
-86

query I rowsort
SELECT + 88 + col2 FROM tab1 AS cor0
----
147
156
184

query I rowsort
SELECT ALL - - 52 - + col1 AS col2 FROM tab1 AS cor0
----
38
47
5

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

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

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

query I rowsort
SELECT + + 82 - + + col2 * + col2 AS col1 FROM tab1 WHERE NOT + col0 / - 14 * - - col1 * - 97 + + - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL + MAX( ALL + 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + MAX ( ALL + 0 ) FROM tab0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6387
SELECT ALL col2 AS col0, ( + - col2 ) * - col2 / CAST( NULL AS SIGNED ) + + col1 * - + 4 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6387
SELECT ALL col2 AS col0, ( + - col2 ) * - col2 / CAST ( NULL AS INTEGER ) + + col1 * - + 4 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6388
SELECT - col1 DIV - 72 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6388
SELECT - col1 / - 72 AS col2 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6390
SELECT 51 * - - CAST( NULL AS SIGNED ) * + COUNT( * ) * - + MAX( DISTINCT 97 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6390
SELECT 51 * - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - + MAX ( DISTINCT 97 ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT ALL - - col0 DIV 74 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - - col0 / 74 AS col0 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT ALL 9 + + col0 FROM tab2 AS cor0
----
55
73
84

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6396
SELECT - CAST ( NULL AS REAL ) * + SUM ( DISTINCT - col2 ) col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + ( - 4 ) AS col0 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE 10 / + 22 BETWEEN NULL AND - col1 * + col1 + - 40
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT + - col0 * + - 89 FROM tab0 AS cor0
----
1335
7743
8633

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT - MIN( - col1 ) * 9 col1 FROM tab2
----
693

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6402
SELECT - MIN ( - col1 ) * 9 col1 FROM tab2
----
693

query I rowsort
SELECT - col2 * + 90 * + 51 AS col0 FROM tab1
----
-270810
-312120
-440640

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT - ( - COUNT( + 43 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6404
SELECT - ( - COUNT ( + 43 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT DISTINCT ( - COUNT( * ) ) + + 22 AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT ( - COUNT ( * ) ) + + 22 AS col1 FROM tab2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT ALL ( 69 ) + + CAST( NULL AS SIGNED ) + COUNT( * ) + MAX( ALL - - 74 ) * - - ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL ( 69 ) + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + MAX ( ALL - - 74 ) * - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 34 AS col0 FROM tab1 AS cor0 WHERE - col2 BETWEEN + - col2 + - 22 AND col2
----
-34
-34
-34

query I rowsort
SELECT + ( + - col0 ) * - 35 + + 79 AS col0 FROM tab2 cor0
----
1689
2319
2704

query I rowsort
SELECT + 30 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
134
163
99

query I rowsort
SELECT - 81 * + + col0 FROM tab2
----
-3726
-5184
-6075

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6411
SELECT + col1 * + 44 / - 69 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT + col1 * + 44 / - 69 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 52 + - col0 FROM tab1
----
-103
-137
-143

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN NULL AND 42
----
91
47
68

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT 18 DIV col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6416
SELECT 18 / col2 FROM tab0 AS cor0
----
0
0
1

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 70 > - 28
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 23 AS col0 FROM tab1
----
1357
1564
2208

query I rowsort
SELECT ALL 28 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * + col0 / - col2 + - col2 col1, + col1 FROM tab0 WHERE NOT + 47 <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6423
SELECT - CAST ( NULL AS INTEGER ) * - 1 + col2 * col2 - 24 + - 70 col2 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT DISTINCT - col1 DIV - col0 * col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT - col1 / - col0 * col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6427
SELECT DISTINCT - - 23 DIV 31 + 72 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT - - 23 / 31 + 72 AS col0 FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL + col2 + - col1 - col0 FROM tab2 AS cor0
----
-101
-74
-84

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE 79 * 81 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT DISTINCT 96 DIV + col1 + + col1 FROM tab1 AS cor0
----
20
24
49

skipif mysql # not compatible
query I rowsort label-6430
SELECT DISTINCT 96 / + col1 + + col1 FROM tab1 AS cor0
----
20
24
49

query II rowsort
SELECT ALL + ( col0 ), col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6432
SELECT DISTINCT - 1, - MIN( ALL + col0 ) AS col1 FROM tab1
----
-1
-51

skipif mysql # not compatible
query II rowsort label-6432
SELECT DISTINCT - 1, - MIN ( ALL + col0 ) AS col1 FROM tab1
----
-1
-51

query I rowsort
SELECT DISTINCT + 29 * - col1 AS col1 FROM tab0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query II rowsort label-6434
SELECT 1, + MAX( DISTINCT - 43 ) AS col2 FROM tab2
----
1
-43

skipif mysql # not compatible
query II rowsort label-6434
SELECT 1, + MAX ( DISTINCT - 43 ) AS col2 FROM tab2
----
1
-43

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + - col1 AND + col1 * col2 * 7
----

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

query I rowsort
SELECT ALL - - col0 - + - 30 + - - col1 * - col0 * + ( + 71 ) * - + 18 * - + 82 FROM tab2 AS cor0
----
-245851340
-516434594
-526599795

query I rowsort
SELECT ALL + 51 + - 9 AS col0 FROM tab2 AS cor0
----
42
42
42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT SUM( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-195

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT SUM ( ALL - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-195

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6443
SELECT SUM( 87 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT SUM ( 87 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2 * + col1
----
NULL

query II rowsort
SELECT ALL - col1 AS col1, col0 * col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-14
2601
-47
8281
-5
7225

query I rowsort
SELECT ALL - 70 / col1 FROM tab1 WHERE NULL IN ( + col2, col1 * + col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT 87 AS col1, MIN( DISTINCT - + 96 ) AS col1 FROM tab2
----
87
-96

skipif mysql # not compatible
query II rowsort label-6448
SELECT 87 AS col1, MIN ( DISTINCT - + 96 ) AS col1 FROM tab2
----
87
-96

query I rowsort
SELECT + 30 * + + col1 FROM tab1
----
1410
150
420

query II rowsort
SELECT col1 AS col0, + 48 * - + col1 FROM tab2
----
51
-2448
67
-3216
77
-3696

query I rowsort
SELECT 70 FROM tab1 AS cor0 WHERE NOT - 75 IS NULL
----
70
70
70

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <> - + 27
----

query I rowsort
SELECT ( + 59 ) + col0 * col2 AS col0 FROM tab1
----
4955
5074
6247

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

query I rowsort
SELECT + 19 * + col0 FROM tab0
----
1653
1843
285

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT + col2 - + 21 * - col2 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / + col1 col0 FROM tab1 WHERE NOT + 50 >= ( 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL MIN( col0 ) * - 26 FROM tab0
----
-390

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL MIN ( col0 ) * - 26 FROM tab0
----
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT DISTINCT COUNT( * ) + + ( + COUNT( * ) ) * 74 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT COUNT ( * ) + + ( + COUNT ( * ) ) * 74 FROM tab0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL + COUNT( * ) - + CAST( 65 AS SIGNED ) * + 47 AS col2 FROM tab2
----
-3052

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + COUNT ( * ) - + CAST ( 65 AS INTEGER ) * + 47 AS col2 FROM tab2
----
-3052

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT COUNT( * ) * - 52 AS col2 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT COUNT ( * ) * - 52 AS col2 FROM tab2
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT - 97 * + col1 AS col1 FROM tab1 WHERE CAST( - col2 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6464
SELECT - 97 * + col1 AS col1 FROM tab1 WHERE CAST ( - col2 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT COUNT( * ) * 76 AS col2 FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-6465
SELECT COUNT ( * ) * 76 AS col2 FROM tab1
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT 66 * + col0 + + CAST( + col1 AS SIGNED ) FROM tab0
----
1071
5763
6403

skipif mysql # not compatible
query I rowsort label-6466
SELECT 66 * + col0 + + CAST ( + col1 AS INTEGER ) FROM tab0
----
1071
5763
6403

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 37 ) > ( - col0 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT + COUNT( * ) + - AVG ( DISTINCT + col2 ) * 67 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 * - 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + COUNT ( * ) + - AVG ( DISTINCT + col2 ) * 67 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 * - 24 )
----
NULL

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

query I rowsort
SELECT 74 - + col2 AS col0 FROM tab0 WHERE NOT + ( + col2 ) + + ( + col1 ) IS NULL
----
-25
27
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6473
SELECT col2 DIV 1 col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6473
SELECT col2 / 1 col1 FROM tab1
----
59
68
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 + col1 col1 FROM tab0
----
100
160
80

query I rowsort
SELECT ALL + 63 FROM tab1 WHERE NULL IS NULL
----
63
63
63

query III rowsort
SELECT * FROM tab2 WHERE NOT 15 <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT - COUNT( ALL col2 ) * - 67 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-6478
SELECT - COUNT ( ALL col2 ) * - 67 FROM tab1
----
201

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6479
SELECT - COUNT ( DISTINCT + col1 ) * + COUNT ( * ) col0 FROM tab2
----
-9

query I rowsort
SELECT - ( col1 ) - col0 * 80 FROM tab0
----
-1281
-6981
-7761

query I rowsort
SELECT DISTINCT 70 * - col0 - - col1 * 14 FROM tab1 AS cor0
----
-3374
-5712
-5880

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT ALL + 18 - - COUNT( * ) AS col1 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL + 18 - - COUNT ( * ) AS col1 FROM tab1 cor0
----
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + col2 >= 85 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - MAX( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - MAX ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6487
SELECT ALL MAX( ALL col2 ) DIV 68 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL MAX ( ALL col2 ) / 68 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 30 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6489
SELECT ALL COUNT( * ) DIV ( + 63 - 24 ) col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6489
SELECT ALL COUNT ( * ) / ( + 63 - 24 ) col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - col0 * - 15 AS col1 FROM tab2 cor0
----
1125
690
960

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - 94 + col0 ) AND ( NULL )
----

query I rowsort
SELECT + col2 * - 97 AS col0 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT ALL - 35 FROM tab1 AS cor0 WHERE + col2 / + col2 NOT BETWEEN + 51 AND NULL
----
-35
-35
-35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6495
SELECT DISTINCT col0 FROM tab0 cor0 WHERE - CAST( + 94 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT col0 FROM tab0 cor0 WHERE - CAST ( + 94 AS INTEGER ) = NULL
----

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

skipif mysql # not compatible
query I rowsort label-6496
SELECT col1 / 47 AS col0 FROM tab2 AS cor0
----
1
1
1

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 45 >= NULL
----

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 94 + col1 * - col1 ) IS NOT NULL OR + 66 * col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + col2 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT - 72 * + 88 + + 32 FROM tab0 cor0
----
-6304
-6304
-6304

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 55 col0 FROM tab2 AS cor0
----
-1265
-2200
-3190

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

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

query I rowsort
SELECT ( 16 ) FROM tab2
----
16
16
16

query III rowsort
SELECT * FROM tab1 WHERE 17 BETWEEN ( col1 / + col1 ) AND 73
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL + ( - col0 ) + - col1 + 69 AS col1 FROM tab2 AS cor0
----
-28
-72
-73

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

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

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

skipif mysql # not compatible
query I rowsort label-6516
SELECT + 15 + + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) * 58 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE 82 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 86 = + col1 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - - col1 FROM tab2 cor0 WHERE NULL <> - col2 * - + 38
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( ( col2 ) ) NOT BETWEEN 77 AND ( - 47 )
----
59
68
96

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + col1 / - col0 + + 19 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT - MIN( ALL - 57 ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT - MIN ( ALL - 57 ) AS col2 FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL - ( - + col1 ) - col2 FROM tab2 AS cor0
----
28
37
9

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

query I rowsort
SELECT DISTINCT 66 * - col2 AS col2 FROM tab1
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT DISTINCT - - SUM( ALL - 24 ) col1 FROM tab2 WHERE NOT - col0 IS NULL
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6526
SELECT DISTINCT - - SUM ( ALL - 24 ) col1 FROM tab2 WHERE NOT - col0 IS NULL
----
-72

query I rowsort
SELECT - col2 * col2 + + 11 FROM tab0
----
-2198
-89
-9790

query I rowsort
SELECT + col2 FROM tab1 WHERE ( - + col0 ) IS NOT NULL
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL SUM( DISTINCT 28 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL SUM ( DISTINCT 28 ) FROM tab0
----
28

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 65 + - - col0 BETWEEN 43 * - 52 AND NULL
----

query I rowsort
SELECT - 1 AS col1 FROM tab0 WHERE - 14 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 38 ) IS NULL
----

query I rowsort
SELECT ALL + 23 * + 90 + col0 AS col2 FROM tab1
----
2121
2155
2161

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT 71 + - 61 * - + MIN( + - col1 ) + + MAX( DISTINCT ( + col2 ) ) AS col0 FROM tab1
----
-2700

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT 71 + - 61 * - + MIN ( + - col1 ) + + MAX ( DISTINCT ( + col2 ) ) AS col0 FROM tab1
----
-2700

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT + COUNT( * ) DIV - MIN( DISTINCT - ( ( 5 ) ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6537
SELECT + COUNT ( * ) / - MIN ( DISTINCT - ( ( 5 ) ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 74 * + + col2 FROM tab1 AS cor0
----
4366
5032
7104

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT + COUNT( DISTINCT 86 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6539
SELECT + COUNT ( DISTINCT 86 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + - COUNT( * ) * - ( AVG ( col1 ) ) FROM tab2 WHERE NOT + col1 * + + 62 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6540
SELECT + - COUNT ( * ) * - ( AVG ( col1 ) ) FROM tab2 WHERE NOT + col1 * + + 62 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-96

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT + - col0 / + 8 FROM tab0 WHERE NOT 7 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query II rowsort label-6547
SELECT - COUNT ( * ) AS col2, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL + CAST( - 78 AS SIGNED ) AS col1 FROM tab2
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL + CAST ( - 78 AS INTEGER ) AS col1 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + 57 * - col0 FROM tab2 cor0
----
-2622
-3648
-4275

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 2 / col2 NOT BETWEEN - 37 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6552
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 16 / - ( + - 48 ) * - - col2 - + col2 * + CAST( NULL AS DECIMAL ) AND + col0
----

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 16 / - ( + - 48 ) * - - col2 - + col2 * + CAST ( NULL AS REAL ) AND + col0
----

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

query I rowsort
SELECT ALL - 98 + col1 FROM tab1 AS cor0
----
-51
-84
-93

query I rowsort
SELECT ALL 95 + 23 AS col0 FROM tab2 cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT - COUNT( * ) - + COUNT( ALL + col2 ) FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6556
SELECT - COUNT ( * ) - + COUNT ( ALL + col2 ) FROM tab1 cor0
----
-6

query I rowsort
SELECT + 76 - col0 + ( + ( col1 ) ) * + + 14 + - 50 * ( + col1 ) AS col2 FROM tab2 cor0
----
-1806
-2411
-2760

query I rowsort
SELECT ALL - 65 * + + 94 - + col2 + - - 5 AS col0 FROM tab0
----
-6115
-6152
-6204

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE + + col2 <> - - 73
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) >= - 95
----

query I rowsort
SELECT + 27 * + 86 + + - col1 FROM tab0
----
2241
2301
2321

query I rowsort
SELECT DISTINCT - 21 * + col0 + col1 AS col0 FROM tab0
----
-1806
-2036
-234

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

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

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

query I rowsort
SELECT DISTINCT - + ( - - col0 ) * - col0 * col1 FROM tab0 AS cor0
----
158949
18225
9409

query II rowsort
SELECT - col0 AS col0, 55 - + + col1 FROM tab0 AS cor0
----
-15
-26
-87
34
-97
54

query I rowsort
SELECT 53 * + col0 FROM tab1 cor0
----
2703
4505
4823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6569
SELECT DISTINCT + + col0 DIV - CAST( - 19 AS SIGNED ) FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + + col0 / - CAST ( - 19 AS INTEGER ) FROM tab2 AS cor0
----
2
3

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

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

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

skipif mysql # not compatible
query I rowsort label-6571
SELECT - 88 * CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT MIN( DISTINCT - 20 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT MIN ( DISTINCT - 20 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT 58 * - COUNT( * ) FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-6573
SELECT 58 * - COUNT ( * ) FROM tab1 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL - - 79 * - - MAX( ALL + 22 ) col2 FROM tab1 AS cor0
----
1738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6574
SELECT ALL - - 79 * - - MAX ( ALL + 22 ) col2 FROM tab1 AS cor0
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT 4 * + COUNT( * ) * + 12 + + 9 AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-6575
SELECT 4 * + COUNT ( * ) * + 12 + + 9 AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT + - col2 DIV - 60 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + - col2 / - 60 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL - ( + + 67 ) FROM tab1
----
-67
-67
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6578
SELECT ALL col2 + col0 DIV + 19 AS col0 FROM tab0
----
104
14
47

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL col2 + col0 / + 19 AS col0 FROM tab0
----
104
14
47

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

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE - 13 * - 40 + col1 = NULL
----

query I rowsort
SELECT ALL 41 + 40 + + col1 * col1 FROM tab2 AS cor0
----
2682
4570
6010

query I rowsort
SELECT - ( - ( - - col1 ) ) * - col0 FROM tab1 AS cor0 WHERE col2 * col2 + + col1 - + col0 * - col2 + + 55 IS NULL
----

query I rowsort
SELECT DISTINCT - ( 51 ) FROM tab1 AS cor0
----
-51

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 87 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL MAX( + + 72 ) col0 FROM tab0
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL + - ( + + COUNT( * ) ) + 7 col0 FROM tab1 AS cor0
----
4

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

query I rowsort
SELECT ALL - ( - 74 ) - + col1 AS col0 FROM tab1 AS cor0
----
27
60
69

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT + col1 + col2 DIV + 30 AS col0 FROM tab0 AS cor0
----
21
4
82

skipif mysql # not compatible
query I rowsort label-6591
SELECT + col1 + col2 / + 30 AS col0 FROM tab0 AS cor0
----
21
4
82

query I rowsort
SELECT DISTINCT - col2 - - 91 AS col0 FROM tab0 AS cor0
----
-8
44
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + + 4 * + + 98 col2 FROM tab2 AS cor0
----
334
352
369

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT DISTINCT + 55 * - + 30 + + COUNT( * ) * + 3 * + COUNT( * ) FROM tab0 AS cor0
----
-1623

skipif mysql # not compatible
query I rowsort label-6594
SELECT DISTINCT + 55 * - + 30 + + COUNT ( * ) * + 3 * + COUNT ( * ) FROM tab0 AS cor0
----
-1623

query I rowsort
SELECT col2 * col1 + - + col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT DISTINCT + col0 + 86 AS col2 FROM tab2 cor0
----
132
150
161

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col1 FROM tab0 WHERE NOT + 88 * col0 >= NULL
----

query II rowsort
SELECT col2 * - ( col1 ), col2 FROM tab0
----
-210
10
-3807
47
-99
99

query II rowsort
SELECT - col1 * + 68, + col1 FROM tab0
----
-1428
21
-5508
81
-68
1

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

query I rowsort
SELECT ALL - 56 * + col1 FROM tab1 WHERE NOT NULL < col1
----

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

skipif mysql # not compatible
query I rowsort label-6604
SELECT 72 / + COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT ALL + col2 * col1 + 49 FROM tab2 AS cor0
----
1222
3129
3935

query II rowsort
SELECT ALL - + col1 * - col2 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
1173
-51
3080
-77
3886
-67

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

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

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

query I rowsort
SELECT DISTINCT + 10 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
10

query I rowsort
SELECT - 78 + col0 AS col0 FROM tab0
----
-63
19
9

query I rowsort
SELECT - + col1 + + + 44 + ( - 40 ) * + + col1 AS col1 FROM tab1 AS cor0
----
-161
-1883
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT DISTINCT - ( COUNT( * ) ) * 63 AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - ( COUNT ( * ) ) * 63 AS col2 FROM tab0 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query II rowsort label-6613
SELECT ALL COUNT( * ) * - MIN( ALL + col0 ) AS col0, MAX( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
-138
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6613
SELECT ALL COUNT ( * ) * - MIN ( ALL + col0 ) AS col0, MAX ( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
-138
77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6615
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ), - 15 + + col1 AS col0 FROM tab2
----
NULL
36
NULL
52
NULL
62

skipif mysql # not compatible
query II rowsort label-6615
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ), - 15 + + col1 AS col0 FROM tab2
----
NULL
36
NULL
52
NULL
62

query I rowsort
SELECT DISTINCT ( - + 54 ) AS col0 FROM tab1
----
-54

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + col0 * + 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT ( + + 48 ), + COUNT( * ) col1 FROM tab1
----
48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6618
SELECT ( + + 48 ), + COUNT ( * ) col1 FROM tab1
----
48
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + ( - 80 ) * 87 - - 37 col0, + col0 - 72 FROM tab2 cor0
----
-6923
-26
-6923
-8
-6923
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + COUNT( * ) * + COUNT( * ) - - 21 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
102

skipif mysql # not compatible
query I rowsort label-6623
SELECT + COUNT ( * ) * + COUNT ( * ) - - 21 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
102

query I rowsort
SELECT + 8 AS col2 FROM tab2, tab1 AS cor0 WHERE NOT NULL = ( - 12 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + - 26 * - 6 col1 FROM tab0 cor0
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6626
SELECT DISTINCT + col1 DIV CAST( col1 AS SIGNED ) - - + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + col1 / CAST ( col1 AS INTEGER ) - - + col0 AS col1 FROM tab2 AS cor0
----
47
65
76

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

query I rowsort
SELECT 58 - - col0 * + 41 FROM tab2 AS cor0
----
1944
2682
3133

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

query I rowsort
SELECT 29 * col0 * col2 FROM tab1
----
141984
145435
179452

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

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

query I rowsort
SELECT DISTINCT 16 * col0 * - col2 FROM tab1
----
-78336
-80240
-99008

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT - col0 DIV 16 * col1 FROM tab0 AS cor0
----
-105
-6
0

skipif mysql # not compatible
query I rowsort label-6633
SELECT - col0 / 16 * col1 FROM tab0 AS cor0
----
-105
-6
0

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

query II rowsort
SELECT + col2 AS col0, + 29 FROM tab0 AS cor0
----
10
29
47
29
99
29

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

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

query II rowsort
SELECT - col2 AS col2, col0 AS col2 FROM tab2 AS cor0 WHERE NOT 64 IS NULL
----
-23
46
-40
64
-58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6640
SELECT DISTINCT - col2 DIV - col2 + - CAST( + 97 AS SIGNED ) FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT - col2 / - col2 + - CAST ( + 97 AS INTEGER ) FROM tab2 AS cor0
----
-96

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

skipif mysql # not compatible
query I rowsort label-6641
SELECT COUNT ( - 51 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col1 * + col2 + - + 84 + - 89 FROM tab1 AS cor0
----
1171
122
3023

query I rowsort
SELECT DISTINCT ( + - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT SUM( - + col0 ) + - 99 col1 FROM tab2 AS cor0
----
-284

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6644
SELECT SUM ( - + col0 ) + - 99 col1 FROM tab2 AS cor0
----
-284

query I rowsort
SELECT DISTINCT - ( + - 8 ) FROM tab0
----
8

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6648
SELECT - 62 / - - SUM( ALL - + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6648
SELECT - 62 / - - SUM ( ALL - + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL + - MIN( DISTINCT - ( + 46 ) ) AS col2 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL + - MIN ( DISTINCT - ( + 46 ) ) AS col2 FROM tab1 AS cor0
----
46

query I rowsort
SELECT ALL - - 10 AS col0 FROM tab1 cor0
----
10
10
10

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

query I rowsort
SELECT col1 * - 87 FROM tab2
----
-4437
-5829
-6699

query I rowsort
SELECT ALL + ( + 48 ) FROM tab1
----
48
48
48

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

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

query I rowsort
SELECT DISTINCT + 7 * - AVG ( - col0 ) FROM tab1 WHERE - 24 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6657
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, col2 + - col2 AS col1 FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6657
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, col2 + - col2 AS col1 FROM tab2
----
NULL
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6658
SELECT - + col1 DIV + col2 - - col1, 58 * - col0 col1 FROM tab0 cor0
----
1
-5626
19
-5046
80
-870

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6658
SELECT - + col1 / + col2 - - col1, 58 * - col0 col1 FROM tab0 cor0
----
1
-5626
19
-5046
80
-870

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

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

query I rowsort
SELECT ALL - 10 * - 43 FROM tab0
----
430
430
430

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT + MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-6662
SELECT + MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT DISTINCT + 67 DIV + 13 + col2 AS col0 FROM tab2 cor0
----
28
45
63

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + 67 / + 13 + col2 AS col0 FROM tab2 cor0
----
28
45
63

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

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

query I rowsort
SELECT ALL - col1 + - 30 FROM tab1 AS cor0
----
-35
-44
-77

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 NOT BETWEEN - col2 AND NULL
----
87
21
10

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6669
SELECT - CAST( NULL AS DECIMAL ) / - 76 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT - CAST ( NULL AS REAL ) / - 76 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 26 * col0, - col1 col0 FROM tab1
----
1326
-14
2210
-5
2366
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6671
SELECT col2 DIV + ( + - col2 ) AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6671
SELECT col2 / + ( + - col2 ) AS col1 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT ALL - col1 + - col1 + - - col2 AS col2 FROM tab0
----
-115
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT 45 - - COUNT( * ) + - MIN( + col1 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-6674
SELECT 45 - - COUNT ( * ) + - MIN ( + col1 ) FROM tab0
----
47

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

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL + 16 * - COUNT ( * ) + - + ( - COUNT ( * ) ) FROM tab2
----
-45

query I rowsort
SELECT DISTINCT + col2 + + col2 - - + 0 AS col1 FROM tab1
----
118
136
192

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT + 22 + - + COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6678
SELECT + 22 + - + COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
19

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - - col2 col2, - col2 FROM tab1 cor0
----
110
-96
115
-68
64
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT + 99 * 88 - + - MIN( col1 ) AS col0 FROM tab0
----
8713

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + 99 * 88 - + - MIN ( col1 ) AS col0 FROM tab0
----
8713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 27 col1, - col2 FROM tab1
----
27
-59
27
-68
27
-96

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

query I rowsort
SELECT DISTINCT + - 3 * - - col1 AS col1 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT col1 * - col1 + - 22 + - + col1 * - - ( - - 41 ) * - col1 AS col0 FROM tab2 AS cor0
----
104018
179538
237138

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 = col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2, ( + col1 ) FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 17 * + col0 < NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + - 93 NOT IN ( + + 56 * 4 + - - col2 - + + ( - col2 ) )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6694
SELECT DISTINCT 77 DIV COUNT( * ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT 77 / COUNT ( * ) AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT + 18 * - COUNT( * ) AS col2 FROM tab0, tab0 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 18 * - COUNT ( * ) AS col2 FROM tab0, tab0 cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - COUNT( DISTINCT 96 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6696
SELECT - COUNT ( DISTINCT 96 ) FROM tab2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT + SUM( ALL - 53 ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-6698
SELECT + SUM ( ALL - 53 ) FROM tab1
----
-159

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

query I rowsort
SELECT + 28 AS col0 FROM tab0 cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL - COUNT( * ) * + 28 + ( COUNT( * ) ) * - 10 AS col2 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL - COUNT ( * ) * + 28 + ( COUNT ( * ) ) * - 10 AS col2 FROM tab0 AS cor0
----
-114

query I rowsort
SELECT 55 * 39 * + col0 FROM tab2 cor0
----
137280
160875
98670

query I rowsort
SELECT ALL 96 + - col0 FROM tab0
----
-1
81
9

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 17 >= NULL
----

query I rowsort
SELECT DISTINCT + - 69 + + col0 FROM tab1 AS cor0
----
-18
16
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / - col2 BETWEEN - - col0 AND col1
----

query II rowsort
SELECT DISTINCT col0 * col1 + ( + col0 ) + col1 AS col0, 43 AS col2 FROM tab0 AS cor0
----
1311
43
1935
43
195
43

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

query I rowsort
SELECT - + col0 + - - ( 33 ) * - col0 FROM tab1 AS cor0
----
-1734
-2890
-3094

query II rowsort
SELECT ALL - col1 * + 38 + + 42, + col0 AS col1 FROM tab2 AS cor0
----
-1896
46
-2504
75
-2884
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6712
SELECT DISTINCT - + 26 + CAST( NULL AS SIGNED ) + + 73 * - COUNT( * ) + + + 68 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - + 26 + CAST ( NULL AS INTEGER ) + + 73 * - COUNT ( * ) + + + 68 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= 4
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col0 * - col1 FROM tab0
----
10
-1827
47
-1215
99
-97

query II rowsort
SELECT - 40 AS col0, + ( - + col0 ) FROM tab1
----
-40
-51
-40
-85
-40
-91

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + - 76 > 13 * + + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 7 < NULL OR NOT ( NOT 65 BETWEEN - 54 AND - 83 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6718
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT NULL IN ( col1 * CAST( + col2 AS DECIMAL ) + - col1, + col2, + 45 * + + col2 + + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( col1 * CAST ( + col2 AS REAL ) + - col1, + col2, + 45 * + + col2 + + - col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col0 FROM tab2
----
-2346
-4928
-5025

query II rowsort
SELECT - 75 * - - col2 AS col2, col2 FROM tab0 AS cor0
----
-3525
47
-7425
99
-750
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL - COUNT( * ) * - 86 - + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 AND - 9
----
261

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL - COUNT ( * ) * - 86 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN - col2 AND - 9
----
261

query I rowsort
SELECT 1 * 31 * + col1 FROM tab0 AS cor0
----
2511
31
651

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - SUM( - - 1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6723
SELECT - SUM ( - - 1 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 50 AS col0 FROM tab0 cor0
----
50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col1 col0 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT + - MIN( ALL + ( - + 84 ) ) col2 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6727
SELECT + - MIN ( ALL + ( - + 84 ) ) col2 FROM tab0 AS cor0
----
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT DISTINCT + col0 DIV + 68 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT + col0 / + 68 AS col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, - 72 col0 FROM tab1
----
51
-72
85
-72
91
-72

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

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

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

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

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

query I rowsort
SELECT ALL + 37 * + 80 AS col1 FROM tab1
----
2960
2960
2960

query I rowsort
SELECT + ( + col0 ) * col0 * col1 - + col2 FROM tab0
----
158939
18178
9310

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 40 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6738
SELECT CAST ( - 64 AS INTEGER ) FROM tab2 AS cor0
----
-64
-64
-64

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

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

query I rowsort
SELECT ALL 57 + + 41 AS col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 * - col0 - - col0 col2 FROM tab0 cor0
----
-2001
-2231
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT ALL + 61 * 61 - MIN( ALL 78 ) AS col0 FROM tab2 AS cor0
----
3643

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL + 61 * 61 - MIN ( ALL 78 ) AS col0 FROM tab2 AS cor0
----
3643

query I rowsort
SELECT DISTINCT + - col1 - - - col1 + 80 AS col0 FROM tab2 AS cor0
----
-22
-54
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT DISTINCT - ( - MIN( 23 ) ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT - ( - MIN ( 23 ) ) FROM tab1
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT + 45 + - col1 DIV - col1 AS col2 FROM tab0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-6746
SELECT + 45 + - col1 / - col1 AS col2 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT - 77 + 87 * - - 35 + - SUM( ALL + - 7 ) * - 63 FROM tab1
----
1645

skipif mysql # not compatible
query I rowsort label-6747
SELECT - 77 + 87 * - - 35 + - SUM ( ALL + - 7 ) * - 63 FROM tab1
----
1645

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

query I rowsort
SELECT DISTINCT ( - 76 ) * + - 57 AS col2 FROM tab2 AS cor0
----
4332

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, col0, + 78, - - 34, col2 )
----

query I rowsort
SELECT - 61 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT CAST ( - 72 AS INTEGER ) FROM tab1
----
-72

query I rowsort
SELECT DISTINCT 72 * 71 AS col1 FROM tab0 WHERE NOT NULL IN ( + col0, + ( col2 ), - col2 )
----

query I rowsort
SELECT - col1 + + col1 + - 24 + + col1 / col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT - col2 DIV 74 + - col1 FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-6756
SELECT - col2 / 74 + - col1 FROM tab1 AS cor0
----
-15
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT - AVG ( col1 ) * 18 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT - AVG ( col1 ) * 18 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT + - 17 * 4 + 72 AS col1 FROM tab2 AS cor0
----
4
4
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6761
SELECT - 95 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col0 < - 74 / - + col2 * + col0
----

skipif mysql # not compatible
query II rowsort label-6761
SELECT - 95 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col0 < - 74 / - + col2 * + col0
----

query I rowsort
SELECT + col0 + + 7 FROM tab1
----
58
92
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6763
SELECT DISTINCT + CAST( - + ( 4 ) AS SIGNED ) + + col1 * - 79 - + 54 * - 66 col1 FROM tab2 AS cor0
----
-1733
-2523
-469

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6763
SELECT DISTINCT + CAST ( - + ( 4 ) AS INTEGER ) + + col1 * - 79 - + 54 * - 66 col1 FROM tab2 AS cor0
----
-1733
-2523
-469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT + CAST( + 76 AS SIGNED ) + - col0 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-15
-9
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6764
SELECT + CAST ( + 76 AS INTEGER ) + - col0 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-15
-9
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6765
SELECT ALL COUNT( - col2 ) AS col0, - COUNT( * ) + + + ( - CAST( NULL AS SIGNED ) ) / + - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL COUNT ( - col2 ) AS col0, - COUNT ( * ) + + + ( - CAST ( NULL AS INTEGER ) ) / + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3
NULL

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

query I rowsort
SELECT DISTINCT - 53 + + col1 AS col1 FROM tab1
----
-39
-48
-6

query I rowsort
SELECT + col1 * col2 + - 77 AS col1 FROM tab1 AS cor0
----
1267
218
3119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT DISTINCT SUM( ALL + - 72 ) + COUNT( * ) * - 51 FROM tab2 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT SUM ( ALL + - 72 ) + COUNT ( * ) * - 51 FROM tab2 AS cor0
----
-369

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

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

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

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

query I rowsort
SELECT ALL + - col2 + 77 AS col0 FROM tab0 AS cor0
----
-22
30
67

query I rowsort
SELECT DISTINCT + + col2 + 88 * - 2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT MIN( - col0 ) * + - ( COUNT( + col1 ) ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-6776
SELECT MIN ( - col0 ) * + - ( COUNT ( + col1 ) ) AS col0 FROM tab2
----
225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - + COUNT( * ) * ( - 82 ) + - + COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
243

skipif mysql # not compatible
query I rowsort label-6778
SELECT - + COUNT ( * ) * ( - 82 ) + - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
243

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( 49 ) + - + col0 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6781
SELECT DISTINCT 9, CAST( + ( - col2 ) AS SIGNED ) * + ( - col2 ) * - col0 col1 FROM tab2 cor0
----
9
-102400
9
-24334
9
-252300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6781
SELECT DISTINCT 9, CAST ( + ( - col2 ) AS INTEGER ) * + ( - col2 ) * - col0 col1 FROM tab2 cor0
----
9
-102400
9
-24334
9
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT + 20 DIV + col2 * + - 29 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6782
SELECT + 20 / + col2 * + - 29 AS col0 FROM tab2 cor0
----
0
0
0

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + - col1 ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + ( + 20 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6789
SELECT ALL - COUNT( * ) + + MIN( DISTINCT col0 ) FROM tab2 WHERE CAST( - col2 AS SIGNED ) + + - 94 BETWEEN - 50 * + col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL - COUNT ( * ) + + MIN ( DISTINCT col0 ) FROM tab2 WHERE CAST ( - col2 AS INTEGER ) + + - 94 BETWEEN - 50 * + col2 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT ALL MIN( 12 ) AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL MIN ( 12 ) AS col0 FROM tab0
----
12

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT + CAST ( - SUM ( ALL + col2 ) AS INTEGER ) col0 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT - 42 AS col0, MAX( DISTINCT - 6 ) FROM tab0
----
-42
-6

skipif mysql # not compatible
query II rowsort label-6794
SELECT - 42 AS col0, MAX ( DISTINCT - 6 ) FROM tab0
----
-42
-6

query I rowsort
SELECT ALL - - 96 * - 85 * 52 * + - 5 + - col1 + - + col2 AS col2 FROM tab2 cor0
----
2121475
2121483
2121526

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

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT col2 * - + 78 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 88 + 24 IN ( col0, + col0, - col0 + + - 37 * - col0 ) OR NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT 16 * col0 * + col2 * + col0 * + col2 + + col0 * ( - + col0 ) AS col0 FROM tab1 cor0
----
383530455
402396375
612653223

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + 18 * COUNT( * ) * COUNT( * ) col1 FROM tab0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6799
SELECT + 18 * COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
162

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

query I rowsort
SELECT + 31 * + col0 * - col2 FROM tab2
----
-134850
-32798
-79360

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6803
SELECT + - 6 - - col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-6803
SELECT + - 6 - - col2 / + col0 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL - 65 FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IN ( + col1 ) )
----

query I rowsort
SELECT DISTINCT 97 + - col0 + col1 FROM tab0 cor0
----
1
163
31

query II rowsort
SELECT col2 - + + 23, col2 AS col1 FROM tab1 AS cor0
----
36
59
45
68
73
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT DISTINCT 70 DIV - + col2 AS col1 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT 70 / - + col2 AS col1 FROM tab0
----
-1
-7
0

query I rowsort
SELECT ALL + col1 * col0 * - + col2 * + - 61 AS col1 FROM tab0
----
1114470
3483405
585783

query II rowsort
SELECT ALL col2 AS col2, + 15 FROM tab2
----
23
15
40
15
58
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT col2 DIV + 6 FROM tab0
----
1
16
7

skipif mysql # not compatible
query I rowsort label-6811
SELECT col2 / + 6 FROM tab0
----
1
16
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6812
SELECT ALL col1 DIV - + col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL col1 / - + col2 FROM tab2
----
-1
-1
-2

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

query II rowsort
SELECT DISTINCT + col2, 79 FROM tab1
----
59
79
68
79
96
79

query I rowsort
SELECT ( + - 69 ) * 55 AS col2 FROM tab0
----
-3795
-3795
-3795

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

query II rowsort
SELECT ALL col2, 70 AS col0 FROM tab2 cor0
----
23
70
40
70
58
70

query I rowsort
SELECT ALL - 41 + + + col1 AS col2 FROM tab1 AS cor0
----
-27
-36
6

query I rowsort
SELECT - 93 * + - ( - 46 ) + + ( - - 25 ) FROM tab2 AS cor0
----
-4253
-4253
-4253

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ( - COUNT( * ) ) col2 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN - 44 AND col0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6821
SELECT ( - COUNT ( * ) ) col2 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN - 44 AND col0
----
-3

query I rowsort
SELECT DISTINCT + 67 * 96 * ( col0 ) * + + ( + 21 ) * - + col1 + + - col2 * 95 + - + 9 * - 39 AS col1 FROM tab1 AS cor0
----
-57410854
-577709053
-96450177

query I rowsort
SELECT + col1 * + 25 FROM tab0 AS cor0
----
2025
25
525

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col0 + + + col1 <= 6
----
-51
-85
-91

query I rowsort
SELECT 99 + - col0 + + col1 AS col0 FROM tab2 cor0
----
104
112
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT DISTINCT MAX( DISTINCT 87 ) * + SUM( + + 72 ) FROM tab1
----
18792

skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT MAX ( DISTINCT 87 ) * + SUM ( + + 72 ) FROM tab1
----
18792

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

skipif mysql # not compatible
query III rowsort label-6828
SELECT * FROM tab2 WHERE col0 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT + 52, + col2 * - + col1 AS col0 FROM tab2 AS cor0
----
52
-1173
52
-3080
52
-3886

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6831
SELECT ALL - MAX( + col0 ) * COUNT( ALL - col1 ) * - 43 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT col1 + col2, col2 FROM tab0
----
100
99
128
47
31
10

query I rowsort
SELECT ALL - col0 * - ( - col1 ) FROM tab1 WHERE NOT + + col2 IS NULL
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 67 * + - col0 - - col2 col1 FROM tab2 AS cor0
----
-157159
-330136
-336617

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

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

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

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

query I rowsort
SELECT ALL + + col0 + - - 55 * + - col1 AS col1 FROM tab2 AS cor0
----
-2759
-3610
-4171

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6840
SELECT DISTINCT 67 DIV col0, col2 * 74 col0 FROM tab1
----
0
4366
0
5032
1
7104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6840
SELECT DISTINCT 67 / col0, col2 * 74 col0 FROM tab1
----
0
4366
0
5032
1
7104

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6843
SELECT - CAST( - ( + 57 ) AS DECIMAL ) FROM tab0 WHERE NOT ( + CAST( - - col2 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6843
SELECT - CAST ( - ( + 57 ) AS REAL ) FROM tab0 WHERE NOT ( + CAST ( - - col2 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL 10 * - 96 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 14 * + col2 AS col0 FROM tab0
----
-1386
-140
-658

query II rowsort
SELECT ALL ( - + 79 ) * + 82 AS col0, - col2 FROM tab0
----
-6478
-10
-6478
-47
-6478
-99

query I rowsort
SELECT - 33 * + col1 FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

query I rowsort
SELECT - ( col1 ) * - 2 AS col1 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT ALL - 74 * + + col0 FROM tab0 cor0
----
-1110
-6438
-7178

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT DISTINCT - 70 + col2 DIV col1 AS col2 FROM tab1
----
-59
-64
-69

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT - 70 + col2 / col1 AS col2 FROM tab1
----
-59
-64
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6852
SELECT - 41 * + col2 + 3 AS col0, + 6 * - CAST( 15 AS SIGNED ) AS col1 FROM tab0
----
-1924
-90
-4056
-90
-407
-90

skipif mysql # not compatible
query II rowsort label-6852
SELECT - 41 * + col2 + 3 AS col0, + 6 * - CAST ( 15 AS INTEGER ) AS col1 FROM tab0
----
-1924
-90
-4056
-90
-407
-90

query I rowsort
SELECT + col0 + + col2 + - - col1 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT ALL + 45 * + 30 * + + col1 + - + col2 AS col1 FROM tab1 cor0
----
18804
63382
6691

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + 50 + + COUNT( DISTINCT - 49 ) col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6855
SELECT ALL + 50 + + COUNT ( DISTINCT - 49 ) col2 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT ALL - ( + col1 ) DIV + + col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - ( + col1 ) / + + col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + 43 AS col1 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ( + - 57 ) * + - col2 AS col2 FROM tab0
----
2679
5643
570

query I rowsort
SELECT 21 * + col1 FROM tab0
----
1701
21
441

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT + col2 DIV + + col1 * + - col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT + col2 / + + col1 * + - col1 FROM tab0
----
-99
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * col0 < - 83
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 - + col0 + col1 col2 FROM tab0
----
-153
-183
-21

query I rowsort
SELECT - col1 * + col0 - - - 66 AS col2 FROM tab2
----
-2412
-4994
-5091

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT DISTINCT + + 35 / 89 * + + col2 + - 77 + - - CAST( NULL AS SIGNED ) / + col1 + - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT + + 35 / 89 * + + col2 + - 77 + - - CAST ( NULL AS INTEGER ) / + col1 + - col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL + + COUNT( * ) - MIN( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-2

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

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

skipif mysql # not compatible
query I rowsort label-6869
SELECT col1 * + 28 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - col0 * ( col1 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6870
SELECT COUNT( * ) + - - 26 DIV + 80 AS col0 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT ALL - col0 - 18 AS col0 FROM tab0 AS cor0
----
-105
-115
-33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + col2 ) ) + col0 + - col0 + ( - - 90 ) > - col0
----

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 81 + col1 + 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 78 AS col1 FROM tab2 AS cor0
----
3978
5226
6006

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

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL COUNT ( - + col1 ) FROM tab1 AS cor0
----
3

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

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

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

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT CAST ( + 33 AS INTEGER ) AS col0 FROM tab0
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL - COUNT( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL NOT IN ( + ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL - COUNT ( DISTINCT - col0 ) FROM tab2 WHERE NOT NULL NOT IN ( + ( - col0 ) )
----
0

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 82 + - col2 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT + col2 FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT ALL + - col0 * + col1 + + + col2 - col2 DIV col2 col1 FROM tab0 AS cor0
----
-1169
-1818
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6885
SELECT ALL + - col0 * + col1 + + + col2 - col2 / col2 col1 FROM tab0 AS cor0
----
-1169
-1818
1

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

query I rowsort
SELECT + - col1 * + - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT ALL + + 60 * col0 FROM tab0 AS cor0
----
5220
5820
900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col0, col2 * + + col0 - + - 0 col1 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - ( + col0 ) col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT MIN( + col0 ) col2 FROM tab1 WHERE NULL >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT MIN ( + col0 ) col2 FROM tab1 WHERE NULL >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT ALL - 73 + - + 11 + + + 30 + - COUNT( * ) * - + ( - - ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - 73 + - + 11 + + + 30 + - COUNT ( * ) * - + ( - - ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
-45

query I rowsort
SELECT + - 54 AS col1 FROM tab2 AS cor0 WHERE - 20 IS NULL
----

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

query II rowsort
SELECT - col0 + - col0 * - col1, 31 * + - col1 * - + col2 + + + col1 AS col1 FROM tab2
----
2300
36414
4864
95557
4950
120533

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT ALL col2 + - + ( - col0 ) + + 11 DIV col1 FROM tab1
----
146
147
159

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL col2 + - + ( - col0 ) + + 11 / col1 FROM tab1
----
146
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 83 col1 FROM tab1
----
51
83
85
83
91
83

query I rowsort
SELECT 35 - + col2 + - + ( col2 ) AS col2 FROM tab1 AS cor0
----
-101
-157
-83

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

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL - 77 + COUNT ( * ) FROM tab0
----
-74

query I rowsort
SELECT col2 * col1 + + col2 AS col2 FROM tab0
----
198
220
3854

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

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

query I rowsort
SELECT col2 * - col0 + + ( 95 + 31 ) AS col1 FROM tab0
----
-579
-744
-9477

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ( ( - MIN( + col2 ) ) ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT ( ( - MIN ( + col2 ) ) ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT DISTINCT + MAX( + 43 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + MAX ( + 43 ) FROM tab0
----
43

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

query I rowsort
SELECT col1 * col0 - col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 4 * + col2 FROM tab2 WHERE NOT ( col1 ) = ( NULL )
----

query I rowsort
SELECT 84 * ( - col2 * - col2 ) + + 80 * col0 FROM tab1
----
299204
395696
778224

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT ALL + MAX( ALL + 26 ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL + MAX ( ALL + 26 ) AS col2 FROM tab1
----
26

query I rowsort
SELECT ALL - ( ( 81 ) ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND 78
----

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

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

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

query I rowsort
SELECT DISTINCT + ( - 36 ) - - col2 FROM tab0
----
-26
11
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT ALL + MIN( col2 ) - - COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL + MIN ( col2 ) - - COUNT ( * ) FROM tab2
----
26

query I rowsort
SELECT DISTINCT 16 + col2 AS col1 FROM tab2 WHERE col2 * + col1 IS NOT NULL
----
39
56
74

query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( + 73 )
----

query I rowsort
SELECT ALL ( - 91 ) + + col0 FROM tab0
----
-4
-76
6

query I rowsort
SELECT col2 * col1 - + 52 FROM tab2
----
1121
3028
3834

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + - col2 col1 FROM tab0 WHERE NOT + col0 IS NULL
----
-60
-8
29

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

query I rowsort
SELECT 29 * col0 AS col0 FROM tab0 AS cor0
----
2523
2813
435

query I rowsort
SELECT col0 * 93 AS col0 FROM tab1 AS cor0
----
4743
7905
8463

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

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT - ( + COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT col1 + 27 AS col1 FROM tab2
----
104
78
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT ALL + MAX( col1 ) DIV - 43 + 60 * - 50 FROM tab1 cor0
----
-3001

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + MAX ( col1 ) / - 43 + 60 * - 50 FROM tab1 cor0
----
-3001

query I rowsort
SELECT DISTINCT + col0 + - 91 AS col0 FROM tab1 AS cor0
----
-40
-6
0

query I rowsort
SELECT ALL + + 85 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
790
955
9688

query I rowsort
SELECT - 3 * + 55 AS col0 FROM tab1 AS cor0
----
-165
-165
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6933
SELECT + COUNT( DISTINCT + 15 ) * - 60 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6933
SELECT + COUNT ( DISTINCT + 15 ) * - 60 FROM tab1 cor0
----
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN ( 14 / + 17 ) AND + 36 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT - CAST( col2 AS SIGNED ) - + col2 * - col2 AS col2 FROM tab0
----
2162
90
9702

skipif mysql # not compatible
query I rowsort label-6935
SELECT - CAST ( col2 AS INTEGER ) - + col2 * - col2 AS col2 FROM tab0
----
2162
90
9702

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 21 ) >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT DISTINCT - MAX( DISTINCT 62 ) * - SUM( DISTINCT - 77 + + 59 ) FROM tab2
----
-1116

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT - MAX ( DISTINCT 62 ) * - SUM ( DISTINCT - 77 + + 59 ) FROM tab2
----
-1116

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

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) > ( - col2 / col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 26 + + 39 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT 3 + + MIN( - 42 ) + + 28 * 91 AS col2 FROM tab2
----
2509

skipif mysql # not compatible
query I rowsort label-6941
SELECT 3 + + MIN ( - 42 ) + + 28 * 91 AS col2 FROM tab2
----
2509

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT DISTINCT SUM( DISTINCT + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT SUM ( DISTINCT + col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT + 47 * - col2 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND - col1 * col1
----
-2209
-470

query I rowsort
SELECT 12 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 + - - 41 AS col0 FROM tab2 cor0
----
64
81
99

query I rowsort
SELECT 61 * - ( - 88 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 + col1 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT COUNT( * ) * + 83 AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-6950
SELECT COUNT ( * ) * + 83 AS col0 FROM tab0
----
249

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

skipif mysql # not compatible
query III rowsort label-6951
SELECT DISTINCT * FROM tab2 WHERE ( NOT + CAST ( NULL AS INTEGER ) * + 11 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT + COUNT( * ) DIV COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1

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

query II rowsort
SELECT - col0, ( col1 ) AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

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

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

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

query I rowsort
SELECT ALL 71 FROM tab0 cor0 WHERE NULL < col1 * + + col1 * - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL - MIN( - - 53 ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - MIN ( - - 53 ) FROM tab2 AS cor0
----
-53

query II rowsort
SELECT DISTINCT col2, + 6 FROM tab2 AS cor0
----
23
6
40
6
58
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6960
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), MAX( DISTINCT - + ( - col0 ) ) AS col2 FROM tab1
----
NULL
91

skipif mysql # not compatible
query II rowsort label-6960
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), MAX ( DISTINCT - + ( - col0 ) ) AS col2 FROM tab1
----
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL - COUNT( * ) FROM tab1 WHERE ( - + col1 ) IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - COUNT ( * ) FROM tab1 WHERE ( - + col1 ) IN ( col1 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col0 - + 72 * col1 ) NOT IN ( + col0 + col1 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL NOT IN ( - + 18 )
----

query I rowsort
SELECT DISTINCT AVG ( DISTINCT col1 ) * 44 FROM tab0 WHERE + 87 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT col1 FROM tab1 WHERE NOT 56 * - 39 * + 52 - + ( + 60 + + col0 ) + - col0 NOT BETWEEN CAST( NULL AS SIGNED ) * + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6965
SELECT col1 FROM tab1 WHERE NOT 56 * - 39 * + 52 - + ( + 60 + + col0 ) + - col0 NOT BETWEEN CAST ( NULL AS INTEGER ) * + col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + - col1 = ( + col0 )
----

query I rowsort
SELECT DISTINCT - col1 * ( 86 * 80 ) + 78 FROM tab1 WHERE NOT - - col1 + - - col0 * + 52 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT ALL 72 + + 14 DIV col2 * + + ( 67 ) FROM tab2
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL 72 + + 14 / col2 * + + ( 67 ) FROM tab2
----
72
72
72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col1 col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-6971
SELECT - col1 DIV + 68 + - col0 FROM tab0 AS cor0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-6971
SELECT - col1 / + 68 + - col0 FROM tab0 AS cor0
----
-16
-87
-97

query I rowsort
SELECT DISTINCT + - 16 * - 80 AS col0 FROM tab0 AS cor0
----
1280

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 19 * col0 ) OR NOT 74 >= col2 * - col1 + 46 * + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6974
SELECT DISTINCT + 73 * - MIN( + col2 ) FROM tab0
----
-730

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + 73 * - MIN ( + col2 ) FROM tab0
----
-730

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 46 + col0 IN ( - col1 * col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6977
SELECT - 91 DIV col0 + - + 19 AS col0, - 51 AS col0 FROM tab0
----
-19
-51
-20
-51
-25
-51

skipif mysql # not compatible
query II rowsort label-6977
SELECT - 91 / col0 + - + 19 AS col0, - 51 AS col0 FROM tab0
----
-19
-51
-20
-51
-25
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT + SUM( + 74 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
222

skipif mysql # not compatible
query I rowsort label-6978
SELECT + SUM ( + 74 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
222

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 20 col1 FROM tab0 AS cor0
----
-10
27
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT col2 FROM tab1 AS cor0 WHERE + col0 + 98 <= + 45 / CAST( NULL AS SIGNED ) + 21
----

skipif mysql # not compatible
query I rowsort label-6981
SELECT col2 FROM tab1 AS cor0 WHERE + col0 + 98 <= + 45 / CAST ( NULL AS INTEGER ) + 21
----

query I rowsort
SELECT col1 * - col0 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-10050
-4692
-9856

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT + 70 + MIN( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6983
SELECT + 70 + MIN ( ALL + + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 + + - 72 AND col2
----

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

skipif mysql # not compatible
query I rowsort label-6985
SELECT + - CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) FROM tab1 WHERE + col0 - - + col2 * + col2 >= NULL
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NOT NULL <= - col1 + + col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 68 col2 FROM tab1
----
-9
0
28

query I rowsort
SELECT + 35 * + + col1 AS col2 FROM tab0 AS cor0
----
2835
35
735

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + - 16 BETWEEN + CAST( - col2 AS SIGNED ) AND col1 * - col2
----

skipif mysql # not compatible
query III rowsort label-6990
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + - 16 BETWEEN + CAST ( - col2 AS INTEGER ) AND col1 * - col2
----

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

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

query I rowsort
SELECT 54 * 60 + 57 * col1 AS col2 FROM tab0 WHERE NOT - + col1 IS NULL
----
3297
4437
7857

query I rowsort
SELECT col2 - + ( col0 + + 66 * - col0 ) * col0 FROM tab2 WHERE NOT - col2 / - - col0 - + col1 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> - 66
----
0

skipif mysql # not compatible
query I rowsort label-6994
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <> - 66
----
0

query I rowsort
SELECT - 62 * - col2 FROM tab2
----
1426
2480
3596

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NOT col1 * ( + col0 ) / col0 >= - 78 / + col1 - + 6 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT ( - COUNT( * ) ) + 85 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + - ( col1 ) AND ( col2 - - col1 )
----
85

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT ( - COUNT ( * ) ) + 85 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + - ( col1 ) AND ( col2 - - col1 )
----
85

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

query II rowsort
SELECT DISTINCT col2, col1 + - 16 AS col1 FROM tab0
----
10
5
47
65
99
-15

query I rowsort
SELECT DISTINCT ( 11 ) + col2 FROM tab2
----
34
51
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT 12 DIV + + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT 12 / + + col0 FROM tab0
----
0
0
0

query II rowsort
SELECT - col2 AS col1, 85 AS col1 FROM tab2
----
-23
85
-40
85
-58
85

onlyif mysql # DIV for integer division: 
query II rowsort label-7006
SELECT ALL + col2 AS col0, - col1 * col0 * col2 DIV + 54 FROM tab2
----
23
-999
40
-3650
58
-5397

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL + col2 AS col0, - col1 * col0 * col2 / + 54 FROM tab2
----
23
-999
40
-3650
58
-5397

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

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

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL <= 98
----

query I rowsort
SELECT ALL - 49 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT + col2 + 53 + - + col1 AS col1 FROM tab0 AS cor0
----
151
19
42

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE NOT NULL = 8
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL = 8
----
0

query I rowsort
SELECT ALL + col1 - + 9 + - 32 * 35 * - col1 + - col1 * + - col0 AS col1 FROM tab0 AS cor0
----
1209
25359
92007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT + 33 - - CAST( - + col0 AS SIGNED ) - col2 AS col2 FROM tab2
----
-100
-36
-71

skipif mysql # not compatible
query I rowsort label-7015
SELECT + 33 - - CAST ( - + col0 AS INTEGER ) - col2 AS col2 FROM tab2
----
-100
-36
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT MAX( DISTINCT - - col1 ) - - - COUNT( * ) col1 FROM tab2
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7016
SELECT MAX ( DISTINCT - - col1 ) - - - COUNT ( * ) col1 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT + COUNT( DISTINCT - + 37 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + COUNT ( DISTINCT - + 37 ) AS col1 FROM tab1
----
1

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

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

query I rowsort
SELECT ALL - + 17 FROM tab0 WHERE NOT - col2 IS NULL
----
-17
-17
-17

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7020
SELECT + COUNT ( * ) col2, 19 AS col1 FROM tab2
----
3
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL <= - col1 * + 91 - - + 28 + + col1 / - col1 + 26 * 87 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - col0 / + 63 FROM tab0
----
-1
0

query I rowsort
SELECT + col2 * - - 11 * - col2 FROM tab0 AS cor0
----
-107811
-1100
-24299

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7026
SELECT + + col1 col1, col2 * - col0 + + - CAST( NULL AS SIGNED ) 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-7026
SELECT + + col1 col1, col2 * - col0 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7027
SELECT ALL 63 * - ( + + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT DISTINCT + + COUNT( DISTINCT + 77 ) * 33 AS col2 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + + COUNT ( DISTINCT + 77 ) * 33 AS col2 FROM tab0 AS cor0
----
33

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

query I rowsort
SELECT 92 * - 5 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 48 + + + col1 + col1 FROM tab0 AS cor0
----
-46
-6
114

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7034
SELECT DISTINCT + 2, COUNT( * ) + + COUNT( * ) + - SUM( DISTINCT + - 84 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
2
NULL

skipif mysql # not compatible
query II rowsort label-7034
SELECT DISTINCT + 2, COUNT ( * ) + + COUNT ( * ) + - SUM ( DISTINCT + - 84 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
2
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) + - 48 AS col2 FROM tab1
----
11
20
48

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( col0, col0, - + 70 * col0 + - ( + - col0 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT + SUM( DISTINCT - + 0 ) + - + 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT + SUM ( DISTINCT - + 0 ) + - + 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

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

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

query I rowsort
SELECT ALL + col2 + 61 FROM tab1 AS cor0
----
120
129
157

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT COUNT( * ) + 5 col2 FROM tab0 cor0
----
8

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

query I rowsort
SELECT ALL col2 - 71 AS col1 FROM tab1 AS cor0
----
-12
-3
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + 84 / + 62 * - col2
----

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

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

query II rowsort
SELECT ALL ( + col0 ) AS col0, - col0 + + 1 + + - 67 FROM tab2
----
46
-112
64
-130
75
-141

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

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

query I rowsort
SELECT ALL - col2 * 74 FROM tab2 AS cor0
----
-1702
-2960
-4292

query I rowsort
SELECT ALL + col0 * + 97 * + 81 * + + col2 + + 48 FROM tab1 AS cor0
----
38467920
39402903
48619164

query I rowsort
SELECT ALL 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT 55 * - - COUNT( * ) AS col2 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT 55 * - - COUNT ( * ) AS col2 FROM tab0
----
165

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7055
SELECT * FROM tab0 cor0 WHERE + 28 + CAST( NULL AS SIGNED ) / - ( - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7055
SELECT * FROM tab0 cor0 WHERE + 28 + CAST ( NULL AS INTEGER ) / - ( - + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL MIN( 31 ) AS col0 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL MIN ( 31 ) AS col0 FROM tab2
----
31

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

query II rowsort
SELECT ALL - 22 AS col1, col2 * col1 * - - col0 FROM tab2
----
-22
197120
-22
291450
-22
53958

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7060
SELECT CAST( + + COUNT( * ) AS SIGNED ), 43 col2 FROM tab1
----
3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7060
SELECT CAST ( + + COUNT ( * ) AS INTEGER ), 43 col2 FROM tab1
----
3
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT - - SUM( DISTINCT - 82 ) * - COUNT( * ) - AVG ( + ( - col0 ) ) FROM tab0 AS cor0 WHERE NOT + col2 * - + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - - SUM ( DISTINCT - 82 ) * - COUNT ( * ) - AVG ( + ( - col0 ) ) FROM tab0 AS cor0 WHERE NOT + col2 * - + col1 = NULL
----
NULL

query I rowsort
SELECT + col0 * + + 97 FROM tab2
----
4462
6208
7275

query II rowsort
SELECT DISTINCT 62 + + col2, col0 FROM tab0
----
109
15
161
97
72
87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - MAX( - 1 ) + MAX( ALL col2 ) AS col2 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - MAX ( - 1 ) + MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
59

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

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

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

query I rowsort
SELECT - ( + ( - col2 ) ) * - + 30 AS col1 FROM tab1 cor0
----
-1770
-2040
-2880

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

query II rowsort
SELECT ALL - 36 AS col2, col0 AS col2 FROM tab1
----
-36
51
-36
85
-36
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7071
SELECT - col0 * - + 51 DIV + 3 FROM tab0
----
1479
1649
255

skipif mysql # not compatible
query I rowsort label-7071
SELECT - col0 * - + 51 / + 3 FROM tab0
----
1479
1649
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 86, + col1 + - + 67 * col0 * + + col0 + - col2 col1 FROM tab0
----
86
-15041
86
-507112
86
-630501

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7073
SELECT CAST( NULL AS SIGNED ) AS col1, ( ( - + col0 ) ) - + + col0 FROM tab1
----
NULL
-102
NULL
-170
NULL
-182

skipif mysql # not compatible
query II rowsort label-7073
SELECT CAST ( NULL AS INTEGER ) AS col1, ( ( - + col0 ) ) - + + col0 FROM tab1
----
NULL
-102
NULL
-170
NULL
-182

query I rowsort
SELECT ( + + col1 ) * ( + + col0 ) FROM tab2 cor0
----
2346
4928
5025

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7077
SELECT col0 + + col1 DIV - 82 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7077
SELECT col0 + + col1 / - 82 FROM tab0 AS cor0
----
15
87
97

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

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

query I rowsort
SELECT + col0 * + col1 + + + col2 + + 7 AS col2 FROM tab0 AS cor0
----
1269
1844
203

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

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

query I rowsort
SELECT - - col0 * + 70 + 79 FROM tab2 AS cor0
----
3299
4559
5329

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL + - SUM( ALL 34 ) FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + - SUM ( ALL 34 ) FROM tab1 AS cor0
----
-102

onlyif mysql # DIV for integer division: 
query II rowsort label-7083
SELECT col2 DIV + 38 + + col0 + + + col2, - 7 col2 FROM tab1 AS cor0
----
145
-7
149
-7
160
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7083
SELECT col2 / + 38 + + col0 + + + col2, - 7 col2 FROM tab1 AS cor0
----
145
-7
149
-7
160
-7

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE + col1 / - col2 * - 30 > + col2
----

query I rowsort
SELECT DISTINCT - 11 * - col2 FROM tab0
----
1089
110
517

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

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT ( + 64 ) * - col0 + + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 86 + - + col1 + + + col2 FROM tab1
----
107
140
168

onlyif mysql # DIV for integer division: 
query I rowsort label-7088
SELECT ALL col0 DIV col2 + - - col2 AS col0 FROM tab0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL col0 / col2 + - - col2 AS col0 FROM tab0
----
18
47
99

query II rowsort
SELECT - 56, col2 + col1 AS col0 FROM tab2 AS cor0
----
-56
117
-56
125
-56
74

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

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

query I rowsort
SELECT ALL + col1 * + - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col2 * - 52 + col0 * col2 * + col0 AS col2 FROM tab0
----
75170
8131
926343

query II rowsort
SELECT 32, 71 AS col1 FROM tab1 cor0
----
32
71
32
71
32
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 * + - 61 + + col1 - 28 / + col0 > + col0 + - col1 ) OR - - ( - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT - + 6 * + 28 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT - + 6 * + 28 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT DISTINCT 62 DIV col1 - + col2 FROM tab2 WHERE - col1 + - 99 NOT BETWEEN col1 AND - col1 * + 25
----
-22
-40
-58

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT 62 / col1 - + col2 FROM tab2 WHERE - col1 + - 99 NOT BETWEEN col1 AND - col1 * + 25
----
-22
-40
-58

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7101
SELECT ALL col0 DIV + + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL col0 / + + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
1

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

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

query I rowsort
SELECT 9 + - - 83 AS col0 FROM tab2
----
92
92
92

query I rowsort
SELECT - 76 + + col2 AS col2 FROM tab1
----
-17
-8
20

query I rowsort
SELECT DISTINCT 78 + + + 97 FROM tab2 AS cor0
----
175

onlyif mysql # DIV for integer division: 
query I rowsort label-7106
SELECT + col0 DIV + 27 FROM tab1 AS cor0
----
1
3
3

skipif mysql # not compatible
query I rowsort label-7106
SELECT + col0 / + 27 FROM tab1 AS cor0
----
1
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT SUM( DISTINCT + + 46 ) + MIN( col0 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT SUM ( DISTINCT + + 46 ) + MIN ( col0 ) FROM tab0
----
61

query II rowsort
SELECT ALL - col1 * - col2 AS col1, col0 AS col2 FROM tab1
----
1344
51
295
85
3196
91

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

query I rowsort
SELECT 63 - + - 91 AS col2 FROM tab1
----
154
154
154

query I rowsort
SELECT 52 - - - col1 FROM tab1
----
38
47
5

query II rowsort
SELECT ALL col1 + col0 AS col1, 4 FROM tab0
----
108
4
96
4
98
4

query I rowsort
SELECT col2 + + col1 + col2 AS col0 FROM tab0
----
175
199
41

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

skipif mysql # not compatible
query I rowsort label-7114
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE ( col1 IS NOT NULL )
----
3

query I rowsort
SELECT 88 * - col0 * - col1 + + col1 AS col1 FROM tab1
----
37405
376423
62846

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT ALL CAST( col1 AS SIGNED ) * + col1 + + col2 col0 FROM tab1
----
2277
292
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7117
SELECT ALL CAST ( col1 AS INTEGER ) * + col1 + + col2 col0 FROM tab1
----
2277
292
84

query I rowsort
SELECT - ( 10 ) * - - col1 * - + col1 FROM tab0 AS cor0
----
10
4410
65610

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 29 - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - + MAX( ALL + - 10 ) * 78 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7120
SELECT - + MAX ( ALL + - 10 ) * 78 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL > NULL )
----
NULL

query I rowsort
SELECT + 60 * - - 83 AS col2 FROM tab0 cor0
----
4980
4980
4980

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

query I rowsort
SELECT ALL + - 37 * 9 AS col0 FROM tab0 AS cor0
----
-333
-333
-333

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

query II rowsort
SELECT DISTINCT + col2 AS col2, - 48 FROM tab0
----
10
-48
47
-48
99
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT DISTINCT 85 * + COUNT( * ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT 85 * + COUNT ( * ) FROM tab2
----
255

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

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

query II rowsort
SELECT ALL + + col0 AS col0, col2 FROM tab2 cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + ( - 60 ) * - col0 AS col1 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7133
SELECT - 99 DIV 89 * + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7133
SELECT - 99 / 89 * + COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + MAX( ALL + col1 ) FROM tab1 cor0 WHERE NULL IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-7134
SELECT + MAX ( ALL + col1 ) FROM tab1 cor0 WHERE NULL IS NULL
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + 3 > + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL + 33 + SUM( - 96 ) FROM tab0
----
-255

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + 33 + SUM ( - 96 ) FROM tab0
----
-255

query I rowsort
SELECT ALL - + 69 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

query I rowsort
SELECT DISTINCT 0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7141
SELECT - col2 + col0 DIV - - col0 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-7141
SELECT - col2 + col0 / - - col0 AS col2 FROM tab1 AS cor0
----
-58
-67
-95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 98 * 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + - SUM( + 14 ) + MIN( ALL - 91 ) FROM tab0 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + - SUM ( + 14 ) + MIN ( ALL - 91 ) FROM tab0 AS cor0
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7144
SELECT * FROM tab1 AS cor0 WHERE - 22 = - ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7144
SELECT * FROM tab1 AS cor0 WHERE - 22 = - ( CAST ( NULL AS INTEGER ) )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT - - 31 DIV + col1 + + - 29 * + 56 col1 FROM tab2 AS cor0
----
-1624

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7147
SELECT DISTINCT - - 31 / + col1 + + - 29 * + 56 col1 FROM tab2 AS cor0
----
-1624

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 = col1 + ( - ( col1 ) ) + - col2
----

query I rowsort
SELECT + 73 + - 3 - + ( + + col1 ) FROM tab0 AS cor0
----
-11
49
69

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

query II rowsort
SELECT ALL + col1 * + col0, col2 AS col2 FROM tab0 cor0
----
1215
47
1827
10
97
99

query I rowsort
SELECT DISTINCT - + col0 - col0 + - - col1 FROM tab0 AS cor0
----
-153
-193
51

query I rowsort
SELECT DISTINCT col2 * col1 + + 52 + 54 FROM tab1
----
1450
3302
401

query II rowsort
SELECT DISTINCT + 42 AS col0, + col2 FROM tab1
----
42
59
42
68
42
96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7156
SELECT ALL * FROM tab2 WHERE - - CAST( NULL AS SIGNED ) * col2 / 44 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7156
SELECT ALL * FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) * col2 / 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7157
SELECT col1 DIV - - ( - ( - + CAST( - col2 AS SIGNED ) ) ) AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT col1 / - - ( - ( - + CAST ( - col2 AS INTEGER ) ) ) AS col1 FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT CAST( + - AVG ( DISTINCT col2 ) AS SIGNED ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-7158
SELECT CAST ( + - AVG ( DISTINCT col2 ) AS INTEGER ) FROM tab0
----
-52

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

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

query I rowsort
SELECT - 0 - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL + + col1 * + col2 + - 46 * 65 AS col2 FROM tab2 AS cor0 WHERE NULL < - col0
----

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

query I rowsort
SELECT ALL + - col1 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-2555
-4414
-5865

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

query I rowsort
SELECT col1 * + col1 + + + col2 + + - ( col1 ) FROM tab2 AS cor0
----
2573
4480
5892

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT ALL 56 * + col0 * col2 DIV + col0 FROM tab2 AS cor0
----
1288
2240
3248

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL 56 * + col0 * col2 / + col0 FROM tab2 AS cor0
----
1288
2240
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT COUNT( DISTINCT 23 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7167
SELECT COUNT ( DISTINCT 23 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7168
SELECT - 31 * + 46 + + - 87 DIV COUNT( * ) * - MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-3659

skipif mysql # not compatible
query I rowsort label-7168
SELECT - 31 * + 46 + + - 87 / COUNT ( * ) * - MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-3659

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT DISTINCT + 77 + COUNT( * ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT + 77 + COUNT ( * ) AS col0 FROM tab0
----
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7172
SELECT ALL CAST( - ( col0 ) AS SIGNED ) + 93 AS col2 FROM tab2
----
18
29
47

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL CAST ( - ( col0 ) AS INTEGER ) + 93 AS col2 FROM tab2
----
18
29
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7173
SELECT + COUNT( * ) col1, + MAX( 55 ) FROM tab1
----
3
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7173
SELECT + COUNT ( * ) col1, + MAX ( 55 ) FROM tab1
----
3
55

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 + + + 95 - - 84 * col2 < - - 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT DISTINCT COUNT( * ) * 4 col1 FROM tab2 AS cor0
----
12

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

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

query I rowsort
SELECT DISTINCT - col2 * + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
-1536
-3289
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col0, ( - col0 ) + - 71 - - + 82 AS col2 FROM tab2 AS cor0
----
-94
-35
-94
-53
-94
-64

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

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

query I rowsort
SELECT ALL - 22 - + col2 FROM tab0 AS cor0
----
-121
-32
-69

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

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

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 * col0 AS col2 FROM tab1 cor0
----
14
-2601
47
-8281
5
-7225

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT - 14 - - - MIN( col1 ) AS col2 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7184
SELECT - 14 - - - MIN ( col1 ) AS col2 FROM tab2 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7185
SELECT DISTINCT + col2 + - ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + col2, - col0, + CAST( NULL AS SIGNED ), + col1, + col1 * - col2, - + ( col0 ), + ( + ( + col1 ) ) )
----

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT + col2 + - ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + col2, - col0, + CAST ( NULL AS INTEGER ), + col1, + col1 * - col2, - + ( col0 ), + ( + ( + col1 ) ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT COUNT( * ) + + COUNT( * ) + 64 AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-7187
SELECT COUNT ( * ) + + COUNT ( * ) + 64 AS col2 FROM tab1
----
70

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query I rowsort
SELECT ALL - col0 * - - col2 - col2 - + 52 AS col0 FROM tab1 AS cor0
----
-5044
-5126
-6308

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL - 48 * - + 76 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3645

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL - 48 * - + 76 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + 69 col1 FROM tab2 AS cor0 WHERE NOT ( + col0 * - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7195
SELECT DISTINCT 25 * 4 * COUNT( * ) + COUNT( * ) DIV + 34 FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT 25 * 4 * COUNT ( * ) + COUNT ( * ) / + 34 FROM tab0 AS cor0
----
300

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

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

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

query II rowsort
SELECT ALL + col2, - 23 FROM tab1 AS cor0
----
59
-23
68
-23
96
-23

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

query I rowsort
SELECT col0 * + + col1 + col0 AS col1 FROM tab2
----
2392
4992
5100

query II rowsort
SELECT DISTINCT col1 + - col0 AS col2, - col2 - 16 AS col0 FROM tab0
----
-66
-26
-96
-115
66
-63

query I rowsort
SELECT ALL col0 + + 45 AS col1 FROM tab0
----
132
142
60

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 32 + - col1 FROM tab2 cor0
----
-109
-83
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + + 33 + + COUNT( + - 19 ) FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + + 33 + + COUNT ( + - 19 ) FROM tab0 AS cor0
----
36

query I rowsort
SELECT + 16 + col0 + - - col2 * - 70 FROM tab2 AS cor0
----
-1548
-2720
-3969

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7214
SELECT 40 * + 94 + col1 + 57 + - + col0 DIV + - col0 FROM tab1 cor0
----
3823
3832
3865

skipif mysql # not compatible
query I rowsort label-7214
SELECT 40 * + 94 + col1 + 57 + - + col0 / + - col0 FROM tab1 cor0
----
3823
3832
3865

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 25 + + col0 col2 FROM tab2 cor0
----
100
71
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT DISTINCT + MIN( + + 83 ) - - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + MIN ( + + 83 ) - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 5 - + + col0 + + 43 + - col0 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN 7 AND ( + col0 ) + - col0
----
0

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN 7 AND ( + col0 ) + - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
6
6
6

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

skipif mysql # not compatible
query II rowsort label-7223
SELECT DISTINCT col0 AS col1, col0 / + 34 AS col1 FROM tab2
----
46
1
64
1
75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT COUNT( * ) * - 1 AS col0 FROM tab2 WHERE NOT ( NOT + 15 NOT BETWEEN NULL AND + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT COUNT ( * ) * - 1 AS col0 FROM tab2 WHERE NOT ( NOT + 15 NOT BETWEEN NULL AND + col0 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7225
SELECT DISTINCT + 29 AS col1, 42 DIV - col2 * - + col2 DIV col2 AS col1 FROM tab2
----
29
0
29
1

skipif mysql # not compatible
query II rowsort label-7225
SELECT DISTINCT + 29 AS col1, 42 / - col2 * - + col2 / col2 AS col1 FROM tab2
----
29
0
29
1

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 36 ) <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7228
SELECT col1 DIV + 74 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7228
SELECT col1 / + 74 FROM tab0
----
0
0
1

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

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

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT - MAX ( - + ( - 58 ) ) FROM tab1 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT - MIN( - col2 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT - MIN ( - col2 ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + 26 ) FROM tab0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 * + 77 col0 FROM tab2
----
-180642
-379456
-386925

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab1 AS cor0 WHERE NOT 10 * - + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 * - - col0 col1, col1 col0 FROM tab2 AS cor0
----
-1125
67
-690
51
-960
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT - COUNT( - + 15 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7236
SELECT - COUNT ( - + 15 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col0 * - col2 FROM tab0 AS cor0 WHERE NOT col0 - + col2 >= 28
----
-705
-9603

query II rowsort
SELECT + col0 * + 63, col0 FROM tab2 AS cor0
----
2898
46
4032
64
4725
75

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col0 < - 66 )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7240
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * SUM( DISTINCT ( - col0 ) ) col0 FROM tab0 AS cor0 WHERE NOT 56 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7240
SELECT DISTINCT + CAST ( NULL AS REAL ) * SUM ( DISTINCT ( - col0 ) ) col0 FROM tab0 AS cor0 WHERE NOT 56 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7241
SELECT COUNT( * ), + COUNT( * ) DIV + - ( COUNT( * ) ) col2 FROM tab0
----
3
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7241
SELECT COUNT ( * ), + COUNT ( * ) / + - ( COUNT ( * ) ) col2 FROM tab0
----
3
-1

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

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

query II rowsort
SELECT ( - ( + 68 ) ), ( col1 ) AS col1 FROM tab2
----
-68
51
-68
67
-68
77

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

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

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

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

query I rowsort
SELECT DISTINCT + + 65 - col0 AS col1 FROM tab1 cor0
----
-20
-26
14

query I rowsort
SELECT DISTINCT + col2 * + - col1 + 62 AS col2 FROM tab0 AS cor0
----
-148
-37
-3745

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

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

query I rowsort
SELECT DISTINCT ( 10 ) + - col1 - 25 * - 30 AS col1 FROM tab1
----
713
746
755

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT - + MIN( ALL - 17 ) + 82 AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT - + MIN ( ALL - 17 ) + 82 AS col2 FROM tab1 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 / - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT ALL - CAST( NULL AS SIGNED ) / + ( + - col2 ) * 42 + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 + col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-7253
SELECT ALL - CAST ( NULL AS INTEGER ) / + ( + - col2 ) * 42 + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 + col2 <> NULL
----

query I rowsort
SELECT ALL 15 * col1 + + col0 + + 43 FROM tab0 AS cor0
----
1273
155
445

query II rowsort
SELECT + - ( - + ( - col1 ) ) - - - 31, - 80 AS col1 FROM tab2 AS cor0
----
-108
-80
-82
-80
-98
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 64 - - - col2, - col1 col0 FROM tab2 cor0
----
24
-77
41
-51
6
-67

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

skipif mysql # not compatible
query I rowsort label-7257
SELECT 2 - + CAST ( 94 AS INTEGER ) * + + col0 + CAST ( NULL AS INTEGER ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL col0 * 95 AS col2 FROM tab1 AS cor0
----
4845
8075
8645

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

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

query I rowsort
SELECT col1 * + 30 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT ALL - 73 * 62 AS col2 FROM tab0
----
-4526
-4526
-4526

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7264
SELECT ALL MIN( + + 94 ) DIV - + 46 AS col0, - MIN( + ( col1 ) ) FROM tab0 WHERE - col1 IS NOT NULL
----
-2
-1

skipif mysql # not compatible
query II rowsort label-7264
SELECT ALL MIN ( + + 94 ) / - + 46 AS col0, - MIN ( + ( col1 ) ) FROM tab0 WHERE - col1 IS NOT NULL
----
-2
-1

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

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

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

query II rowsort
SELECT DISTINCT + col1 * + col0 * - col0 AS col1, 67 FROM tab1 AS cor0
----
-36125
67
-36414
67
-389207
67

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - MAX( - - 56 ) + + 5 + - ( - COUNT( * ) ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - MAX ( - - 56 ) + + 5 + - ( - COUNT ( * ) ) FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT DISTINCT COUNT( * ) * - 88 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-792

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT COUNT ( * ) * - 88 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-792

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 26 ) IS NOT NULL
----

query I rowsort
SELECT ALL 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

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

query II rowsort
SELECT ALL - col1, 32 * + col0 AS col1 FROM tab1 AS cor0
----
-14
1632
-47
2912
-5
2720

query I rowsort
SELECT 63 + - + col1 FROM tab2 AS cor0
----
-14
-4
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT + - col0 + + - 58 DIV + - col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-7279
SELECT + - col0 + + - 58 / + - col0 FROM tab1 AS cor0
----
-50
-85
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT - 49 + - col2 + + col0 DIV - col2 FROM tab2 AS cor0
----
-108
-74
-90

skipif mysql # not compatible
query I rowsort label-7281
SELECT - 49 + - col2 + + col0 / - col2 FROM tab2 AS cor0
----
-108
-74
-90

query I rowsort
SELECT DISTINCT - 31 * - col2 FROM tab2 AS cor0
----
1240
1798
713

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

query I rowsort
SELECT DISTINCT 86 * - ( - col2 ) FROM tab2
----
1978
3440
4988

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 29 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL - MIN( DISTINCT 67 ) + + - 7 FROM tab2, tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - MIN ( DISTINCT 67 ) + + - 7 FROM tab2, tab0 AS cor0
----
-74

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

query I rowsort
SELECT - col1 * col1 * + - 96 FROM tab2 AS cor0
----
249696
430944
569184

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT SUM( + 95 ) * - - 12 - - 41 FROM tab1
----
3461

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT SUM ( + 95 ) * - - 12 - - 41 FROM tab1
----
3461

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7291
SELECT - SUM( ALL 41 ) DIV 67 + - COUNT( * ) DIV - 45 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7291
SELECT - SUM ( ALL 41 ) / 67 + - COUNT ( * ) / - 45 FROM tab1 AS cor0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - COUNT( * ) * - MAX( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
243

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT + MIN( 97 ) * + COUNT( * ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT + MIN ( 97 ) * + COUNT ( * ) FROM tab2 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7296
SELECT DISTINCT col1 + + 13 FROM tab1 WHERE 18 + + CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT col1 + + 13 FROM tab1 WHERE 18 + + CAST ( NULL AS INTEGER ) <> - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 70 * + - col2 NOT IN ( 16 + 58 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 11 * col1 AS col2 FROM tab0
----
-11
-231
-891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7299
SELECT + CAST( + - MIN( ALL 24 ) AS SIGNED ) FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-7299
SELECT + CAST ( + - MIN ( ALL 24 ) AS INTEGER ) FROM tab2
----
-24

query I rowsort
SELECT 6 * 47 * - - col1 FROM tab1
----
13254
1410
3948

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT - 60 DIV + col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7301
SELECT - 60 / + col2 FROM tab0
----
-1
-6
0

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

query I rowsort
SELECT + 1 * col1 + col1 FROM tab0
----
162
2
42

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT ALL 48 DIV + - col2 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL 48 / + - col2 FROM tab0 AS cor0
----
-1
-4
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 2 NOT BETWEEN - 7 AND 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL 33 + + - COUNT( * ) AS col2 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL 33 + + - COUNT ( * ) AS col2 FROM tab0 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT MIN( ALL + col0 ) * - 94 FROM tab0
----
-1410

skipif mysql # not compatible
query I rowsort label-7309
SELECT MIN ( ALL + col0 ) * - 94 FROM tab0
----
-1410

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT DISTINCT - 11 DIV - 47 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT - 11 / - 47 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT + 96 * + - col1 + + 15 + col1 * - + CAST( 29 AS SIGNED ) AS col1 FROM tab0 WHERE + - col0 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7311
SELECT + 96 * + - col1 + + 15 + col1 * - + CAST ( 29 AS INTEGER ) AS col1 FROM tab0 WHERE + - col0 * + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 + col2 * col0 col0 FROM tab0
----
716
881
9614

onlyif mysql # DIV for integer division: 
query II rowsort label-7313
SELECT ALL 53, + ( col2 ) DIV + - col0 AS col1 FROM tab1
----
53
-1
53
0
53
0

skipif mysql # not compatible
query II rowsort label-7313
SELECT ALL 53, + ( col2 ) / + - col0 AS col1 FROM tab1
----
53
-1
53
0
53
0

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + MIN ( - 86 ) AS col2 FROM tab2
----
-86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT ALL col2 * 11 * + + 28 + - 80 - + + 27 DIV + ( - col1 ) AS col2 FROM tab2 AS cor0
----
12240
17784
7004

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL col2 * 11 * + + 28 + - 80 - + + 27 / + ( - col1 ) AS col2 FROM tab2 AS cor0
----
12240
17784
7004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - ( + 99 ) * + col0 col2 FROM tab1 AS cor0
----
-484704
-496485
-612612

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7322
SELECT - + ( - col2 ) * 29 + + - 87 FROM tab2 cor0 WHERE NOT col2 + - 49 * + + col1 * + 3 + - CAST( + col2 AS SIGNED ) IS NULL
----
1073
1595
580

skipif mysql # not compatible
query I rowsort label-7322
SELECT - + ( - col2 ) * 29 + + - 87 FROM tab2 cor0 WHERE NOT col2 + - 49 * + + col1 * + 3 + - CAST ( + col2 AS INTEGER ) IS NULL
----
1073
1595
580

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7325
SELECT DISTINCT 2, + COUNT( * ) col0 FROM tab1
----
2
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT DISTINCT COUNT( * ) AS col0, - MIN( ALL - - 8 ) FROM tab2
----
3
-8

skipif mysql # not compatible
query II rowsort label-7326
SELECT DISTINCT COUNT ( * ) AS col0, - MIN ( ALL - - 8 ) FROM tab2
----
3
-8

query II rowsort
SELECT ALL 92, col0 AS col1 FROM tab0
----
92
15
92
87
92
97

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

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL + 69 / + ( + col1 ) FROM tab0 AS cor0
----
0
3
69

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

query I rowsort
SELECT - col1 + + col2 * + 1 FROM tab0
----
-11
-34
98

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

query I rowsort
SELECT + 93 + col0 FROM tab1
----
144
178
184

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 - col1 / 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL + COUNT( * ) * + 53 AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + COUNT ( * ) * + 53 AS col1 FROM tab1
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL + SUM( DISTINCT + ( - col0 ) ) AS col1 FROM tab1 WHERE NOT - col0 + col0 NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL + SUM ( DISTINCT + ( - col0 ) ) AS col1 FROM tab1 WHERE NOT - col0 + col0 NOT BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 38 > col2 / col2 + 42
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND col1
----

query I rowsort
SELECT 11 + 9 AS col2 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL ( - col2 ) - col0 * col1 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT 10 + 94 FROM tab2
----
104
104
104

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

query I rowsort
SELECT DISTINCT - col0 * - 67 FROM tab0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT - 42 * COUNT( ALL + col0 ) FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-7344
SELECT - 42 * COUNT ( ALL + col0 ) FROM tab2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT - MIN( col0 ) * COUNT( * ) col0 FROM tab1
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7345
SELECT - MIN ( col0 ) * COUNT ( * ) col0 FROM tab1
----
-153

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

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

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

query I rowsort
SELECT DISTINCT + ( 55 ) * 89 AS col2 FROM tab0
----
4895

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 12 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL - ( MAX( ALL 37 ) ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - ( MAX ( ALL 37 ) ) AS col1 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT col2 * ( + 51 ) FROM tab2
----
1173
2040
2958

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + col1 * + ( + col2 ) BETWEEN col1 AND col2 * + col0
----
46
64

query I rowsort
SELECT DISTINCT + 63 * - col2 AS col0 FROM tab1
----
-3717
-4284
-6048

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT - ( COUNT( * ) ) - - 11 AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7355
SELECT - ( COUNT ( * ) ) - - 11 AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT col1 * 75 - col2 FROM tab0 AS cor0
----
-24
1565
6028

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL 94 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL 94 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7359
SELECT + MIN( ALL 62 ) AS col1 FROM tab2 AS cor0 WHERE + 61 + col0 IN ( ( - 15 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7359
SELECT + MIN ( ALL 62 ) AS col1 FROM tab2 AS cor0 WHERE + 61 + col0 IN ( ( - 15 ) )
----
NULL

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

query I rowsort
SELECT + ( + 84 ) * + col1 AS col2 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL IN ( - col0 * col0 )
----

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

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT + MAX ( - ( col0 ) ) AS col2 FROM tab0
----
-15

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

query I rowsort
SELECT ALL + 51 FROM tab0 AS cor0 WHERE NOT col1 * - 69 = + 70 * 48
----
51
51
51

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

query I rowsort
SELECT ALL 87 * - 22 + col0 * + 91 FROM tab2 WHERE - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT + MIN( ALL - ( - col2 ) ) * 82 FROM tab1
----
4838

skipif mysql # not compatible
query I rowsort label-7368
SELECT + MIN ( ALL - ( - col2 ) ) * 82 FROM tab1
----
4838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 26 col1 FROM tab1
----
1222
130
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT + - CAST( 40 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + - CAST ( 40 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT ALL - col1 * 87 + - col2 AS col0 FROM tab1 AS cor0
----
-1314
-4157
-494

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7373
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT - + col2 + col0 + + 74 FROM tab2 AS cor0
----
91
97
98

query I rowsort
SELECT 41 + 1 * + 10 + + ( col0 + col1 ) FROM tab0
----
147
149
159

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE + col0 + 25 IN ( 25 )
----

query I rowsort
SELECT 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 44 IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7379
SELECT + COUNT( * ) DIV + - COUNT( col2 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7381
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT col0 * - col1 FROM tab0 AS cor0 WHERE + 53 >= ( - - 96 / + 49 )
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col0 + - + col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL + COUNT( * ) * 53 * - 37 + - 28 FROM tab0 AS cor0
----
-5911

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + COUNT ( * ) * 53 * - 37 + - 28 FROM tab0 AS cor0
----
-5911

query I rowsort
SELECT + col0 - + 8 - + + col2 AS col0 FROM tab1 AS cor0
----
-53
15
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT ALL - COUNT( * ) * - - ( - ( + SUM( + 25 ) ) ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - COUNT ( * ) * - - ( - ( + SUM ( + 25 ) ) ) FROM tab2
----
225

query I rowsort
SELECT 71 - - + col2 AS col2 FROM tab0
----
118
170
81

query I rowsort
SELECT - AVG ( col2 ) AS col1 FROM tab2 WHERE NULL BETWEEN + 70 AND - 61 * - col1
----
NULL

query I rowsort
SELECT - 18 + + col0 * + + col1 + 52 FROM tab1
----
4311
459
748

query I rowsort
SELECT col1 + - col1 + col2 * + col1 * + ( - 14 ) FROM tab0
----
-1386
-2940
-53298

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT SUM( DISTINCT col1 ) + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7392
SELECT SUM ( DISTINCT col1 ) + COUNT ( * ) FROM tab2
----
198

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 62 ) NOT BETWEEN col0 AND 94 AND NOT - col2 IS NULL
----
87
21
10
97
1
99

query I rowsort
SELECT - 85 + - + 28 FROM tab1
----
-113
-113
-113

query I rowsort
SELECT col1 + - col1 * + - 99 AS col2 FROM tab2
----
5100
6700
7700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT - col0 + - CAST( - 9 AS SIGNED ) AS col0 FROM tab1
----
-42
-76
-82

skipif mysql # not compatible
query I rowsort label-7396
SELECT - col0 + - CAST ( - 9 AS INTEGER ) AS col0 FROM tab1
----
-42
-76
-82

query I rowsort
SELECT + col2 * col0 * 87 + + + col0 FROM tab0
----
61350
75777
835558

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT + MAX( - col1 ) + - 25 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-7398
SELECT + MAX ( - col1 ) + - 25 AS col0 FROM tab1
----
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7400
SELECT ALL + col1 * 40 AS col0 FROM tab2 WHERE + + CAST( 14 AS SIGNED ) NOT BETWEEN - col1 * col1 AND ( - col0 ) * - 38
----

skipif mysql # not compatible
query I rowsort label-7400
SELECT ALL + col1 * 40 AS col0 FROM tab2 WHERE + + CAST ( 14 AS INTEGER ) NOT BETWEEN - col1 * col1 AND ( - col0 ) * - 38
----

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

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

query I rowsort
SELECT ALL + col0 + - 93 FROM tab0 AS cor0
----
-6
-78
4

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = ( - col0 / col0 + 14 + col1 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 39 col0 FROM tab0
----
-3159
-39
-819

query II rowsort
SELECT ALL + 70, 36 AS col1 FROM tab2
----
70
36
70
36
70
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( 89, col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( 89, col0 )
----
0

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

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

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

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

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

query I rowsort
SELECT - 62 * - + 76 AS col1 FROM tab2 cor0
----
4712
4712
4712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 AS cor0 WHERE NOT col2 <= + 66 * - + col0 / col1 * - col2 + - ( col1 )
----

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

skipif mysql # not compatible
query I rowsort label-7415
SELECT DISTINCT - MAX ( 9 ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT MAX( DISTINCT 83 ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7416
SELECT MAX ( DISTINCT 83 ) FROM tab2 AS cor0
----
83

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col1 IN ( + + ( - - 92 ) ) )
----

query III rowsort
SELECT 84 AS col0, + col2 * 57 * + 55, col1 AS col2 FROM tab2
----
9 values hashing to dcfcbe6f26f2afe4497bdc228518d575

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > + col0
----
87
21
10
97
1
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7423
SELECT + CAST( + col0 AS SIGNED ) + + 36 * - ( + + col2 ) FROM tab1
----
-2039
-2357
-3405

skipif mysql # not compatible
query I rowsort label-7423
SELECT + CAST ( + col0 AS INTEGER ) + + 36 * - ( + + col2 ) FROM tab1
----
-2039
-2357
-3405

query I rowsort
SELECT ALL - ( + - ( - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT - CAST( NULL AS SIGNED ) + - - 40 - - 18 / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT - CAST ( NULL AS INTEGER ) + - - 40 - - 18 / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 42 FROM tab0 WHERE NOT ( + 48 * - - 38 - - + col1 * - col1 ) IS NULL
----
42
42
42

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 90 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - 41 * - 93 FROM tab0 AS cor0
----
3813
3813
3813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 56 col2 FROM tab0 AS cor0
----
2632
5544
560

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 > + ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7432
SELECT ALL CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT MAX( - 20 ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7433
SELECT MAX ( - 20 ) FROM tab1 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * + 81 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to eb325b876505d9bd74acbfbf5e478f2e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * - col0 + col2 + + 77 col0 FROM tab2
----
4608
6389
7485

query I rowsort
SELECT DISTINCT - col2 + - + 93 AS col0 FROM tab1
----
-152
-161
-189

query I rowsort
SELECT - + col1 * + + 63 + 38 FROM tab0 cor0
----
-1285
-25
-5065

query II rowsort
SELECT col2 + + 22 AS col1, - col1 * - + col1 AS col1 FROM tab0 AS cor0
----
121
1
32
441
69
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7439
SELECT DISTINCT CAST( + + ( - - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT CAST ( + + ( - - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( + 94 ) * + ( + - 38 ), + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7441
SELECT + + CAST( - + 41 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-7441
SELECT + + CAST ( - + 41 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + 46 * - col2 AS col1 FROM tab2 AS cor0
----
-1058
-1840
-2668

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7443
SELECT ALL - - 88 DIV - + col1 + + col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - CAST( NULL AS SIGNED ) IS NULL )
----
704
866
9515

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - - 88 / - + col1 + + col2 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS INTEGER ) IS NULL )
----
704
866
9515

query I rowsort
SELECT DISTINCT 0 * col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT - 53 * - 96 FROM tab0
----
5088
5088
5088

query I rowsort
SELECT - - col1 + - col1 / col0 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 81 FROM tab1
----
-4131
-6885
-7371

query I rowsort
SELECT DISTINCT - 88 FROM tab0 WHERE NULL >= 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT - col2 * CAST( NULL AS SIGNED ) + + col1 + - - col0 * - 7 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT - col2 * CAST ( NULL AS INTEGER ) + + col1 + - - col0 * - 7 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7451
SELECT - ( - + col0 ) - + + CAST( NULL AS SIGNED ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT - ( - + col0 ) - + + CAST ( NULL AS INTEGER ) + - + col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN ( - 92 + - - 11 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT SUM( ALL 62 ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT SUM ( ALL 62 ) FROM tab0
----
186

query I rowsort
SELECT + col1 + - ( - col1 ) + - - col1 * + 45 AS col0 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - 77 * col1 + + 60 AS col2 FROM tab0 cor0
----
-1557
-17
-6177

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( ( NOT ( NOT ( col1 ) > col2 * - 58 ) ) ) ) ) OR NOT NULL NOT BETWEEN ( - 79 ) AND + 27
----

query I rowsort
SELECT - + 24 AS col1 FROM tab2 cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 26 - col0 + - 18 / - + 81 - 43 IS NULL OR NOT - - col2 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + col2 * + col0 * col1 AS col1 FROM tab1 WHERE 58 IS NOT NULL
----
125375
13669292
959616

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT DISTINCT 71 DIV + 61 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT 71 / + 61 FROM tab2
----
1

query II rowsort
SELECT + 25 * + col0 AS col1, + 30 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col1, + 2 FROM tab0 WHERE - col0 / + col0 IS NULL
----

query I rowsort
SELECT 18 * + - 54 FROM tab1
----
-972
-972
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT - MAX( ALL - + col1 ) * + 85 FROM tab2 WHERE NULL IS NULL
----
4335

skipif mysql # not compatible
query I rowsort label-7465
SELECT - MAX ( ALL - + col1 ) * + 85 FROM tab2 WHERE NULL IS NULL
----
4335

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
59
59

query I rowsort
SELECT DISTINCT ( - ( - 23 ) ) AS col1 FROM tab1 AS cor0
----
23

query I rowsort
SELECT 8 + + col2 AS col2 FROM tab1
----
104
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT 66 * + + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-7469
SELECT 66 * + + COUNT ( * ) FROM tab2
----
198

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7471
SELECT ALL COUNT( * ) + CAST( + MAX( ALL col1 ) AS SIGNED ) AS col1, + 23 + - - MAX( + col0 ) AS col1 FROM tab0 AS cor0
----
84
120

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL COUNT ( * ) + CAST ( + MAX ( ALL col1 ) AS INTEGER ) AS col1, + 23 + - - MAX ( + col0 ) AS col1 FROM tab0 AS cor0
----
84
120

query I rowsort
SELECT ALL col0 * + 47 * - ( col2 ) AS col1 FROM tab0 AS cor0 WHERE 70 + - + col0 + col2 + + col2 IS NOT NULL
----
-33135
-40890
-451341

query II rowsort
SELECT ALL - 9 + + col1, - col2 AS col2 FROM tab1 AS cor0
----
-4
-59
38
-68
5
-96

query I rowsort
SELECT 59 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 20 * - col1 + - col0 FROM tab0 AS cor0
----
-77
1605
333

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT ALL - + 11 * + - col0 - + + CAST( NULL AS SIGNED ) - col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL - + 11 * + - col0 - + + CAST ( NULL AS INTEGER ) - col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * - - 93 - col0 FROM tab2 AS cor0
----
4697
6156
7097

query I rowsort
SELECT + 15 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT + col0 - + col1 * - 41 AS col1 FROM tab2
----
2137
2822
3221

query I rowsort
SELECT DISTINCT + 2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT - COUNT( * ) - - 22 + COUNT( * ) DIV + ( 13 ) * + 57 AS col0 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - COUNT ( * ) - - 22 + COUNT ( * ) / + ( 13 ) * + 57 AS col0 FROM tab2
----
19

query I rowsort
SELECT ALL col0 * 0 - + - col1 FROM tab1
----
14
47
5

query I rowsort
SELECT - 11 * + + col0 * - + col0 FROM tab2
----
23276
45056
61875

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) AS col1 FROM tab1
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT COUNT( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 51 AND - + col2
----
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 51 AND - + col2
----
0

query I rowsort
SELECT DISTINCT 18 * col0 FROM tab2 WHERE NOT NULL <> ( + + col2 )
----

query I rowsort
SELECT + + 85 * col2 * + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
2131375
24721060
5826240

query II rowsort
SELECT col1 AS col2, - 84 + + col0 + + - col2 + - - 74 FROM tab0 AS cor0
----
1
-12
21
67
81
-42

query I rowsort
SELECT DISTINCT + col2 * 58 FROM tab1 AS cor0
----
3422
3944
5568

query I rowsort
SELECT ALL - + 14 * + 75 * + - col1 FROM tab0 AS cor0
----
1050
22050
85050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, 76 col1 FROM tab0 cor0
----
10
76
47
76
99
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7493
SELECT + 25, 49 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
25
-147

skipif mysql # not compatible
query II rowsort label-7493
SELECT + 25, 49 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
25
-147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - + 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE NOT ( NOT 42 / + 19 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NOT 42 / + 19 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + 10 + + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7496
SELECT + 10 + + COUNT ( * ) FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + col2 col2 FROM tab1 AS cor0
----
107
70
79

query II rowsort
SELECT ALL col1, - 54 AS col1 FROM tab2 AS cor0
----
51
-54
67
-54
77
-54

query I rowsort
SELECT ALL - col1 * + + col2 + + col2 + col2 FROM tab1 AS cor0
----
-1152
-177
-3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT DISTINCT - COUNT( * ) DIV + 76 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT - COUNT ( * ) / + 76 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT DISTINCT + - ( + col2 ) DIV - 95 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + - ( + col2 ) / - 95 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 19 = - col0 + - + col2 + 46 + + 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7503
SELECT - 50 * + - CAST( NULL AS DECIMAL ) * + 4 * - - col2 + + 14 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT - 50 * + - CAST ( NULL AS REAL ) * + 4 * - - col2 + + 14 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7506
SELECT DISTINCT - + AVG ( - CAST( NULL AS SIGNED ) ) - - + CAST( NULL AS SIGNED ), - CAST( ( + + 57 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
-57

skipif mysql # not compatible
query II rowsort label-7506
SELECT DISTINCT - + AVG ( - CAST ( NULL AS INTEGER ) ) - - + CAST ( NULL AS INTEGER ), - CAST ( ( + + 57 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL - COUNT( * ) + - + 71 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - COUNT ( * ) + - + 71 FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT - + 74 + COUNT( * ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - + 74 + COUNT ( * ) FROM tab0 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 73 ) col2 FROM tab0 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7510
SELECT COUNT( * ) AS col0, - 14 DIV + 20 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-7510
SELECT COUNT ( * ) AS col0, - 14 / + 20 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3
0

query I rowsort
SELECT DISTINCT 32 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-2569
-4457
-5897

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 52 - + - col2 - 4 FROM tab1 AS cor0
----
-3013
-3472
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-7513
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7513
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7515
SELECT DISTINCT CAST( + - 73 AS SIGNED ) AS col1, + 34 + - - MAX( - 49 ) col0 FROM tab2
----
-73
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7515
SELECT DISTINCT CAST ( + - 73 AS INTEGER ) AS col1, + 34 + - - MAX ( - 49 ) col0 FROM tab2
----
-73
-15

query I rowsort
SELECT col0 * - 67 AS col1 FROM tab0
----
-1005
-5829
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 col1, col2 AS col1 FROM tab2
----
16
23
16
40
16
58

query I rowsort
SELECT DISTINCT 74 * + - col0 FROM tab0
----
-1110
-6438
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT 12 * + ( - COUNT( * ) ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-7519
SELECT 12 * + ( - COUNT ( * ) ) FROM tab0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT ALL + CAST( + + 3 AS SIGNED ) AS col2 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL + CAST ( + + 3 AS INTEGER ) AS col2 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7521
SELECT - col1 * + 36 * + CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT - col1 * + 36 * + CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 60 AS col1, col0 col0 FROM tab1 AS cor0
----
60
51
60
85
60
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT + + 32 DIV + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7523
SELECT + + 32 / + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + col2 * - col2 AS col0 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT ALL COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7525
SELECT ALL COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT ( - + 88 ) AS col1 FROM tab1
----
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL + MIN( col1 ) FROM tab1 AS cor0 WHERE NOT + 97 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL + MIN ( col1 ) FROM tab1 AS cor0 WHERE NOT + 97 IS NOT NULL
----
NULL

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 III rowsort label-7530
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - + 62 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7530
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + 62 IS NULL
----

query I rowsort
SELECT + ( + 78 ) FROM tab0
----
78
78
78

query I rowsort
SELECT DISTINCT col1 - - - col1 * - col1 AS col0 FROM tab1 WHERE NOT ( NULL ) > ( 67 * - col2 )
----

query I rowsort
SELECT ALL 11 * col1 * 30 FROM tab1
----
15510
1650
4620

query I rowsort
SELECT DISTINCT + 97 + + col2 FROM tab0
----
107
144
196

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab2 WHERE NULL > - col2 * - 83 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 11 + + COUNT( * ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-7536
SELECT 11 + + COUNT ( * ) FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7537
SELECT DISTINCT 68 + MAX( ALL + col1 ), - 16 AS col0 FROM tab1 AS cor0
----
115
-16

skipif mysql # not compatible
query II rowsort label-7537
SELECT DISTINCT 68 + MAX ( ALL + col1 ), - 16 AS col0 FROM tab1 AS cor0
----
115
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT + CAST( - + 85 AS SIGNED ) * - col2 + - 28 AS col0 FROM tab1 cor0
----
4987
5752
8132

skipif mysql # not compatible
query I rowsort label-7538
SELECT + CAST ( - + 85 AS INTEGER ) * - col2 + - 28 AS col0 FROM tab1 cor0
----
4987
5752
8132

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT DISTINCT + - COUNT( * ) * - MIN( ALL - 69 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + - COUNT ( * ) * - MIN ( ALL - 69 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-621

query II rowsort
SELECT DISTINCT - col2 * - - col0, col2 AS col0 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL + SUM( DISTINCT - 33 ) col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7541
SELECT ALL + SUM ( DISTINCT - 33 ) col2 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + SUM( - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + SUM ( - col0 ) FROM tab2 cor0
----
-185

query I rowsort
SELECT + + ( - 30 ) AS col0 FROM tab1 AS cor0
----
-30
-30
-30

query II rowsort
SELECT 43, + col2 FROM tab0
----
43
10
43
47
43
99

query II rowsort
SELECT ALL - - col1, - col2 AS col1 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT + col2 DIV col2 + - col1 + 50 FROM tab2 AS cor0
----
-16
-26
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT + col2 / col2 + - col1 + 50 FROM tab2 AS cor0
----
-16
-26
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + col0 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7548
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7548
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7549
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE ( NOT - col2 <= NULL )
----

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE ( NOT - col2 <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 * - ( - + col2 ) col0 FROM tab1 AS cor0
----
-1770
-2040
-2880

query I rowsort
SELECT - - col2 * - col0 + col1 AS col2 FROM tab1 cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT - COUNT( * ) DIV COUNT( * ) + - ( 21 ) + + + COUNT( * ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-7552
SELECT - COUNT ( * ) / COUNT ( * ) + - ( 21 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT - - COUNT( * ) + - ( + - 76 ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - - COUNT ( * ) + - ( + - 76 ) AS col0 FROM tab0 AS cor0
----
79

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 43 BETWEEN - col1 AND + col1 * - col2 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 85 * - col2 AS col2 FROM tab0 AS cor0
----
-3995
-8415
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL + 36 * COUNT( * ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL + 36 * COUNT ( * ) FROM tab2
----
108

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE - 3 > - col0
----
59
68
96

query I rowsort
SELECT ALL col0 * 78 + + col0 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 - + 94 + + - 66 AS col2 FROM tab2
----
-2761
-4649
-6089

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7560
SELECT - 36 * - + CAST( NULL AS SIGNED ) AS col0, + col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7560
SELECT - 36 * - + CAST ( NULL AS INTEGER ) AS col0, + col0 AS col2 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT - 47 + - - col2 + 33 FROM tab1 AS cor0
----
45
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT + CAST( NULL AS SIGNED ) * + col0 / col1 - col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT + CAST ( NULL AS INTEGER ) * + col0 / col1 - col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT DISTINCT COUNT( * ) * - 45 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT COUNT ( * ) * - 45 FROM tab2 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT DISTINCT - 8 - + SUM( ALL 53 ) col1 FROM tab0 AS cor0
----
-167

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7564
SELECT DISTINCT - 8 - + SUM ( ALL 53 ) col1 FROM tab0 AS cor0
----
-167

query I rowsort
SELECT DISTINCT - + col2 * + col2 - - 1 FROM tab2 AS cor0
----
-1599
-3363
-528

query I rowsort
SELECT ALL col1 * + - 60 FROM tab0
----
-1260
-4860
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT DISTINCT 7 + + ( + MAX( - - 29 ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
36

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT 7 + + ( + MAX ( - - 29 ) ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 28 col0 FROM tab0
----
1316
2772
280

query I rowsort
SELECT 74 * - col2 AS col0 FROM tab1
----
-4366
-5032
-7104

query II rowsort
SELECT + 47 AS col0, + col0 * + - col1 FROM tab1 cor0
----
47
-425
47
-4277
47
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7571
SELECT DISTINCT ( - SUM( ALL 45 ) ) DIV + + COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT ( - SUM ( ALL 45 ) ) / + + COUNT ( * ) FROM tab0 AS cor0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 86 col1 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT DISTINCT + MAX( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + MAX ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col2 * - 58 FROM tab1 AS cor0
----
-283968
-290870
-358904

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 24 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 9 > - col2 * + - 92
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 94 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT ALL col2 DIV - + col2 col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7578
SELECT ALL col2 / - + col2 col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT 71 * + MAX( col0 ) FROM tab2
----
5325

skipif mysql # not compatible
query I rowsort label-7579
SELECT 71 * + MAX ( col0 ) FROM tab2
----
5325

onlyif mysql # DIV for integer division: 
query I rowsort label-7580
SELECT DISTINCT - col1 DIV - + 95 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT DISTINCT - col1 / - + 95 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT COUNT( * ) * + + COUNT( * ) FROM tab2, tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7581
SELECT COUNT ( * ) * + + COUNT ( * ) FROM tab2, tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 > NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 3 / - 47 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 12 col1 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * 23 + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7587
SELECT ALL - CAST( + col2 AS SIGNED ), + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

skipif mysql # not compatible
query II rowsort label-7587
SELECT ALL - CAST ( + col2 AS INTEGER ), + col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7588
SELECT ALL + ( - + MAX( - col2 ) ) AS col2, + 18 FROM tab0
----
10
18

skipif mysql # not compatible
query II rowsort label-7588
SELECT ALL + ( - + MAX ( - col2 ) ) AS col2, + 18 FROM tab0
----
10
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT ALL col2 + + - col2 DIV - - col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL col2 + + - col2 / - - col2 FROM tab1
----
58
67
95

query I rowsort
SELECT 46 + - - 64 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT DISTINCT + col2 + + 57 FROM tab0 AS cor0
----
104
156
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 10 <= - col0 + + col2
----

query I rowsort
SELECT ALL + 70 - - - col0 * - col1 + - col0 FROM tab0 cor0
----
1270
1810
70

query I rowsort
SELECT DISTINCT + 70 * + col0 AS col0 FROM tab1
----
3570
5950
6370

query I rowsort
SELECT - col0 - - col2 * + + col0 AS col0 FROM tab1
----
4845
4930
6097

query II rowsort
SELECT ALL 68, 27 AS col0 FROM tab1
----
68
27
68
27
68
27

query I rowsort
SELECT ALL ( + + ( + + col1 ) ) + + + col1 FROM tab2
----
102
134
154

query I rowsort
SELECT 69 + - 66 FROM tab0
----
3
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7600
SELECT ALL - col0 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - col0 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT COUNT( * ) AS col1 FROM tab0 WHERE - - col0 + - 61 + ( - - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7601
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - - col0 + - 61 + ( - - col2 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT - SUM( DISTINCT ( 89 ) ) + - + 13 AS col2, + 54 AS col2 FROM tab1
----
-102
54

skipif mysql # not compatible
query II rowsort label-7602
SELECT - SUM ( DISTINCT ( 89 ) ) + - + 13 AS col2, + 54 AS col2 FROM tab1
----
-102
54

query I rowsort
SELECT DISTINCT col2 + + 34 FROM tab0
----
133
44
81

query I rowsort
SELECT ALL 85 + - ( col2 ) AS col1 FROM tab0
----
-14
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) * - 98 col1 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7605
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) * - 98 col1 FROM tab2 AS cor0
----
-297

query I rowsort
SELECT ALL + col2 + + - 8 * + - 54 FROM tab2 AS cor0
----
455
472
490

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT DISTINCT + col0 DIV col2 - col1 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT + col0 / col2 - col1 FROM tab1 AS cor0
----
-14
-4
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - 58 )
----

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - 58 )
----

query II rowsort
SELECT + 61, - col0 AS col2 FROM tab2 AS cor0
----
61
-46
61
-64
61
-75

query I rowsort
SELECT ALL - 15 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7611
SELECT ALL 6 DIV 67 DIV 95 * + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL 6 / 67 / 95 * + COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT 62 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT 62 IS NULL
----
3

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT + col2 * col1 + + col0 - - + ( - 49 ), col2 AS col1 FROM tab2 AS cor0
----
1170
23
3095
40
3912
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT ALL CAST( + 39 AS SIGNED ) FROM tab2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL CAST ( + 39 AS INTEGER ) FROM tab2
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7616
SELECT 11, + 96 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
11
NULL
11
NULL
11
NULL

skipif mysql # not compatible
query II rowsort label-7616
SELECT 11, + 96 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
11
NULL
11
NULL
11
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * ( + - col2 ) * - - col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7619
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, - CAST( + + 90 AS SIGNED ) FROM tab0
----
NULL
-90

skipif mysql # not compatible
query II rowsort label-7619
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, - CAST ( + + 90 AS INTEGER ) FROM tab0
----
NULL
-90

query I rowsort
SELECT ALL + col1 + 67 AS col1 FROM tab0
----
148
68
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( + col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT + + COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7622
SELECT + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT COUNT( * ) * + + 22 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7623
SELECT COUNT ( * ) * + + 22 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ( col2 ) * + ( - col2 ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT + 33 FROM tab2 WHERE + 23 + + + col0 IS NOT NULL
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 + ( + col2 ) * col2 col0, 33 - - 38 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 51 + + col2 FROM tab0 AS cor0
----
150
61
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7628
SELECT DISTINCT - CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7628
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( - col0 + + col0, + col0, - - col1, - col2 )
----

query I rowsort
SELECT + + col0 + - col0 * 98 * - - col2 * + + 83 - 59 FROM tab0 cor0
----
-5734514
-7076552
-78110764

query I rowsort
SELECT DISTINCT + + col2 - + - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7632
SELECT ALL 13 - + - COUNT( * ) DIV - ( ( - + COUNT( * ) ) ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL 13 - + - COUNT ( * ) / - ( ( - + COUNT ( * ) ) ) FROM tab0 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 35 >= ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + - ( col2 ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT ALL - + 70 AS col1, COUNT( * ) * 11 AS col1 FROM tab0 WHERE 31 NOT BETWEEN NULL AND - + 59
----
-70
33

skipif mysql # not compatible
query II rowsort label-7636
SELECT ALL - + 70 AS col1, COUNT ( * ) * 11 AS col1 FROM tab0 WHERE 31 NOT BETWEEN NULL AND - + 59
----
-70
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN - + col2 * 12 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN - + col2 * 12 AND + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 48 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT DISTINCT - - COUNT( * ) AS col2, 34 AS col1 FROM tab0 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-7639
SELECT DISTINCT - - COUNT ( * ) AS col2, 34 AS col1 FROM tab0 AS cor0
----
3
34

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - 29 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - col0 IS NULL
----
-29
-29
-29

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT col0, + col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT col1 DIV - + col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7644
SELECT col1 / - + col2 FROM tab2 cor0
----
-1
-1
-2

query I rowsort
SELECT - + ( + col2 ) * - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7646
SELECT - col2 DIV - - col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7646
SELECT - col2 / - - col2 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - - col2 ) col0 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT ALL + 29 DIV col1 FROM tab0 AS cor0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + 29 / col1 FROM tab0 AS cor0
----
0
1
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 - + col2 < ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col2 ) * - col0 - col1 + 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + 83 * + + ( - + COUNT( * ) ) FROM tab0 WHERE NOT - col0 * 87 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT + 83 * + + ( - + COUNT ( * ) ) FROM tab0 WHERE NOT - col0 * 87 * - col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - col1 * + - col0 * + 9 FROM tab1
----
3825
38493
6426

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT + MAX( + + ( + col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + MAX ( + + ( + col1 ) ) AS col1 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL col0 + + col0 DIV 57 DIV - - 9 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL col0 + + col0 / 57 / - - 9 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + ( + + col1 ) * + 94 FROM tab1
----
1316
4418
470

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL < + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 15 + - 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 33 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL 1 AS col1, + 63 FROM tab2
----
1
63
1
63
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT + COUNT( ALL 60 ) FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7661
SELECT + COUNT ( ALL 60 ) FROM tab0, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT ALL - ( - + 14 ) * + 84 + + 11, MIN( + - 29 ) AS col0 FROM tab1 AS cor0
----
1187
-29

skipif mysql # not compatible
query II rowsort label-7662
SELECT ALL - ( - + 14 ) * + 84 + + 11, MIN ( + - 29 ) AS col0 FROM tab1 AS cor0
----
1187
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT ALL + 55 + + ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + 55 + + ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
58

query I rowsort
SELECT - + col1 - - + col2 AS col2 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT DISTINCT + + col1 AS col2, 79 * col0 FROM tab1 AS cor0
----
14
4029
47
7189
5
6715

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT - + ( MAX( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - + ( MAX ( - + col2 ) ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + + col2 + - 72 FROM tab2 AS cor0
----
-14
-32
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - COUNT( * ) * - COUNT( * ) * - MIN( + col1 ) + - - ( + SUM( + + ( - col1 ) ) ) + - + 7 FROM tab2
----
-661

skipif mysql # not compatible
query I rowsort label-7668
SELECT - COUNT ( * ) * - COUNT ( * ) * - MIN ( + col1 ) + - - ( + SUM ( + + ( - col1 ) ) ) + - + 7 FROM tab2
----
-661

query I rowsort
SELECT - 65 + + col2 * 51 AS col2 FROM tab1
----
2944
3403
4831

query I rowsort
SELECT + col0 * - col2 + col0 * + - ( + col1 ) AS col2 FROM tab2
----
-3404
-7488
-9375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7671
SELECT - SUM( col2 ) + + CAST( NULL AS SIGNED ) - + 14 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7671
SELECT - SUM ( col2 ) + + CAST ( NULL AS INTEGER ) - + 14 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT MAX( - col1 ) + + COUNT( * ) col1 FROM tab1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7672
SELECT MAX ( - col1 ) + + COUNT ( * ) col1 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL + COUNT( * ) + 46 AS col2 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL + COUNT ( * ) + 46 AS col2 FROM tab0
----
49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * - ( - col0 ) * 41 + - + 90 - + + col2 * - - col1 <> NULL
----

query I rowsort
SELECT - 11 + - col0 AS col1 FROM tab1
----
-102
-62
-96

query I rowsort
SELECT DISTINCT + + ( + ( - col0 ) ) FROM tab1 AS cor0 WHERE NOT ( NOT + 69 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT + CAST( - + 96 AS SIGNED ) FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-7677
SELECT + CAST ( - + 96 AS INTEGER ) FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT col2 * - ( ( col0 ) ) FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-7679
SELECT - 21 DIV - col1 - - 72 AS col1, - col0 FROM tab0 AS cor0
----
72
-15
73
-87
93
-97

skipif mysql # not compatible
query II rowsort label-7679
SELECT - 21 / - col1 - - 72 AS col1, - col0 FROM tab0 AS cor0
----
72
-15
73
-87
93
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT + - 71 DIV COUNT( - - col1 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7680
SELECT + - 71 / COUNT ( - - col1 ) FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - COUNT( ALL 28 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - COUNT ( ALL 28 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 19 col1 FROM tab2 AS cor0
----
-1216
-1425
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT - COUNT( - - col1 ) * 99 * COUNT( * ) FROM tab2 cor0
----
-891

skipif mysql # not compatible
query I rowsort label-7683
SELECT - COUNT ( - - col1 ) * 99 * COUNT ( * ) FROM tab2 cor0
----
-891

query I rowsort
SELECT DISTINCT - 17 * - 57 + - col0 FROM tab1 AS cor0
----
878
884
918

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7685
SELECT * FROM tab1 cor0 WHERE - col2 <= - + CAST( - + 38 AS SIGNED ) + + - ( + CAST( - + 19 AS SIGNED ) ) AND NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-7685
SELECT * FROM tab1 cor0 WHERE - col2 <= - + CAST ( - + 38 AS INTEGER ) + + - ( + CAST ( - + 19 AS INTEGER ) ) AND NOT NULL IS NULL
----

query I rowsort
SELECT + 82 + - 38 AS col0 FROM tab1 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + - 14 col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT - - 94 AS col2 FROM tab0 WHERE NOT + + col2 = - col0
----
94
94
94

query II rowsort
SELECT ALL col1, col0 + 82 - + + col0 + - col1 * + - 72 AS col1 FROM tab2
----
51
3754
67
4906
77
5626

query II rowsort
SELECT ALL + 92 + - ( - col2 ) * - - 54 AS col1, 4 + + col0 AS col0 FROM tab1
----
3278
89
3764
95
5276
55

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT ( + + 88 ) * + 20 + 10 + 86 FROM tab2
----
1856

onlyif mysql # aggregate syntax: 
query II rowsort label-7693
SELECT + 97 col2, COUNT( * ) * - ( - - 3 ) FROM tab1 AS cor0
----
97
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7693
SELECT + 97 col2, COUNT ( * ) * - ( - - 3 ) FROM tab1 AS cor0
----
97
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT - MIN( + 43 ) AS col1 FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-7694
SELECT - MIN ( + 43 ) AS col1 FROM tab1 cor0
----
-43

query I rowsort
SELECT DISTINCT - + col0 + + - 24 + 9 AS col1 FROM tab2 AS cor0
----
-61
-79
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL - COUNT( * ) + + - SUM( - 12 ) * + 14 FROM tab0
----
501

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - COUNT ( * ) + + - SUM ( - 12 ) * + 14 FROM tab0
----
501

onlyif mysql # DIV for integer division: 
query I rowsort label-7697
SELECT ( + col2 ) * + col1 + + + 18 * - 49 + + - ( + col2 ) DIV - - 83 * col1 * - col1 FROM tab2 AS cor0
----
2198
291
3004

skipif mysql # not compatible
query I rowsort label-7697
SELECT ( + col2 ) * + col1 + + + 18 * - 49 + + - ( + col2 ) / - - 83 * col1 * - col1 FROM tab2 AS cor0
----
2198
291
3004

query II rowsort
SELECT - - 67 + - - 84 AS col2, col1 FROM tab0 AS cor0
----
151
1
151
21
151
81

query I rowsort
SELECT + 74 * + 10 + - 80 FROM tab0 AS cor0 WHERE NULL IS NULL
----
660
660
660

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - 83 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-7700
SELECT - 83 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT col2 + + col0 - + col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + 34 * - col1 + col1 FROM tab2 AS cor0
----
-1683
-2211
-2541

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7703
SELECT DISTINCT - - col1 * - col2 + + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7703
SELECT DISTINCT - - col1 * - col2 + + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 59 / ( + col0 ) IS NULL
----

query II rowsort
SELECT + ( - - col1 ) AS col0, - col0 * col2 AS col0 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT DISTINCT col0 - + + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT col0 - + + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 72
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT ALL + 64 - + 45 + + COUNT( * ) DIV - ( + 43 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 64 - + 45 + + COUNT ( * ) / - ( + 43 ) FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL + ( CAST( NULL AS SIGNED ) ) * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) * - col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT ALL + 57 DIV + - 70 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + 57 / + - 70 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 + 99 AS col2 FROM tab0 WHERE NOT - col1 * + 13 + + col0 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7713
SELECT COUNT( DISTINCT + + col2 ) AS col2, 74 AS col2 FROM tab2
----
3
74

skipif mysql # not compatible
query II rowsort label-7713
SELECT COUNT ( DISTINCT + + col2 ) AS col2, 74 AS col2 FROM tab2
----
3
74

query I rowsort
SELECT ALL + col0 + + 80 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
4177
5502
6301

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT ALL ( - 66 ) AS col0, 79 + COUNT( DISTINCT - 47 ) AS col1 FROM tab0 AS cor0
----
-66
80

skipif mysql # not compatible
query II rowsort label-7715
SELECT ALL ( - 66 ) AS col0, 79 + COUNT ( DISTINCT - 47 ) AS col1 FROM tab0 AS cor0
----
-66
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT + col2 DIV 18 - - col0 FROM tab0 AS cor0
----
102
17
87

skipif mysql # not compatible
query I rowsort label-7716
SELECT + col2 / 18 - - col0 FROM tab0 AS cor0
----
102
17
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <= - + 78 + - + col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT 7 - - col1 * - 41 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - 57 + - 50 FROM tab1
----
-107
-107
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT CAST( + AVG ( col1 ) AS SIGNED ) col0 FROM tab0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7720
SELECT CAST ( + AVG ( col1 ) AS INTEGER ) col0 FROM tab0
----
34

query III rowsort
SELECT * FROM tab0 WHERE - - col1 > 34
----
15
81
47

query II rowsort
SELECT col1, col0 + + col2 * - - col1 AS col0 FROM tab1
----
14
1395
47
3287
5
380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7723
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) + + col1 AS col1, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-7723
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) + + col1 AS col1, - col1 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL 81 + + - 86 * - - COUNT( * ) AS col0 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 81 + + - 86 * - - COUNT ( * ) AS col0 FROM tab1
----
-177

query I rowsort
SELECT - col2 + + 4 * ( - col1 ) * - col1 + + - col1 FROM tab1
----
36
674
8721

query I rowsort
SELECT ALL + 31 + 20 * - - col2 FROM tab2
----
1191
491
831

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NULL AND NOT + ( col0 ) NOT BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT - - 67 * + ( + COUNT( * ) ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7728
SELECT - - 67 * + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
201

query I rowsort
SELECT + col1 * + 63 AS col1 FROM tab2
----
3213
4221
4851

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 9 NOT BETWEEN + - col2 AND NULL
----

query I rowsort
SELECT - col2 - + ( + col0 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + + 90 - - 72 FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT COUNT( * ) * - COUNT( * ) * - 99 - + + SUM( + col0 ) FROM tab0 AS cor0
----
692

skipif mysql # not compatible
query I rowsort label-7733
SELECT COUNT ( * ) * - COUNT ( * ) * - 99 - + + SUM ( + col0 ) FROM tab0 AS cor0
----
692

query II rowsort
SELECT DISTINCT col1 + + 34, + col0 AS col2 FROM tab1 WHERE NOT NULL <> + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7735
SELECT DISTINCT col1 DIV - + 28, + col2 * + ( ( 32 ) ) AS col0 FROM tab0
----
-2
1504
0
3168
0
320

skipif mysql # not compatible
query II rowsort label-7735
SELECT DISTINCT col1 / - + 28, + col2 * + ( ( 32 ) ) AS col0 FROM tab0
----
-2
1504
0
3168
0
320

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NOT NULL < 56 OR NOT - 95 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT ALL ( + 53 ), + col2 FROM tab1 AS cor0
----
53
59
53
68
53
96

query I rowsort
SELECT DISTINCT - + 10 AS col2 FROM tab2 cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 6 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT - CAST( NULL AS SIGNED ) * 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT - CAST ( NULL AS INTEGER ) * 40 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + col0, + col2 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT ALL - - col1 + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - - col1 + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT + col1 DIV 69 + + 26 col1 FROM tab2 cor0
----
26
26
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7743
SELECT + col1 / 69 + + 26 col1 FROM tab2 cor0
----
26
26
27

query I rowsort
SELECT col1 + + - 39 AS col1 FROM tab2 AS cor0
----
12
28
38

query II rowsort
SELECT DISTINCT - col1, col0 - - 6 * 99 AS col0 FROM tab0 AS cor0
----
-1
691
-21
681
-81
609

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT COUNT( * ) * + 5 AS col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7746
SELECT COUNT ( * ) * + 5 AS col0 FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT 83 + - MAX( + ( + + ( col1 ) ) ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7747
SELECT 83 + - MAX ( + ( + + ( col1 ) ) ) FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT - 14 + - - COUNT( + + col0 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - 14 + - - COUNT ( + + col0 ) FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7749
SELECT - + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col1 * col2 + + 44 AS col1 FROM tab2
----
1217
3124
3930

query II rowsort
SELECT ALL - col1 * - col0 * + + col2, - col2 AS col1 FROM tab1 WHERE NULL IS NULL
----
25075
-59
290836
-68
68544
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT MIN( DISTINCT - + col1 ) AS col2 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-7752
SELECT MIN ( DISTINCT - + col1 ) AS col2 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
-77

query I rowsort
SELECT DISTINCT - 62 + + 13 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT - col2 - + + col0 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - col0 * 41 AS col2 FROM tab2
----
-1886
-2624
-3075

query I rowsort
SELECT col1 * - - col0 * - col2 + col2 + - + col0 AS col1 FROM tab2
----
-197144
-291467
-53981

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - - 57 + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT 0 + + COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7758
SELECT 0 + + COUNT ( * ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 64 + + 53 * 32 FROM tab1
----
1760

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
104
133
69

query I rowsort
SELECT + ( + 65 ) FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7762
SELECT DISTINCT + - 19 * COUNT( * ) - + + 73, MIN( - - col2 ) AS col1 FROM tab2 AS cor0
----
-130
23

skipif mysql # not compatible
query II rowsort label-7762
SELECT DISTINCT + - 19 * COUNT ( * ) - + + 73, MIN ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-130
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT ALL - col2 * + CAST( col2 AS SIGNED ) * - col1 FROM tab0
----
178929
2100
9801

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - col2 * + CAST ( col2 AS INTEGER ) * - col1 FROM tab0
----
178929
2100
9801

query I rowsort
SELECT DISTINCT + 69 * + - 8 * col0 AS col1 FROM tab0
----
-48024
-53544
-8280

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 57
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7766
SELECT DISTINCT 78 AS col0, COUNT( * ) * + 15 * + SUM( col0 ) AS col1 FROM tab1
----
78
10215

skipif mysql # not compatible
query II rowsort label-7766
SELECT DISTINCT 78 AS col0, COUNT ( * ) * + 15 * + SUM ( col0 ) AS col1 FROM tab1
----
78
10215

onlyif mysql # aggregate syntax: 
query II rowsort label-7767
SELECT ALL - COUNT( * ), - 0 AS col1 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-7767
SELECT ALL - COUNT ( * ), - 0 AS col1 FROM tab1
----
-3
0

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT ( + col2 ) BETWEEN NULL AND + ( - - col0 )
----
-47
-99

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 cor0 WHERE NOT col1 * col1 * + - col0 - + + col1 IS NULL
----
1
21
81

query II rowsort
SELECT DISTINCT col1 AS col0, col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
100
21
31
81
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7771
SELECT COUNT( * ) * - COUNT( * ) DIV + MAX( - col0 ) + - - COUNT( * ) * 50 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + 91 ) IS NULL )
----
150

skipif mysql # not compatible
query I rowsort label-7771
SELECT COUNT ( * ) * - COUNT ( * ) / + MAX ( - col0 ) + - - COUNT ( * ) * 50 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( + 91 ) IS NULL )
----
150

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 29 * + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 + - col1 col2, + col1 AS col1 FROM tab2
----
14
77
24
67
40
51

query I rowsort
SELECT DISTINCT - col2 + + 32 + + col2 AS col1 FROM tab2
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + + col2 ), + col2 col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 30 * + col1 * + col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7778
SELECT DISTINCT + + ( + 31 ) * - CAST( - + 38 AS SIGNED ) + - + 83 DIV COUNT( * ) AS col2 FROM tab0 AS cor0
----
1151

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + + ( + 31 ) * - CAST ( - + 38 AS INTEGER ) + - + 83 / COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT MAX( 33 ) AS col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT MAX ( 33 ) AS col1 FROM tab2 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + MIN( 37 ) AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + MIN ( 37 ) AS col1 FROM tab0
----
37

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 NOT IN ( - 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + COUNT( * ) * COUNT( ALL - col1 ) + - MAX( ALL + - col1 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7783
SELECT + COUNT ( * ) * COUNT ( ALL - col1 ) + - MAX ( ALL + - col1 ) FROM tab0
----
10

query I rowsort
SELECT col1 * - ( 87 ) + - - 21 - ( + col0 ) FROM tab0
----
-163
-1893
-7041

query II rowsort
SELECT + col1, 71 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7786
SELECT ALL - + CAST( NULL AS SIGNED ) - col2 + - col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL - + CAST ( NULL AS INTEGER ) - col2 + - col2, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7787
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7787
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - col2, - 9 AS col1 FROM tab1 AS cor0
----
-59
-9
-68
-9
-96
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL COUNT( * ) - + 43 AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL COUNT ( * ) - + 43 AS col1 FROM tab2 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT - CAST( + ( + ( + col1 ) ) AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7790
SELECT - CAST ( + ( + ( + col1 ) ) AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7792
SELECT - ( - col0 ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7792
SELECT - ( - col0 ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ALL MAX( DISTINCT + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL MAX ( DISTINCT + col1 ) AS col2 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / 24 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT ALL - col2 FROM tab0 WHERE col0 - CAST( NULL AS SIGNED ) * col2 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - col2 FROM tab0 WHERE col0 - CAST ( NULL AS INTEGER ) * col2 <= ( NULL )
----

query I rowsort
SELECT ALL + col2 + - 97 AS col0 FROM tab1
----
-1
-29
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT + col0 / - col2 + - 78 FROM tab2 WHERE NULL < - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-7798
SELECT + col0 / - col2 + - 78 FROM tab2 WHERE NULL < - CAST ( NULL AS INTEGER ) * + col1
----

query I rowsort
SELECT - 88 AS col1 FROM tab1 WHERE NULL > ( - 61 )
----

query I rowsort
SELECT DISTINCT 61 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 59 / col0 FROM tab1 WHERE NOT col1 / - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * col2 + - col1 AS col0 FROM tab0 WHERE NOT ( col0 * - ( - col1 ) ) IS NULL
----
2128
79
9800

query I rowsort
SELECT ALL 47 FROM tab1 WHERE NOT NULL < col2
----

query I rowsort
SELECT - 53 - col0 * + col1 AS col1 FROM tab2
----
-2399
-4981
-5078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL - CAST( - 12 AS SIGNED ) + col0 AS col2 FROM tab2
----
58
76
87

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL - CAST ( - 12 AS INTEGER ) + col0 AS col2 FROM tab2
----
58
76
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7807
SELECT + col1 + ( col1 + col2 * - col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 / CAST( NULL AS DECIMAL ) + col0 AND col0 - col2
----

skipif mysql # not compatible
query I rowsort label-7807
SELECT + col1 + ( col1 + col2 * - col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 / CAST ( NULL AS REAL ) + col0 AND col0 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + 43 - + COUNT( * ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-7808
SELECT + 43 - + COUNT ( * ) FROM tab1
----
40

query I rowsort
SELECT col1 + - col2 * - col0 AS col1 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * 65 + - col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col0 + 38 * - 88 IS NULL
----

query I rowsort
SELECT ALL col2 * 92 FROM tab0 AS cor0
----
4324
9108
920

query I rowsort
SELECT 64 * col2 AS col2 FROM tab2 AS cor0
----
1472
2560
3712

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= col0 * 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT ALL 79 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL 79 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT ALL + MIN( DISTINCT - 38 ) col2 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7816
SELECT ALL + MIN ( DISTINCT - 38 ) col2 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT 80 + + col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
103
120
138

query I rowsort
SELECT ALL - 12 * + 19 + - col1 AS col2 FROM tab1
----
-233
-242
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE col1 / - col1 >= ( + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE col1 / - col1 >= ( + 37 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 25 * - col2 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7821
SELECT - - 67 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - - 67 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 95 * + col0 + - col2 * col2 FROM tab2 cor0
----
-10489
-4899
-7680

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * - 11 BETWEEN 60 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 62 ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT ALL MAX( ALL - ( col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL MAX ( ALL - ( col1 ) ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col0 * + 44 AS col0 FROM tab2
----
-2024
-2816
-3300

query I rowsort
SELECT ALL col1 + - col0 + col1 * 78 * col2 FROM tab1
----
104795
22930
249244

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7828
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE ( NULL ) > col2 * + CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7828
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE ( NULL ) > col2 * + CAST ( col2 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7829
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 * + CAST( NULL AS SIGNED ) AND col2
----

skipif mysql # not compatible
query III rowsort label-7829
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 * + CAST ( NULL AS INTEGER ) AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + col1 <> - 16 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - 48 FROM tab1
----
-2448
-4080
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT 83 + + COUNT( * ) + COUNT( * ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT 83 + + COUNT ( * ) + COUNT ( * ) FROM tab0
----
89

query I rowsort
SELECT ALL 71 * - ( col1 ) * - col2 + col1 FROM tab0
----
14931
270378
7030

query I rowsort
SELECT - col2 - - ( 97 ) AS col2 FROM tab0
----
-2
50
87

query I rowsort
SELECT + col0 - - ( 70 ) + 76 * col2 FROM tab2 AS cor0
----
1864
3174
4553

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT + + ( + COUNT( * ) ) - - 19 AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7836
SELECT + + ( + COUNT ( * ) ) - - 19 AS col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT + col0 * - 43 FROM tab2 AS cor0 WHERE col0 / col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7838
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IN ( + col0 ) AND NOT CAST( col2 AS SIGNED ) * - col1 >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7838
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IN ( + col0 ) AND NOT CAST ( col2 AS INTEGER ) * - col1 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT CAST( + + CAST( col2 AS SIGNED ) AS SIGNED ) - col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT CAST ( + + CAST ( col2 AS INTEGER ) AS INTEGER ) - col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 21 + 8 ) BETWEEN 19 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + - 17 AS col2 FROM tab2 WHERE NOT col0 * - 29 IS NULL
----
-68
-84
-94

query II rowsort
SELECT + 51, + col0 AS col2 FROM tab1
----
51
51
51
85
51
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT ALL + - MIN( + ( col1 ) ) * - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL + - MIN ( + ( col1 ) ) * - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
255

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 0 IS NOT NULL
----

query I rowsort
SELECT ALL - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT + - col2 + - 49 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL - MAX( - - 92 ) AS col0 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL - MAX ( - - 92 ) AS col0 FROM tab2 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT + - col1 DIV + - 85 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7848
SELECT + - col1 / + - 85 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= + col0 / 33 - col0 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7851
SELECT COUNT( col0 ) FROM tab2 WHERE NOT NULL < - col0
----
0

skipif mysql # not compatible
query I rowsort label-7851
SELECT COUNT ( col0 ) FROM tab2 WHERE NOT NULL < - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT 35 + 74 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + col0 + + col2 * - - 20 FROM tab0
----
2077
287
955

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT ( - - COUNT( ALL + 49 ) ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7854
SELECT DISTINCT ( - - COUNT ( ALL + 49 ) ) col0 FROM tab2 cor0
----
3

query II rowsort
SELECT + col0 + - ( + - 71 ), col0 * - - col2 AS col1 FROM tab2
----
117
1058
135
2560
146
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 24 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT + ( - - 42 ) * 10 - - MAX( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
478

skipif mysql # not compatible
query I rowsort label-7858
SELECT + ( - - 42 ) * 10 - - MAX ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
478

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL AND ( NULL ) IS NULL
----

query I rowsort
SELECT col1 + - 90 + - col0 * + + col0 * + - col0 AS col2 FROM tab2
----
262131
421852
97297

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( 13, 3 )
----

query I rowsort
SELECT DISTINCT col2 * + + col1 + + 37 FROM tab2
----
1210
3117
3923

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7863
SELECT DISTINCT - col0 col2 FROM tab1 WHERE ( - CAST( col0 AS DECIMAL ) IS NOT NULL )
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7863
SELECT DISTINCT - col0 col2 FROM tab1 WHERE ( - CAST ( col0 AS REAL ) IS NOT NULL )
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 - - + col1 AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

query II rowsort
SELECT ALL 3, + col2 - - - col0 * + col1 - + 76 AS col0 FROM tab0 AS cor0
----
3
-1244
3
-1893
3
-74

query II rowsort
SELECT ALL - + 16, - col2 * 70 AS col0 FROM tab2 AS cor0
----
-16
-1610
-16
-2800
-16
-4060

query I rowsort
SELECT + - 10 AS col1 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT - - col0 * + 53 * col0 FROM tab2 cor0
----
112148
217088
298125

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( 31 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 48 < ( + + col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT + 71 BETWEEN ( - col0 ) AND NULL )
----

query II rowsort
SELECT DISTINCT + ( - ( - 33 ) ) AS col2, col2 AS col1 FROM tab1 AS cor0
----
33
59
33
68
33
96

query II rowsort
SELECT DISTINCT ( - - ( - - 25 ) ) AS col0, + ( - + col0 ) + - + 24 + + col1 AS col1 FROM tab1
----
25
-104
25
-61
25
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col0 + + + col0, 64 col0 FROM tab1
----
59
64
68
64
96
64

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 + + col0 BETWEEN + - 58 AND + col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7877
SELECT * FROM tab2 WHERE NOT - 44 <= ( CAST( NULL AS SIGNED ) ) - - col0
----

skipif mysql # not compatible
query III rowsort label-7877
SELECT * FROM tab2 WHERE NOT - 44 <= ( CAST ( NULL AS INTEGER ) ) - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 33 * + + col0 + + ( - col2 ) + + + col0 + - col2 AS col2 FROM tab0 AS cor0
----
2938
3100
416

query I rowsort
SELECT - 78 FROM tab1 AS cor0 WHERE + col1 + - col0 IS NULL
----

query I rowsort
SELECT col2 * + 4 FROM tab0 AS cor0
----
188
396
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT + MAX( + 45 ) AS col2 FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + MAX ( + 45 ) AS col2 FROM tab2 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 46 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7883
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 46 IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT MIN( 28 ) + + - COUNT( - - 47 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
19

skipif mysql # not compatible
query I rowsort label-7884
SELECT MIN ( 28 ) + + - COUNT ( - - 47 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7885
SELECT ALL + 60 + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL + 60 + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + 25 + ( + SUM( ALL + col1 ) ) + COUNT( ALL + col2 ) * 45 AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-7886
SELECT + 25 + ( + SUM ( ALL + col1 ) ) + COUNT ( ALL + col2 ) * 45 AS col0 FROM tab1
----
226

query I rowsort
SELECT + - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT DISTINCT + col0 - + col0 * - - 66 + ( + col1 ) FROM tab0 AS cor0
----
-5634
-6304
-894

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7889
SELECT + CAST( + col2 AS SIGNED ) + + col0 + + col2 DIV + + ( col0 ) AS col1 FROM tab1 AS cor0
----
144
148
159

skipif mysql # not compatible
query I rowsort label-7889
SELECT + CAST ( + col2 AS INTEGER ) + + col0 + + col2 / + + ( col0 ) AS col1 FROM tab1 AS cor0
----
144
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT DISTINCT + 59 + + COUNT( * ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT + 59 + + COUNT ( * ) FROM tab0 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7891
SELECT + col2 * + col0 * - CAST( NULL AS SIGNED ) - + - col2 + + col2 + - col0 + col0 * - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7891
SELECT + col2 * + col0 * - CAST ( NULL AS INTEGER ) - + - col2 + + col2 + - col0 + col0 * - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 <= ( + - ( + 73 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 0 * col2 AS col0, + col0 col2 FROM tab1 cor0
----
0
51
0
85
0
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 <= ( + 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 51 AS col1 FROM tab1 WHERE col1 = + 7 + - col1
----

query I rowsort
SELECT ALL 60 * - + 56 AS col0 FROM tab1
----
-3360
-3360
-3360

query I rowsort
SELECT DISTINCT + col1 * + - col0 AS col2 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + col0 * 33 * + - col1 * col2 FROM tab1
----
-2261952
-827475
-9597588

query II rowsort
SELECT - col2, col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + 56 FROM tab0 AS cor0
----
-2632
-5544
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT ALL - col2 DIV + 44 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - col2 / + 44 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 ) = 76 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 > ( + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT ( + + ( COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7905
SELECT ( + + ( COUNT ( * ) ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7906
SELECT COUNT( * ), + 95 AS col1 FROM tab1
----
3
95

skipif mysql # not compatible
query II rowsort label-7906
SELECT COUNT ( * ), + 95 AS col1 FROM tab1
----
3
95

query II rowsort
SELECT + col1 AS col2, + col0 + col2 AS col1 FROM tab0
----
1
196
21
97
81
62

query I rowsort
SELECT - - 99 * + col1 * col0 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
11844954
33330825
37566144

query I rowsort
SELECT col1 * + + 67 - + 82 AS col0 FROM tab1 cor0 WHERE NOT + col2 * col1 <= ( + col0 )
----
253
3067
856

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * 93 <> + 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> - col1 * col0 + - col2 + + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 16 ) IS NULL
----

query I rowsort
SELECT ALL 51 + - col0 FROM tab0
----
-36
-46
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7915
SELECT COUNT( * ) * + + 17 AS col1, + COUNT( * ) AS col1 FROM tab0
----
51
3

skipif mysql # not compatible
query II rowsort label-7915
SELECT COUNT ( * ) * + + 17 AS col1, + COUNT ( * ) AS col1 FROM tab0
----
51
3

query III rowsort
SELECT * FROM tab0 WHERE col2 * + + col1 - - ( - - ( col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7917
SELECT + SUM( col1 ) AS col0, - SUM( DISTINCT + col1 ) FROM tab1
----
66
-66

skipif mysql # not compatible
query II rowsort label-7917
SELECT + SUM ( col1 ) AS col0, - SUM ( DISTINCT + col1 ) FROM tab1
----
66
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + 57 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT 43 + - COUNT( * ) - 85 AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-7919
SELECT 43 + - COUNT ( * ) - 85 AS col0 FROM tab2
----
-45

query I rowsort
SELECT ALL 77 AS col1 FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT - col0 + + 35 + 99 FROM tab2 cor0
----
59
70
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 82 - - col2 FROM tab0 AS cor0
----
-35
-72
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT + - CAST( NULL AS SIGNED ) * - - 25 + - ( - - col2 ) * - - col1 AS col2 FROM tab0 cor0 WHERE col2 > + col0
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT + - CAST ( NULL AS INTEGER ) * - - 25 + - ( - - col2 ) * - - col1 AS col2 FROM tab0 cor0 WHERE col2 > + col0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT DISTINCT - 28 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - 28 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7926
SELECT DISTINCT - - ( CAST( + col2 AS SIGNED ) ) AS col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-7926
SELECT DISTINCT - - ( CAST ( + col2 AS INTEGER ) ) AS col0, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT + col1, - ( 56 ) AS col2 FROM tab0 WHERE NOT col1 - + col1 / + ( - col0 ) IS NULL
----
1
-56
21
-56
81
-56

query I rowsort
SELECT DISTINCT col2 * + col0 * col1 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT MIN( + 54 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-7929
SELECT MIN ( + 54 ) FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7930
SELECT ALL + CAST( - 70 AS SIGNED ), + col2 FROM tab0
----
-70
10
-70
47
-70
99

skipif mysql # not compatible
query II rowsort label-7930
SELECT ALL + CAST ( - 70 AS INTEGER ), + col2 FROM tab0
----
-70
10
-70
47
-70
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - - col2 * - col0 col1 FROM tab0
----
-18330
-22620
-249678

onlyif mysql # DIV for integer division: 
query II rowsort label-7932
SELECT ALL col1 DIV - col0, col2 DIV - + col1 AS col2 FROM tab0
----
-5
0
0
-99
0
0

skipif mysql # not compatible
query II rowsort label-7932
SELECT ALL col1 / - col0, col2 / - + col1 AS col2 FROM tab0
----
-5
0
0
-99
0
0

query I rowsort
SELECT + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 74 > NULL
----

query I rowsort
SELECT DISTINCT 56 * + col1 AS col2 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT 5 * col1 + - + 72 FROM tab2 cor0
----
183
263
313

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7936
SELECT + COUNT( * ) DIV + 75 * + 62 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7936
SELECT + COUNT ( * ) / + 75 * + 62 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT DISTINCT - - MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7937
SELECT DISTINCT - - MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT DISTINCT 35 * - + col0 * - 0 DIV - col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT 35 * - + col0 * - 0 / - col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT DISTINCT + - 46 DIV + 8 AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT + - 46 / + 8 AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - 15 + - 42 AS col0 FROM tab1 AS cor0
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT ALL - 15 DIV + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT ALL - 15 / + col0 FROM tab0 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL + 74 AS col2, col1 * + col1 FROM tab2
----
74
2601
74
4489
74
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL CAST( + AVG ( ALL col1 ) AS SIGNED ) + 78 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL CAST ( + AVG ( ALL col1 ) AS INTEGER ) + 78 FROM tab1
----
100

query III rowsort
SELECT * FROM tab2 WHERE + 88 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col2 FROM tab1 WHERE - 39 + col1 / - col2 <> NULL
----

query II rowsort
SELECT + col1, col2 + + + 66 FROM tab1
----
14
162
47
134
5
125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + + ( + 91 ) col2 FROM tab0
----
-134
-7478
-9318

query II rowsort
SELECT - col0, + col2 AS col0 FROM tab2 cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 76 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - 55 + - 34 * + col1 AS col1 FROM tab2 AS cor0
----
-1812
-2391
-2713

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT + 58 - col2 - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-41
11
40

skipif mysql # not compatible
query I rowsort label-7951
SELECT + 58 - col2 - col0 / col2 AS col1 FROM tab0 AS cor0
----
-41
11
40

query I rowsort
SELECT ALL + + col1 * - col1 + 3 FROM tab2 AS cor0
----
-2598
-4486
-5926

query I rowsort
SELECT DISTINCT 66 + - ( - 61 ) AS col2 FROM tab1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + - 60 * 1 + - + COUNT( * ) AS col0 FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + - 60 * 1 + - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-63

query II rowsort
SELECT ( - 57 ) AS col0, col2 FROM tab0 AS cor0
----
-57
10
-57
47
-57
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT DISTINCT + + COUNT( * ) - - 14 * - 17 AS col0 FROM tab1 AS cor0
----
-235

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + + COUNT ( * ) - - 14 * - 17 AS col0 FROM tab1 AS cor0
----
-235

query I rowsort
SELECT DISTINCT + 38 * - + 12 - + - 75 / + col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 cor0 WHERE ( col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + COUNT( - 20 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7960
SELECT + COUNT ( - 20 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT - 29 AS col2, col0 AS col0 FROM tab0 cor0
----
-29
15
-29
87
-29
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT DISTINCT 30 DIV + COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT 30 / + COUNT ( * ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT - + 35 AS col0 FROM tab1 cor0
----
-35

query II rowsort
SELECT ALL ( + 94 ) AS col2, 79 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 7c10b535bccfb22be4f687f4de8d6c3c

query I rowsort
SELECT + 68 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL + col1 * + 21 FROM tab2
----
1071
1407
1617

query I rowsort
SELECT ALL - col1 * + col1 + - col2 FROM tab0 AS cor0
----
-100
-451
-6608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7968
SELECT 63 DIV + 79 - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT 63 / + 79 - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT ( - + SUM( + - ( - + 55 ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-165

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT ( - + SUM ( + - ( - + 55 ) ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT - SUM( DISTINCT + 86 ) FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - SUM ( DISTINCT + 86 ) FROM tab0 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL MAX( ALL + + 13 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL MAX ( ALL + + 13 ) FROM tab1 AS cor0
----
13

query II rowsort
SELECT DISTINCT - col0, + col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT col0 FROM tab1 WHERE NULL < + 55 + col1 + + col2 + - + col0 * - col2 + 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT DISTINCT CAST( - + 29 AS SIGNED ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-7974
SELECT DISTINCT CAST ( - + 29 AS INTEGER ) AS col1 FROM tab0
----
-29

query I rowsort
SELECT - col0 + + col0 + - col1 AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7976
SELECT col0 * + col2 + - + col2 - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT col0 * + col2 + - + col2 - - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT - col2 * + + 44 + - + col2 * CAST( - 46 AS SIGNED ) AS col1 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7977
SELECT - col2 * + + 44 + - + col2 * CAST ( - 46 AS INTEGER ) AS col1 FROM tab2
----
116
46
80

query II rowsort
SELECT ALL - + col2 + 8 - - col1, col2 AS col0 FROM tab2 cor0
----
17
58
36
23
45
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 col2 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7981
SELECT ( - col0 ) DIV - 39 + - col1 + + col1 + + ( col2 ) - - col1 * + - 97 FROM tab0 AS cor0
----
-2025
-7810
4

skipif mysql # not compatible
query I rowsort label-7981
SELECT ( - col0 ) / - 39 + - col1 + + col1 + + ( col2 ) - - col1 * + - 97 FROM tab0 AS cor0
----
-2025
-7810
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7982
SELECT ALL + - col0 DIV - 84 + col1 col1 FROM tab1 cor0
----
14
48
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7982
SELECT ALL + - col0 / - 84 + col1 col1 FROM tab1 cor0
----
14
48
6

query II rowsort
SELECT DISTINCT + - col0 AS col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - 5 * MIN( DISTINCT - col1 ) + - 93 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 70 AND ( 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - 5 * MIN ( DISTINCT - col1 ) + - 93 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 70 AND ( 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT DISTINCT + COUNT( 16 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7985
SELECT DISTINCT + COUNT ( 16 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7986
SELECT - - col2 AS col2, - 22 * + col0 + col2 + + + col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
-2774
47
-988
99
-11638

skipif mysql # not compatible
query II rowsort label-7986
SELECT - - col2 AS col2, - 22 * + col0 + col2 + + + col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
-2774
47
-988
99
-11638

query II rowsort
SELECT DISTINCT ( + + col0 ) AS col0, + col2 * - col0 FROM tab1
----
51
-4896
85
-5015
91
-6188

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7988
SELECT DISTINCT COUNT( - + CAST( + col0 AS DECIMAL ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT COUNT ( - + CAST ( + col0 AS REAL ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - 89 * + 8 AS col1 FROM tab2
----
-712
-712
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - SUM( col0 ) * - COUNT( * ) FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-7990
SELECT - SUM ( col0 ) * - COUNT ( * ) FROM tab1
----
681

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col0, + col0 AS col0, - col2 + - col1 + + 39 * - + 91 + col2 / col1 col1 FROM tab2 AS cor0 WHERE NOT ( 62 ) * col0 NOT IN ( + col0 - + col1 * - col1, col2 + - + 92 / col2 * - + 69 )
----

query I rowsort
SELECT ALL 50 FROM tab0 AS cor0 WHERE ( 48 ) IS NOT NULL
----
50
50
50

query I rowsort
SELECT ALL 82 AS col1 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT col2 * - 80 AS col0 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # aggregate syntax: 
query II rowsort label-7996
SELECT + + COUNT( DISTINCT - col0 ) AS col1, + 35 AS col0 FROM tab1 AS cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-7996
SELECT + + COUNT ( DISTINCT - col0 ) AS col1, + 35 AS col0 FROM tab1 AS cor0
----
3
35

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT - 31 DIV + 61 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7997
SELECT - 31 / + 61 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT DISTINCT col0 * - 7 * - + 47 * CAST( NULL AS SIGNED ) + - 73 + + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT col0 * - 7 * - + 47 * CAST ( NULL AS INTEGER ) + - 73 + + col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - 79 + + col0 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-18191
-57026
-9524

query I rowsort
SELECT DISTINCT + 59 + + col2 - - 91 + - col2 * 3 AS col0 FROM tab0 AS cor0
----
-48
130
56

query II rowsort
SELECT ALL col1 AS col2, col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL COUNT( + 43 ) FROM tab0 cor0 WHERE NOT ( ( col0 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL COUNT ( + 43 ) FROM tab0 cor0 WHERE NOT ( ( col0 ) ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT COUNT( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT COUNT ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * + - col0 * + + 22 FROM tab1
----
107712
110330
136136

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL MAX( DISTINCT col0 ) + - - COUNT( * ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL MAX ( DISTINCT col0 ) + - - COUNT ( * ) AS col2 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT + SUM( - + col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8006
SELECT + SUM ( - + col2 ) AS col1 FROM tab1
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 72 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * 74 - + - 37 * - col2 col0 FROM tab1 AS cor0
----
1554
1887
518

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT + COUNT( * ) + + MAX( + - col2 ) FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + COUNT ( * ) + + MAX ( + - col2 ) FROM tab2 AS cor0
----
-20

query I rowsort
SELECT + 63 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT col1 * col1 * - 74 FROM tab1
----
-14504
-163466
-1850

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT + ( + MAX( DISTINCT + 55 ) ) AS col2 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8012
SELECT + ( + MAX ( DISTINCT + 55 ) ) AS col2 FROM tab0 AS cor0
----
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + + MAX( col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8014
SELECT + + MAX ( col2 ) AS col2 FROM tab0 cor0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * - col0 / 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN + - col1 AND + + col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col0 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8018
SELECT DISTINCT col0 AS col1, 42 * + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8018
SELECT DISTINCT col0 AS col1, 42 * + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 67 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * - 76 + - + ( - ( + - col2 ) ) * + col1 - + 64 col0 FROM tab1
----
-10404
-7503
-8552

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT MAX( - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT MAX ( - - col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 10 = NULL
----

query I rowsort
SELECT DISTINCT + + 75 + + - col1 - + 81 + - + 51 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-138
-58
-78

query I rowsort
SELECT ALL + col2 * - + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8026
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - col0 * + 50 FROM tab1 AS cor0
----
-2550
-4250
-4550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8028
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col0 * - + col2 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8028
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 * - + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8029
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN - 99 AND 83 AND CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query III rowsort label-8029
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN - 99 AND 83 AND CAST ( NULL AS INTEGER ) >= + col2
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) = + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT - ( col1 ) - - - col1 / + + col2 + + col2 col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + - col0 + + 9 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT - ( col1 ) - - - col1 / + + col2 + + col2 col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + - col0 + + 9 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + 3 FROM tab2
----
-138
-192
-225

query I rowsort
SELECT DISTINCT col1 + + - col1 * - col1 AS col2 FROM tab1
----
210
2256
30

query I rowsort
SELECT ALL - 77 + + + col0 + + - 2 AS col0 FROM tab1
----
-28
12
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL + 66 * - COUNT( * ) AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL + 66 * - COUNT ( * ) AS col0 FROM tab2
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8036
SELECT - + col2 AS col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8036
SELECT - + col2 AS col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 22 BETWEEN - col1 * col1 AND - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 58 + - 12 FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT - SUM( DISTINCT - col0 ) + - 21 AS col2 FROM tab0
----
178

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - SUM ( DISTINCT - col0 ) + - 21 AS col2 FROM tab0
----
178

query I rowsort
SELECT col1 + - col0 - + 74 FROM tab2
----
-61
-69
-82

query I rowsort
SELECT DISTINCT - 42 - - + col2 FROM tab2 AS cor0
----
-19
-2
16

query I rowsort
SELECT + 14 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query II rowsort
SELECT + + 95 AS col0, col0 AS col1 FROM tab1 AS cor0
----
95
51
95
85
95
91

query I rowsort
SELECT ALL 95 * + col0 AS col0 FROM tab2 AS cor0
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT COUNT( * ) + - SUM( DISTINCT - - 86 ) AS col1, + COUNT( - 94 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-77
9

skipif mysql # not compatible
query II rowsort label-8045
SELECT COUNT ( * ) + - SUM ( DISTINCT - - 86 ) AS col1, + COUNT ( - 94 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-77
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT COUNT( * ) * COUNT( + + col0 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8046
SELECT COUNT ( * ) * COUNT ( + + col0 ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT + 65 DIV - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + 65 / - col2 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8049
SELECT DISTINCT SUM( + col1 ) DIV COUNT( * ) * + - ( 57 ) FROM tab2
----
-3705

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT SUM ( + col1 ) / COUNT ( * ) * + - ( 57 ) FROM tab2
----
-3705

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT - col1 / - col0 - + col2 * - + 46 NOT IN ( - col2, + 20 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT DISTINCT + 77 + - COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-8051
SELECT DISTINCT + 77 + - COUNT ( * ) FROM tab1
----
74

query I rowsort
SELECT + + col2 FROM tab2 WHERE NOT - 24 * - 24 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 47 - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col2 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL - ( - COUNT( * ) ) * - COUNT( * ) - + 5 AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - ( - COUNT ( * ) ) * - COUNT ( * ) - + 5 AS col2 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT SUM( - + 62 ) FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-8056
SELECT SUM ( - + 62 ) FROM tab1 AS cor0
----
-186

query I rowsort
SELECT ALL col2 * - 71 AS col2 FROM tab0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8058
SELECT - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) = NULL
----
0

query I rowsort
SELECT DISTINCT + 21 + + + col0 FROM tab1
----
106
112
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT ( + + CAST( NULL AS SIGNED ) ) + - + col2 + - 38 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT ( + + CAST ( NULL AS INTEGER ) ) + - + col2 + - 38 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT DISTINCT + - 31 * ( COUNT( * ) ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + - 31 * ( COUNT ( * ) ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col2 + + col0 + - col1 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 cor0 WHERE NOT 2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT ALL - 25 + - CAST( - 78 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
53
53
53

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL - 25 + - CAST ( - 78 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT COUNT( * ) + - - ( + - ( + MIN( DISTINCT - + col2 ) ) ) + - COUNT( DISTINCT col2 ) + - MAX( DISTINCT col1 ) + - 59 * + + 63 FROM tab0 AS cor0
----
-3699

skipif mysql # not compatible
query I rowsort label-8065
SELECT COUNT ( * ) + - - ( + - ( + MIN ( DISTINCT - + col2 ) ) ) + - COUNT ( DISTINCT col2 ) + - MAX ( DISTINCT col1 ) + - 59 * + + 63 FROM tab0 AS cor0
----
-3699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8066
SELECT ALL + 10 - col0 + + - 80 + 35 + + col1 + - CAST( NULL AS SIGNED ) / + col2 + 64 - + + 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + 10 - col0 + + - 80 + 35 + + col1 + - CAST ( NULL AS INTEGER ) / + col2 + 64 - + + 56 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8067
SELECT ( + - CAST( - + MAX( ALL - + 19 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8067
SELECT ( + - CAST ( - + MAX ( ALL - + 19 ) AS INTEGER ) ) FROM tab2 AS cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT COUNT( * ) * + + COUNT( * ) - MAX( + + col0 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-8068
SELECT COUNT ( * ) * + + COUNT ( * ) - MAX ( + + col0 ) FROM tab0
----
-88

query I rowsort
SELECT + 27 - + 33 AS col2 FROM tab2
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-88

query II rowsort
SELECT col1 * col1 AS col0, col2 - + ( + + col1 ) + + col1 AS col0 FROM tab2 AS cor0
----
2601
23
4489
58
5929
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 33 col2, 40 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33
40

query II rowsort
SELECT ALL - 11 + col2 AS col2, - 30 AS col0 FROM tab2 WHERE NOT - - 97 + col0 BETWEEN 47 AND + col1
----
12
-30
29
-30
47
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - ( - - col1 ) col0 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8077
SELECT MIN( DISTINCT - col1 ) DIV + 68 + + + ( + MAX( 27 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8077
SELECT MIN ( DISTINCT - col1 ) / + 68 + + + ( + MAX ( 27 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT + ( - + SUM( - 57 ) ) * - + COUNT( * ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-8078
SELECT + ( - + SUM ( - 57 ) ) * - + COUNT ( * ) / - - COUNT ( * ) FROM tab0 AS cor0
----
-171

query I rowsort
SELECT DISTINCT col0 * - + 39 AS col1 FROM tab0 AS cor0
----
-3393
-3783
-585

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 WHERE NULL < 89
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8081
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) * + + 3 BETWEEN + col0 AND + CAST( NULL AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8081
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - col0 ) * + + 3 BETWEEN + col0 AND + CAST ( NULL AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT DISTINCT - MIN( + col1 ) col0 FROM tab1 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8082
SELECT DISTINCT - MIN ( + col1 ) col0 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 + + 89 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8083
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 + + 89 IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8084
SELECT DISTINCT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) / + col2 * + col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) / + col2 * + col1 AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL 98 + + - 60, - col1 AS col1 FROM tab1
----
38
-14
38
-47
38
-5

query I rowsort
SELECT - ( + + 57 ) AS col2 FROM tab1
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL - MAX( DISTINCT + 21 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - MAX ( DISTINCT + 21 ) FROM tab2 AS cor0
----
-21

query II rowsort
SELECT DISTINCT - col2, + 73 AS col2 FROM tab1
----
-59
73
-68
73
-96
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 13 col2, 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to ac28d41ec721eff5420dd4a4cb7116f2

query I rowsort
SELECT + 19 * - - col2 FROM tab0
----
1881
190
893

query I rowsort
SELECT DISTINCT + - col1 - - 12 FROM tab0 AS cor0
----
-69
-9
11

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 96 * + col2 IS NULL
----

query I rowsort
SELECT ALL + 13 - + - 96 AS col0 FROM tab1 AS cor0
----
109
109
109

query I rowsort
SELECT DISTINCT - col1 - - 16 FROM tab2 AS cor0
----
-35
-51
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8095
SELECT CAST( NULL AS DECIMAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT CAST ( NULL AS REAL ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL + MIN( 79 ) FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL + MIN ( 79 ) FROM tab0 cor0
----
79

query I rowsort
SELECT - - col1 + + - 19 AS col1 FROM tab1 cor0
----
-14
-5
28

query I rowsort
SELECT - col0 * + - 38 + - ( - 71 ) FROM tab0
----
3377
3757
641

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT + 37 + ( - - COUNT( * ) ) - - + ( + CAST( NULL AS SIGNED ) ) * - MAX( DISTINCT 25 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT + 37 + ( - - COUNT ( * ) ) - - + ( + CAST ( NULL AS INTEGER ) ) * - MAX ( DISTINCT 25 ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8100
SELECT ALL 14 AS col2, - 40 DIV + + col1 + - - col2 + + - col2 AS col0 FROM tab0
----
14
-1
14
-40
14
0

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL 14 AS col2, - 40 / + + col1 + - - col2 + + - col2 AS col0 FROM tab0
----
14
-1
14
-40
14
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8101
SELECT + ( + - col0 ) / - + col1 * - CAST( NULL AS SIGNED ) + 99 + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8101
SELECT + ( + - col0 ) / - + col1 * - CAST ( NULL AS INTEGER ) + 99 + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE col1 + 42 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE col1 + 42 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT - COUNT( * ) + + 90 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8103
SELECT - COUNT ( * ) + + 90 FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL COUNT( + 84 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL COUNT ( + 84 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - ( col2 ) + - + 15 + + col1 * + 44 * ( col2 ) * + col2 + - - 0 + + col1 - 14 FROM tab1 AS cor0
----
5677137
765855
9562518

query I rowsort
SELECT ALL - col1 + + + col1 * + ( col0 ) + - + col1 AS col2 FROM tab0
----
1053
1785
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col1 FROM tab1
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8108
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL col1 + - CAST ( NULL AS REAL ) - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 21 AND NULL
----

query II rowsort
SELECT + + col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8111
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col1 / - + col2 / + + col0 / + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col1 / - + col2 / + + col0 / + col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT + MAX( 99 ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
891

skipif mysql # not compatible
query I rowsort label-8112
SELECT + MAX ( 99 ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
891

query I rowsort
SELECT 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + - MAX( col2 ) + + 61 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8114
SELECT + - MAX ( col2 ) + + 61 FROM tab0 AS cor0
----
-38

query II rowsort
SELECT DISTINCT + + col0 + - col2 AS col0, col2 + col1 + - col1 * + + col1 FROM tab2 AS cor0
----
17
-4364
23
-2527
24
-5812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8116
SELECT + 93 * - - col0 * - + col1 / 43 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8116
SELECT + 93 * - - col0 * - + col1 / 43 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8117
SELECT DISTINCT + ( - - 66 ) - + - 8 * COUNT( * ) col1, ( + + SUM( - col1 ) ) AS col0 FROM tab0 AS cor0
----
90
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8117
SELECT DISTINCT + ( - - 66 ) - + - 8 * COUNT ( * ) col1, ( + + SUM ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
90
-103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8118
SELECT DISTINCT + + 42 AS col2, 68 + + + col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) >= + col0
----

skipif mysql # not compatible
query II rowsort label-8118
SELECT DISTINCT + + 42 AS col2, 68 + + + col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) >= + col0
----

query II rowsort
SELECT ALL + - col1 AS col2, + col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND 38 / + + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / + col2 BETWEEN NULL AND - col1 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT + COUNT( * ) * + ( - + COUNT( 5 ) ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8121
SELECT + COUNT ( * ) * + ( - + COUNT ( 5 ) ) AS col2 FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT + - 80 DIV + - col1 AS col1 FROM tab0 AS cor0
----
0
3
80

skipif mysql # not compatible
query I rowsort label-8122
SELECT + - 80 / + - col1 AS col1 FROM tab0 AS cor0
----
0
3
80

onlyif mysql # DIV for integer division: 
query I rowsort label-8123
SELECT - - col0 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-8123
SELECT - - col0 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT COUNT( * ) + - 13 * COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8124
SELECT COUNT ( * ) + - 13 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT DISTINCT COUNT( * ) col2, ( + + 89 ) * - + COUNT( * ) FROM tab0 AS cor0
----
3
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8125
SELECT DISTINCT COUNT ( * ) col2, ( + + 89 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
3
-267

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 55 ) > NULL
----

query II rowsort
SELECT DISTINCT - 58, - ( - col2 ) AS col1 FROM tab1
----
-58
59
-58
68
-58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT - COUNT( * ) * - 22 AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8128
SELECT - COUNT ( * ) * - 22 AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8129
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + 27 col1 FROM tab1 AS cor0
----
1377
2295
2457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8131
SELECT - 55 DIV COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8131
SELECT - 55 / COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL - - col2 + + ( - ( 20 ) ) FROM tab0 AS cor0
----
-10
27
79

query I rowsort
SELECT col2 * + 50 + - + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - - ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56, 91 col0 FROM tab1 cor0
----
56
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8136
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 49 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 49 + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 38 + col1 AS col0, ( + + col0 ) AS col2 FROM tab1
----
43
85
52
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT 11 + - COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-8139
SELECT 11 + - COUNT ( * ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT - 6 + - SUM( + + col0 ) FROM tab1
----
-233

skipif mysql # not compatible
query I rowsort label-8140
SELECT - 6 + - SUM ( + + col0 ) FROM tab1
----
-233

query II rowsort
SELECT ( ( - col2 ) ) + - col1 * - - col1, ( - 77 ) AS col0 FROM tab2
----
-2624
-77
-4547
-77
-5969
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 84 + col2 ) NOT BETWEEN col1 AND + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN - - col1 * - + col0 * - 14 AND + col2 * + col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + 39 - + col1 AS col0 FROM tab2
----
-12
-28
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + ( - col2 ) col0 FROM tab0 AS cor0
----
-19
33
70

query II rowsort
SELECT + - 89 AS col0, col1 - - ( + + 91 ) AS col2 FROM tab1 AS cor0
----
-89
105
-89
138
-89
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 42 col1 FROM tab0 AS cor0
----
-42

query II rowsort
SELECT col1 AS col2, 24 * + col0 AS col0 FROM tab1 AS cor0
----
14
1224
47
2184
5
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL 10 * COUNT( * ) * - + ( - 13 ) AS col0 FROM tab2
----
390

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL 10 * COUNT ( * ) * - + ( - 13 ) AS col0 FROM tab2
----
390

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT col1 * + + col2 DIV - col2 AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8151
SELECT col1 * + + col2 / - col2 AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL col0 FROM tab1 WHERE NOT col2 * col1 * - CAST( NULL AS SIGNED ) NOT IN ( + col2, - CAST( NULL AS SIGNED ) * - 19 * + 7 )
----

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL col0 FROM tab1 WHERE NOT col2 * col1 * - CAST ( NULL AS INTEGER ) NOT IN ( + col2, - CAST ( NULL AS INTEGER ) * - 19 * + 7 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8153
SELECT DISTINCT - ( col0 ), CAST( - ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

skipif mysql # not compatible
query II rowsort label-8153
SELECT DISTINCT - ( col0 ), CAST ( - ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT COUNT( * ) * - + MIN( ALL - 1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8154
SELECT COUNT ( * ) * - + MIN ( ALL - 1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8155
SELECT - CAST( + - col1 AS SIGNED ) AS col1, col1 * - col0 col2 FROM tab2 cor0
----
51
-2346
67
-5025
77
-4928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8155
SELECT - CAST ( + - col1 AS INTEGER ) AS col1, col1 * - col0 col2 FROM tab2 cor0
----
51
-2346
67
-5025
77
-4928

query I rowsort
SELECT - 81 AS col1 FROM tab2 WHERE NOT col1 NOT BETWEEN + 7 AND NULL
----

query I rowsort
SELECT ALL + - 9 + 96 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT - ( + col0 ) + col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - 25 + + col1 AS col1 FROM tab1 AS cor0
----
-11
-20
22

query I rowsort
SELECT DISTINCT + ( - 6 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL - + col0 * + + 18 FROM tab2 AS cor0
----
-1152
-1350
-828

query I rowsort
SELECT col1 + + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, col2 * + col0 col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 7 ) + + ( 98 ) * - 69 + - - 51 * - col2 col2 FROM tab1 cor0
----
-10237
-11665
-9778

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + col2 + - ( 87 ) * + 16 > - 50
----
-14
-47
-5

query I rowsort
SELECT col0 + 44 * - ( + + col0 ) FROM tab2
----
-1978
-2752
-3225

query I rowsort
SELECT + 49 + 28 FROM tab1
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL - COUNT( * ) + - 41 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL - COUNT ( * ) + - 41 FROM tab0
----
-44

query III rowsort
SELECT ALL * FROM tab2 WHERE - 58 IS NULL
----

query I rowsort
SELECT - - col2 AS col2 FROM tab1 WHERE col1 * + col0 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT DISTINCT - col2 DIV + 30 + 31 * + 12 + + 23 + col1 * - 75 FROM tab2 AS cor0
----
-3430
-4631
-5381

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT - col2 / + 30 + 31 * + 12 + + 23 + col1 * - 75 FROM tab2 AS cor0
----
-3430
-4631
-5381

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT - 77, + COUNT( * ) + MAX( + 82 ) AS col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - col2 AND + 7 * col1
----
-77
83

skipif mysql # not compatible
query II rowsort label-8173
SELECT - 77, + COUNT ( * ) + MAX ( + 82 ) AS col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN - col2 AND + 7 * col1
----
-77
83

query I rowsort
SELECT ALL + - ( - col1 ) - - + col2 + + + col2 - + + ( + + col1 ) FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( NOT 78 IS NOT NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT + MIN( col0 ) - + MAX( DISTINCT + col0 ) + + - 34 + + COUNT( * ) AS col2 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + MIN ( col0 ) - + MAX ( DISTINCT + col0 ) + + - 34 + + COUNT ( * ) AS col2 FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - COUNT( * ) + - - ( - COUNT( * ) ) - 93 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - COUNT ( * ) + - - ( - COUNT ( * ) ) - 93 FROM tab1
----
-99

query I rowsort
SELECT DISTINCT 1 * - 77 * - ( - 4 ) AS col1 FROM tab1
----
-308

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = + col1 * - 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT - 74 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + ( 47 ) BETWEEN ( - - col1 ) AND + 40 * - - col1
----

skipif mysql # not compatible
query I rowsort label-8180
SELECT - 74 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + ( 47 ) BETWEEN ( - - col1 ) AND + 40 * - - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT SUM( DISTINCT - col1 ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-195
3

skipif mysql # not compatible
query II rowsort label-8181
SELECT SUM ( DISTINCT - col1 ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-195
3

query I rowsort
SELECT 60 * - col0 AS col0 FROM tab1
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT COUNT( * ) DIV + 75 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT COUNT ( * ) / + 75 AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - + 27 * - col2 FROM tab2 AS cor0
----
1080
1566
621

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8185
SELECT ALL MAX( - col0 ) DIV - COUNT( * ) + 69 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL MAX ( - col0 ) / - COUNT ( * ) + 69 FROM tab1
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 74 col1 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL NOT IN ( + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8188
SELECT * FROM tab2 WHERE ( 15 + col2 * 94 ) <= CAST( - 24 AS SIGNED ) / - col2
----

skipif mysql # not compatible
query III rowsort label-8188
SELECT * FROM tab2 WHERE ( 15 + col2 * 94 ) <= CAST ( - 24 AS INTEGER ) / - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + - col0 * - col1 col1 FROM tab1
----
366
4209
618

query I rowsort
SELECT ALL + 4 AS col2 FROM tab2 WHERE + 68 IS NOT NULL
----
4
4
4

query I rowsort
SELECT - col2 + - 26 AS col2 FROM tab2
----
-49
-66
-84

query I rowsort
SELECT + col1 + + col2 * 88 FROM tab1
----
5197
6031
8462

query I rowsort
SELECT ALL 15 AS col0 FROM tab1 WHERE + 46 * col0 + - col0 * + col2 IS NOT NULL
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - 43 FROM tab1
----
42
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT 95 * - COUNT( * ) - + 3 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-8196
SELECT 95 * - COUNT ( * ) - + 3 FROM tab2
----
-288

query I rowsort
SELECT DISTINCT 49 FROM tab1 WHERE NOT ( + ( col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT CAST( + col1 AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8198
SELECT CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * - col0 + - 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 83 IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col0 * col0 - + 60 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT + 84 DIV col0 + + 67 col0 FROM tab0
----
67
67
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8202
SELECT + 84 / col0 + + 67 col0 FROM tab0
----
67
67
72

query I rowsort
SELECT + 33 * - 92 - + col0 AS col0 FROM tab1
----
-3087
-3121
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT - 39 * MIN( + 46 ) FROM tab1
----
-1794

skipif mysql # not compatible
query I rowsort label-8204
SELECT - 39 * MIN ( + 46 ) FROM tab1
----
-1794

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + 60 DIV col1 + - ( + 97 ) DIV + 99 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 60 / col1 + - ( + 97 ) / + 99 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT col1 - + 72 AS col1 FROM tab1
----
-25
-58
-67

query I rowsort
SELECT 61 * 99 FROM tab2
----
6039
6039
6039

query I rowsort
SELECT + col2 * + ( col1 * col1 ) AS col0 FROM tab0
----
308367
4410
99

query I rowsort
SELECT DISTINCT + 67 * - 7 FROM tab2
----
-469

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 ) BETWEEN NULL AND 20
----

query I rowsort
SELECT - 64 + + 63 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 77 + - 90 FROM tab1 AS cor0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT - COUNT( * ) - CAST( - COUNT( DISTINCT + col1 ) AS SIGNED ) col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8213
SELECT DISTINCT - COUNT ( * ) - CAST ( - COUNT ( DISTINCT + col1 ) AS INTEGER ) col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE + ( col0 ) * col2 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * + ( + 94 ) + + 51 * col1 BETWEEN ( 97 ) AND NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND 72
----
10
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT COUNT( * ) * - 51 AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT COUNT ( * ) * - 51 AS col0 FROM tab2 AS cor0
----
-153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + + 39 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + ( + col2 * col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( col1 ) * - 19 AS col0 FROM tab0 AS cor0
----
1539
19
399

query I rowsort
SELECT ALL + - ( col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT col2 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col1 ) IN ( 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 + col0 FROM tab2 AS cor0 WHERE ( + ( - col1 ) * 25 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT DISTINCT - COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT - COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT - COUNT( - + col0 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8227
SELECT - COUNT ( - + col0 ) col0 FROM tab1
----
-3

query I rowsort
SELECT ALL - ( + col2 ) + col0 AS col2 FROM tab2 WHERE col1 * col2 IS NOT NULL
----
17
23
24

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) FROM tab1 WHERE NULL IS NULL
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-8230
SELECT DISTINCT - col2 DIV - - col0 + + 99 AS col1 FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - col2 / - - col0 + + 99 AS col1 FROM tab2 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8231
SELECT ALL + + col1 DIV - col1 + - 6 AS col0 FROM tab1 AS cor0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + + col1 / - col1 + - 6 AS col0 FROM tab1 AS cor0
----
-7
-7
-7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 82 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + - ( - 82 ) ) AS col2 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT - 2 DIV - - 89 * + - col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT - 2 / - - 89 * + - col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

query I rowsort
SELECT ( - - 36 ) + - - col2 AS col1 FROM tab1
----
104
132
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 * + + col1 + + col2 ) IS NULL
----

query I rowsort
SELECT ALL + + col0 + + 54 AS col2 FROM tab2 AS cor0
----
100
118
129

query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 + col2 FROM tab0 AS cor0
----
100
451
6608

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 <> + - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 98 + + + col0 FROM tab1 AS cor0
----
-13
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL COUNT( * ) * + COUNT( * ) col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8242
SELECT ALL COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 18 NOT IN ( 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - ( col2 ) - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT col2 * + + ( - CAST( col0 AS SIGNED ) ) - - col2 AS col1 FROM tab1 AS cor0
----
-4800
-4956
-6120

skipif mysql # not compatible
query I rowsort label-8246
SELECT col2 * + + ( - CAST ( col0 AS INTEGER ) ) - - col2 AS col1 FROM tab1 AS cor0
----
-4800
-4956
-6120

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT 13 * + + MIN( 83 ) FROM tab1
----
1079

skipif mysql # not compatible
query I rowsort label-8247
SELECT 13 * + + MIN ( 83 ) FROM tab1
----
1079

query I rowsort
SELECT ( - + ( + + 67 ) ) * + col0 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT ALL + 61 + + 49 * ( col1 ) FROM tab1 WHERE ( col2 * + col0 ) > + 80 + col1
----
2364
306
747

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE - + 22 - + + 87 - col1 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < NULL AND col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - ( - col1 ) / col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8253
SELECT + 43 - + col2 AS col0, col0 DIV + col1 FROM tab0
----
-4
0
-56
97
33
4

skipif mysql # not compatible
query II rowsort label-8253
SELECT + 43 - + col2 AS col0, col0 / + col1 FROM tab0
----
-4
0
-56
97
33
4

query I rowsort
SELECT ALL ( col1 ) * + 13 AS col2 FROM tab2 AS cor0 WHERE ( NOT - - col0 * col1 > + col1 / col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 30 + - 91 < - + col1 + + 54
----

query I rowsort
SELECT ALL - 57 * col1 + - col2 * - 70 + col0 FROM tab2 AS cor0
----
-1251
-1525
316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8257
SELECT DISTINCT - 23 * - col2 * - col0 * + CAST( 98 AS SIGNED ) + 65 + - col0 FROM tab2 AS cor0
----
-2384713
-5770239
-9804910

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT - 23 * - col2 * - col0 * + CAST ( 98 AS INTEGER ) + 65 + - col0 FROM tab2 AS cor0
----
-2384713
-5770239
-9804910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8259
SELECT ( + - 34 ) DIV col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-1
-34
0

skipif mysql # not compatible
query I rowsort label-8259
SELECT ( + - 34 ) / col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-1
-34
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 col1 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + SUM( 38 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
423

skipif mysql # not compatible
query I rowsort label-8261
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + SUM ( 38 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
423

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( 2 ) < ( - - 47 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8263
SELECT DISTINCT 97, - COUNT( * ) * + 41 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
97
-120

skipif mysql # not compatible
query II rowsort label-8263
SELECT DISTINCT 97, - COUNT ( * ) * + 41 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
97
-120

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT + SUM( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8265
SELECT + SUM ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT + 28 AS col2 FROM tab2 AS cor0 WHERE NOT + 31 = - 55 * CAST( + - col1 AS SIGNED )
----
28
28
28

skipif mysql # not compatible
query I rowsort label-8266
SELECT + 28 AS col2 FROM tab2 AS cor0 WHERE NOT + 31 = - 55 * CAST ( + - col1 AS INTEGER )
----
28
28
28

query I rowsort
SELECT col2 - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 / + col2 BETWEEN - + 55 + - col2 + - 46 * + col0 AND col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 + + + 26 BETWEEN NULL AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT - 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-8269
SELECT DISTINCT - COUNT ( col1 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + 88 * - + col0 FROM tab1 AS cor0
----
4488
7480
8008

query I rowsort
SELECT ALL + + col0 * + col1 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN ( - col2 + - - col1 + - col2 ) AND col1
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab1
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT ALL 36 DIV + - col2 + + col1 col1 FROM tab0
----
1
18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8275
SELECT ALL 36 / + - col2 + + col1 col1 FROM tab0
----
1
18
81

query I rowsort
SELECT + col1 * - + col1 AS col0 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col0 = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8278
SELECT - CAST( - CAST( - - COUNT( DISTINCT + col1 ) AS SIGNED ) AS SIGNED ) * ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 31 AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-8278
SELECT - CAST ( - CAST ( - - COUNT ( DISTINCT + col1 ) AS INTEGER ) AS INTEGER ) * ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 31 AND + col0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 84 IN ( col0 + - col1 + + + col2 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 5 + col1 + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
105
110
59

query I rowsort
SELECT ALL + ( - ( 40 ) ) AS col1 FROM tab0 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 * - 43 col0 FROM tab2
----
-3655

query I rowsort
SELECT - - 1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT - ( COUNT( * ) ) FROM tab0 cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8284
SELECT - ( COUNT ( * ) ) FROM tab0 cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL - - col2 * 72 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3384
7128
720

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8286
SELECT + 2 DIV + 13 * + col0 - + col1 - col1, - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-10
NULL
-28
NULL
-94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8286
SELECT + 2 / + 13 * + col0 - + col1 - col1, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-10
NULL
-28
NULL
-94
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8287
SELECT - COUNT( * ) DIV + 46 + + 17 - + ( - 67 ) col0 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8287
SELECT - COUNT ( * ) / + 46 + + 17 - + ( - 67 ) col0 FROM tab1
----
84

query I rowsort
SELECT col0 + + col2 FROM tab0 WHERE - ( - col1 ) + + col0 <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN NULL AND ( - 13 * - col0 * col2 + 39 + - col2 - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT DISTINCT COUNT( ALL 80 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT COUNT ( ALL 80 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8291
SELECT ALL - col0 + - col0 - 48 + 67 DIV + + 82 AS col0 FROM tab1
----
-150
-218
-230

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL - col0 + - col0 - 48 + 67 / + + 82 AS col0 FROM tab1
----
-150
-218
-230

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE + 94 <= ( 16 + + col0 )
----
1
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8293
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * + col0 * ( - col0 ) + - CAST( NULL AS SIGNED ) + + col0 + - 62 ) NOT IN ( - 91 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8293
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 * + col0 * ( - col0 ) + - CAST ( NULL AS INTEGER ) + + col0 + - 62 ) NOT IN ( - 91 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT - ( - MIN( ALL 90 ) ) AS col0 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8294
SELECT - ( - MIN ( ALL 90 ) ) AS col0 FROM tab1 AS cor0
----
90

query I rowsort
SELECT 31 * - + col1 * - col0 + + col1 AS col1 FROM tab0 cor0
----
3008
37746
56658

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT - - 17 + + col0 FROM tab2 cor0
----
63
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col1 * col1 col2, - 20 FROM tab0
----
-98
-20
431
-20
6514
-20

query I rowsort
SELECT ALL - AVG ( + col2 ) FROM tab2 WHERE ( - col0 + 43 / col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL col2 + + col2 - + - 16 + + col0 + col1 - + 51 FROM tab0
----
155
261
93

query I rowsort
SELECT ALL - col1 * - col1 + + ( 53 ) FROM tab0
----
494
54
6614

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT ALL + col1 + - + col0 DIV - col2 AS col1 FROM tab0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL + col1 + - + col0 / - col2 AS col1 FROM tab0
----
1
29
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8303
SELECT - + 36 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8303
SELECT - + 36 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 31 - 93 * col2 FROM tab2 AS cor0
----
-2108
-3689
-5363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 29 col1 FROM tab2 cor0
----
1334
1856
2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL + ( col0 ) - + col0 * + CAST( + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + ( col0 ) - + col0 * + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - MAX( - - col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8307
SELECT - MAX ( - - col0 ) AS col0 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT ALL - + CAST( NULL AS SIGNED ) * - - col2 * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8309
SELECT ALL - + CAST ( NULL AS INTEGER ) * - - col2 * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 82 - + 10 * col2 AS col0 FROM tab0
----
-18
-388
-908

query II rowsort
SELECT DISTINCT ( + col0 ) * 58 AS col2, col1 FROM tab2
----
2668
51
3712
77
4350
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8312
SELECT ALL col1 DIV - ( + col1 ) AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL col1 / - ( + col1 ) AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 * - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT + 4 * + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8314
SELECT + 4 * + COUNT ( * ) FROM tab1
----
12

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 17 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT - + MAX( + 94 ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8316
SELECT - + MAX ( + 94 ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT DISTINCT - AVG ( - - 58 ) FROM tab2 AS cor0 WHERE 82 = + 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8318
SELECT DISTINCT - - COUNT( * ) AS col0, - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9
-9

skipif mysql # not compatible
query II rowsort label-8318
SELECT DISTINCT - - COUNT ( * ) AS col0, - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT DISTINCT 82 DIV - col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT 82 / - col2 FROM tab2
----
-1
-2
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 * + ( + 60 ) * col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL - - COUNT( - 58 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL - - COUNT ( - 58 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL + - SUM( 56 ) FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + - SUM ( 56 ) FROM tab1 AS cor0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8323
SELECT MAX( ALL - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * - - ( CAST( NULL AS SIGNED ) ) <> + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT MAX ( ALL - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * - - ( CAST ( NULL AS INTEGER ) ) <> + + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * ( + + 17 ) / 81 - + + col1 - - - col0 * - 52 NOT IN ( 99 * 55, - ( + + 32 ) * + col0 * - 44 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8325
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT DISTINCT + - ( + SUM( - + col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT + - ( + SUM ( - + col2 ) ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * + col2 * 16 BETWEEN + + col0 * + col0 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col2 * col0 FROM tab2 AS cor0
----
-46
1058
-64
2560
-75
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT SUM( ALL + col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8329
SELECT DISTINCT SUM ( ALL + col2 ) col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL - 13 + + - MIN( ALL - + ( 90 ) ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - 13 + + - MIN ( ALL - + ( 90 ) ) AS col0 FROM tab2
----
77

query I rowsort
SELECT - 73 + + 90 - - + col2 AS col0 FROM tab2
----
40
57
75

query I rowsort
SELECT col0 * - 16 + 71 + + - 39 FROM tab0
----
-1360
-1520
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT DISTINCT - col1 + - CAST( - ( - + 87 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-101
-134
-92

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT - col1 + - CAST ( - ( - + 87 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-101
-134
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - COUNT( * ) * + COUNT( * ) + + 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-76

skipif mysql # not compatible
query I rowsort label-8334
SELECT - COUNT ( * ) * + COUNT ( * ) + + 5 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-76

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT - 4 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
36

skipif mysql # not compatible
query I rowsort label-8336
SELECT - 4 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
36

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab2, tab2 cor0
----
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col0 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8339
SELECT ALL - + col0 DIV 37 - - CAST( + + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
19
81

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - + col0 / 37 - - CAST ( + + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
19
81

query I rowsort
SELECT ALL + 29 + 75 FROM tab1 cor0
----
104
104
104

query I rowsort
SELECT ALL - 90 - ( - col0 ) AS col2 FROM tab2 cor0
----
-15
-26
-44

query I rowsort
SELECT + 88 * 5 + - 62 AS col0 FROM tab1 AS cor0
----
378
378
378

query I rowsort
SELECT ALL - col0 * + - ( - col0 ) * 13 FROM tab1
----
-107653
-33813
-93925

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - 79 * COUNT( * ) AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 79 * COUNT ( * ) AS col1 FROM tab1
----
-237

query I rowsort
SELECT DISTINCT ( + + col1 ) * + 54 * - - col0 FROM tab0
----
5238
65610
98658

query I rowsort
SELECT + 45 * + 55 AS col1 FROM tab2
----
2475
2475
2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8347
SELECT col1, 21 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8347
SELECT col1, 21 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT DISTINCT col2, 13 * col2 + 13 FROM tab1
----
59
780
68
897
96
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - - MAX( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 55 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8350
SELECT - - MAX ( + col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 55 AND + col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT ALL ( ( + col2 ) ) + - - col2 AS col0 FROM tab2
----
116
46
80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 95 NOT IN ( + col1, 74 * - + 3 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 16 + - ( + col0 ) * 52 AS col0 FROM tab0 cor0
----
-4508
-5028
-764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + - 1 col2 FROM tab2
----
47
47
47

query I rowsort
SELECT col1 * - 46 * 62 AS col0 FROM tab1
----
-134044
-14260
-39928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8358
SELECT COUNT( * ) DIV 12 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8358
SELECT COUNT ( * ) / 12 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8359
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE col1 / + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE col1 / + CAST ( NULL AS INTEGER ) IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN + col1 - - col1 - + ( + col1 ) AND - 53
----

query II rowsort
SELECT 33 AS col1, col0 * col0 + - col0 FROM tab1 cor0 WHERE + col0 / 33 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + col2 * - ( - - 85 ) * - ( + col0 ) + + + 61 + 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT - MAX( + + col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - MAX ( + + col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + - 54 * + + col0 * - col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT MIN( 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8365
SELECT MIN ( 56 ) FROM tab0 AS cor0
----
56

query I rowsort
SELECT + 98 * - ( col2 ) FROM tab0 AS cor0
----
-4606
-9702
-980

query I rowsort
SELECT ALL - + 4 AS col1 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - col0 + + 25 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8369
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IN ( - 26, col2 * col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8369
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IN ( - 26, col2 * col1, CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col1 FROM tab0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 + + 72 col0 FROM tab2 WHERE NOT + col0 * 54 * 61 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8372
SELECT - col2 DIV + ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT - col2 / + ( col1 ) FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - + 87 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col1 FROM tab1
----
61
61
61

query I rowsort
SELECT DISTINCT col2 * - 18 * - + ( - col0 ) FROM tab1
----
-111384
-88128
-90270

query I rowsort
SELECT ALL 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + AVG ( DISTINCT + - 37 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT - 49, col2 FROM tab2
----
-49
23
-49
40
-49
58

query I rowsort
SELECT - - col2 * 58 AS col1 FROM tab1 AS cor0
----
3422
3944
5568

query I rowsort
SELECT ALL + 18 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-22
-40
-5

query I rowsort
SELECT DISTINCT col0 * - col0 + + 92 AS col2 FROM tab1 AS cor0
----
-2509
-7133
-8189

query II rowsort
SELECT + 98 AS col2, col2 AS col1 FROM tab0 AS cor0
----
98
10
98
47
98
99

query I rowsort
SELECT DISTINCT - col0 + - col1 + - col0 - + + 39 * col1 - + col0 AS col1 FROM tab1 cor0
----
-2153
-455
-713

query I rowsort
SELECT ( - - 11 ) AS col2 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT 97 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * col1 + + col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col2 - + col1 - + 41 * - col2 / 99 IS NULL
----

query I rowsort
SELECT DISTINCT + 80 + + col0 AS col2 FROM tab0
----
167
177
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ALL MAX( DISTINCT - 9 ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8389
SELECT ALL MAX ( DISTINCT - 9 ) col0 FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT - col1 + + + 60 DIV col2 AS col2 FROM tab2
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-8390
SELECT - col1 + + + 60 / col2 AS col2 FROM tab2
----
-49
-66
-76

query I rowsort
SELECT DISTINCT - 81 * - col1 + + col2 FROM tab2
----
4154
5485
6277

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - ( + + ( - 64 ) ) + - COUNT( * ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-8392
SELECT - ( + + ( - 64 ) ) + - COUNT ( * ) AS col2 FROM tab2
----
61

query I rowsort
SELECT - 94 + col0 * + + col2 FROM tab0
----
611
776
9509

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8394
SELECT ALL 95 + col0 + + - col0 AS col1, - col1 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
95
NULL
95
NULL
95
NULL

skipif mysql # not compatible
query II rowsort label-8394
SELECT ALL 95 + col0 + + - col0 AS col1, - col1 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
95
NULL
95
NULL
95
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8395
SELECT DISTINCT col1 DIV + col0 - - col1 + - + col2 FROM tab0
----
-98
11
39

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT col1 / + col0 - - col1 + - + col2 FROM tab0
----
-98
11
39

query II rowsort
SELECT ALL + 85 + - 10, ( - + col2 ) AS col1 FROM tab0
----
75
-10
75
-47
75
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8397
SELECT * FROM tab0 WHERE ( - 70 ) <> CAST( col1 AS SIGNED ) + - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8397
SELECT * FROM tab0 WHERE ( - 70 ) <> CAST ( col1 AS INTEGER ) + - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - col1 / + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND 15
----

query II rowsort
SELECT col2, 52 FROM tab2
----
23
52
40
52
58
52

query II rowsort
SELECT ALL - - col0, 58 AS col0 FROM tab1 cor0
----
51
58
85
58
91
58

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8402
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + CAST( NULL AS DECIMAL ) * + col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8402
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + + CAST ( NULL AS REAL ) * + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + col2 + - 19 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8404
SELECT ALL + + col2 AS col1, col1 DIV + col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8404
SELECT ALL + + col2 AS col1, col1 / + col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT ALL + COUNT( - - 34 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8405
SELECT ALL + COUNT ( - - 34 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT + 41 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0, col1 col0 FROM tab2
----
-1058
51
-2560
77
-4350
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT - col1 / - col1 * - CAST( + + 59 AS SIGNED ) * - ( - + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT - ( - + col2 ) NOT BETWEEN 6 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8408
SELECT - col1 / - col1 * - CAST ( + + 59 AS INTEGER ) * - ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT - ( - + col2 ) NOT BETWEEN 6 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL MAX( DISTINCT - + 2 ) * + COUNT( * ) + + 93 AS col0 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL MAX ( DISTINCT - + 2 ) * + COUNT ( * ) + + 93 AS col0 FROM tab0
----
87

query I rowsort
SELECT DISTINCT col2 * + + col1 FROM tab2 cor0
----
1173
3080
3886

query I rowsort
SELECT - col2 * + 31 + 42 FROM tab0 AS cor0
----
-1415
-268
-3027

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 WHERE - - col1 + - - 83 <= + col0
----
97

query I rowsort
SELECT col0 * - ( col1 ) AS col0 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 50 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 58 + + + 73 * - col2 FROM tab0 AS cor0
----
-3373
-672
-7169

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT - COUNT( * ) + - MIN( + 7 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8416
SELECT - COUNT ( * ) + - MIN ( + 7 ) FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8417
SELECT ALL 5 AS col2, 89 * - 40 AS col2 FROM tab2 AS cor0 WHERE ( NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query II rowsort label-8417
SELECT ALL 5 AS col2, 89 * - 40 AS col2 FROM tab2 AS cor0 WHERE ( NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8418
SELECT DISTINCT CAST( - MIN( CAST( NULL AS DECIMAL ) ) AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT CAST ( - MIN ( CAST ( NULL AS REAL ) ) AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 AS col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT - 54 * 33 + - - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-724
2568
778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 57 * - + col0 - + - col2 + + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT DISTINCT + 24 * - 45 * + COUNT( * ) AS col2 FROM tab0
----
-3240

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT + 24 * - 45 * + COUNT ( * ) AS col2 FROM tab0
----
-3240

query I rowsort
SELECT - col1 * - col0 - col1 AS col0 FROM tab1
----
420
4230
700

query I rowsort
SELECT DISTINCT + 20 * - col0 + - col0 FROM tab1
----
-1071
-1785
-1911

query I rowsort
SELECT DISTINCT - col2 * - + col2 - col1 FROM tab2 AS cor0
----
1523
3297
478

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + SUM( 99 ) AS col2 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8427
SELECT + SUM ( 99 ) AS col2 FROM tab2 AS cor0
----
297

query I rowsort
SELECT DISTINCT - 97 FROM tab1 cor0 WHERE + col2 <> - + col1
----
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + ( - col1 ) > - col1 + + + col2
----
15
81
47
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT 88 DIV - 17 + + 25 FROM tab0 cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-8430
SELECT 88 / - 17 + + 25 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT - ( - - 32 ) * - col0 * - + ( ( + 59 ) ) AS col2 FROM tab2 AS cor0
----
-120832
-141600
-86848

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + col0 * - ( col0 ) * col1 * 92 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8433
SELECT col1 * + col1 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8433
SELECT col1 * + col1 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT CAST( NULL AS SIGNED ) * + 93 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8434
SELECT CAST ( NULL AS INTEGER ) * + 93 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8435
SELECT - CAST( NULL AS SIGNED ) col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8435
SELECT - CAST ( NULL AS INTEGER ) col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8436
SELECT * FROM tab2 WHERE NOT - 38 NOT IN ( + - 80 / + - col1 + - CAST( NULL AS SIGNED ), - 24 )
----

skipif mysql # not compatible
query III rowsort label-8436
SELECT * FROM tab2 WHERE NOT - 38 NOT IN ( + - 80 / + - col1 + - CAST ( NULL AS INTEGER ), - 24 )
----

query II rowsort
SELECT + - 96 AS col0, + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-96
-100
-96
-2209
-96
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT - - COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8438
SELECT - - COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8439
SELECT ALL - 14 + - col1 DIV - col1 FROM tab1 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - 14 + - col1 / - col1 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - ( - col0 ) * col1 AS col1 FROM tab1 AS cor0 WHERE col2 > + - 81
----
425
4277
714

query I rowsort
SELECT + + col0 + + - 86 + - col1 FROM tab2 AS cor0
----
-78
-91
-99

query I rowsort
SELECT DISTINCT - + col1 * + 53 - + - 2 FROM tab0 AS cor0
----
-1111
-4291
-51

query I rowsort
SELECT ALL - 85 * col2 AS col2 FROM tab2
----
-1955
-3400
-4930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT ALL 54 + - + ( - - col1 ) DIV col2 AS col0 FROM tab1 WHERE NOT ( - 98 IS NULL )
----
54
54
54

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL 54 + - + ( - - col1 ) / col2 AS col0 FROM tab1 WHERE NOT ( - 98 IS NULL )
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT 27 + - + COUNT( * ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8446
SELECT 27 + - + COUNT ( * ) FROM tab0
----
24

query I rowsort
SELECT ALL - col0 * + + col0 AS col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT + col2 + - 12 AS col1 FROM tab2
----
11
28
46

query I rowsort
SELECT DISTINCT + col2 + + + col0 + - col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT 99 AS col2, col1 AS col2 FROM tab1 AS cor0
----
99
14
99
47
99
5

query I rowsort
SELECT ALL - 39 * 10 FROM tab0
----
-390
-390
-390

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8452
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( + - 51 AS SIGNED ) <> - 53
----

skipif mysql # not compatible
query IIIIII rowsort label-8452
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( + - 51 AS INTEGER ) <> - 53
----

query I rowsort
SELECT - col0 * - 14 AS col1 FROM tab1
----
1190
1274
714

query II rowsort
SELECT DISTINCT + 37, col0 FROM tab0 AS cor0 WHERE NOT 63 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8455
SELECT DISTINCT COUNT( * ) AS col0, 3 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8455
SELECT DISTINCT COUNT ( * ) AS col0, 3 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT DISTINCT CAST( + 91 AS SIGNED ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT CAST ( + 91 AS INTEGER ) FROM tab2 AS cor0
----
91

query I rowsort
SELECT ALL - col1 * + 85 + col0 AS col2 FROM tab1 AS cor0
----
-1139
-340
-3904

query I rowsort
SELECT - + 82 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8460
SELECT ALL COUNT( * ) col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8460
SELECT ALL COUNT ( * ) col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + SUM( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8461
SELECT + SUM ( ALL + col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT + CAST( + ( - col0 ) AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8462
SELECT + CAST ( + ( - col0 ) AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( - 27 ) + + col2 + + 66 AS col1 FROM tab2 WHERE NOT NULL < + 56
----

query I rowsort
SELECT ALL - col0 * - ( - col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT - col1 - - 98 * 34 IS NOT NULL
----

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1 cor0 WHERE NOT - col0 NOT IN ( + 82, col0, + col2, + + col2, col1, - + col2, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col2 + 74, - col2 col0 FROM tab1
----
1418
-96
3270
-68
369
-59

query I rowsort
SELECT ALL - - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8470
SELECT DISTINCT 19 + - col0 * col1 DIV - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-32
-48
-58

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT 19 + - col0 * col1 / - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-32
-48
-58

query I rowsort
SELECT DISTINCT - col0 - 14 + - col2 + + ( - - 66 ) AS col2 FROM tab0 AS cor0
----
-10
-144
-45

query II rowsort
SELECT ( + 62 ) * + col2 + - col1, - col2 + - + 10 FROM tab0 AS cor0 WHERE - col1 <= NULL
----

query I rowsort
SELECT ALL - - col1 - + + 34 AS col1 FROM tab2 AS cor0
----
17
33
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col1 AND ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT ALL - MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8475
SELECT ALL - MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8476
SELECT + 44 - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 44 - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT col2 - + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8477
SELECT col2 - + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8478
SELECT + COUNT( * ) - + 8 + - CAST( NULL AS DECIMAL ) - - - ( + 70 ) / + 99 * - COUNT( * ) * + - 31 + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + COUNT ( * ) - + 8 + - CAST ( NULL AS REAL ) - - - ( + 70 ) / + 99 * - COUNT ( * ) * + - 31 + - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT DISTINCT col0 * col2 + 7 DIV + 27 * col0 AS col1 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT col0 * col2 + 7 / + 27 * col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT - col0 * - ( 29 ) AS col2 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT - - ( - 87 ) AS col2 FROM tab2 cor0
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT DISTINCT - col0 DIV 92 + - 13 + + col0 AS col2 FROM tab1 AS cor0
----
38
72
78

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT - col0 / 92 + - 13 + + col0 AS col2 FROM tab1 AS cor0
----
38
72
78

query I rowsort
SELECT DISTINCT col2 + + col0 + - - 17 * col0 AS col0 FROM tab2
----
1192
1408
851

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab2 WHERE - 39 - + col1 * + col1 + + - ( - 72 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT col1 + + + 51 + + - col1 DIV col2 FROM tab1
----
56
65
98

skipif mysql # not compatible
query I rowsort label-8486
SELECT col1 + + + 51 + + - col1 / col2 FROM tab1
----
56
65
98

query I rowsort
SELECT ALL + 46 + + + col1 FROM tab0
----
127
47
67

query I rowsort
SELECT + col0 + - col1 + col2 * col2 + + col0 FROM tab2 AS cor0
----
1651
3447
570

query I rowsort
SELECT 44 * - ( - col0 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 47 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT - ( COUNT( DISTINCT - 54 ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8491
SELECT - ( COUNT ( DISTINCT - 54 ) ) FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT - col0 DIV - + 81 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT - col0 / - + 81 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL - - col2 + + col2 + + col1 + + 77 * 31 * - col2 * + col0 FROM tab0 cor0
----
-1682660
-2076649
-22922162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT DISTINCT + 30 / CAST( NULL AS SIGNED ) - + col0 + - CAST( NULL AS SIGNED ) * - col0 - + + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT + 30 / CAST ( NULL AS INTEGER ) - + col0 + - CAST ( NULL AS INTEGER ) * - col0 - + + col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8495
SELECT + - CAST( - + col0 AS SIGNED ) * 88 + col1 FROM tab1 AS cor0
----
4502
7485
8055

skipif mysql # not compatible
query I rowsort label-8495
SELECT + - CAST ( - + col0 AS INTEGER ) * 88 + col1 FROM tab1 AS cor0
----
4502
7485
8055

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL + COUNT( col2 ) - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL + COUNT ( col2 ) - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8497
SELECT - + col0 * CAST( NULL AS DECIMAL ) + 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8497
SELECT - + col0 * CAST ( NULL AS REAL ) + 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT + col2 DIV 53 + - col0 + - 99 AS col2 FROM tab1
----
-149
-183
-189

skipif mysql # not compatible
query I rowsort label-8498
SELECT + col2 / 53 + - col0 + - 99 AS col2 FROM tab1
----
-149
-183
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT 9 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8499
SELECT 9 / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ( - col1 ) * - - 79 FROM tab0
----
-1659
-6399
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL + MIN( + - 37 ) AS col0 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL + MIN ( + - 37 ) AS col0 FROM tab2
----
-37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND 32
----

query I rowsort
SELECT DISTINCT - col1 * + - 49 - + col0 FROM tab0 AS cor0
----
-48
3954
942

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 + - + col0 AS col1 FROM tab2 AS cor0
----
23
-92
40
-128
58
-150

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8505
SELECT DISTINCT - col1 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - col1 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * col1 = NULL
----

query I rowsort
SELECT - + 92 * - col2 AS col0 FROM tab1 AS cor0
----
5428
6256
8832

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT + 53 + - + SUM( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8508
SELECT + 53 + - + SUM ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - col0 * - col1 * 19 + 53 FROM tab0
----
1896
23138
34766

query I rowsort
SELECT ALL 13 + - - col0 * - 95 FROM tab1 WHERE - col0 - + + 94 * col2 IS NOT NULL
----
-4832
-8062
-8632

query II rowsort
SELECT - col0, 9 * col0 AS col1 FROM tab1
----
-51
459
-85
765
-91
819

query II rowsort
SELECT ALL - 89 AS col2, 5 AS col0 FROM tab0
----
-89
5
-89
5
-89
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT ALL + - CAST( NULL AS SIGNED ) + + + col2 / + 12 * + col1 AS col1 FROM tab0 WHERE - - 19 * 16 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + - CAST ( NULL AS INTEGER ) + + + col2 / + 12 * + col1 AS col1 FROM tab0 WHERE - - 19 * 16 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 + + col2 * - 4 FROM tab2
----
-159
-231
-91

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8516
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) < col0
----

skipif mysql # not compatible
query III rowsort label-8516
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) < col0
----

query I rowsort
SELECT ALL 85 + - - 82 FROM tab2
----
167
167
167

query I rowsort
SELECT ALL col1 + 54 AS col0 FROM tab0
----
135
55
75

query I rowsort
SELECT DISTINCT + col0 + - + 66 AS col2 FROM tab1
----
-15
19
25

query I rowsort
SELECT DISTINCT + col2 * - 59 + + + 71 FROM tab2 AS cor0
----
-1286
-2289
-3351

query I rowsort
SELECT ALL - ( 43 ) FROM tab1 AS cor0
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 - - - 63 - - col0 FROM tab1 AS cor0
----
2
27
75

query I rowsort
SELECT - 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT ALL - SUM( + - col2 ) AS col1 FROM tab2 WHERE NULL <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - SUM ( + - col2 ) AS col1 FROM tab2 WHERE NULL <> - col2
----
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * - ( - - col2 ) AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT MIN( DISTINCT + col1 ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8527
SELECT MIN ( DISTINCT + col1 ) col2 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT - + 96 - - col0 FROM tab1 AS cor0
----
-11
-45
-5

query II rowsort
SELECT col1, + col0 + - - 45 FROM tab1 AS cor0
----
14
96
47
136
5
130

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE + col1 NOT BETWEEN - + col2 AND + 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT DISTINCT + 18 + + col2 + 53 DIV - col2 AS col2 FROM tab0 AS cor0
----
117
23
64

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT + 18 + + col2 + 53 / - col2 AS col2 FROM tab0 AS cor0
----
117
23
64

query I rowsort
SELECT DISTINCT - + col0 * - 26 - + col1 - - 95 * col1 AS col2 FROM tab2 AS cor0
----
5990
8248
8902

query I rowsort
SELECT ALL ( - 90 ) AS col2 FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL COUNT( + - 74 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL COUNT ( + - 74 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col2 ) IS NOT NULL )
----

query I rowsort
SELECT + 25 * - + 21 FROM tab0
----
-525
-525
-525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8537
SELECT DISTINCT - CAST( - + 82 AS SIGNED ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT - CAST ( - + 82 AS INTEGER ) AS col2 FROM tab0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT ALL + ( - + CAST( col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL + ( - + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT + col2 * - col0 * col0 - - 7 AS col2 FROM tab0 AS cor0
----
-10568
-75683
-931484

query II rowsort
SELECT + ( col2 ), + 47 - + col1 FROM tab2 AS cor0
----
23
-4
40
-30
58
-20

query I rowsort
SELECT ALL - + 96 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT ( + ( + ( - COUNT( * ) ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8543
SELECT ( + ( + ( - COUNT ( * ) ) ) ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + 49 AS col2 FROM tab1
----
-2891
-3332
-4704

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + 49 AS col2 FROM tab1
----
-2891
-3332
-4704

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8545
SELECT 61 * - col2 * col2 DIV col2 + - - col2 - - + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

skipif mysql # not compatible
query I rowsort label-8545
SELECT 61 * - col2 * col2 / col2 + - - col2 - - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8546
SELECT - CAST( + 56 AS SIGNED ) * + COUNT( * ), 19 * 28 AS col0 FROM tab0 AS cor0
----
-168
532

skipif mysql # not compatible
query II rowsort label-8546
SELECT - CAST ( + 56 AS INTEGER ) * + COUNT ( * ), 19 * 28 AS col0 FROM tab0 AS cor0
----
-168
532

query I rowsort
SELECT DISTINCT col1 * + - 14 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> + col0
----

query II rowsort
SELECT DISTINCT + col0 AS col1, - col1 * col0 AS col2 FROM tab0 AS cor0
----
15
-1215
87
-1827
97
-97

query I rowsort
SELECT ( + col2 ) * + ( col0 ) FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab0 WHERE NULL < + col0 / + - col2 - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 71 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8552
SELECT ALL 49 + + 78, + 79 * COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
127
79

skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL 49 + + 78, + 79 * COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
127
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8553
SELECT col2 + + col0 DIV + col2 + + col1 FROM tab2
----
118
126
76

skipif mysql # not compatible
query I rowsort label-8553
SELECT col2 + + col0 / + col2 + + col1 FROM tab2
----
118
126
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT - MIN( + col2 ) + + - 59 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - MIN ( + col2 ) + + - 59 FROM tab2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT - - 88 / - col2 AS col2 FROM tab2 WHERE - - ( - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8555
SELECT - - 88 / - col2 AS col2 FROM tab2 WHERE - - ( - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT + 45 - 92 AS col2, + col0 FROM tab1
----
-47
51
-47
85
-47
91

query I rowsort
SELECT ALL 1 + + + col0 + col1 FROM tab1 AS cor0
----
139
66
91

query I rowsort
SELECT + 71 + + col0 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT ALL - col1 * - col1 - col2 + - - ( col2 ) + + col0 * - - col0 + + col2 AS col0 FROM tab0 AS cor0
----
6833
8020
9509

query I rowsort
SELECT ALL - col2 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-4992
-5074
-6256

query I rowsort
SELECT + + col0 * + col1 * + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-15178240
-19527150
-2751858

query I rowsort
SELECT ALL col2 * + 37 - + - col2 + - ( + + col0 ) AS col0 FROM tab2
----
1456
2129
828

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT COUNT( * ) - + 8 AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8564
SELECT COUNT ( * ) - + 8 AS col0 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT col2 + + 59 + + col0 + + col1 FROM tab2 AS cor0
----
179
240
259

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - - 41 + col1
----

query I rowsort
SELECT DISTINCT - 88 * + col0 AS col0 FROM tab2 AS cor0
----
-4048
-5632
-6600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, 85 + - 38 + + 44 * + ( - - 55 ) + ( - + col2 ) AS col0 FROM tab2
----
-23
2444
-40
2427
-58
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT - MAX( ALL 67 ) AS col2 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-8570
SELECT - MAX ( ALL 67 ) AS col2 FROM tab1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT + col1 * + - CAST( + + col0 AS SIGNED ) AS col2 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8571
SELECT + col1 * + - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - ( + 39 ) * - col2 FROM tab1
----
2301
2652
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8573
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8574
SELECT + col1 * + CAST( NULL AS SIGNED ) * + + 60 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT + col1 * + CAST ( NULL AS INTEGER ) * + + 60 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 58 AS col0, 71 FROM tab0
----
58
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8576
SELECT COUNT( * ) DIV - - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8576
SELECT COUNT ( * ) / - - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8577
SELECT col2 AS col1, - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-8577
SELECT col2 AS col1, - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query II rowsort
SELECT col2 AS col2, ( + col1 ) * - col1 FROM tab0 AS cor0
----
10
-441
47
-6561
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8579
SELECT ALL - CAST( + + col0 AS SIGNED ) + + col2 FROM tab2 cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - CAST ( + + col0 AS INTEGER ) + + col2 FROM tab2 cor0
----
-17
-23
-24

query II rowsort
SELECT DISTINCT + 37 + + - 91 AS col0, col1 FROM tab1 AS cor0
----
-54
14
-54
47
-54
5

query I rowsort
SELECT col1 + + - 14 AS col2 FROM tab1 AS cor0
----
-9
0
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT + col1 + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT + col1 + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 29 / col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 38 * + + 86 FROM tab0
----
3268
3268
3268

query II rowsort
SELECT 19 AS col2, 94 * - + 38 AS col0 FROM tab1
----
19
-3572
19
-3572
19
-3572

query I rowsort
SELECT ALL + 84 + - col2 AS col2 FROM tab0
----
-15
37
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT CAST( 30 AS SIGNED ) * - + 20 FROM tab2, tab2 AS cor0
----
9 values hashing to 4b1aec8986528614cad6dbc283d86860

skipif mysql # not compatible
query I rowsort label-8588
SELECT CAST ( 30 AS INTEGER ) * - + 20 FROM tab2, tab2 AS cor0
----
9 values hashing to 4b1aec8986528614cad6dbc283d86860

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8589
SELECT col2 * - 55 * + + ( + - col0 ) * - col1 + + - CAST( NULL AS SIGNED ) - + - CAST( NULL AS DECIMAL ) + + col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8589
SELECT col2 * - 55 * + + ( + - col0 ) * - col1 + + - CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS REAL ) + + col1, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT + COUNT( * ) + 80 col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8590
SELECT + COUNT ( * ) + 80 col2 FROM tab2 AS cor0
----
83

query I rowsort
SELECT 28 + - col2 * - 24 AS col1 FROM tab1
----
1444
1660
2332

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT COUNT( DISTINCT - col2 ) * 23 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8592
SELECT COUNT ( DISTINCT - col2 ) * 23 FROM tab2
----
69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8594
SELECT * FROM tab2 WHERE 42 * + ( col0 ) - ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8594
SELECT * FROM tab2 WHERE 42 * + ( col0 ) - ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + 17 * 71 FROM tab0
----
1207
1207
1207

query I rowsort
SELECT + ( - 29 ) AS col0 FROM tab2
----
-29
-29
-29

query I rowsort
SELECT + col0 + 77 * + col2 FROM tab1
----
4628
5327
7443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL - col2 FROM tab2 WHERE NOT + col2 BETWEEN - CAST( NULL AS SIGNED ) * - 4 AND - 95 * 27
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - col2 FROM tab2 WHERE NOT + col2 BETWEEN - CAST ( NULL AS INTEGER ) * - 4 AND - 95 * 27
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 47 ) >= NULL
----

query I rowsort
SELECT ALL 71 AS col0 FROM tab1 WHERE NOT + col0 / + 96 + col0 NOT IN ( 55 * + col1 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT ( - ( - col2 ) ) FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col0 AND + col0
----

query I rowsort
SELECT DISTINCT - 63 + 8 AS col2 FROM tab2
----
-55

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col1 NOT BETWEEN NULL AND + col0 + col0
----

query I rowsort
SELECT col0 FROM tab0 WHERE - col0 * 22 NOT BETWEEN NULL AND + col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + SUM( ALL + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8607
SELECT + SUM ( ALL + col2 ) AS col0 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8608
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col2 * 19 AS col2 FROM tab2
----
1044
414
720

skipif mysql # not compatible
query I rowsort label-8608
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col2 * 19 AS col2 FROM tab2
----
1044
414
720

query III rowsort
SELECT * FROM tab0 WHERE + col1 * 67 BETWEEN NULL AND 20
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( ( col0 ) ) - + 64 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - + col1 FROM tab2 WHERE NULL IS NULL
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8612
SELECT ALL 84 DIV col0 + - col0 FROM tab1
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL 84 / col0 + - col0 FROM tab1
----
-50
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT 85 + + COUNT( * ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-8613
SELECT 85 + + COUNT ( * ) FROM tab0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT - ( + col0 ) DIV - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8614
SELECT - ( + col0 ) / - col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT DISTINCT MIN( ( col2 ) ) / ( + 63 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8615
SELECT DISTINCT MIN ( ( col2 ) ) / ( + 63 ) FROM tab0 AS cor0 WHERE NOT ( col2 ) IN ( col2 )
----
NULL

query I rowsort
SELECT DISTINCT 17 FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
17

query I rowsort
SELECT + - col0 * + 12 FROM tab2 AS cor0
----
-552
-768
-900

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 87 / col2 > NULL
----

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + col1 * col1 IS NULL
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT + MAX( 17 ) col0 FROM tab1 cor0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8620
SELECT DISTINCT + MAX ( 17 ) col0 FROM tab1 cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT + SUM( 55 ) FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + SUM ( 55 ) FROM tab0 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * ( 64 ) ) > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 93 AND ( NULL )
----

query I rowsort
SELECT + + 7 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-18
-189
-2202

query I rowsort
SELECT - 56 + + 88 + ( + col0 ) FROM tab0
----
119
129
47

query I rowsort
SELECT DISTINCT + 9 * - - 71 AS col0 FROM tab1
----
639

query I rowsort
SELECT DISTINCT + col0 + + col1 * 47 FROM tab0
----
1074
144
3822

query I rowsort
SELECT col1 * col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
196
2209
25

query I rowsort
SELECT ALL 3 + - 84 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT - col2 + ( 87 ) AS col0 FROM tab2
----
29
47
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN NULL AND ( - col2 - - col1 * 31 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT + COUNT( * ) DIV - COUNT( ALL - 56 ) + - 54 AS col2 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-8632
SELECT + COUNT ( * ) / - COUNT ( ALL - 56 ) + - 54 AS col2 FROM tab0
----
-55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * - col0 - - col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 17 AS col2 FROM tab1 WHERE + 0 + col0 IS NOT NULL
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT MAX( + col1 ) + COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-8635
SELECT MAX ( + col1 ) + COUNT ( * ) FROM tab1
----
50

query I rowsort
SELECT - 4 + + + col0 FROM tab0
----
11
83
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8637
SELECT 94 * + CAST( COUNT( * ) AS SIGNED ) + - ( 17 ) FROM tab1
----
265

skipif mysql # not compatible
query I rowsort label-8637
SELECT 94 * + CAST ( COUNT ( * ) AS INTEGER ) + - ( 17 ) FROM tab1
----
265

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 78 AND + col1 + - 8 * + col2
----

query I rowsort
SELECT 5 * - - 27 FROM tab2 AS cor0
----
135
135
135

query I rowsort
SELECT ALL + ( + ( col2 ) ) * + 60 FROM tab0 AS cor0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8641
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT 96 * - + COUNT( * ) AS col1 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-8642
SELECT 96 * - + COUNT ( * ) AS col1 FROM tab2
----
-288

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8644
SELECT + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT ALL MIN( DISTINCT - + 49 ) AS col1 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-8646
SELECT ALL MIN ( DISTINCT - + 49 ) AS col1 FROM tab0
----
-49

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT - 37 < - 50 * + 61
----
-51
-67
-77

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8649
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * + + col0 * CAST( ( col2 ) AS DECIMAL ) ) IN ( - col0 * + 84 )
----

skipif mysql # not compatible
query III rowsort label-8649
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 * + + col0 * CAST ( ( col2 ) AS REAL ) ) IN ( - col0 * + 84 )
----

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT 71 + - col1 NOT BETWEEN - col0 - + ( ( - col2 ) + 44 * col2 ) AND col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8651
SELECT + CAST( + - COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8651
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col0 / col0 AS col0 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT ALL + - 34 * + 84 AS col0 FROM tab0 AS cor0
----
-2856
-2856
-2856

onlyif mysql # DIV for integer division: 
query I rowsort label-8655
SELECT DISTINCT + col1 DIV 68 * + 14 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT + col1 / 68 * + 14 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
5

query II rowsort
SELECT col0, col2 + + col1 FROM tab1 AS cor0
----
51
110
85
64
91
115

onlyif mysql # DIV for integer division: 
query II rowsort label-8658
SELECT DISTINCT 94 * - 69 col0, + ( + 86 ) + + col2 DIV + col1 FROM tab1
----
-6486
87
-6486
92
-6486
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8658
SELECT DISTINCT 94 * - 69 col0, + ( + 86 ) + + col2 / + col1 FROM tab1
----
-6486
87
-6486
92
-6486
97

query I rowsort
SELECT DISTINCT + col2 + col0 + col1 AS col1 FROM tab1
----
149
161
206

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 0 / 59 ) AND ( - 49 )
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 8 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 + - col2 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT NULL >= NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + - 81 * + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + MAX( - - 22 ) * 76 + COUNT( * ) AS col0 FROM tab2
----
1675

skipif mysql # not compatible
query I rowsort label-8665
SELECT + MAX ( - - 22 ) * 76 + COUNT ( * ) AS col0 FROM tab2
----
1675

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT - - col2 + - 45 DIV col1 * col0 + col1 * + ( + col0 ) AS col1 FROM tab0 cor0
----
-4169
1262
1663

skipif mysql # not compatible
query I rowsort label-8666
SELECT - - col2 + - 45 / col1 * col0 + col1 * + ( + col0 ) AS col1 FROM tab0 cor0
----
-4169
1262
1663

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL + 68 - - - col0 AS col0 FROM tab0 AS cor0
----
-19
-29
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT 6 + - COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8669
SELECT 6 + - COUNT ( * ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8670
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query III rowsort label-8670
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8671
SELECT 53 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8671
SELECT 53 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + ( + 28 ) ) FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - 79, col1 * - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-8673
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - 58 )
----
0

query I rowsort
SELECT ALL - col2 + + 60 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 74 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT DISTINCT AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + - 31 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 31 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT ALL + 76 DIV - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + 76 / - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
-8

query I rowsort
SELECT ALL - col0 + + col2 + - ( - 29 ) FROM tab2
----
12
5
6

query I rowsort
SELECT 39 - col1 AS col0 FROM tab1 AS cor0
----
-8
25
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8680
SELECT ALL 10 + + - 83 + - col2 + - + CAST( NULL AS SIGNED ) AS col1, col0 + + + col0 + + ( 26 ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
-1364
NULL
-1586
NULL
-2394

skipif mysql # not compatible
query II rowsort label-8680
SELECT ALL 10 + + - 83 + - col2 + - + CAST ( NULL AS INTEGER ) AS col1, col0 + + + col0 + + ( 26 ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
-1364
NULL
-1586
NULL
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT - COUNT( DISTINCT + - ( col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8681
SELECT - COUNT ( DISTINCT + - ( col0 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8682
SELECT DISTINCT col2 * col1 AS col0 FROM tab2 cor0 WHERE col0 * + + 62 BETWEEN + ( CAST( - 96 AS SIGNED ) ) AND - 87 * col1
----

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT col2 * col1 AS col0 FROM tab2 cor0 WHERE col0 * + + 62 BETWEEN + ( CAST ( - 96 AS INTEGER ) ) AND - 87 * col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 86 - + col2 + - + 41 + - 90 + - 55 + + 37 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8684
SELECT DISTINCT - + COUNT( * ), + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
query II rowsort label-8684
SELECT DISTINCT - + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL - COUNT( - - col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL - COUNT ( - - col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT ALL + 24 * CAST( + 55 AS SIGNED ) + + CAST( + ( 72 ) AS SIGNED ) + - - col0 * 67 FROM tab2 AS cor0
----
4474
5680
6417

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL + 24 * CAST ( + 55 AS INTEGER ) + + CAST ( + ( 72 ) AS INTEGER ) + - - col0 * 67 FROM tab2 AS cor0
----
4474
5680
6417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8687
SELECT DISTINCT + CAST( - 96 AS SIGNED ) * - - col0 col2, col2 FROM tab2 AS cor0
----
-4416
23
-6144
40
-7200
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8687
SELECT DISTINCT + CAST ( - 96 AS INTEGER ) * - - col0 col2, col2 FROM tab2 AS cor0
----
-4416
23
-6144
40
-7200
58

query I rowsort
SELECT DISTINCT + + col1 * + col2 * 72 AS col2 FROM tab1 AS cor0
----
21240
230112
96768

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT DISTINCT - 98 + + col2 * - CAST( - 70 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE - col2 - + - col1 * 85 / + 7 NOT BETWEEN CAST( + - col1 AS SIGNED ) AND - col1
----
4032
4662
6622

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - 98 + + col2 * - CAST ( - 70 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE - col2 - + - col1 * 85 / + 7 NOT BETWEEN CAST ( + - col1 AS INTEGER ) AND - col1
----
4032
4662
6622

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL COUNT( ALL ( - + 44 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL COUNT ( ALL ( - + 44 ) ) FROM tab1
----
3

query I rowsort
SELECT + ( 13 ) * - + 60 + col0 FROM tab0
----
-683
-693
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ( + CAST( - 94 AS SIGNED ) ) AS col0 FROM tab0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-8692
SELECT ( + CAST ( - 94 AS INTEGER ) ) AS col0 FROM tab0
----
-94
-94
-94

query I rowsort
SELECT ( + 79 ) AS col0 FROM tab1
----
79
79
79

query II rowsort
SELECT ALL - col1 AS col1, col2 AS col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 IN ( + col0 * + + col1 )
----
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - + 80 * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - + 80 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
720

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE 55 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 11 - - col2 AS col0 FROM tab1 cor0
----
107
70
79

query I rowsort
SELECT - ( - ( col0 ) ) FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL + + col0 - col1 * - + CAST( NULL AS SIGNED ) * - + col0 / col1 * + col1 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + + col0 - col1 * - + CAST ( NULL AS INTEGER ) * - + col0 / col1 * + col1 * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 - col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8704
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE 26 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT 9 - + col1 FROM tab1
----
-38
-5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT - COUNT( DISTINCT col1 ) + - + 25 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-8706
SELECT - COUNT ( DISTINCT col1 ) + - + 25 FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT - MAX( ALL 67 ) + + COUNT( * ) + + MAX( ALL + 39 ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8707
SELECT - MAX ( ALL 67 ) + + COUNT ( * ) + + MAX ( ALL + 39 ) FROM tab0
----
-25

query I rowsort
SELECT col0 + - col0 * + 93 * - col1 * + col0 + + col2 AS col2 FROM tab2
----
10036257
29331560
35049508

query I rowsort
SELECT DISTINCT 9 + - - col0 * + - ( + col0 ) FROM tab1
----
-2592
-7216
-8272

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - - 28 * + ( 74 ) / - + col0 - + + 61 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT - MAX( DISTINCT - CAST( + + col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8712
SELECT - MAX ( DISTINCT - CAST ( + + col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - ( col0 ), + 61, - col1 + col2 / - col0 - - 48 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col0 AS col2 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-8715
SELECT + col0 * col1 DIV col0 AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8715
SELECT + col0 * col1 / col0 AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + 92 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * - 54 + + + col0 + 64 )
----

query I rowsort
SELECT ALL + ( col2 ) * + 87 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # DIV for integer division: 
query II rowsort label-8719
SELECT ALL + col2, col0 DIV + ( + 52 ) AS col1 FROM tab2 AS cor0
----
23
0
40
1
58
1

skipif mysql # not compatible
query II rowsort label-8719
SELECT ALL + col2, col0 / + ( + 52 ) AS col1 FROM tab2 AS cor0
----
23
0
40
1
58
1

query I rowsort
SELECT 21 + - 60 AS col2 FROM tab0 AS cor0
----
-39
-39
-39

query II rowsort
SELECT ALL col2 AS col1, + 29 * - + 25 FROM tab1 AS cor0
----
59
-725
68
-725
96
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT - - 94 + - COUNT( * ) FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8722
SELECT - - 94 + - COUNT ( * ) FROM tab2 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT col1 * + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8723
SELECT col1 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + 98 col1 FROM tab1 AS cor0
----
-14
98
-47
98
-5
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8725
SELECT DISTINCT + 8 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST( + 70 AS DECIMAL ) * - 58 - - CAST( NULL AS SIGNED ) - - + col1 + - - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT + 8 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - CAST ( + 70 AS REAL ) * - 58 - - CAST ( NULL AS INTEGER ) - - + col1 + - - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query II rowsort
SELECT + ( 22 ) AS col0, + 67 + + - 1 AS col1 FROM tab0
----
22
66
22
66
22
66

query I rowsort
SELECT - + 68 / - 21 - - col1 * + 52 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - col0 - + - 62 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT ALL 55 + + MAX( DISTINCT + - ( - CAST( NULL AS SIGNED ) ) ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8729
SELECT ALL 55 + + MAX ( DISTINCT + - ( - CAST ( NULL AS INTEGER ) ) ) col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + col2 + - 91 AS col2, + col0 FROM tab1
----
-23
91
-32
85
5
51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) > 84 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT ( NOT NULL IS NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8733
SELECT ALL + col0 + 50, 83 DIV + col2 + - + ( + 60 ) AS col1 FROM tab2 AS cor0
----
114
-58
125
-59
96
-57

skipif mysql # not compatible
query II rowsort label-8733
SELECT ALL + col0 + 50, 83 / + col2 + - + ( + 60 ) AS col1 FROM tab2 AS cor0
----
114
-58
125
-59
96
-57

query I rowsort
SELECT ALL + 3 + + col0 AS col1 FROM tab1 AS cor0
----
54
88
94

query I rowsort
SELECT DISTINCT + col1 + - ( + col2 ) FROM tab2 WHERE + col2 + - col2 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + + 29 FROM tab1
----
-30
-39
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8737
SELECT * FROM tab2 WHERE + 86 <> + CAST( NULL AS SIGNED ) + + - 20
----

skipif mysql # not compatible
query III rowsort label-8737
SELECT * FROM tab2 WHERE + 86 <> + CAST ( NULL AS INTEGER ) + + - 20
----

query I rowsort
SELECT DISTINCT + col1 / - - col0 + - col1 + - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 43 - + col0 AS col0 FROM tab2 AS cor0
----
-107
-118
-89

query I rowsort
SELECT ALL + 94 + col1 AS col1 FROM tab0 AS cor0
----
115
175
95

query II rowsort
SELECT ALL - - col1 * col2 - col2 AS col2, col2 + - - 3 FROM tab2 AS cor0
----
1150
26
3040
43
3828
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col0 FROM tab0 AS cor0 WHERE 36 IS NULL
----

query I rowsort
SELECT ALL col0 * - col2 - - + col1 * col0 AS col2 FROM tab1 cor0
----
-1911
-4182
-4590

onlyif mysql # aggregate syntax: 
query II rowsort label-8745
SELECT + - COUNT( * ) AS col1, + 54 FROM tab1 AS cor0
----
-3
54

skipif mysql # not compatible
query II rowsort label-8745
SELECT + - COUNT ( * ) AS col1, + 54 FROM tab1 AS cor0
----
-3
54

query I rowsort
SELECT ALL - 39 - col2 * - + col2 AS col2 FROM tab1 AS cor0
----
3442
4585
9177

query I rowsort
SELECT DISTINCT - + col2 - + 13 AS col0 FROM tab0 AS cor0
----
-112
-23
-60

query I rowsort
SELECT ALL + - col2 * + - col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT col2 * - 19 AS col1 FROM tab2 AS cor0
----
-1102
-437
-760

query I rowsort
SELECT DISTINCT col1 * - 62 FROM tab2 AS cor0
----
-3162
-4154
-4774

query III rowsort
SELECT * FROM tab2 WHERE - col1 * + 34 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT ALL SUM( - col0 ) col2, - COUNT( * ) col0 FROM tab1
----
-227
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8752
SELECT ALL SUM ( - col0 ) col2, - COUNT ( * ) col0 FROM tab1
----
-227
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8753
SELECT ALL COUNT( * ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL COUNT ( * ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT MAX( ALL - - 66 ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8754
SELECT MAX ( ALL - - 66 ) AS col1 FROM tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT + col1 DIV + + col2 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8755
SELECT + col1 / + + col2 AS col0 FROM tab2
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 55 col0 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) * 55 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) * 55 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 * + col2 col2 FROM tab0 WHERE NULL NOT IN ( - ( - col0 ), - 43 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NOT NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8760
SELECT - COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 61 ) col1 FROM tab2 AS cor0
----
-61
-61
-61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + + col2 * - col2 + 52 * + 17
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 col0 FROM tab0 WHERE NULL IS NULL
----
-705
-870
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 93 * + 70 + col0 * - - col0 * col1 FROM tab2
----
114426
321902
383385

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8766
SELECT + col1 * col1 + + 54 + - CAST( NULL AS DECIMAL ) / + ( - 56 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT + col1 * col1 + + 54 + - CAST ( NULL AS REAL ) / + ( - 56 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + + col2 + + + col1 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8768
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT ALL + col0 + - - col0 DIV + + col0 FROM tab1
----
52
86
92

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + col0 + - - col0 / + + col0 FROM tab1
----
52
86
92

query I rowsort
SELECT DISTINCT col0 + + col0 + + col1 AS col1 FROM tab1
----
116
175
229

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT ALL 28 * + - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
-420

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL 28 * + - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT DISTINCT CAST( + 56 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT CAST ( + 56 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 98 - 61 * + + 54 col2 FROM tab2 AS cor0
----
1214
2978
4056

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT DISTINCT + - 11 - - - COUNT( * ) + + 59 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT + - 11 - - - COUNT ( * ) + + 59 FROM tab2 AS cor0
----
45

query I rowsort
SELECT DISTINCT - - col0 + + 11 AS col2 FROM tab0 AS cor0
----
108
26
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col2 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT DISTINCT + 33 * 8 DIV - 34 FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + 33 * 8 / - 34 FROM tab0 AS cor0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT ALL col2 DIV 28 col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8778
SELECT ALL col2 / 28 col2 FROM tab0
----
0
1
3

query I rowsort
SELECT + col1 + - col1 FROM tab2 WHERE NOT - 21 IS NULL
----
0
0
0

query I rowsort
SELECT ALL + col2 * - col1 * - col1 * - - col2 AS col0 FROM tab2
----
1375929
15100996
9486400

query I rowsort
SELECT col0 * + 5 FROM tab1
----
255
425
455

query I rowsort
SELECT DISTINCT 56 * - + col2 FROM tab1
----
-3304
-3808
-5376

onlyif mysql # aggregate syntax: 
query II rowsort label-8783
SELECT ALL COUNT( * ) AS col0, - 24 * - - COUNT( * ) AS col1 FROM tab0
----
3
-72

skipif mysql # not compatible
query II rowsort label-8783
SELECT ALL COUNT ( * ) AS col0, - 24 * - - COUNT ( * ) AS col1 FROM tab0
----
3
-72

query I rowsort
SELECT ALL - + 9 * 55 FROM tab1 AS cor0
----
-495
-495
-495

query I rowsort
SELECT DISTINCT col1 * 43 AS col1 FROM tab1 cor0
----
2021
215
602

query I rowsort
SELECT ALL - 89 * - col1 FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT ALL + + 80 * + - 47 FROM tab2 AS cor0
----
-3760
-3760
-3760

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 38 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT + COUNT( * ) + - + CAST( - - 63 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8789
SELECT + COUNT ( * ) + - + CAST ( - - 63 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8790
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL ) + + 85
----

skipif mysql # not compatible
query III rowsort label-8790
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND CAST ( NULL AS REAL ) + + 85
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8791
SELECT + COUNT( * ) / 2 / - MAX( DISTINCT CAST( + + 54 AS SIGNED ) ) + + 59 AS col2 FROM tab2 AS cor0 WHERE col1 * + + col1 + 30 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT + COUNT ( * ) / 2 / - MAX ( DISTINCT CAST ( + + 54 AS INTEGER ) ) + + 59 AS col2 FROM tab2 AS cor0 WHERE col1 * + + col1 + 30 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - 87 * - COUNT( * ) AS col2 FROM tab2 cor0
----
261

skipif mysql # not compatible
query I rowsort label-8792
SELECT - 87 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
261

query III rowsort
SELECT * FROM tab0 WHERE + - col2 + - + 18 IS NULL
----

query I rowsort
SELECT - 22 * - 66 FROM tab0
----
1452
1452
1452

query I rowsort
SELECT - + 22 AS col2 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT + 9 + - - COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT + 9 + - - COUNT ( * ) AS col2 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL - col2 + - - 8 + + + CAST( + 38 AS SIGNED ) FROM tab2
----
-12
23
6

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - col2 + - - 8 + + + CAST ( + 38 AS INTEGER ) FROM tab2
----
-12
23
6

query I rowsort
SELECT DISTINCT 52 * - 50 FROM tab0 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT - + col1 - - - col1 AS col0 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT + + col0 + - col0 + 93 AS col0 FROM tab2 AS cor0
----
93
93
93

query III rowsort
SELECT * FROM tab2 WHERE ( - ( 49 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8803
SELECT DISTINCT - CAST( + 19 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT - CAST ( + 19 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT ALL - - 37 * - - col2 AS col2 FROM tab0 AS cor0
----
1739
3663
370

query I rowsort
SELECT 15 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT MAX( + ( + 99 ) ) FROM tab0 WHERE NOT + col0 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-8808
SELECT MAX ( + ( + 99 ) ) FROM tab0 WHERE NOT + col0 IS NULL
----
99

query I rowsort
SELECT - col1 * 9 AS col1 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

query II rowsort
SELECT - ( col2 ), 7 + col1 + col0 AS col1 FROM tab2
----
-23
104
-40
148
-58
149

query I rowsort
SELECT col2 * - 38 AS col2 FROM tab2
----
-1520
-2204
-874

query I rowsort
SELECT - ( + col1 ) FROM tab1 WHERE NOT + + 17 - - col2 + + 59 * + 32 NOT BETWEEN + - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8813
SELECT DISTINCT CAST( CAST( - 60 AS SIGNED ) AS SIGNED ) * + ( + 80 ) AS col1 FROM tab0
----
-4800

skipif mysql # not compatible
query I rowsort label-8813
SELECT DISTINCT CAST ( CAST ( - 60 AS INTEGER ) AS INTEGER ) * + ( + 80 ) AS col1 FROM tab0
----
-4800

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT DISTINCT + col2 DIV 13 * - col2 col1 FROM tab2 AS cor0
----
-120
-23
-232

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT DISTINCT + col2 / 13 * - col2 col1 FROM tab2 AS cor0
----
-120
-23
-232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8815
SELECT DISTINCT - - 38 * + - ( ( + - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - - 38 * + - ( ( + - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT - 89 ) FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT - 89 ) FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query II rowsort label-8817
SELECT - 24 + COUNT( * ) col2, - COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-21
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8817
SELECT - 24 + COUNT ( * ) col2, - COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-21
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8818
SELECT - CAST( NULL AS SIGNED ) + + - 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT - CAST ( NULL AS INTEGER ) + + - 27 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8819
SELECT ALL MIN( DISTINCT + col0 ), 70 AS col2 FROM tab0 AS cor0
----
15
70

skipif mysql # not compatible
query II rowsort label-8819
SELECT ALL MIN ( DISTINCT + col0 ), 70 AS col2 FROM tab0 AS cor0
----
15
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT ALL 87 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT ALL 87 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 65 * - 82 FROM tab2
----
-5330
-5330
-5330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 + + col2 * - - col1 col1 FROM tab2
----
1178
3093
3878

query II rowsort
SELECT col1 * - 4 * + + 65 AS col2, col2 FROM tab2
----
-13260
23
-17420
58
-20020
40

query I rowsort
SELECT ALL - col1 + 5 * ( 9 ) + 88 + + 86 - + col0 AS col1 FROM tab2 AS cor0
----
122
77
78

query I rowsort
SELECT 19 * + ( - + col0 ) FROM tab0 AS cor0
----
-1653
-1843
-285

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + + 24 AND 88 + + 17
----
-10
-47
-99

query II rowsort
SELECT ALL 28 AS col0, 23 AS col1 FROM tab1 cor0
----
28
23
28
23
28
23

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + 69 + 11, 88 AS col0 FROM tab2
----
80
88
80
88
80
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE ( NOT NULL IN ( + 81, + col1, - 99, col2 / - + 65 + 75 - - - col1, - 11 * 14 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT 34 + - + CAST( NULL AS SIGNED ) - - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT 34 + - + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL + ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE - col2 * - col1 + col1 + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE - col2 * - col1 + col1 + - col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8834
SELECT + 38 + - + 65 col0, col2 + + + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
-27
NULL
-27
NULL
-27
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8834
SELECT + 38 + - + 65 col0, col2 + + + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
-27
NULL
-27
NULL
-27
NULL

query II rowsort
SELECT ALL + - col1 + + col0 AS col2, col2 * - + col2 + + + col0 AS col1 FROM tab2 AS cor0
----
-13
-1536
-5
-483
8
-3289

query I rowsort
SELECT DISTINCT - - col1 + 95 AS col0 FROM tab1 AS cor0
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - + MAX( + col0 ) - COUNT( * ) FROM tab0 cor0
----
-100

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - + MAX ( + col0 ) - COUNT ( * ) FROM tab0 cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT + CAST( + 22 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
22
22
22

skipif mysql # not compatible
query I rowsort label-8838
SELECT + CAST ( + 22 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL MAX( ALL + 99 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL MAX ( ALL + 99 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8840
SELECT CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT IN ( 70, - 56, - - col1, - + 61, + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 4 * 66 AS col1 FROM tab1
----
-264
-264
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT - + col0 DIV - col1 + + + col1 AS col1 FROM tab1 cor0
----
17
22
48

skipif mysql # not compatible
query I rowsort label-8843
SELECT - + col0 / - col1 + + + col1 AS col1 FROM tab1 cor0
----
17
22
48

query I rowsort
SELECT DISTINCT - 98 * - + col2 FROM tab2 AS cor0
----
2254
3920
5684

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE ( - col2 ) * + col0 * col0 * col0 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + - COUNT( + col2 ) * + - COUNT( * ) col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8846
SELECT ALL + - COUNT ( + col2 ) * + - COUNT ( * ) col0 FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT + + COUNT( - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8847
SELECT + + COUNT ( - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 84 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8850
SELECT + 84, COUNT( * ) AS col0 FROM tab0
----
84
3

skipif mysql # not compatible
query II rowsort label-8850
SELECT + 84, COUNT ( * ) AS col0 FROM tab0
----
84
3

query II rowsort
SELECT - 57, 44 + - col1 AS col1 FROM tab2
----
-57
-23
-57
-33
-57
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8852
SELECT ALL - col0 * - + CAST( - col1 AS SIGNED ) * + col1 AS col2, - 59 AS col1 FROM tab0
----
-38367
-59
-97
-59
-98415
-59

skipif mysql # not compatible
query II rowsort label-8852
SELECT ALL - col0 * - + CAST ( - col1 AS INTEGER ) * + col1 AS col2, - 59 AS col1 FROM tab0
----
-38367
-59
-97
-59
-98415
-59

query I rowsort
SELECT DISTINCT 23 * - 39 FROM tab2
----
-897

query I rowsort
SELECT - ( + - col2 ) * - - ( - col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT col2 * - - 28 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
-37632
-8260
-89488

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL COUNT( DISTINCT + ( - 81 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL COUNT ( DISTINCT + ( - 81 ) ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT + ( 87 ) * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <= - + ( + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT + ( 87 ) * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 <= - + ( + 53 )
----
NULL

query II rowsort
SELECT DISTINCT + col2 + 81 AS col1, col1 FROM tab0 AS cor0
----
128
81
180
1
91
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT col1 AS col1 FROM tab2 cor0 WHERE col1 * - - CAST( NULL AS SIGNED ) * - + col2 * - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8859
SELECT col1 AS col1 FROM tab2 cor0 WHERE col1 * - - CAST ( NULL AS INTEGER ) * - + col2 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL - COUNT( * ) + - 1 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL - COUNT ( * ) + - 1 FROM tab2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT - - col1 DIV col2 * col2 - - + ( + col0 ) + 13 DIV 34 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8861
SELECT - - col1 / col2 * col2 - - + ( + col0 ) + 13 / 34 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - ( 85 ) AS col2 FROM tab0 AS cor0
----
-85

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT - MIN( + ( - - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT - MIN ( + ( - - col2 ) ) FROM tab0
----
-10

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL BETWEEN - - col0 AND + col0 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col2 FROM tab1 WHERE NULL < - col1
----

query I rowsort
SELECT ALL + 80 + + col0 FROM tab1
----
131
165
171

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT - - 48 * COUNT( * ) col0 FROM tab2 AS cor0
----
144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8869
SELECT DISTINCT - - 48 * COUNT ( * ) col0 FROM tab2 AS cor0
----
144

query II rowsort
SELECT col2, ( col0 ) FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL 79 + + col2 + + + col1 FROM tab1
----
143
189
194

query II rowsort
SELECT col2, + col2 * - col1 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - + MAX( ALL - - col1 ) * COUNT( - col1 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8873
SELECT - + MAX ( ALL - - col1 ) * COUNT ( - col1 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-8874
SELECT ALL + 11, + COUNT( * ) col0 FROM tab2 AS cor0
----
11
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8874
SELECT ALL + 11, + COUNT ( * ) col0 FROM tab2 AS cor0
----
11
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 30 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8876
SELECT + MAX( DISTINCT - 90 ) + - 17 DIV COUNT( * ) * + 54 FROM tab0 AS cor0
----
-360

skipif mysql # not compatible
query I rowsort label-8876
SELECT + MAX ( DISTINCT - 90 ) + - 17 / COUNT ( * ) * + 54 FROM tab0 AS cor0
----
-360

query I rowsort
SELECT DISTINCT ( 97 ) * + - col0 * + col1 * + 26 * - - col2 FROM tab0
----
-144018810
-24218766
-46076940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 * + col2, - 73 col1 FROM tab2
----
2093
-73
3640
-73
5278
-73

query I rowsort
SELECT + col1 + + col0 * - col2 AS col2 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT - col0 + - - 15 AS col0 FROM tab1
----
-36
-70
-76

query I rowsort
SELECT ALL - - 47 AS col0 FROM tab2 WHERE + col1 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 + + + 5 AS col2 FROM tab0
----
26
6
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT COUNT( * ) - + 68 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT COUNT ( * ) - + 68 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - col0 <> + ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 87 ) FROM tab1
----
-87
-87
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, + col2 col1 FROM tab2 cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + col1 * - - col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT - 9 * col1 FROM tab0 cor0
----
-189
-729
-9

query I rowsort
SELECT - ( - - 39 ) * col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT ( + - 23 ) AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + ( - - 51 ) FROM tab1 AS cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( 26 + - 68, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 91 + col1 FROM tab0
----
-10
-70
-90

query I rowsort
SELECT col0 * + 41 FROM tab0
----
3567
3977
615

onlyif mysql # DIV for integer division: 
query I rowsort label-8898
SELECT DISTINCT 71 DIV + ( + col0 ) AS col2 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT 71 / + ( + col0 ) AS col2 FROM tab0
----
0
4

query I rowsort
SELECT DISTINCT 98 + col0 AS col0 FROM tab2
----
144
162
173

query I rowsort
SELECT 17 FROM tab0 WHERE NOT ( - - 70 ) * - 37 NOT IN ( - col2 * + 36 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - + COUNT( ALL - + col1 ) FROM tab1 WHERE NOT - - 55 * 67 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8901
SELECT - + COUNT ( ALL - + col1 ) FROM tab1 WHERE NOT - - 55 * 67 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8902
SELECT - - col2 DIV + col0, - col0 * - 9 AS col2 FROM tab0 AS cor0
----
0
783
1
873
3
135

skipif mysql # not compatible
query II rowsort label-8902
SELECT - - col2 / + col0, - col0 * - 9 AS col2 FROM tab0 AS cor0
----
0
783
1
873
3
135

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8903
SELECT + col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + CAST( - - col0 AS DECIMAL ), 74, - col0 * - col2 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-8903
SELECT + col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + CAST ( - - col0 AS REAL ), 74, - col0 * - col2 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - MIN( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
8

skipif mysql # not compatible
query I rowsort label-8904
SELECT - MIN ( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT - + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8906
SELECT - + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col1 + col2 + + + col1 + + 63 FROM tab1 AS cor0
----
122
131
159

onlyif mysql # DIV for integer division: 
query I rowsort label-8908
SELECT ALL - col1 DIV + col0 - - 29 AS col1 FROM tab2 AS cor0
----
28
28
29

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - col1 / + col0 - - 29 AS col1 FROM tab2 AS cor0
----
28
28
29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 16 * + 73 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8910
SELECT DISTINCT - MAX( ALL - CAST( + col2 AS SIGNED ) ) DIV 90 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - MAX ( ALL - CAST ( + col2 AS INTEGER ) ) / 90 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 69 - + + col0 FROM tab1
----
-16
-22
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8913
SELECT - CAST( + SUM( DISTINCT + 45 ) AS SIGNED ) - + COUNT( * ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8913
SELECT - CAST ( + SUM ( DISTINCT + 45 ) AS INTEGER ) - + COUNT ( * ) FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT + MAX( col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + MAX ( col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT + - COUNT( - + 48 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8915
SELECT + - COUNT ( - + 48 ) AS col2 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - 0 AS col1, col1 AS col1 FROM tab0 cor0
----
0
1
0
21
0
81

query I rowsort
SELECT ALL + 82 * + 85 AS col1 FROM tab0 AS cor0
----
6970
6970
6970

query I rowsort
SELECT DISTINCT - + 89 * + 98 FROM tab2 AS cor0
----
-8722

query II rowsort
SELECT 5 AS col2, - 92 FROM tab2 AS cor0
----
5
-92
5
-92
5
-92

query I rowsort
SELECT ALL - 12 * - - 16 AS col1 FROM tab0 AS cor0
----
-192
-192
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT DISTINCT + col0 DIV - 13 FROM tab1
----
-3
-6
-7

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT + col0 / - 13 FROM tab1
----
-3
-6
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8922
SELECT DISTINCT - SUM( DISTINCT col2 ), SUM( DISTINCT - col2 ) FROM tab2
----
-121
-121

skipif mysql # not compatible
query II rowsort label-8922
SELECT DISTINCT - SUM ( DISTINCT col2 ), SUM ( DISTINCT - col2 ) FROM tab2
----
-121
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT MIN( + + 69 ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-8923
SELECT MIN ( + + 69 ) AS col0 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL COUNT( ALL - + col1 ) * + 46 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL COUNT ( ALL - + col1 ) * + 46 FROM tab0 AS cor0
----
138

query I rowsort
SELECT - col0 * ( - ( col2 ) ) * - col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT ALL + col1 DIV + 4 + 87 FROM tab2 AS cor0
----
103
106
99

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL + col1 / + 4 + 87 FROM tab2 AS cor0
----
103
106
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8927
SELECT + 70 * 65 * col2 AS col1, - ( + - col2 ) DIV + col1 FROM tab1 AS cor0
----
268450
11
309400
1
436800
6

skipif mysql # not compatible
query II rowsort label-8927
SELECT + 70 * 65 * col2 AS col1, - ( + - col2 ) / + col1 FROM tab1 AS cor0
----
268450
11
309400
1
436800
6

query I rowsort
SELECT - + 97 * col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 80 IS NOT NULL
----

query I rowsort
SELECT ALL - 98 + col0 * + - 80 FROM tab1
----
-4178
-6898
-7378

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + SUM( + col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8931
SELECT + SUM ( + col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT ALL 80 + col0 FROM tab1
----
131
165
171

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 34 / - col1 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col0 * - col0 FROM tab1
----
2615
7230
8328

query I rowsort
SELECT + 60 * 17 + col1 FROM tab0
----
1021
1041
1101

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 73 IS NOT NULL
----

query I rowsort
SELECT - 18 * 6 * - - col0 + - col0 FROM tab1
----
-5559
-9265
-9919

query I rowsort
SELECT - col0 + + + 99 AS col1 FROM tab2 AS cor0
----
24
35
53

query II rowsort
SELECT DISTINCT - col1, - 69 AS col2 FROM tab2 cor0
----
-51
-69
-67
-69
-77
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT + 20 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8940
SELECT + 20 / + col2 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT col2 * - col1 AS col1, col1 FROM tab0
----
-210
21
-3807
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 - - col0 * + + 95 col2 FROM tab2 AS cor0
----
4456
6166
7211

query I rowsort
SELECT ALL 62 - - + ( - 6 ) FROM tab1 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + col1 col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT + col1 - 13 + + col1 * col2 FROM tab0 AS cor0
----
218
3875
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT + + CAST( + col2 AS SIGNED ) * col2 AS col1 FROM tab2 WHERE - 71 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8946
SELECT + + CAST ( + col2 AS INTEGER ) * col2 AS col1 FROM tab2 WHERE - 71 IS NULL
----

query I rowsort
SELECT ALL + 3 - + + col0 AS col0 FROM tab2
----
-43
-61
-72

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + 19 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8949
SELECT ALL + MAX( + col2 ), CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 73 + - 53 AND NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8949
SELECT ALL + MAX ( + col2 ), CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 73 + - 53 AND NULL
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT + col1 DIV + + ( 81 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8950
SELECT + col1 / + + ( 81 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT MIN( + 57 ) * COUNT( * ) AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-8951
SELECT MIN ( + 57 ) * COUNT ( * ) AS col2 FROM tab1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT col1 * 74 DIV - col2 FROM tab1
----
-10
-51
-6

skipif mysql # not compatible
query I rowsort label-8952
SELECT col1 * 74 / - col2 FROM tab1
----
-10
-51
-6

query I rowsort
SELECT ( - - 79 ) AS col0 FROM tab0
----
79
79
79

query II rowsort
SELECT DISTINCT - col1 AS col2, - 21 FROM tab2
----
-51
-21
-67
-21
-77
-21

query II rowsort
SELECT DISTINCT - 23, col2 AS col1 FROM tab2
----
-23
23
-23
40
-23
58

query II rowsort
SELECT ALL ( - - col2 ) * + col1 * - + 40 + - 62, col1 AS col2 FROM tab0
----
-152342
81
-4022
1
-8462
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8958
SELECT + COUNT( * ) AS col2, MIN( DISTINCT + col0 ) * 6 + + 31 AS col0 FROM tab1 cor0
----
3
337

skipif mysql # not compatible
query II rowsort label-8958
SELECT + COUNT ( * ) AS col2, MIN ( DISTINCT + col0 ) * 6 + + 31 AS col0 FROM tab1 cor0
----
3
337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT + col1 FROM tab1 WHERE - col2 * CAST( NULL AS SIGNED ) + 51 + + - col2 * col0 = + CAST( + + 45 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT + col1 FROM tab1 WHERE - col2 * CAST ( NULL AS INTEGER ) + 51 + + - col2 * col0 = + CAST ( + + 45 AS INTEGER )
----

query I rowsort
SELECT + 32 + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3b792285965591d50328a6a66dcbef61

query I rowsort
SELECT DISTINCT col0 * + 25 FROM tab0
----
2175
2425
375

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8962
SELECT DISTINCT + + col0 AS col0, - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-8962
SELECT DISTINCT + + col0 AS col0, - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8963
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 54 IN ( + - CAST( NULL AS SIGNED ), col0 )
----

skipif mysql # not compatible
query III rowsort label-8963
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 54 IN ( + - CAST ( NULL AS INTEGER ), col0 )
----

query I rowsort
SELECT 83 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT 15 + + col2 AS col2 FROM tab0 AS cor0
----
114
25
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT 38 * - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8966
SELECT 38 * - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT + col1 DIV + - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8967
SELECT + col1 / + - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 51 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8969
SELECT CAST( 47 AS SIGNED ) AS col2, col2 AS col0, - col2 * 72 AS col0 FROM tab0
----
9 values hashing to 11b27b9ce0ddc5e8b935c2ac7f37e905

skipif mysql # not compatible
query III rowsort label-8969
SELECT CAST ( 47 AS INTEGER ) AS col2, col2 AS col0, - col2 * 72 AS col0 FROM tab0
----
9 values hashing to 11b27b9ce0ddc5e8b935c2ac7f37e905

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 95 <> 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8971
SELECT ALL 5 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 5 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT DISTINCT + 1 DIV - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + 1 / - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 98 + AVG ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT CAST( NULL AS SIGNED ) + + 7 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT CAST ( NULL AS INTEGER ) + + 7 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8976
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND + - 95 * - col1 + 2 + - CAST( 70 AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-8976
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND + - 95 * - col1 + 2 + - CAST ( 70 AS INTEGER ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL <> + 60 * ( ( col2 ) ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL <> + 60 * ( ( col2 ) ) ) )
----
0

query I rowsort
SELECT + col2 * col2 * col2 - - 27 AS col0 FROM tab2 AS cor0
----
12194
195139
64027

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT + - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8979
SELECT + - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-8980
SELECT + COUNT( * ) AS col2, COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8980
SELECT + COUNT ( * ) AS col2, COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col2 + - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 + - col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL + - COUNT( - + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL + - COUNT ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8984
SELECT + col1 * CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8984
SELECT + col1 * CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 9 col2 FROM tab2
----
414
576
675

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + 1 * - + SUM( col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8987
SELECT + 1 * - + SUM ( col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8988
SELECT ALL * FROM tab0 WHERE NOT - + CAST( col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8988
SELECT ALL * FROM tab0 WHERE NOT - + CAST ( col1 AS INTEGER ) > NULL
----

query II rowsort
SELECT 86 AS col1, - 63 + col0 FROM tab0
----
86
-48
86
24
86
34

query I rowsort
SELECT - 17 * - - col0 AS col1 FROM tab2 AS cor0
----
-1088
-1275
-782

query I rowsort
SELECT DISTINCT col2 * - + col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + - col1 * + col0 + + + col1 FROM tab1 AS cor0
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT - col1 * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8996
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2
----
-46
-64
-75

query II rowsort
SELECT ALL ( - + 34 ) AS col1, 98 AS col1 FROM tab2
----
-34
98
-34
98
-34
98

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IS NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 7 + + + col0 FROM tab0
----
104
22
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 / - col2 col1 FROM tab0 WHERE + col0 * - + 83 * 80 < NULL
----

query I rowsort
SELECT ALL 86 + - 37 * - + col2 FROM tab2
----
1566
2232
937

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT 24 + - MAX( ALL - col1 ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-9002
SELECT 24 + - MAX ( ALL - col1 ) AS col1 FROM tab0
----
25

query I rowsort
SELECT ALL + 9 + + 51 FROM tab2
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT COUNT( * ) + + - MAX( + col1 ) AS col1 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-9004
SELECT COUNT ( * ) + + - MAX ( + col1 ) AS col1 FROM tab0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL + 43 * + - 39 + + COUNT( * ) AS col0 FROM tab1
----
-1674

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL + 43 * + - 39 + + COUNT ( * ) AS col0 FROM tab1
----
-1674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col2 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1 + + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT ALL - + COUNT( col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - + COUNT ( col2 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 50
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 * + col1 AND - - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col2 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT 30 AS col1, COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
30
-9

skipif mysql # not compatible
query II rowsort label-9012
SELECT 30 AS col1, COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
30
-9

query I rowsort
SELECT 97 * + 5 FROM tab2
----
485
485
485

query I rowsort
SELECT ALL - - col0 + + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9015
SELECT ALL - MIN( - ( + + CAST( NULL AS SIGNED ) ) ) AS col0, 8 - + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9015
SELECT ALL - MIN ( - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0, 8 - + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT DISTINCT + ( col0 ) FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9016
SELECT DISTINCT + ( col0 ) FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 40 * col0 FROM tab0 AS cor0
----
3480
3880
600

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT MIN( - 29 ) FROM tab0 WHERE col2 NOT BETWEEN ( col0 ) AND NULL
----
-29

skipif mysql # not compatible
query I rowsort label-9019
SELECT MIN ( - 29 ) FROM tab0 WHERE col2 NOT BETWEEN ( col0 ) AND NULL
----
-29

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - 30 + 15 ) AND ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT + COUNT( DISTINCT 50 ) * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9021
SELECT + COUNT ( DISTINCT 50 ) * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 57 / 90 FROM tab2 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9023
SELECT - CAST( NULL AS SIGNED ) * + col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9023
SELECT - CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT + CAST( NULL AS SIGNED ) * COUNT( col1 * 52 ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9024
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( col1 * 52 ) col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col2 FROM tab0
----
-87

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * 90 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 52 * - col1 AS col0 FROM tab2 WHERE col0 * 60 - + 13 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT - 55 * + COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-9028
SELECT - 55 * + COUNT ( * ) FROM tab1
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT DISTINCT + COUNT( * ) * 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT + COUNT ( * ) * 50 FROM tab2
----
150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9030
SELECT + col2 DIV col1 + CAST( - col1 + col2 * 6 AS SIGNED ) * 47 FROM tab0
----
1833
27970
9447

skipif mysql # not compatible
query I rowsort label-9030
SELECT + col2 / col1 + CAST ( - col1 + col2 * 6 AS INTEGER ) * 47 FROM tab0
----
1833
27970
9447

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT + MIN( col0 ) + 84 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9032
SELECT + MIN ( col0 ) + 84 FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( 95 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9034
SELECT col0 - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT col0 - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 22 - - col1 AS col2 FROM tab2
----
73
89
99

query I rowsort
SELECT DISTINCT + col2 * 91 FROM tab1
----
5369
6188
8736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT COUNT( CAST( + col2 AS SIGNED ) ) * - 4 col1 FROM tab1
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9037
SELECT DISTINCT COUNT ( CAST ( + col2 AS INTEGER ) ) * - 4 col1 FROM tab1
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9038
SELECT DISTINCT + 11 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + 11 * CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 69
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> ( - col1 )
----

query I rowsort
SELECT DISTINCT - 68 FROM tab0 WHERE ( col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL + 52 - COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + 52 - COUNT ( * ) FROM tab0
----
49

query I rowsort
SELECT + 18 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL 35 * + COUNT( * ) FROM tab1 AS cor0 WHERE ( col2 ) < + 73 + col1 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL 35 * + COUNT ( * ) FROM tab1 AS cor0 WHERE ( col2 ) < + 73 + col1 * - col1
----
0

query I rowsort
SELECT ALL col2 + 36 FROM tab2 AS cor0
----
59
76
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + col1 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - COUNT( * ) + 12 AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9047
SELECT - COUNT ( * ) + 12 AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ( col0 ) * col1 AS col0 FROM tab1 AS cor0 WHERE + ( + 22 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 + col2 )
----

query I rowsort
SELECT - + 81 AS col2 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9051
SELECT col2 DIV + ( + col1 * 48 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT col2 / + ( + col1 * 48 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT - MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9052
SELECT - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( col0 )
----

query I rowsort
SELECT ALL ( 11 ) AS col1 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9055
SELECT DISTINCT + 22 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + 22 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab2 AS cor0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( col2 ) / col2 + - col0 FROM tab0 AS cor0 WHERE NOT NULL < ( col0 )
----

query I rowsort
SELECT 83 * + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( 85 ) < + 81
----
1245
7221
8051

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9060
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / col2 - 65 NOT BETWEEN ( CAST( NULL AS DECIMAL ) ) AND col0
----

skipif mysql # not compatible
query III rowsort label-9060
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / col2 - 65 NOT BETWEEN ( CAST ( NULL AS REAL ) ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - 32 AS col0 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > ( col1 * 86 )
----

query I rowsort
SELECT - 89 * - col1 FROM tab2
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL SUM( + 20 ) FROM tab1 AS cor0 WHERE - 18 = ( 7 - col2 / col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL SUM ( + 20 ) FROM tab1 AS cor0 WHERE - 18 = ( 7 - col2 / col0 )
----
NULL

query I rowsort
SELECT - col2 * - col0 + 42 * + col1 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT + 56 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL + 85 * col1 * col0 * - 9 + col0 AS col1 FROM tab1
----
-325040
-3271814
-546159

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9070
SELECT DISTINCT 44 FROM tab0 WHERE - CAST( NULL AS SIGNED ) - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT 44 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9072
SELECT DISTINCT - col2 + - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT - col2 + - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) >= NULL OR NULL > ( NULL )
----

query I rowsort
SELECT ALL - 45 * - 56 * col1 + - 2 * col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
128957
172054
195512

query I rowsort
SELECT col0 + + 96 + col1 AS col2 FROM tab2 cor0
----
193
237
238

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE ( NULL ) > col0 * col2
----

query II rowsort
SELECT ALL + 48 AS col2, + 33 - col2 AS col2 FROM tab2 AS cor0
----
48
-25
48
-7
48
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT - + 47 * - COUNT( DISTINCT 21 ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - + 47 * - COUNT ( DISTINCT 21 ) FROM tab2 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + COUNT( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT + COUNT ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT DISTINCT col2 + + - 22 FROM tab0
----
-12
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9081
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT col0 + + + col0 FROM tab2 WHERE NULL IS NULL
----
128
150
92

query I rowsort
SELECT 87 * + - col2 + 74 FROM tab0
----
-4015
-796
-8539

query I rowsort
SELECT + col2 * + 68 * + col1 + + col1 AS col1 FROM tab1
----
20065
217375
91406

query I rowsort
SELECT col2 + + 52 + 53 * - - col2 FROM tab2
----
1294
2212
3184

query I rowsort
SELECT - ( - - 17 ) AS col2 FROM tab2
----
-17
-17
-17

query II rowsort
SELECT DISTINCT - col1 + + col1, 29 AS col2 FROM tab1
----
0
29

query I rowsort
SELECT DISTINCT - 64 + + 65 AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT + 55 * - MIN( - col0 ) FROM tab0 AS cor0
----
5335

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT + 55 * - MIN ( - col0 ) FROM tab0 AS cor0
----
5335

query I rowsort
SELECT DISTINCT + + ( - col2 ) * col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT + COUNT( * ) + - 18 AS col1 FROM tab1 WHERE NOT ( - - 57 ) = ( NULL )
----
-18

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + COUNT ( * ) + - 18 AS col1 FROM tab1 WHERE NOT ( - - 57 ) = ( NULL )
----
-18

query I rowsort
SELECT + col1 * - ( + col0 ) AS col0 FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9093
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT + MIN( ALL - 36 ) col1 FROM tab2 cor0 WHERE NOT ( col2 ) >= NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9094
SELECT + MIN ( ALL - 36 ) col1 FROM tab2 cor0 WHERE NOT ( col2 ) >= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) / - col0 * 26 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 17 col2, col1 FROM tab1 AS cor0
----
-17
14
-17
47
-17
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9097
SELECT DISTINCT - - CAST( - - col2 AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE NULL < col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9097
SELECT DISTINCT - - CAST ( - - col2 AS REAL ) col0 FROM tab2 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT ALL + col1 * col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + MIN( + 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9099
SELECT + MIN ( + 88 ) FROM tab2 AS cor0
----
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - + col0 + + 34 NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT col2 * + + col0 / + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT col2 * + + col0 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT - col1 AS col1, + 60 FROM tab2
----
-51
60
-67
60
-77
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT + MAX( ALL + - col2 ) * - 70 AS col0 FROM tab0
----
700

skipif mysql # not compatible
query I rowsort label-9103
SELECT + MAX ( ALL + - col2 ) * - 70 AS col0 FROM tab0
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + 94 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9104
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + 94 ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT + col1 * CAST( + 17 AS SIGNED ) * ( + - col2 ) AS col2 FROM tab0
----
-1683
-3570
-64719

skipif mysql # not compatible
query I rowsort label-9105
SELECT + col1 * CAST ( + 17 AS INTEGER ) * ( + - col2 ) AS col2 FROM tab0
----
-1683
-3570
-64719

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 / col0 * + col0 - + col1 * - 40 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT ALL + MIN( ALL + col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + MIN ( ALL + col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col1 ) = col2 - - ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-9108
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col1 ) = col2 - - ( - col2 )
----
3

query I rowsort
SELECT DISTINCT + col0 + - 2 FROM tab1
----
49
83
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9110
SELECT DISTINCT col2 + - col1 - - - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT col2 + - col1 - - - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 80 BETWEEN + + col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 80 BETWEEN + + col0 AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT col0 - - 89 * 97 FROM tab1 AS cor0
----
8684
8718
8724

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND ( col0 )
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT ( NOT col0 * + 4 IS NOT NULL ) )
----

query I rowsort
SELECT - ( - - col2 ) * 20 AS col1 FROM tab2 cor0
----
-1160
-460
-800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9116
SELECT DISTINCT - 97 - - col2 AS col0, + col2 + - - 87 + + CAST( + col2 AS SIGNED ) + 29 AS col2 FROM tab1 AS cor0
----
-1
308
-29
252
-38
234

skipif mysql # not compatible
query II rowsort label-9116
SELECT DISTINCT - 97 - - col2 AS col0, + col2 + - - 87 + + CAST ( + col2 AS INTEGER ) + 29 AS col2 FROM tab1 AS cor0
----
-1
308
-29
252
-38
234

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - 47 )
----

query I rowsort
SELECT 7 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 88 * - col0 AS col1 FROM tab0
----
-1320
-7656
-8536

query I rowsort
SELECT ALL - col0 * - - col2 + - col2 + + 74 - - + col2 FROM tab1 AS cor0
----
-4822
-4941
-6114

query I rowsort
SELECT ALL - 98 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL AND + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - 74 ) col0 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT DISTINCT SUM( - 87 ) AS col1 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT SUM ( - 87 ) AS col1 FROM tab2 AS cor0
----
-261

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col1 * + 80 AS col1 FROM tab0
----
1680
6480
80

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 5 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT DISTINCT 51 * - + COUNT( * ) * 25 * - + 67 AS col0 FROM tab0 AS cor0
----
256275

skipif mysql # not compatible
query I rowsort label-9128
SELECT DISTINCT 51 * - + COUNT ( * ) * 25 * - + 67 AS col0 FROM tab0 AS cor0
----
256275

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT - - COUNT( * ) * ( 79 ) AS col2 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - - COUNT ( * ) * ( 79 ) AS col2 FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query II rowsort label-9130
SELECT + - COUNT( ALL + 82 ) AS col1, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9130
SELECT + - COUNT ( ALL + 82 ) AS col1, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 74 IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT MIN( + col2 ) col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9132
SELECT MIN ( + col2 ) col0 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9133
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 34 * col1 IN ( + CAST( + + col1 AS SIGNED ) / - - 19 * col2 )
----

skipif mysql # not compatible
query III rowsort label-9133
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 34 * col1 IN ( + CAST ( + + col1 AS INTEGER ) / - - 19 * col2 )
----

query II rowsort
SELECT ALL - ( + 94 ), 19 * + 35 * - + col0 AS col2 FROM tab1 cor0
----
-94
-33915
-94
-56525
-94
-60515

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT ALL - 10, + COUNT( * ) AS col2 FROM tab1
----
-10
3

skipif mysql # not compatible
query II rowsort label-9135
SELECT ALL - 10, + COUNT ( * ) AS col2 FROM tab1
----
-10
3

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT SUM( + + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT SUM ( + + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - col1 * col1 + col2 AS col0 FROM tab1
----
-100
-2141
34

query II rowsort
SELECT ALL - 56 AS col0, 86 AS col1 FROM tab2
----
-56
86
-56
86
-56
86

query II rowsort
SELECT col2, - col2 + + col2 FROM tab2
----
23
0
40
0
58
0

query I rowsort
SELECT ALL 83 + - 56 AS col1 FROM tab2
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9142
SELECT + col1 - 5 + CAST( 99 AS SIGNED ) DIV + 40 FROM tab0 AS cor0
----
-2
18
78

skipif mysql # not compatible
query I rowsort label-9142
SELECT + col1 - 5 + CAST ( 99 AS INTEGER ) / + 40 FROM tab0 AS cor0
----
-2
18
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT DISTINCT col2 * - col0 * 64 + - 28 + col2 - + col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT col2 * - col0 * 64 + - 28 + col2 - + col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - + 49 * - - col0 + - col1 FROM tab1 cor0
----
-2513
-4170
-4506

query II rowsort
SELECT DISTINCT + 86 AS col2, - col2 FROM tab1 AS cor0
----
86
-59
86
-68
86
-96

query I rowsort
SELECT + col1 * - 67 + + ( - col0 ) + col1 + - col1 * - col1 FROM tab1 AS cor0
----
-390
-779
-984

query I rowsort
SELECT DISTINCT - col1 * + + col1 - + 95 + col0 FROM tab1 AS cor0
----
-2213
-240
-35

query I rowsort
SELECT - - col1 + col2 FROM tab0 WHERE ( - 5 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL - CAST( - - col2 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + + col0 IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT - CAST( NULL AS SIGNED ) / + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT - CAST ( NULL AS INTEGER ) / + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT CAST( - 69 AS SIGNED ) AS col0 FROM tab2
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-9151
SELECT CAST ( - 69 AS INTEGER ) AS col0 FROM tab2
----
-69
-69
-69

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 13 + - + col0 * - - col0 * + 81 IS NOT NULL
----

query I rowsort
SELECT ALL 2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2
2
2

query II rowsort
SELECT - col0 + col1 * + - 19 AS col0, 33 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT COUNT( * ) * - ( 65 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9155
SELECT COUNT ( * ) * - ( 65 ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 72, - ( + col0 ), + 87 * 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT COUNT( - + 68 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT COUNT ( - + 68 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT - col0, col0 AS col1 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab0 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + COUNT( - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9160
SELECT + COUNT ( - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9161
SELECT ALL * FROM tab2 WHERE NOT col0 * + - CAST( + - col1 AS SIGNED ) BETWEEN NULL AND - col0 - - col2 * + - 85 OR NOT + 10 <> + col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9161
SELECT ALL * FROM tab2 WHERE NOT col0 * + - CAST ( + - col1 AS INTEGER ) BETWEEN NULL AND - col0 - - col2 * + - 85 OR NOT + 10 <> + col1 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + + 50 * - 46 FROM tab0
----
200100
223100
34500

query I rowsort
SELECT DISTINCT - 56 + - col1 FROM tab1
----
-103
-61
-70

query I rowsort
SELECT ALL - col0 * - ( + 69 ) AS col2 FROM tab2
----
3174
4416
5175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9165
SELECT AVG ( + 70 ) * 15 FROM tab0 WHERE + col2 - + 24 - + col0 * + - col1 IN ( - col2 + ( - - col2 ) + + col1 - - CAST( NULL AS SIGNED ) * + 24 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9165
SELECT AVG ( + 70 ) * 15 FROM tab0 WHERE + col2 - + 24 - + col0 * + - col1 IN ( - col2 + ( - - col2 ) + + col1 - - CAST ( NULL AS INTEGER ) * + 24 * col1 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - + col1 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT + col2 * - - col1 + 6 + col1 + + 3, 20 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9168
SELECT ALL - col0 + col1 DIV + col0 AS col1 FROM tab0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - col0 + col1 / + col0 AS col1 FROM tab0
----
-10
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9169
SELECT ALL + SUM( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + SUM ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + + col2 * + - 20 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT DISTINCT - 63 DIV COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - 63 / COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 <= - + ( col1 ) * + 89
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9173
SELECT ALL - ( + 63 ) + + - 61 AS col1, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-124
3

skipif mysql # not compatible
query II rowsort label-9173
SELECT ALL - ( + 63 ) + + - 61 AS col1, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-124
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT ALL - col1 DIV - + col1 + - col1 + - col0 col2 FROM tab2 AS cor0
----
-140
-141
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9174
SELECT ALL - col1 / - + col1 + - col1 + - col0 col2 FROM tab2 AS cor0
----
-140
-141
-96

query I rowsort
SELECT DISTINCT + col0 * + - 99 FROM tab0 AS cor0
----
-1485
-8613
-9603

query I rowsort
SELECT DISTINCT - 57 * col0 * + ( 45 ) + + col1 - - col0 + + + col1 * + - 6 * - col2 FROM tab0 AS cor0
----
-15537
-221787
-248113

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 40 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - col1 col0 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( - - ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL + + COUNT( DISTINCT - 99 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + + COUNT ( DISTINCT - 99 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + col0 * - ( + col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT DISTINCT col1 DIV - 87 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT col1 / - 87 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL 84 * SUM( - 62 ) AS col1 FROM tab0
----
-15624

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL 84 * SUM ( - 62 ) AS col1 FROM tab0
----
-15624

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL > - - col2
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL > - - col2
----
0

query II rowsort
SELECT ALL 78 + - 4 * + 27, + col1 AS col0 FROM tab2 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9186
SELECT col2 DIV + - col2, col2 AS col0 FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-9186
SELECT col2 / + - col2, col2 AS col0 FROM tab2
----
-1
23
-1
40
-1
58

query II rowsort
SELECT - col2 AS col0, - 18 - + col0 FROM tab0 AS cor0
----
-10
-105
-47
-33
-99
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE col0 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 71 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT DISTINCT + MIN( 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT + MIN ( 68 ) FROM tab1 AS cor0
----
68

query I rowsort
SELECT + - ( - 2 ) FROM tab0 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9193
SELECT DISTINCT - + COUNT( - col1 ) AS col2, 13 * + 73 FROM tab0 cor0
----
-3
949

skipif mysql # not compatible
query II rowsort label-9193
SELECT DISTINCT - + COUNT ( - col1 ) AS col2, 13 * + 73 FROM tab0 cor0
----
-3
949

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT + + SUM( ALL - col2 ) * 89 FROM tab2 AS cor0
----
-10769

skipif mysql # not compatible
query I rowsort label-9194
SELECT + + SUM ( ALL - col2 ) * 89 FROM tab2 AS cor0
----
-10769

query I rowsort
SELECT DISTINCT + 41 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * 44 + - - 42 < + 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 54 AS col0 FROM tab2 cor0
----
-54
-54
-54

query I rowsort
SELECT + 74 AS col2 FROM tab1 WHERE NULL BETWEEN ( + 60 - col1 ) AND NULL
----

query I rowsort
SELECT ALL - 27 + - + 97 AS col2 FROM tab0
----
-124
-124
-124

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * - 97 < + + 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9201
SELECT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL - + SUM( DISTINCT + 8 ) AS col0 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL - + SUM ( DISTINCT + 8 ) AS col0 FROM tab0 AS cor0
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9203
SELECT DISTINCT - + 76 AS col2 FROM tab0 AS cor0 WHERE col2 <= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT - + 76 AS col2 FROM tab0 AS cor0 WHERE col2 <= + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL 75 * + MIN( - 40 ) FROM tab1
----
-3000

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL 75 * + MIN ( - 40 ) FROM tab1
----
-3000

query I rowsort
SELECT DISTINCT col2 * col0 * - 39 AS col1 FROM tab1
----
-190944
-195585
-241332

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = + 3 + + + 85
----

query I rowsort
SELECT ALL col0 + + ( - - col2 ) AS col1 FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9208
SELECT CAST( + col0 AS SIGNED ) * 27 - + col2 DIV + col1 AS col0 FROM tab2
----
1242
1728
2025

skipif mysql # not compatible
query I rowsort label-9208
SELECT CAST ( + col0 AS INTEGER ) * 27 - + col2 / + col1 AS col0 FROM tab2
----
1242
1728
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT - ( + - COUNT( * ) ) * + - 46 - + COUNT( * ) - + COUNT( * ) col2 FROM tab0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9209
SELECT - ( + - COUNT ( * ) ) * + - 46 - + COUNT ( * ) - + COUNT ( * ) col2 FROM tab0
----
-144

query I rowsort
SELECT + 83 + - 47 FROM tab2 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + col2 - + - 93 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT + MIN( + - col1 ) FROM tab1 AS cor0 WHERE ( - + ( + col1 ) ) > col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT + MIN ( + - col1 ) FROM tab1 AS cor0 WHERE ( - + ( + col1 ) ) > col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT ALL - - ( + - ( - col0 ) ) - + col2 * + - 52 * - 73 * - col2 + col1 + - 80 DIV col1 AS col2 FROM tab0 AS cor0
----
37204614
379705
8385460

skipif mysql # not compatible
query I rowsort label-9213
SELECT ALL - - ( + - ( - col0 ) ) - + col2 * + - 52 * - 73 * - col2 + col1 + - 80 / col1 AS col2 FROM tab0 AS cor0
----
37204614
379705
8385460

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL - - ( - MAX( col0 ) ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - - ( - MAX ( col0 ) ) AS col1 FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - col2 * col1 > + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > + ( - col1 ) * + ( + col2 )
----

query I rowsort
SELECT 78 * col2 + + + ( - ( + 87 ) ) + + 62 * 98 FROM tab0 AS cor0
----
13711
6769
9655

query I rowsort
SELECT - + col1 * - + 71 AS col2 FROM tab0 cor0
----
1491
5751
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col1 <= NULL
----

query II rowsort
SELECT DISTINCT - col1 * + 78 * + col2, - 76 AS col2 FROM tab0
----
-16380
-76
-296946
-76
-7722
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + + COUNT( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col2 AS col2 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT - + 9 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9223
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT - + 9 IS NOT NULL
----

query I rowsort
SELECT ALL - + 43 AS col1 FROM tab0 cor0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + - col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT COUNT( + - 41 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT COUNT ( + - 41 ) FROM tab1
----
3

query I rowsort
SELECT ALL 93 + col1 FROM tab0
----
114
174
94

query I rowsort
SELECT ALL - 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 16 < NULL
----

query II rowsort
SELECT DISTINCT 13 AS col2, col1 FROM tab1
----
13
14
13
47
13
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT DISTINCT col0 * + ( - col1 ) * col1 + - - ( + 74 ) DIV + col0 FROM tab0
----
-38367
-97
-98411

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT col0 * + ( - col1 ) * col1 + - - ( + 74 ) / + col0 FROM tab0
----
-38367
-97
-98411

query II rowsort
SELECT ALL + + 64 AS col1, col0 FROM tab2 AS cor0
----
64
46
64
64
64
75

query I rowsort
SELECT - col2 + - + ( + + col0 ) FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - 5 + - AVG ( ALL col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col2 > 15 + - 25
----
NULL

query II rowsort
SELECT + col1 AS col0, 25 * - - col2 * - + col2 FROM tab1 AS cor0
----
14
-230400
47
-115600
5
-87025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9235
SELECT - 50 DIV MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9235
SELECT - 50 / MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9236
SELECT 69, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
69
-3

skipif mysql # not compatible
query II rowsort label-9236
SELECT 69, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
69
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT DISTINCT + MAX( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + MAX ( ALL + + col1 ) AS col1 FROM tab2 AS cor0
----
77

query II rowsort
SELECT col2 * - 92, + 22 AS col1 FROM tab0
----
-4324
22
-9108
22
-920
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col0 * + + 84 AS col1, - 83 * - + col1 col0 FROM tab1
----
-35700
415
-359268
3901
-59976
1162

query III rowsort
SELECT * FROM tab0 WHERE - ( + + ( - + ( col0 ) ) ) + + - col1 IS NULL
----

query I rowsort
SELECT ALL - 67 + 65 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED ) + + ( COUNT( * ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9242
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + ( COUNT ( * ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 - + + col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 49 col2 FROM tab2
----
1127
1960
2842

onlyif mysql # DIV for integer division: 
query I rowsort label-9245
SELECT - ( col0 ) DIV col2 + - 74 + col2 col2 FROM tab2
----
-17
-35
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9245
SELECT - ( col0 ) / col2 + - 74 + col2 col2 FROM tab2
----
-17
-35
-53

query I rowsort
SELECT 14 * - + 94 AS col2 FROM tab1
----
-1316
-1316
-1316

query II rowsort
SELECT col2, + 60 AS col2 FROM tab2 AS cor0
----
23
60
40
60
58
60

query I rowsort
SELECT col1 * + - 13 FROM tab1 AS cor0
----
-182
-611
-65

query I rowsort
SELECT DISTINCT + - col0 * - 19 FROM tab0 AS cor0
----
1653
1843
285

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 + + ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - + 49 ) > col0 * - - col2
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 55 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT + MIN( ALL col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9254
SELECT + MIN ( ALL col1 ) AS col2 FROM tab0
----
1

query II rowsort
SELECT ( - col1 ) AS col2, - col2 AS col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 = - - 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col2 ) + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL - COUNT( * ) FROM tab1 WHERE - - col1 IN ( - - col1 * 34 )
----
0

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - - col1 IN ( - - col1 * 34 )
----
0

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE + col2 <= NULL
----

query I rowsort
SELECT ALL 28 + - 46 + + col2 * - - col2 * - - col1 FROM tab0 AS cor0
----
178911
2082
9783

query II rowsort
SELECT ALL + - col2 AS col0, + 82 AS col2 FROM tab2 AS cor0
----
-23
82
-40
82
-58
82

query I rowsort
SELECT DISTINCT AVG ( DISTINCT 21 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN + + col2 AND NULL )
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + 76 AS col1, - col0 FROM tab2
----
76
-46
76
-64
76
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 71 col0 FROM tab2
----
51
71
67
71
77
71

query I rowsort
SELECT DISTINCT - 1 + 81 AS col2 FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + - MIN( + + col0 ) AS col0 FROM tab1 WHERE NULL = col1 / - 99 + - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9267
SELECT + - MIN ( + + col0 ) AS col0 FROM tab1 WHERE NULL = col1 / - 99 + - - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9268
SELECT ALL + 17 AS col2, CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
17
-59
17
-68
17
-96

skipif mysql # not compatible
query II rowsort label-9268
SELECT ALL + 17 AS col2, CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
17
-59
17
-68
17
-96

query I rowsort
SELECT - col0 + - - 67 FROM tab0
----
-20
-30
52

query I rowsort
SELECT col2 * - + 59 + + col1 FROM tab0
----
-2692
-569
-5840

onlyif mysql # aggregate syntax: 
query II rowsort label-9271
SELECT ALL + 99 * - SUM( col1 ) + - + COUNT( * ) * - 52 + - - COUNT( * ) * - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2
----
-19158
3

skipif mysql # not compatible
query II rowsort label-9271
SELECT ALL + 99 * - SUM ( col1 ) + - + COUNT ( * ) * - 52 + - - COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
-19158
3

query I rowsort
SELECT + 43 + + col1 * - col2 FROM tab1
----
-1301
-252
-3153

query I rowsort
SELECT DISTINCT - 99 + + col0 FROM tab2
----
-24
-35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT + ( + MIN( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9274
SELECT + ( + MIN ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab1, tab0 cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( 23 ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE NOT ( NOT col1 IS NOT NULL )
----
59
68
96

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT DISTINCT + COUNT( + - 67 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + COUNT ( + - 67 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 84 BETWEEN NULL AND + - ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT ALL CAST( - 86 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL CAST ( - 86 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - 4 FROM tab0 cor0
----
-188
-396
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 33 NOT IN ( + + col1, ( - + col0 ) * col2 * ( - col0 ) - + col1 + - col1, - 68 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * col0 * - col2 NOT IN ( 78 - - col2 - - col1, col0 - - col0, 87 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT - ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE col2 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 91 AS col1, + col2 col0 FROM tab1
----
-91
59
-91
68
-91
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9287
SELECT - ( CAST( - - col0 AS SIGNED ) ) AS col1, col1 + col0 FROM tab0
----
-15
96
-87
108
-97
98

skipif mysql # not compatible
query II rowsort label-9287
SELECT - ( CAST ( - - col0 AS INTEGER ) ) AS col1, col1 + col0 FROM tab0
----
-15
96
-87
108
-97
98

query II rowsort
SELECT + col1 AS col0, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT - MAX( DISTINCT 55 ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-9289
SELECT - MAX ( DISTINCT 55 ) FROM tab0
----
-55

query I rowsort
SELECT DISTINCT - + col0 - - col2 AS col2 FROM tab1 WHERE 21 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT - MIN( ALL - CAST( NULL AS SIGNED ) ) * + ( + + MAX( DISTINCT 18 ) ) + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * + ( + + MAX ( DISTINCT 18 ) ) + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT ( - CAST( - - 16 AS SIGNED ) ) FROM tab0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-9292
SELECT ( - CAST ( - - 16 AS INTEGER ) ) FROM tab0
----
-16
-16
-16

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 * - col0 + + col0 * - col2 IS NULL AND - 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9294
SELECT DISTINCT ( col2 ) / col0 + - col1 FROM tab2 WHERE - col2 * - CAST( NULL AS DECIMAL ) / - col1 > + - col0
----

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT ( col2 ) / col0 + - col1 FROM tab2 WHERE - col2 * - CAST ( NULL AS REAL ) / - col1 > + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9295
SELECT DISTINCT ( - 28 ) + - col2 + + + col0 * 31 * + + 85 AS col0, col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
121159
NULL
168572
NULL
197539
NULL

skipif mysql # not compatible
query II rowsort label-9295
SELECT DISTINCT ( - 28 ) + - col2 + + + col0 * 31 * + + 85 AS col0, col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
121159
NULL
168572
NULL
197539
NULL

query I rowsort
SELECT ALL 71 * + col1 * + + 47 + col1 FROM tab1 cor0
----
156886
16690
46732

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE NOT col1 BETWEEN NULL AND - col0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT + + 57 * - COUNT( * ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-9298
SELECT + + 57 * - COUNT ( * ) FROM tab2 AS cor0
----
-171

query I rowsort
SELECT DISTINCT - - ( 57 ) FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT DISTINCT - 66 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT - 66 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 18 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL 6 + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL 6 + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 = ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9304
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT + - MIN( ALL + ( - 62 ) ) FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-9305
SELECT + - MIN ( ALL + ( - 62 ) ) FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT MIN( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT MIN ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * + 93 + col0 col0 FROM tab2 AS cor0
----
8509
8527
8538

query I rowsort
SELECT DISTINCT - col0 * + 61 - - - ( - - 76 ) FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND col1 / - col1 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT - 71 * ( + SUM( DISTINCT - + 56 ) ) AS col2 FROM tab2
----
3976

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT - 71 * ( + SUM ( DISTINCT - + 56 ) ) AS col2 FROM tab2
----
3976

query I rowsort
SELECT DISTINCT - 66 + + col1 FROM tab1
----
-19
-52
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL COUNT( * ) + - 26 * - SUM( + col2 ) FROM tab1
----
5801

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL COUNT ( * ) + - 26 * - SUM ( + col2 ) FROM tab1
----
5801

query II rowsort
SELECT ALL + - 70 AS col1, col1 AS col0 FROM tab0 WHERE + col2 + - 34 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 34 NOT IN ( + + col1 * + col0 - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col0 - col2 - - + col2, + 92 AS col1 FROM tab2 cor0
----
-46
92
-64
92
-75
92

query I rowsort
SELECT + + 98 + col2 FROM tab0 AS cor0
----
108
145
197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL - COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 15 + + 5 - col0 + - 12 - + ( - - 2 ) * col0 FROM tab2 WHERE + col0 + - col0 IS NOT NULL
----
-130
-184
-217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT - CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9319
SELECT - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT - col0 AS col0, ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT MIN( col0 ) DIV - 81 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9321
SELECT MIN ( col0 ) / - 81 FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + 46 AS col1, + 4 * + + col1 AS col0 FROM tab1 cor0
----
46
188
46
20
46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT + - COUNT( ALL col1 ) FROM tab1 AS cor0 WHERE + col2 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + - COUNT ( ALL col1 ) FROM tab1 AS cor0 WHERE + col2 < - col2
----
0

query I rowsort
SELECT + + ( + - col0 ) / - - col1 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - col1 ) col0, + 99 col1 FROM tab1
----
-14
99
-47
99
-5
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL + CAST( NULL AS SIGNED ) + + MAX( DISTINCT - col0 ) AS col1 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + CAST ( NULL AS INTEGER ) + + MAX ( DISTINCT - col0 ) AS col1 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND col0
----
NULL

query I rowsort
SELECT + 18 + - 3 + col1 AS col2 FROM tab0
----
16
36
96

query I rowsort
SELECT ALL + col1 + + + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT + - 24 + - col2 FROM tab0 AS cor0
----
-123
-34
-71

query I rowsort
SELECT ALL - - 48 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
48
48
48

query II rowsort
SELECT col1 AS col2, + col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL + COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL + COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + - 84 - 87 FROM tab2 AS cor0
----
-171
-171
-171

query I rowsort
SELECT DISTINCT + - col1 + + col1 * col1 FROM tab0 AS cor0
----
0
420
6480

query I rowsort
SELECT ALL - 95 + - col0 FROM tab2 AS cor0
----
-141
-159
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9338
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT + MIN( 5 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT + MIN ( 5 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT + COUNT( * ) + 40 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9341
SELECT + COUNT ( * ) + 40 FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT - col2 * + ( + - col2 ) AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT ALL - COUNT( * ) * + 40 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - COUNT ( * ) * + 40 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT + COUNT( * ) + - + 94 AS col0 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-9344
SELECT + COUNT ( * ) + - + 94 AS col0 FROM tab2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1
----
9

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL - MIN( ALL + col1 ) + + - 35 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - MIN ( ALL + col1 ) + + - 35 FROM tab2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9348
SELECT + col0 DIV - + 94 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9348
SELECT + col0 / - + 94 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9349
SELECT 26 AS col2, COUNT( * ) FROM tab1
----
26
3

skipif mysql # not compatible
query II rowsort label-9349
SELECT 26 AS col2, COUNT ( * ) FROM tab1
----
26
3

query I rowsort
SELECT + 27 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT + MIN( ALL - 64 ) col2 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9352
SELECT DISTINCT + MIN ( ALL - 64 ) col2 FROM tab1 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT + 39 - COUNT( * ) FROM tab2, tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9353
SELECT + 39 - COUNT ( * ) FROM tab2, tab0 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + - - 11 col0 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9354
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + - - 11 col0 FROM tab0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT + - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - col1, col2, + col1, ( - 12 ), col0 + + - col2 - 85 * + CAST( + col0 AS SIGNED ), + 78 * - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-9355
SELECT + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - col1, col2, + col1, ( - 12 ), col0 + + - col2 - 85 * + CAST ( + col0 AS INTEGER ), + 78 * - 37 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT DISTINCT ( - col1 ) / + col0 + + + col2 * + - 26 * + + CAST( NULL AS SIGNED ) + - - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT ( - col1 ) / + col0 + + + col2 * + - 26 * + + CAST ( NULL AS INTEGER ) + - - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT + MIN( ALL col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9358
SELECT DISTINCT + MIN ( ALL col1 ) col2 FROM tab1
----
5

query I rowsort
SELECT + 52 AS col1 FROM tab2 WHERE NOT - col2 / - 26 IS NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9360
SELECT ALL - + ( + + 7 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
-7
3

skipif mysql # not compatible
query II rowsort label-9360
SELECT ALL - + ( + + 7 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT + MAX( DISTINCT + 93 ) + 79 FROM tab0 cor0
----
172

skipif mysql # not compatible
query I rowsort label-9361
SELECT + MAX ( DISTINCT + 93 ) + 79 FROM tab0 cor0
----
172

query I rowsort
SELECT - 53 * + 80 + col1 AS col0 FROM tab1
----
-4193
-4226
-4235

query I rowsort
SELECT - - col2 * + col1 + + + col1 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 < - - 1 * - ( - 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL COUNT( * ) - + SUM( ALL - - 91 ) FROM tab2 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL COUNT ( * ) - + SUM ( ALL - - 91 ) FROM tab2 AS cor0
----
-270

query I rowsort
SELECT DISTINCT + - col1 - ( col0 ) * + - 24 AS col1 FROM tab1 AS cor0
----
1210
2035
2137

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT 8 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL + COUNT( * ) * + ( SUM( ALL - 50 ) ) * - 65 FROM tab0
----
29250

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL + COUNT ( * ) * + ( SUM ( ALL - 50 ) ) * - 65 FROM tab0
----
29250

query I rowsort
SELECT col1 - - 79 AS col0 FROM tab0
----
100
160
80

query I rowsort
SELECT + 46 - - 75 FROM tab2
----
121
121
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT - SUM( DISTINCT - ( col0 ) ) * - + COUNT( * ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - SUM ( DISTINCT - ( col0 ) ) * - + COUNT ( * ) AS col0 FROM tab2
----
-555

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 = 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 48 AS col0, col2 AS col0 FROM tab0
----
48
10
48
47
48
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT DISTINCT - MIN( DISTINCT - 96 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT - MIN ( DISTINCT - 96 ) FROM tab0
----
96

query II rowsort
SELECT + + col1, 89 + ( col0 ) AS col0 FROM tab0 AS cor0
----
1
186
21
176
81
104

query II rowsort
SELECT 33 AS col2, col0 + 36 AS col0 FROM tab1 AS cor0
----
33
121
33
127
33
87

query I rowsort
SELECT DISTINCT + 1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL 93 * + COUNT( * ) col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9378
SELECT ALL 93 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
279

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN ( - 9 ) + 31 + - col1 + + col0 AND col2 * 93
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT + 35 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT + 35 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9383
SELECT + COUNT( DISTINCT + col0 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-9383
SELECT + COUNT ( DISTINCT + col0 ), COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9384
SELECT 20 * + col1 + - col1 + + 95 DIV 84 - - col1 AS col0 FROM tab1 AS cor0
----
101
281
941

skipif mysql # not compatible
query I rowsort label-9384
SELECT 20 * + col1 + - col1 + + 95 / 84 - - col1 AS col0 FROM tab1 AS cor0
----
101
281
941

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - COUNT( ALL - 3 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9385
SELECT - COUNT ( ALL - 3 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 80 * col1 FROM tab0 AS cor0
----
1680
6480
80

query I rowsort
SELECT ALL + col2 * + col0 + + + 63 FROM tab1 cor0
----
4959
5078
6251

query I rowsort
SELECT DISTINCT + col2 * + ( + 66 ) FROM tab1 AS cor0
----
3894
4488
6336

query I rowsort
SELECT - + col0 AS col2 FROM tab1 cor0 WHERE NOT 1 * + col2 + + col1 >= NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - 56 + - 24 FROM tab2
----
-80
-80
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT 41 + + MAX( ALL + + col1 ) FROM tab0
----
122

skipif mysql # not compatible
query I rowsort label-9393
SELECT 41 + + MAX ( ALL + + col1 ) FROM tab0
----
122

query I rowsort
SELECT col0 * + + 15 + + + 2 + - + col0 AS col1 FROM tab2 AS cor0
----
1052
646
898

query I rowsort
SELECT DISTINCT col2 + + 37 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + 72 * ( - ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-1008
-3384
-360

query I rowsort
SELECT DISTINCT + - 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT DISTINCT 45 + 4 + - COUNT( * ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-9398
SELECT DISTINCT 45 + 4 + - COUNT ( * ) FROM tab1
----
46

query III rowsort
SELECT * FROM tab2 WHERE - 61 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE - col2 * col1 + + - col2 + + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE - col2 * col1 + + - col2 + + - col1 IS NOT NULL
----
-3

query I rowsort
SELECT ALL col2 + - - 33 + col0 * + col2 FROM tab0
----
785
913
9735

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL COUNT( * ) - - 74 AS col1 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL COUNT ( * ) - - 74 AS col1 FROM tab1 AS cor0
----
77

query I rowsort
SELECT col0 * - 46 * - + 29 FROM tab2
----
100050
61364
85376

query I rowsort
SELECT DISTINCT + AVG ( + col2 ) * - 0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9405
SELECT DISTINCT col0 DIV + ( ( - col1 ) ) AS col2 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT col0 / + ( ( - col1 ) ) AS col2 FROM tab0 cor0
----
-4
-97
0

query I rowsort
SELECT ALL 63 * 81 AS col1 FROM tab2
----
5103
5103
5103

query I rowsort
SELECT + 45 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL - ( 0 ) FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 38 <= - - col1 + - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT ALL + MAX( - CAST( NULL AS SIGNED ) ) / + - 19 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + MAX ( - CAST ( NULL AS INTEGER ) ) / + - 19 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT + COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9411
SELECT + COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT + 43 * COUNT( * ) FROM tab2 cor0
----
129

skipif mysql # not compatible
query I rowsort label-9412
SELECT DISTINCT + 43 * COUNT ( * ) FROM tab2 cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT - col0 / + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9413
SELECT - col0 / + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT ALL - + 40 DIV - 96 col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9414
SELECT ALL - + 40 / - 96 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT 95 * - col2 - - CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
-4450
-863
-9308

skipif mysql # not compatible
query I rowsort label-9415
SELECT 95 * - col2 - - CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
-4450
-863
-9308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT 29 + 55 * col2 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT 29 + 55 * col2 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL + COUNT( - 95 ) * 16 + + + 49 + + COUNT( * ) AS col0 FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL + COUNT ( - 95 ) * 16 + + + 49 + + COUNT ( * ) AS col0 FROM tab2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT - SUM( DISTINCT - ( - 14 ) ) col0 FROM tab0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9418
SELECT - SUM ( DISTINCT - ( - 14 ) ) col0 FROM tab0 WHERE NULL = NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 * col0 >= + + col0 * col1
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9420
SELECT ALL 67 + col1 + + + col2 DIV + + col2 FROM tab1
----
115
73
82

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL 67 + col1 + + + col2 / + + col2 FROM tab1
----
115
73
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 + + col0 col2 FROM tab0
----
-7
-79
3

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE col1 <> + + col0 + - + col1
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9423
SELECT DISTINCT 54 DIV + CAST( + col2 AS SIGNED ) AS col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT 54 / + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9424
SELECT ALL col0 DIV ( + 85 ) + - col0 AS col1 FROM tab0 AS cor0
----
-15
-86
-96

skipif mysql # not compatible
query I rowsort label-9424
SELECT ALL col0 / ( + 85 ) + - col0 AS col1 FROM tab0 AS cor0
----
-15
-86
-96

query I rowsort
SELECT - col1 - + 47 + - - col0 AS col1 FROM tab0 cor0
----
-113
19
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9426
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + + MAX( - 81 ) / + + 97 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + MAX ( - 81 ) / + + 97 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 * - 49 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-66

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - 98 * - 20 + + + col1 * col2 * - col1 IS NULL
----
15
87
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE - + 0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9431
SELECT - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9432
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 23 * + col0 AS col1 FROM tab0 AS cor0
----
-2001
-2231
-345

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 50 NOT BETWEEN + 53 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL + - CAST( + + COUNT( * ) AS SIGNED ) - + 9 * + - 54 AS col1 FROM tab2 AS cor0
----
483

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL + - CAST ( + + COUNT ( * ) AS INTEGER ) - + 9 * + - 54 AS col1 FROM tab2 AS cor0
----
483

onlyif mysql # DIV for integer division: 
query II rowsort label-9437
SELECT - 93 col2, + col0 * col0 DIV col2 + col1 AS col2 FROM tab1 AS cor0
----
-93
127
-93
168
-93
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9437
SELECT - 93 col2, + col0 * col0 / col2 + col1 AS col2 FROM tab1 AS cor0
----
-93
127
-93
168
-93
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 21 * + - col0 * + 76 * + - col1 / - col1 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 53 - 66 * col2 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
-3841
-4435
-6283

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT + MIN( DISTINCT 4 ) AS col2 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9441
SELECT + MIN ( DISTINCT 4 ) AS col2 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL - SUM( + 92 ) col0 FROM tab1
----
-276

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9442
SELECT ALL - SUM ( + 92 ) col0 FROM tab1
----
-276

query I rowsort
SELECT + 26 * + - col1 * + col2 * + col1 AS col0 FROM tab2
----
-1555398
-6166160
-6769412

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL MAX( DISTINCT + - 22 ) AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL MAX ( DISTINCT + - 22 ) AS col1 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-9445
SELECT DISTINCT 98 AS col0, COUNT( * ) * + COUNT( * ) FROM tab2
----
98
9

skipif mysql # not compatible
query II rowsort label-9445
SELECT DISTINCT 98 AS col0, COUNT ( * ) * + COUNT ( * ) FROM tab2
----
98
9

query I rowsort
SELECT + col0 * col2 * - - ( + col0 ) FROM tab0
----
10575
75690
931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 85 * + + 44 col0 FROM tab1 AS cor0
----
190740
317900
340340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - 24, - CAST( - + 54 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - 24, - CAST ( - + 54 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT COUNT( + - 34 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9449
SELECT COUNT ( + - 34 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT 47 * - COUNT( * ) AS col2 FROM tab2
----
-141

skipif mysql # not compatible
query I rowsort label-9450
SELECT 47 * - COUNT ( * ) AS col2 FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL + + MAX( ALL ( col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + + MAX ( ALL ( col2 ) ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN - col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9453
SELECT * FROM tab2 AS cor0 WHERE 86 * - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9453
SELECT * FROM tab2 AS cor0 WHERE 86 * - CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT ( + + 65 ) * - COUNT( * ) * + 82 AS col1 FROM tab0 cor0
----
-15990

skipif mysql # not compatible
query I rowsort label-9454
SELECT ( + + 65 ) * - COUNT ( * ) * + 82 AS col1 FROM tab0 cor0
----
-15990

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1 WHERE NOT + col1 * - col0 = - + col0
----
47

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE + 92 BETWEEN NULL AND - - col0
----

query II rowsort
SELECT ALL + col2, - col2 AS col0 FROM tab0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT + col0 + 64 + 83 + + 63 AS col2 FROM tab1
----
261
295
301

query I rowsort
SELECT 41 + - col0 - + - col0 AS col1 FROM tab2
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9460
SELECT + CAST( NULL AS SIGNED ) + - 15 / + + 83 + - - col0, 76 * + col1 AS col1 FROM tab1
----
NULL
1064
NULL
3572
NULL
380

skipif mysql # not compatible
query II rowsort label-9460
SELECT + CAST ( NULL AS INTEGER ) + - 15 / + + 83 + - - col0, 76 * + col1 AS col1 FROM tab1
----
NULL
1064
NULL
3572
NULL
380

query I rowsort
SELECT col2 * col0 + + ( col1 ) AS col0 FROM tab2
----
1109
2637
4417

onlyif mysql # DIV for integer division: 
query II rowsort label-9462
SELECT ALL + - col1, - 52 + - - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-51
-52
-67
-51
-77
-52

skipif mysql # not compatible
query II rowsort label-9462
SELECT ALL + - col1, - 52 + - - col0 / col1 AS col2 FROM tab2 AS cor0
----
-51
-52
-67
-51
-77
-52

query I rowsort
SELECT - col2 - - 67 AS col1 FROM tab2 AS cor0
----
27
44
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9464
SELECT ( - MAX( - col1 ) ) DIV + COUNT( * ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9464
SELECT ( - MAX ( - col1 ) ) / + COUNT ( * ) FROM tab2
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9465
SELECT DISTINCT - col1 DIV - CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT - col1 / - CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col2 FROM tab1 WHERE ( 63 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL 71 * - ( + ( COUNT( ALL col1 ) ) ) + - 26 col0 FROM tab1
----
-239

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT ALL 71 * - ( + ( COUNT ( ALL col1 ) ) ) + - 26 col0 FROM tab1
----
-239

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 - 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT SUM( 11 ) + + COUNT( * ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT SUM ( 11 ) + + COUNT ( * ) FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9470
SELECT + col1 DIV 50 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9470
SELECT + col1 / 50 AS col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9471
SELECT + 0 + col0 FROM tab0 WHERE NOT ( col2 + + col0 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9471
SELECT + 0 + col0 FROM tab0 WHERE NOT ( col2 + + col0 * CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT DISTINCT + COUNT( * ) + 3 AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + COUNT ( * ) + 3 AS col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT DISTINCT 83 DIV col2 + col1 FROM tab2
----
54
68
79

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT 83 / col2 + col1 FROM tab2
----
54
68
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 AND - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 + col0 ) = ( 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 12 + + col1 AS col0 FROM tab0
----
1053
13
273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * - col0 - col0 <> + 56 + col0
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL <> ( - ( ( col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9479
SELECT * FROM tab1 WHERE NOT ( - 14 / CAST( NULL AS SIGNED ) ) BETWEEN 65 + 16 AND + 7
----

skipif mysql # not compatible
query III rowsort label-9479
SELECT * FROM tab1 WHERE NOT ( - 14 / CAST ( NULL AS INTEGER ) ) BETWEEN 65 + 16 AND + 7
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9480
SELECT - 42 - 17 DIV + SUM( col2 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9480
SELECT - 42 - 17 / + SUM ( col2 ) FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT - COUNT( 41 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - COUNT ( 41 ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT + 31 - COUNT( * ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 31 - COUNT ( * ) AS col2 FROM tab1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( 51 + + col1 ) col1 FROM tab0
----
213
53
93

query I rowsort
SELECT - 32 + - 88 FROM tab2
----
-120
-120
-120

query III rowsort
SELECT * FROM tab0 WHERE NOT + 58 IS NOT NULL
----

query I rowsort
SELECT 25 * col2 + - 55 AS col2 FROM tab1 WHERE ( + col0 + col0 ) BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 45 ) col1 FROM tab2
----
45

query I rowsort
SELECT ALL + 59 * col2 + col1 FROM tab2
----
1408
2437
3489

query I rowsort
SELECT col2 * col0 AS col1 FROM tab0 WHERE NOT + col1 IS NULL
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + 0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9492
SELECT ALL 29 DIV 61 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL 29 / 61 + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT ALL + COUNT( - CAST( - col2 AS SIGNED ) ) + - 75 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + COUNT ( - CAST ( - col2 AS INTEGER ) ) + - 75 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT ( - MAX( DISTINCT - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT ( - MAX ( DISTINCT - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + ( 78 ) AS col1 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT DISTINCT - ( - MIN( - CAST( col0 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT - ( - MIN ( - CAST ( col0 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL - COUNT( * ) + COUNT( * ) * 48 AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL - COUNT ( * ) + COUNT ( * ) * 48 AS col0 FROM tab1
----
141

query I rowsort
SELECT DISTINCT - 35 FROM tab2 AS cor0 WHERE NOT - 90 = + col1 - col0 * ( 8 * + col1 )
----
-35

query I rowsort
SELECT - + col2 * + 8 FROM tab1 AS cor0
----
-472
-544
-768

query I rowsort
SELECT + col1 * ( col2 + col2 * 52 ) AS col2 FROM tab2 AS cor0
----
163240
205958
62169

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT 17 * COUNT( * ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9502
SELECT 17 * COUNT ( * ) col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col2 * + ( - 5 + - ( col2 ) ) FROM tab1 AS cor0
----
-3776
-4964
-9696

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - + COUNT( - ( + col0 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9504
SELECT - + COUNT ( - ( + col0 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - 53 * + col2 FROM tab1 cor0
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT ALL COUNT( * ) DIV - 62 + - COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL COUNT ( * ) / - 62 + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - COUNT( * ) * - 79 AS col2 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-9507
SELECT - COUNT ( * ) * - 79 AS col2 FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT - col2 - + ( CAST( - col2 AS SIGNED ) ) FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9508
SELECT - col2 - + ( CAST ( - col2 AS INTEGER ) ) FROM tab2 WHERE + col0 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * + col2 col2 FROM tab0
----
-3431
-7227
-730

query III rowsort
SELECT * FROM tab1 WHERE - col0 + 39 = - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT 77 * + 7 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT 77 * + 7 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 61 * + - ( col2 ) * col2 FROM tab2
----
-205204
-32269
-97600

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL + SUM( + ( 80 ) ) AS col0 FROM tab0 WHERE NULL <> ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + SUM ( + ( 80 ) ) AS col0 FROM tab0 WHERE NULL <> ( col0 )
----
NULL

query I rowsort
SELECT ALL - col1 + - + 60 FROM tab0
----
-141
-61
-81

query III rowsort
SELECT * FROM tab0 WHERE 15 / + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE ( + col2 ) IN ( 93 * + 87 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9516
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE ( + col2 ) IN ( 93 * + 87 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 73 ) NOT IN ( 8 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + COUNT( * ) - + 58 AS col1 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-9518
SELECT + COUNT ( * ) - + 58 AS col1 FROM tab1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9519
SELECT + + 97 * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT + + 97 * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col2 ) * + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT - 95 DIV + - 82 + + col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-9521
SELECT - 95 / + - 82 + + col1 FROM tab1 AS cor0
----
15
48
6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < ( col2 - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT - AVG ( ALL - 3 ) + + CAST( NULL AS SIGNED ) * SUM( ALL - 22 / col2 ) FROM tab2 WHERE NOT ( NOT ( - col1 ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT - AVG ( ALL - 3 ) + + CAST ( NULL AS INTEGER ) * SUM ( ALL - 22 / col2 ) FROM tab2 WHERE NOT ( NOT ( - col1 ) IS NOT NULL )
----
NULL

query I rowsort
SELECT col0 * + - 60 FROM tab2
----
-2760
-3840
-4500

query II rowsort
SELECT + 99 AS col1, col0 - 8 + + 64 AS col2 FROM tab0
----
99
143
99
153
99
71

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 cor0 WHERE + col0 >= + + col2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT + 53 DIV - - col2 AS col2 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9527
SELECT + 53 / - - col2 AS col2 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ALL - MAX( - - 38 ) AS col0 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL - MAX ( - - 38 ) AS col0 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT DISTINCT 91 * - 26 FROM tab1 AS cor0
----
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT ALL COUNT( col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL COUNT ( col0 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9531
SELECT CAST( + 47 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-9531
SELECT CAST ( + 47 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0 AS cor0 WHERE ( 85 ) > col1
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - ( + MAX( DISTINCT - 36 ) ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-9533
SELECT - ( + MAX ( DISTINCT - 36 ) ) FROM tab1 AS cor0
----
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col2 + col0 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9535
SELECT ALL col2 DIV col2 AS col0, + 84 FROM tab1
----
1
84
1
84
1
84

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL col2 / col2 AS col0, + 84 FROM tab1
----
1
84
1
84
1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + MIN( - + 70 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + MIN ( - + 70 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT + 80 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-9537
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT + 80 IS NULL
----
-6

query I rowsort
SELECT ALL 50 AS col2 FROM tab2 WHERE NOT + - 44 BETWEEN - 51 + col0 AND NULL
----
50
50
50

query I rowsort
SELECT 76 * + ( - + col1 ) AS col2 FROM tab2
----
-3876
-5092
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT - ( - - SUM( DISTINCT - col2 ) ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9540
SELECT - ( - - SUM ( DISTINCT - col2 ) ) AS col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT + 42 * + 26 - + 44 + + 19 * COUNT( * ) FROM tab0 AS cor0
----
1105

skipif mysql # not compatible
query I rowsort label-9541
SELECT + 42 * + 26 - + 44 + + 19 * COUNT ( * ) FROM tab0 AS cor0
----
1105

query I rowsort
SELECT 85 + - + 74 + - col2 AS col2 FROM tab2 AS cor0
----
-12
-29
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT ALL - - COUNT( - 47 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL - - COUNT ( - 47 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= ( - + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 * + - col1 * - 52 > ( + 89 + + col0 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9546
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - CAST( 82 AS SIGNED ) <> NULL )
----

skipif mysql # not compatible
query III rowsort label-9546
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - CAST ( 82 AS INTEGER ) <> NULL )
----

query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab0 AS cor0 WHERE ( 15 + 5 > NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 43 > - col0 + 73 - - col1 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col1 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9550
SELECT + 10, 12 DIV + col0 AS col1 FROM tab2
----
10
0
10
0
10
0

skipif mysql # not compatible
query II rowsort label-9550
SELECT + 10, 12 / + col0 AS col1 FROM tab2
----
10
0
10
0
10
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + MAX( ALL + 91 ) * 56 + 45 AS col2 FROM tab0
----
5141

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + MAX ( ALL + 91 ) * 56 + 45 AS col2 FROM tab0
----
5141

query I rowsort
SELECT ALL - 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9553
SELECT DISTINCT CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 71 + + col2 + - col2 * + 42 FROM tab2
----
-1569
-2307
-872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 AS cor0 WHERE col2 = - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT ALL COUNT( ALL col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL COUNT ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + col0 * - - col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9559
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL AND NOT - + CAST( - 41 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9559
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL AND NOT - + CAST ( - 41 AS INTEGER ) < NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - + col0 / + + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < ( - col1 ) * - col1
----

query I rowsort
SELECT ALL + - ( - - 38 ) + - - col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT + MIN( ALL + - col1 ) * 63 - + 49 + + 68 FROM tab2
----
-4832

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT + MIN ( ALL + - col1 ) * 63 - + 49 + + 68 FROM tab2
----
-4832

query I rowsort
SELECT - col1 + + - col2 * - col0 FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9565
SELECT DISTINCT - 30 * + - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT - 30 * + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 50 * - col2 * - col2 + - ( + - 43 ) AS col0 FROM tab1
----
174093
231243
460843

query I rowsort
SELECT ALL + col2 + + ( + col2 ) AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + 94 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL col2 + 87 AS col2 FROM tab0
----
134
186
97

query I rowsort
SELECT + - col2 * + - 87 AS col1 FROM tab0 AS cor0
----
4089
8613
870

query I rowsort
SELECT DISTINCT + col0 * + 69 FROM tab1
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT - + MIN( ALL - col0 ) * - 65 AS col2 FROM tab0 AS cor0
----
-6305

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT - + MIN ( ALL - col0 ) * - 65 AS col2 FROM tab0 AS cor0
----
-6305

onlyif mysql # DIV for integer division: 
query II rowsort label-9573
SELECT ALL - 77 DIV - + col0 col2, + 15 AS col2 FROM tab2 AS cor0
----
1
15
1
15
1
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9573
SELECT ALL - 77 / - + col0 col2, + 15 AS col2 FROM tab2 AS cor0
----
1
15
1
15
1
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9574
SELECT DISTINCT - + MAX( ALL + col1 ) AS col2, + MAX( - col0 ) + COUNT( * ) + - MAX( DISTINCT - 26 ) AS col2 FROM tab0 cor0
----
-81
14

skipif mysql # not compatible
query II rowsort label-9574
SELECT DISTINCT - + MAX ( ALL + col1 ) AS col2, + MAX ( - col0 ) + COUNT ( * ) + - MAX ( DISTINCT - 26 ) AS col2 FROM tab0 cor0
----
-81
14

query I rowsort
SELECT DISTINCT - col2 * + 3 FROM tab2 AS cor0
----
-120
-174
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL + COUNT( col0 ) AS col1 FROM tab1 AS cor0 WHERE 35 <> ( col1 )
----
3

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL + COUNT ( col0 ) AS col1 FROM tab1 AS cor0 WHERE 35 <> ( col1 )
----
3

query I rowsort
SELECT DISTINCT - 33 * - 3 AS col2 FROM tab2 AS cor0
----
99

query I rowsort
SELECT DISTINCT - - col0 * 41 FROM tab1 cor0
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( DISTINCT - + 97 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( DISTINCT - + 97 ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT MAX( DISTINCT - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9580
SELECT MAX ( DISTINCT - col2 ) AS col0 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab2 WHERE + 62 < NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT COUNT( * ) + - 62 + + COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
-50

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT COUNT ( * ) + - 62 + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL 87 * + + 24 + 3 + COUNT( * ) * + 66 FROM tab2
----
2289

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL 87 * + + 24 + 3 + COUNT ( * ) * + 66 FROM tab2
----
2289

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 5 > NULL
----

query I rowsort
SELECT ALL + ( - 44 ) FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT ALL col2 DIV col1 * - col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL col2 / col1 * - col1 FROM tab0
----
-99
0
0

query I rowsort
SELECT DISTINCT - 69 * + + 98 + 32 AS col0 FROM tab2
----
-6730

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE - + 52 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT + COUNT( * ) FROM tab2 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9592
SELECT + COUNT ( * ) FROM tab2 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + ( - - col0 ) > - 93 * + - col1 + 41 + 93 * - + col0 + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + ( - - col0 ) > - 93 * + - col1 + 41 + 93 * - + col0 + col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT ALL col0 - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL col0 - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - - 79 - + col0 AS col0 FROM tab2 AS cor0
----
55
56
62

query I rowsort
SELECT DISTINCT + 93 * + 99 + + + col1 FROM tab2 AS cor0
----
9258
9274
9284

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 73 <= + col2 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9598
SELECT ( + CAST( 50 AS SIGNED ) ) FROM tab0 cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9598
SELECT ( + CAST ( 50 AS INTEGER ) ) FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL - - col2 - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT - CAST( MAX( ALL + col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9600
SELECT - CAST ( MAX ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 20 + - col0 - + col1 col2 FROM tab0
----
-119
-149
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL MAX( DISTINCT ( + col1 ) ) * 90 - - MAX( DISTINCT - 93 ) AS col1 FROM tab2
----
6837

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL MAX ( DISTINCT ( + col1 ) ) * 90 - - MAX ( DISTINCT - 93 ) AS col1 FROM tab2
----
6837

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9604
SELECT 23 * + - 35 * 44 FROM tab1 WHERE - CAST( - + col0 AS DECIMAL ) * + + col0 <> ( col1 * + col0 * - 74 )
----
-35420
-35420
-35420

skipif mysql # not compatible
query I rowsort label-9604
SELECT 23 * + - 35 * 44 FROM tab1 WHERE - CAST ( - + col0 AS REAL ) * + + col0 <> ( col1 * + col0 * - 74 )
----
-35420
-35420
-35420

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 BETWEEN ( + 24 ) AND + col0 AND NOT col0 < ( + 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9606
SELECT - - col0 DIV 8 AS col0 FROM tab2 AS cor0
----
5
8
9

skipif mysql # not compatible
query I rowsort label-9606
SELECT - - col0 / 8 AS col0 FROM tab2 AS cor0
----
5
8
9

query II rowsort
SELECT col0, + 72 * col1 FROM tab2 AS cor0
----
46
3672
64
5544
75
4824

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9608
SELECT ALL + CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9609
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9609
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( - + col2 ) * + col1 + + col1 + col0 * col1 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
120870
340628
382613

query I rowsort
SELECT ALL - + 48 FROM tab1 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col2 FROM tab2
----
56

query I rowsort
SELECT + col2 * + - 26 AS col0 FROM tab2
----
-1040
-1508
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col1 col2, - col0 FROM tab2 AS cor0
----
2601
-46
4489
-75
5929
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT col0 DIV - - 92 - + 12 * - + col2 - 53 AS col1 FROM tab2 AS cor0
----
223
427
643

skipif mysql # not compatible
query I rowsort label-9615
SELECT col0 / - - 92 - + 12 * - + col2 - 53 AS col1 FROM tab2 AS cor0
----
223
427
643

query I rowsort
SELECT DISTINCT - col1 * 18 AS col2 FROM tab0 AS cor0
----
-1458
-18
-378

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= - col0 * col2
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( 79 + + 96 ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT MAX( + CAST( + + col1 AS SIGNED ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9619
SELECT MAX ( + CAST ( + + col1 AS INTEGER ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - - col1 * + + col0 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-9621
SELECT DISTINCT + col1 DIV - - 72 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + col1 / - - 72 AS col0 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT ALL col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + col0 col1 FROM tab2
----
47
65
76

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT col0 <= + + col0
----

query I rowsort
SELECT 83 + + col0 AS col0 FROM tab2
----
129
147
158

query I rowsort
SELECT + col0 + + - col0 * + + ( - - col1 ) AS col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE col2 + - col0 / + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT col2 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9628
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT - CAST( + + col2 AS SIGNED ) - + 5 col0 FROM tab0
----
-104
-15
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9629
SELECT - CAST ( + + col2 AS INTEGER ) - + 5 col0 FROM tab0
----
-104
-15
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT + MAX( DISTINCT + col1 ) + - AVG ( + CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT + MAX ( DISTINCT + col1 ) + - AVG ( + CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE col2 IN ( + col0 )
----
NULL

query I rowsort
SELECT ALL + col2 * - col1 - - + col0 AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL - + SUM( ALL ( 74 ) ) FROM tab2 WHERE NOT + col2 < - + 50 / + + col0 - + 47
----
-222

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL - + SUM ( ALL ( 74 ) ) FROM tab2 WHERE NOT + col2 < - + 50 / + + col0 - + 47
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - MIN( - col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9633
SELECT - MIN ( - col0 ) AS col1 FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * - 75 * - - col1 FROM tab0
----
-15750
-285525
-7425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9636
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - 50 NOT IN ( - + CAST( NULL AS SIGNED ), - 20 * - - 81 )
----

skipif mysql # not compatible
query III rowsort label-9636
SELECT DISTINCT * FROM tab0 WHERE NOT col0 / - 50 NOT IN ( - + CAST ( NULL AS INTEGER ), - 20 * - - 81 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9637
SELECT + - MIN( DISTINCT - col2 ) / + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT + - MIN ( DISTINCT - col2 ) / + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col2 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9639
SELECT DISTINCT COUNT( * ), COUNT( * ) DIV ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
-1

skipif mysql # not compatible
query II rowsort label-9639
SELECT DISTINCT COUNT ( * ), COUNT ( * ) / ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3
-1

query I rowsort
SELECT + ( + col2 ) * 26 FROM tab0
----
1222
2574
260

query I rowsort
SELECT 43 * + 29 AS col2 FROM tab1
----
1247
1247
1247

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT COUNT( - 32 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9642
SELECT COUNT ( - 32 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL + ( - + MAX( - col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + ( - + MAX ( - col2 ) ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + + COUNT( ALL - 29 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9644
SELECT + + COUNT ( ALL - 29 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT MIN( + 24 ) + - + 31 AS col1 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9645
SELECT MIN ( + 24 ) + - + 31 AS col1 FROM tab2 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 97 col2 FROM tab1 cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9647
SELECT DISTINCT + 18 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + col2 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + 18 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + col2 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT col1 * CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT col1 * CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT - SUM( - 73 ) AS col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-9649
SELECT - SUM ( - 73 ) AS col1 FROM tab2 AS cor0
----
219

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 / + 61 + + 15 * 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 32 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, 25 FROM tab2
----
51
25
67
25
77
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9653
SELECT DISTINCT col1 * + col1 + + col0 + CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT col1 * + col1 + + col0 + CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL + 50 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 / col0 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + 50 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 / col0 IS NULL
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9655
SELECT * FROM tab1 AS cor0 WHERE CAST( + - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9655
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + ( - - col2 ) AS col2 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT - + 29 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 11 IS NULL
----

query I rowsort
SELECT ALL - - col0 + + 69 AS col1 FROM tab2 AS cor0
----
115
133
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT DISTINCT - MAX( col0 ) + - 6 AS col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9660
SELECT DISTINCT - MAX ( col0 ) + - 6 AS col2 FROM tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT DISTINCT - - 16 DIV - 84 * + 80 * + - col0 + - col1 - + 14 col1 FROM tab1 AS cor0
----
-19
-28
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9661
SELECT DISTINCT - - 16 / - 84 * + 80 * + - col0 + - col1 - + 14 col1 FROM tab1 AS cor0
----
-19
-28
-61

query I rowsort
SELECT DISTINCT + 52 * - - 61 - 87 + + col0 * + - 91 + + col2 FROM tab0 AS cor0
----
-4822
-5643
1767

onlyif mysql # DIV for integer division: 
query I rowsort label-9663
SELECT + col0 DIV - - col1 - 49 + + 14 FROM tab0 AS cor0
----
-31
-35
62

skipif mysql # not compatible
query I rowsort label-9663
SELECT + col0 / - - col1 - 49 + + 14 FROM tab0 AS cor0
----
-31
-35
62

query I rowsort
SELECT ( + 4 ) - 33 AS col0 FROM tab1 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT col1 * - - col2 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT CAST( - - col0 AS SIGNED ) * col0 AS col1 FROM tab2 cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-9667
SELECT CAST ( - - col0 AS INTEGER ) * col0 AS col1 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + 94 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col1 BETWEEN + col0 * + - col0 AND NULL
----

query I rowsort
SELECT + 39 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL - COUNT( col2 ) AS col2 FROM tab1 WHERE NOT + col0 = + col2
----
-3

skipif mysql # not compatible
query I rowsort label-9672
SELECT ALL - COUNT ( col2 ) AS col2 FROM tab1 WHERE NOT + col0 = + col2
----
-3

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab0, tab1 AS cor0
----
-28

query I rowsort
SELECT 66 AS col2 FROM tab2 WHERE NOT - ( + + col1 ) * + col2 - 37 NOT IN ( - - col1 + - + col0 * + - col1 - + 83 )
----

query II rowsort
SELECT ( + col2 ) * + col0, col1 + col0 - - + col1 * - col1 * - 96 AS col0 FROM tab1 AS cor0
----
4896
18881
5015
2490
6188
212202

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT ALL + COUNT( + 37 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL + COUNT ( + 37 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT - - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9677
SELECT - - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9678
SELECT - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 38 + + col0 + - col0 * - + col2 + col1 / - col1 * + - col0 + - + 50 FROM tab0 WHERE NOT NULL >= - col0
----

query I rowsort
SELECT 12 * - col1 AS col1 FROM tab2
----
-612
-804
-924

query I rowsort
SELECT 13 * - - col0 * 31 FROM tab0 cor0
----
35061
39091
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT DISTINCT + SUM( - 83 ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT + SUM ( - 83 ) FROM tab0 AS cor0
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - ( + ( - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9683
SELECT - ( + ( - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col2 + - + 18 FROM tab2 AS cor0 WHERE NOT NULL <= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9685
SELECT + + 36 DIV 12 + + MIN( ALL - 96 ) col0 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9685
SELECT + + 36 / 12 + + MIN ( ALL - 96 ) col0 FROM tab0 AS cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT ALL + MAX( DISTINCT + - 65 ) FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL + MAX ( DISTINCT + - 65 ) FROM tab0 AS cor0
----
-65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + 18
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT - SUM( ALL 93 ) AS col0 FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT - SUM ( ALL 93 ) AS col0 FROM tab2
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL 94 + - - COUNT( * ) + - 94 * 91 FROM tab1
----
-8457

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL 94 + - - COUNT ( * ) + - 94 * 91 FROM tab1
----
-8457

query I rowsort
SELECT DISTINCT col0 * - col0 * - + col0 * - + col0 + + - col1 + + 6 AS col1 FROM tab1
----
-52200624
-6765209
-68575002

query I rowsort
SELECT - col2 + - - 86 + col1 AS col0 FROM tab0
----
-12
120
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( - - col2 ) * + col2 / - col0 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9694
SELECT ALL + 58 * - + CAST( col0 AS SIGNED ), 73 DIV col2 + - col1 AS col1 FROM tab1
----
-2958
-14
-4930
-4
-5278
-46

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL + 58 * - + CAST ( col0 AS INTEGER ), 73 / col2 + - col1 AS col1 FROM tab1
----
-2958
-14
-4930
-4
-5278
-46

query I rowsort
SELECT DISTINCT 48 + - 69 AS col2 FROM tab2
----
-21

query I rowsort
SELECT 82 * col0 * col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - col2 * col1 * - col0 * + + col2 AS col0 FROM tab1 AS cor0
----
-7397125
-92123136
-929511856

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + - COUNT( * ) - 93 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-102

skipif mysql # not compatible
query I rowsort label-9698
SELECT + - COUNT ( * ) - 93 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-102

query I rowsort
SELECT - 83 FROM tab2 AS cor0 WHERE - col1 * + 70 - + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 56 + - - 13 FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= - 44 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - 52 * + - COUNT( * ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - 52 * + - COUNT ( * ) FROM tab2
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT 26 * - 94, COUNT( * ) AS col1 FROM tab2
----
-2444
3

skipif mysql # not compatible
query II rowsort label-9704
SELECT 26 * - 94, COUNT ( * ) AS col1 FROM tab2
----
-2444
3

query I rowsort
SELECT + 20 * col2 * + col2 AS col1 FROM tab0
----
196020
2000
44180

query II rowsort
SELECT ALL col1, + col2 * + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
99
21
210
81
3807

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + 95 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col2 * - + ( - col2 ) FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT - 65 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9710
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1, ( 30 ) * COUNT( * ) FROM tab0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-9710
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1, ( 30 ) * COUNT ( * ) FROM tab0
----
NULL
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col0 + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 43 AS col2, + col1 * + 14 + - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0, - col0 )
----

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab0 WHERE NULL IS NULL
----
-72

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NULL OR ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * + col2 * - col0 + col1 - - 86 col0 FROM tab1
----
-200636
-205524
-253575

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * 85 NOT BETWEEN + 47 AND 28
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT ALL + - 32 AS col0, COUNT( * ) FROM tab1 cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL + - 32 AS col0, COUNT ( * ) FROM tab1 cor0
----
-32
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT - SUM( DISTINCT - + 61 ) AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT - SUM ( DISTINCT - + 61 ) AS col1 FROM tab0 AS cor0
----
61

query I rowsort
SELECT + col2 / + ( - 25 ) AS col0 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 86 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT - ( + + CAST( col1 AS SIGNED ) ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9723
SELECT - ( + + CAST ( col1 AS INTEGER ) ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL + 25 * + col0 AS col0 FROM tab0
----
2175
2425
375

query III rowsort
SELECT * FROM tab1 WHERE ( 31 / + + 32 NOT IN ( + 93 * col0 * - col0 - + col2, 2, - 25 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 28 AS col2 FROM tab0 WHERE NULL IS NULL
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9727
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - + CAST( + 56 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9727
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - + CAST ( + 56 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE 62 <> NULL
----

query I rowsort
SELECT DISTINCT 12 - + + col0 AS col1 FROM tab2 AS cor0
----
-34
-52
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < + 89 + + ( col1 )
----

query I rowsort
SELECT DISTINCT col1 + + col2 * col1 - + col0 + - col1 AS col1 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT ALL + + col2 * - - col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT 60 + - 34 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT - - ( - col1 ) + - col0 * col2 * col2 AS col0 FROM tab1 cor0
----
-295890
-420831
-470030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9736
SELECT CAST( COUNT( * ) AS SIGNED ) + ( + + SUM( - col0 ) ) AS col1 FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-9736
SELECT CAST ( COUNT ( * ) AS INTEGER ) + ( + + SUM ( - col0 ) ) AS col1 FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT MIN( ALL - ( + 7 ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9737
SELECT MIN ( ALL - ( + 7 ) ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL MAX( DISTINCT 65 ) * - 65 FROM tab0 AS cor0
----
-4225

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL MAX ( DISTINCT 65 ) * - 65 FROM tab0 AS cor0
----
-4225

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( col0, col0 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col2 + - ( - 64 ) col1 FROM tab2 AS cor0
----
-2496
-4286
-994

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 79 * col0 BETWEEN 89 AND - 28
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9743
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * - - 8 * + 1 * - - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * - - 8 * + 1 * - - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9744
SELECT + 31 AS col1, COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1
----
31
NULL

skipif mysql # not compatible
query II rowsort label-9744
SELECT + 31 AS col1, COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
31
NULL

query II rowsort
SELECT + col2, + ( - 85 ) - + col1 AS col0 FROM tab0
----
10
-106
47
-166
99
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9746
SELECT 5 col0, COUNT( * ) AS col1 FROM tab0
----
5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9746
SELECT 5 col0, COUNT ( * ) AS col1 FROM tab0
----
5
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9747
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 37 / ( CAST( NULL AS SIGNED ) ) = + - 18 * ( + - col0 ) - + - ( col2 ) + - 33 + col2 + col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-9747
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 37 / ( CAST ( NULL AS INTEGER ) ) = + - 18 * ( + - col0 ) - + - ( col2 ) + - 33 + col2 + col2 * + col0
----

query II rowsort
SELECT ALL + col2 * col1, col2 AS col2 FROM tab1 AS cor0
----
1344
96
295
59
3196
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT + col1 DIV ( - 98 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9749
SELECT + col1 / ( - 98 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * 38 * - 24 FROM tab2 AS cor0
----
-41952
-58368
-68400

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT 83 DIV - + col1 + + - col1 FROM tab0 AS cor0
----
-24
-82
-84

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT 83 / - + col1 + + - col1 FROM tab0 AS cor0
----
-24
-82
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT DISTINCT MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT + COUNT( DISTINCT - 65 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9754
SELECT + COUNT ( DISTINCT - 65 ) FROM tab0
----
1

query I rowsort
SELECT ALL + ( - col2 ) + - 41 AS col0 FROM tab1 AS cor0
----
-100
-109
-137

query III rowsort
SELECT * FROM tab0 cor0 WHERE 1 * + + 88 * + col2 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 36 * - + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9758
SELECT DISTINCT - col2 DIV - 54 AS col2, 40 FROM tab1 AS cor0
----
1
40

skipif mysql # not compatible
query II rowsort label-9758
SELECT DISTINCT - col2 / - 54 AS col2, 40 FROM tab1 AS cor0
----
1
40

query I rowsort
SELECT DISTINCT + + ( 48 ) AS col2 FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab1 WHERE - - 97 IS NULL
----

query I rowsort
SELECT ALL 55 * - 68 AS col0 FROM tab2
----
-3740
-3740
-3740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col0 + - 60 + 81 col2 FROM tab1
----
4917
5036
6209

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT COUNT( * ) + 69 AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9763
SELECT COUNT ( * ) + 69 AS col2 FROM tab0
----
72

query III rowsort
SELECT * FROM tab0 WHERE - col0 + - ( col2 ) IS NULL
----

query I rowsort
SELECT ALL - col2 + + 16 AS col0 FROM tab0
----
-31
-83
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT - COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9766
SELECT - COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT col1 AS col1, col1 - + 4 AS col1 FROM tab1
----
14
10
47
43
5
1

query I rowsort
SELECT DISTINCT + 57 + - + 40 FROM tab2
----
17

query II rowsort
SELECT col1, + col1 * + 73 AS col1 FROM tab1
----
14
1022
47
3431
5
365

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9770
SELECT DISTINCT + CAST( + MAX( ( 50 ) ) AS SIGNED ) DIV - COUNT( * ) + + - 41 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + CAST ( + MAX ( ( 50 ) ) AS INTEGER ) / - COUNT ( * ) + + - 41 FROM tab2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - COUNT( 13 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9771
SELECT - COUNT ( 13 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL - MIN( DISTINCT - - 67 ) - + COUNT( * ) * - 83 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
680

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL - MIN ( DISTINCT - - 67 ) - + COUNT ( * ) * - 83 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
680

query II rowsort
SELECT + - col0 * col2 - col1 AS col0, + ( - 45 ) FROM tab0 AS cor0
----
-786
-45
-891
-45
-9604
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * + + 9 NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9775
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * + + 9 NOT BETWEEN ( NULL ) AND NULL
----
0

query II rowsort
SELECT - col0 * 88, + col1 AS col0 FROM tab1 AS cor0
----
-4488
14
-7480
5
-8008
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9777
SELECT ALL 22 DIV + - COUNT( * ) + - 83 AS col2 FROM tab0 AS cor0 WHERE CAST( 8 AS DECIMAL ) + + col0 + + col0 + CAST( + col1 AS SIGNED ) IS NOT NULL
----
-90

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL 22 / + - COUNT ( * ) + - 83 AS col2 FROM tab0 AS cor0 WHERE CAST ( 8 AS REAL ) + + col0 + + col0 + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
-90

query II rowsort
SELECT ALL 5 * + + col2, + 9 + + + col1 AS col0 FROM tab1 cor0
----
295
14
340
56
480
23

query I rowsort
SELECT DISTINCT 98 * col2 + + 85 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 * - col0 FROM tab0 AS cor0
----
10575
75690
931491

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT 60 IS NOT NULL
----

query I rowsort
SELECT - + ( ( - col1 ) ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL + - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT ( - 19 ) FROM tab2
----
-19

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 89 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT + col2 DIV - col1 * - 97 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT + col2 / - col1 * - 97 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT - 9 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - 9 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9788
SELECT COUNT( * ) DIV - 25 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT COUNT ( * ) / - 25 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT + MAX( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9790
SELECT + MAX ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + + ( + - 16 ) AS col1 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + 75 * + 75 AS col1 FROM tab1 AS cor0
----
5625
5625
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT ALL + col1 DIV 17 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9793
SELECT ALL + col1 / 17 FROM tab0 AS cor0
----
0
1
4

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 < + col1 / - + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9795
SELECT DISTINCT - + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT - + col0 / + col0 AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 + + 96 col2 FROM tab1 cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT DISTINCT + MIN( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + MIN ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT ALL + col1 - - + 53 AS col2 FROM tab2 AS cor0
----
104
120
130

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col1 * + - ( col0 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT + 57 * - col0 AS col2 FROM tab2 AS cor0
----
-2622
-3648
-4275

onlyif mysql # DIV for integer division: 
query II rowsort label-9801
SELECT + col1 col0, col2 DIV 4 FROM tab2 cor0
----
51
5
67
14
77
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9801
SELECT + col1 col0, col2 / 4 FROM tab2 cor0
----
51
5
67
14
77
10

query III rowsort
SELECT * FROM tab2 WHERE ( + + 42 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT 70 - + col0 + col1 DIV 14 FROM tab1
----
-15
-18
20

skipif mysql # not compatible
query I rowsort label-9803
SELECT 70 - + col0 + col1 / 14 FROM tab1
----
-15
-18
20

query II rowsort
SELECT 88 - - 54 AS col1, col1 + col0 * 12 * - 72 * + 43 AS col0 FROM tab2
----
142
-1708941
142
-2377651
142
-2786333

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL MIN( ALL - col1 ) + + COUNT( * ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL MIN ( ALL - col1 ) + + COUNT ( * ) FROM tab2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT - COUNT( * ), 48 * + 97 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0
4656

skipif mysql # not compatible
query II rowsort label-9806
SELECT - COUNT ( * ), 48 * + 97 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0
4656

query I rowsort
SELECT - col2 + + 41 + + col1 FROM tab0
----
-57
52
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT ALL + - COUNT( * ) + COUNT( * ) + - 19 AS col1 FROM tab0 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + - COUNT ( * ) + COUNT ( * ) + - 19 AS col1 FROM tab0 cor0
----
-19

query I rowsort
SELECT DISTINCT col0 * + - col2 - 68 AS col0 FROM tab2 AS cor0
----
-1126
-2628
-4418

query I rowsort
SELECT ALL - - col0 - + - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9811
SELECT ALL CAST( NULL AS DECIMAL ), + CAST( - col2 AS SIGNED ) * + - col0 * col1 AS col0 FROM tab2
----
NULL
197120
NULL
291450
NULL
53958

skipif mysql # not compatible
query II rowsort label-9811
SELECT ALL CAST ( NULL AS REAL ), + CAST ( - col2 AS INTEGER ) * + - col0 * col1 AS col0 FROM tab2
----
NULL
197120
NULL
291450
NULL
53958

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 29 < + col1 - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT DISTINCT - + COUNT( * ) AS col1, 93 + + 32 * - MAX( - col0 ) FROM tab1 AS cor0
----
-3
1725

skipif mysql # not compatible
query II rowsort label-9813
SELECT DISTINCT - + COUNT ( * ) AS col1, 93 + + 32 * - MAX ( - col0 ) FROM tab1 AS cor0
----
-3
1725

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT ALL + + 84, - SUM( - 11 ) AS col0 FROM tab0 AS cor0 WHERE col2 / + col0 IS NULL
----
84
NULL

skipif mysql # not compatible
query II rowsort label-9815
SELECT ALL + + 84, - SUM ( - 11 ) AS col0 FROM tab0 AS cor0 WHERE col2 / + col0 IS NULL
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT MAX( + + 62 ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9816
SELECT MAX ( + + 62 ) AS col0 FROM tab1
----
62

query I rowsort
SELECT DISTINCT + col1 + - 9 FROM tab0
----
-8
12
72

query II rowsort
SELECT - - col2 * + col1 * + - col1, - 29 FROM tab2 WHERE NOT + - col0 * col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9819
SELECT 66 + + - 33 AS col0, 61 - COUNT( * ) AS col0 FROM tab2
----
33
58

skipif mysql # not compatible
query II rowsort label-9819
SELECT 66 + + - 33 AS col0, 61 - COUNT ( * ) AS col0 FROM tab2
----
33
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9820
SELECT 91 * - 11 + - - CAST( - col1 AS SIGNED ), col1 AS col0 FROM tab2 AS cor0
----
-1052
51
-1068
67
-1078
77

skipif mysql # not compatible
query II rowsort label-9820
SELECT 91 * - 11 + - - CAST ( - col1 AS INTEGER ), col1 AS col0 FROM tab2 AS cor0
----
-1052
51
-1068
67
-1078
77

query I rowsort
SELECT 52 * - + col1 + + col1 FROM tab1 AS cor0
----
-2397
-255
-714

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( + 87 + - col1 )
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT ALL - SUM( ALL + - col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-9824
SELECT ALL - SUM ( ALL + - col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT DISTINCT - 86 + + COUNT( * ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - 86 + + COUNT ( * ) FROM tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT + col0 * col0 - - col2 FROM tab0
----
272
7579
9508

query I rowsort
SELECT col2 + col2 + - col2 - + ( + col1 ) + - col0 FROM tab0 AS cor0
----
-49
-98
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT DISTINCT - 37 + - COUNT( * ) FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9829
SELECT DISTINCT - 37 + - COUNT ( * ) FROM tab2 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL + - COUNT( * ) - - - 99 AS col0 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + - COUNT ( * ) - - - 99 AS col0 FROM tab1 AS cor0
----
-102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 > 54 * + col1 * + col1
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2, col1 - + 46 + + col2, col1 - + col1 * + 84, 65 + - col1 - - + 97, - - col1 + - 65 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL + + CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + + CAST ( NULL AS INTEGER ) - + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT COUNT( ALL 68 ) + + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT COUNT ( ALL 68 ) + + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL - COUNT( * ) + + 87 AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - COUNT ( * ) + + 87 AS col0 FROM tab1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9836
SELECT MAX( DISTINCT - col2 ) DIV - COUNT( * ) AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9836
SELECT MAX ( DISTINCT - col2 ) / - COUNT ( * ) AS col2 FROM tab2
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col0 FROM tab0 WHERE ( NOT 56 IS NULL )
----
-54
-54
-54

query I rowsort
SELECT + col1 * + - col2 * + col0 * 32 FROM tab1
----
-2193408
-802400
-9306752

query I rowsort
SELECT ALL - 86 * + + col1 FROM tab0
----
-1806
-6966
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT ALL + MIN( ALL col2 ) + + - 96 AS col0 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + MIN ( ALL col2 ) + + - 96 AS col0 FROM tab2
----
-73

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9842
SELECT ALL * FROM tab1 WHERE NULL <= - ( - 83 ) * - CAST( NULL AS SIGNED ) + + + col2
----

skipif mysql # not compatible
query III rowsort label-9842
SELECT ALL * FROM tab1 WHERE NULL <= - ( - 83 ) * - CAST ( NULL AS INTEGER ) + + + col2
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE + + 70 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + + col2 + - 32 AS col0 FROM tab1
----
104
160
86

query II rowsort
SELECT + 6, + col0 AS col2 FROM tab1
----
6
51
6
85
6
91

query II rowsort
SELECT DISTINCT - col0 AS col2, 14 + - 30 * + 86 AS col1 FROM tab2 cor0
----
-46
-2566
-64
-2566
-75
-2566

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - - SUM( + + 41 ) FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - - SUM ( + + 41 ) FROM tab0 AS cor0
----
123

query I rowsort
SELECT + col0 * - + 40 FROM tab2
----
-1840
-2560
-3000

query I rowsort
SELECT 90 * - col1 AS col1 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 AS cor0 WHERE col2 <> - 85
----
-23
-40
-58

query I rowsort
SELECT col2 * 26 AS col0 FROM tab1 AS cor0
----
1534
1768
2496

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 <= - col1
----

query II rowsort
SELECT 57, col2 FROM tab1
----
57
59
57
68
57
96

query II rowsort
SELECT DISTINCT 45, - col2 AS col1 FROM tab2
----
45
-23
45
-40
45
-58

query I rowsort
SELECT - - col2 FROM tab0 WHERE NULL NOT IN ( + ( ( + col1 ) ) * ( - col2 ) - - col2 - + col1 + + col1, - 65 + - col2, - - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - 40 ) IS NULL
----

query II rowsort
SELECT + col0 AS col0, col1 * + col0 AS col0 FROM tab0 AS cor0 WHERE + 1 + - 2 IS NOT NULL
----
15
1215
87
1827
97
97

query I rowsort
SELECT 67 + col2 * + 98 AS col2 FROM tab1 AS cor0
----
5849
6731
9475

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * - - 64 - - col1 >= 63 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + + col0 col0 FROM tab1
----
103
109
69

query I rowsort
SELECT - col0 FROM tab2 WHERE + - col2 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT 73 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1512
-5832
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT + MIN( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT + MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 63 = - col0
----

query I rowsort
SELECT DISTINCT + col0 - - 56 FROM tab1 AS cor0
----
107
141
147

query I rowsort
SELECT - col1 - + col1 + 66 * - 34 AS col0 FROM tab2 AS cor0
----
-2346
-2378
-2398

query I rowsort
SELECT ALL col2 * - 92 AS col1 FROM tab2
----
-2116
-3680
-5336

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 76 * + 24 FROM tab2
----
-1824
-1824
-1824

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 33 BETWEEN ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) / - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) / - - col0 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 94 NOT BETWEEN + 46 * - col0 AND + 96 + + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9875
SELECT DISTINCT + col1 * + 0 * + CAST( NULL AS SIGNED ) - + 54 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9875
SELECT DISTINCT + col1 * + 0 * + CAST ( NULL AS INTEGER ) - + 54 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 24 * + 60 * - 69 * - - 61 FROM tab0
----
6060960

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT DISTINCT + 98 AS col0, COUNT( * ) FROM tab1
----
98
3

skipif mysql # not compatible
query II rowsort label-9877
SELECT DISTINCT + 98 AS col0, COUNT ( * ) FROM tab1
----
98
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 3 ) col1 FROM tab1
----
3

query I rowsort
SELECT - col2 * + 63 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - - 88 * - COUNT( * ) AS col0 FROM tab0 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-9880
SELECT - - 88 * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-264

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 34 + - - col1 > ( + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9882
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9882
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) + - 87 AS col1 FROM tab2
----
-10
-20
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT ALL - 61 DIV + col0 + col2 AS col1 FROM tab0
----
10
43
99

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - 61 / + col0 + col2 AS col1 FROM tab0
----
10
43
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT MAX( DISTINCT + col1 ) + + 23 AS col2 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9885
SELECT MAX ( DISTINCT + col1 ) + + 23 AS col2 FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9886
SELECT - col2, + col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query II rowsort label-9886
SELECT - col2, + col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> NULL
----

query II rowsort
SELECT - col1 * ( - col2 ) - + + 51 + col1 * + ( + col0 ), ( col2 ) AS col1 FROM tab2 AS cor0
----
3468
23
7957
40
8860
58

query I rowsort
SELECT + 15 - + - col2 AS col0 FROM tab1
----
111
74
83

query I rowsort
SELECT col2 * + - 91 - + - col2 * - col1 FROM tab2
----
-3266
-6720
-9164

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> NULL AND - col0 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT + CAST( ( MAX( + + col0 ) ) AS SIGNED ) + 86 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9891
SELECT + CAST ( ( MAX ( + + col0 ) ) AS INTEGER ) + 86 FROM tab0 AS cor0
----
183

query I rowsort
SELECT DISTINCT + 3 + - 10 AS col1 FROM tab2 AS cor0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT DISTINCT - MIN( ALL - - 58 ) FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - MIN ( ALL - - 58 ) FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-58

query I rowsort
SELECT DISTINCT - 88 + - + 9 FROM tab1 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT col1 + + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-9895
SELECT col1 + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL - - 34 - 4 FROM tab1 AS cor0
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 11 > NULL
----

query I rowsort
SELECT DISTINCT + 79 - - + col0 * + + 76 + - col0 * col2 FROM tab0 cor0
----
-2152
514
5821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT + col0 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-9899
SELECT + col0 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT ALL + + col1 AS col0, + 97 FROM tab1 cor0
----
14
97
47
97
5
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9902
SELECT CAST( - - 30 AS SIGNED ) * + 73 AS col0 FROM tab0
----
2190
2190
2190

skipif mysql # not compatible
query I rowsort label-9902
SELECT CAST ( - - 30 AS INTEGER ) * + 73 AS col0 FROM tab0
----
2190
2190
2190

onlyif mysql # DIV for integer division: 
query I rowsort label-9903
SELECT DISTINCT col2 DIV 10 AS col0 FROM tab0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT col2 / 10 AS col0 FROM tab0
----
1
4
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT COUNT( * ) * + 39 AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-9904
SELECT COUNT ( * ) * + 39 AS col1 FROM tab0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT DISTINCT + MAX( DISTINCT - 66 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT + MAX ( DISTINCT - 66 ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT DISTINCT - - col0 DIV - + 96 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT - - col0 / - + 96 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT CAST( NULL AS SIGNED ) * + - 72 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT CAST ( NULL AS INTEGER ) * + - 72 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + 47 * col2 * + - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + + + 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + + 17 FROM tab0
----
18
38
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - 9 ) + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + 13 AS col1 FROM tab0 AS cor0
----
1131
1261
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9914
SELECT * FROM tab1 AS cor0 WHERE NOT 99 NOT BETWEEN + ( col0 ) + - col1 * - - ( + CAST( NULL AS SIGNED ) ) AND - 43
----

skipif mysql # not compatible
query III rowsort label-9914
SELECT * FROM tab1 AS cor0 WHERE NOT 99 NOT BETWEEN + ( col0 ) + - col1 * - - ( + CAST ( NULL AS INTEGER ) ) AND - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT ALL - + 0 * SUM( - - 17 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL - + 0 * SUM ( - - 17 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 16 - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9917
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT 57 * - 88 AS col2 FROM tab0 AS cor0
----
-5016
-5016
-5016

onlyif mysql # aggregate syntax: 
query II rowsort label-9919
SELECT DISTINCT - 3 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-9919
SELECT DISTINCT - 3 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9920
SELECT + + MAX( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9920
SELECT + + MAX ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - + col0, - 15 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT - 5, + COUNT( * ) col2 FROM tab2
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9922
SELECT - 5, + COUNT ( * ) col2 FROM tab2
----
-5
3

query II rowsort
SELECT col2 AS col0, - 2 AS col2 FROM tab0
----
10
-2
47
-2
99
-2

query I rowsort
SELECT - ( + 42 ) AS col2 FROM tab2
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9925
SELECT DISTINCT 92 + - COUNT( * ) AS col1, 60 FROM tab2
----
89
60

skipif mysql # not compatible
query II rowsort label-9925
SELECT DISTINCT 92 + - COUNT ( * ) AS col1, 60 FROM tab2
----
89
60

onlyif mysql # DIV for integer division: 
query II rowsort label-9926
SELECT - col2, 89 DIV - col0 AS col1 FROM tab1
----
-59
-1
-68
0
-96
-1

skipif mysql # not compatible
query II rowsort label-9926
SELECT - col2, 89 / - col0 AS col1 FROM tab1
----
-59
-1
-68
0
-96
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT COUNT( ALL - 57 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9927
SELECT COUNT ( ALL - 57 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 + - col1 + - 66 FROM tab1
----
-130
-176
-181

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + + col0 ) - - 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT + COUNT( * ) + MIN( ALL - col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL - col1 ) FROM tab2
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT DISTINCT col0 + - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT col0 + - col2 / col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL 67 / col2 FROM tab1 AS cor0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT + COUNT( * ) + 0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9933
SELECT + COUNT ( * ) + 0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT 45 + - 39 + + COUNT( * ) DIV 28 * + - COUNT( * ) + - - 48 + + - ( - + COUNT( * ) ) AS col1 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-9934
SELECT 45 + - 39 + + COUNT ( * ) / 28 * + - COUNT ( * ) + - - 48 + + - ( - + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
57

query I rowsort
SELECT - + 86 + - 68 FROM tab1 AS cor0
----
-154
-154
-154

query I rowsort
SELECT col2 FROM tab0 WHERE + 53 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9937
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9937
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9938
SELECT * FROM tab0 WHERE NOT - + CAST( ( + col0 ) AS SIGNED ) * + col2 + ( - 25 ) * + 99 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9938
SELECT * FROM tab0 WHERE NOT - + CAST ( ( + col0 ) AS INTEGER ) * + col2 + ( - 25 ) * + 99 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, 30 + + - col0 * - col1 AS col2 FROM tab2
----
51
2376
67
5055
77
4958

query II rowsort
SELECT ALL - col2, 14 * col1 - + + col0 AS col0 FROM tab0
----
-10
207
-47
1119
-99
-83

query II rowsort
SELECT DISTINCT col0, ( + 65 ) AS col1 FROM tab0
----
15
65
87
65
97
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN col0 * 98 AND + + 5 / 53 * col0 )
----

query I rowsort
SELECT ALL ( - col0 ) * - - col2 * - col2 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT 19 * - SUM( - col2 ) FROM tab2
----
2299

skipif mysql # not compatible
query I rowsort label-9945
SELECT 19 * - SUM ( - col2 ) FROM tab2
----
2299

onlyif mysql # aggregate syntax: 
query II rowsort label-9946
SELECT - 48 AS col1, + ( - + MIN( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-48
96

skipif mysql # not compatible
query II rowsort label-9946
SELECT - 48 AS col1, + ( - + MIN ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-48
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT ALL - + ( - 84 ) / - + 26 / + CAST( NULL AS SIGNED ) + + + 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL - + ( - 84 ) / - + 26 / + CAST ( NULL AS INTEGER ) + + + 56 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 49 * - col1 + + col0 AS col2 FROM tab1 cor0
----
2394
330
737

query III rowsort
SELECT * FROM tab2 WHERE 12 > NULL
----

query I rowsort
SELECT DISTINCT 25 + + col2 FROM tab2
----
48
65
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT - COUNT( * ) + + MIN( ALL - ( - 24 ) - 39 ) col2 FROM tab2
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9951
SELECT - COUNT ( * ) + + MIN ( ALL - ( - 24 ) - 39 ) col2 FROM tab2
----
-18

query I rowsort
SELECT DISTINCT col1 * + 31 AS col0 FROM tab0
----
2511
31
651

query I rowsort
SELECT - 82 AS col0 FROM tab0 WHERE - col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9954
SELECT ALL MAX( col1 ) * SUM( ALL - col0 DIV - col1 + - col1 ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-9954
SELECT ALL MAX ( col1 ) * SUM ( ALL - col0 / - col1 + - col1 ) FROM tab0
----
-162

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 <= ( + col2 * + col1 + - 35 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 78 IN ( + 78 )
----

query I rowsort
SELECT ALL - col2 * + 22 FROM tab0
----
-1034
-2178
-220

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - col2 + col2 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9959
SELECT DISTINCT * FROM tab1 WHERE NOT 82 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) / + col0
----

skipif mysql # not compatible
query III rowsort label-9959
SELECT DISTINCT * FROM tab1 WHERE NOT 82 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) / + col0
----

query I rowsort
SELECT ALL - ( + col0 ) - 33 AS col0 FROM tab2
----
-108
-79
-97

query I rowsort
SELECT ALL - 1 * ( + col0 ) + col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT col1 - 9 FROM tab0
----
-8
12
72

query I rowsort
SELECT DISTINCT - 2 + + 14 AS col0 FROM tab1
----
12

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT - 52 + ( 30 + + 62 * + 31 ) AS col2 FROM tab1
----
1900
1900
1900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + - ( - SUM( ALL - CAST( col0 AS SIGNED ) ) ) AS col0 FROM tab1
----
-224

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + - ( - SUM ( ALL - CAST ( col0 AS INTEGER ) ) ) AS col0 FROM tab1
----
-224

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col2 AND col1 / col1 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col1 < col2
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9969
SELECT col0 * CAST( col1 AS SIGNED ) col2 FROM tab1
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9969
SELECT col0 * CAST ( col1 AS INTEGER ) col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT col1 * 48 FROM tab2
----
2448
3216
3696

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 71 * col1 <> - 68
----

query I rowsort
SELECT col2 * 42 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
2478
2856
4032

query I rowsort
SELECT DISTINCT - col2 * 21 + - 87 * - col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 81 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + ( - 38 ) FROM tab2 AS cor0
----
13
29
39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 1 ) < ( - ( + ( + col0 ) ) )
----

query I rowsort
SELECT ALL - col0 - - ( - col0 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > ( col1 )
----

query I rowsort
SELECT DISTINCT col2 - + 94 FROM tab0 AS cor0
----
-47
-84
5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 ON NOT NULL > NULL
----

query I rowsort
SELECT 94 + + col0 AS col0 FROM tab2
----
140
158
169

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 / col2 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 90 ) FROM tab0 cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT + - CAST( - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9983
SELECT + - CAST ( - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT COUNT( * ) * 8 FROM tab0 AS cor0 WHERE ( NULL ) > - col0
----
0

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT COUNT ( * ) * 8 FROM tab0 AS cor0 WHERE ( NULL ) > - col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT DISTINCT + + CAST( ( + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + + CAST ( ( + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT 42 FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN ( + col0 * + 42 + col0 ) AND NULL
----
42

query I rowsort
SELECT col0 * - - 56 * col1 FROM tab0
----
102312
5432
68040

query I rowsort
SELECT DISTINCT - ( 24 ) AS col0 FROM tab1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT DISTINCT + col0 FROM tab2 WHERE col2 + CAST( col0 AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT + col0 FROM tab2 WHERE col2 + CAST ( col0 AS INTEGER ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT + ( 16 ) AS col0 FROM tab1 WHERE NOT + col1 BETWEEN ( col1 * col0 ) AND NULL
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT COUNT( * ) DIV + 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT COUNT ( * ) / + 84 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 95 >= - 41
----

query I rowsort
SELECT col1 * + 6 FROM tab0
----
126
486
6

query I rowsort
SELECT + 40 * + 30 * + col0 AS col2 FROM tab1
----
102000
109200
61200

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL - 84 * + COUNT( * ) FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-9995
SELECT ALL - 84 * + COUNT ( * ) FROM tab0 AS cor0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-9996
SELECT - + col0 DIV + 42 + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-9996
SELECT - + col0 / + 42 + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9997
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + col1 AND ( col1 * ( CAST( NULL AS DECIMAL ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + col1 AND ( col1 * ( CAST ( NULL AS REAL ) ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT ( + 92 ) + + MIN( 39 ) AS col0 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT ( + 92 ) + + MIN ( 39 ) AS col0 FROM tab2
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON ( + 24 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON ( + 24 ) NOT BETWEEN NULL AND NULL
----
NULL

