sqllogictest
Artifact Content
Not logged in

Artifact 8c3c6821510aa3105ee3737d7a8366db9a1da900:


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 # CAST syntax: SIGNED type: 
query I rowsort label-0
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 * 6 IS NULL
----

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 * 6 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-2
SELECT + COUNT ( + + 18 ) AS col0 FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT ALL - 4 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN 27 AND NULL
----

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

query I rowsort
SELECT + + col1 * + col0 AS col1 FROM tab2 WHERE NOT - + 88 > NULL
----

query I rowsort
SELECT ALL 62 * + 16 + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
3108
5088
6617

query I rowsort
SELECT DISTINCT - 79 * + 80 FROM tab2 AS cor0
----
-6320

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

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ( 17 ), - col0 AS col1 FROM tab1 AS cor0
----
17
-51
17
-85
17
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col2 ) >= col2 * 1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-13
SELECT + col2 * 31 DIV + - 6 AS col2 FROM tab2 cor0
----
-118
-206
-299

skipif mysql # not compatible
query I rowsort label-13
SELECT + col2 * 31 / + - 6 AS col2 FROM tab2 cor0
----
-118
-206
-299

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

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

query I rowsort
SELECT ALL + col1 + - 9 FROM tab1
----
-4
38
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT COUNT( ALL - + col1 ) DIV 7 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT COUNT ( ALL - + col1 ) / 7 FROM tab1
----
0

query I rowsort
SELECT + 12 * col0 AS col1 FROM tab0 AS cor0
----
1044
1164
180

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

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

query I rowsort
SELECT DISTINCT col0 + - 5 FROM tab1 AS cor0
----
46
80
86

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT MIN( DISTINCT col0 ) * + 9 AS col1 FROM tab1 cor0
----
459

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT MIN ( DISTINCT col0 ) * + 9 AS col1 FROM tab1 cor0
----
459

query III rowsort
SELECT ALL * FROM tab1 WHERE 29 / col2 * - col0 IS NULL
----

query II rowsort
SELECT + 10 AS col2, 83 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 4857c96860f9a7bcbccdff4fea6af0e9

query I rowsort
SELECT + 76 + - 1 * - col1 * 48 + - - col2 + - col2 * col0 AS col0 FROM tab0
----
-9380
224
3306

query I rowsort
SELECT DISTINCT + 20 * + + col0 FROM tab1 AS cor0
----
1020
1700
1820

query I rowsort
SELECT - + 78 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

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

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE + 46 BETWEEN + + 12 AND NULL
----

query I rowsort
SELECT + ( - + 48 ) - col0 FROM tab1
----
-133
-139
-99

query I rowsort
SELECT ALL - 49 + - - 24 + + 80 + - col0 * - col2 * col0 AS col1 FROM tab2
----
163895
326305
48723

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

skipif mysql # not compatible
query I rowsort label-33
SELECT COUNT ( 42 ) AS col2 FROM tab0
----
3

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

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

query I rowsort
SELECT + col0 * + 12 * + - col1 * + col2 AS col0 FROM tab1
----
-300900
-3490032
-822528

query I rowsort
SELECT + col2 * + 44 AS col2 FROM tab1
----
2596
2992
4224

query I rowsort
SELECT ( 98 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT + col0 * + - 16 AS col2 FROM tab2
----
-1024
-1200
-736

query II rowsort
SELECT DISTINCT col1 - + col1, - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + - 11 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT DISTINCT SUM( DISTINCT - - 7 ) FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-43
SELECT DISTINCT SUM ( DISTINCT - - 7 ) FROM tab2 cor0
----
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT DISTINCT - COUNT( * ) + + 25 AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT - COUNT ( * ) + + 25 AS col1 FROM tab1 AS cor0
----
22

query II rowsort
SELECT + - 28 AS col1, - 55 + - - col1 FROM tab0 cor0
----
-28
-34
-28
-54
-28
26

query I rowsort
SELECT - + 29 AS col0 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT 20 <= - + 54 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-49
SELECT ALL col1 + - CAST( ( col0 ) AS SIGNED ) FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL col1 + - CAST ( ( col0 ) AS INTEGER ) FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-50
SELECT ALL MIN( 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL MIN ( 11 ) FROM tab1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT DISTINCT 67 + + + 0 * + col2 DIV - col0 * - col1 * - 38 AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT 67 + + + 0 * + col2 / - col0 * - col1 * - 38 AS col0 FROM tab2
----
67

query I rowsort
SELECT DISTINCT - - 10 AS col0 FROM tab1 WHERE NOT - 26 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT COUNT( 51 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT COUNT ( 51 ) FROM tab0
----
3

query I rowsort
SELECT col1 + + - 84 * - - 7 + - + 54 AS col2 FROM tab0
----
-561
-621
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL 21 * - COUNT( * ) AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL 21 * - COUNT ( * ) AS col0 FROM tab0
----
-63

query I rowsort
SELECT DISTINCT + 42 * col1 + + col0 AS col0 FROM tab0
----
139
3417
969

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col2 >= ( NULL )
----

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL col2 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-66
SELECT - - AVG ( CAST ( NULL AS INTEGER ) ) * + 50 col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-67
SELECT - COUNT( DISTINCT - - 94 ), CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-67
SELECT - COUNT ( DISTINCT - - 94 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-1
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 49 BETWEEN + col1 AND - col0
----

query I rowsort
SELECT - + col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE 94 BETWEEN - 38 * + col0 AND NULL
----

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

query I rowsort
SELECT - + col2 + - 10 AS col1 FROM tab1 AS cor0
----
-106
-69
-78

query I rowsort
SELECT ALL - 94 - + col0 FROM tab2 AS cor0
----
-140
-158
-169

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + + 82 col1 FROM tab2 cor0
----
3823
5325
6217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + - col0 col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT - MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
23

query I rowsort
SELECT ALL - - 86 / + col1 * col0 * - 53 FROM tab1 WHERE + col1 <= NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL 58 * col0 * + + CAST ( + col1 AS INTEGER ) * + col1 FROM tab1
----
11659102
123250
579768

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 22 + + 33 * - col1 IS NOT NULL
----

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

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

query II rowsort
SELECT - - 75, - col2 AS col0 FROM tab0 AS cor0
----
75
-10
75
-47
75
-99

query I rowsort
SELECT col1 * - 9 AS col2 FROM tab2
----
-459
-603
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + 73 ) col1, + col1 * - col2 FROM tab2
----
-73
-1173
-73
-3080
-73
-3886

query I rowsort
SELECT + col1 + - 5 + col2 AS col0 FROM tab0 AS cor0
----
123
26
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 5 / + - col1 * col2
----

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

skipif mysql # not compatible
query I rowsort label-87
SELECT DISTINCT 31 + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0
----
28

query III rowsort
SELECT * FROM tab2 WHERE col0 = + 51 + + 41
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT SUM( + 54 ) AS col2 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-90
SELECT SUM ( + 54 ) AS col2 FROM tab1
----
162

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT + SUM( - - ( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-93
SELECT + SUM ( - - ( - col1 ) ) FROM tab1
----
-66

query II rowsort
SELECT - 49, - ( col1 ) FROM tab2 WHERE + + 97 + 67 + + col1 + + col0 * - - col1 * 72 / + - col2 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT - + col0 + - col1 DIV col1 * - - col0 FROM tab0 AS cor0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-96
SELECT - + col0 + - col1 / col1 * - - col0 FROM tab0 AS cor0
----
-174
-194
-30

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

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

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

query I rowsort
SELECT 91 * + 92 + + - col2 AS col0 FROM tab2
----
8314
8332
8349

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

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT - SUM( ALL - 98 ) FROM tab1 cor0
----
294

skipif mysql # not compatible
query I rowsort label-101
SELECT - SUM ( ALL - 98 ) FROM tab1 cor0
----
294

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - 74 <> NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 - + col2 FROM tab0 cor0
----
673
947
9601

query I rowsort
SELECT ALL - 33 * - + col2 FROM tab0 AS cor0
----
1551
3267
330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, ( - 30 ) * 7 + + + col1 AS col2 FROM tab1 AS cor0
----
-51
-196
-85
-205
-91
-163

query II rowsort
SELECT - col1 * + + 10, + col0 AS col2 FROM tab0
----
-10
97
-210
87
-810
15

onlyif mysql # aggregate syntax: 
query II rowsort label-107
SELECT DISTINCT 22 * + - COUNT( * ) AS col2, - COUNT( * ) FROM tab0
----
-66
-3

skipif mysql # not compatible
query II rowsort label-107
SELECT DISTINCT 22 * + - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0
----
-66
-3

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

query I rowsort
SELECT ALL + 66 * - col0 FROM tab2
----
-3036
-4224
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT + ( + 69 ) * + ( + col1 ) + - col1 DIV + + 69 AS col1 FROM tab1
----
3243
345
966

skipif mysql # not compatible
query I rowsort label-110
SELECT + ( + 69 ) * + ( + col1 ) + - col1 / + + 69 AS col1 FROM tab1
----
3243
345
966

query I rowsort
SELECT DISTINCT - + ( + - 0 ) + - 61 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 95 + col0 <> - ( - 19 ) * + 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-113
SELECT SUM( ALL + col1 ), ( 92 ) AS col0 FROM tab1 AS cor0
----
66
92

skipif mysql # not compatible
query II rowsort label-113
SELECT SUM ( ALL + col1 ), ( 92 ) AS col0 FROM tab1 AS cor0
----
66
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-114
SELECT CAST( 40 AS SIGNED ) FROM tab1
----
40
40
40

skipif mysql # not compatible
query I rowsort label-114
SELECT CAST ( 40 AS INTEGER ) FROM tab1
----
40
40
40

query I rowsort
SELECT ALL ( 66 ) + ( + col0 ) + - ( + col2 ) AS col1 FROM tab2
----
83
89
90

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT + 27 - 4 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + 27 - 4 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
63

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - ( col1 ) * col1 <= col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + 84 NOT BETWEEN 14 AND - col2 )
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT DISTINCT COUNT( ALL + ( - col1 ) ) * + 46 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-123
SELECT DISTINCT COUNT ( ALL + ( - col1 ) ) * + 46 FROM tab1 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query II rowsort label-124
SELECT DISTINCT col1 DIV col1 + col2 + 40, col1 FROM tab2 AS cor0
----
64
51
81
77
99
67

skipif mysql # not compatible
query II rowsort label-124
SELECT DISTINCT col1 / col1 + col2 + 40, col1 FROM tab2 AS cor0
----
64
51
81
77
99
67

query I rowsort
SELECT + + col1 + + 45 AS col2 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT ( col1 ) + + 44 FROM tab0
----
125
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT - COUNT( * ) + 2 + - ( + + COUNT( * ) ) * + COUNT( * ) col0 FROM tab2
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-127
SELECT DISTINCT - COUNT ( * ) + 2 + - ( + + COUNT ( * ) ) * + COUNT ( * ) col0 FROM tab2
----
-10

query I rowsort
SELECT DISTINCT col2 * - col2 + - 4 FROM tab2
----
-1604
-3368
-533

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

query I rowsort
SELECT col0 + + 31 * + col1 + - col0 + 39 * col2 FROM tab0
----
1041
3892
4344

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

query I rowsort
SELECT + 21 + + 57 + col0 FROM tab0
----
165
175
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 cor0 WHERE NOT - 65 * - - 39 BETWEEN - 81 * - + col0 + + 77 AND + col2 * col1
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-134
SELECT - col2 DIV CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-134
SELECT - col2 / CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 17
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL + COUNT( * ) + + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + COUNT ( * ) + + 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-138
SELECT ALL ( 38 ) - + 20 AS col2, + CAST( NULL AS SIGNED ) col2 FROM tab0
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-138
SELECT ALL ( 38 ) - + 20 AS col2, + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
18
NULL
18
NULL
18
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT + 65 > ( - - 70 )
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + ( - - COUNT( * ) ) * 48 + - 46 FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + ( - - COUNT ( * ) ) * 48 + - 46 FROM tab1 AS cor0
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + SUM( - 59 ) FROM tab0 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-144
SELECT + SUM ( - 59 ) FROM tab0 cor0
----
-177

query I rowsort
SELECT - + col2 * + - 65 * 43 AS col0 FROM tab2 AS cor0
----
111800
162110
64285

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

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

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

skipif mysql # not compatible
query I rowsort label-147
SELECT - CAST ( 35 AS INTEGER ) FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT + 16 * - SUM( 15 ) AS col2 FROM tab2 AS cor0
----
-720

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + 16 * - SUM ( 15 ) AS col2 FROM tab2 AS cor0
----
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, + col2 - - col0 + + - col0 + + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

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

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

query I rowsort
SELECT ALL 77 FROM tab0 WHERE NOT NULL <= + ( - 3 ) + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 12 + - 91 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-154
SELECT ALL - col0 AS col2, CAST( + 7 AS SIGNED ) FROM tab2
----
-46
7
-64
7
-75
7

skipif mysql # not compatible
query II rowsort label-154
SELECT ALL - col0 AS col2, CAST ( + 7 AS INTEGER ) FROM tab2
----
-46
7
-64
7
-75
7

query I rowsort
SELECT - col1 * 35 AS col1 FROM tab2
----
-1785
-2345
-2695

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-156
SELECT ALL 65 AS col0, 50 + CAST( + CAST( + - col2 AS DECIMAL ) AS SIGNED ) DIV + col0 FROM tab2
----
65
50
65
50
65
50

skipif mysql # not compatible
query II rowsort label-156
SELECT ALL 65 AS col0, 50 + CAST ( + CAST ( + - col2 AS REAL ) AS INTEGER ) / + col0 FROM tab2
----
65
50
65
50
65
50

query II rowsort
SELECT ALL col2 AS col0, + col2 * - col1 FROM tab1
----
59
-295
68
-3196
96
-1344

query I rowsort
SELECT ALL col0 * - + 13 AS col0 FROM tab2 AS cor0
----
-598
-832
-975

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

query II rowsort
SELECT 25, 81 AS col2 FROM tab0 AS cor0
----
25
81
25
81
25
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 92 + + col0 col1 FROM tab1 AS cor0
----
-4641
-7735
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT ALL 8 DIV ( 72 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL 8 / ( 72 ) FROM tab0 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col1 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 30 + 59 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * col1 AS col1, col1 + - + col0 col1 FROM tab2
----
-1173
5
-3080
13
-3886
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT - ( - col2 ) * - col2 + - col2 DIV + - 54 AS col0 FROM tab1 AS cor0
----
-3480
-4623
-9215

skipif mysql # not compatible
query I rowsort label-167
SELECT - ( - col2 ) * - col2 + - col2 / + - 54 AS col0 FROM tab1 AS cor0
----
-3480
-4623
-9215

query I rowsort
SELECT + + col0 + - 50 AS col1 FROM tab0 cor0
----
-35
37
47

query I rowsort
SELECT ALL 97 AS col1 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( - - col2 )
----

query I rowsort
SELECT - 68 + col2 - col0 * - + col1 FROM tab2 AS cor0
----
2301
4900
5015

query II rowsort
SELECT + + col0 + - col1 AS col1, + col0 * + col2 + 33 + - 62 * - + col2 AS col1 FROM tab0 AS cor0
----
-66
3652
66
1523
96
15774

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - + 47 ) / col0 + + - col0 <> - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT ALL + SUM( ALL + + 11 ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL + SUM ( ALL + + 11 ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 16 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 93 FROM tab0 WHERE - 87 IS NOT NULL
----
93
93
93

query I rowsort
SELECT ALL + col2 + 46 + - + col1 * + - 91 + + col0 + col0 * + col1 AS col0 FROM tab0
----
3881
430
8694

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

query I rowsort
SELECT ALL 37 + col0 FROM tab2
----
101
112
83

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( + 59 ) ) NOT IN ( + col1 * + col0, 31 * - 49, col0 * - col1 - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 91 * 38 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + ( - + 40 ) AS col1 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT col2 - col2 * + + col2 FROM tab0
----
-2162
-90
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col2 * col1 col1, col2 + + 34 FROM tab0
----
196
133
297
44
3822
81

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-187
SELECT DISTINCT + col2 DIV - col0 * 94 AS col0, CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-187
SELECT DISTINCT + col2 / - col0 * 94 AS col0, CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
0
46
0
64
0
75

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

skipif mysql # not compatible
query I rowsort label-188
SELECT DISTINCT - ( + 47 ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) > ( ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-189
SELECT 62 * + col2 + 7 DIV col0 FROM tab2
----
1426
2480
3596

skipif mysql # not compatible
query I rowsort label-189
SELECT 62 * + col2 + 7 / col0 FROM tab2
----
1426
2480
3596

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL = col2
----

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

skipif mysql # not compatible
query I rowsort label-191
SELECT ( CAST ( + 38 AS INTEGER ) ) FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - ( + ( - MIN( col0 ) ) ) col1 FROM tab1 WHERE NULL BETWEEN NULL AND - col2 * - col2 + - 43
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-192
SELECT - ( + ( - MIN ( col0 ) ) ) col1 FROM tab1 WHERE NULL BETWEEN NULL AND - col2 * - col2 + - 43
----
NULL

query I rowsort
SELECT - col2 + - 56 FROM tab2
----
-114
-79
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-194
SELECT col0 DIV col2 FROM tab0 WHERE NOT - col1 + col2 * + 85 IN ( 83 )
----
0
0
8

skipif mysql # not compatible
query I rowsort label-194
SELECT col0 / col2 FROM tab0 WHERE NOT - col1 + col2 * + 85 IN ( 83 )
----
0
0
8

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 ) >= NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - col2 ) AND - 4 * - 39 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT COUNT( * ) * - 41 AS col0 FROM tab1 WHERE ( + 87 + ( + 9 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-200
SELECT COUNT ( * ) * - 41 AS col0 FROM tab1 WHERE ( + 87 + ( + 9 ) ) IS NULL
----
0

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

query I rowsort
SELECT + 88 - - 42 AS col1 FROM tab0
----
130
130
130

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 48 * 51 <> col0
----

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

query I rowsort
SELECT col1 * 5 + ( col0 ) AS col0 FROM tab0 AS cor0
----
102
192
420

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

query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 * - col2 FROM tab1
----
-4320
1534
1564

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

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

query I rowsort
SELECT + - 23 * - col0 FROM tab0 AS cor0
----
2001
2231
345

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

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

query I rowsort
SELECT - col2 * + 12 AS col2 FROM tab1 AS cor0
----
-1152
-708
-816

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN ( + col0 / col0 - col1 ) AND 24
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT + - SUM( DISTINCT col2 ) DIV - COUNT( * ) FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT + - SUM ( DISTINCT col2 ) / - COUNT ( * ) FROM tab1 cor0
----
74

query I rowsort
SELECT DISTINCT 96 FROM tab2 AS cor0 WHERE 40 + - 21 >= col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT + MAX( + 55 ) + 45 col0 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-217
SELECT + MAX ( + 55 ) + 45 col0 FROM tab2 AS cor0
----
100

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

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

query I rowsort
SELECT ALL + - col0 + 1 FROM tab2 AS cor0
----
-45
-63
-74

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = - col2
----

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab1 WHERE NOT col2 + - col2 BETWEEN col1 AND ( + col1 )
----
-46

query I rowsort
SELECT + ( - col0 ) * + col0 + col2 AS col1 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT ALL 42 / 96 + col0 AS col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + 41 * 99 FROM tab0 WHERE col1 NOT IN ( col1 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN 36 AND NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE - 89 NOT BETWEEN col1 AND col0 * - col0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-229
SELECT CAST( NULL AS SIGNED ) - col2 FROM tab1 WHERE ( col2 ) NOT BETWEEN col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-229
SELECT CAST ( NULL AS INTEGER ) - col2 FROM tab1 WHERE ( col2 ) NOT BETWEEN col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 27 + 90 col1 FROM tab1
----
-22
-28
12

query I rowsort
SELECT ALL col0 - + - 79 * col0 AS col0 FROM tab0
----
1200
6960
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + 19 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT - MAX( + 94 ) * - SUM( ALL + 69 ) AS col1 FROM tab2 AS cor0
----
19458

skipif mysql # not compatible
query I rowsort label-233
SELECT - MAX ( + 94 ) * - SUM ( ALL + 69 ) AS col1 FROM tab2 AS cor0
----
19458

query I rowsort
SELECT - ( + col1 ) * col2 - + col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT 72 - col1 * - col1 FROM tab0 cor0
----
513
6633
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 65 + - col2 col2 FROM tab1 AS cor0
----
3219
5466
5847

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 + col2 < + 57 * + col2
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 46 NOT IN ( 9 )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

query I rowsort
SELECT col1 * + - 62 FROM tab0 cor0
----
-1302
-5022
-62

onlyif mysql # DIV for integer division: 
query II rowsort label-242
SELECT - 10 AS col2, + col2 DIV ( + col2 ) AS col2 FROM tab2 AS cor0
----
-10
1
-10
1
-10
1

skipif mysql # not compatible
query II rowsort label-242
SELECT - 10 AS col2, + col2 / ( + col2 ) AS col2 FROM tab2 AS cor0
----
-10
1
-10
1
-10
1

query II rowsort
SELECT - 38, - 80 AS col2 FROM tab2 AS cor0
----
-38
-80
-38
-80
-38
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 75 col2, - 92 FROM tab0 AS cor0
----
75
-92
75
-92
75
-92

query I rowsort
SELECT ALL + col1 + + 75 AS col1 FROM tab0 WHERE ( 67 / - col1 / + col1 + 74 ) IS NULL
----

query I rowsort
SELECT ALL - ( col0 ) * - col2 + - + 54 * - col1 AS col0 FROM tab2
----
3812
6718
7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * + - col2 * + - 99 col2 FROM tab1
----
12773376
1723095
21515472

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

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

query I rowsort
SELECT col0 * - 24 FROM tab2
----
-1104
-1536
-1800

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

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

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT + MIN ( ALL + - 92 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col2 - + - 92 * 42 BETWEEN + 22 AND + 80 + + col0
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT - CAST( NULL AS SIGNED ) * + + 65 + - ( + 53 ) + col0 + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-257
SELECT - CAST ( NULL AS INTEGER ) * + + 65 + - ( + 53 ) + col0 + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( + - 81 ) * + col0 + col0 + col0 ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT 11 - - ( MIN( DISTINCT col0 ) ) FROM tab0 AS cor0 WHERE ( col0 + 47 * + col2 + - + 84 * + col2 ) NOT BETWEEN ( NULL ) AND ( 79 * + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-260
SELECT 11 - - ( MIN ( DISTINCT col0 ) ) FROM tab0 AS cor0 WHERE ( col0 + 47 * + col2 + - + 84 * + col2 ) NOT BETWEEN ( NULL ) AND ( 79 * + 32 )
----
NULL

query I rowsort
SELECT DISTINCT 45 + - col2 FROM tab2
----
-13
22
5

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

query I rowsort
SELECT ALL 30 + + - ( col1 ) * - 19 AS col2 FROM tab1
----
125
296
923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-264
SELECT CAST( col2 AS SIGNED ) - - - CAST( - col1 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-264
SELECT CAST ( col2 AS INTEGER ) - - - CAST ( - col1 AS INTEGER ) FROM tab2
----
117
125
74

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 97 + + - 28 < NULL )
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - + 17 AS col1 FROM tab1 cor0
----
-238
-799
-85

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

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2 WHERE NOT - + col1 <= + col1 * + col2 * col2
----

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 + - - 37 ) = NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-278
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 * col1 NOT BETWEEN col2 + + ( + 38 ) - - col0 + + 7 AND ( CAST( col0 AS SIGNED ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-278
SELECT * FROM tab2 AS cor0 WHERE NOT + 50 * col1 NOT BETWEEN col2 + + ( + 38 ) - - col0 + + 7 AND ( CAST ( col0 AS INTEGER ) + col0 )
----

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

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

query I rowsort
SELECT + 15 * + col2 FROM tab0
----
1485
150
705

query II rowsort
SELECT col1 AS col1, - col2 AS col0 FROM tab2
----
51
-23
67
-58
77
-40

query II rowsort
SELECT ALL col1 * col1 + + - 33, col1 - + col0 + + + 36 + - col0 AS col2 FROM tab1
----
-8
-129
163
-52
2176
-99

query II rowsort
SELECT DISTINCT - 91 * col1 * col2 + col2 AS col1, col0 * + 65 AS col1 FROM tab1
----
-122208
3315
-26786
5525
-290768
5915

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-285
SELECT - ( + - col2 ) * - - 68, + ( - col2 ) DIV col2 + 54 AS col0 FROM tab1
----
4012
53
4624
53
6528
53

skipif mysql # not compatible
query II rowsort label-285
SELECT - ( + - col2 ) * - - 68, + ( - col2 ) / col2 + 54 AS col0 FROM tab1
----
4012
53
4624
53
6528
53

query II rowsort
SELECT ALL 28 AS col0, + col1 FROM tab0
----
28
1
28
21
28
81

query I rowsort
SELECT + ( + col0 ) * - + 69 * + + 70 FROM tab1
----
-246330
-410550
-439530

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT 38 + + SUM( DISTINCT col0 ) AS col1 FROM tab1
----
265

skipif mysql # not compatible
query I rowsort label-288
SELECT 38 + + SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
265

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-289
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( CAST( NULL AS SIGNED ) NOT IN ( + 55 ) ) ) OR NOT ( - 56 * 9 ) NOT BETWEEN + 10 * - col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-289
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( CAST ( NULL AS INTEGER ) NOT IN ( + 55 ) ) ) OR NOT ( - 56 * 9 ) NOT BETWEEN + 10 * - col1 AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-290
SELECT ALL COUNT( * ), 32 col1 FROM tab1
----
3
32

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

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

skipif mysql # not compatible
query I rowsort label-291
SELECT - - MAX ( ALL - 63 ) FROM tab2 AS cor0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-292
SELECT MIN( + + ( - + col0 ) ) DIV + 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-292
SELECT MIN ( + + ( - + col0 ) ) / + 99 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-293
SELECT col2 AS col2, - 95 + + col2 + 28 + - col1 DIV col1 FROM tab2 AS cor0
----
23
-45
40
-28
58
-10

skipif mysql # not compatible
query II rowsort label-293
SELECT col2 AS col2, - 95 + + col2 + 28 + - col1 / col1 FROM tab2 AS cor0
----
23
-45
40
-28
58
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL - SUM( ALL ( - col0 ) ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-294
SELECT ALL - SUM ( ALL ( - col0 ) ) col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - COUNT( * ) FROM tab0 WHERE 76 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-295
SELECT - COUNT ( * ) FROM tab0 WHERE 76 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT DISTINCT + 69 - 62 AS col1, + COUNT( * ) FROM tab1 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-296
SELECT DISTINCT + 69 - 62 AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
7
3

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

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

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

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

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

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

query I rowsort
SELECT ALL 75 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
75
75
75

query I rowsort
SELECT col1 + + + 53 FROM tab0
----
134
54
74

query I rowsort
SELECT ALL - 26 FROM tab0 WHERE NOT 44 NOT BETWEEN ( - - col0 ) AND + + col2 * + 5
----
-26

query II rowsort
SELECT ( + + col0 ), col2 + + col0 FROM tab1 WHERE NULL >= + 67
----

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-309
SELECT - SUM ( DISTINCT + - col2 ) FROM tab1
----
223

query I rowsort
SELECT ALL + + col0 * col0 FROM tab0 WHERE - + col1 <> - + col0 * - col2 * - + ( + col0 )
----
225
7569
9409

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

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

skipif mysql # not compatible
query I rowsort label-312
SELECT + CAST ( - - 83 AS INTEGER ) FROM tab2 AS cor0
----
83
83
83

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

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <= + 7
----

query II rowsort
SELECT - col1 * ( - 56 ), + 28 AS col0 FROM tab2 AS cor0
----
2856
28
3752
28
4312
28

query II rowsort
SELECT DISTINCT col0, - 93 * - col0 FROM tab2
----
46
4278
64
5952
75
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT ALL MAX( - col0 ) * 69 FROM tab0
----
-1035

skipif mysql # not compatible
query I rowsort label-318
SELECT ALL MAX ( - col0 ) * 69 FROM tab0
----
-1035

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

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

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

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

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

query II rowsort
SELECT ALL - + col0, - 46 AS col1 FROM tab0 cor0 WHERE 10 + + 8 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 99 + col2 + - col2 * - - col0 col1 FROM tab2 AS cor0
----
-1083
-2542
-4324

query I rowsort
SELECT - col2 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
-17
164
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col0 >= - 36 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 * + 40 BETWEEN NULL AND + 48 - col0
----

query I rowsort
SELECT 7 * col1 AS col0 FROM tab1
----
329
35
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL + CAST( - + 95 AS SIGNED ) AS col1 FROM tab2
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + CAST ( - + 95 AS INTEGER ) AS col1 FROM tab2
----
-95
-95
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT MIN( - + col1 ) * + 33 FROM tab1 AS cor0
----
-1551

skipif mysql # not compatible
query I rowsort label-330
SELECT MIN ( - + col1 ) * + 33 FROM tab1 AS cor0
----
-1551

query I rowsort
SELECT ( - 36 ) + - col2 * 54 + col1 AS col1 FROM tab2
----
-1227
-2119
-3101

query I rowsort
SELECT + 94 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT col1 * + col1 * + - col0 + + col2 AS col1 FROM tab0
----
-38357
-98368
2

onlyif mysql # DIV for integer division: 
query I rowsort label-334
SELECT - col2 DIV + 30 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-334
SELECT - col2 / + 30 FROM tab1 AS cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT + MIN( + ( ( - 7 ) ) ) FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-335
SELECT + MIN ( + ( ( - 7 ) ) ) FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + ( + col1 ) * - 90 + ( + col2 ) < NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT IN ( - 84, 9 ) )
----

query I rowsort
SELECT ALL + + 35 * + + col0 - - + col2 AS col1 FROM tab0 AS cor0
----
3055
3494
572

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT DISTINCT col1 * - col0 * - - 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-340
SELECT DISTINCT col1 * - col0 * - - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-341
SELECT MIN ( ALL - 18 ) AS col0 FROM tab1
----
-18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT - CAST( + 19 AS SIGNED ) AS col1 FROM tab0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-343
SELECT - CAST ( + 19 AS INTEGER ) AS col1 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT ( ( col1 ) ) AS col2 FROM tab0
----
1
21
81

query I rowsort
SELECT col2 * - 19 AS col1 FROM tab0
----
-1881
-190
-893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - col0 col2, col0 FROM tab1
----
2601
51
7225
85
8281
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-347
SELECT - CAST( + - col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-347
SELECT - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-348
SELECT - 51 DIV + + MAX( - + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-348
SELECT - 51 / + + MAX ( - + col0 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-349
SELECT + 81 * - COUNT( + col1 ) col2 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-349
SELECT + 81 * - COUNT ( + col1 ) col2 FROM tab2 AS cor0
----
-243

query I rowsort
SELECT col2 * + + ( - - 92 ) AS col2 FROM tab0
----
4324
9108
920

query I rowsort
SELECT + - 44 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-353
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 9 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-353
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 9 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 55 * + + 85 * - col1 * + col1 FROM tab0 cor0
----
-2061675
-30672675
-4675

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT DISTINCT + col1 DIV - - 53 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT + col1 / - - 53 FROM tab2 AS cor0
----
0
1

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

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

skipif mysql # not compatible
query I rowsort label-357
SELECT + COUNT ( DISTINCT + + 10 ) FROM tab1 cor0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT DISTINCT + 14 + + + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT + 14 + + + COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT ALL + col0 + + - 88 * - - ( - 76 ) FROM tab2
----
6734
6752
6763

query I rowsort
SELECT + col0 + + 23 AS col1 FROM tab0
----
110
120
38

query II rowsort
SELECT - - col2, - col1 AS col1 FROM tab2 WHERE - 11 NOT BETWEEN + col1 + + + 12 AND - col2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT + col1 - 26 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT DISTINCT 12 DIV + 22 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT 12 / + 22 AS col0 FROM tab2 AS cor0
----
0

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + - 83 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-367
SELECT - col2, + col0 * ( - + col1 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-367
SELECT - col2, + col0 * ( - + col1 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT + + col0 + - 58 FROM tab0 AS cor0 WHERE NULL >= - ( - + 64 ) + - + col2
----

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

query I rowsort
SELECT - + 33 * - col0 + - col2 + - + col0 FROM tab2 AS cor0
----
1449
2008
2342

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

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

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

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

query I rowsort
SELECT - + 13 AS col0 FROM tab0 cor0
----
-13
-13
-13

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

query II rowsort
SELECT - 96, + col0 FROM tab0
----
-96
15
-96
87
-96
97

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

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

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

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

query II rowsort
SELECT 53, + col1 FROM tab0 AS cor0
----
53
1
53
21
53
81

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

skipif mysql # not compatible
query II rowsort label-380
SELECT + 74 AS col1, + COUNT ( * ) AS col0 FROM tab1 cor0
----
74
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 54 col1, + 59 AS col2 FROM tab0 AS cor0
----
54
59
54
59
54
59

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

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

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

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

skipif mysql # not compatible
query I rowsort label-385
SELECT + MAX ( 7 ) FROM tab2 AS cor0
----
7

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

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

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

query I rowsort
SELECT - - 91 + col2 - + + col0 FROM tab1 AS cor0
----
136
65
68

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 12 - - 85 IS NOT NULL
----

query I rowsort
SELECT - ( - 52 ) + + col0 FROM tab0 AS cor0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT + 6 * + COUNT( * ) * 31 + + - ( - COUNT( * ) ) + + COUNT( * ) + - - COUNT( * ) + + 68 + + 26 * - 28 * - ( - 6 ) * + COUNT( * ) FROM tab2 AS cor0
----
-12469

skipif mysql # not compatible
query I rowsort label-391
SELECT + 6 * + COUNT ( * ) * 31 + + - ( - COUNT ( * ) ) + + COUNT ( * ) + - - COUNT ( * ) + + 68 + + 26 * - 28 * - ( - 6 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-12469

query I rowsort
SELECT ALL + 48 + - + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
129
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT + + 10 + COUNT( DISTINCT - 18 ) FROM tab0 cor0
----
11

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT + + 10 + COUNT ( DISTINCT - 18 ) FROM tab0 cor0
----
11

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 = 13 / + 57
----

query I rowsort
SELECT DISTINCT + col1 + col1 * - 31 AS col2 FROM tab1
----
-1410
-150
-420

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

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

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

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL 53 + + COUNT ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
53

query I rowsort
SELECT DISTINCT + 79 + - 98 * + - col2 * - col2 AS col0 FROM tab0
----
-216403
-960419
-9721

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

skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT CAST ( NULL AS REAL ) * + + ( + CAST ( COUNT ( * ) AS INTEGER ) ) * + - MIN ( ALL + - 48 ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-401
SELECT col0 * + CAST( col2 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-401
SELECT col0 * + CAST ( col2 AS INTEGER ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE - - col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT DISTINCT - 63 DIV 93 * ( - - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT - 63 / 93 * ( - - col0 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 - col2 + - 26 col1 FROM tab2
----
25
42
7

query I rowsort
SELECT DISTINCT - 52 + - - 44 FROM tab2
----
-8

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

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

query I rowsort
SELECT + - ( - col2 ) + + col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-408
SELECT ALL MIN( col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL MIN ( col0 ) AS col0 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - 69 + col2 - + col2 AS col2 FROM tab2
----
-69

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

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

query II rowsort
SELECT + 47 AS col0, col1 * - - col1 FROM tab0 AS cor0
----
47
1
47
441
47
6561

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

query I rowsort
SELECT + - ( - col1 ) * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-414
SELECT + COUNT( * ) col2, - 42 FROM tab0 AS cor0
----
3
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-414
SELECT + COUNT ( * ) col2, - 42 FROM tab0 AS cor0
----
3
-42

query I rowsort
SELECT - - 30 * col2 FROM tab2 AS cor0
----
1200
1740
690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-416
SELECT ALL + ( - + SUM( - col0 ) ) DIV 47 - - - 41 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + ( - + SUM ( - col0 ) ) / 47 - - - 41 FROM tab0
----
-37

query II rowsort
SELECT - 45 * - - col0 AS col1, 75 AS col0 FROM tab0
----
-3915
75
-4365
75
-675
75

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 5 ) IS NOT NULL
----

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

query I rowsort
SELECT ( - - 76 ) AS col0 FROM tab1
----
76
76
76

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > + - col2
----

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

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

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

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

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

query II rowsort
SELECT col2, + col1 + + - col0 AS col2 FROM tab0
----
10
-66
47
66
99
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-427
SELECT ALL - col1 col2, col2 * + 0 DIV + + col1 FROM tab2
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-427
SELECT ALL - col1 col2, col2 * + 0 / + + col1 FROM tab2
----
-51
0
-67
0
-77
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE 39 * + 15 * + ( - - 38 ) * - col0 + - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 40 * col2 FROM tab1
----
-2360
-2720
-3840

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 + - ( - + 6 ) + + + 12 * - - col1 FROM tab1
----
125
270
638

query I rowsort
SELECT ALL 17 + + col2 + - 16 FROM tab0
----
100
11
48

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-436
SELECT CAST( NULL AS DECIMAL ) + + col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-436
SELECT CAST ( NULL AS REAL ) + + col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT col1 + col2 - + col0 FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT ALL + COUNT( * ) + - 21 + COUNT( * ) AS col0 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + COUNT ( * ) + - 21 + COUNT ( * ) AS col0 FROM tab2
----
-15

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT + 47 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT ALL col2 - col2 * - - 67 FROM tab2 AS cor0
----
-1518
-2640
-3828

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

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

query I rowsort
SELECT + ( + - col0 ) - + - 60 AS col2 FROM tab2 AS cor0
----
-15
-4
14

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

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

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

query I rowsort
SELECT DISTINCT col1 * - + 27 AS col2 FROM tab2
----
-1377
-1809
-2079

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 >= - col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 16 * col0 * - col0 * + + col2 * col2 col2, col2 FROM tab1 cor0
----
383533056
96
402403600
59
612661504
68

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

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

query I rowsort
SELECT col0 * + - 35 FROM tab1 AS cor0
----
-1785
-2975
-3185

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-10
-47
-99

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-454
SELECT ALL 35 DIV - + COUNT( * ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL 35 / - + COUNT ( * ) AS col1 FROM tab1
----
-11

query I rowsort
SELECT ALL + 85 * 46 * - col2 AS col0 FROM tab2
----
-156400
-226780
-89930

query I rowsort
SELECT col0 + + - col1 AS col0 FROM tab1 WHERE NOT col1 IS NULL
----
37
44
80

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-457
SELECT + 53 col2, + ( - COUNT ( * ) ) AS col2 FROM tab2
----
53
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-458
SELECT - 39 DIV - COUNT( * ) AS col1 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-458
SELECT - 39 / - COUNT ( * ) AS col1 FROM tab1
----
13

query II rowsort
SELECT - + col1 AS col2, 57 FROM tab0 AS cor0
----
-1
57
-21
57
-81
57

onlyif mysql # aggregate syntax: 
query II rowsort label-460
SELECT DISTINCT + - COUNT( - + 45 ), + MIN( DISTINCT - + 49 ) AS col0 FROM tab0 AS cor0
----
-3
-49

skipif mysql # not compatible
query II rowsort label-460
SELECT DISTINCT + - COUNT ( - + 45 ), + MIN ( DISTINCT - + 49 ) AS col0 FROM tab0 AS cor0
----
-3
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-461
SELECT + MAX( - col1 ) AS col2, + ( + 72 ) AS col0 FROM tab1 AS cor0
----
-5
72

skipif mysql # not compatible
query II rowsort label-461
SELECT + MAX ( - col1 ) AS col2, + ( + 72 ) AS col0 FROM tab1 AS cor0
----
-5
72

query II rowsort
SELECT ALL 19 + - col0 AS col1, - col1 FROM tab0 AS cor0
----
-68
-21
-78
-1
4
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT ALL ( MIN( ALL 65 ) ) * - 16 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1040

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL ( MIN ( ALL 65 ) ) * - 16 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-464
SELECT - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT - col2 + - col2 + 8 * + col0 * - 36 FROM tab1 AS cor0
----
-14880
-24598
-26344

query I rowsort
SELECT col2 + - - col0 AS col1 FROM tab1 cor0
----
144
147
159

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT ALL + COUNT( * ) + + 94 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-469
SELECT ALL + COUNT ( * ) + + 94 FROM tab2 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-470
SELECT DISTINCT + col2 DIV 9 + - 94 + - 62 AS col0 FROM tab1
----
-146
-149
-150

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT + col2 / 9 + - 94 + - 62 AS col0 FROM tab1
----
-146
-149
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT ALL - col2 + - col0 + - 30 DIV 8 AS col2 FROM tab2
----
-107
-136
-72

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL - col2 + - col0 + - 30 / 8 AS col2 FROM tab2
----
-107
-136
-72

query I rowsort
SELECT 42 - - 70 * - col0 FROM tab2
----
-3178
-4438
-5208

query I rowsort
SELECT DISTINCT ( + 77 ) - - col2 * + - col0 AS col1 FROM tab2
----
-2483
-4273
-981

query I rowsort
SELECT col0 * + 72 - + col0 + - col1 AS col0 FROM tab2
----
3215
4467
5258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-475
SELECT DISTINCT COUNT( * ) DIV + 86 DIV + 2 FROM tab2 WHERE 44 IS NULL AND col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT COUNT ( * ) / + 86 / + 2 FROM tab2 WHERE 44 IS NULL AND col0 IS NULL
----
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-477
SELECT ALL + col2 AS col0, col2 DIV - col0 FROM tab0
----
10
0
47
-3
99
-1

skipif mysql # not compatible
query II rowsort label-477
SELECT ALL + col2 AS col0, col2 / - col0 FROM tab0
----
10
0
47
-3
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-478
SELECT col0 DIV + col0 - + 66 FROM tab0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-478
SELECT col0 / + col0 - + 66 FROM tab0
----
-65
-65
-65

query I rowsort
SELECT + col2 + - col0 * + + ( - - col1 ) AS col2 FROM tab2 cor0
----
-2323
-4888
-4967

query I rowsort
SELECT ALL + 88 - - col1 FROM tab0 AS cor0
----
109
169
89

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT MIN( DISTINCT ( - 5 ) ) AS col0 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-483
SELECT MIN ( DISTINCT ( - 5 ) ) AS col0 FROM tab0
----
-5

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col0 + - 86
----

query I rowsort
SELECT 87 + - col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

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

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

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

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

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

query I rowsort
SELECT 34 * - 7 AS col0 FROM tab2
----
-238
-238
-238

onlyif mysql # DIV for integer division: 
query I rowsort label-492
SELECT ALL col0 DIV 51 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL col0 / 51 AS col0 FROM tab0
----
0
1
1

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

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

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

query I rowsort
SELECT DISTINCT - 24 * - col0 FROM tab1 AS cor0
----
1224
2040
2184

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

query I rowsort
SELECT + 3 * col1 FROM tab2
----
153
201
231

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT DISTINCT - ( - COUNT( * ) ) col1 FROM tab2
----
3

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

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

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

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NULL <> col2
----

query I rowsort
SELECT ALL + col0 * - col0 + + 94 AS col1 FROM tab0 AS cor0
----
-131
-7475
-9315

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-502
SELECT ALL ( - - CAST( NULL AS DECIMAL ) ) * + + 39 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL ( - - CAST ( NULL AS REAL ) ) * + + 39 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 + 61 FROM tab1 AS cor0
----
18
18
18

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

query I rowsort
SELECT - col2 + ( col1 ) - + col0 + col1 AS col1 FROM tab2 cor0
----
1
33
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-507
SELECT DISTINCT + - col0 + - + col2 + + 90 + - 38 DIV col2 FROM tab0 AS cor0
----
-10
-106
28

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT + - col0 + - + col2 + + 90 + - 38 / col2 FROM tab0 AS cor0
----
-10
-106
28

onlyif mysql # DIV for integer division: 
query I rowsort label-508
SELECT - + col0 + - 72 + + 27 DIV col2 col0 FROM tab2 AS cor0
----
-117
-136
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-508
SELECT - + col0 + - 72 + + 27 / col2 col0 FROM tab2 AS cor0
----
-117
-136
-147

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

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

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

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

query I rowsort
SELECT + 33 + 13 AS col1 FROM tab2 cor0
----
46
46
46

query II rowsort
SELECT - ( - 76 ) * - col0 + - col0 - + + ( + col2 ) + - + col2, - col2 AS col0 FROM tab1
----
-4119
-96
-6663
-59
-7143
-68

query I rowsort
SELECT + col0 * + 11 * col2 FROM tab2
----
11638
28160
47850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - + col2 - - - 52 * - - col2 col1 FROM tab2
----
-1122
-1963
-2891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-516
SELECT ALL col1 + + CAST( col0 AS SIGNED ) FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL col1 + + CAST ( col0 AS INTEGER ) FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT - col2 * - - 33 - + 27 FROM tab1
----
-1974
-2271
-3195

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - MIN( col1 ) * - 69 AS col0 FROM tab1 AS cor0
----
345

skipif mysql # not compatible
query I rowsort label-520
SELECT - MIN ( col1 ) * - 69 AS col0 FROM tab1 AS cor0
----
345

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

skipif mysql # not compatible
query II rowsort label-521
SELECT + 11 * - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-33
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, + 47 col1 FROM tab1 AS cor0
----
-59
47
-68
47
-96
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 79 NOT IN ( col1 * + + 66 - - 11, 55 + - 64, col1 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-524
SELECT 18 AS col2, + COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
18
6

skipif mysql # not compatible
query II rowsort label-524
SELECT 18 AS col2, + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
18
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-526
SELECT + ( + CAST( - col2 AS SIGNED ) ) AS col0, + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-59
26
-68
23
-96
-45

skipif mysql # not compatible
query II rowsort label-526
SELECT + ( + CAST ( - col2 AS INTEGER ) ) AS col0, + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-59
26
-68
23
-96
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT COUNT( * ) * + 8 + + + SUM( + 24 ) * + - 47 AS col1 FROM tab1 AS cor0
----
-3360

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT COUNT ( * ) * + 8 + + + SUM ( + 24 ) * + - 47 AS col1 FROM tab1 AS cor0
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT COUNT( DISTINCT + + 39 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-528
SELECT COUNT ( DISTINCT + + 39 ) col2 FROM tab0 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + + COUNT ( * ) / + 28 FROM tab2 cor0
----
0

query I rowsort
SELECT - col0 * + col1 * col1 * - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-383670
-4625505
-9603

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 13 * + + col2 * 21 * col0 / + col1 + - + 75 * col2 + - 78 - - ( + - col0 ) + - 74 + + col2 ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT + CAST ( + ( + 65 ) AS INTEGER ) FROM tab2
----
65

query I rowsort
SELECT ALL - col0 + - + ( - col2 ) AS col2 FROM tab2
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT - COUNT( * ) * + 95 * + - 37 * + 48 AS col2 FROM tab0
----
506160

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT - COUNT ( * ) * + 95 * + - 37 * + 48 AS col2 FROM tab0
----
506160

onlyif mysql # aggregate syntax: 
query I rowsort label-536
SELECT COUNT( * ) * ( - 57 ) FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-536
SELECT COUNT ( * ) * ( - 57 ) FROM tab2
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-537
SELECT DISTINCT + + COUNT( * ), - 85 * - 11 col1 FROM tab0 AS cor0 WHERE col1 / 67 * - CAST( NULL AS SIGNED ) * - + col2 / - CAST( NULL AS SIGNED ) >= NULL
----
0
935

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-537
SELECT DISTINCT + + COUNT ( * ), - 85 * - 11 col1 FROM tab0 AS cor0 WHERE col1 / 67 * - CAST ( NULL AS INTEGER ) * - + col2 / - CAST ( NULL AS INTEGER ) >= NULL
----
0
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-538
SELECT ALL - - 55 DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL - - 55 / - COUNT ( * ) AS col1 FROM tab0 cor0
----
-18

query I rowsort
SELECT DISTINCT col0 + - + ( 26 ) * + col1 FROM tab2 cor0
----
-1280
-1667
-1938

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-542
SELECT col2 + - CAST ( NULL AS REAL ) + + + col1 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-543
SELECT DISTINCT - col0 DIV + - col0 + + 12 + + col0 * - col0 AS col0, col0 * - col2 AS col0 FROM tab2
----
-2103
-1058
-4083
-2560
-5612
-4350

skipif mysql # not compatible
query II rowsort label-543
SELECT DISTINCT - col0 / + - col0 + + 12 + + col0 * - col0 AS col0, col0 * - col2 AS col0 FROM tab2
----
-2103
-1058
-4083
-2560
-5612
-4350

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

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

query I rowsort
SELECT 26 * - - 98 FROM tab1 AS cor0
----
2548
2548
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL - 87 * - SUM( ALL + - 24 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6264

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL - 87 * - SUM ( ALL + - 24 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT MAX( - 71 ) col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-548
SELECT MAX ( - 71 ) col2 FROM tab2 AS cor0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT ALL - 25 * + col0 DIV + col0 + - + col1 AS col1 FROM tab2
----
-102
-76
-92

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - 25 * + col0 / + col0 + - + col1 AS col1 FROM tab2
----
-102
-76
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT SUM( DISTINCT 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-552
SELECT SUM ( DISTINCT 94 ) FROM tab0
----
94

query I rowsort
SELECT + AVG ( + 13 ) AS col0 FROM tab2 WHERE NOT + ( col1 ) NOT BETWEEN ( - 32 ) AND col2
----
NULL

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT col0 IS NULL
----
46
64
75

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

query II rowsort
SELECT + - 50 AS col0, - col2 * + 16 + - col2 AS col0 FROM tab1 AS cor0
----
-50
-1003
-50
-1156
-50
-1632

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT ( - + 57 ) DIV + + col0 * + 4 AS col0 FROM tab0 WHERE NOT + col0 - - 13 < 89
----
0
0

skipif mysql # not compatible
query I rowsort label-557
SELECT ( - + 57 ) / + + col0 * + 4 AS col0 FROM tab0 WHERE NOT + col0 - - 13 < 89
----
0
0

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

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

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

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

query I rowsort
SELECT - ( - 4 ) FROM tab1 AS cor0
----
4
4
4

query II rowsort
SELECT - 25 + - col1 - + + col1 AS col1, col0 AS col2 FROM tab0
----
-187
15
-27
97
-67
87

query I rowsort
SELECT + 91 + + 51 * 94 FROM tab0
----
4885
4885
4885

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 30 * 57 IS NOT NULL
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-565
SELECT + COUNT ( * ) + COUNT ( * ) col1 FROM tab2
----
6

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

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - + MAX ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-47

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

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

query I rowsort
SELECT 29 * + col2 * 18 + - - 56 * - col2 AS col2 FROM tab0 AS cor0
----
21902
46134
4660

query I rowsort
SELECT ALL - - col2 + + - 73 FROM tab0 AS cor0
----
-26
-63
26

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + 39 + - - 80 + col1 BETWEEN NULL AND + - col1 / - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 31 - + - 38 AS col2 FROM tab0 AS cor0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-573
SELECT ALL + col1 DIV col1 - + 48 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + col1 / col1 - + 48 FROM tab2 AS cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT - + col1 * col2 + 44 DIV + col1 col1 FROM tab0 AS cor0
----
-208
-3807
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-574
SELECT - + col1 * col2 + 44 / + col1 col1 FROM tab0 AS cor0
----
-208
-3807
-55

query I rowsort
SELECT - col2 + ( - - col0 ) FROM tab0 AS cor0
----
-2
-32
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab2 AS cor0
----
24

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

query I rowsort
SELECT DISTINCT col1 * - 48 AS col1 FROM tab1
----
-2256
-240
-672

query I rowsort
SELECT DISTINCT 16 * + col1 AS col0 FROM tab1
----
224
752
80

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL COUNT( * ) * + + MIN( DISTINCT 13 ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL COUNT ( * ) * + + MIN ( DISTINCT 13 ) AS col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-582
SELECT + 63 * COUNT( * ) * + + 25 AS col0 FROM tab2 AS cor0
----
4725

skipif mysql # not compatible
query I rowsort label-582
SELECT + 63 * COUNT ( * ) * + + 25 AS col0 FROM tab2 AS cor0
----
4725

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-583
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) <> + 5
----

skipif mysql # not compatible
query III rowsort label-583
SELECT ALL * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> + 5
----

query I rowsort
SELECT DISTINCT - col2 * 62 AS col1 FROM tab2
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT SUM( ALL - - col0 ) + - COUNT( * ) FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-585
SELECT SUM ( ALL - - col0 ) + - COUNT ( * ) FROM tab0 AS cor0
----
196

query I rowsort
SELECT DISTINCT - - ( + 1 ) + + col0 FROM tab2 AS cor0 WHERE - ( + col0 ) + - + col1 IS NOT NULL
----
47
65
76

query II rowsort
SELECT + col1 AS col2, col0 - - col0 AS col0 FROM tab0 AS cor0
----
1
194
21
174
81
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL - CAST( - MAX( + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL - CAST ( - MAX ( + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
75

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

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

query I rowsort
SELECT DISTINCT + 99 + - - col1 + 18 + col0 FROM tab1 AS cor0
----
182
207
255

query I rowsort
SELECT ALL col1 + - 23 + col0 FROM tab0
----
73
75
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-593
SELECT * FROM tab0 WHERE col1 >= CAST( NULL AS SIGNED ) * - 22 + - col0 + + - 33
----

skipif mysql # not compatible
query III rowsort label-593
SELECT * FROM tab0 WHERE col1 >= CAST ( NULL AS INTEGER ) * - 22 + - col0 + + - 33
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-596
SELECT - ( + + col1 ) AS col2, col0 DIV + col2 FROM tab2
----
-51
2
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-596
SELECT - ( + + col1 ) AS col2, col0 / + col2 FROM tab2
----
-51
2
-67
1
-77
1

query I rowsort
SELECT - + col1 - - - 2 FROM tab2 AS cor0
----
-53
-69
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT DISTINCT COUNT( * ) * + 47 + - 77 col1 FROM tab2 cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-598
SELECT DISTINCT COUNT ( * ) * + 47 + - 77 col1 FROM tab2 cor0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-599
SELECT - MIN( - col2 ) + - COUNT( * ), - 83 AS col1 FROM tab0
----
96
-83

skipif mysql # not compatible
query II rowsort label-599
SELECT - MIN ( - col2 ) + - COUNT ( * ), - 83 AS col1 FROM tab0
----
96
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT - ( ( 19 ) ) - + - COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - ( ( 19 ) ) - + - COUNT ( * ) FROM tab2
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + - col0 col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT - SUM( col2 ) AS col1 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-602
SELECT - SUM ( col2 ) AS col1 FROM tab2 cor0
----
-121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT 68 * - col2 + + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT 68 * - col2 + + + col1 IS NULL
----
NULL

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT DISTINCT - AVG ( ALL CAST( NULL AS SIGNED ) ) * - 57 - MAX( col0 ) + + 82 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) * - 57 - MAX ( col0 ) + + 82 AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT ALL + CAST( + - 34 AS SIGNED ) * col2 AS col0 FROM tab2
----
-1360
-1972
-782

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + CAST ( + - 34 AS INTEGER ) * col2 AS col0 FROM tab2
----
-1360
-1972
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-611
SELECT DISTINCT - col0 DIV col0 * - 67 AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT - col0 / col0 * - 67 AS col0 FROM tab2
----
67

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

skipif mysql # not compatible
query I rowsort label-612
SELECT + CAST ( - 27 AS INTEGER ) FROM tab0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT COUNT( * ) * - 78 AS col0 FROM tab0 WHERE NOT - 92 BETWEEN NULL AND + - col1
----
0

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT COUNT ( * ) * - 78 AS col0 FROM tab0 WHERE NOT - 92 BETWEEN NULL AND + - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT + MAX( 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + MAX ( 20 ) FROM tab0
----
20

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT DISTINCT - COUNT( * ) DIV - 67 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - COUNT ( * ) / - 67 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT ALL - 2 DIV col1 col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-618
SELECT ALL - 2 / col1 col2 FROM tab0
----
-2
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-619
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 80 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT CAST ( NULL AS REAL ) / - 80 FROM tab2
----
NULL

query I rowsort
SELECT + + ( - 69 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

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

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

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-40

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT ALL 42 AS col1 FROM tab0 cor0
----
42
42
42

query I rowsort
SELECT - + 86 * + - col0 FROM tab0 AS cor0
----
1290
7482
8342

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

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

query I rowsort
SELECT DISTINCT + + 18 + + - col2 AS col1 FROM tab2 AS cor0
----
-22
-40
-5

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

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

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

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

query I rowsort
SELECT - 67 + + 8 AS col0 FROM tab0 AS cor0
----
-59
-59
-59

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

query I rowsort
SELECT + col2 + 52 FROM tab1
----
111
120
148

query I rowsort
SELECT ALL col0 + 1 * - ( + + 79 ) FROM tab0
----
-64
18
8

query I rowsort
SELECT DISTINCT 65 + col1 AS col1 FROM tab1
----
112
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ALL + COUNT( * ) + + + 69 AS col1 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL + COUNT ( * ) + + + 69 AS col1 FROM tab2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT ALL col0 DIV - col2 - - - col0 + + + col2 FROM tab1
----
-24
-27
45

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL col0 / - col2 - - - col0 + + + col2 FROM tab1
----
-24
-27
45

query II rowsort
SELECT - 26 * + + 45, col2 AS col2 FROM tab2 AS cor0
----
-1170
23
-1170
40
-1170
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 65 col0, 94 FROM tab2 AS cor0
----
65
94
65
94
65
94

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 <> - col0
----

query I rowsort
SELECT DISTINCT col1 + + + col1 FROM tab2
----
102
134
154

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

skipif mysql # not compatible
query I rowsort label-643
SELECT DISTINCT + col2 / 89 + + + 0 FROM tab0
----
0
1

query II rowsort
SELECT + + ( + 92 ) AS col1, 14 AS col1 FROM tab0 AS cor0
----
92
14
92
14
92
14

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

query I rowsort
SELECT ALL col2 * + col1 * 46 * 78 FROM tab2 AS cor0
----
11051040
13942968
4208724

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-649
SELECT - + col2 + - col1 + + CAST( NULL AS SIGNED ) / - - 4 FROM tab2 WHERE NOT ( NOT - 35 - - col1 * + col1 IS NOT NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-649
SELECT - + col2 + - col1 + + CAST ( NULL AS INTEGER ) / - - 4 FROM tab2 WHERE NOT ( NOT - 35 - - col1 * + col1 IS NOT NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT 45 * - + col2 AS col1 FROM tab1
----
-2655
-3060
-4320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( NOT ( ( NOT + col2 > NULL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-652
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( NOT ( ( NOT + col2 > NULL ) ) )
----
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 77 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT - 92, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-92
3

skipif mysql # not compatible
query II rowsort label-655
SELECT - 92, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-92
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED ) + CAST( + 98 AS SIGNED ) * - COUNT( * ) FROM tab1
----
-297

skipif mysql # not compatible
query I rowsort label-657
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER ) + CAST ( + 98 AS INTEGER ) * - COUNT ( * ) FROM tab1
----
-297

query I rowsort
SELECT ALL - ( 49 ) * + col2 FROM tab1
----
-2891
-3332
-4704

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT col0 DIV 67 + - ( col0 ) AS col2 FROM tab1
----
-51
-84
-90

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT col0 / 67 + - ( col0 ) AS col2 FROM tab1
----
-51
-84
-90

query I rowsort
SELECT - col1 * + ( col2 * col2 ) AS col2 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT 39 * + col1 - 46 AS col1 FROM tab1
----
149
1787
500

query I rowsort
SELECT DISTINCT 79 * 21 FROM tab1
----
1659

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT DISTINCT COUNT( * ) * + 16 AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT COUNT ( * ) * + 16 AS col1 FROM tab0
----
48

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-670
SELECT - col1 - col0 FROM tab0 WHERE NOT ( NULL ) = ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-670
SELECT - col1 - col0 FROM tab0 WHERE NOT ( NULL ) = ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col0 - 22 FROM tab1
----
29
63
69

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

query I rowsort
SELECT DISTINCT - 26 * - col2 FROM tab1
----
1534
1768
2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-674
SELECT ALL - 30 FROM tab2 WHERE NOT col2 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL - 30 FROM tab2 WHERE NOT col2 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT 93 - SUM( ALL + col2 ) FROM tab1
----
-130

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT 93 - SUM ( ALL + col2 ) FROM tab1
----
-130

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT 86 DIV ( col0 ) AS col1 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-677
SELECT 86 / ( col0 ) AS col1 FROM tab0
----
0
0
5

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

query I rowsort
SELECT ALL 83 + 76 FROM tab0
----
159
159
159

query I rowsort
SELECT ALL - col1 - col1 AS col1 FROM tab1 cor0
----
-10
-28
-94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT ALL COUNT( * ) - - 94 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL COUNT ( * ) - - 94 FROM tab1 AS cor0
----
97

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

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

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

query I rowsort
SELECT + 10 * + col1 + 42 FROM tab1 AS cor0
----
182
512
92

query I rowsort
SELECT 62 * - 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to d8136fdb075817e7ffd187642bdd54cd

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND col2 - - 84
----

query I rowsort
SELECT ALL col2 - col1 FROM tab1 WHERE col0 <= ( 28 )
----

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

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

query I rowsort
SELECT ALL col0 + 63 * 32 AS col2 FROM tab1 AS cor0 WHERE + col2 + col0 > col0
----
2067
2101
2107

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

skipif mysql # not compatible
query I rowsort label-692
SELECT CAST ( NULL AS INTEGER ) * + col1 + col2 * 13 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT - SUM( ALL 51 ) AS col2 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT - SUM ( ALL 51 ) AS col2 FROM tab2 AS cor0
----
-153

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 62 NOT IN ( 67 * + 64 + - col1 * 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 WHERE NOT - 64 + col2 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-697
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 64 + col2 IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT DISTINCT MIN( col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT MIN ( col1 ) FROM tab1
----
5

query I rowsort
SELECT + col2 * - 50 * - ( - 89 * col2 ) FROM tab2
----
-14969800
-2354050
-7120000

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= NULL OR NULL < col2 * - 69
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 * + 18 * 59 col1 FROM tab2
----
-70092
-70092
-70092

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

query I rowsort
SELECT + col0 * 52 AS col0 FROM tab1
----
2652
4420
4732

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT + 98 * + col2 NOT IN ( + col0 + col2 )
----

query I rowsort
SELECT ALL col2 * - + 1 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT 62 * + + 87 FROM tab2
----
5394
5394
5394

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT + 99 + + 35 + 51 * COUNT( * ) FROM tab0
----
287

skipif mysql # not compatible
query I rowsort label-709
SELECT + 99 + + 35 + 51 * COUNT ( * ) FROM tab0
----
287

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT 96 + - + MIN( ALL col0 ) AS col0 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT 96 + - + MIN ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
50

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-718
SELECT ALL 5 DIV + - 62 * + 39 * SUM( ALL - col1 * - CAST( - col0 * + col0 AS SIGNED ) ) + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL 5 / + - 62 * + 39 * SUM ( ALL - col1 * - CAST ( - col0 * + col0 AS INTEGER ) ) + - COUNT ( * ) FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col1 * + - 31 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 20 AND - - 20 * + col1
----

query I rowsort
SELECT ALL + col0 * + - 88 FROM tab2 cor0
----
-4048
-5632
-6600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT DISTINCT + CAST( - MAX( ALL - ( - col0 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT - COUNT( 82 ) + + + 36 AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-724
SELECT - COUNT ( 82 ) + + + 36 AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT - CAST( - ( + + col1 ) AS SIGNED ) + - 20 AS col2 FROM tab2 AS cor0
----
31
47
57

skipif mysql # not compatible
query I rowsort label-725
SELECT - CAST ( - ( + + col1 ) AS INTEGER ) + - 20 AS col2 FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT + ( + col1 ) + + 9 FROM tab1 AS cor0
----
14
23
56

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

query I rowsort
SELECT DISTINCT - - col2 + + - col1 + + col2 + + col2 * + col1 FROM tab1 AS cor0
----
1522
3285
408

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT + col0 DIV 65 + - 68 * col1 * col0 AS col0 FROM tab0
----
-124235
-6595
-82620

skipif mysql # not compatible
query I rowsort label-732
SELECT + col0 / 65 + - 68 * col1 * col0 AS col0 FROM tab0
----
-124235
-6595
-82620

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

query I rowsort
SELECT ALL 57 + + + 88 FROM tab0
----
145
145
145

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT ALL - 18 DIV + - col0 - - - 71 FROM tab2
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - 18 / + - col0 - - - 71 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT col0 + - 41 FROM tab1 WHERE ( + col1 ) < 53
----
10
44
50

query III rowsort
SELECT * FROM tab2 WHERE 51 <= - + 27
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT ALL ( - + MIN( + col2 ) ) - - + 22 col1 FROM tab1
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-739
SELECT ALL ( - + MIN ( + col2 ) ) - - + 22 col1 FROM tab1
----
-37

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + + 2 * col0 FROM tab1
----
4998
5185
6370

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col0 NOT IN ( col0 )
----

query I rowsort
SELECT + 23 / + - 6 + - col2 * 24 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

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

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

query I rowsort
SELECT + - col0 - - 2 AS col0 FROM tab2 AS cor0
----
-44
-62
-73

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

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

query I rowsort
SELECT col1 * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
1150
3040
3828

query I rowsort
SELECT + col2 * + - col2 + - - col1 FROM tab0 AS cor0
----
-2128
-79
-9800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-748
SELECT CAST( 36 AS SIGNED ) + 39 * + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-748
SELECT CAST ( 36 AS INTEGER ) + 39 * + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
36

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 68 ) NOT BETWEEN col2 * + + 31 AND col2
----

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

query I rowsort
SELECT + 9 * + + 86 * + + ( + - col2 ) FROM tab2 AS cor0
----
-17802
-30960
-44892

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-757
SELECT DISTINCT - CAST( NULL AS SIGNED ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-757
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

query I rowsort
SELECT ALL - + col0 * - + 79 AS col0 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT ALL 4 AS col2, MAX( DISTINCT - col2 ) * + 32 * - 85 AS col2 FROM tab1 AS cor0
----
4
160480

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL 4 AS col2, MAX ( DISTINCT - col2 ) * + 32 * - 85 AS col2 FROM tab1 AS cor0
----
4
160480

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 * - col0 FROM tab0
----
15
225
87
7569
97
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-762
SELECT ALL - col2 DIV col2 DIV + 32 + + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL - col2 / col2 / + 32 + + col1 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - col1 BETWEEN col2 AND NULL
----
51
14
96
91
47
68

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

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

query I rowsort
SELECT DISTINCT - 82 * + + col2 FROM tab0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT - 17 * + 25 * + COUNT( * ) FROM tab0
----
-1275

skipif mysql # not compatible
query I rowsort label-767
SELECT - 17 * + 25 * + COUNT ( * ) FROM tab0
----
-1275

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT COUNT( * ) AS col2, + 10 AS col2 FROM tab0 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-768
SELECT COUNT ( * ) AS col2, + 10 AS col2 FROM tab0 AS cor0
----
3
10

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

query I rowsort
SELECT - AVG ( DISTINCT - - col2 ) FROM tab0 WHERE NULL = + + col1
----
NULL

query I rowsort
SELECT col1 * + - col0 + + + col2 AS col2 FROM tab2
----
-2323
-4888
-4967

query II rowsort
SELECT ALL + col1 * + 31 AS col0, + 39 AS col0 FROM tab1
----
1457
39
155
39
434
39

query I rowsort
SELECT ALL - - 15 / col2 - col2 AS col1 FROM tab0 WHERE NOT 12 / - - ( - - col1 ) + + 20 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-775
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) * + - CAST( + + ( + SUM( col2 ) ) AS SIGNED ) AS col0 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) * + - CAST ( + + ( + SUM ( col2 ) ) AS INTEGER ) AS col0 FROM tab0
----
-468

query I rowsort
SELECT + col0 * col0 - col1 FROM tab0 cor0 WHERE - 89 NOT IN ( + 24 )
----
144
7548
9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT COUNT( * ) DIV - ( 40 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-777
SELECT COUNT ( * ) / - ( 40 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 85 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-1094
-366
-3927

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( + 54 ) NOT IN ( + col2 * 13 * col0 + - col0 * col1 ) )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 cor0 WHERE NOT ( - ( - - col2 ) * - - col1 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + col1 <= - 39
----

query I rowsort
SELECT - col2 - - + col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL col0 + - col2 + - col2 FROM tab2
----
-16
-41
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 / - col0 * - + 29 - col2 * + 17 NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT + col2 - - + col2 DIV ( + - 44 ) AS col1 FROM tab0
----
10
46
97

skipif mysql # not compatible
query I rowsort label-785
SELECT + col2 - - + col2 / ( + - 44 ) AS col1 FROM tab0
----
10
46
97

query I rowsort
SELECT + col2 + - col0 * - ( col1 ) + col1 + - 6 AS col2 FROM tab0
----
1337
1852
191

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

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL MAX ( ALL + CAST ( NULL AS INTEGER ) ) + + SUM ( + col1 ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 22 + - col0 + 13 > NULL
----

query I rowsort
SELECT col2 + + + 20 FROM tab0
----
119
30
67

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

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

query II rowsort
SELECT DISTINCT + - 63 AS col2, col2 - - col2 * - + 75 - - col1 FROM tab2 AS cor0
----
-63
-1651
-63
-2883
-63
-4225

query I rowsort
SELECT ALL + ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT 80 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) * + 89 <= NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= + col2
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-796
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN + - col1 AND ( - 27 * - col2 + - + col1 )
----

skipif mysql # not compatible
query III rowsort label-796
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN + - col1 AND ( - 27 * - col2 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT MAX( DISTINCT + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-797
SELECT MAX ( DISTINCT + col2 ) AS col2 FROM tab1
----
96

query I rowsort
SELECT ALL + 5 FROM tab0 WHERE NOT + 97 * col1 >= - 76
----

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

query I rowsort
SELECT ALL - col1 + + 23 FROM tab0
----
-58
2
22

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

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

skipif mysql # not compatible
query I rowsort label-802
SELECT + 7 + COUNT ( * ) FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-803
SELECT ALL CAST( - - 65 AS SIGNED ) / + + col1 col1 FROM tab0 WHERE NOT + + 9 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-803
SELECT ALL CAST ( - - 65 AS INTEGER ) / + + col1 col1 FROM tab0 WHERE NOT + + 9 < NULL
----

query I rowsort
SELECT ALL - 83 + + + col2 AS col2 FROM tab0 AS cor0
----
-36
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT MIN( DISTINCT - - 6 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-805
SELECT MIN ( DISTINCT - - 6 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - + 92 + - COUNT( * ) col1 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-807
SELECT - + 92 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT + 86 + ( + col1 ) FROM tab0 AS cor0
----
107
167
87

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT col1 + - col1 DIV + col0 FROM tab2 cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-809
SELECT col1 + - col1 / + col0 FROM tab2 cor0
----
50
67
76

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

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

query II rowsort
SELECT - ( + col1 ) + + 98 + + + col1 AS col1, + col2 AS col2 FROM tab1 AS cor0
----
98
59
98
68
98
96

query I rowsort
SELECT DISTINCT - col2 * + col0 * + 84 * - 45 + col1 FROM tab0
----
2664981
3288621
36299341

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT + ( + + COUNT( * ) ) FROM tab2 WHERE - 6 / - col0 BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT + ( + + COUNT ( * ) ) FROM tab2 WHERE - 6 / - col0 BETWEEN - col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-814
SELECT DISTINCT - MAX( DISTINCT col2 ) + + MIN( + ( - - 6 ) ), MAX( - col2 ) AS col0 FROM tab2
----
-52
-23

skipif mysql # not compatible
query II rowsort label-814
SELECT DISTINCT - MAX ( DISTINCT col2 ) + + MIN ( + ( - - 6 ) ), MAX ( - col2 ) AS col0 FROM tab2
----
-52
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 49 col1 FROM tab2
----
-15
-26
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT + 39 FROM tab1 AS cor0 WHERE NOT NULL = ( col0 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-817
SELECT + 39 FROM tab1 AS cor0 WHERE NOT NULL = ( col0 + + CAST ( NULL AS INTEGER ) )
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT col2 + + - 59 * 12 DIV - + 85 AS col1 FROM tab2 AS cor0
----
31
48
66

skipif mysql # not compatible
query I rowsort label-820
SELECT col2 + + - 59 * 12 / - + 85 AS col1 FROM tab2 AS cor0
----
31
48
66

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT DISTINCT - 84 * - COUNT( DISTINCT - - col2 ) FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT - 84 * - COUNT ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
252

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 8 col1 FROM tab1 AS cor0
----
112
376
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT DISTINCT - COUNT( ALL 93 ) AS col0 FROM tab0 cor0 WHERE - col1 < + col0 + - CAST( NULL AS SIGNED ) * - col2 / col1 * + + 58 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - COUNT ( ALL 93 ) AS col0 FROM tab0 cor0 WHERE - col1 < + col0 + - CAST ( NULL AS INTEGER ) * - col2 / col1 * + + 58 * - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL + COUNT( * ) * - COUNT( * ) + 38 AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 38 AS col0 FROM tab1
----
29

query I rowsort
SELECT 68 * + col2 FROM tab0
----
3196
6732
680

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-827
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 60 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT CAST ( NULL AS REAL ) * - 60 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-828
SELECT col0 * 48 DIV 85 FROM tab2
----
25
36
42

skipif mysql # not compatible
query I rowsort label-828
SELECT col0 * 48 / 85 FROM tab2
----
25
36
42

query I rowsort
SELECT 75 * - col2 * + 94 FROM tab1
----
-415950
-479400
-676800

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + - col1 ) col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ( - col2 ) * col1 * + col0 AS col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-833
SELECT CAST( + 25 AS SIGNED ) * + + ( col0 ) FROM tab0
----
2175
2425
375

skipif mysql # not compatible
query I rowsort label-833
SELECT CAST ( + 25 AS INTEGER ) * + + ( col0 ) FROM tab0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query II rowsort label-834
SELECT ALL + 27 AS col1, COUNT( * ) AS col0 FROM tab2 WHERE - + col1 * - col1 - - 52 * - 46 IS NULL
----
27
0

skipif mysql # not compatible
query II rowsort label-834
SELECT ALL + 27 AS col1, COUNT ( * ) AS col0 FROM tab2 WHERE - + col1 * - col1 - - 52 * - 46 IS NULL
----
27
0

query I rowsort
SELECT col1 + - col2 + + - ( - col1 ) FROM tab2 AS cor0
----
114
76
79

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

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT DISTINCT + col0 DIV + - col2 + col0 DIV - 48 FROM tab0 cor0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + col0 / + - col2 + col0 / - 48 FROM tab0 cor0
----
-2
-9
0

query II rowsort
SELECT - col2 * + + col1 + + 90 AS col1, col1 AS col0 FROM tab2
----
-1083
51
-2990
77
-3796
67

query I rowsort
SELECT ALL col1 + ( + 93 ) AS col2 FROM tab2
----
144
160
170

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL + SUM( - - 27 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
243

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL + SUM ( - - 27 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT DISTINCT + 76 + - - SUM( + col2 ) AS col2 FROM tab1
----
299

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + 76 + - - SUM ( + col2 ) AS col2 FROM tab1
----
299

query I rowsort
SELECT ( 62 ) * + - 83 AS col2 FROM tab2 AS cor0
----
-5146
-5146
-5146

query I rowsort
SELECT + 49 - - 91 - - col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1498
3383
440

query II rowsort
SELECT DISTINCT + + 25 AS col0, - col2 FROM tab0 AS cor0
----
25
-10
25
-47
25
-99

query I rowsort
SELECT + col1 - 17 AS col0 FROM tab1 AS cor0
----
-12
-3
30

query I rowsort
SELECT DISTINCT - 32 * col2 FROM tab1 AS cor0
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query II rowsort label-847
SELECT ALL 10 AS col1, COUNT( * ) FROM tab0
----
10
3

skipif mysql # not compatible
query II rowsort label-847
SELECT ALL 10 AS col1, COUNT ( * ) FROM tab0
----
10
3

query II rowsort
SELECT - 82, col1 FROM tab0
----
-82
1
-82
21
-82
81

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE - col2 + - + col1 * col2 IS NOT NULL
----
59
68
96

query II rowsort
SELECT ALL - 97, - 39 * - col1 AS col2 FROM tab1
----
-97
1833
-97
195
-97
546

query I rowsort
SELECT DISTINCT + 31 * + col1 AS col2 FROM tab1 AS cor0
----
1457
155
434

query I rowsort
SELECT ALL 31 * - + 94 FROM tab1 AS cor0
----
-2914
-2914
-2914

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 NOT BETWEEN - col1 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + 66 / - + col1 > - col2 + - - col0
----
-59
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) AS col1, + COUNT( * ) FROM tab2 cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-855
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 cor0
----
-9
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-856
SELECT ALL + CAST( - - ( - + MAX( - + col0 ) ) AS SIGNED ) + + + COUNT( - col0 ) - + MIN( ALL - - 39 ) AS col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + CAST ( - - ( - + MAX ( - + col0 ) ) AS INTEGER ) + + + COUNT ( - col0 ) - + MIN ( ALL - - 39 ) AS col1 FROM tab0 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT col1 + ( CAST( col1 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-857
SELECT col1 + ( CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * + 50 + 4 col2 FROM tab0
----
4354
4854
754

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

query I rowsort
SELECT DISTINCT - 64 * + - col0 AS col0 FROM tab1
----
3264
5440
5824

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

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

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

query I rowsort
SELECT ALL ( 11 ) FROM tab0
----
11
11
11

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 11 >= - 81 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT DISTINCT - COUNT( * ) DIV - 62 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT - COUNT ( * ) / - 62 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 + 16 FROM tab1
----
21
30
63

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON - + 40 IS NULL
----

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

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

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

query I rowsort
SELECT ALL + 62 - col1 AS col2 FROM tab1 AS cor0
----
15
48
57

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-876
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 63 * col2 * + CAST( ( + 1 ) AS SIGNED ) * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-876
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 63 * col2 * + CAST ( ( + 1 ) AS INTEGER ) * col0 AND NULL
----

query I rowsort
SELECT + 18 * 17 * - 70 AS col2 FROM tab2 AS cor0
----
-21420
-21420
-21420

query I rowsort
SELECT - col0 * + 74 AS col2 FROM tab2 cor0
----
-3404
-4736
-5550

query I rowsort
SELECT - + 11 FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT 46 * + col2 AS col2 FROM tab0 AS cor0
----
2162
4554
460

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

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

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

query I rowsort
SELECT col2 * + - 80 AS col1 FROM tab1
----
-4720
-5440
-7680

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT col0 DIV 56 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-884
SELECT col0 / 56 FROM tab2
----
0
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-886
SELECT 41 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-886
SELECT 41 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL 71 * + 20 * col1 AS col2 FROM tab1
----
19880
66740
7100

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 5 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + COUNT( DISTINCT + 64 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-891
SELECT + COUNT ( DISTINCT + 64 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT + 63 + + col2 + - col2 FROM tab0
----
63
63
63

query I rowsort
SELECT + - col0 + + + 68 FROM tab1 AS cor0
----
-17
-23
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-894
SELECT + - 99 + COUNT( * ) + - 17 * 26 * + - CAST( + AVG ( ALL + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
9628

skipif mysql # not compatible
query I rowsort label-894
SELECT + - 99 + COUNT ( * ) + - 17 * 26 * + - CAST ( + AVG ( ALL + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
9628

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT 55 DIV + + 47 col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-896
SELECT 55 / + + 47 col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + + COUNT( DISTINCT - 98 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-897
SELECT + + COUNT ( DISTINCT - 98 ) FROM tab0 AS cor0
----
1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-899
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 col1, + 86 * - col2 FROM tab1
----
NULL
-5074
NULL
-5848
NULL
-8256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-899
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 col1, + 86 * - col2 FROM tab1
----
NULL
-5074
NULL
-5848
NULL
-8256

query I rowsort
SELECT ALL col2 * - - col2 * + col0 + - - 78 FROM tab0
----
33213
8778
950775

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT DISTINCT ( 59 ) + + COUNT( * ) AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT ( 59 ) + + COUNT ( * ) AS col2 FROM tab2
----
62

query I rowsort
SELECT col2 * + 77 FROM tab2
----
1771
3080
4466

query II rowsort
SELECT ALL + col1 AS col0, - col2 FROM tab2 WHERE - 98 + + col0 IS NOT NULL
----
51
-23
67
-58
77
-40

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 99 col0 FROM tab0
----
4653
9801
990

onlyif mysql # aggregate syntax: 
query II rowsort label-906
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * + + MAX( DISTINCT + col1 ) * + 61 + + COUNT( * ) + COUNT( * ) col2, + COUNT( * ) AS col0 FROM tab2
----
14094
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-906
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * + + MAX ( DISTINCT + col1 ) * + 61 + + COUNT ( * ) + COUNT ( * ) col2, + COUNT ( * ) AS col0 FROM tab2
----
14094
3

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT DISTINCT 44 DIV - + 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT 44 / - + 98 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-908
SELECT ALL - SUM( ALL - - col2 ) - + COUNT( - 53 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - SUM ( ALL - - col2 ) - + COUNT ( - 53 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL + 87 + - + col1 AS col0 FROM tab2 AS cor0
----
10
20
36

query II rowsort
SELECT col2, - 71 AS col1 FROM tab1
----
59
-71
68
-71
96
-71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT SUM( DISTINCT - + 53 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-913
SELECT SUM ( DISTINCT - + 53 ) FROM tab0
----
-53

query I rowsort
SELECT DISTINCT col1 * - 24 AS col2 FROM tab0
----
-1944
-24
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT SUM( ALL - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-915
SELECT SUM ( ALL - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT ALL - ( ( + col1 ) ) AS col2 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT - MIN( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-917
SELECT - MIN ( ALL - col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-918
SELECT DISTINCT + - 11 AS col2, MAX( - ( col1 ) ) FROM tab0 AS cor0
----
-11
-1

skipif mysql # not compatible
query II rowsort label-918
SELECT DISTINCT + - 11 AS col2, MAX ( - ( col1 ) ) FROM tab0 AS cor0
----
-11
-1

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-920
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND - CAST( 87 AS DECIMAL ) * - + 62
----

skipif mysql # not compatible
query III rowsort label-920
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 BETWEEN NULL AND - CAST ( 87 AS REAL ) * - + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT AVG ( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT - col1 DIV - - 29 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-923
SELECT - col1 / - - 29 FROM tab2
----
-1
-2
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 * + - col2 IS NULL OR NOT NULL BETWEEN NULL AND - col2 + - 95
----
3

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 * + - col2 IS NULL OR NOT NULL BETWEEN NULL AND - col2 + - 95
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-926
SELECT DISTINCT + ( ( + CAST( - - 55 AS SIGNED ) ) ) * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * - 98, - 78 AS col0, + 55 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-926
SELECT DISTINCT + ( ( + CAST ( - - 55 AS INTEGER ) ) ) * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * - 98, - 78 AS col0, + 55 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-927
SELECT col1 * + col0, col1 + + col0 + 90 + - 67 / + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = + col1 * col2
----

skipif mysql # not compatible
query II rowsort label-927
SELECT col1 * + col0, col1 + + col0 + 90 + - 67 / + CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = + col1 * col2
----

query II rowsort
SELECT ALL - col2 + - col2, col1 AS col2 FROM tab2 AS cor0
----
-116
67
-46
51
-80
77

query I rowsort
SELECT ( 96 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT 23 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT DISTINCT col1 * + + 57 AS col0 FROM tab1 AS cor0
----
2679
285
798

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 87 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT DISTINCT - ( - ( + COUNT( ALL + 60 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, + 49 + - col0, - col1 * + col0 + col2 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT - ( - ( + COUNT ( ALL + 60 ) ) ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0, + 49 + - col0, - col1 * + col0 + col2 * + col1 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-935
SELECT - col2 DIV + + 28 + + 99 + col2 + - 73 + - col0 AS col0 FROM tab1 AS cor0
----
-2
1
68

skipif mysql # not compatible
query I rowsort label-935
SELECT - col2 / + + 28 + + 99 + col2 + - 73 + - col0 AS col0 FROM tab1 AS cor0
----
-2
1
68

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT - - col2 DIV - 94 + + 95 + + col0 + + - col1 AS col1 FROM tab0 cor0
----
161
190
29

skipif mysql # not compatible
query I rowsort label-936
SELECT - - col2 / - 94 + + 95 + + col0 + + - col1 AS col1 FROM tab0 cor0
----
161
190
29

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col1 > NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-941
SELECT ALL col0 + - CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-941
SELECT ALL col0 + - CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * 42 FROM tab2 AS cor0
----
1680
2436
966

query I rowsort
SELECT ( - col1 ) - - col2 FROM tab1 cor0
----
21
54
82

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

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT 92 >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + 11 AS col1 FROM tab2
----
561
737
847

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 23 * 37 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 96 > NULL
----

query I rowsort
SELECT + - 88 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL 42 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT ALL - - COUNT( * ) * 56 FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL - - COUNT ( * ) * 56 FROM tab2 AS cor0
----
168

query II rowsort
SELECT - col1 * - + col2, col1 + + + 38 AS col1 FROM tab2 AS cor0
----
1173
89
3080
115
3886
105

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

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

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

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

query I rowsort
SELECT col0 * - col1 + + col0 + + 2 FROM tab1 cor0
----
-338
-4184
-661

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

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

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

query I rowsort
SELECT - 8 * + col1 FROM tab2 AS cor0
----
-408
-536
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-961
SELECT DISTINCT - - 79 * + COUNT( * ) + - CAST( NULL AS SIGNED ) - 70 / 13 col2 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 48 IN ( - col1, - col2, - col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-964
SELECT DISTINCT 18 + col0 DIV + ( - + CAST( + + col0 AS SIGNED ) ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT 18 + col0 / + ( - + CAST ( + + col0 AS INTEGER ) ) FROM tab1
----
17

query I rowsort
SELECT + 17 + + col1 AS col1 FROM tab1 WHERE 39 * + col1 * - + col0 NOT IN ( - 74, 0 )
----
22
31
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * + col0 + + col1 col0 FROM tab0
----
5241
5821
981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT - ( - 32 ) * - + CAST( - 41 AS SIGNED ) + ( - - 80 ) + - col2 * + - col1 * col2 + - col2 FROM tab2
----
124552
226722
28348

skipif mysql # not compatible
query I rowsort label-967
SELECT - ( - 32 ) * - + CAST ( - 41 AS INTEGER ) + ( - - 80 ) + - col2 * + - col1 * col2 + - col2 FROM tab2
----
124552
226722
28348

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 + - + col2 col0 FROM tab0 AS cor0
----
2162
90
9702

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

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

skipif mysql # not compatible
query I rowsort label-971
SELECT - 78 / - ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
-26

query I rowsort
SELECT ALL 54 + col1 FROM tab2 AS cor0
----
105
121
131

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 < - ( - ( - + 17 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-975
SELECT + 4 * - + CAST( NULL AS SIGNED ) - - - COUNT( DISTINCT + - col0 ) - + ( 80 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-975
SELECT + 4 * - + CAST ( NULL AS INTEGER ) - - - COUNT ( DISTINCT + - col0 ) - + ( 80 ) col2 FROM tab1
----
NULL

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

query I rowsort
SELECT + col0 + - 56 AS col0 FROM tab2 WHERE + + 2 IS NOT NULL
----
-10
19
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-978
SELECT + 12 DIV + COUNT( * ) - 88 * 50 FROM tab1
----
-4396

skipif mysql # not compatible
query I rowsort label-978
SELECT + 12 / + COUNT ( * ) - 88 * 50 FROM tab1
----
-4396

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

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 FROM tab2
----
23
51
40
77
58
67

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

query I rowsort
SELECT ALL + - col2 - + + col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT - CAST( - col0 AS SIGNED ) * + col0 + + col2 FROM tab2 AS cor0
----
2139
4136
5683

skipif mysql # not compatible
query I rowsort label-983
SELECT - CAST ( - col0 AS INTEGER ) * + col0 + + col2 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT ALL 93 AS col2 FROM tab0 cor0 WHERE NOT + 59 / - col0 * - 42 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - MAX ( ALL col2 ) AS col2 FROM tab0 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT + SUM( - col0 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-990
SELECT + SUM ( - col0 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * col1 col0 FROM tab1 cor0
----
-1316
-140
-392

query I rowsort
SELECT + - 88 * - col2 FROM tab0 AS cor0
----
4136
8712
880

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NOT - + 52 IS NOT NULL
----

query I rowsort
SELECT + col2 * col2 * col2 FROM tab1
----
205379
314432
884736

query II rowsort
SELECT + col2 * - ( - 53 ) AS col0, ( 0 ) FROM tab0
----
2491
0
5247
0
530
0

query II rowsort
SELECT DISTINCT + col0 - + + ( col2 ) + 58 AS col2, - col0 AS col1 FROM tab1 WHERE NOT - col0 - 83 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * col0 + + - col2 FROM tab1
----
366
4209
618

query I rowsort
SELECT + 10 FROM tab0 WHERE NOT NULL <= - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 5 = NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1003
SELECT DISTINCT + - col2 * - + CAST( NULL AS DECIMAL ) + + 11 + + 74 * + - col0 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT + - col2 * - + CAST ( NULL AS REAL ) + + 11 + + 74 * + - col0 AS col1 FROM tab0 cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT ALL + - 2 * - COUNT( * ) AS col1, - 92 AS col0 FROM tab2 AS cor0
----
6
-92

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL + - 2 * - COUNT ( * ) AS col1, - 92 AS col0 FROM tab2 AS cor0
----
6
-92

query I rowsort
SELECT + ( - 52 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= 93
----

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

query I rowsort
SELECT DISTINCT + 14 * + 66 FROM tab0
----
924

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT ( 9 ) * - 9 * - CAST( - col1 AS SIGNED ) + + col0 AS col2 FROM tab2
----
-4085
-5352
-6173

skipif mysql # not compatible
query I rowsort label-1011
SELECT ( 9 ) * - 9 * - CAST ( - col1 AS INTEGER ) + + col0 AS col2 FROM tab2
----
-4085
-5352
-6173

query I rowsort
SELECT ALL + + col2 - 98 AS col2 FROM tab0 AS cor0
----
-51
-88
1

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

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

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

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

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

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

query I rowsort
SELECT + - 29 + - col2 AS col2 FROM tab0 AS cor0
----
-128
-39
-76

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE - 0 * ( 63 ) + + 59 IS NULL
----

query I rowsort
SELECT ALL - 38 AS col2 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 84 + col0 - - + 18 * - col1 * - - 4 AS col1 FROM tab0 AS cor0
----
-1341
-5733
109

query II rowsort
SELECT DISTINCT + col0 * 82 + - col1 AS col1, + col1 * - - col2 AS col2 FROM tab2 AS cor0
----
3721
1173
5171
3080
6083
3886

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

query I rowsort
SELECT DISTINCT col2 * + + 88 * 24 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL MAX( DISTINCT + 89 ) + + COUNT( * ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL MAX ( DISTINCT + 89 ) + + COUNT ( * ) FROM tab0
----
92

query I rowsort
SELECT + + col1 FROM tab0 WHERE + - 48 / - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - + ( ( MIN( + + 89 ) ) ) * + 17 + 14 AS col2 FROM tab0 WHERE - + 27 * + col0 * ( + - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - + ( ( MIN ( + + 89 ) ) ) * + 17 + 14 AS col2 FROM tab0 WHERE - + 27 * + col0 * ( + - col0 ) IS NULL
----
NULL

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

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

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

query I rowsort
SELECT ALL - - col0 + - col0 FROM tab0 AS cor0 WHERE 43 > 24 + + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1029
SELECT ALL - col1 * - - CAST( + - col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL - col1 * - - CAST ( + - col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
2601
4489
5929

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT DISTINCT 34 * - 67 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-116178
-193630
-207298

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

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

query I rowsort
SELECT ALL - col2 * + - col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL CAST( - + col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL CAST ( - + col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1036
SELECT COUNT( * ) AS col2, 64 FROM tab0 AS cor0
----
3
64

skipif mysql # not compatible
query II rowsort label-1036
SELECT COUNT ( * ) AS col2, 64 FROM tab0 AS cor0
----
3
64

query I rowsort
SELECT - 41 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 col0, + col1, - + col1 FROM tab2
----
9 values hashing to ca74fd236cdc5039be92d4edee62f250

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT ALL - MIN( - ( + 35 ) ) * - + COUNT( * ) + + ( + COUNT( ALL - + col1 ) ) - - - 93 AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - MIN ( - ( + 35 ) ) * - + COUNT ( * ) + + ( + COUNT ( ALL - + col1 ) ) - - - 93 AS col0 FROM tab2
----
-195

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1041
SELECT - 80, COUNT( * ) * + - 37 AS col2 FROM tab0
----
-80
-111

skipif mysql # not compatible
query II rowsort label-1041
SELECT - 80, COUNT ( * ) * + - 37 AS col2 FROM tab0
----
-80
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 * + col1 col2 FROM tab1
----
1175
125
350

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

query I rowsort
SELECT + col0 * - 70 FROM tab1 AS cor0
----
-3570
-5950
-6370

query I rowsort
SELECT ALL + - 12 * col1 * col0 AS col2 FROM tab1 cor0
----
-5100
-51324
-8568

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

query I rowsort
SELECT ALL + - col0 FROM tab0 AS cor0 WHERE NULL = - 42
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1048
SELECT DISTINCT - + 30 + + col0 DIV CAST( - col0 AS SIGNED ) * ( + col0 ) * + 13 * - + col2 - + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
63714
65224
80482

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - + 30 + + col0 / CAST ( - col0 AS INTEGER ) * ( + col0 ) * + 13 * - + col2 - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
63714
65224
80482

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL + 51 * - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-459

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + 51 * - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT COUNT( * ) FROM tab0 WHERE + 72 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1050
SELECT COUNT ( * ) FROM tab0 WHERE + 72 >= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1051
SELECT - col1 * - 87, + 9 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
4437
-459
5829
-603
6699
-693

skipif mysql # not compatible
query II rowsort label-1051
SELECT - col1 * - 87, + 9 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
4437
-459
5829
-603
6699
-693

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN - col2 AND col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT DISTINCT col1 / - col1 * + CAST( NULL AS SIGNED ) - - 36 + col1 + - 53 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT col1 / - col1 * + CAST ( NULL AS INTEGER ) - - 36 + col1 + - 53 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 1 + - col0 + + col1 * - 76 FROM tab0 cor0
----
-1682
-172
-6170

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 46 = + col2
----

query I rowsort
SELECT ALL - 32 + + col0 + col1 + + + col1 * - 64 FROM tab2
----
-3199
-4178
-4819

query II rowsort
SELECT ALL 26, - 55 AS col2 FROM tab2
----
26
-55
26
-55
26
-55

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

query II rowsort
SELECT col2 * + col1 * + 71 AS col2, 4 AS col0 FROM tab2
----
218680
4
275906
4
83283
4

query II rowsort
SELECT + col0 AS col0, col1 * + + 75 FROM tab1 cor0
----
51
1050
85
375
91
3525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col1, + col2 * + col2 FROM tab1 cor0
----
-59
3481
-68
4624
-96
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT + col2 DIV col1 * - 79 FROM tab0
----
-7821
0
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT + col2 / col1 * - 79 FROM tab0
----
-7821
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL + SUM( ALL - col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL + SUM ( ALL - col0 ) AS col1 FROM tab0
----
-199

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + ( col1 ) + 2 + + col1 * - - 58 AS col1 FROM tab0 AS cor0
----
1220
4700
60

query II rowsort
SELECT ALL + col2 + + col2, col1 FROM tab2 AS cor0
----
116
67
46
51
80
77

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

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

query I rowsort
SELECT col2 * + 33 * + col2 + + col0 AS col0 FROM tab2
----
111087
17503
52864

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1073
SELECT 83 DIV + col0 + + + col2 + - CAST( 51 AS SIGNED ) col2, col2 FROM tab2
----
-10
40
-27
23
8
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1073
SELECT 83 / + col0 + + + col2 + - CAST ( 51 AS INTEGER ) col2, col2 FROM tab2
----
-10
40
-27
23
8
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1074
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1075
SELECT + col0 AS col2, 49 DIV col2 - - 58 col0 FROM tab0 AS cor0
----
15
59
87
62
97
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1075
SELECT + col0 AS col2, 49 / col2 - - 58 col0 FROM tab0 AS cor0
----
15
59
87
62
97
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col1 FROM tab2 AS cor0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1077
SELECT + 53 DIV + - 6 * + - col1 DIV - ( - col1 ) FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1077
SELECT + 53 / + - 6 * + - col1 / - ( - col1 ) FROM tab1 AS cor0
----
8
8
8

query III rowsort
SELECT * FROM tab1 WHERE + 2 + - col1 + - - 12 BETWEEN col0 AND + col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT + SUM( ALL - 36 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT + SUM ( ALL - 36 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col2 - - 73 + - col0 FROM tab0 AS cor0
----
-4
105
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT DISTINCT CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT ( ( col2 ) ) DIV 75 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1085
SELECT ( ( col2 ) ) / 75 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT MAX( ALL + + 15 ) * + MAX( ALL + + 8 ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1086
SELECT MAX ( ALL + + 15 ) * + MAX ( ALL + + 8 ) FROM tab2 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT 62 DIV col1 AS col1 FROM tab1
----
1
12
4

skipif mysql # not compatible
query I rowsort label-1087
SELECT 62 / col1 AS col1 FROM tab1
----
1
12
4

query I rowsort
SELECT DISTINCT - ( - 90 ) AS col1 FROM tab2 WHERE + + col0 * + + col2 * 7 + + + 79 + col0 NOT IN ( + + 96, col1 )
----
90

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT + ( + COUNT ( - ( - - 43 ) ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT + col1 * - col0 + - - 76 + - col0 + 82 * - ( col1 ) FROM tab1 AS cor0
----
-1837
-8146
-844

query II rowsort
SELECT ALL - - 3 AS col1, col1 FROM tab1 AS cor0
----
3
14
3
47
3
5

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL - col0 * 20 FROM tab2 cor0 WHERE ( - + col0 ) * CAST( - 8 AS SIGNED ) IS NOT NULL
----
-1280
-1500
-920

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - col0 * 20 FROM tab2 cor0 WHERE ( - + col0 ) * CAST ( - 8 AS INTEGER ) IS NOT NULL
----
-1280
-1500
-920

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

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

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

query II rowsort
SELECT DISTINCT col1 + - + col1 * - + col0, col0 FROM tab0 AS cor0
----
1296
15
1848
87
98
97

query I rowsort
SELECT - 14 * 37 * 55 + - col1 - + 71 FROM tab2 WHERE - + 76 > ( NULL )
----

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

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

query I rowsort
SELECT ALL + 51 / - col2 AS col1 FROM tab1 WHERE - 7 IS NULL
----

query I rowsort
SELECT ALL 33 + col0 FROM tab1
----
118
124
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 40 <= NULL
----

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

query I rowsort
SELECT DISTINCT + 98 + - col0 + + col2 FROM tab1 AS cor0
----
143
72
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT ALL - + col2 + + 3 DIV - - 97 FROM tab2 WHERE ( + 82 IS NOT NULL )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - + col2 + + 3 / - - 97 FROM tab2 WHERE ( + 82 IS NOT NULL )
----
-23
-40
-58

query I rowsort
SELECT - 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col2 NOT IN ( - col1 * - col1 * - 61 - + 60, - col0, + col2, + - col1, + - 39 * - + 25 )
----
3

skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col2 NOT IN ( - col1 * - col1 * - 61 - + 60, - col0, + col2, + - col1, + - 39 * - + 25 )
----
3

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

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

query I rowsort
SELECT ALL + + 76 FROM tab2 cor0
----
76
76
76

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

skipif mysql # not compatible
query I rowsort label-1116
SELECT - ( - COUNT ( * ) ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL + MAX( ALL col2 ) * + 75 + - 10 AS col2 FROM tab1 AS cor0
----
7190

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + MAX ( ALL col2 ) * + 75 + - 10 AS col2 FROM tab1 AS cor0
----
7190

query I rowsort
SELECT + + col2 * 96 * - col0 FROM tab0 AS cor0
----
-67680
-83520
-921888

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

query I rowsort
SELECT - col0 * 64 AS col0 FROM tab1
----
-3264
-5440
-5824

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT + COUNT( * ), + 30 AS col2 FROM tab0
----
3
30

skipif mysql # not compatible
query II rowsort label-1122
SELECT + COUNT ( * ), + 30 AS col2 FROM tab0
----
3
30

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col0 + - 48 IS NOT NULL
----

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

query II rowsort
SELECT ALL - + ( 50 ), col0 FROM tab0 cor0
----
-50
15
-50
87
-50
97

query I rowsort
SELECT DISTINCT - col2 * + ( + - 66 ) * - ( - + col1 ) + - 24 AS col2 FROM tab2 cor0
----
203256
256452
77394

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

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL col0 / + - col1 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT col0 DIV + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1128
SELECT col0 / + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL MIN( DISTINCT + col0 ) + MIN( + 94 ) FROM tab2 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL MIN ( DISTINCT + col0 ) + MIN ( + 94 ) FROM tab2 AS cor0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1132
SELECT + CAST( - 22 AS SIGNED ) + 56 AS col0, col1 * + col2 FROM tab2 AS cor0
----
34
1173
34
3080
34
3886

skipif mysql # not compatible
query II rowsort label-1132
SELECT + CAST ( - 22 AS INTEGER ) + 56 AS col0, col1 * + col2 FROM tab2 AS cor0
----
34
1173
34
3080
34
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * - 9 * - 8 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT COUNT( * ) * + COUNT( * ) col2 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1134
SELECT COUNT ( * ) * + COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT ALL - ( + ( + COUNT( * ) ) ) + 18 AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL - ( + ( + COUNT ( * ) ) ) + 18 AS col0 FROM tab0
----
15

query I rowsort
SELECT - col1 + + 95 * + - 44 * - col0 + 55 - - 57 FROM tab1
----
213278
355407
380445

query I rowsort
SELECT - 41 + + col2 - - - col0 FROM tab1
----
-64
-67
4

query I rowsort
SELECT + col2 + - 36 AS col2 FROM tab2
----
-13
22
4

query I rowsort
SELECT DISTINCT col2 + - 4 FROM tab2
----
19
36
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT COUNT( * ) - 16 AS col0 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-1142
SELECT COUNT ( * ) - 16 AS col0 FROM tab0
----
-13

query III rowsort
SELECT * FROM tab0 WHERE ( + col2 ) <= ( col1 )
----
15
81
47
87
21
10

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT 58 + COUNT( DISTINCT ( col1 ) ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT 58 + COUNT ( DISTINCT ( col1 ) ) AS col1 FROM tab2
----
61

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 90 <= - col2 + + col0
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 6 BETWEEN ( col2 ) AND - 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1150
SELECT ALL CAST( + AVG ( + col2 ) AS SIGNED ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL CAST ( + AVG ( + col2 ) AS INTEGER ) AS col1 FROM tab1
----
74

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

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

query I rowsort
SELECT DISTINCT col1 - - ( 15 ) AS col0 FROM tab2
----
66
82
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL + COUNT( * ) + + SUM( DISTINCT - col2 + 32 ) FROM tab1
----
-124

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + COUNT ( * ) + + SUM ( DISTINCT - col2 + 32 ) FROM tab1
----
-124

query I rowsort
SELECT col2 / col0 FROM tab2 WHERE 0 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1157
SELECT ALL * FROM tab0 WHERE + 8 - col2 * col2 NOT BETWEEN NULL AND ( col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1157
SELECT ALL * FROM tab0 WHERE + 8 - col2 * col2 NOT BETWEEN NULL AND ( col0 * CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT ALL col0 + + 9 AS col2 FROM tab0
----
106
24
96

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

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

query I rowsort
SELECT ALL 34 * + col0 FROM tab0 AS cor0
----
2958
3298
510

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1163
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL + col2 * 75 FROM tab0 AS cor0
----
3525
7425
750

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

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

query I rowsort
SELECT 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE - 13 = NULL
----

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

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

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

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

query I rowsort
SELECT ALL + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - - MIN( col2 ) * COUNT( * ) FROM tab1 cor0
----
177

skipif mysql # not compatible
query I rowsort label-1171
SELECT - - MIN ( col2 ) * COUNT ( * ) FROM tab1 cor0
----
177

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT DISTINCT + COUNT( 51 ) FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT + COUNT ( 51 ) FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( CAST ( NULL AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 17 ) < - ( + col1 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT + MIN( col1 ) FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-1176
SELECT + MIN ( col1 ) FROM tab2 WHERE - ( + col0 ) IS NOT NULL
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * col2 ) IS NULL
----

query I rowsort
SELECT col1 - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
-21
-54
-82

query I rowsort
SELECT ALL col1 + - 20 FROM tab0
----
-19
1
61

query I rowsort
SELECT - 45 AS col2 FROM tab0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + - 46 + col0 * col2 AS col1 FROM tab1
----
4901
5054
6233

query I rowsort
SELECT DISTINCT + ( 4 ) - + col1 FROM tab0
----
-17
-77
3

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

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + COUNT ( ALL - + 22 ) FROM tab2
----
3

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

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL + CAST ( CAST ( + 79 AS INTEGER ) AS INTEGER ) FROM tab2
----
79
79
79

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

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

query I rowsort
SELECT ALL + 1 - + col1 FROM tab2
----
-50
-66
-76

query I rowsort
SELECT 40 + + - 73 AS col0 FROM tab2
----
-33
-33
-33

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

query II rowsort
SELECT 92 AS col0, - col2 FROM tab2
----
92
-23
92
-40
92
-58

query II rowsort
SELECT DISTINCT + col1, - col2 + - col2 - 41 * col0 FROM tab2
----
51
-1932
67
-3191
77
-2704

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT + COUNT( * ) AS col0, ( - + 40 ) * + 12 FROM tab2
----
3
-480

skipif mysql # not compatible
query II rowsort label-1192
SELECT + COUNT ( * ) AS col0, ( - + 40 ) * + 12 FROM tab2
----
3
-480

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 53 * + col1 FROM tab1 AS cor0
----
-2491
-265
-742

query I rowsort
SELECT ALL 12 * col1 FROM tab1 cor0
----
168
564
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT - - 70 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT - - 70 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-210

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1201
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) <> - 66 + + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( - col1 ) <> - 66 + + col2
----
NULL
NULL
NULL

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( ( - 75 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1205
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - + CAST( + 36 AS SIGNED ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - + CAST ( + 36 AS INTEGER ) ) AND NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT CAST( 0 AS SIGNED ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT CAST ( 0 AS INTEGER ) AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT col1 * - - col0 AS col1, col1 - + col1 AS col1 FROM tab1
----
425
0
4277
0
714
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT COUNT( * ) * - MAX( + - col1 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-1210
SELECT COUNT ( * ) * - MAX ( + - col1 ) FROM tab1
----
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - col1 ) - - col0 BETWEEN 10 / 82 + col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 25 FROM tab2
----
48
65
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - - 96 col2, ( col1 ) AS col2 FROM tab0
----
111
81
183
21
193
1

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

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

query I rowsort
SELECT col1 - - col0 FROM tab0 AS cor0 WHERE NOT ( + 25 ) <= ( NULL )
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - 98 * col2 * - col2 * col2 FROM tab2 AS cor0
----
1192366
19120976
6272000

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT - - 9 + - - MIN( + col0 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1223
SELECT - - 9 + - - MIN ( + col0 ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT - - col2 * - 34 + 41 FROM tab0 AS cor0 WHERE col2 * + + col0 IS NULL
----

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

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

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

query I rowsort
SELECT + 87 * + col1 * col1 + + - 75 AS col1 FROM tab0 AS cor0
----
12
38292
570732

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT DISTINCT col0 DIV + 64 - col1 AS col2 FROM tab2 AS cor0
----
-51
-66
-76

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT col0 / + 64 - col1 AS col2 FROM tab2 AS cor0
----
-51
-66
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 + col0 * + 89 col1 FROM tab1 AS cor0
----
4392
7421
7940

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

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

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

query I rowsort
SELECT col0 * col0 + - + col2 FROM tab1
----
2505
7166
8213

query I rowsort
SELECT DISTINCT - col1 * + 31 + + col1 + col2 FROM tab0
----
-2383
-620
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 >= + + col1 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1235
SELECT ALL + ( + col2 ) + col0 + ( - - 42 ) DIV + + col0 AS col1 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL + ( + col2 ) + col0 + ( - - 42 ) / + + col0 AS col1 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 92 AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT - col1 DIV - 91 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT - col1 / - 91 AS col2 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL - COUNT( * ) + - COUNT( * ) * - COUNT( * ) * + COUNT( * ) - + COUNT( * ) + + 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
739

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) - + COUNT ( * ) + + 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
739

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + - MIN( - - 82 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-82

skipif mysql # not compatible
query I rowsort label-1241
SELECT + - MIN ( - - 82 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-82

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1246
SELECT - + ( + CAST( + 71 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-1246
SELECT - + ( + CAST ( + 71 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-71
-71
-71

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, - col0 * - col2 col0 FROM tab1
----
-14
4896
-47
6188
-5
5015

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 19 ) + 32 + + + 5 FROM tab2 AS cor0
----
56

query II rowsort
SELECT ALL col0 * + col2 AS col0, ( - col0 ) AS col1 FROM tab1
----
4896
-51
5015
-85
6188
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT + 93 + - + COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-1256
SELECT + 93 + - + COUNT ( * ) AS col0 FROM tab0
----
90

query I rowsort
SELECT + 75 + - - ( col2 ) AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT DISTINCT + ( + 46 ) DIV + - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1258
SELECT DISTINCT + ( + 46 ) / + - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0
----
-12

query II rowsort
SELECT DISTINCT - col1 - + ( 29 ) * - col1 AS col2, col0 FROM tab0 AS cor0
----
2268
15
28
97
588
87

query I rowsort
SELECT 76 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1261
SELECT DISTINCT MAX( + - col2 ), + 41 AS col2 FROM tab1 AS cor0
----
-59
41

skipif mysql # not compatible
query II rowsort label-1261
SELECT DISTINCT MAX ( + - col2 ), + 41 AS col2 FROM tab1 AS cor0
----
-59
41

query I rowsort
SELECT DISTINCT 72 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3672
-6120
-6552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT - COUNT( * ) + 82 AS col2 FROM tab2 cor0
----
79

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - COUNT ( * ) + 82 AS col2 FROM tab2 cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL MAX( - ( - col2 ) ) + - COUNT( * ) + + ( - 65 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL MAX ( - ( - col2 ) ) + - COUNT ( * ) + + ( - 65 ) FROM tab2 AS cor0
----
-10

query I rowsort
SELECT ALL - 21 AS col1 FROM tab0 cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 - - + col0 col2 FROM tab2
----
115
168
208

query II rowsort
SELECT ALL + col0 - - col0 * col2 AS col2, - col2 FROM tab2
----
1104
-23
2624
-40
4425
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT ( + 77 ) + CAST( - + col2 AS SIGNED ) col2 FROM tab1
----
-19
18
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1269
SELECT ( + 77 ) + CAST ( - + col2 AS INTEGER ) col2 FROM tab1
----
-19
18
9

query I rowsort
SELECT 91 + - col2 + + col1 FROM tab0
----
-7
102
125

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

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

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

query I rowsort
SELECT 14 + - col0 FROM tab2
----
-32
-50
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT + + ( + SUM( DISTINCT - + 0 ) ) col2 FROM tab2 WHERE NULL BETWEEN NULL AND + + 95 - - col0 / + col1 * + 9 * + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1274
SELECT DISTINCT + + ( + SUM ( DISTINCT - + 0 ) ) col2 FROM tab2 WHERE NULL BETWEEN NULL AND + + 95 - - col0 / + col1 * + 9 * + col0
----
NULL

query I rowsort
SELECT DISTINCT ( + 70 ) AS col0 FROM tab1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1276
SELECT ALL col1 DIV ( - - 16 ) FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL col1 / ( - - 16 ) FROM tab1
----
0
0
2

query I rowsort
SELECT ALL col0 - - 77 AS col1 FROM tab0 WHERE NOT - col1 IS NULL
----
164
174
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1278
SELECT + CAST( - + col0 AS SIGNED ) * 74 - + + 5, + col0 FROM tab0
----
-1115
15
-6443
87
-7183
97

skipif mysql # not compatible
query II rowsort label-1278
SELECT + CAST ( - + col0 AS INTEGER ) * 74 - + + 5, + col0 FROM tab0
----
-1115
15
-6443
87
-7183
97

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

query II rowsort
SELECT DISTINCT - - 59 AS col0, 0 AS col2 FROM tab2 AS cor0
----
59
0

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

skipif mysql # not compatible
query I rowsort label-1281
SELECT - COUNT ( ALL + - col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + - 80 + - + 21 FROM tab1 AS cor0
----
-101
-101
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT 33 + + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
33

skipif mysql # not compatible
query I rowsort label-1283
SELECT 33 + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----
33

query I rowsort
SELECT + col0 + 28 AS col0 FROM tab1 WHERE NOT ( NOT col0 IS NOT NULL )
----
113
119
79

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

skipif mysql # not compatible
query I rowsort label-1285
SELECT ( + + 50 ) * - - CAST ( NULL AS INTEGER ) + + - 83 + - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT + MAX( ALL + - 10 ) + - 3 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-1286
SELECT + MAX ( ALL + - 10 ) + - 3 FROM tab0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT ALL + col2 DIV col0 + col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL + col2 / col0 + col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + 31 + + 26 FROM tab1
----
57
57
57

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

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

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

query I rowsort
SELECT 92 - + 46 AS col2 FROM tab2
----
46
46
46

query I rowsort
SELECT DISTINCT col1 - + - col1 AS col1 FROM tab2
----
102
134
154

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - - col0 - + - 93 FROM tab1 AS cor0
----
144
178
184

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

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

query II rowsort
SELECT ALL - col2 - col2 + - col1 AS col0, 24 FROM tab0 AS cor0
----
-175
24
-199
24
-41
24

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

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) + - MAX ( ALL col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT 60 + 12 + + + col2 + + col1 * - CAST( + 58 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1136
-4579
113

skipif mysql # not compatible
query I rowsort label-1299
SELECT 60 + 12 + + + col2 + + col1 * - CAST ( + 58 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1136
-4579
113

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 40 + + 38 * - col1 AS col0, col1 - + + 65 col2 FROM tab0 AS cor0
----
-3038
16
-758
-44
2
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT DISTINCT + - MAX( DISTINCT col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT - col1 IN ( col0, - col1 - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT + - MAX ( DISTINCT col0 ) AS col2 FROM tab0 cor0 WHERE NOT ( NOT - col1 IN ( col0, - col1 - col2 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT ALL CAST( - + col1 AS SIGNED ) * - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL CAST ( - + col1 AS INTEGER ) * - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - col2 + + + col1 col0 FROM tab2
----
1677
3431
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - col0 col1 FROM tab2
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 WHERE col1 > + - 6
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL + + SUM( ( 16 ) ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + + SUM ( ( 16 ) ) FROM tab2 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1310
SELECT - CAST( - - 32 AS SIGNED ) * + col0 FROM tab2
----
-1472
-2048
-2400

skipif mysql # not compatible
query I rowsort label-1310
SELECT - CAST ( - - 32 AS INTEGER ) * + col0 FROM tab2
----
-1472
-2048
-2400

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

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

query I rowsort
SELECT + 50 * - col1 - - col1 * + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-49
-609
2511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1313
SELECT - COUNT( * ) DIV + - CAST( + ( 70 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1313
SELECT - COUNT ( * ) / + - CAST ( + ( 70 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 AS col0 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + col2 - + col1 AND col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT DISTINCT - COUNT( DISTINCT 6 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT - COUNT ( DISTINCT 6 ) FROM tab1 AS cor0
----
-1

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col1 / - col2 * col0 * 32, + col0 / - col1 + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT + col2 FROM tab1 WHERE - col0 + + + col1 * CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) IN ( ( - - 96 ), + col2 * - 93 )
----

skipif mysql # not compatible
query I rowsort label-1320
SELECT + col2 FROM tab1 WHERE - col0 + + + col1 * CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) IN ( ( - - 96 ), + col2 * - 93 )
----

query II rowsort
SELECT ALL ( - + col2 ), - col0 AS col2 FROM tab2
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT DISTINCT - col1 - - - col2 AS col0 FROM tab1 WHERE NOT NULL <> 3
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1323
SELECT DISTINCT + col0, - 92 DIV - col1 col2 FROM tab1
----
51
6
85
18
91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1323
SELECT DISTINCT + col0, - 92 / - col1 col2 FROM tab1
----
51
6
85
18
91
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL ( + MIN( DISTINCT col1 ) ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL ( + MIN ( DISTINCT col1 ) ) AS col0 FROM tab1
----
5

query I rowsort
SELECT + + 17 + col1 * - 69 FROM tab1 cor0
----
-3226
-328
-949

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

query I rowsort
SELECT - - 63 + 69 * + col1 FROM tab1 AS cor0
----
1029
3306
408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1329
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL <> 39
----

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL <> 39
----

query I rowsort
SELECT + + 93 + + 85 AS col1 FROM tab2 AS cor0
----
178
178
178

query I rowsort
SELECT DISTINCT + col2 - - col1 * + col0 FROM tab0
----
1262
1837
196

query I rowsort
SELECT 76 * + 98 FROM tab2
----
7448
7448
7448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT - CAST( 21 AS SIGNED ) * 54 AS col2 FROM tab1 cor0
----
-1134
-1134
-1134

skipif mysql # not compatible
query I rowsort label-1333
SELECT - CAST ( 21 AS INTEGER ) * 54 AS col2 FROM tab1 cor0
----
-1134
-1134
-1134

query I rowsort
SELECT + col2 * + - 25 - col1 + + - col2 FROM tab2 cor0
----
-1117
-1575
-649

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

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

query II rowsort
SELECT ALL + col1 * + + 83, col0 AS col2 FROM tab0 AS cor0
----
1743
87
6723
15
83
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1338
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + - 61 AS col2 FROM tab0 WHERE - ( - col1 ) - + col1 BETWEEN NULL AND + 24 + + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 74 col0 FROM tab1
----
-3774
-6290
-6734

query II rowsort
SELECT ALL 43 AS col0, + 2 * + 80 FROM tab1
----
43
160
43
160
43
160

query I rowsort
SELECT 55 * - 71 AS col2 FROM tab1
----
-3905
-3905
-3905

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL MIN( ALL + 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL MIN ( ALL + 67 ) FROM tab0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT + + COUNT( * ) FROM tab2 WHERE NOT 88 <= + 23
----
3

skipif mysql # not compatible
query I rowsort label-1344
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT 88 <= + 23
----
3

query I rowsort
SELECT DISTINCT - col2 * + + 93 * - 75 AS col1 FROM tab0
----
327825
690525
69750

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

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

query I rowsort
SELECT ALL col2 * - 44 AS col2 FROM tab0 AS cor0
----
-2068
-4356
-440

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT MIN( - ( - col2 ) ) * 60 FROM tab2
----
1380

skipif mysql # not compatible
query I rowsort label-1349
SELECT MIN ( - ( - col2 ) ) * 60 FROM tab2
----
1380

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

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE ( + 36 / + col2 IN ( - - col0 * - - 90 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1353
SELECT ALL 19 DIV 42 DIV col0 + - + 8 + col1 AS col0 FROM tab2
----
43
59
69

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL 19 / 42 / col0 + - + 8 + col1 AS col0 FROM tab2
----
43
59
69

query I rowsort
SELECT ALL 27 * + 30 + - col0 AS col1 FROM tab2
----
735
746
764

query I rowsort
SELECT 21 AS col1 FROM tab2 WHERE col0 + - col1 - 13 * - - 39 * 1 IS NULL
----

query I rowsort
SELECT - col2 * + - col2 + - ( + 30 ) FROM tab1
----
3451
4594
9186

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT + SUM( ALL - - 93 ) + COUNT( + 43 ) AS col2 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-1357
SELECT + SUM ( ALL - - 93 ) + COUNT ( + 43 ) AS col2 FROM tab1
----
282

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

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

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

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

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

query II rowsort
SELECT DISTINCT - + 64 / + col0 * + col1 + + col1 AS col0, col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ALL - 17 - col2 FROM tab0
----
-116
-27
-64

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

query II rowsort
SELECT + 46, 0 AS col1 FROM tab2 AS cor0
----
46
0
46
0
46
0

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

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

query I rowsort
SELECT + col2 * + - 77 + - 62 + + col1 FROM tab1 cor0
----
-4600
-5251
-7440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT - CAST( - 70 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-1370
SELECT - CAST ( - 70 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT + - col2 * + 52 AS col0 FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT SUM( DISTINCT + - col2 ) * - MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9317

skipif mysql # not compatible
query I rowsort label-1372
SELECT SUM ( DISTINCT + - col2 ) * - MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9317

onlyif mysql # aggregate syntax: 
query II rowsort label-1373
SELECT DISTINCT - ( - COUNT( * ) ) col1, - COUNT( * ) FROM tab1
----
3
-3

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

query II rowsort
SELECT DISTINCT + - col2 * + col0, + 96 AS col2 FROM tab0 WHERE - 83 IS NOT NULL
----
-705
96
-870
96
-9603
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1376
SELECT ALL + MAX( ALL - CAST( NULL AS SIGNED ) ) col0 FROM tab2 WHERE + col0 - + 32 IS NULL
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1377
SELECT DISTINCT * FROM tab2 WHERE + 41 * - + col0 BETWEEN CAST( NULL AS DECIMAL ) AND - - col1
----

skipif mysql # not compatible
query III rowsort label-1377
SELECT DISTINCT * FROM tab2 WHERE + 41 * - + col0 BETWEEN CAST ( NULL AS REAL ) AND - - col1
----

query I rowsort
SELECT ALL col1 * + 40 AS col2 FROM tab1
----
1880
200
560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1379
SELECT CAST( col1 AS SIGNED ), ( + - CAST( NULL AS SIGNED ) ) / - - 94 + + col1 * + col0 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1379
SELECT CAST ( col1 AS INTEGER ), ( + - CAST ( NULL AS INTEGER ) ) / - - 94 + + col1 * + col0 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

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

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

query II rowsort
SELECT DISTINCT + col2 * col0 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * + 89 col1 FROM tab0
----
2937
2937
2937

query I rowsort
SELECT ALL 36 * - col0 AS col0 FROM tab2
----
-1656
-2304
-2700

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT DISTINCT 14 * + + COUNT( * ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT 14 * + + COUNT ( * ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT + - MIN( + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1387
SELECT + - MIN ( + col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL + CAST( 55 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL + CAST ( 55 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT ALL + 28 + - col2 FROM tab1 AS cor0
----
-31
-40
-68

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1392
SELECT ALL * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) <= + col2 + - + col2
----

skipif mysql # not compatible
query III rowsort label-1392
SELECT ALL * FROM tab0 WHERE - CAST ( NULL AS REAL ) <= + col2 + - + col2
----

query I rowsort
SELECT DISTINCT col1 + 62 AS col0 FROM tab0
----
143
63
83

query I rowsort
SELECT 97 - + col2 FROM tab1
----
1
29
38

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT COUNT ( * ) - + + 0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL COUNT( * ) * - COUNT( * ) - COUNT( * ) FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL COUNT ( * ) * - COUNT ( * ) - COUNT ( * ) FROM tab1
----
-12

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 74 + - col1 < + - col1 / - 55 + - - 35 * - 63
----

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

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

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

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

query I rowsort
SELECT - col1 + + - 13 AS col2 FROM tab1 AS cor0 WHERE NOT - 9 IS NULL
----
-18
-27
-60

query I rowsort
SELECT + 90 - + col1 * col2 FROM tab2 AS cor0 WHERE NOT - col0 + ( + 6 ) BETWEEN + + ( 16 ) AND + col1
----
-1083
-2990
-3796

query I rowsort
SELECT - - col0 * + + 5 + - 77 FROM tab2 AS cor0
----
153
243
298

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1405
SELECT ALL - - 54 / col0 * - + col0 - + CAST( + + CAST( NULL AS DECIMAL ) AS DECIMAL ) + 79 AS col0, - 0 - - col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL - - 54 / col0 * - + col0 - + CAST ( + + CAST ( NULL AS REAL ) AS REAL ) + 79 AS col0, - 0 - - col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + + col2 * + + 66 * - col1 = - - 56 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT DISTINCT - 60 * 83 DIV - + ( + 48 ) AS col0 FROM tab1
----
103

skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT - 60 * 83 / - + ( + 48 ) AS col0 FROM tab1
----
103

query II rowsort
SELECT 39 AS col1, 10 AS col2 FROM tab0
----
39
10
39
10
39
10

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

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

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

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

query II rowsort
SELECT 14, col1 - col1 AS col2 FROM tab2
----
14
0
14
0
14
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1417
SELECT DISTINCT COUNT( 54 ), 65 AS col2 FROM tab0
----
3
65

skipif mysql # not compatible
query II rowsort label-1417
SELECT DISTINCT COUNT ( 54 ), 65 AS col2 FROM tab0
----
3
65

query II rowsort
SELECT col2, - col2 * - - col1 AS col2 FROM tab2
----
23
-1173
40
-3080
58
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT SUM( DISTINCT - col0 ) * MAX( 13 ) AS col0 FROM tab1 AS cor0
----
-2951

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT SUM ( DISTINCT - col0 ) * MAX ( 13 ) AS col0 FROM tab1 AS cor0
----
-2951

query I rowsort
SELECT DISTINCT + - col0 + col2 AS col0 FROM tab2 cor0
----
-17
-23
-24

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1422
SELECT + MAX( + col2 ) col1, COUNT( * ) * - 38 FROM tab0
----
99
-114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1422
SELECT + MAX ( + col2 ) col1, COUNT ( * ) * - 38 FROM tab0
----
99
-114

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1423
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1423
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col2 * - 60 FROM tab1
----
-3540
-4080
-5760

query I rowsort
SELECT DISTINCT - 86 * - + 47 + - 49 FROM tab2
----
3993

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1426
SELECT ALL COUNT( * ) AS col0, COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-1426
SELECT ALL COUNT ( * ) AS col0, COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
9
9

query II rowsort
SELECT ( + - 14 ) AS col0, 97 FROM tab1
----
-14
97
-14
97
-14
97

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

query II rowsort
SELECT - 2 * 45 AS col2, + 43 / + 63 * + 20 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 70 * + col2 * + + col1 + - col2 * + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-23400
-299625
-957627

query I rowsort
SELECT + 59 + - col0 FROM tab2 cor0
----
-16
-5
13

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1432
SELECT - + col1 / + + 74 + - col1 col2 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT DISTINCT - + COUNT( - col2 ) AS col2 FROM tab0 cor0 WHERE NOT col2 <= + 43
----
-2

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT - + COUNT ( - col2 ) AS col2 FROM tab0 cor0 WHERE NOT col2 <= + 43
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT - 73 + + SUM( 1 ) AS col1 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1435
SELECT - 73 + + SUM ( 1 ) AS col1 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT ALL col2 * ( - col1 ) + + col1 + - - col2 AS col1 FROM tab2
----
-1099
-2963
-3761

query I rowsort
SELECT ALL + + col0 + - - col0 FROM tab2 WHERE NULL <> 56
----

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

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

query I rowsort
SELECT 47 AS col1 FROM tab0 WHERE - - ( + col2 ) <= NULL
----

query I rowsort
SELECT - - ( - col1 ) FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - 29 - + - 12 + - 86 + col1 FROM tab0 AS cor0
----
-102
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT - 4 - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1446
SELECT - 4 - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-7

query II rowsort
SELECT DISTINCT + + col0, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1448
SELECT DISTINCT + + MIN( ALL - 0 ) + + 92 + + 52 DIV + 69 + + 39 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1448
SELECT DISTINCT + + MIN ( ALL - 0 ) + + 92 + + 52 / + 69 + + 39 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
131

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

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

query I rowsort
SELECT col2 * + - col2 - + 99 FROM tab0 cor0
----
-199
-2308
-9900

query III rowsort
SELECT * FROM tab2 WHERE NOT - 17 + 47 <> - + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1453
SELECT DISTINCT COUNT( * ) DIV 27 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT COUNT ( * ) / 27 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1454
SELECT * FROM tab1 WHERE NOT ( NULL < CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1454
SELECT * FROM tab1 WHERE NOT ( NULL < CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NOT col1 NOT IN ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT - ( - COUNT( * ) ) + SUM( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 79 IS NULL
----
69

skipif mysql # not compatible
query I rowsort label-1456
SELECT - ( - COUNT ( * ) ) + SUM ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 79 IS NULL
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT col2 DIV + - 12 FROM tab1 AS cor0
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-1457
SELECT col2 / + - 12 FROM tab1 AS cor0
----
-4
-5
-8

query I rowsort
SELECT ALL - 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT + 66 * 66 + + + SUM( ALL col0 ) FROM tab2 AS cor0
----
4541

skipif mysql # not compatible
query I rowsort label-1459
SELECT + 66 * 66 + + + SUM ( ALL col0 ) FROM tab2 AS cor0
----
4541

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1461
SELECT + 36 DIV - COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1461
SELECT + 36 / - COUNT ( * ) FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1462
SELECT DISTINCT - + 55 AS col0, 90 * - + COUNT( * ) col0 FROM tab2 AS cor0
----
-55
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1462
SELECT DISTINCT - + 55 AS col0, 90 * - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-55
-270

query II rowsort
SELECT DISTINCT + col1 AS col1, col1 * col0 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query I rowsort
SELECT + 37 - + + col2 AS col2 FROM tab1 AS cor0
----
-22
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT + CAST( - col2 AS SIGNED ) - - + col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1465
SELECT + CAST ( - col2 AS INTEGER ) - - + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 74 + - + ( + 28 ) FROM tab2
----
46
46
46

query I rowsort
SELECT 56 - col1 - - col1 AS col1 FROM tab2
----
56
56
56

query I rowsort
SELECT - col0 - + 44 + + 55 FROM tab1
----
-40
-74
-80

query III rowsort
SELECT ALL * FROM tab1 WHERE 46 IS NULL
----

query I rowsort
SELECT ( - + 1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * + - 29 + - + col1 FROM tab1
----
-1716
-2019
-2798

query I rowsort
SELECT DISTINCT 46 - col2 FROM tab0
----
-1
-53
36

query I rowsort
SELECT DISTINCT - 33 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT 96 * + ( + + 40 ) + - col1 AS col1 FROM tab0
----
3759
3819
3839

query II rowsort
SELECT - col1 + 61 AS col2, 72 AS col1 FROM tab2
----
-16
72
-6
72
10
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1476
SELECT DISTINCT 13 - - + col1 + - - 54 * col1 DIV - + 29 AS col1 FROM tab2
----
-30
-44
-53

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT 13 - - + col1 + - - 54 * col1 / - + 29 AS col1 FROM tab2
----
-30
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT + MAX( + col2 ) + - 22 AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-1477
SELECT + MAX ( + col2 ) + - 22 AS col1 FROM tab0
----
77

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-1479
SELECT DISTINCT + + col0 * + 58 col0, col2 + col2 DIV - + col2, col1 FROM tab2 cor0
----
9 values hashing to bce8deadb0cc559896eac76afc38dc6a

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1479
SELECT DISTINCT + + col0 * + 58 col0, col2 + col2 / - + col2, col1 FROM tab2 cor0
----
9 values hashing to bce8deadb0cc559896eac76afc38dc6a

query I rowsort
SELECT 43 * - col0 FROM tab0
----
-3741
-4171
-645

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT ALL + MAX( ALL + - col2 ) + + COUNT( * ) * + MIN( + 49 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + MAX ( ALL + - col2 ) + + COUNT ( * ) * + MIN ( + 49 ) FROM tab2 AS cor0 WHERE NULL = NULL
----
NULL

query II rowsort
SELECT + + col0 * - col2 AS col0, ( - col2 ) * - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) * col0 * + col0 + 18 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT DISTINCT + + col2 * + 28 + + + col0 AS col2 FROM tab0 cor0
----
1331
2869
367

onlyif mysql # aggregate syntax: 
query II rowsort label-1485
SELECT MAX( + col1 ) AS col2, 61 FROM tab2
----
77
61

skipif mysql # not compatible
query II rowsort label-1485
SELECT MAX ( + col1 ) AS col2, 61 FROM tab2
----
77
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL MIN( DISTINCT + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL MIN ( DISTINCT + col1 ) FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1487
SELECT + COUNT( ALL + + CAST( NULL AS DECIMAL ) ) + - 45 FROM tab2
----
-45

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

query I rowsort
SELECT - 47 + - col2 FROM tab0
----
-146
-57
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - 60 * + COUNT( ALL - - col1 ) * - 20 + - 1 AS col0 FROM tab0
----
3599

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 60 * + COUNT ( ALL - - col1 ) * - 20 + - 1 AS col0 FROM tab0
----
3599

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN col2 AND - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1 * col1 + col1 + + + ( 78 ) + + - 30 * 24 AS col0, - col0 AS col2 FROM tab2 AS cor0
----
2010
-46
3914
-75
5364
-64

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1493
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - ( + CAST( NULL AS SIGNED ) ) AND + col2 + - - ( + 46 )
----

skipif mysql # not compatible
query III rowsort label-1493
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - ( + CAST ( NULL AS INTEGER ) ) AND + col2 + - - ( + 46 )
----

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

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL COUNT ( + + 41 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 - + + col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT col0 + + - 21 AS col0 FROM tab1 AS cor0
----
30
64
70

query I rowsort
SELECT 45 + - 65 + + col1 FROM tab1 AS cor0
----
-15
-6
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1498
SELECT col0 * + CAST( - + 86 AS SIGNED ) + + - col0 FROM tab1 cor0 WHERE NULL BETWEEN + col2 + - + col1 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-1498
SELECT col0 * + CAST ( - + 86 AS INTEGER ) + + - col0 FROM tab1 cor0 WHERE NULL BETWEEN + col2 + - + col1 AND - - col1
----

query I rowsort
SELECT + 4 * + col0 AS col1 FROM tab1 AS cor0
----
204
340
364

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL >= + col0
----
0

query I rowsort
SELECT ALL + col1 + + - 58 AS col0 FROM tab2
----
-7
19
9

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-23
-40
-58

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

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

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

query I rowsort
SELECT - + 46 * + - col0 AS col0 FROM tab2 AS cor0
----
2116
2944
3450

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1508
SELECT ALL CAST ( 90 AS INTEGER ) col1 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - col0 - - col1 IS NULL OR - ( 9 ) + + + col0 NOT BETWEEN + col0 AND 13 + + col0
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 26 AS col1, col1 col1 FROM tab1
----
-1222
47
-130
5
-364
14

query I rowsort
SELECT col1 * col1 * + col1 * - col0 FROM tab1
----
-10625
-139944
-9447893

query I rowsort
SELECT DISTINCT - - 18 * col1 AS col0 FROM tab1 AS cor0
----
252
846
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1514
SELECT 89 DIV + 18, CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4
51
4
85
4
91

skipif mysql # not compatible
query II rowsort label-1514
SELECT 89 / + 18, CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4
51
4
85
4
91

query I rowsort
SELECT DISTINCT + ( + - 73 ) * + col2 * - - col2 AS col1 FROM tab1 AS cor0
----
-254113
-337552
-672768

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

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

query II rowsort
SELECT DISTINCT - col0 * + col0 * col1 + + - col1 + + 33 + + col1, + 63 * col1 AS col0 FROM tab2 cor0 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT - ( - col2 ) DIV - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1518
SELECT - ( - col2 ) / - col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1519
SELECT ALL + CAST( NULL AS DECIMAL ) + + - COUNT( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL + CAST ( NULL AS REAL ) + + - COUNT ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 1 + 97 + + col1 FROM tab0 AS cor0
----
119
179
99

query I rowsort
SELECT ALL - + 93 * 3 AS col2 FROM tab1 AS cor0
----
-279
-279
-279

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col0 + + + col1 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-29

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

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

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

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

query I rowsort
SELECT DISTINCT ( col0 ) * + col0 * - 48 FROM tab2 AS cor0
----
-101568
-196608
-270000

query I rowsort
SELECT + - col0 * + col0 + + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL > - 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1535
SELECT - CAST( NULL AS DECIMAL ) - col2 + + col2 + - col2 * - + 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT - CAST ( NULL AS REAL ) - col2 + + col2 + - col2 * - + 71 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - - col1 AS col2 FROM tab2 cor0
----
141
142
97

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

query I rowsort
SELECT ALL + col2 + + 21 FROM tab0 AS cor0
----
120
31
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - - 15 * + 23 * + col0 IS NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE - 67 + + col2 IS NOT NULL AND NOT col2 * ( + col0 ) IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, - col1 + - + col0 col1 FROM tab0
----
15
-96
87
-108
97
-98

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

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

query I rowsort
SELECT col0 * - 74 AS col1 FROM tab1
----
-3774
-6290
-6734

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT - 56 * + ( + + ( - CAST( - 86 AS SIGNED ) ) ) + - 27 + - col1 AS col0 FROM tab2 AS cor0
----
-4894
-4910
-4920

skipif mysql # not compatible
query I rowsort label-1547
SELECT - 56 * + ( + + ( - CAST ( - 86 AS INTEGER ) ) ) + - 27 + - col1 AS col0 FROM tab2 AS cor0
----
-4894
-4910
-4920

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 1 < NULL
----

query I rowsort
SELECT ALL - col2 * - + 48 FROM tab2
----
1104
1920
2784

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT MIN( ALL - - 59 ) + - ( + SUM( + col0 ) ) FROM tab0 AS cor0
----
-140

skipif mysql # not compatible
query I rowsort label-1553
SELECT MIN ( ALL - - 59 ) + - ( + SUM ( + col0 ) ) FROM tab0 AS cor0
----
-140

query I rowsort
SELECT DISTINCT 26 + + + col1 FROM tab2
----
103
77
93

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

query II rowsort
SELECT ALL + col0 * + 32, col1 FROM tab0
----
2784
21
3104
1
480
81

query I rowsort
SELECT 11 + 34 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT col0 * - - col0 * 50 + - 85 AS col1 FROM tab0
----
11165
378365
470365

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1560
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col0 * + col2 AS col1 FROM tab1
----
-295885
-420784
-470016

skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col0 * + col2 AS col1 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + 93 - + 98 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2 * col2 * - col2
----

query I rowsort
SELECT + 25 - 71 AS col0 FROM tab2
----
-46
-46
-46

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

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

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL 3 - - CAST ( NULL AS INTEGER ) - + col2 + 20 * 14 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT + 55 DIV + col0 + + ( 99 ) AS col2 FROM tab2 AS cor0
----
100
99
99

skipif mysql # not compatible
query I rowsort label-1567
SELECT + 55 / + col0 + + ( 99 ) AS col2 FROM tab2 AS cor0
----
100
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL SUM( - 33 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL SUM ( - 33 ) FROM tab2 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * - + 87 col0 FROM tab1 AS cor0
----
1218
4089
435

query I rowsort
SELECT col0 * 80 AS col2 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT DISTINCT col1 * - 54 FROM tab2
----
-2754
-3618
-4158

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN - - col0 AND col0 * + - 69 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - 9 + - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - 9 + - - col0 IS NULL
----
0

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

query I rowsort
SELECT + 71 + - col0 AS col1 FROM tab2
----
-4
25
7

query I rowsort
SELECT - 37 + - - col0 * + 65 AS col1 FROM tab0
----
5618
6268
938

query I rowsort
SELECT ALL + - 66 AS col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT ALL - MAX( + - 23 ) FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-1578
SELECT ALL - MAX ( + - 23 ) FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
23

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

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

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

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

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

query I rowsort
SELECT DISTINCT 49 + - + 44 FROM tab2
----
5

query I rowsort
SELECT ALL + 28 + + col1 AS col0 FROM tab2
----
105
79
95

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

query I rowsort
SELECT 16 * + col2 FROM tab0
----
1584
160
752

query I rowsort
SELECT DISTINCT col1 * 44 + col2 FROM tab0
----
143
3611
934

query I rowsort
SELECT - 36 * - col2 + col1 AS col2 FROM tab1
----
2129
2495
3470

query I rowsort
SELECT ALL - col0 * - col0 - + + col2 FROM tab2
----
2093
4056
5567

query I rowsort
SELECT + col2 + - + col2 * + col1 AS col2 FROM tab2
----
-1150
-3040
-3828

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

query I rowsort
SELECT - 30 + + 36 FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT 14 * 90 + + - col0 FROM tab1 AS cor0
----
1169
1175
1209

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT - COUNT( * ) * 89 + - MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
-344

skipif mysql # not compatible
query I rowsort label-1594
SELECT - COUNT ( * ) * 89 + - MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
-344

query I rowsort
SELECT - 33 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query II rowsort
SELECT + col2 * + col1, 3 * - col0 AS col1 FROM tab1 AS cor0
----
1344
-153
295
-255
3196
-273

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT DISTINCT - MAX( - col0 ) AS col1, + 43 AS col1 FROM tab2 AS cor0
----
46
43

skipif mysql # not compatible
query II rowsort label-1597
SELECT DISTINCT - MAX ( - col0 ) AS col1, + 43 AS col1 FROM tab2 AS cor0
----
46
43

query I rowsort
SELECT DISTINCT - col0 * + + 88 AS col2 FROM tab0 AS cor0
----
-1320
-7656
-8536

query I rowsort
SELECT ALL + - 37 FROM tab2 cor0
----
-37
-37
-37

query II rowsort
SELECT - col2 AS col2, 61 FROM tab1
----
-59
61
-68
61
-96
61

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

query I rowsort
SELECT ALL + 56 FROM tab0 WHERE NOT ( col1 BETWEEN col2 AND + 34 )
----
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT COUNT( * ) * - + 25 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1603
SELECT COUNT ( * ) * - + 25 FROM tab2
----
-75

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col0 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL + + 41 * + - 27 FROM tab2 AS cor0
----
-1107
-1107
-1107

query I rowsort
SELECT DISTINCT - col2 * - col0 * - ( + col1 ) * col1 FROM tab1 AS cor0
----
-125375
-13669292
-959616

query II rowsort
SELECT DISTINCT 77 AS col1, 61 + - 80 AS col0 FROM tab1 AS cor0
----
77
-19

query I rowsort
SELECT ( 12 ) * + col1 - 75 AS col1 FROM tab0
----
-63
177
897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1611
SELECT CAST( NULL AS SIGNED ) * 65 + ( 75 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1611
SELECT CAST ( NULL AS INTEGER ) * 65 + ( 75 ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 69 col1 FROM tab2
----
-8
18
2

query I rowsort
SELECT ( col0 ) * + col2 + col2 * 99 AS col2 FROM tab0
----
1860
19404
5358

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + COUNT( * ) * 84 + - COUNT( * ) FROM tab0 WHERE NOT + col2 IN ( - 58 )
----
249

skipif mysql # not compatible
query I rowsort label-1616
SELECT + COUNT ( * ) * 84 + - COUNT ( * ) FROM tab0 WHERE NOT + col2 IN ( - 58 )
----
249

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT - MIN( 34 ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-1618
SELECT - MIN ( 34 ) AS col0 FROM tab2
----
-34

query I rowsort
SELECT DISTINCT - 38 * 46 - col2 AS col0 FROM tab0
----
-1758
-1795
-1847

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT MIN( DISTINCT col2 ) * - 33 AS col2 FROM tab2
----
-759

skipif mysql # not compatible
query I rowsort label-1620
SELECT MIN ( DISTINCT col2 ) * - 33 AS col2 FROM tab2
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT 23 * - COUNT( + col0 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1621
SELECT 23 * - COUNT ( + col0 ) FROM tab2
----
-69

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL <= ( ( col2 ) )
----

query I rowsort
SELECT ALL ( col1 ) * ( + 75 ) FROM tab1
----
1050
3525
375

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT - COUNT( * ) * 77 AS col2 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-1624
SELECT - COUNT ( * ) * 77 AS col2 FROM tab1
----
-231

query I rowsort
SELECT 35 * + 52 FROM tab2
----
1820
1820
1820

query I rowsort
SELECT DISTINCT 32 FROM tab1 WHERE ( NULL ) <= ( - col0 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT + ( ( - SUM( - col0 ) ) ) DIV COUNT( * ) AS col2 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT + ( ( - SUM ( - col0 ) ) ) / COUNT ( * ) AS col2 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT DISTINCT + AVG ( ALL + col1 ) AS col1 FROM tab1 WHERE NOT NULL = ( CAST( col1 AS SIGNED ) * - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT + AVG ( ALL + col1 ) AS col1 FROM tab1 WHERE NOT NULL = ( CAST ( col1 AS INTEGER ) * - col2 )
----
NULL

query I rowsort
SELECT - col0 * 76 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 < ( 61 * - 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 - col1 IN ( col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) >= ( + col0 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT SUM( DISTINCT 8 ) + + COUNT( DISTINCT + 93 + 36 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT SUM ( DISTINCT 8 ) + + COUNT ( DISTINCT + 93 + 36 ) AS col0 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 59 NOT BETWEEN ( col0 ) AND - 60 * 98 + + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL ( MIN( 12 ) ) FROM tab0 WHERE col2 + 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL ( MIN ( 12 ) ) FROM tab0 WHERE col2 + 41 IS NULL
----
NULL

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ( col2 ) FROM tab2 AS cor0 WHERE NOT - 85 <> - 20 - + 77
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT + + COUNT( * ) * - MAX( + col2 * col2 ) FROM tab2 AS cor0
----
-10092

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT + + COUNT ( * ) * - MAX ( + col2 * col2 ) FROM tab2 AS cor0
----
-10092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + - 64 * MIN( 31 * + ( col1 ) ) FROM tab1 AS cor0
----
-9920

skipif mysql # not compatible
query I rowsort label-1645
SELECT + - 64 * MIN ( 31 * + ( col1 ) ) FROM tab1 AS cor0
----
-9920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1646
SELECT COUNT( ALL - 41 ) DIV + 66 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1646
SELECT COUNT ( ALL - 41 ) / + 66 FROM tab2 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT + COUNT( * ) * + ( - 5 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT + COUNT ( * ) * + ( - 5 ) FROM tab0 AS cor0
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT MAX( ALL + col0 ) FROM tab1 WHERE NOT + ( 53 ) NOT BETWEEN NULL AND ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT MAX ( ALL + col0 ) FROM tab1 WHERE NOT + ( 53 ) NOT BETWEEN NULL AND ( + col1 )
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT DISTINCT col0 DIV + - 66 col0 FROM tab1
----
-1
0

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

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

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

query I rowsort
SELECT ( - ( col1 ) ) * + 5 AS col2 FROM tab1
----
-235
-25
-70

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

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

query I rowsort
SELECT ALL + col2 * - col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-210
-3807
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT ALL - col1 * - col1 + - 16 * CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
2233
3561
5289

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL - col1 * - col1 + - 16 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
2233
3561
5289

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - MAX( DISTINCT 91 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT - MAX ( DISTINCT 91 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT ALL + 62 * - - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-1662
SELECT ALL + 62 * - - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0
----
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 2 AS col1, 89 * - - col0 + col0 col0 FROM tab0 AS cor0
----
2
1350
2
7830
2
8730

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT DISTINCT - 89 + - COUNT( DISTINCT + ( col1 ) ) * - COUNT( * ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1664
SELECT DISTINCT - 89 + - COUNT ( DISTINCT + ( col1 ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <> 52 / + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL 25 + + col1 + + 10 FROM tab0 AS cor0
----
116
36
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1669
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( ( + + col0 ) ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1669
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN ( ( + + col0 ) ) AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 66 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + col0 * 80 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

query II rowsort
SELECT 43 AS col2, + 14 AS col1 FROM tab1 AS cor0
----
43
14
43
14
43
14

query I rowsort
SELECT ALL - 62 AS col2 FROM tab2 AS cor0 WHERE ( - 15 ) NOT IN ( col2 )
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 - col1 col2 FROM tab0 WHERE col1 IS NOT NULL
----
624
849
9602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1676
SELECT DISTINCT col0 + - + col0 AS col1, - CAST( 37 AS SIGNED ) col2 FROM tab0
----
0
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1676
SELECT DISTINCT col0 + - + col0 AS col1, - CAST ( 37 AS INTEGER ) col2 FROM tab0
----
0
-37

query I rowsort
SELECT + ( - - col1 ) * col2 + - col1 FROM tab2
----
1122
3003
3819

query I rowsort
SELECT DISTINCT 29 - col0 + + col2 - - ( + col0 ) * - col0 FROM tab1
----
-2527
-7222
-8275

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT - COUNT( * ) * + ( 56 ) AS col2 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-1680
SELECT - COUNT ( * ) * + ( 56 ) AS col2 FROM tab1
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL 29 + - 11 * COUNT( * ) FROM tab1 AS cor0 WHERE ( col0 + col0 ) NOT BETWEEN NULL AND ( col1 )
----
-4

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 29 + - 11 * COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 + col0 ) NOT BETWEEN NULL AND ( col1 )
----
-4

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

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

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

query I rowsort
SELECT DISTINCT + 91 * + - col1 AS col1 FROM tab2 cor0
----
-4641
-6097
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT + MAX( ALL + 4 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 88 AND ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT + MAX ( ALL + 4 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 88 AND ( + col2 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1687
SELECT - - COUNT( * ) * + 88 * COUNT( * ) + + + COUNT( * ) * COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
795

skipif mysql # not compatible
query I rowsort label-1687
SELECT - - COUNT ( * ) * + 88 * COUNT ( * ) + + + COUNT ( * ) * COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
795

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 - ( - 58 ) = ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT SUM( - - 79 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT SUM ( - - 79 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + ( - col1 ) )
----
NULL

query I rowsort
SELECT ALL + col0 * 76 AS col0 FROM tab2 AS cor0
----
3496
4864
5700

query I rowsort
SELECT ALL + 58 * col1 * - col0 AS col2 FROM tab1
----
-24650
-248066
-41412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 * col1 col1, col0 col2 FROM tab2
----
1072
75
1232
64
816
46

onlyif mysql # DIV for integer division: 
query II rowsort label-1693
SELECT DISTINCT - 89 AS col0, + 2 DIV + col0 FROM tab0
----
-89
0

skipif mysql # not compatible
query II rowsort label-1693
SELECT DISTINCT - 89 AS col0, + 2 / + col0 FROM tab0
----
-89
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1694
SELECT col2 DIV + - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1694
SELECT col2 / + - col2 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1695
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT - CAST( - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT - CAST ( - col2 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 62 FROM tab2
----
-3162
-4154
-4774

query I rowsort
SELECT ALL - 79 + + 44 * - 10 * 93 AS col0 FROM tab2 WHERE NOT NULL <= NULL
----

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

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

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

query I rowsort
SELECT - col1 + + - 80 + col1 AS col2 FROM tab2
----
-80
-80
-80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1702
SELECT DISTINCT - + 46 DIV - col1 + - - 66 + - 85 AS col2 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT - + 46 / - col1 + - - 66 + - 85 AS col2 FROM tab2 AS cor0
----
-19

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

query I rowsort
SELECT ALL + - ( - 1 ) * - 64 AS col1 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT DISTINCT + COUNT( * ) + + - 22 AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT + COUNT ( * ) + + - 22 AS col2 FROM tab1 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT ALL - + col1 + col1 DIV - + col2 + - - 34 + + + 45 + - col2 + - col1 * + 32 FROM tab0 AS cor0
----
-2642
-53
-626

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL - + col1 + col1 / - + col2 + - - 34 + + + 45 + - col2 + - col1 * + 32 FROM tab0 AS cor0
----
-2642
-53
-626

query I rowsort
SELECT ALL + 25 + - + col2 FROM tab0
----
-22
-74
15

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1710
SELECT + 33, COUNT( * ) col0 FROM tab1
----
33
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1710
SELECT + 33, COUNT ( * ) col0 FROM tab1
----
33
3

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - ( + - col1 ) + + col1 )
----

query I rowsort
SELECT DISTINCT - ( + ( + col0 ) ) FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1715
SELECT ALL + - 50 DIV - 38 + - - CAST( 63 AS SIGNED ) + + 14 + + 81 * + 93 AS col1 FROM tab2 AS cor0
----
7611
7611
7611

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + - 50 / - 38 + - - CAST ( 63 AS INTEGER ) + + 14 + + 81 * + 93 AS col1 FROM tab2 AS cor0
----
7611
7611
7611

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT + ( - 10 ) * ( + MIN( ALL - col1 ) ) FROM tab1 AS cor0
----
470

skipif mysql # not compatible
query I rowsort label-1717
SELECT + ( - 10 ) * ( + MIN ( ALL - col1 ) ) FROM tab1 AS cor0
----
470

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 = 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT - 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

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

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

query I rowsort
SELECT - 81 * + + ( - col1 ) AS col1 FROM tab2 cor0
----
4131
5427
6237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT ( + + col1 ) * + col0 + col2 + 85 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 23 AND + + 27 * + CAST( NULL AS SIGNED ) * 37
----

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT ( + + col1 ) * + col0 + col2 + 85 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 23 AND + + 27 * + CAST ( NULL AS INTEGER ) * 37
----

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

query II rowsort
SELECT col2, + 70 AS col0 FROM tab2
----
23
70
40
70
58
70

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

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

query I rowsort
SELECT + col2 * - + 16 * - col2 AS col0 FROM tab0
----
156816
1600
35344

query I rowsort
SELECT ALL + 62 FROM tab0 WHERE NOT + - 16 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( - col1 ) col0 FROM tab0 WHERE NOT - col0 BETWEEN NULL AND ( - - 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT COUNT( * ) * - - 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-1730
SELECT COUNT ( * ) * - - 72 FROM tab1
----
216

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

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

query I rowsort
SELECT ALL - 34 * + 81 * - ( col2 ) FROM tab0 AS cor0
----
129438
272646
27540

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT DISTINCT COUNT( ALL 16 ) + + - COUNT( * ) * - 55 AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT COUNT ( ALL 16 ) + + - COUNT ( * ) * - 55 AS col1 FROM tab1 AS cor0
----
168

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

query II rowsort
SELECT + + 89 * + col1 AS col1, col2 FROM tab1 AS cor0
----
1246
96
4183
68
445
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) + - col0 NOT BETWEEN - - 0 AND NULL
----
85
5
59
91
47
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT - COUNT( * ) * + 53 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1739
SELECT - COUNT ( * ) * + 53 FROM tab1 AS cor0
----
-159

query I rowsort
SELECT + + 20 * - col2 AS col2 FROM tab2 AS cor0
----
-1160
-460
-800

query I rowsort
SELECT ALL - col1 - - ( - + ( - col2 ) ) FROM tab2 AS cor0
----
-28
-37
-9

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1743
SELECT DISTINCT + + 75 DIV + MAX( ALL col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + + 75 / + MAX ( ALL col0 ) FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1744
SELECT - COUNT ( * ) - - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT ALL col1 + - col1 DIV - + 35 FROM tab0
----
1
21
83

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL col1 + - col1 / - + 35 FROM tab0
----
1
21
83

query I rowsort
SELECT + + 48 + - - col1 + + - col1 + - - 51 FROM tab0 WHERE ( - col1 + + 43 IS NOT NULL )
----
99
99
99

query I rowsort
SELECT ALL col1 - - - col2 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT ( - 87 ) * + col1 + + - 7 DIV + 80 AS col2 FROM tab1
----
-1218
-4089
-435

skipif mysql # not compatible
query I rowsort label-1748
SELECT ( - 87 ) * + col1 + + - 7 / + 80 AS col2 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query II rowsort label-1749
SELECT + 97, MAX( DISTINCT - + 28 ) + 64 AS col2 FROM tab0 WHERE NOT - col1 - 49 IS NULL
----
97
36

skipif mysql # not compatible
query II rowsort label-1749
SELECT + 97, MAX ( DISTINCT - + 28 ) + 64 AS col2 FROM tab0 WHERE NOT - col1 - 49 IS NULL
----
97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT + MAX( - + 38 ) AS col1 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-1750
SELECT + MAX ( - + 38 ) AS col1 FROM tab1
----
-38

query I rowsort
SELECT ALL - - 22 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT + 5 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT + - 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1755
SELECT col0 AS col0, + CAST( NULL AS SIGNED ) col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1755
SELECT col0 AS col0, + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ( + + ( - - col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab2 cor0
----
-47

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 >= + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 12 + - + 5 FROM tab2
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1761
SELECT DISTINCT 33 AS col0, 10 + col1 FROM tab0 WHERE - 21 + - ( - ( CAST( NULL AS SIGNED ) ) ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-1761
SELECT DISTINCT 33 AS col0, 10 + col1 FROM tab0 WHERE - 21 + - ( - ( CAST ( NULL AS INTEGER ) ) ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 9 + + - col1 FROM tab1
----
-38
-5
4

query I rowsort
SELECT ALL 87 + - - 85 AS col1 FROM tab2
----
172
172
172

query I rowsort
SELECT 86 * col1 + + col2 + col2 - - col1 * col1 FROM tab0
----
13621
2267
285

query I rowsort
SELECT col1 * 22 AS col2 FROM tab1
----
1034
110
308

query I rowsort
SELECT DISTINCT + + 90 AS col2 FROM tab1 cor0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + + + 36 * + + col0 col0 FROM tab0
----
3146
3506
554

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 IN ( 97, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col2 FROM tab2
----
0

query I rowsort
SELECT + + col1 FROM tab1 WHERE - col2 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1771
SELECT - - col2 DIV - CAST( ( col0 ) AS SIGNED ) * - col0 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-1771
SELECT - - col2 / - CAST ( ( col0 ) AS INTEGER ) * - col0 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE - col2 + - col0 < col1
----
-59
-68
-96

query I rowsort
SELECT + + col1 * 28 + - ( col2 ) FROM tab2 AS cor0
----
1405
1818
2116

query I rowsort
SELECT ALL + col2 + - 13 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT + col1 + + col1 - + - col2 * + col1 - + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
1386
310
3337

query I rowsort
SELECT + - 89 * + - 5 AS col0 FROM tab0 AS cor0
----
445
445
445

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT + col2 DIV - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1777
SELECT + col2 / - + col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab0 AS cor0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, 26 AS col0 FROM tab2
----
46
26
64
26
75
26

query I rowsort
SELECT ALL + 80 * - col2 FROM tab1
----
-4720
-5440
-7680

query I rowsort
SELECT DISTINCT 96 FROM tab1 WHERE NOT ( + + col0 ) IS NULL
----
96

query II rowsort
SELECT + col0 AS col1, - col0 + col2 AS col0 FROM tab0
----
15
32
87
-77
97
2

query II rowsort
SELECT DISTINCT col2 AS col1, 1 * + + col1 AS col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-1784
SELECT DISTINCT + + 94 AS col0, col2 DIV + + col0 FROM tab1 AS cor0
----
94
0
94
1

skipif mysql # not compatible
query II rowsort label-1784
SELECT DISTINCT + + 94 AS col0, col2 / + + col0 FROM tab1 AS cor0
----
94
0
94
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - - col1 ) * + 80 + - - ( col2 ) + + col2 col1 FROM tab2 AS cor0
----
-4034
-5244
-6080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) * + ( + 4 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) * + ( + 4 ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT COUNT( * ) * + 66 FROM tab2 WHERE NOT ( + + col1 * + + col2 / + col0 - - + col1 ) IS NULL
----
198

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT COUNT ( * ) * + 66 FROM tab2 WHERE NOT ( + + col1 * + + col2 / + col0 - - + col1 ) IS NULL
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT + - 56 + - CAST( 17 AS SIGNED ) FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1788
SELECT + - 56 + - CAST ( 17 AS INTEGER ) FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT + 14 FROM tab0 WHERE NOT + + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1790
SELECT DISTINCT - - ( + + COUNT( * ) ) AS col1, 3 AS col2 FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT - - ( + + COUNT ( * ) ) AS col1, 3 AS col2 FROM tab2 cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( - - 61 ) - + - col1 * + 43 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT MAX( ALL + col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1792
SELECT MAX ( ALL + col2 ) AS col2 FROM tab0 cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1793
SELECT ALL + ( - 34 ) + - col2 - - CAST( NULL AS SIGNED ) + - ( + + 34 ) + - col0 * + - 63 * + CAST( NULL AS SIGNED ) + ( CAST( - + col0 AS SIGNED ) ) / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + ( - 34 ) + - col2 - - CAST ( NULL AS INTEGER ) + - ( + + 34 ) + - col0 * + - 63 * + CAST ( NULL AS INTEGER ) + ( CAST ( - + col0 AS INTEGER ) ) / - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1794
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 15, - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-1794
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 15, - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
-3

query I rowsort
SELECT ALL col0 * ( + col2 ) + + col0 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT ALL + 71 FROM tab2 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + 1 AS col1 FROM tab2 cor0 WHERE NULL IN ( - col1 * 74 )
----

query I rowsort
SELECT ALL ( + 47 ) + + - col2 FROM tab2
----
-11
24
7

query III rowsort
SELECT * FROM tab2 WHERE + + 16 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL > + + 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT ALL - + 4 DIV + + 40 + 20 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - + 4 / + + 40 + 20 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 89 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT DISTINCT 75 + COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1803
SELECT DISTINCT 75 + COUNT ( * ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 72 BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1805
SELECT ALL + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1805
SELECT ALL + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT DISTINCT - - 31 + 66 + + CAST( NULL AS SIGNED ) * + - 10 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT - - 31 + 66 + + CAST ( NULL AS INTEGER ) * + - 10 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - 65 + - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT COUNT( * ) * MAX( ALL - - ( + ( - 39 ) ) ) AS col1 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-1808
SELECT COUNT ( * ) * MAX ( ALL - - ( + ( - 39 ) ) ) AS col1 FROM tab1
----
-117

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
48

query I rowsort
SELECT + + ( col1 ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= col1 + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT 45 * CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT 45 * CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( ( NULL ) > - 0 ) )
----

query I rowsort
SELECT ALL 7 * col0 FROM tab0 cor0
----
105
609
679

query I rowsort
SELECT col1 * + ( - col0 ) AS col1 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab1
----
-64
-64
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT - COUNT( * ) DIV - 6 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT - COUNT ( * ) / - 6 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 41 NOT IN ( - 4 + col1, + col0 / - col1, + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT COUNT( + + col2 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1819
SELECT COUNT ( + + col2 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1820
SELECT DISTINCT + 43 DIV - - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + 43 / - - col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT 16 * COUNT( * ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT 16 * COUNT ( * ) AS col0 FROM tab1
----
48

query I rowsort
SELECT + col1 * - + col0 * + 99 FROM tab1
----
-42075
-423423
-70686

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT + ( MAX( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT + ( MAX ( ALL - col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT ALL SUM( - 3 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1825
SELECT ALL SUM ( - 3 ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT ALL 28 AS col2, - col0 * - col2 * + - ( - col2 ) + + 29 + col1 + 60 * + + col0 * + 90 FROM tab2 cor0
----
28
272814
28
448106
28
657396

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1827
SELECT ALL + ( + + col2 ), - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE 28 IS NULL
----

skipif mysql # not compatible
query II rowsort label-1827
SELECT ALL + ( + + col2 ), - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 + 22 col0 FROM tab1 AS cor0
----
132
137
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT ALL - - 41 * + MAX( + col0 ) FROM tab1 AS cor0
----
3731

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - - 41 * + MAX ( + col0 ) FROM tab1 AS cor0
----
3731

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT 38 + + SUM( ALL 47 ) FROM tab2 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-1830
SELECT 38 + + SUM ( ALL 47 ) FROM tab2 AS cor0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + COUNT( * ) + - 90 col2 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1831
SELECT DISTINCT + COUNT ( * ) + - 90 col2 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT + - col0 + col1 + + col0 AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 86 + 46 + col0 * 44 AS col1 FROM tab0
----
3960
4400
792

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1834
SELECT * FROM tab0 WHERE + col2 * + CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1834
SELECT * FROM tab0 WHERE + col2 * + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT ALL - COUNT( ALL col0 ) + + - 34 DIV + 61 AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL - COUNT ( ALL col0 ) + + - 34 / + 61 AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1837
SELECT ALL + CAST( - col2 AS SIGNED ) + - + 11 col2 FROM tab1
----
-107
-70
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1837
SELECT ALL + CAST ( - col2 AS INTEGER ) + - + 11 col2 FROM tab1
----
-107
-70
-79

query I rowsort
SELECT ALL + 79 * + col2 AS col1 FROM tab2
----
1817
3160
4582

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 35 + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - - - col2 + + - 13 FROM tab2
----
-4
15
24

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 AS cor0 WHERE NOT - 48 NOT BETWEEN 17 AND - - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL COUNT( + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL COUNT ( + col2 ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col2 FROM tab1 AS cor0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 78 AND - 3
----

query I rowsort
SELECT + 90 * + col1 AS col2 FROM tab0 AS cor0
----
1890
7290
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 AS col0, 24 col2 FROM tab2 AS cor0
----
33
24
33
24
33
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT + + COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1848
SELECT + + COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 66 * 36 * col2 FROM tab2 AS cor0
----
137808
54648
95040

query I rowsort
SELECT 68 * + col1 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + COUNT( + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1851
SELECT + COUNT ( + + col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL + col1 / col2 * + col2 * - col1 AS col1 FROM tab1 WHERE 94 IS NULL
----

query I rowsort
SELECT + + col1 * col1 AS col2 FROM tab1 WHERE NOT ( NOT - 62 BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1854
SELECT - col0 DIV col0, ( col2 ) FROM tab2
----
-1
23
-1
40
-1
58

skipif mysql # not compatible
query II rowsort label-1854
SELECT - col0 / col0, ( col2 ) FROM tab2
----
-1
23
-1
40
-1
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT - - CAST( - + col1 AS SIGNED ) FROM tab0 WHERE NOT col1 < + - col1
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1855
SELECT - - CAST ( - + col1 AS INTEGER ) FROM tab0 WHERE NOT col1 < + - col1
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 * + + 94 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT DISTINCT - 74 + + - COUNT( * ) + - 85 DIV + COUNT( * ) AS col2 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT - 74 + + - COUNT ( * ) + - 85 / + COUNT ( * ) AS col2 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT SUM( 17 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1858
SELECT SUM ( 17 ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + - COUNT( * ) * + + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1859
SELECT + - COUNT ( * ) * + + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + + 27 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1861
SELECT DISTINCT + 91 DIV - col0 + - + col0 + + + col2 FROM tab2 AS cor0
----
-18
-24
-25

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + 91 / - col0 + - + col0 + + + col2 FROM tab2 AS cor0
----
-18
-24
-25

query I rowsort
SELECT DISTINCT 99 * - 97 + + 12 FROM tab1
----
-9591

query I rowsort
SELECT DISTINCT - col1 + - - 80 AS col2 FROM tab2
----
13
29
3

query III rowsort
SELECT * FROM tab0 WHERE - - col0 >= - 79
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0 + + - col1 AS col0, + 89 AS col2 FROM tab2
----
-13
89
-5
89
8
89

query I rowsort
SELECT - col0 + col1 + + col0 + - col2 * + - col1 + 31 AS col0 FROM tab0
----
131
262
3919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1867
SELECT ALL 98 - - col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL 98 - - col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = col0
----

query I rowsort
SELECT DISTINCT - 36 * - + ( col0 ) * + - col2 AS col0 FROM tab0
----
-25380
-31320
-345708

query I rowsort
SELECT + col2 + - + col1 AS col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT ALL - COUNT( * ) + - 90 AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - COUNT ( * ) + - 90 AS col1 FROM tab1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-1872
SELECT DISTINCT 44 DIV + 79 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT 44 / + 79 AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1873
SELECT - col0 + - CAST( - 10 AS SIGNED ) FROM tab0
----
-5
-77
-87

skipif mysql # not compatible
query I rowsort label-1873
SELECT - col0 + - CAST ( - 10 AS INTEGER ) FROM tab0
----
-5
-77
-87

query II rowsort
SELECT DISTINCT + 44, ( - col2 ) * + + 19 * + col1 AS col0 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1875
SELECT col2 DIV - + col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT col2 / - + col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT - 62 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT + 95 AS col1 FROM tab2 cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + MIN( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-1879
SELECT + MIN ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 26 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT 72 * + CAST( NULL AS SIGNED ) * + - COUNT( * ) / MAX( ALL + 60 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT 72 * + CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / MAX ( ALL + 60 ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL - CAST( - 48 AS SIGNED ) FROM tab2
----
48
48
48

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - CAST ( - 48 AS INTEGER ) FROM tab2
----
48
48
48

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 39 * + col0 + - + ( + col1 ) - + + col0 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT DISTINCT - COUNT( * ) AS col2, + 1 AS col1 FROM tab0
----
-3
1

skipif mysql # not compatible
query II rowsort label-1884
SELECT DISTINCT - COUNT ( * ) AS col2, + 1 AS col1 FROM tab0
----
-3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT SUM( DISTINCT - - 13 ) col0 FROM tab0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1885
SELECT SUM ( DISTINCT - - 13 ) col0 FROM tab0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1886
SELECT 5 DIV + + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT 5 / + + col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT 29 AS col2, - ( + - COUNT( DISTINCT col0 ) ) FROM tab0
----
29
3

skipif mysql # not compatible
query II rowsort label-1888
SELECT 29 AS col2, - ( + - COUNT ( DISTINCT col0 ) ) FROM tab0
----
29
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 25 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL - SUM( + col2 ) * - + 42 AS col2 FROM tab2 AS cor0
----
5082

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - SUM ( + col2 ) * - + 42 AS col2 FROM tab2 AS cor0
----
5082

query I rowsort
SELECT - col2 * col0 * + - col1 + - col2 * + 54 * - 99 FROM tab2 AS cor0
----
176916
410960
601518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT CAST( NULL AS SIGNED ) + + 4 / - - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT CAST ( NULL AS INTEGER ) + + 4 / - - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 40 + + 46 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL - 2 + - COUNT( * ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - 2 + - COUNT ( * ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT DISTINCT col1 - + + col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - 61 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) + + 15 AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) + + 15 AS col2 FROM tab2
----
6

query I rowsort
SELECT ALL - col1 - - col2 - - 73 + 44 FROM tab0 AS cor0
----
106
215
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT - + 63 - col1 DIV - 95 * + - col0 FROM tab1 cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-1900
SELECT - + 63 - col1 / - 95 * + - col0 FROM tab1 cor0
----
-63
-63
-63

query I rowsort
SELECT col2 * 14 - 28 * + + col0 FROM tab2 AS cor0
----
-1232
-1288
-966

query II rowsort
SELECT ALL 11 AS col0, + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + + col0 - - col2 AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT DISTINCT + COUNT( * ) AS col2, 98 FROM tab1 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-1904
SELECT DISTINCT + COUNT ( * ) AS col2, 98 FROM tab1 AS cor0
----
3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT - + ( - COUNT( 78 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1905
SELECT - + ( - COUNT ( 78 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT - SUM( 43 ) FROM tab0 WHERE NOT + col1 / - + ( 10 ) - + + 31 <= 47 / - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT - SUM ( 43 ) FROM tab0 WHERE NOT + col1 / - + ( 10 ) - + + 31 <= 47 / - col2
----
NULL

query II rowsort
SELECT ALL 38, - col0 - - - col2 AS col0 FROM tab1
----
38
-144
38
-147
38
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT ALL col0 DIV col0 * col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL col0 / col0 * col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + - 91 AS col2, + 54 AS col0 FROM tab0 AS cor0
----
-91
54
-91
54
-91
54

query I rowsort
SELECT col0 * - col2 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT ALL + + COUNT( * ) * + 88 AS col1 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-1912
SELECT ALL + + COUNT ( * ) * + 88 AS col1 FROM tab1 AS cor0
----
264

query I rowsort
SELECT + - 76 * col1 FROM tab0 AS cor0
----
-1596
-6156
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT ALL SUM( + col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1914
SELECT ALL SUM ( + col1 ) col0 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT CAST( - MIN( 99 ) AS SIGNED ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT CAST ( - MIN ( 99 ) AS INTEGER ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1916
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT + col0 + + CAST( col2 AS SIGNED ) + 23 + col1 - + - col1 * - + col2 + + + col0 + + col2 / 85 NOT IN ( - - 30, col0 )
----

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + col2 AS col1 FROM tab1 WHERE NOT + col0 + + CAST ( col2 AS INTEGER ) + 23 + col1 - + - col1 * - + col2 + + + col0 + + col2 / 85 NOT IN ( - - 30, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT + CAST( - - col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1917
SELECT + CAST ( - - col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - - 41 FROM tab0 cor0 WHERE - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 91 + + col2 * + + 20 col0 FROM tab1 cor0
----
1212
1383
1915

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 29 AS col2 FROM tab2 AS cor0
----
52
69
87

query I rowsort
SELECT DISTINCT - - col0 + - + 29 - 55 FROM tab2 AS cor0
----
-20
-38
-9

query I rowsort
SELECT + - 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT ALL + 52 + - col1 FROM tab0
----
-29
31
51

query I rowsort
SELECT ALL - 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT COUNT( * ) + - 22 col0 FROM tab2
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1927
SELECT DISTINCT COUNT ( * ) + - 22 col0 FROM tab2
----
-19

query II rowsort
SELECT + col0, col2 - + col0 FROM tab1
----
51
45
85
-26
91
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1929
SELECT + + col1 AS col1, - CAST( - 31 AS SIGNED ) FROM tab1 AS cor0
----
14
31
47
31
5
31

skipif mysql # not compatible
query II rowsort label-1929
SELECT + + col1 AS col1, - CAST ( - 31 AS INTEGER ) FROM tab1 AS cor0
----
14
31
47
31
5
31

query I rowsort
SELECT DISTINCT + col1 + - ( - col1 ) + - + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + - col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
178929
2100
9801

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + 94 AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT - 5 - + COUNT( - 63 ) - + 39 * - ( COUNT( * ) ) AS col1 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-1934
SELECT - 5 - + COUNT ( - 63 ) - + 39 * - ( COUNT ( * ) ) AS col1 FROM tab0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT + 72 + COUNT( * ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 72 + COUNT ( * ) AS col1 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1936
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - col0 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT + MIN( - col0 ) + + + COUNT( * ) AS col2 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-1937
SELECT + MIN ( - col0 ) + + + COUNT ( * ) AS col2 FROM tab1
----
-88

query I rowsort
SELECT col2 + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT COUNT( * ) - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - col0 * col1 * + col1 FROM tab0 cor0
----
-38367
-97
-98415

query I rowsort
SELECT - + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT + MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1943
SELECT 9 / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1943
SELECT 9 / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1944
SELECT DISTINCT - CAST( - 16 AS SIGNED ) FROM tab0 WHERE NOT + - col2 IS NULL
----
16

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT - CAST ( - 16 AS INTEGER ) FROM tab0 WHERE NOT + - col2 IS NULL
----
16

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - + ( - 69 ) NOT IN ( col2 )
----

query II rowsort
SELECT 13 AS col2, + 31 AS col1 FROM tab0
----
13
31
13
31
13
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT DISTINCT + CAST( + 98 AS SIGNED ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT + CAST ( + 98 AS INTEGER ) FROM tab0
----
98

query I rowsort
SELECT DISTINCT 33 * col0 FROM tab2 AS cor0
----
1518
2112
2475

query I rowsort
SELECT 42 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 13 col2 FROM tab2 AS cor0
----
13
13
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 62 col1 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1953
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 68 / + + CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1953
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 68 / + + CAST ( + + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT - - COUNT( * ) * 63 FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - - COUNT ( * ) * 63 FROM tab2 cor0
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1955
SELECT ALL + COUNT( * ) DIV ( - ( 98 ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + COUNT ( * ) / ( - ( 98 ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT - 70 FROM tab1 WHERE NOT col0 + 30 + col0 IS NULL
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT COUNT( ALL + col1 ) * + 37 + + 78 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-1957
SELECT COUNT ( ALL + col1 ) * + 37 + + 78 FROM tab2
----
189

query I rowsort
SELECT + 0 * - 91 + col0 AS col1 FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT - col1, col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + + ( + col2 ) + - 54 * + 18 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col2 + + - col2 / + + col1 AND col0 + - col2
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1962
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 61 * + 0 <= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1962
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 61 * + 0 <= CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT + + SUM( DISTINCT + + 51 ) * + ( MIN( - col1 ) ) * COUNT( * ) * - SUM( - col1 ) + - 28 * 84 FROM tab2 AS cor0 WHERE + 87 IS NOT NULL
----
-2299647

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT + + SUM ( DISTINCT + + 51 ) * + ( MIN ( - col1 ) ) * COUNT ( * ) * - SUM ( - col1 ) + - 28 * 84 FROM tab2 AS cor0 WHERE + 87 IS NOT NULL
----
-2299647

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1965
SELECT MIN( DISTINCT + CAST( 8 AS SIGNED ) ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1965
SELECT MIN ( DISTINCT + CAST ( 8 AS INTEGER ) ) FROM tab0
----
8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1966
SELECT DISTINCT col1 DIV + + col2 + CAST( + - 84 AS SIGNED ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT col1 / + + col2 + CAST ( + - 84 AS INTEGER ) FROM tab1
----
-84

query I rowsort
SELECT col0 - + 73 - col1 - - col1 - - col2 AS col2 FROM tab1
----
71
74
86

query I rowsort
SELECT DISTINCT - ( + 53 ) FROM tab1 AS cor0
----
-53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1970
SELECT - - col2 + - - col1 * + - col0 * CAST( + col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-18260
-57058
-9504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1970
SELECT - - col2 + - - col1 * + - col0 * CAST ( + col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-18260
-57058
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT - CAST( NULL AS SIGNED ) + - 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - CAST ( NULL AS INTEGER ) + - 87 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT - - ( col0 ) DIV + - col1 + col2 FROM tab1 cor0
----
42
67
93

skipif mysql # not compatible
query I rowsort label-1972
SELECT - - ( col0 ) / + - col1 + col2 FROM tab1 cor0
----
42
67
93

query I rowsort
SELECT col0 * - 73 FROM tab2
----
-3358
-4672
-5475

query I rowsort
SELECT ALL - 13 * - col1 + + col0 FROM tab0
----
1068
110
360

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL - MIN( ALL - 64 ) + COUNT( + + ( - col1 ) ) + + ( + 6 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL - MIN ( ALL - 64 ) + COUNT ( + + ( - col1 ) ) + + ( + 6 ) FROM tab0
----
73

query I rowsort
SELECT DISTINCT col2 - + col0 AS col2 FROM tab1
----
-23
-26
45

query II rowsort
SELECT - col0, - col2 AS col1 FROM tab1
----
-51
-96
-85
-59
-91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1978
SELECT - 12, + 58 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-1978
SELECT - 12, + 58 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1979
SELECT DISTINCT SUM( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1980
SELECT DISTINCT - 35 DIV + col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT - 35 / + col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col0 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-1982
SELECT - 47 DIV - col1 AS col1, col0 AS col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-1982
SELECT - 47 / - col1 AS col1, col0 AS col2 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT - col2 + + col2 - - - col1 * col2 / 90 * + col1 * - col2 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + - ( - 84 ) * col2
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL col1 * - CAST( + - col1 AS SIGNED ) - + col1 + - + col1 FROM tab1 AS cor0
----
15
168
2115

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL col1 * - CAST ( + - col1 AS INTEGER ) - + col1 + - + col1 FROM tab1 AS cor0
----
15
168
2115

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT - 6 * COUNT( * ) FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1987
SELECT - 6 * COUNT ( * ) FROM tab1 cor0
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > 22 + - - 39 / 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT - MAX( ALL + 93 ) col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1989
SELECT - MAX ( ALL + 93 ) col1 FROM tab1 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT ALL + col1 * 56 DIV 84 - + - 1 AS col2 FROM tab2 AS cor0
----
35
45
52

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + col1 * 56 / 84 - + - 1 AS col2 FROM tab2 AS cor0
----
35
45
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT + COUNT( * ) * + COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1992
SELECT + COUNT ( * ) * + COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col0 AS col2, + 76 + + 85 FROM tab0 AS cor0 WHERE NULL >= - ( + - 51 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1994
SELECT + 67 AS col1, col1 DIV + - 62 * + + col1 AS col2 FROM tab1
----
67
0
67
0
67
0

skipif mysql # not compatible
query II rowsort label-1994
SELECT + 67 AS col1, col1 / + - 62 * + + col1 AS col2 FROM tab1
----
67
0
67
0
67
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + ( col1 ) - + col0 * 92 - 4 + + col1 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT DISTINCT CAST( NULL AS SIGNED ) * 85 + + 50 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 85 + + 50 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL COUNT( * ) * 67 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL COUNT ( * ) * 67 FROM tab2
----
201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + 33 * + - col0 col1 FROM tab1 cor0
----
-1627
-2749
-2947

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL + MAX( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL + MAX ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND + + col2
----
NULL

query I rowsort
SELECT - col2 + - 87 FROM tab1 AS cor0
----
-146
-155
-183

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + + col2
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + MIN( + 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2003
SELECT + MIN ( + 87 ) FROM tab0
----
87

query II rowsort
SELECT 38, col1 AS col0 FROM tab2
----
38
51
38
67
38
77

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 56 * + 72 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * + col0 * 91 AS col2 FROM tab0 AS cor0
----
-110565
-166257
-8827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2007
SELECT - COUNT( * ) - + - ( - MAX( DISTINCT + + CAST( - - col1 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2007
SELECT - COUNT ( * ) - + - ( - MAX ( DISTINCT + + CAST ( - - col1 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2008
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( + CAST( NULL AS SIGNED ) - col1 * 82 * - 18 )
----

skipif mysql # not compatible
query III rowsort label-2008
SELECT * FROM tab2 AS cor0 WHERE col0 IN ( + CAST ( NULL AS INTEGER ) - col1 * 82 * - 18 )
----

query II rowsort
SELECT DISTINCT - ( - col2 ), 48 AS col1 FROM tab0
----
10
48
47
48
99
48

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col1 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL + 57 * + 19 AS col0, ( col2 ) FROM tab0 AS cor0
----
1083
10
1083
47
1083
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + - col2 < NULL
----

query I rowsort
SELECT DISTINCT 33 * ( + - col2 ) AS col2 FROM tab0 AS cor0
----
-1551
-3267
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) < + col1 * col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2014
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( NULL ) < + col1 * col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2015
SELECT - CAST( NULL AS SIGNED ) AS col2, - col0 + 29 col1 FROM tab0
----
NULL
-58
NULL
-68
NULL
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2015
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col0 + 29 col1 FROM tab0
----
NULL
-58
NULL
-68
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ( + ( - 83 ) ) * - 89 * + - COUNT( - col1 ) FROM tab2
----
-22161

skipif mysql # not compatible
query I rowsort label-2016
SELECT ( + ( - 83 ) ) * - 89 * + - COUNT ( - col1 ) FROM tab2
----
-22161

query I rowsort
SELECT 60 * - - 35 AS col2 FROM tab2
----
2100
2100
2100

onlyif mysql # DIV for integer division: 
query II rowsort label-2018
SELECT - col0 DIV 25 * + col1 col0, + 54 * - 63 AS col2 FROM tab1
----
-141
-3402
-15
-3402
-28
-3402

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2018
SELECT - col0 / 25 * + col1 col0, + 54 * - 63 AS col2 FROM tab1
----
-141
-3402
-15
-3402
-28
-3402

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL ( - + ( + COUNT( * ) ) ) * SUM( DISTINCT col2 ) AS col0 FROM tab1 cor0
----
-669

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL ( - + ( + COUNT ( * ) ) ) * SUM ( DISTINCT col2 ) AS col0 FROM tab1 cor0
----
-669

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 + - 37 + - - 55 - 60 * - col2 * - 97 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + 15 + 7 FROM tab0 AS cor0
----
1312
1462
232

query I rowsort
SELECT ALL + + 76 + + col1 FROM tab2 AS cor0
----
127
143
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT DISTINCT - - 79 * - COUNT( * ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT - - 79 * - COUNT ( * ) / + COUNT ( * ) FROM tab0 AS cor0
----
-79

query I rowsort
SELECT - col2 * - 2 + + 21 + + + col1 AS col2 FROM tab2 AS cor0
----
118
178
204

query I rowsort
SELECT - col1 + + col0 + - col1 * + 89 * + 18 FROM tab2
----
-107326
-123367
-81707

query I rowsort
SELECT ALL + col1 * - 3 + - 9 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ( SUM( ALL - col1 ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2027
SELECT ( SUM ( ALL - col1 ) ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT ALL 64 - - col0 + + col0 FROM tab1
----
166
234
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
1

query I rowsort
SELECT + + 59 * col0 AS col1 FROM tab1 AS cor0
----
3009
5015
5369

query I rowsort
SELECT DISTINCT - - col1 + col0 - - col1 AS col2 FROM tab0 AS cor0
----
129
177
99

query I rowsort
SELECT + - ( + 28 ) - + + 15 - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1216
-3123
-3929

query I rowsort
SELECT - 73 + + + 45 AS col0 FROM tab2 WHERE col0 * - 64 * + 62 * - col2 >= - + 7
----
-28
-28
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 46 / + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + 76 * 86 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2036
SELECT + CAST( NULL AS SIGNED ), col1 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2036
SELECT + CAST ( NULL AS INTEGER ), col1 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 46 IS NOT NULL
----

query I rowsort
SELECT + + col1 * - col0 * - - 32 FROM tab2 cor0
----
-157696
-160800
-75072

query I rowsort
SELECT DISTINCT col2 * - 53 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query I rowsort label-2039
SELECT col1 DIV col2 * - col2 AS col1 FROM tab2
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-2039
SELECT col1 / col2 * - col2 AS col1 FROM tab2
----
-40
-46
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2040
SELECT ALL + ( - - MAX( 75 ) ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + ( - - MAX ( 75 ) ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + + COUNT( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2041
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * 7 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2043
SELECT + AVG ( + - col1 ) AS col0, - SUM( DISTINCT 76 ) FROM tab0 WHERE 38 + - - col1 IS NULL AND NOT NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2043
SELECT + AVG ( + - col1 ) AS col0, - SUM ( DISTINCT 76 ) FROM tab0 WHERE 38 + - - col1 IS NULL AND NOT NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2044
SELECT DISTINCT - col1 col0, + col2 DIV + 12 FROM tab0
----
-1
8
-21
0
-81
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2044
SELECT DISTINCT - col1 col0, + col2 / + 12 FROM tab0
----
-1
8
-21
0
-81
3

query II rowsort
SELECT col0 AS col2, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT + + 48 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2047
SELECT + + col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2047
SELECT + + col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2048
SELECT 55 AS col2, - col2 + CAST( NULL AS SIGNED ) + - col2 FROM tab2 cor0
----
55
NULL
55
NULL
55
NULL

skipif mysql # not compatible
query II rowsort label-2048
SELECT 55 AS col2, - col2 + CAST ( NULL AS INTEGER ) + - col2 FROM tab2 cor0
----
55
NULL
55
NULL
55
NULL

query I rowsort
SELECT DISTINCT - 63 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * + + col0 + + ( col1 ) + - 61 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT COUNT( * ) + + MIN( DISTINCT 32 ) AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-2052
SELECT COUNT ( * ) + + MIN ( DISTINCT 32 ) AS col1 FROM tab2
----
35

query I rowsort
SELECT - 82 FROM tab0 WHERE NOT - 73 - - 37 * col1 IS NULL
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * col2 col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query I rowsort
SELECT - - col2 * - ( 59 ) FROM tab1 AS cor0
----
-3481
-4012
-5664

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT ( 46 ) DIV - ( - 39 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2056
SELECT ( 46 ) / - ( - 39 ) FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ( + COUNT( * ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2057
SELECT ( + COUNT ( * ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 43 + - 24 * + + 40 AS col0 FROM tab0 AS cor0
----
-917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col0 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT - - MIN( ALL 97 ) FROM tab0 AS cor0 WHERE + ( - col1 ) = + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT - - MIN ( ALL 97 ) FROM tab0 AS cor0 WHERE + ( - col1 ) = + 66
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL <> col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2062
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col0 * + col2 * + col2 + + - col0 AS col0 FROM tab2 WHERE NOT ( - col2 BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT - CAST ( NULL AS REAL ) + col0 * + col2 * + col2 + + - col0 AS col0 FROM tab2 WHERE NOT ( - col2 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL ( - 68 ) AS col1 FROM tab1
----
-68
-68
-68

query I rowsort
SELECT 5 + + col0 + col0 * + col0 * - 41 + col2 + - - col2 FROM tab0
----
-310217
-385469
-9111

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT - + COUNT( * ) - - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - + COUNT ( * ) - - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT ALL - + SUM( + + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - + SUM ( + + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT + + col2 * 31 * - col2 + + col2 + ( + - 30 ) + - 52 - - col0 AS col1, + col0 * col1 + + + 93 + col1 * + col1 * + col1 FROM tab2 AS cor0
----
-104233
305881
-16412
135090
-49578
461554

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) < - col0 + - 57
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2070
SELECT CAST( - 24 AS SIGNED ) + COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2070
SELECT CAST ( - 24 AS INTEGER ) + COUNT ( * ) FROM tab2
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2071
SELECT DISTINCT AVG ( CAST( - col1 AS DECIMAL ) ) + + AVG ( DISTINCT + 19 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT AVG ( CAST ( - col1 AS REAL ) ) + + AVG ( DISTINCT + 19 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * col1 col2 FROM tab1
----
1358
4559
485

query I rowsort
SELECT 80 + - col1 FROM tab0
----
-1
59
79

query I rowsort
SELECT DISTINCT ( + col1 ) - ( col0 + col2 ) AS col1 FROM tab2
----
-18
-27
-66

query I rowsort
SELECT ( - 19 ) AS col2 FROM tab1
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ALL - MAX( 45 ) AS col0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - MAX ( 45 ) AS col0 FROM tab2
----
-45

query I rowsort
SELECT - 77 + 20 AS col1 FROM tab0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 33 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2079
SELECT + CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2079
SELECT + CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ( MIN( ALL col1 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2080
SELECT ( MIN ( ALL col1 ) ) AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT + 11 * 6 - - col0 AS col2 FROM tab2
----
112
130
141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 93
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( + col1 + + 83 ) = ( 67 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT ALL + COUNT( * ) + 17 AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL + COUNT ( * ) + 17 AS col2 FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN ( 58 / - 74 ) AND - 14 + + 27
----
15
81
47
97
1
99

query I rowsort
SELECT ALL ( 40 ) FROM tab2 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT + ( + SUM( - 47 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
-423

skipif mysql # not compatible
query I rowsort label-2088
SELECT + ( + SUM ( - 47 ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
-423

query I rowsort
SELECT ALL col1 + ( + 48 - + ( - col0 - 54 ) ) * col0 AS col0 FROM tab1 AS cor0
----
15900
17610
7817

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2090
SELECT - CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2091
SELECT + - CAST( NULL AS DECIMAL ) + 89 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT + - CAST ( NULL AS REAL ) + 89 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 92 > ( - col2 * + 23 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT 33 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2094
SELECT 33 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
36

query I rowsort
SELECT col0 + col1 + 39 * + 74 FROM tab0
----
2982
2984
2994

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT - MAX( + + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2096
SELECT - MAX ( + + col1 ) FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT 10 - + MIN( col2 ) AS col0 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT 10 - + MIN ( col2 ) AS col0 FROM tab1
----
-49

query I rowsort
SELECT DISTINCT col2 - + col2 AS col0 FROM tab2 WHERE ( - col2 * 60 + 24 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 9 * col2 + col0 AS col0 FROM tab1
----
616
703
915

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN ( + col0 * col1 + 50 ) AND + 3 - + col0
----

query I rowsort
SELECT 19 - col1 FROM tab1 AS cor0
----
-28
14
5

query I rowsort
SELECT ALL col2 * + - 5 + 97 AS col0 FROM tab1 AS cor0
----
-198
-243
-383

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT + COUNT( * ) - + - 6 * 12 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2103
SELECT + COUNT ( * ) - + - 6 * 12 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - - 31 + + col1 FROM tab0 AS cor0
----
112
32
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT + COUNT( * ) + 67 FROM tab1 WHERE - - col1 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT + COUNT ( * ) + 67 FROM tab1 WHERE - - col1 IS NOT NULL
----
70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 + - + 31 ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2109
SELECT DISTINCT + COUNT( * ), CAST( + 45 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
45

skipif mysql # not compatible
query II rowsort label-2109
SELECT DISTINCT + COUNT ( * ), CAST ( + 45 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT - ( + CAST( - col1 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2110
SELECT DISTINCT - ( + CAST ( - col1 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + - 28 >= - col1 * - 74 OR NOT 96 * 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 24 - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 50 IS NULL
----
-57
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT + SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT + SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT + 1 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + 1 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT COUNT( * ) * SUM( DISTINCT - - 35 ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( * ) * SUM ( DISTINCT - - 35 ) FROM tab2 AS cor0
----
105

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 49 > ( + - col1 + + 26 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2117
SELECT + col2 DIV - - 71 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2117
SELECT + col2 / - - 71 AS col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2118
SELECT DISTINCT - 43 DIV + + col2 * - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT - 43 / + + col2 * - col2 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT - col1 * + 91 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT - col1 * + 91 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2120
SELECT ALL COUNT( * ) DIV 86 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL COUNT ( * ) / 86 FROM tab2
----
0

query I rowsort
SELECT 9 * - col1 * + 99 AS col2 FROM tab0
----
-18711
-72171
-891

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( 19 + - col0 ) NOT BETWEEN ( 38 ) AND ( col2 * - col1 )
----

query I rowsort
SELECT 24 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
24
24
24

query I rowsort
SELECT - ( 58 ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL - COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2126
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT - MIN( 28 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2127
SELECT - MIN ( 28 ) FROM tab1 AS cor0
----
-28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 17 * + - col1 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2129
SELECT + col2 * + 7 AS col1 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( + + col1 )
----

skipif mysql # not compatible
query I rowsort label-2129
SELECT + col2 * + 7 AS col1 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 31 * + - col0 * col0 + + ( - col2 ) * + col0 IS NULL
----

query I rowsort
SELECT ALL col0 * - col1 + - col0 AS col2 FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT + col2 + + - 3 AS col1 FROM tab1
----
56
65
93

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2134
SELECT MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT - 3 DIV 20 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT - 3 / 20 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * - - 62 * + col1 FROM tab0 AS cor0
----
13020
236034
6138

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT SUM( 90 ) AS col1 FROM tab0 cor0
----
270

skipif mysql # not compatible
query I rowsort label-2137
SELECT SUM ( 90 ) AS col1 FROM tab0 cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2138
SELECT * FROM tab2 AS cor0 WHERE + 31 * + col0 IN ( + col2 / CAST( - col0 AS SIGNED ) / + col2 )
----

skipif mysql # not compatible
query III rowsort label-2138
SELECT * FROM tab2 AS cor0 WHERE + 31 * + col0 IN ( + col2 / CAST ( - col0 AS INTEGER ) / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL + 88 + COUNT( * ) AS col2 FROM tab2 cor0
----
91

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL + 88 + COUNT ( * ) AS col2 FROM tab2 cor0
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2140
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 49 + + col2 AS col2 FROM tab2
----
107
72
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 97 ) col1 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL COUNT( * ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL COUNT ( * ) - + COUNT ( * ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + MIN( 35 ) * 51 - + 73 AS col1 FROM tab0 WHERE col0 * - - col2 / + - col1 + - col1 <> ( - col1 )
----
1712

skipif mysql # not compatible
query I rowsort label-2145
SELECT + MIN ( 35 ) * 51 - + 73 AS col1 FROM tab0 WHERE col0 * - - col2 / + - col1 + - col1 <> ( - col1 )
----
1712

onlyif mysql # DIV for integer division: 
query I rowsort label-2146
SELECT - col2 * col1 DIV col0 + - 29 + - 83 + + + col2 + + 40 * col0 FROM tab2
----
1726
2440
2895

skipif mysql # not compatible
query I rowsort label-2146
SELECT - col2 * col1 / col0 + - 29 + - 83 + + + col2 + + 40 * col0 FROM tab2
----
1726
2440
2895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 96 - col2 col0 FROM tab1
----
96
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT DISTINCT col1 * + 55 * - ( col2 ) - + 70 * - col0 - - col1 DIV + col1 AS col1 FROM tab0
----
-208334
-5459
1346

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT col1 * + 55 * - ( col2 ) - + 70 * - col0 - - col1 / + col1 AS col1 FROM tab0
----
-208334
-5459
1346

query I rowsort
SELECT col1 + - 41 + + col2 * col0 * + + col0 FROM tab2 AS cor0
----
163876
326276
48678

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2150
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST( 61 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2150
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + CAST ( 61 AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IN ( 82 / + 43 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + COUNT( ALL - 63 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2153
SELECT + COUNT ( ALL - 63 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 * col0 * 42 * - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2155
SELECT ALL - 75, + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-75
3

skipif mysql # not compatible
query II rowsort label-2155
SELECT ALL - 75, + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-75
3

query II rowsort
SELECT ALL + col1 AS col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE col2 IN ( - + 17, - col1, + + 56 ) AND NOT 78 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + ( - MIN( + col1 ) ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2158
SELECT + ( - MIN ( + col1 ) ) col1 FROM tab2
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL - ( + 61 ) FROM tab1
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2161
SELECT COUNT( ALL - col2 ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2161
SELECT COUNT ( ALL - col2 ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT 84 * 91 + + col0 FROM tab0 AS cor0
----
7659
7731
7741

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 28 > - ( - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 71 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - col1 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2165
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 8 < col0
----

query I rowsort
SELECT - 74 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-1533
-5913
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2168
SELECT 29 * - 90 DIV - COUNT( * ) FROM tab0
----
870

skipif mysql # not compatible
query I rowsort label-2168
SELECT 29 * - 90 / - COUNT ( * ) FROM tab0
----
870

onlyif mysql # DIV for integer division: 
query I rowsort label-2169
SELECT - 44 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2169
SELECT - 44 / col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT - 20 DIV + col0 + 4 * + col2 FROM tab1
----
236
272
384

skipif mysql # not compatible
query I rowsort label-2170
SELECT - 20 / + col0 + 4 * + col2 FROM tab1
----
236
272
384

query I rowsort
SELECT + 6 + + - 74 FROM tab2
----
-68
-68
-68

query II rowsort
SELECT DISTINCT 48 AS col2, col0 FROM tab2
----
48
46
48
64
48
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT CAST( + MAX( + col2 ) AS SIGNED ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT CAST ( + MAX ( + col2 ) AS INTEGER ) AS col2 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col1 FROM tab1
----
93
93
93

query I rowsort
SELECT col2 * 18 + + 19 + - col0 AS col0 FROM tab1
----
1152
1696
996

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2176
SELECT + 78 DIV - - 58 + - COUNT( * ) + + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2176
SELECT + 78 / - - 58 + - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT 96 * - col2 * - col2 FROM tab2
----
153600
322944
50784

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + ( + + col1 )
----

query I rowsort
SELECT ( 81 ) * - - col2 AS col1 FROM tab1
----
4779
5508
7776

query I rowsort
SELECT DISTINCT - - 54 * + + col2 FROM tab0 AS cor0
----
2538
5346
540

onlyif mysql # aggregate syntax: 
query II rowsort label-2181
SELECT - 16 AS col0, MAX( DISTINCT + 64 ) AS col1 FROM tab0 AS cor0
----
-16
64

skipif mysql # not compatible
query II rowsort label-2181
SELECT - 16 AS col0, MAX ( DISTINCT + 64 ) AS col1 FROM tab0 AS cor0
----
-16
64

query I rowsort
SELECT ALL + 56 FROM tab1 AS cor0 WHERE NOT + 2 - + col2 + - 88 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + + MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2184
SELECT + + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - col2 * 43 FROM tab0 cor0
----
-2021
-4257
-430

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 IN ( - + col1, + 87 - + col0 )
----

query I rowsort
SELECT col1 * + + col2 + col2 AS col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT + COUNT( * ) + - 57 AS col2 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2188
SELECT + COUNT ( * ) + - 57 AS col2 FROM tab0 cor0
----
-54

query II rowsort
SELECT - + col2 * + col0, + col1 FROM tab1 AS cor0
----
-4896
14
-5015
5
-6188
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2190
SELECT MIN( ALL + col2 ) DIV - 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT MIN ( ALL + col2 ) / - 71 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 17 * + col2 - col1 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 * - col2 - - col1 FROM tab0 AS cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT + MAX( 85 ) FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2193
SELECT + MAX ( 85 ) FROM tab0 AS cor0
----
85

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT ( 41 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 <> ( col0 + 47 )
----

query II rowsort
SELECT ALL - 4 AS col2, + col0 FROM tab1
----
-4
51
-4
85
-4
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT COUNT( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + ( + 63 ) * - CAST( - col0 AS SIGNED ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + ( + 63 ) * - CAST ( - col0 AS INTEGER ) AND ( NULL )
----
0

query II rowsort
SELECT - col0, col2 AS col1 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT - - MIN( - col0 ) * + - COUNT( * ) + + 34 col0 FROM tab2 AS cor0
----
259

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2200
SELECT DISTINCT - - MIN ( - col0 ) * + - COUNT ( * ) + + 34 col0 FROM tab2 AS cor0
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL - COUNT( * ) * - MIN( ALL + + ( - 57 ) ) col1 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2201
SELECT ALL - COUNT ( * ) * - MIN ( ALL + + ( - 57 ) ) col1 FROM tab1 AS cor0
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT - COUNT( ALL + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2202
SELECT - COUNT ( ALL + - col2 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT SUM( ALL col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2203
SELECT SUM ( ALL col0 ) AS col2 FROM tab1 cor0
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2204
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2205
SELECT + + CAST( - - col1 AS SIGNED ), col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

skipif mysql # not compatible
query II rowsort label-2205
SELECT + + CAST ( - - col1 AS INTEGER ), col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT + + col2 * - 66 FROM tab0 AS cor0
----
-3102
-6534
-660

query II rowsort
SELECT - 9 AS col1, 59 FROM tab1 AS cor0
----
-9
59
-9
59
-9
59

query II rowsort
SELECT ALL - col1 AS col1, col2 * - col1 AS col2 FROM tab1 AS cor0
----
-14
-1344
-47
-3196
-5
-295

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( col0 ) <> + 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2210
SELECT DISTINCT * FROM tab0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) <> + col0
----

skipif mysql # not compatible
query III rowsort label-2210
SELECT DISTINCT * FROM tab0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT COUNT( + - 82 ) * - + MIN( ALL + col2 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2211
SELECT COUNT ( + - 82 ) * - + MIN ( ALL + col2 ) FROM tab2
----
-69

query I rowsort
SELECT - col1 * + - col1 * - - col1 FROM tab0
----
1
531441
9261

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL + 72 * - 46 * + MAX( - 82 ) AS col0 FROM tab1
----
271584

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL + 72 * - 46 * + MAX ( - 82 ) AS col0 FROM tab1
----
271584

query III rowsort
SELECT * FROM tab2 WHERE - ( - 93 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT + col1 DIV + col0 col1 FROM tab0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2215
SELECT DISTINCT + col1 / + col0 col1 FROM tab0
----
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 cor0 WHERE 80 NOT BETWEEN NULL AND - - col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT DISTINCT - MIN( - 46 ) + - 95 AS col1, 39 * - COUNT( * ) + - + 62 + + 94 AS col0 FROM tab0 AS cor0
----
-49
-85

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT - MIN ( - 46 ) + - 95 AS col1, 39 * - COUNT ( * ) + - + 62 + + 94 AS col0 FROM tab0 AS cor0
----
-49
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2218
SELECT DISTINCT + MAX( 89 ) DIV - COUNT( * ) FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT + MAX ( 89 ) / - COUNT ( * ) FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT ( + + COUNT( * ) ) - COUNT( ALL - - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT ( + + COUNT ( * ) ) - COUNT ( ALL - - col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT ALL COUNT( * ), + ( - - COUNT( * ) ) * - + 47 col2 FROM tab1 AS cor0
----
3
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2220
SELECT ALL COUNT ( * ), + ( - - COUNT ( * ) ) * - + 47 col2 FROM tab1 AS cor0
----
3
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * + col2 col1 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL - MAX( ALL - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL - MAX ( ALL - + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + - 43 / + + col1 / - col1 NOT BETWEEN col0 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT DISTINCT - SUM( ALL - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - SUM ( ALL - col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE col1 < - - 56
----
2

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE col1 < - - 56
----
2

query I rowsort
SELECT ALL - 79 + - + col2 AS col2 FROM tab1 AS cor0
----
-138
-147
-175

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----

query II rowsort
SELECT ALL - col2 + + col0 AS col0, - 30 * + ( + col1 ) FROM tab0
----
-2
-30
-32
-2430
77
-630

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 < + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT MIN( col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2230
SELECT MIN ( col1 ) col2 FROM tab0
----
1

query I rowsort
SELECT - 29 FROM tab2 AS cor0 WHERE NOT 45 IS NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT DISTINCT - MIN( ALL + col1 ) AS col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT - MIN ( ALL + col1 ) AS col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT ALL + - 56 AS col2 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 6 * + + 25 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 29 + - col1 AS col1 FROM tab1
----
-18
15
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * + ( 29 ) + - + 51 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + ( 29 ) + - + 51 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT + CAST( - - 56 AS SIGNED ) + + 14 AS col0 FROM tab1
----
70
70
70

skipif mysql # not compatible
query I rowsort label-2237
SELECT + CAST ( - - 56 AS INTEGER ) + + 14 AS col0 FROM tab1
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + col0 ) + + + col1 * + + col2 + + col2 * - + 54 - + - col0 AS col1, ( + - col0 ) col0 FROM tab2
----
1048
-64
23
-46
904
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT - SUM( - col1 ) + 81 AS col1 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-2239
SELECT - SUM ( - col1 ) + 81 AS col1 FROM tab1
----
147

query III rowsort
SELECT * FROM tab1 WHERE + col0 > - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + - col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT CAST( NULL AS SIGNED ) + + - ( - col0 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2242
SELECT CAST ( NULL AS INTEGER ) + + - ( - col0 ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL - COUNT( * ) + MAX( DISTINCT + - col2 ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL - COUNT ( * ) + MAX ( DISTINCT + - col2 ) AS col0 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT + MIN( ALL col2 ) * COUNT( ALL 92 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2244
SELECT + MIN ( ALL col2 ) * COUNT ( ALL 92 ) AS col2 FROM tab2
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + - 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT + MIN( DISTINCT + 69 ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + MIN ( DISTINCT + 69 ) FROM tab1 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT col2 * - CAST( - - col2 AS SIGNED ) * - col1 + - col0 FROM tab2
----
123136
225313
26933

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT col2 * - CAST ( - - col2 AS INTEGER ) * - col1 + - col0 FROM tab2
----
123136
225313
26933

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT MAX( - col0 ) + - 10 + 75 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-2248
SELECT MAX ( - col0 ) + - 10 + 75 FROM tab1
----
14

query II rowsort
SELECT ALL - + ( + - col0 ) - + ( - ( - + col2 ) ) AS col2, col2 AS col2 FROM tab2 AS cor0
----
17
58
23
23
24
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT ALL - + col1 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL - + col1 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 - - col0 + col0 * + + col0 * - col0 + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2252
SELECT + 26 * - ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT + 26 * - ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - col1 * col0
----

query I rowsort
SELECT 84 * - + 97 AS col0 FROM tab2 cor0
----
-8148
-8148
-8148

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT DISTINCT 6 * - col0 DIV + - col0 - + 99 * + - col0 + 70 AS col1 FROM tab1 AS cor0
----
5125
8491
9085

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT 6 * - col0 / + - col0 - + 99 * + - col0 + 70 AS col1 FROM tab1 AS cor0
----
5125
8491
9085

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL 70 * COUNT( * ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL 70 * COUNT ( * ) AS col2 FROM tab2
----
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 5 * + col0 * col2 col2, col0 AS col0 FROM tab1
----
-24480
51
-25075
85
-30940
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2258
SELECT - 85 DIV + ( - col0 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2258
SELECT - 85 / + ( - col0 ) FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab0 WHERE NOT ( ( NOT col0 IS NOT NULL ) )
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col0 FROM tab2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2261
SELECT col1 / - 79 * - CAST( NULL AS SIGNED ) * - + col0 + + ( - - col1 ) AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT col1 / - 79 * - CAST ( NULL AS INTEGER ) * - + col0 + + ( - - col1 ) AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL - col2 DIV col1 + - + col2 AS col2 FROM tab1 cor0
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - col2 / col1 + - + col2 AS col2 FROM tab1 cor0
----
-102
-69
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT DISTINCT - + SUM( - col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2263
SELECT DISTINCT - + SUM ( - col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2264
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( - + col0 AS SIGNED ) - - 3 >= NULL
----

skipif mysql # not compatible
query III rowsort label-2264
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( - + col0 AS INTEGER ) - - 3 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT + ( + COUNT( * ) ) * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2265
SELECT + ( + COUNT ( * ) ) * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + ( 9 ) AS col2 FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 87 col1 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2268
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT + + 59 + MAX( - + CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + + 59 + MAX ( - + CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT - 7 * + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2270
SELECT - 7 * + COUNT ( * ) FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT MIN( DISTINCT ( + col1 ) ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2271
SELECT MIN ( DISTINCT ( + col1 ) ) AS col1 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT col1 * + + col2 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + col1 + + - 31 + + col0 * - 82 - col2 AS col1 FROM tab2 AS cor0
----
-3775
-5242
-6172

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE ( + col1 * - col0 NOT IN ( + col0 ) )
----
51
85
91

query I rowsort
SELECT ALL - 72 + - + 74 FROM tab0
----
-146
-146
-146

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT DISTINCT + COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2277
SELECT DISTINCT + COUNT ( col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL 62 + + + col0 FROM tab1
----
113
147
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT COUNT( * ) + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2279
SELECT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query II rowsort
SELECT ALL 81 * + col2 + 79 AS col1, col2 * - - ( col2 ) FROM tab2 AS cor0 WHERE NOT + col2 + - + col2 IS NULL
----
1942
529
3319
1600
4777
3364

query I rowsort
SELECT 67 + 68 FROM tab0 cor0
----
135
135
135

query I rowsort
SELECT - - 85 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= 80
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 cor0 WHERE NULL >= - col2 * - col1 - + col1 / - col0 - - 43
----

query I rowsort
SELECT DISTINCT + - col2 - + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-98
431
6514

query I rowsort
SELECT - ( col2 ) AS col2 FROM tab1 AS cor0 WHERE ( - 2 ) * - col0 / - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT - MIN( DISTINCT + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2288
SELECT - MIN ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * - col0
----

query I rowsort
SELECT DISTINCT - - 57 * - + col2 FROM tab0 cor0
----
-2679
-5643
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2292
SELECT 82 DIV + 91 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2292
SELECT 82 / + 91 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 * + 21 FROM tab1
----
-105
-294
-987

query III rowsort
SELECT * FROM tab0 WHERE NOT + 12 * - col1 * - 10 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT DISTINCT CAST( - + 50 AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT CAST ( - + 50 AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * col0 * + + col1 * col1 FROM tab0 cor0
----
-1476225
-3337929
-9409

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 50 - col2 < ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2298
SELECT CAST( NULL AS SIGNED ), - col1 - + col1 - + + ( col2 ) + + col0 / - - 73 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + + ( + - col2 ) / - 21 + - - 13 + col1 - col1
----

skipif mysql # not compatible
query II rowsort label-2298
SELECT CAST ( NULL AS INTEGER ), - col1 - + col1 - + + ( col2 ) + + col0 / - - 73 * + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND + + ( + - col2 ) / - 21 + - - 13 + col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT COUNT( - 38 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2299
SELECT COUNT ( - 38 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 33 * - col0 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT 32 * 78 AS col0 FROM tab1
----
2496
2496
2496

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT ( 42 ) + + col0 FROM tab0 AS cor0
----
129
139
57

query I rowsort
SELECT + col2 + - + 96 FROM tab1 AS cor0
----
-28
-37
0

query I rowsort
SELECT - + col0 + - 63 FROM tab0 AS cor0
----
-150
-160
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2306
SELECT COUNT( * ) + + 89 + COUNT( * ) - - COUNT( DISTINCT col1 ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT COUNT ( * ) + + 89 + COUNT ( * ) - - COUNT ( DISTINCT col1 ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - COUNT( * ) + + 14 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2307
SELECT - COUNT ( * ) + + 14 FROM tab0 AS cor0
----
11

query I rowsort
SELECT - col0 + + 98 AS col1 FROM tab2 AS cor0
----
23
34
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 + col0 col2 FROM tab2 AS cor0
----
122
140
151

query I rowsort
SELECT col1 + - col2 * + + 6 FROM tab0
----
-201
-39
-593

query I rowsort
SELECT + col0 + - - 9 FROM tab2
----
55
73
84

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT ALL + col0 + - col1 DIV + 62 + - - 18 FROM tab0
----
105
115
32

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL + col0 + - col1 / + 62 + - - 18 FROM tab0
----
105
115
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT MIN( - - col2 ) * + SUM( + col2 ) AS col1 FROM tab2
----
2783

skipif mysql # not compatible
query I rowsort label-2313
SELECT MIN ( - - col2 ) * + SUM ( + col2 ) AS col1 FROM tab2
----
2783

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 <= + + col2 + - + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + MAX( DISTINCT + col0 ) col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2315
SELECT + MAX ( DISTINCT + col0 ) col2 FROM tab1 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT col0 - + col0 + + col1 + + - CAST( NULL AS SIGNED ) * + 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT col0 - + col0 + + col1 + + - CAST ( NULL AS INTEGER ) * + 94 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT + COUNT( * ) - + 6 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT + COUNT ( * ) - + 6 FROM tab1
----
-3

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT + + 12 * + col2 FROM tab0 AS cor0
----
1188
120
564

query I rowsort
SELECT - + 58 * + + col0 * + col1 FROM tab1 AS cor0
----
-24650
-248066
-41412

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + 56 * - - col2 * - 90 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col1 col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 94 col0, col1 AS col2, - 35 FROM tab2
----
9 values hashing to df2a4799c80c7c4ed4a782db9aebf0ad

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - col1 + + 3 * - col2 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL - ( + ( + COUNT( * ) ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL - ( + ( + COUNT ( * ) ) ) AS col0 FROM tab1
----
-3

query II rowsort
SELECT ALL 84, - 75 * 67 AS col2 FROM tab2
----
84
-5025
84
-5025
84
-5025

query I rowsort
SELECT ALL + ( - 42 ) FROM tab1
----
-42
-42
-42

query II rowsort
SELECT 99, 97 + - col0 * - col0 AS col2 FROM tab1
----
99
2698
99
7322
99
8378

query I rowsort
SELECT ALL - 6 * - 24 AS col2 FROM tab2 AS cor0
----
144
144
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT - MAX( - 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2331
SELECT - MAX ( - 92 ) FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL ( 88 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query II rowsort
SELECT ALL + 43 + + col1 + - col0 * ( + 36 ) * - ( - + col1 ) * col1 AS col0, + 51 * 68 + + - col2 FROM tab2 AS cor0
----
-12120190
3410
-13660296
3428
-4307162
3445

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2334
SELECT DISTINCT - MAX( DISTINCT - col2 ) DIV - 3 col0, - 27 AS col1 FROM tab2 AS cor0
----
-7
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2334
SELECT DISTINCT - MAX ( DISTINCT - col2 ) / - 3 col0, - 27 AS col1 FROM tab2 AS cor0
----
-7
-27

query I rowsort
SELECT ALL - 73 + - col2 + col0 FROM tab2 AS cor0
----
-49
-50
-56

query I rowsort
SELECT ALL - 79 + - + 22 + + - col0 AS col0 FROM tab1 AS cor0
----
-152
-186
-192

query I rowsort
SELECT ALL + col0 + + + ( - col1 ) * - col1 FROM tab2 cor0
----
2647
4564
5993

query I rowsort
SELECT col0 - - - 47 + - col1 FROM tab1 AS cor0
----
-10
-3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL - 76 + COUNT( * ) AS col1 FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL - 76 + COUNT ( * ) AS col1 FROM tab2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT + col0 + - 70 + - col2 DIV + col1 FROM tab0
----
-55
-72
17

skipif mysql # not compatible
query I rowsort label-2340
SELECT + col0 + - 70 + - col2 / + col1 FROM tab0
----
-55
-72
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2341
SELECT + ( col1 ) DIV - col2 * - 13 + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2341
SELECT + ( col1 ) / - col2 * - 13 + + col2 AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT + ( col1 ) * 44 * - 3 + + 96 + - ( + - ( 2 ) ) + - 38 + + col0 FROM tab1 AS cor0
----
-1737
-515
-6053

query I rowsort
SELECT - - col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2344
SELECT ALL + COUNT( * ) * + 36 AS col0, + ( 35 ) AS col1 FROM tab2
----
108
35

skipif mysql # not compatible
query II rowsort label-2344
SELECT ALL + COUNT ( * ) * + 36 AS col0, + ( 35 ) AS col1 FROM tab2
----
108
35

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2, + 20 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT ALL ( CAST( - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL ( CAST ( - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + col1 NOT IN ( - 91, + 87, + col2, + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > col0 - + 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT + ( ( - - 49 ) ) * + COUNT( * ) AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-2350
SELECT + ( ( - - 49 ) ) * + COUNT ( * ) AS col0 FROM tab1
----
147

query I rowsort
SELECT DISTINCT 59 * + 27 AS col2 FROM tab2
----
1593

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT - 89 * + + 75 + + COUNT( - col0 ) FROM tab1 AS cor0
----
-6672

skipif mysql # not compatible
query I rowsort label-2352
SELECT - 89 * + + 75 + + COUNT ( - col0 ) FROM tab1 AS cor0
----
-6672

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2353
SELECT + 64 AS col1, col0 - - 26 + - CAST( - - 47 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
64
25
64
43
64
54

skipif mysql # not compatible
query II rowsort label-2353
SELECT + 64 AS col1, col0 - - 26 + - CAST ( - - 47 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
64
25
64
43
64
54

query I rowsort
SELECT ALL - + 75 FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT + + 76 * - - CAST( - + MAX( ALL + - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3876

skipif mysql # not compatible
query I rowsort label-2355
SELECT + + 76 * - - CAST ( - + MAX ( ALL + - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3876

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 41 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - + 13 ) AS col1 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL ( - - 10 ) * - - MAX( - + 16 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2358
SELECT ALL ( - - 10 ) * - - MAX ( - + 16 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT col0 + 39 + + + col2 AS col0 FROM tab0
----
101
136
235

query III rowsort
SELECT * FROM tab1 WHERE - 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - 54 + - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + MIN( + - 98 ) AS col2 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + MIN ( + - 98 ) AS col2 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT ALL col1 + 42 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ALL - + COUNT( * ) + - + 81 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL - + COUNT ( * ) + - + 81 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46

query II rowsort
SELECT + 86 AS col0, col0 FROM tab1 AS cor0
----
86
51
86
85
86
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT - COUNT( DISTINCT - - col1 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2367
SELECT - COUNT ( DISTINCT - - col1 ) col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 - + 19 <> ( + + col1 )
----

query I rowsort
SELECT DISTINCT - + 63 AS col1 FROM tab0 WHERE NOT - 44 BETWEEN - col2 + - col0 + col1 AND - - col0 * - col0
----
-63

query I rowsort
SELECT DISTINCT ( - 64 ) - - col0 AS col2 FROM tab0 cor0
----
-49
23
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT ALL - col1 - - CAST( + 56 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-11
-21
5

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - col1 - - CAST ( + 56 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-11
-21
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 NOT BETWEEN NULL AND - 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT + ( COUNT( * ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2373
SELECT + ( COUNT ( * ) ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT + + ( + ( - ( + + 61 ) ) ) FROM tab0 cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT - CAST( + + 87 AS SIGNED ) FROM tab0 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-2375
SELECT - CAST ( + + 87 AS INTEGER ) FROM tab0 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-2376
SELECT DISTINCT + 25 AS col2, - 44 * COUNT( * ) FROM tab2 AS cor0
----
25
-132

skipif mysql # not compatible
query II rowsort label-2376
SELECT DISTINCT + 25 AS col2, - 44 * COUNT ( * ) FROM tab2 AS cor0
----
25
-132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2377
SELECT ALL 57 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
57
NULL
57
NULL
57
NULL

skipif mysql # not compatible
query II rowsort label-2377
SELECT ALL 57 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
57
NULL
57
NULL
57
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2378
SELECT + 58 DIV + COUNT( * ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2378
SELECT + 58 / + COUNT ( * ) AS col0 FROM tab0
----
19

query I rowsort
SELECT + 16 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16
16
16

query I rowsort
SELECT - col1 * - 8 AS col2 FROM tab2
----
408
536
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2381
SELECT + CAST( COUNT( * ) AS SIGNED ) + - 35 + - 94 + + 73 - - 9 * + 4 AS col2 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2381
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + - 35 + - 94 + + 73 - - 9 * + 4 AS col2 FROM tab2 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT + - CAST( NULL AS SIGNED ) / 62 * 76 * CAST( + 1 AS SIGNED ) + AVG ( DISTINCT + col0 ) + - - 11 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2382
SELECT + - CAST ( NULL AS INTEGER ) / 62 * 76 * CAST ( + 1 AS INTEGER ) + AVG ( DISTINCT + col0 ) + - - 11 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 85 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - col0 * 92 - + ( col1 ) FROM tab2 AS cor0
----
-4283
-5965
-6967

query I rowsort
SELECT - ( col2 ) * - col0 + 1 AS col2 FROM tab2 AS cor0
----
1059
2561
4351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT - + CAST( NULL AS SIGNED ) / 46 - + MAX( - col0 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT - + CAST ( NULL AS INTEGER ) / 46 - + MAX ( - col0 ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 55 AS col0 FROM tab0 WHERE 7 + col2 NOT BETWEEN col2 / - col0 + + col0 * + - col0 + + + 74 AND - col2 / - - col0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL + MAX( DISTINCT - 64 ) col1 FROM tab1 WHERE + 94 * 18 * - col1 <> ( col2 ) + + + ( - 46 ) - 63 * + col0
----
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2388
SELECT ALL + MAX ( DISTINCT - 64 ) col1 FROM tab1 WHERE + 94 * 18 * - col1 <> ( col2 ) + + + ( - 46 ) - 63 * + col0
----
-64

query I rowsort
SELECT ALL 33 * col1 + - + col0 AS col1 FROM tab2
----
1637
2136
2477

query II rowsort
SELECT ALL + 64 * col0 * - col1, + 26 AS col1 FROM tab1 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE + + col2 * - col0 / ( 82 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL + MAX( - col1 ) + - 46 AS col0 FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + MAX ( - col1 ) + - 46 AS col0 FROM tab0
----
-47

query III rowsort
SELECT * FROM tab2 WHERE col2 + - 90 BETWEEN NULL AND - + 39 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT COUNT( DISTINCT - col2 ) + 99 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2394
SELECT COUNT ( DISTINCT - col2 ) + 99 FROM tab2
----
102

query I rowsort
SELECT - 46 - - 45 + col2 AS col1 FROM tab1 WHERE + + 32 IS NOT NULL
----
58
67
95

query I rowsort
SELECT ALL 45 * - col2 - + + col1 - - 53 FROM tab1
----
-2607
-3054
-4281

query II rowsort
SELECT col2, - col1 + + 42 FROM tab0
----
10
21
47
-39
99
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT COUNT( * ) * SUM( col0 ) col2 FROM tab1 cor0
----
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2398
SELECT DISTINCT COUNT ( * ) * SUM ( col0 ) col2 FROM tab1 cor0
----
681

query II rowsort
SELECT DISTINCT + + 0 * + col0 AS col1, col2 AS col1 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2400
SELECT ( - CAST( NULL AS DECIMAL ) ) / col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2400
SELECT ( - CAST ( NULL AS REAL ) ) / col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - MAX( ALL col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - MAX ( ALL col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT DISTINCT + + COUNT( DISTINCT col1 ), - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2402
SELECT DISTINCT + + COUNT ( DISTINCT col1 ), - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - ( - col2 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 95 + col1 + + col1 + - col2 FROM tab2 cor0
----
171
174
209

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2405
SELECT DISTINCT + CAST( - - col1 AS SIGNED ), - col2 * col2 AS col1 FROM tab2 AS cor0
----
51
-529
67
-3364
77
-1600

skipif mysql # not compatible
query II rowsort label-2405
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ), - col2 * col2 AS col1 FROM tab2 AS cor0
----
51
-529
67
-3364
77
-1600

query I rowsort
SELECT - 38 FROM tab2 WHERE NOT - - col1 NOT BETWEEN - col0 + + col0 AND NULL
----

query I rowsort
SELECT - 48 + + + 47 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col0 + + 5 FROM tab0
----
102
20
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT DISTINCT col1 DIV + col2 col1 FROM tab2
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2409
SELECT DISTINCT col1 / + col2 col1 FROM tab2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT + col2 DIV 48 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2410
SELECT + col2 / 48 AS col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT MIN( ALL 99 ) * + 81 AS col2 FROM tab0
----
8019

skipif mysql # not compatible
query I rowsort label-2411
SELECT MIN ( ALL 99 ) * + 81 AS col2 FROM tab0
----
8019

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT DISTINCT * FROM tab0 WHERE NOT - 37 * + + CAST( NULL AS SIGNED ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT DISTINCT * FROM tab0 WHERE NOT - 37 * + + CAST ( NULL AS INTEGER ) * + col1 IS NULL
----

query I rowsort
SELECT ALL + ( - 3 ) FROM tab0 cor0
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2414
SELECT ALL + ( col1 ) - + col1 - col2 + CAST( - col2 AS SIGNED ) * - - col1 FROM tab0
----
-198
-220
-3854

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + ( col1 ) - + col1 - col2 + CAST ( - col2 AS INTEGER ) * - - col1 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT DISTINCT - - 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query III rowsort
SELECT * FROM tab1 WHERE + 73 + + + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 86 - + ( - col0 ) FROM tab0 AS cor0
----
101
173
183

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= 43
----

query I rowsort
SELECT DISTINCT col0 * + - 18 FROM tab1 AS cor0
----
-1530
-1638
-918

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT MIN( - + col2 ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-2422
SELECT MIN ( - + col2 ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT - COUNT( * ) - + - 13 AS col1 FROM tab0 WHERE - 69 + + 25 IS NULL
----
13

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT - COUNT ( * ) - + - 13 AS col1 FROM tab0 WHERE - 69 + + 25 IS NULL
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col0 FROM tab1
----
-93

query I rowsort
SELECT ALL ( - + 82 ) FROM tab0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT col1 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT col1 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT 96 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2427
SELECT 96 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2428
SELECT DISTINCT - CAST( - 91 AS SIGNED ) col0 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2428
SELECT DISTINCT - CAST ( - 91 AS INTEGER ) col0 FROM tab0 AS cor0
----
91

query I rowsort
SELECT + 12 * col2 + - col0 + 7 FROM tab1 AS cor0
----
1108
630
732

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT SUM( DISTINCT + - ( - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2431
SELECT SUM ( DISTINCT + - ( - col2 ) ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT 13, + 76 AS col1 FROM tab1
----
13
76
13
76
13
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2433
SELECT ALL - CAST( + col1 AS SIGNED ) DIV - - 36 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL - CAST ( + col1 AS INTEGER ) / - - 36 FROM tab0
----
-2
0
0

query II rowsort
SELECT DISTINCT ( + col1 ) AS col0, col1 * col2 FROM tab0
----
1
99
21
210
81
3807

query I rowsort
SELECT ALL - + col0 * - 14 FROM tab0 AS cor0
----
1218
1358
210

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col0 + - col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT ALL COUNT( * ) * 11 AS col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL COUNT ( * ) * 11 AS col1 FROM tab2 AS cor0
----
33

query II rowsort
SELECT - col2 AS col0, + col2 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query II rowsort
SELECT 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-2440
SELECT - + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2440
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 27 + 24 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT + col0 * - + CAST( - col1 AS SIGNED ) + + col2 * col2 FROM tab2 AS cor0
----
2875
6528
8389

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + col0 * - + CAST ( - col1 AS INTEGER ) + + col2 * col2 FROM tab2 AS cor0
----
2875
6528
8389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 65 + + col1 * - col1 col1 FROM tab0 AS cor0
----
-366
-6449
163

query II rowsort
SELECT ALL 59 * + 41, col0 FROM tab0
----
2419
15
2419
87
2419
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + - 16 ) * col2 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col2 + - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
-1080
-4512
-9702

query II rowsort
SELECT + 9 + + + 51 * + col2, + col1 AS col2 FROM tab2 AS cor0
----
1182
51
2049
77
2967
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT + 52 + 79 FROM tab0 AS cor0 WHERE CAST( - - ( - + col2 ) AS SIGNED ) IS NOT NULL
----
131
131
131

skipif mysql # not compatible
query I rowsort label-2448
SELECT + 52 + 79 FROM tab0 AS cor0 WHERE CAST ( - - ( - + col2 ) AS INTEGER ) IS NOT NULL
----
131
131
131

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 94
----

query I rowsort
SELECT + 4 + - col2 + + + 97 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-4966
-6553
-7505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL + CAST( NULL AS SIGNED ) / - - col1 + + col0 + + + col2 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-2451
SELECT ALL + CAST ( NULL AS INTEGER ) / - - col1 + + col0 + + + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 65 * + - col0 AS col0 FROM tab0 AS cor0
----
-5655
-6305
-975

query I rowsort
SELECT - 44 * - col0 FROM tab1 WHERE NOT - 54 * - - col2 IS NULL
----
2244
3740
4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT ALL + CAST( + MAX( + 98 ) AS SIGNED ) AS col0 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + CAST ( + MAX ( + 98 ) AS INTEGER ) AS col0 FROM tab0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 col1, col0 * + + col1 * + col0 + + col0 + - - col0 AS col1 FROM tab1
----
425
36295
4277
389389
714
36516

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL + 99 * - + COUNT( * ) FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL + 99 * - + COUNT ( * ) FROM tab2 AS cor0
----
-297

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 49 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + + + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT COUNT( * ) DIV 25 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2459
SELECT COUNT ( * ) / 25 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - 52 + + 95 >= + 50 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL < ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT DISTINCT + COUNT( * ) * 80 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT + COUNT ( * ) * 80 FROM tab0 AS cor0
----
240

query I rowsort
SELECT DISTINCT + + col1 * 28 * 8 FROM tab0 AS cor0
----
18144
224
4704

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 72 + - col1 AS col0 FROM tab1 AS cor0
----
-119
-77
-86

query I rowsort
SELECT 50 * 28 + - col0 AS col0 FROM tab0
----
1303
1313
1385

query I rowsort
SELECT ALL - col2 * + 37 + 31 + + col2 AS col2 FROM tab1
----
-2093
-2417
-3425

query I rowsort
SELECT + col2 + 16 AS col0 FROM tab0
----
115
26
63

query II rowsort
SELECT - col2, col1 + col2 * - 51 * + 53 AS col1 FROM tab2
----
-23
-62118
-40
-108043
-58
-156707

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 25 FROM tab2
----
102
76
92

query I rowsort
SELECT DISTINCT + col2 * + - 31 AS col2 FROM tab1
----
-1829
-2108
-2976

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <= + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2475
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 + CAST( NULL AS SIGNED ) + 39 NOT BETWEEN NULL AND - col2 )
----

skipif mysql # not compatible
query III rowsort label-2475
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 + CAST ( NULL AS INTEGER ) + 39 NOT BETWEEN NULL AND - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - - 83 <= NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + 65 FROM tab2 AS cor0
----
116
132
142

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2478
SELECT DISTINCT - col0 / 76 * + col1 * + 94 * CAST( + + col2 AS DECIMAL ) + + col1 * + col0, + col2 / col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 - col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2478
SELECT DISTINCT - col0 / 76 * + col1 * + 94 * CAST ( + + col2 AS REAL ) + + col1 * + col0, + col2 / col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2479
SELECT CAST( - - 8 AS SIGNED ) * - col2 - + col0 FROM tab0 AS cor0
----
-167
-391
-889

skipif mysql # not compatible
query I rowsort label-2479
SELECT CAST ( - - 8 AS INTEGER ) * - col2 - + col0 FROM tab0 AS cor0
----
-167
-391
-889

query II rowsort
SELECT + 7 + + + col1 AS col2, + col2 AS col2 FROM tab0
----
28
10
8
99
88
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL COUNT( * ) + - COUNT( DISTINCT - col1 ) + 3 + ( COUNT( * ) ) + COUNT( * ) + - + 99 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL COUNT ( * ) + - COUNT ( DISTINCT - col1 ) + 3 + ( COUNT ( * ) ) + COUNT ( * ) + - + 99 FROM tab1
----
-90

query I rowsort
SELECT - ( - col1 ) + - + col2 FROM tab2
----
28
37
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2483
SELECT 77 DIV + col2 + col0 + col0 * col1 FROM tab1
----
4369
511
765

skipif mysql # not compatible
query I rowsort label-2483
SELECT 77 / + col2 + col0 + col0 * col1 FROM tab1
----
4369
511
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT CAST( + - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2485
SELECT CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT + - 18 DIV - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - 18 / - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col1 col2, col2 - + - col0 FROM tab0 AS cor0
----
-1
196
-441
97
-6561
62

query I rowsort
SELECT DISTINCT + col0 * - col0 * - col2 * - + col0 FROM tab0 AS cor0
----
-158625
-6585030
-90354627

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2489
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT COUNT( * ) * 47 AS col1 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-2490
SELECT COUNT ( * ) * 47 AS col1 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT COUNT( DISTINCT + col2 ) FROM tab0 WHERE NOT ( NOT col0 * - col1 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2491
SELECT COUNT ( DISTINCT + col2 ) FROM tab0 WHERE NOT ( NOT col0 * - col1 IS NOT NULL )
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + col2, col0 * - col2 * col1, + col1, 34 )
----

query II rowsort
SELECT + 35, 41 AS col2 FROM tab0 AS cor0
----
35
41
35
41
35
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL - MAX( - - 44 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL - MAX ( - - 44 ) AS col1 FROM tab1 AS cor0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) <> NULL
----

query I rowsort
SELECT ALL + 13 - - 48 * col1 FROM tab1
----
2269
253
685

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT COUNT( * ) * 44 AS col0 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2497
SELECT COUNT ( * ) * 44 AS col0 FROM tab0
----
132

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 78 * + col0 ) NOT BETWEEN - col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT MAX( DISTINCT - 16 ) * COUNT( * ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2499
SELECT MAX ( DISTINCT - 16 ) * COUNT ( * ) AS col0 FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT ALL CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE col1 NOT IN ( col2 + col1 / - ( col2 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE col1 NOT IN ( col2 + col1 / - ( col2 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - COUNT( * ) FROM tab2 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - COUNT ( * ) FROM tab2 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2503
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + col0 BETWEEN + CAST( col1 AS SIGNED ) * - col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2503
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + col0 BETWEEN + CAST ( col1 AS INTEGER ) * - col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN 77 + 27 AND + col0
----

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT + ( 18 ) + col1 * col1 AS col1 FROM tab1 WHERE NOT col0 <= + ( col0 )
----

query I rowsort
SELECT DISTINCT - 74 * col1 FROM tab1
----
-1036
-3478
-370

query I rowsort
SELECT DISTINCT + col0 * 16 - 19 AS col2 FROM tab0
----
1373
1533
221

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE - col2 NOT IN ( 54 * 59 )
----
10
47
99

query I rowsort
SELECT 69 * - 83 FROM tab0
----
-5727
-5727
-5727

query III rowsort
SELECT * FROM tab0 WHERE - 17 BETWEEN ( NULL ) AND - col0 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT 74 * col0 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT 80 * + col1 FROM tab0
----
1680
6480
80

query I rowsort
SELECT ( + col0 ) * - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT CAST( NULL AS SIGNED ) * + col2 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT CAST ( NULL AS INTEGER ) * + col2 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col1 * - col1 FROM tab0 cor0
----
-354
-6546
96

query I rowsort
SELECT - 50 + + col2 * 39 FROM tab0 AS cor0
----
1783
340
3811

query I rowsort
SELECT ALL 32 + 55 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT ALL + 89 * col2 + 30 DIV ( 27 ) AS col1 FROM tab2
----
2048
3561
5163

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + 89 * col2 + 30 / ( 27 ) AS col1 FROM tab2
----
2048
3561
5163

query I rowsort
SELECT 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE - 2 + 80 * 27 IS NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ( - 63 ) FROM tab1
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL - col1 DIV + ( - 41 * + col2 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL - col1 / + ( - 41 * + col2 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * + 30 FROM tab0
----
2430
30
630

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2526
SELECT + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT ALL MIN( ALL col1 ) FROM tab1 cor0 WHERE ( 30 + col0 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL MIN ( ALL col1 ) FROM tab1 cor0 WHERE ( 30 + col0 ) >= NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( + 38 + col1 ) >= ( + 21 + col1 )
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT - MIN( - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT - MIN ( - col1 ) FROM tab0 AS cor0
----
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( - ( - col2 ) )
----

query I rowsort
SELECT col2 * col0 * + col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT - COUNT( - col2 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT DISTINCT - COUNT ( - col2 ) col0 FROM tab0
----
-3

query I rowsort
SELECT ( 38 ) * 39 FROM tab2
----
1482
1482
1482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2535
SELECT DISTINCT col2 * + col2 * CAST( + col0 * col1 AS SIGNED ) AS col0 FROM tab2
----
1241034
16904100
7884800

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT col2 * + col2 * CAST ( + col0 * col1 AS INTEGER ) AS col0 FROM tab2
----
1241034
16904100
7884800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT 95 DIV SUM( 18 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT 95 / SUM ( 18 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT ALL - ( + + 65 ) DIV + col0 col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2537
SELECT ALL - ( + + 65 ) / + col0 col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + 39 FROM tab1 WHERE NOT NULL IS NOT NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT COUNT( * ) * + - 14 col2 FROM tab1
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2539
SELECT COUNT ( * ) * + - 14 col2 FROM tab1
----
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT COUNT( ALL + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2541
SELECT COUNT ( ALL + col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab2 WHERE + - col2 / - col0 + col1 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 67 NOT IN ( - 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col1 col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT COUNT( * ) * + MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2546
SELECT COUNT ( * ) * + MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
-15

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - + 7 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> 54
----

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT COUNT( * ) + - 75 * - 72 FROM tab0 AS cor0
----
5403

skipif mysql # not compatible
query I rowsort label-2552
SELECT COUNT ( * ) + - 75 * - 72 FROM tab0 AS cor0
----
5403

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 83 IS NULL
----

query II rowsort
SELECT ALL + col2 AS col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT + 68 + - SUM( col0 ) + 72 * - 40 FROM tab0 AS cor0
----
-3011

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + 68 + - SUM ( col0 ) + 72 * - 40 FROM tab0 AS cor0
----
-3011

query II rowsort
SELECT + col0 AS col1, + 89 * - 40 + 12 AS col0 FROM tab0 AS cor0
----
15
-3548
87
-3548
97
-3548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 + + + col0 col0 FROM tab0
----
122
132
50

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ( - 67 ) FROM tab1
----
-67
-67
-67

query I rowsort
SELECT DISTINCT 2 - - - 2 FROM tab1
----
0

query I rowsort
SELECT ALL ( col2 ) + + - 36 - col2 FROM tab2
----
-36
-36
-36

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 - col1 * col1 + - col1 col2 FROM tab0
----
-423
-6603
37

query I rowsort
SELECT + 33 - + col0 FROM tab2 AS cor0
----
-13
-31
-42

query I rowsort
SELECT + 18 + - col2 * - ( col2 ) FROM tab0 AS cor0
----
118
2227
9819

onlyif mysql # DIV for integer division: 
query I rowsort label-2568
SELECT - col0 DIV col2 FROM tab0 WHERE NOT - - 66 - + col2 IS NULL
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2568
SELECT - col0 / col2 FROM tab0 WHERE NOT - - 66 - + col2 IS NULL
----
-8
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2569
SELECT ALL 32 DIV 34 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL 32 / 34 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 20 * col1 NOT IN ( - 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 62 AS col2, 67 + + col0 FROM tab2 cor0
----
62
113
62
131
62
142

query II rowsort
SELECT - + col1, 38 AS col2 FROM tab1 AS cor0
----
-14
38
-47
38
-5
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT + SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2574
SELECT + SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - ( - COUNT( * ) ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2575
SELECT - ( - COUNT ( * ) ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT SUM( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT SUM ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT - col1 * + 95 AS col1 FROM tab0 AS cor0
----
-1995
-7695
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT DISTINCT col0 * - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT col0 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - - 25 ) AND col1
----

query II rowsort
SELECT + - col1 * 9 * - + col2, - col0 * + 6 AS col1 FROM tab1 AS cor0
----
12096
-306
2655
-510
28764
-546

query I rowsort
SELECT col1 * - 19 AS col2 FROM tab2 cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT + ( + col1 ) * + 34 + - col2 FROM tab1 AS cor0
----
111
1530
380

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 82 * - 44 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col1 AS col1, - 66 + col1 FROM tab1
----
14
-52
47
-19
5
-61

query I rowsort
SELECT + col1 * ( + 86 ) FROM tab2
----
4386
5762
6622

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 NOT IN ( col0 + + 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT DISTINCT col0 - col2 FROM tab2 WHERE NOT + + 24 * + - col2 * + + 32 * - + CAST( NULL AS SIGNED ) IS NOT NULL
----
17
23
24

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT col0 - col2 FROM tab2 WHERE NOT + + 24 * + - col2 * + + 32 * - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL + COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT - - 56 + - COUNT( * ) FROM tab1 WHERE NOT - + 78 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-2589
SELECT - - 56 + - COUNT ( * ) FROM tab1 WHERE NOT - + 78 IS NULL
----
53

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 90 / + col1 + col2 IS NOT NULL
----

query II rowsort
SELECT col0, - col2 + 1 FROM tab1 AS cor0
----
51
-95
85
-58
91
-67

query I rowsort
SELECT DISTINCT + - col2 + + 69 FROM tab1 AS cor0
----
-27
1
10

query II rowsort
SELECT col2 * + 13, col0 FROM tab1
----
1248
51
767
85
884
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + + 90 <> + - 40 )
----

query I rowsort
SELECT col0 * col2 - - 70 FROM tab1 AS cor0 WHERE ( NOT ( - col2 IN ( - col2 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 + - 57 * ( - 5 ) col2 FROM tab1 AS cor0
----
149
167
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 18
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 + col1 - - - 2 / + col2 ) NOT BETWEEN col2 * + + 79 AND - 0 * + col1 + + 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 * - - col0 - - col0 ) NOT BETWEEN NULL AND col2 + col2
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - col0 + 17 FROM tab0
----
-70
-80
2

query I rowsort
SELECT ALL 46 + - + col2 AS col2 FROM tab2
----
-12
23
6

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 87 ) + 26 * + col1 AS col0 FROM tab0
----
-61
2019
459

query II rowsort
SELECT DISTINCT - col0 * - 54 - - col1 AS col2, - 79 AS col2 FROM tab1
----
2768
-79
4595
-79
4961
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ( + 25 ) * - COUNT( - + col1 ) FROM tab0 WHERE ( NULL ) IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-2605
SELECT ( + 25 ) * - COUNT ( - + col1 ) FROM tab0 WHERE ( NULL ) IS NULL
----
-75

query II rowsort
SELECT DISTINCT 57 - - col2 * col2 AS col1, - col0 AS col1 FROM tab0
----
157
-87
2266
-15
9858
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT + MIN( DISTINCT col0 ) + - 8 col1 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2607
SELECT + MIN ( DISTINCT col0 ) + - 8 col1 FROM tab1
----
43

query I rowsort
SELECT + 59 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 * - col0 * - + 72 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) > + 18
----

query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT + ( 74 ) FROM tab2
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + COUNT( + ( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2614
SELECT + COUNT ( + ( + col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2615
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( - CAST( + col0 AS SIGNED ) + - 57 )
----

skipif mysql # not compatible
query III rowsort label-2615
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = ( - CAST ( + col0 AS INTEGER ) + - 57 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT ALL + ( - 16 ) DIV + - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL + ( - 16 ) / + - col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + - col0 * + + ( col2 ) * col0 col2 FROM tab2 cor0
----
12615680
21858750
2482068

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2618
SELECT 76 + - col1 + + ( - ( + col1 ) ) + + + 67 + + 87 / - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-2618
SELECT 76 + - col1 + + ( - ( + col1 ) ) + + + 67 + + 87 / - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT - COUNT( * ) * 54 AS col0 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-2619
SELECT - COUNT ( * ) * 54 AS col0 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT ALL 49 * - ( col2 ) * col2 FROM tab0
----
-108241
-480249
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL COUNT( ALL 99 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL COUNT ( ALL 99 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + col0 * + - col2 AND NULL
----

query I rowsort
SELECT + 82 * + col1 FROM tab0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ( + + MIN( DISTINCT ( + col1 ) ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT ( + + MIN ( DISTINCT ( + col1 ) ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT DISTINCT MAX( ALL + 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT MAX ( ALL + 28 ) FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL 48 * - MIN( ( + col1 ) ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL 48 * - MIN ( ( + col1 ) ) FROM tab0
----
-48

query I rowsort
SELECT - ( + ( col0 ) ) * + - col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - 50 * + ( + SUM( + 58 ) ) FROM tab0
----
-8700

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 50 * + ( + SUM ( + 58 ) ) FROM tab0
----
-8700

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT ALL + 32 + + - col2 DIV - - 84 FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + 32 + + - col2 / - - 84 FROM tab2 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + - + 82 * 20 * - col1 * 33 col0 FROM tab1 AS cor0
----
2543593
270595
757666

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + + 33 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2632
SELECT ALL + CAST( + ( - - COUNT( DISTINCT - - ( - ( - 88 ) ) ) ) AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2632
SELECT ALL + CAST ( + ( - - COUNT ( DISTINCT - - ( - ( - 88 ) ) ) ) AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - MAX( DISTINCT col2 ) + - ( - COUNT( * ) ) * + 51 AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - MAX ( DISTINCT col2 ) + - ( - COUNT ( * ) ) * + 51 AS col2 FROM tab0
----
54

query II rowsort
SELECT 5, col0 AS col0 FROM tab2
----
5
46
5
64
5
75

query II rowsort
SELECT - col0 + 71 + - ( - col0 ) AS col1, - 17 + - + col1 + - - 29 FROM tab2
----
71
-39
71
-55
71
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2636
SELECT - col1 + - CAST( - col1 AS SIGNED ) + - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2636
SELECT - col1 + - CAST ( - col1 AS INTEGER ) + - col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT + 16 + + col2 * col0 AS col0 FROM tab0
----
721
886
9619

query III rowsort
SELECT * FROM tab0 WHERE col1 >= ( - col1 + col2 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT DISTINCT ( - MIN( col2 ) ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT ( - MIN ( col2 ) ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2640
SELECT ALL COUNT( * ) AS col2, 64 + + + ( - 76 ) * - CAST( + 71 AS SIGNED ) FROM tab1 AS cor0
----
3
5460

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL COUNT ( * ) AS col2, 64 + + + ( - 76 ) * - CAST ( + 71 AS INTEGER ) FROM tab1 AS cor0
----
3
5460

query I rowsort
SELECT col2 + + + 10 - - + 79 AS col1 FROM tab2 AS cor0 WHERE 74 * col2 <= + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2642
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + - MIN( DISTINCT + col0 ) FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + - MIN ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-14

query I rowsort
SELECT ALL - 99 + col1 FROM tab2 AS cor0
----
-22
-32
-48

query I rowsort
SELECT ALL + - 55 AS col2 FROM tab1 AS cor0 WHERE ( - col2 ) / - 49 + - 98 - 22 + - 89 IS NOT NULL
----
-55
-55
-55

query I rowsort
SELECT DISTINCT + col1 - + - ( col2 ) * 37 * + + col0 AS col0 FROM tab1
----
181166
185560
229003

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + ( - COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2646
SELECT + ( - COUNT ( * ) ) col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 39 + 33 FROM tab2
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col0 + 26
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL CAST( NULL AS SIGNED ) + + - col1 + + 77 + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL CAST ( NULL AS INTEGER ) + + - col1 + + 77 + - col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 ) BETWEEN NULL AND col1 * - col1 * - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT DISTINCT - + MAX( DISTINCT + ( + + 48 ) ) FROM tab1 AS cor0 WHERE col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2654
SELECT DISTINCT - + MAX ( DISTINCT + ( + + 48 ) ) FROM tab1 AS cor0 WHERE col0 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2655
SELECT 57 * - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0, + 29 FROM tab2 AS cor0
----
NULL
29

skipif mysql # not compatible
query II rowsort label-2655
SELECT 57 * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0, + 29 FROM tab2 AS cor0
----
NULL
29

query I rowsort
SELECT ALL 87 * + - col1 * - 28 FROM tab1 AS cor0
----
114492
12180
34104

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN + 91 + - + col0 AND ( + ( - 58 ) + + col0 - - 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT + - 47 <> - + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 / - + col1 AND - 4
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT ALL + 98, COUNT( * ) AS col0 FROM tab2 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-2660
SELECT ALL + 98, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
98
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 col2, - col0 * + col2 FROM tab0 AS cor0
----
68
-705
68
-870
68
-9603

query II rowsort
SELECT ALL + col1 * col2 + + 93 AS col0, + 90 + + col2 + 71 AS col1 FROM tab1 cor0
----
1437
257
3289
229
388
220

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - col0 - - - col0 - - + 8 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2663
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + - col0 - - - col0 - - + 8 IS NULL
----
3

query II rowsort
SELECT DISTINCT 76 AS col0, 95 * - col2 * + + 45 * 53 FROM tab2 AS cor0
----
76
-13141350
76
-5211225
76
-9063000

query I rowsort
SELECT ALL + col2 * + + 51 FROM tab1 cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2666
SELECT CAST( - 39 AS SIGNED ) * + col0 * + ( - col0 ) FROM tab0
----
295191
366951
8775

skipif mysql # not compatible
query I rowsort label-2666
SELECT CAST ( - 39 AS INTEGER ) * + col0 * + ( - col0 ) FROM tab0
----
295191
366951
8775

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT COUNT( DISTINCT 91 ) + - 2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2667
SELECT COUNT ( DISTINCT 91 ) + - 2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ( 74 ) + + + COUNT( - 74 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2668
SELECT ( 74 ) + + + COUNT ( - 74 ) AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT ALL - + 6 * 92 AS col1 FROM tab2 AS cor0
----
-552
-552
-552

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN col0 AND 13
----

query II rowsort
SELECT ALL + + 12 * + col0 * - col0 * col2 AS col0, + 84 FROM tab1 AS cor0
----
-2996352
84
-5115300
84
-6757296
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT + 83 + + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT + 83 + + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / + 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * - col1 + - + 98 FROM tab0
----
-1313
-1925
-195

query I rowsort
SELECT 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - 39 - + col1 AS col1 FROM tab1 AS cor0
----
-44
-53
-86

query I rowsort
SELECT + col0 * + col1 - + - col0 AS col1 FROM tab2 cor0
----
2392
4992
5100

query I rowsort
SELECT + col1 - 71 FROM tab0 cor0
----
-50
-70
10

query I rowsort
SELECT ALL - - col1 * 35 FROM tab0 AS cor0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query II rowsort label-2680
SELECT 31 * - 60 - - - col1 + - + col2 * + + col2 - - col2 AS col1, col0 DIV - col1 + + col1 FROM tab2 AS cor0
----
-2417
51
-3497
77
-5233
66

skipif mysql # not compatible
query II rowsort label-2680
SELECT 31 * - 60 - - - col1 + - + col2 * + + col2 - - col2 AS col1, col0 / - col1 + + col1 FROM tab2 AS cor0
----
-2417
51
-3497
77
-5233
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT + COUNT( * ) + + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT + COUNT ( * ) + + - COUNT ( * ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT ALL - + MAX( ALL + 71 ) AS col2 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL - + MAX ( ALL + 71 ) AS col2 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2683
SELECT ALL * FROM tab1 WHERE NULL < col0 / - - CAST( col0 AS DECIMAL ) * col1 - - - 59 + col0 * + - col1 - + - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2683
SELECT ALL * FROM tab1 WHERE NULL < col0 / - - CAST ( col0 AS REAL ) * col1 - - - 59 + col0 * + - col1 - + - CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL - SUM( DISTINCT 37 ) FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - SUM ( DISTINCT 37 ) FROM tab0
----
-37

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE - col0 / col2 IS NOT NULL
----
15
87
97

query II rowsort
SELECT DISTINCT + col2 * - 77 AS col1, 23 AS col2 FROM tab0
----
-3619
23
-7623
23
-770
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT ALL 50 DIV + + 51 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2687
SELECT ALL 50 / + + 51 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * 96 * col1 * - ( + col2 ) FROM tab1
----
-12386304
-1670880
-20863488

query II rowsort
SELECT ALL 64, col1 FROM tab0 cor0
----
64
1
64
21
64
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT - + col0 * + + 95 - - + col1 DIV + col0 AS col0 FROM tab0 cor0 WHERE NOT 22 IN ( + - col1, - col2 + - col1 * - + col2 )
----
-1420
-8265
-9215

skipif mysql # not compatible
query I rowsort label-2691
SELECT - + col0 * + + 95 - - + col1 / + col0 AS col0 FROM tab0 cor0 WHERE NOT 22 IN ( + - col1, - col2 + - col1 * - + col2 )
----
-1420
-8265
-9215

query II rowsort
SELECT DISTINCT 92 AS col2, col0 FROM tab2 cor0
----
92
46
92
64
92
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2693
SELECT DISTINCT + COUNT( * ) AS col1, + COUNT( * ) + CAST( NULL AS SIGNED ) - + + ( - 51 ) col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2693
SELECT DISTINCT + COUNT ( * ) AS col1, + COUNT ( * ) + CAST ( NULL AS INTEGER ) - + + ( - 51 ) col1 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2695
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2695
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL + COUNT( * ) + - 86 AS col0, + 26 + + + COUNT( ALL + col1 ) + + MIN( ALL - 13 ) FROM tab1 AS cor0
----
-83
16

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL + COUNT ( * ) + - 86 AS col0, + 26 + + + COUNT ( ALL + col1 ) + + MIN ( ALL - 13 ) FROM tab1 AS cor0
----
-83
16

query II rowsort
SELECT - col0 * col2, col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE 5 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 + 14 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 + 14 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2700
SELECT DISTINCT COUNT( + - 49 ) AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT COUNT ( + - 49 ) AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----
0
0

query I rowsort
SELECT 39 + - - col1 AS col0 FROM tab1 AS cor0
----
44
53
86

query I rowsort
SELECT DISTINCT + col1 + 48 AS col2 FROM tab2
----
115
125
99

query I rowsort
SELECT col0 + - 41 + col1 AS col1 FROM tab2
----
100
101
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 53 * + + 65 col1 FROM tab1
----
175695
292825
313495

query III rowsort
SELECT ALL * FROM tab1 WHERE + 40 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 * + 78 AS col1 FROM tab0
----
-16380
-296946
-7722

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col1 ) * - + 55 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT COUNT( * ) * + 17 * 6 AS col0 FROM tab2
----
306

skipif mysql # not compatible
query I rowsort label-2708
SELECT COUNT ( * ) * + 17 * 6 AS col0 FROM tab2
----
306

query I rowsort
SELECT col0 * - + col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab1 WHERE ( NOT ( NOT - + 4 <= + 19 ) )
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( col0 / col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 - + + col0 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2713
SELECT - 33 DIV - + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2713
SELECT - 33 / - + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT SUM( - col2 ) * + COUNT( * ) * - 84 AS col2 FROM tab2 cor0
----
30492

skipif mysql # not compatible
query I rowsort label-2714
SELECT SUM ( - col2 ) * + COUNT ( * ) * - 84 AS col2 FROM tab2 cor0
----
30492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL - + CAST( NULL AS SIGNED ) * col2 - - ( - 80 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL - + CAST ( NULL AS INTEGER ) * col2 - - ( - 80 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT - col0 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col0 * - 16 AS col2 FROM tab1 AS cor0
----
1360
1456
816

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL COUNT( + 63 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL COUNT ( + 63 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ALL - col0 * col0, + ( + - col1 ) FROM tab0 WHERE NOT - col2 NOT BETWEEN - col2 AND + 78 + - - ( - - 49 ) * - 45
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT ALL 14 DIV + 94 * + MIN( + col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL 14 / + 94 * + MIN ( + col1 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT + COUNT( * ) DIV 19 FROM tab0 WHERE NOT NULL NOT BETWEEN 32 * + + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2721
SELECT + COUNT ( * ) / 19 FROM tab0 WHERE NOT NULL NOT BETWEEN 32 * + + col2 AND NULL
----
0

query I rowsort
SELECT + 46 * + col2 + - col0 FROM tab0 WHERE NOT - 31 IS NOT NULL
----

query I rowsort
SELECT ALL + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT + 25, - 93 AS col2 FROM tab1 AS cor0
----
25
-93
25
-93
25
-93

query I rowsort
SELECT - - col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - - ( col2 ) > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT + - 60 * + - COUNT( * ) FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2727
SELECT + - 60 * + - COUNT ( * ) FROM tab2 AS cor0
----
180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT ALL + + CAST( col0 AS SIGNED ) * ( + + col2 ) * col1 FROM tab0 AS cor0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + + CAST ( col0 AS INTEGER ) * ( + + col2 ) * col1 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL - 19 + - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2729
SELECT ALL - 19 + - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
-22

query I rowsort
SELECT + + 23 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT ALL + COUNT( * ), COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2731
SELECT ALL + COUNT ( * ), COUNT ( * ) FROM tab1 cor0
----
3
3

query I rowsort
SELECT ALL 12 + + col2 + + 83 * - col2 AS col1 FROM tab0 AS cor0
----
-3842
-808
-8106

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT - + MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT - + MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT DISTINCT + COUNT( * ) + + 10 AS col1 FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT + COUNT ( * ) + + 10 AS col1 FROM tab2 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT DISTINCT 80 FROM tab1 cor0 WHERE ( NULL ) IN ( - 94 * - col0 )
----

query I rowsort
SELECT DISTINCT + - 69 * + + col1 * - 5 + - 96 AS col0 FROM tab2 AS cor0
----
17499
23019
26469

query I rowsort
SELECT DISTINCT 7 * - col2 + + ( col1 ) AS col2 FROM tab0
----
-248
-49
-692

query III rowsort
SELECT * FROM tab0 WHERE + - 15 <> NULL
----

query I rowsort
SELECT + 86 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - col0 + - + col0 FROM tab2
----
-1104
-2624
-4425

query III rowsort
SELECT * FROM tab2 WHERE 37 - - 18 IS NULL
----

query I rowsort
SELECT - 20 + - 63 AS col1 FROM tab2
----
-83
-83
-83

query I rowsort
SELECT + col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - col2 + ( - - 29 ) FROM tab2 AS cor0
----
-11
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT DISTINCT - SUM( + col1 ) + COUNT( * ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT - SUM ( + col1 ) + COUNT ( * ) FROM tab0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT MAX( - col1 ) * COUNT( + - col2 ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2747
SELECT MAX ( - col1 ) * COUNT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - + SUM( - - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2748
SELECT - + SUM ( - - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
66

query II rowsort
SELECT - + 88 AS col2, - col1 FROM tab0 AS cor0
----
-88
-1
-88
-21
-88
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT - ( + COUNT( * ) ) * + 54 + COUNT( * ) col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2750
SELECT DISTINCT - ( + COUNT ( * ) ) * + 54 + COUNT ( * ) col1 FROM tab0 AS cor0
----
-159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 26 IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2752
SELECT DISTINCT col0 * + - col1, col1 DIV + col0 AS col2 FROM tab1
----
-425
0
-4277
0
-714
0

skipif mysql # not compatible
query II rowsort label-2752
SELECT DISTINCT col0 * + - col1, col1 / + col0 AS col2 FROM tab1
----
-425
0
-4277
0
-714
0

query I rowsort
SELECT + ( - + 87 ) AS col1 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( NOT 29 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - col0 col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT - ( + + COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2756
SELECT - ( + + COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - col1
----

query I rowsort
SELECT DISTINCT - col0 * - + ( - + col1 ) * 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 25 * + + col1 * + ( + col2 ) FROM tab1 AS cor0
----
33600
7375
79900

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT 75 * COUNT( * ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-2760
SELECT 75 * COUNT ( * ) AS col0 FROM tab2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL - - MIN( DISTINCT - + col1 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - - MIN ( DISTINCT - + col1 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
141

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 * col1 + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2763
SELECT DISTINCT 60 DIV col2 AS col1, col2 - + - 3 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
0
71
0
99
1
62

skipif mysql # not compatible
query II rowsort label-2763
SELECT DISTINCT 60 / col2 AS col1, col2 - + - 3 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
0
71
0
99
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT COUNT( ALL 31 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2764
SELECT COUNT ( ALL 31 ) FROM tab2
----
3

query II rowsort
SELECT - 30 * + 79 AS col2, 57 * + 48 * + + col0 FROM tab1
----
-2370
139536
-2370
232560
-2370
248976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT 5, + COUNT( * ) AS col0 FROM tab2
----
5
3

skipif mysql # not compatible
query II rowsort label-2767
SELECT 5, + COUNT ( * ) AS col0 FROM tab2
----
5
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2768
SELECT 74, MAX( ALL - + col1 ) AS col0 FROM tab0
----
74
-1

skipif mysql # not compatible
query II rowsort label-2768
SELECT 74, MAX ( ALL - + col1 ) AS col0 FROM tab0
----
74
-1

query II rowsort
SELECT + 70 AS col0, col0 * - 37 FROM tab0
----
70
-3219
70
-3589
70
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT + SUM( ALL + + 72 ) col2 FROM tab0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2770
SELECT + SUM ( ALL + + 72 ) col2 FROM tab0
----
216

query I rowsort
SELECT DISTINCT + 74 + - col0 FROM tab0
----
-13
-23
59

query II rowsort
SELECT ALL col2, ( - col2 ) FROM tab1
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2 + col2 col2, + col2 col1 FROM tab2
----
25
23
42
40
60
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 38 IS NOT NULL
----

query I rowsort
SELECT + ( + col1 ) * + col1 AS col0 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT + CAST( NULL AS SIGNED ) - + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT + CAST ( NULL AS INTEGER ) - + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT - + MAX( ALL - 58 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - + MAX ( ALL - 58 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
58

query I rowsort
SELECT 36 * + 35 + - col0 AS col0 FROM tab0
----
1163
1173
1245

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 79 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT DISTINCT - col1 FROM tab2 WHERE NULL IN ( + 49 / + + 4 * - - col0 + 20 + + CAST( + - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT - col1 FROM tab2 WHERE NULL IN ( + 49 / + + 4 * - - col0 + 20 + + CAST ( + - col0 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + 99 )
----

query I rowsort
SELECT 86 * 3 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
13158
17286
19866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 = ( ( + 19 ) ) + + 3 * col0 + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 = ( ( + 19 ) ) + + 3 * col0 + col1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 59 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT ( + - col1 ) * + + 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 17 + 85 + - ( + 0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 58 * - col2 AS col1 FROM tab0
----
-2726
-5742
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL COUNT( 27 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL COUNT ( 27 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - ( - 64 ) AS col1 FROM tab0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2792
SELECT - col0 DIV 65 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT - col0 / 65 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT + COUNT( - + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + COUNT ( - + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT DISTINCT + + MAX( DISTINCT ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2794
SELECT DISTINCT + + MAX ( DISTINCT ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - col0 * col1 * - col2 * col0 FROM tab0 AS cor0
----
1589490
856575
931491

query I rowsort
SELECT - col2 + - - 46 AS col2 FROM tab1 AS cor0
----
-13
-22
-50

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 80 NOT BETWEEN NULL AND + + 32 * + + ( - + 8 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + 14 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 54 FROM tab0 cor0 WHERE NOT 38 IS NULL
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT + + col1 DIV + col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2800
SELECT + + col1 / + col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2801
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 * + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT DISTINCT - 2 DIV - - 69 * + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - 2 / - - 69 * + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 + col0 AS col2 FROM tab1 WHERE NULL > + - 83 - - + col2
----

query I rowsort
SELECT ALL + 62 * + col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
2914
6138
620

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT - 13 + + COUNT( * ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2805
SELECT - 13 + + COUNT ( * ) AS col2 FROM tab0
----
-10

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE NOT - 14 / - 4 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + ( - - COUNT( * ) ) + + - 39 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-39

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + ( - - COUNT ( * ) ) + + - 39 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT col1 * - 99 * - col0 FROM tab2
----
232254
487872
497475

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT COUNT( 13 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2810
SELECT COUNT ( 13 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT MAX( ALL - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT MAX ( ALL - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2812
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= + ( CAST( + col0 AS DECIMAL ) )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-2812
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 >= + ( CAST ( + col0 AS REAL ) )
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ( ( COUNT( * ) ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2813
SELECT ( ( COUNT ( * ) ) ) col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2814
SELECT - col1 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-2814
SELECT - col1 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0 WHERE NOT 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT - CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2817
SELECT - CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - COUNT( * ) * + 79 AS col1 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-2818
SELECT - COUNT ( * ) * + 79 AS col1 FROM tab2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT 78 * - COUNT( * ) * 13 FROM tab2
----
-3042

skipif mysql # not compatible
query I rowsort label-2819
SELECT 78 * - COUNT ( * ) * 13 FROM tab2
----
-3042

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT - + COUNT( * ) * 28 FROM tab0 WHERE NOT - - col0 = + col2 - + col2
----
-84

skipif mysql # not compatible
query I rowsort label-2820
SELECT - + COUNT ( * ) * 28 FROM tab0 WHERE NOT - - col0 = + col2 - + col2
----
-84

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * 66 - + - col2 + + col0 - + col2 AS col2 FROM tab2 AS cor0
----
-3320
-4347
-5018

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE 73 / - - col0 * + + col0 * col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2824
SELECT ALL - ( - 99 ) DIV - - SUM( + - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL - ( - 99 ) / - - SUM ( + - col0 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - col1 IS NULL
----

query I rowsort
SELECT + + col0 * - 25 + - - col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1127
-1560
-1817

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - 80 * col2 + ( col0 ) FROM tab2 AS cor0
----
-1794
-3136
-4565

query I rowsort
SELECT ALL - 74 + + 85 AS col0 FROM tab1 cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col1 FROM tab1 AS cor0 WHERE NOT - 96 + + col0 * col1 + 49 IS NULL
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT COUNT( * ) + 98 + + 55 col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT DISTINCT COUNT ( * ) + 98 + + 55 col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2832
SELECT + 91 DIV - - MAX( ALL + col0 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2832
SELECT + 91 / - - MAX ( ALL + col0 ) FROM tab2
----
1

query I rowsort
SELECT - ( + 3 ) AS col0 FROM tab1
----
-3
-3
-3

query III rowsort
SELECT * FROM tab1 WHERE - col1 / + col2 >= + 53
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 WHERE - - 21 < - - col1 / + col2 * - col1
----

query I rowsort
SELECT + ( 60 ) FROM tab0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 66 * + col2 * col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT DISTINCT 37 - COUNT( * ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT 37 - COUNT ( * ) AS col0 FROM tab1
----
34

query I rowsort
SELECT DISTINCT + col0 + col2 - - + col0 FROM tab1
----
198
229
250

query I rowsort
SELECT col1 - - 69 FROM tab0
----
150
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 34 col1 FROM tab2 AS cor0
----
-34

query II rowsort
SELECT - 48 + - - col1, 99 AS col0 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT DISTINCT - MIN( + + col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - MIN ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + 6 <> - - col0 * - col1 * ( - 47 ) * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT + COUNT( DISTINCT - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2845
SELECT + COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 * col1 + - 16 * - + ( + col0 ) FROM tab0 cor0
----
1602
1651
4047

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - - SUM( ALL col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2849
SELECT - - SUM ( ALL col1 ) FROM tab1 cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT + + COUNT( * ) * - 80 FROM tab2 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2850
SELECT + + COUNT ( * ) * - 80 FROM tab2 cor0
----
-240

query II rowsort
SELECT - - 15, - col2 AS col0 FROM tab0 AS cor0
----
15
-10
15
-47
15
-99

query I rowsort
SELECT - col2 * + ( + 79 ) AS col0 FROM tab2 AS cor0
----
-1817
-3160
-4582

query I rowsort
SELECT + - col2 * 58 FROM tab0 AS cor0
----
-2726
-5742
-580

query II rowsort
SELECT ( - col2 ) AS col2, - col2 + - col0 FROM tab1
----
-59
-144
-68
-159
-96
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 56 + - 11 - - CAST( NULL AS SIGNED ) <> + 66
----

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 56 + - 11 - - CAST ( NULL AS INTEGER ) <> + 66
----

query I rowsort
SELECT 86 + + col0 + - 17 AS col1 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - - 10 + COUNT( * ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2857
SELECT - - 10 + COUNT ( * ) FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL + col2 + + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL + ( + col0 ) + ( + col2 ) * + + col0 FROM tab1 cor0
----
4947
5100
6279

query II rowsort
SELECT + col2 + col2, + col0 + col0 AS col2 FROM tab1
----
118
170
136
182
192
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * - col1 / - - col2 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 91 * - col0 - + 33, - 98 AS col1 FROM tab0 AS cor0
----
-1398
-98
-7950
-98
-8860
-98

query II rowsort
SELECT ALL - col0 * - - 87 + - 50 AS col0, - ( + col0 ) FROM tab0 AS cor0
----
-1355
-15
-7619
-87
-8489
-97

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - col0 + 73 * - - col0 AS col0 FROM tab1 AS cor0
----
3672
6120
6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - - ( + 53 ) * col2 col1 FROM tab2 AS cor0
----
1168
2043
3007

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT + col0 - 27 AS col2 FROM tab1 AS cor0
----
24
58
64

query I rowsort
SELECT ( - col2 ) * - col1 + - 33 - + 52 FROM tab2 cor0
----
1088
2995
3801

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2871
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT - 70 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2872
SELECT - 70 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 42 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + + CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 81 FROM tab1 cor0
----
81
81
81

query II rowsort
SELECT - - 82, + col2 AS col0 FROM tab0 AS cor0
----
82
10
82
47
82
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col2, - col1 AS col2 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2878
SELECT ALL + col2, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-2878
SELECT ALL + col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 99 * - col2 + col2 < + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 96 ) FROM tab2 AS cor0
----
-96
-96
-96

query II rowsort
SELECT ALL + col0 + col2 AS col1, 84 - + ( - - col1 ) * + 13 FROM tab1 AS cor0
----
144
19
147
-98
159
-527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2882
SELECT + 77 + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
128
162
168

skipif mysql # not compatible
query I rowsort label-2882
SELECT + 77 + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
128
162
168

query I rowsort
SELECT DISTINCT + col1 + + col1 * 64 + + - col2 AS col0 FROM tab1
----
266
2987
814

query I rowsort
SELECT col1 + + 8 - 81 * col0 FROM tab2
----
-3667
-5099
-6000

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT - MIN( DISTINCT col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2885
SELECT - MIN ( DISTINCT col0 ) AS col0 FROM tab1
----
-51

query II rowsort
SELECT + ( - + col0 ) * - col2 AS col0, + 95 FROM tab1
----
4896
95
5015
95
6188
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2887
SELECT DISTINCT + SUM( ( col0 ) ) AS col2, - 15 AS col2 FROM tab1
----
227
-15

skipif mysql # not compatible
query II rowsort label-2887
SELECT DISTINCT + SUM ( ( col0 ) ) AS col2, - 15 AS col2 FROM tab1
----
227
-15

query III rowsort
SELECT * FROM tab2 WHERE - 9 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2889
SELECT DISTINCT - MIN( + 88 ) - - 85 AS col2, MAX( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2889
SELECT DISTINCT - MIN ( + 88 ) - - 85 AS col2, MAX ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL = col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - - col1 ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2891
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + - + 40 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - + CAST ( NULL AS REAL ) + - + 40 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 90 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT 13 + + 21 FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT ALL COUNT( ALL + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL COUNT ( ALL + - col2 ) FROM tab2
----
3

query I rowsort
SELECT ALL + + 14 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 - - + col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT - - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 78 AS col0, col1 * + - 8 FROM tab2 AS cor0
----
-78
-408
-78
-536
-78
-616

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN 91 + - + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 64 * - - ( 6 ) AS col0 FROM tab1 AS cor0
----
384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2901
SELECT + ( col0 ) AS col1, 58 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - - 32 > + col0
----

skipif mysql # not compatible
query II rowsort label-2901
SELECT + ( col0 ) AS col1, 58 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - - 32 > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT DISTINCT - MAX( ALL + 85 ) + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - MAX ( ALL + 85 ) + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + + 65 * COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-2903
SELECT + + 65 * COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT COUNT( DISTINCT + - 28 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2904
SELECT COUNT ( DISTINCT + - 28 ) FROM tab1
----
1

query I rowsort
SELECT ALL - 31 AS col2 FROM tab1 WHERE + + 25 IS NOT NULL
----
-31
-31
-31

query I rowsort
SELECT ALL + 31 - - col2 FROM tab0 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 * + 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT ALL - 40 / CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL BETWEEN - - CAST( NULL AS SIGNED ) AND 15
----

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - 40 / CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL BETWEEN - - CAST ( NULL AS INTEGER ) AND 15
----

query I rowsort
SELECT DISTINCT - 79 * - 6 AS col2 FROM tab1 cor0
----
474

query I rowsort
SELECT col0 * - + 29 FROM tab2 AS cor0
----
-1334
-1856
-2175

query I rowsort
SELECT 54 + + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 36 col1 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT + col2 * - 69 * + + 20 * 74 FROM tab1 AS cor0
----
-6025080
-6944160
-9803520

onlyif mysql # DIV for integer division: 
query II rowsort label-2914
SELECT col0 AS col0, 70 * - col2 - ( - + col1 ) DIV - - ( col1 ) AS col1 FROM tab1 AS cor0
----
51
-6719
85
-4129
91
-4759

skipif mysql # not compatible
query II rowsort label-2914
SELECT col0 AS col0, 70 * - col2 - ( - + col1 ) / - - ( col1 ) AS col1 FROM tab1 AS cor0
----
51
-6719
85
-4129
91
-4759

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT SUM( DISTINCT 85 ) AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2915
SELECT SUM ( DISTINCT 85 ) AS col1 FROM tab2 AS cor0
----
85

query II rowsort
SELECT ALL + col2 AS col1, 52 FROM tab1 AS cor0
----
59
52
68
52
96
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2917
SELECT CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 29 * - col2 + - 95 FROM tab2 AS cor0
----
-1255
-1777
-762

query I rowsort
SELECT DISTINCT + 3 / + ( + col2 ) AS col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2920
SELECT DISTINCT + ( + + 82 ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT + ( + + 82 ) + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + + + col1 * - - 3 + 56 FROM tab2 WHERE - 39 * + col0 + - 83 IS NOT NULL
----
163
182
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT + 56 + + - COUNT( * ) + + - ( COUNT( ALL col2 ) ) * + + COUNT( * ) AS col0 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-2922
SELECT + 56 + + - COUNT ( * ) + + - ( COUNT ( ALL col2 ) ) * + + COUNT ( * ) AS col0 FROM tab1
----
44

query I rowsort
SELECT col2 + - - 45 FROM tab1
----
104
113
141

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col2 FROM tab2 WHERE NOT - - col1 * - col2 BETWEEN + + col2 AND + + 41 + col2 + + - col0 * + - 30
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2925
SELECT SUM( DISTINCT col2 ) + 4 + 97 AS col2, COUNT( * ) * + 97 FROM tab2 AS cor0
----
222
291

skipif mysql # not compatible
query II rowsort label-2925
SELECT SUM ( DISTINCT col2 ) + 4 + 97 AS col2, COUNT ( * ) * + 97 FROM tab2 AS cor0
----
222
291

query I rowsort
SELECT ALL - col1 * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
-34
100
2141

query I rowsort
SELECT ALL - + 54 + col1 AS col2 FROM tab1 AS cor0
----
-40
-49
-7

query I rowsort
SELECT - col0 * - col0 - + col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT 42 - col1 FROM tab0
----
-39
21
41

query I rowsort
SELECT DISTINCT - - ( col2 ) AS col1 FROM tab0 WHERE - + ( - col2 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT col1 - - - col2 AS col0 FROM tab2
----
28
37
9

query I rowsort
SELECT col2 - - 1 FROM tab1 AS cor0
----
60
69
97

query I rowsort
SELECT ALL + col0 - - col0 + + col2 AS col0 FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT + 43 FROM tab0 AS cor0 WHERE NULL > - col2
----

query I rowsort
SELECT col1 - 85 FROM tab1 AS cor0
----
-38
-71
-80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 8 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + col2 + col1 IS NOT NULL
----

query I rowsort
SELECT 34 * + + col0 + + + 55 AS col1 FROM tab1 AS cor0
----
1789
2945
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL + MAX( col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL + MAX ( col2 ) AS col1 FROM tab1 cor0
----
96

query I rowsort
SELECT + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2941
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * CAST( NULL AS SIGNED ) BETWEEN NULL AND + - col2
----

skipif mysql # not compatible
query III rowsort label-2941
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - col2
----

query I rowsort
SELECT 89 * - 50 FROM tab0
----
-4450
-4450
-4450

query I rowsort
SELECT ALL ( 57 ) FROM tab2
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + COUNT( + col2 ) * 95 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-2944
SELECT + COUNT ( + col2 ) * 95 FROM tab1
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT + CAST( ( - col2 ) AS SIGNED ) col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2945
SELECT + CAST ( ( - col2 ) AS INTEGER ) col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - 35 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 46 ) AND 52 * - 27
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( - 26 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * 79 FROM tab1 cor0
----
-4029
-6715
-7189

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + + COUNT( + + 91 ) * 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
711

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + + COUNT ( + + 91 ) * 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
711

query I rowsort
SELECT ALL + ( - - col1 ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT + + COUNT( * ) * + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + + COUNT ( * ) * + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT ALL - 58 * 46 + - COUNT( * ) FROM tab1 cor0
----
-2671

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - 58 * 46 + - COUNT ( * ) FROM tab1 cor0
----
-2671

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + ( 91 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 cor0 WHERE ( - col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + + 48 AS col0 FROM tab1 AS cor0
----
133
139
99

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT - MAX( - + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2958
SELECT - MAX ( - + col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT col1 * - 78 AS col1 FROM tab1
----
-1092
-3666
-390

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2960
SELECT - COUNT( * ) AS col2, - 74 DIV - COUNT( * ) FROM tab0
----
-3
24

skipif mysql # not compatible
query II rowsort label-2960
SELECT - COUNT ( * ) AS col2, - 74 / - COUNT ( * ) FROM tab0
----
-3
24

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 52 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2962
SELECT ( - + ( COUNT( * ) ) ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2962
SELECT ( - + ( COUNT ( * ) ) ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
-3
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 66 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - - col0 + col2 > NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * 33 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT SUM( + col1 ) * - + 53 + + - 32 DIV 76 * + + COUNT( * ) + 23 FROM tab0 AS cor0
----
-5436

skipif mysql # not compatible
query I rowsort label-2966
SELECT SUM ( + col1 ) * - + 53 + + - 32 / 76 * + + COUNT ( * ) + 23 FROM tab0 AS cor0
----
-5436

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT - 58 + - - COUNT( + 75 ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-2967
SELECT - 58 + - - COUNT ( + 75 ) FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT 37 + - CAST( 50 + col0 AS SIGNED ) FROM tab0
----
-100
-110
-28

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT 37 + - CAST ( 50 + col0 AS INTEGER ) FROM tab0
----
-100
-110
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT MAX( col1 ) + + 79 AS col2 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-2969
SELECT MAX ( col1 ) + + 79 AS col2 FROM tab1
----
126

query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab1 WHERE NOT - 7 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT DISTINCT col0 DIV col2 col2 FROM tab0
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2971
SELECT DISTINCT col0 / col2 col2 FROM tab0
----
0
8

query I rowsort
SELECT ALL AVG ( DISTINCT col0 ) AS col1 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN ( + col0 + col0 * + 65 ) AND col0
----
NULL

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab2 WHERE NOT col0 BETWEEN - 0 + col0 AND + 44 * col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT + ( COUNT( ALL - 47 ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2975
SELECT + ( COUNT ( ALL - 47 ) ) col0 FROM tab1
----
3

query I rowsort
SELECT col0 FROM tab0 WHERE - 66 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL - 60 * + ( col0 ) + 98 FROM tab1
----
-2962
-5002
-5362

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( - col2 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + COUNT( - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2980
SELECT + COUNT ( - col0 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2982
SELECT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2982
SELECT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2983
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 < CAST( NULL AS SIGNED ) * col1
----

skipif mysql # not compatible
query III rowsort label-2983
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 < CAST ( NULL AS INTEGER ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2984
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + - CAST( NULL AS SIGNED ) ) <= - col2 * + 70 - + ( + col1 + col0 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-2984
SELECT ALL * FROM tab2 WHERE NOT ( + col0 + - CAST ( NULL AS INTEGER ) ) <= - col2 * + 70 - + ( + col1 + col0 * + col0 )
----

query I rowsort
SELECT DISTINCT - 40 * col1 - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + 62 AND ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( 23 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT col1 DIV + 94 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-2988
SELECT col1 / + 94 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL MAX( - col1 ) FROM tab1 cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL MAX ( - col1 ) FROM tab1 cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + MIN( DISTINCT 73 ) * COUNT( * ) FROM tab1 cor0
----
219

skipif mysql # not compatible
query I rowsort label-2990
SELECT + MIN ( DISTINCT 73 ) * COUNT ( * ) FROM tab1 cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT - 86 * - COUNT( * ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT - 86 * - COUNT ( * ) FROM tab1 AS cor0
----
258

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN + 71 AND ( + col0 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2992
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN + 71 AND ( + col0 * - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + + 52 AS col0 FROM tab0 cor0
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT - 20 DIV 63 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 20 / 63 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 24 * + col1 AS col1 FROM tab1 AS cor0
----
-1128
-120
-336

query I rowsort
SELECT ALL + + 92 + col0 AS col0 FROM tab0 AS cor0
----
107
179
189

query I rowsort
SELECT col1 * ( + 89 * col0 + col0 ) AS col2 FROM tab1 AS cor0
----
38250
384930
64260

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT - col0 + col0 DIV - col2 AS col2 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - col0 + col0 / - col2 AS col2 FROM tab2 AS cor0
----
-48
-65
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 3 col0 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL + COUNT( ALL col2 ) + 47 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL + COUNT ( ALL col2 ) + 47 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT + + col0 + + col2 * col2 FROM tab2 AS cor0
----
1664
3439
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3003
SELECT DISTINCT * FROM tab1 WHERE col0 / - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3003
SELECT DISTINCT * FROM tab1 WHERE col0 / - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL col0 + + CAST( col2 AS SIGNED ) * 84 FROM tab0
----
3963
8413
927

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL col0 + + CAST ( col2 AS INTEGER ) * 84 FROM tab0
----
3963
8413
927

query I rowsort
SELECT ALL + 95 * 63 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) + + col1 * + 49 AS col1 FROM tab0
----
-48
3954
942

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) + + col1 * + 49 AS col1 FROM tab0
----
-48
3954
942

query I rowsort
SELECT DISTINCT 61 * + - col0 AS col1 FROM tab1
----
-3111
-5185
-5551

query I rowsort
SELECT ALL - col0 + + + col1 FROM tab2
----
-8
13
5

query I rowsort
SELECT col1 - col0 * + col2 FROM tab2 WHERE NULL <= - 99
----

query I rowsort
SELECT - col2 FROM tab0 WHERE ( col1 ) + - col2 * + 50 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3011
SELECT CAST( NULL AS SIGNED ) * - - SUM( + 88 ) + - 52 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3011
SELECT CAST ( NULL AS INTEGER ) * - - SUM ( + 88 ) + - 52 col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT DISTINCT - 25 DIV + + 90 * - 39 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - 25 / + + 90 * - 39 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NULL OR NOT ( NULL ) BETWEEN 51 AND 28
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT 8 DIV - col0 * col0 - + col0 * col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-3014
SELECT 8 / - col0 * col0 - + col0 * col0 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3015
SELECT ALL * FROM tab2 WHERE NOT + + 97 + col1 * - col1 BETWEEN col2 AND col2 * - CAST( col1 AS SIGNED ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3015
SELECT ALL * FROM tab2 WHERE NOT + + 97 + col1 * - col1 BETWEEN col2 AND col2 * - CAST ( col1 AS INTEGER ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT + + MAX( - 37 ) - COUNT( * ) * 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-298

skipif mysql # not compatible
query I rowsort label-3016
SELECT + + MAX ( - 37 ) - COUNT ( * ) * 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-298

query I rowsort
SELECT DISTINCT 44 * - 2 AS col1 FROM tab2 WHERE NULL > + + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT COUNT( * ) col1 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-3018
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT - - 62 + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT - - 62 + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT col1 + - 2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT - 45 >= + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT col1 + - 2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT - 45 >= + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - COUNT( - + col1 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3021
SELECT - COUNT ( - + col1 ) col2 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT DISTINCT + col1 DIV - ( + 39 ) AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3022
SELECT DISTINCT + col1 / - ( + 39 ) AS col0 FROM tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + 0 + + + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT col1, + 64 AS col1 FROM tab0 AS cor0
----
1
64
21
64
81
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + - MIN( DISTINCT 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3025
SELECT + - MIN ( DISTINCT 5 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE 53 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE 53 > NULL
----
0

query I rowsort
SELECT DISTINCT col2 * - + col0 + col1 * ( - 68 - + 94 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 89 FROM tab2 AS cor0 WHERE NOT ( 48 ) IS NULL OR ( 13 / 56 + - 74 ) IS NULL
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL - - MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - - MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3030
SELECT * FROM tab1 WHERE NOT col2 * + + CAST( + col1 AS SIGNED ) NOT BETWEEN NULL AND + col0 - col2
----

skipif mysql # not compatible
query III rowsort label-3030
SELECT * FROM tab1 WHERE NOT col2 * + + CAST ( + col1 AS INTEGER ) NOT BETWEEN NULL AND + col0 - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3031
SELECT - col0 DIV - 76 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT - col0 / - 76 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT - col2 DIV ( col2 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - col2 / ( col2 ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT + 48 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
48
48
48

query I rowsort
SELECT col1 * - + 60 FROM tab2
----
-3060
-4020
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 WHERE NOT + + col2 >= ( NULL )
----

query I rowsort
SELECT ALL - ( - 78 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE 96 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + - col2 + + col1 AS col2 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL + col2 * 0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ( 43 ) + - col1 FROM tab2
----
-24
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT + 99 + - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3042
SELECT + 99 + - COUNT ( * ) FROM tab2
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 ) > NULL
----

query II rowsort
SELECT DISTINCT col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT ALL + ( - + 32 ) FROM tab0 cor0
----
-32
-32
-32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 82 * - + col0 + - + col1 BETWEEN + col1 AND col2 + col1
----

query I rowsort
SELECT DISTINCT - + 24 + - - ( - col0 ) FROM tab2 AS cor0
----
-70
-88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT ALL ( - SUM( + + col0 ) ) * - COUNT( * ) + - 82 FROM tab0 AS cor0
----
515

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL ( - SUM ( + + col0 ) ) * - COUNT ( * ) + - 82 FROM tab0 AS cor0
----
515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT col1 AS col1 FROM tab2 WHERE + col1 - col1 NOT BETWEEN - - CAST( NULL AS SIGNED ) AND - 26
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3049
SELECT col1 AS col1 FROM tab2 WHERE + col1 - col1 NOT BETWEEN - - CAST ( NULL AS INTEGER ) AND - 26
----
51
67
77

query II rowsort
SELECT col0 AS col1, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - ( - 28 ) - col0 FROM tab0
----
-59
-69
13

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3052
SELECT ALL col2 * - 20 / + col2 - - + CAST( NULL AS SIGNED ) + + + col1 + CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL col2 * - 20 / + col2 - - + CAST ( NULL AS INTEGER ) + + + col1 + CAST ( NULL AS REAL ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3053
SELECT CAST( NULL AS SIGNED ) * - - COUNT( ALL - col2 ) AS col1 FROM tab0 WHERE - col0 IN ( + 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( ALL - col2 ) AS col1 FROM tab0 WHERE - col0 IN ( + 18 )
----
NULL

query I rowsort
SELECT DISTINCT ( - 60 ) - + - 34 AS col0 FROM tab2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3055
SELECT DISTINCT - COUNT( * ) - + - CAST( 28 AS SIGNED ) AS col1 FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - COUNT ( * ) - + - CAST ( 28 AS INTEGER ) AS col1 FROM tab1 cor0
----
25

query I rowsort
SELECT - col1 + - + col2 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 61 * + col1 * + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT DISTINCT + 87 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + 87 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 39 + - ( - 98 ) * - 8 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-745

onlyif mysql # DIV for integer division: 
query II rowsort label-3062
SELECT DISTINCT col1 DIV col1 col2, - col2 col1 FROM tab1
----
1
-59
1
-68
1
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3062
SELECT DISTINCT col1 / col1 col2, - col2 col1 FROM tab1
----
1
-59
1
-68
1
-96

query I rowsort
SELECT DISTINCT col2 + - 26 FROM tab2 AS cor0 WHERE + 53 * + + ( col1 ) * + col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col1 - - col1 AND NULL
----
15
81
47

query I rowsort
SELECT DISTINCT - - 83 AS col2 FROM tab1 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT - ( + - COUNT( * ) ) AS col1, 10 FROM tab2 AS cor0
----
3
10

skipif mysql # not compatible
query II rowsort label-3066
SELECT - ( + - COUNT ( * ) ) AS col1, 10 FROM tab2 AS cor0
----
3
10

query I rowsort
SELECT DISTINCT col1 * 51 + + col2 AS col0 FROM tab0 AS cor0 WHERE NULL >= - 91 + - + col2
----

query I rowsort
SELECT 33 * 72 AS col1 FROM tab0
----
2376
2376
2376

query I rowsort
SELECT col0 * - - 13 AS col1 FROM tab1
----
1105
1183
663

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col0 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT - - col1 + + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 72 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 64 * - - col1 + + ( col2 ) < NULL
----

query II rowsort
SELECT + ( - - col2 ), col1 * col2 AS col0 FROM tab1 cor0
----
59
295
68
3196
96
1344

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3077
SELECT - - col2 * + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT - - col2 * + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT - COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3078
SELECT - COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + col0 * - 19 + + + col2 + - col0 AS col0 FROM tab2 cor0
----
-1240
-1442
-897

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3080
SELECT + + 13 - - col1 AS col1, CAST( NULL AS SIGNED ) + - + col2 AS col0 FROM tab1 AS cor0
----
18
NULL
27
NULL
60
NULL

skipif mysql # not compatible
query II rowsort label-3080
SELECT + + 13 - - col1 AS col1, CAST ( NULL AS INTEGER ) + - + col2 AS col0 FROM tab1 AS cor0
----
18
NULL
27
NULL
60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3081
SELECT - COUNT( * ) - + + 3 DIV - 11 AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3081
SELECT - COUNT ( * ) - + + 3 / - 11 AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 + + 57 FROM tab0 AS cor0
----
144
154
72

query I rowsort
SELECT DISTINCT + col2 * - 14 + + + col0 AS col1 FROM tab0
----
-1289
-53
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - COUNT( * ) + + 13 AS col1 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-3084
SELECT - COUNT ( * ) + + 13 AS col1 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3085
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 31 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 31 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 11 * col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-1001
-561
-935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3087
SELECT DISTINCT - 45 DIV - COUNT( * ) + - COUNT( - 63 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - 45 / - COUNT ( * ) + - COUNT ( - 63 ) FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT ALL COUNT( * ) - 52 AS col0 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3088
SELECT ALL COUNT ( * ) - 52 AS col0 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT + SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3089
SELECT + SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + + COUNT( - - col1 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3090
SELECT + + COUNT ( - - col1 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT ALL - - CAST( - 64 AS SIGNED ) * + + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
5568
6208
960

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - - CAST ( - 64 AS INTEGER ) * + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
5568
6208
960

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 = - col1 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 60 * - - col1, + 55 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IN ( - col0 / - col2 / - col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3094
SELECT ALL ( + col1 ) * col0 + + - col2 + - CAST( + - 89 AS SIGNED ) col2, - 84 AS col1 FROM tab2 AS cor0
----
2412
-84
4977
-84
5056
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3094
SELECT ALL ( + col1 ) * col0 + + - col2 + - CAST ( + - 89 AS INTEGER ) col2, - 84 AS col1 FROM tab2 AS cor0
----
2412
-84
4977
-84
5056
-84

query II rowsort
SELECT - col1 AS col0, col0 * ( + col1 ) FROM tab1
----
-14
714
-47
4277
-5
425

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT - 8 * - - SUM( + col2 ) AS col0 FROM tab1
----
-1784

skipif mysql # not compatible
query I rowsort label-3096
SELECT - 8 * - - SUM ( + col2 ) AS col0 FROM tab1
----
-1784

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3097
SELECT DISTINCT + 31, 43 + + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
31
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3097
SELECT DISTINCT + 31, 43 + + CAST ( NULL AS REAL ) col2 FROM tab1
----
31
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT CAST( NULL AS SIGNED ) * + + ( + + col1 ) * ( - 62 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT CAST ( NULL AS INTEGER ) * + + ( + + col1 ) * ( - 62 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT 97 AS col2, + 99 + - - 84 AS col1 FROM tab0 cor0
----
97
183
97
183
97
183

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3101
SELECT ALL 52 * CAST( NULL AS DECIMAL ) + + MIN( 77 ) AS col2, 21 AS col2 FROM tab2 AS cor0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-3101
SELECT ALL 52 * CAST ( NULL AS REAL ) + + MIN ( 77 ) AS col2, 21 AS col2 FROM tab2 AS cor0
----
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3102
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) > + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) > + col1
----
NULL

query I rowsort
SELECT + 74 * + col0 AS col2 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT 2 * - + col0 * - - 95 FROM tab0
----
-16530
-18430
-2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT + MIN( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT + MIN ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 3 BETWEEN + ( - - 80 ) AND ( - 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT - MAX( col1 ) * - - 62 FROM tab1 WHERE NOT ( NOT ( + + 45 ) IS NOT NULL )
----
-2914

skipif mysql # not compatible
query I rowsort label-3107
SELECT - MAX ( col1 ) * - - 62 FROM tab1 WHERE NOT ( NOT ( + + 45 ) IS NOT NULL )
----
-2914

query I rowsort
SELECT + ( 47 ) * - 70 * + 31 AS col0 FROM tab2
----
-101990
-101990
-101990

query I rowsort
SELECT 51 * - 13 FROM tab2
----
-663
-663
-663

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT + COUNT( - col0 ), + COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3110
SELECT + COUNT ( - col0 ), + COUNT ( * ) AS col0 FROM tab0
----
3
3

query II rowsort
SELECT DISTINCT - col0 * col1 AS col2, + 75 AS col2 FROM tab1 AS cor0
----
-425
75
-4277
75
-714
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > - col2
----

query I rowsort
SELECT 18 - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - ( col2 ) AND - col0 + 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - CAST( NULL AS SIGNED ) + SUM( 9 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - CAST ( NULL AS INTEGER ) + SUM ( 9 ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3115
SELECT ( MIN( col0 ) ) + - + 64 col0, + COUNT( * ) AS col0 FROM tab0
----
-49
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3115
SELECT ( MIN ( col0 ) ) + - + 64 col0, + COUNT ( * ) AS col0 FROM tab0
----
-49
3

query I rowsort
SELECT 63 * - col1 + + - col2 + - col1 AS col2 FROM tab2
----
-3287
-4346
-4968

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL 59 + + COUNT( * ) AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL 59 + + COUNT ( * ) AS col2 FROM tab2
----
62

query I rowsort
SELECT DISTINCT 87 * 51 FROM tab2 AS cor0 WHERE NOT ( 30 * col0 ) IS NULL
----
4437

query I rowsort
SELECT - 1 * + + ( 46 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN 25 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT DISTINCT + col1 DIV + 31 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT + col1 / + 31 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + 41 + - col2 AS col2 FROM tab0 AS cor0
----
-58
-6
31

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 77 <= col0
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT DISTINCT - 91 DIV 77 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3123
SELECT DISTINCT - 91 / 77 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE 80 * - 31 + - col1 NOT IN ( + col0 )
----
210
3807
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 80 + + 27 + + col1
----

query I rowsort
SELECT - col1 * + + col0 + - + col1 FROM tab2 AS cor0
----
-2397
-5005
-5092

query I rowsort
SELECT DISTINCT + - col2 * + - 7 + - + col0 AS col1 FROM tab2 cor0
----
115
216
331

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3128
SELECT DISTINCT * FROM tab1 cor0 WHERE + 44 * - - CAST( + - col0 AS SIGNED ) IN ( + 82 - + - col2 )
----

skipif mysql # not compatible
query III rowsort label-3128
SELECT DISTINCT * FROM tab1 cor0 WHERE + 44 * - - CAST ( + - col0 AS INTEGER ) IN ( + 82 - + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT + MAX( + + col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3129
SELECT + MAX ( + + col1 ) AS col2 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3130
SELECT - 60 DIV - - col1 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT - 60 / - - col1 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + col2 - + 91 AS col2 FROM tab2
----
-33
-51
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3132
SELECT SUM( ALL - col0 ) * + - CAST( NULL AS SIGNED ) - + - 77 - + ( COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT SUM ( ALL - col0 ) * + - CAST ( NULL AS INTEGER ) - + - 77 - + ( COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 / 96 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT COUNT( ALL - + 84 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( ALL - + 84 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL - ( - ( col0 ) ) AS col0 FROM tab2
----
46
64
75

query II rowsort
SELECT ( col1 ) AS col1, col0 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT + - col0 * - - col1 * + col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT + - ( - 19 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3139
SELECT + - ( - 19 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3140
SELECT + - 58 FROM tab0 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) / - 58 IS NULL
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-3140
SELECT + - 58 FROM tab0 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) / - 58 IS NULL
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + 97 * 8 + + - 6 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT - COUNT( * ) + + - 56 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-65

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - COUNT ( * ) + + - 56 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT DISTINCT ( CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT ( CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 93 col2, ( - 21 ) * + 50 + + col2 * + col1 FROM tab2 AS cor0
----
93
123
93
2030
93
2836

query I rowsort
SELECT DISTINCT - 18 + + 54 AS col2 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3147
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - CAST( - col1 AS SIGNED ), col0 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3147
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - CAST ( - col1 AS INTEGER ), col0 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL + COUNT( ALL - col0 ) + - 1 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + COUNT ( ALL - col0 ) + - 1 FROM tab1 AS cor0
----
2

query II rowsort
SELECT ALL col1, + 9 * + - col1 FROM tab0
----
1
-9
21
-189
81
-729

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT IN ( + + col1, col2 / + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT COUNT( * ) + - MAX( - 18 ) - COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT COUNT ( * ) + - MAX ( - 18 ) - COUNT ( * ) FROM tab0
----
18

query I rowsort
SELECT DISTINCT col0 + - 30 AS col2 FROM tab2
----
16
34
45

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + col0 + 74 < - - 91
----

query I rowsort
SELECT 34 * - - col1 + col1 AS col2 FROM tab0
----
2835
35
735

query I rowsort
SELECT ALL - + 69 * + col2 AS col2 FROM tab2 AS cor0
----
-1587
-2760
-4002

query I rowsort
SELECT ALL + 87 + - + col2 FROM tab1 AS cor0
----
-9
19
28

query I rowsort
SELECT ALL + col2 + 89 * col0 - 79 * - 47 * + col1 FROM tab2 AS cor0
----
193480
255504
291637

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT - + 15 * 25 + - 75 * - SUM( DISTINCT - 16 ) FROM tab2 AS cor0
----
-1575

skipif mysql # not compatible
query I rowsort label-3159
SELECT - + 15 * 25 + - 75 * - SUM ( DISTINCT - 16 ) FROM tab2 AS cor0
----
-1575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 41 + + col2 + - col2 col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - col1 + + col1 * - - col1 FROM tab1 cor0
----
182
20
2162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT + + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT + + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT - - col0 - - 90 + - 9 AS col0 FROM tab0 cor0
----
168
178
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3164
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 1 * - - ( COUNT( * ) ) + + 17 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3164
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 1 * - - ( COUNT ( * ) ) + + 17 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 63 - 41 + + - ( + 56 ) + - col1 FROM tab1 AS cor0
----
-39
-48
-81

query I rowsort
SELECT 37 - ( - col1 ) AS col0 FROM tab2 AS cor0
----
104
114
88

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT ALL + - 32 DIV + col1 + - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL + - 32 / + col1 + - col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT - col2 * col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 88 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 44 col2, col0 FROM tab0 AS cor0
----
143
97
54
87
91
15

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT SUM( 33 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3171
SELECT SUM ( 33 ) AS col0 FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT DISTINCT - COUNT( 73 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - COUNT ( 73 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL + col0 * 47 FROM tab0 AS cor0
----
4089
4559
705

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 15 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT - ( + COUNT( ALL + 58 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - ( + COUNT ( ALL + 58 ) ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT - COUNT( * ) * + SUM( + 50 ) AS col1 FROM tab1
----
-450

skipif mysql # not compatible
query I rowsort label-3177
SELECT - COUNT ( * ) * + SUM ( + 50 ) AS col1 FROM tab1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT - + SUM( ALL - ( col0 ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3178
SELECT - + SUM ( ALL - ( col0 ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL - ( MAX( + col1 ) ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3179
SELECT ALL - ( MAX ( + col1 ) ) col2 FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT ALL col0 + - + ( + 0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT 35 * + COUNT( DISTINCT + col2 ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT 35 * + COUNT ( DISTINCT + col2 ) FROM tab1
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-3184
SELECT ALL + 2 DIV + col2 + + 73, - ( + 66 ) AS col1 FROM tab1
----
73
-66
73
-66
73
-66

skipif mysql # not compatible
query II rowsort label-3184
SELECT ALL + 2 / + col2 + + 73, - ( + 66 ) AS col1 FROM tab1
----
73
-66
73
-66
73
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + 55 / - col2, col1 - + col2, - - col2 * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3187
SELECT CAST( - 9 AS SIGNED ) DIV 67 DIV + + col1 * + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3187
SELECT CAST ( - 9 AS INTEGER ) / 67 / + + col1 * + col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT DISTINCT MIN( col2 ) * - 62 * - 46 FROM tab2
----
65596

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT MIN ( col2 ) * - 62 * - 46 FROM tab2
----
65596

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT - col1 * - 71 * + - CAST( + - col2 AS SIGNED ) FROM tab1
----
20945
226916
95424

skipif mysql # not compatible
query I rowsort label-3189
SELECT - col1 * - 71 * + - CAST ( + - col2 AS INTEGER ) FROM tab1
----
20945
226916
95424

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT COUNT( * ) * - - ( COUNT( * ) ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT COUNT ( * ) * - - ( COUNT ( * ) ) AS col1 FROM tab1
----
9

query I rowsort
SELECT ALL col1 * + + col0 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + - col2 * - 22 FROM tab0 cor0
----
1034
2178
220

query I rowsort
SELECT ALL - - 70 + col0 FROM tab0 AS cor0
----
157
167
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT - 20 + + + 47 DIV - + 67 * + col0 AS col0 FROM tab0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 20 + + + 47 / - + 67 * + col0 AS col0 FROM tab0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab0 WHERE + ( + 28 ) <= - + ( - col0 ) + - col0
----

query II rowsort
SELECT - 47 + + 61, col0 AS col2 FROM tab1
----
14
51
14
85
14
91

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 * + - col0 * + 40 AS col0 FROM tab1 AS cor0
----
195840
200600
247520

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT - + MIN( ALL + col0 ) - COUNT( * ) FROM tab1 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT - + MIN ( ALL + col0 ) - COUNT ( * ) FROM tab1 cor0
----
-54

query I rowsort
SELECT - ( + 31 ) * - 7 AS col1 FROM tab1 cor0
----
217
217
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + COUNT( * ) * - + 87 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT + COUNT ( * ) * - + 87 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col2 * + 6 FROM tab2 AS cor0
----
138
240
348

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 * + col1 ) AND NULL
----

query II rowsort
SELECT DISTINCT + + col0 AS col0, - ( - 9 ) FROM tab2 AS cor0
----
46
9
64
9
75
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3206
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3206
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT - + MIN( 53 ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3207
SELECT - + MIN ( 53 ) FROM tab1 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT MAX( ALL col1 ) col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN + col0 AND NULL
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3208
SELECT DISTINCT MAX ( ALL col1 ) col1 FROM tab1 WHERE NOT ( + col1 ) BETWEEN + col0 AND NULL
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + 29 col2 FROM tab2
----
-1334
-1856
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT CAST( - - col1 AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3210
SELECT CAST ( - - col1 AS INTEGER ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL ( - - col1 ) * - + col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 WHERE NOT - + ( - col0 ) <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT - COUNT( * ) * 75 AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - COUNT ( * ) * 75 AS col1 FROM tab2
----
-225

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 WHERE + col1 BETWEEN - 97 * 34 / - col2 + col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL - + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL + + MIN( + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + + MIN ( + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 * - col2 * - col0 + - 67 + col2 AS col1 FROM tab2 AS cor0
----
197093
291441
53914

onlyif mysql # aggregate syntax: 
query I rowsort label-3218
SELECT - COUNT( + col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3218
SELECT - COUNT ( + col1 ) AS col2 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col1 col0 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT + + ( 26 ) AS col0 FROM tab0 AS cor0
----
26

query I rowsort
SELECT + + 70 AS col2 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3222
SELECT + col2 DIV + ( 18 ) + + - 51 + - col2 AS col0 FROM tab2 AS cor0
----
-106
-73
-89

skipif mysql # not compatible
query I rowsort label-3222
SELECT + col2 / + ( 18 ) + + - 51 + - col2 AS col0 FROM tab2 AS cor0
----
-106
-73
-89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 4 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + - 39 + + 54 FROM tab1 AS cor0
----
111
74
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT COUNT( * ) + 85 AS col2 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT COUNT ( * ) + 85 AS col2 FROM tab0 AS cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT + + 97 * - + COUNT( * ) FROM tab0 AS cor0 WHERE col0 + + col2 NOT BETWEEN - - col1 AND + col1
----
-291

skipif mysql # not compatible
query I rowsort label-3228
SELECT + + 97 * - + COUNT ( * ) FROM tab0 AS cor0 WHERE col0 + + col2 NOT BETWEEN - - col1 AND + col1
----
-291

query I rowsort
SELECT 95 * + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT ALL - ( - + col2 ) * + col1 + + 87 * - CAST( - 22 AS SIGNED ) AS col2 FROM tab0
----
2013
2124
5721

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - ( - + col2 ) * + col1 + + 87 * - CAST ( - 22 AS INTEGER ) AS col2 FROM tab0
----
2013
2124
5721

query II rowsort
SELECT DISTINCT - col2 + ( - + col0 ) AS col1, 6 + - + 35 / - + 4 / ( - ( + + col0 ) ) FROM tab1 WHERE ( + col0 IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3232
SELECT COUNT( * ) * - AVG ( - - col0 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT COUNT ( * ) * - AVG ( - - col0 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col2 - - 27 + col1 + 10 * - col1 FROM tab2
----
-409
-518
-626

query I rowsort
SELECT - + 14 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT - + MAX( + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3235
SELECT - + MAX ( + col0 ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + SUM( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT + SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + - MIN( + 38 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-3237
SELECT + - MIN ( + 38 ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT DISTINCT + 69 * + + col0 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
10556
4233
6290

query I rowsort
SELECT + 51 * + - col0 FROM tab0 AS cor0
----
-4437
-4947
-765

query I rowsort
SELECT + + col2 * + + col1 AS col2 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT - ( + col1 ) * + + col0 * + - col0 AS col1 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 38
----

query I rowsort
SELECT DISTINCT - col1 * + col1 * + 41 AS col0 FROM tab2
----
-106641
-184049
-243089

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT ALL col0 * 2 DIV 50 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL col0 * 2 / 50 FROM tab1
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3245
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

query II rowsort
SELECT + col0, - 81 * + col0 FROM tab2
----
46
-3726
64
-5184
75
-6075

query II rowsort
SELECT DISTINCT + 11 AS col2, col0 FROM tab0
----
11
15
11
87
11
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3248
SELECT 54 DIV - COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3248
SELECT 54 / - COUNT ( * ) FROM tab0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3249
SELECT DISTINCT + 82 DIV + 56 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + 82 / + 56 AS col0 FROM tab2
----
1

query II rowsort
SELECT - 64, col1 * + col0 * - col2 - ( + - col2 ) AS col2 FROM tab1
----
-64
-25016
-64
-290768
-64
-68448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3251
SELECT - - COUNT( * ), CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3251
SELECT - - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 45 / - 17 BETWEEN - col0 AND - + col2 + + col0 - + 58
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT DISTINCT + - ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3254
SELECT DISTINCT + - ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT ( - ( + + COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3255
SELECT ( - ( + + COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3256
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 68 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3258
SELECT * FROM tab1 WHERE ( NULL > - CAST( col2 AS SIGNED ) * + 7 )
----

skipif mysql # not compatible
query III rowsort label-3258
SELECT * FROM tab1 WHERE ( NULL > - CAST ( col2 AS INTEGER ) * + 7 )
----

query I rowsort
SELECT - col0 + + 14 - + ( - - col1 ) FROM tab0 AS cor0
----
-82
-84
-94

query I rowsort
SELECT + col1 + - + col1 - + + ( - 40 ) AS col0 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT - col1 DIV - + col2 + + - col0 * - - 16 FROM tab1 AS cor0
----
-1360
-1456
-816

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT - col1 / - + col2 + + - col0 * - - 16 FROM tab1 AS cor0
----
-1360
-1456
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * + + col1 - - col0 * - col1 + - col2 col1 FROM tab2 AS cor0
----
-2828
-5661
-5686

query II rowsort
SELECT + col2, 23 AS col1 FROM tab2
----
23
23
40
23
58
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 26 col2 FROM tab0
----
10
26
47
26
99
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT - MIN( + - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3265
SELECT - MIN ( + - col2 ) FROM tab1
----
96

query I rowsort
SELECT ALL - col2 + + 83 FROM tab2
----
25
43
60

query I rowsort
SELECT col2 * + + col1 AS col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + 83 FROM tab1 WHERE + col2 IS NOT NULL
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3269
SELECT DISTINCT - CAST( + 51 AS SIGNED ) + - + col1, + col2 FROM tab1
----
-56
59
-65
96
-98
68

skipif mysql # not compatible
query II rowsort label-3269
SELECT DISTINCT - CAST ( + 51 AS INTEGER ) + - + col1, + col2 FROM tab1
----
-56
59
-65
96
-98
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3270
SELECT DISTINCT + col1 + + + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 cor0 WHERE NULL = col1
----

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT + col1 + + + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 cor0 WHERE NULL = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 40 col2 FROM tab1 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3273
SELECT + - AVG ( ALL CAST( NULL AS DECIMAL ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT + - AVG ( ALL CAST ( NULL AS REAL ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col0 * - 57 AS col2 FROM tab1 AS cor0
----
-2907
-4845
-5187

query II rowsort
SELECT + 30 * - - 32 AS col1, + col2 FROM tab0 AS cor0
----
960
10
960
47
960
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - - COUNT( * ) + + - AVG ( ALL 13 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 63 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT - - COUNT ( * ) + + - AVG ( ALL 13 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 63 AND col1
----
NULL

query II rowsort
SELECT - col1 * + + col1 AS col2, - col0 + - + col0 + - + ( + col2 ) AS col2 FROM tab1 AS cor0
----
-196
-198
-2209
-250
-25
-229

query I rowsort
SELECT + 79 * col0 * - 73 FROM tab2
----
-265282
-369088
-432525

query I rowsort
SELECT ALL - col0 * + 47 AS col0 FROM tab0
----
-4089
-4559
-705

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + + col2 * - + 19 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 > - - ( + + 14 )
----
87
21
10

query I rowsort
SELECT + col2 * + - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT + - 64 * - - col1 * + col1 + + + col0 + col0 AS col2, 85 - - - 39 AS col1 FROM tab1 AS cor0
----
-12442
46
-141194
46
-1430
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT ALL - 61, + COUNT( DISTINCT 93 ) AS col1 FROM tab0
----
-61
1

skipif mysql # not compatible
query II rowsort label-3284
SELECT ALL - 61, + COUNT ( DISTINCT 93 ) AS col1 FROM tab0
----
-61
1

query I rowsort
SELECT ALL - ( - + 72 ) FROM tab0
----
72
72
72

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 76 IS NOT NULL
----

query I rowsort
SELECT ALL + + 40 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37 * + - col2 col2, - col0 FROM tab1
----
-2183
-85
-2516
-91
-3552
-51

query I rowsort
SELECT ALL col1 * + 61 AS col1 FROM tab0
----
1281
4941
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3290
SELECT * FROM tab1 AS cor0 WHERE col0 + - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3290
SELECT * FROM tab1 AS cor0 WHERE col0 + - CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3291
SELECT col1, + CAST( NULL AS DECIMAL ) / + + 58 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-3291
SELECT col1, + CAST ( NULL AS REAL ) / + + 58 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT DISTINCT + 28, col2 AS col2 FROM tab0 AS cor0
----
28
10
28
47
28
99

query II rowsort
SELECT ALL + 96, col2 * + col2 AS col0 FROM tab0 cor0
----
96
100
96
2209
96
9801

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 / - col0 * + - ( - 58 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT MAX( - col2 ) col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3295
SELECT MAX ( - col2 ) col2 FROM tab2 cor0
----
-23

query I rowsort
SELECT col1 * + col2 * - + 7 AS col0 FROM tab0 AS cor0
----
-1470
-26649
-693

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ( + COUNT( * ) ) - 17 col2 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3297
SELECT ( + COUNT ( * ) ) - 17 col2 FROM tab2 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL col2 + col1 + - col0 - + - col0 * + col2 FROM tab0 AS cor0
----
814
818
9606

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT ALL col0 DIV 26 FROM tab0 cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL col0 / 26 FROM tab0 cor0
----
0
3
3

query II rowsort
SELECT ALL + col2 - - col0 AS col0, - 65 * - col0 FROM tab0
----
196
6305
62
975
97
5655

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT DISTINCT CAST( col0 AS SIGNED ) + col2 AS col0 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col2 AS col0 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN - - col2 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT ( + 90 ) AS col0, - COUNT( * ) * - - MIN( + col0 ) + - 15 col0 FROM tab0
----
90
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3305
SELECT ( + 90 ) AS col0, - COUNT ( * ) * - - MIN ( + col0 ) + - 15 col0 FROM tab0
----
90
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3306
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 34 <= CAST( NULL AS DECIMAL )
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 34 <= CAST ( NULL AS REAL )
----
0

query I rowsort
SELECT ALL - + col0 - col1 + + col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3308
SELECT + SUM( + + ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT + SUM ( + + ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( - 28 ) - col1 * + + col0 + + col2 FROM tab0 AS cor0 WHERE - 50 NOT IN ( - col0, col1 )
----
-1140
-1789
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3310
SELECT + COUNT( * ), COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-3310
SELECT + COUNT ( * ), COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT ALL + + COUNT( * ) AS col1, - SUM( + - 96 ) AS col1 FROM tab2 AS cor0
----
3
288

skipif mysql # not compatible
query II rowsort label-3311
SELECT ALL + + COUNT ( * ) AS col1, - SUM ( + - 96 ) AS col1 FROM tab2 AS cor0
----
3
288

query II rowsort
SELECT - 79 AS col2, + 28 AS col2 FROM tab1 AS cor0
----
-79
28
-79
28
-79
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + MAX( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3313
SELECT + MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT ALL - col2, col0 + - 27 AS col0 FROM tab0 AS cor0
----
-10
60
-47
-12
-99
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL - + COUNT( ALL - col0 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3315
SELECT ALL - + COUNT ( ALL - col0 ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * + 40 * col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab1 AS cor0 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3318
SELECT - col1 DIV - col0 AS col1, + 74 FROM tab0
----
0
74
0
74
5
74

skipif mysql # not compatible
query II rowsort label-3318
SELECT - col1 / - col0 AS col1, + 74 FROM tab0
----
0
74
0
74
5
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT MAX( DISTINCT + - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3319
SELECT MAX ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col0 col2 FROM tab1 AS cor0 WHERE col2 >= col0
----
714

query II rowsort
SELECT ALL col1 + + col1, + col1 AS col2 FROM tab0 AS cor0
----
162
81
2
1
42
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT 32 DIV - ( + + 33 ) * col2 + - 66 AS col0 FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-3322
SELECT 32 / - ( + + 33 ) * col2 + - 66 AS col0 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT ALL - 43 * - ( 13 ) + - - col1 + - 58 - + 6 + - 46 * col2 AS col2 FROM tab0
----
-1586
-4058
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT ALL + + COUNT( * ) * + COUNT( * ) - COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) - COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + 46 FROM tab1 AS cor0
----
2714
3128
4416

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + col1 IS NOT NULL
----

query I rowsort
SELECT + col1 + col0 * - 72 * - col1 FROM tab0 AS cor0
----
131565
6985
87561

query I rowsort
SELECT ALL - col2 * - col1 AS col0 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3329
SELECT 33 DIV 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3329
SELECT 33 / 98 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 62 + - - col0 + - - col0 AS col1 FROM tab0 AS cor0
----
236
256
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT - COUNT( ALL ( 63 ) ) FROM tab1 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3331
SELECT - COUNT ( ALL ( 63 ) ) FROM tab1 WHERE NULL = NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col1 * - col2 + col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL MAX( col2 ) + 94 FROM tab2
----
152

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL MAX ( col2 ) + 94 FROM tab2
----
152

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT col2 * col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT ALL - COUNT( * ) DIV 19 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL - COUNT ( * ) / 19 AS col1 FROM tab0
----
0

query I rowsort
SELECT - col1 - + col2 + - 85 * - col1 FROM tab0
----
-15
1754
6757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3337
SELECT + col0 - - CAST( NULL AS SIGNED ) * + 16 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT + col0 - - CAST ( NULL AS INTEGER ) * + 16 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - AVG ( ALL + 45 ) FROM tab1 WHERE ( NULL ) NOT BETWEEN ( ( + col2 ) ) * + + 66 + col1 + + 83 + - - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT 28 + - col2 + - - 37 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 * + + 42 + - col0 FROM tab2 AS cor0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 > - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT ALL CAST( - 81 AS SIGNED ) * col0 + + 97 FROM tab0 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL CAST ( - 81 AS INTEGER ) * col0 + + 97 FROM tab0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3344
SELECT ALL 48 DIV MAX( DISTINCT + - col1 ) AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL 48 / MAX ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-48

query I rowsort
SELECT 12 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
12
12
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT ALL + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col0 FROM tab1 cor0 WHERE NULL <> 95 * 96
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3346
SELECT ALL + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 cor0 WHERE NULL <> 95 * 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 74 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 74 IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT - - COUNT( * ) + + + 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT - - COUNT ( * ) + + + 16 FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3350
SELECT ALL * FROM tab0 WHERE NOT + + col2 + - col0 <> - col0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3350
SELECT ALL * FROM tab0 WHERE NOT + + col2 + - col0 <> - col0 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col2, col0 * 10 + col2 FROM tab1
----
59
909
68
978
96
606

onlyif mysql # aggregate syntax: 
query II rowsort label-3352
SELECT DISTINCT 27 AS col2, COUNT( * ) - + + COUNT( * ) + + MAX( ALL 26 ) AS col0 FROM tab1
----
27
26

skipif mysql # not compatible
query II rowsort label-3352
SELECT DISTINCT 27 AS col2, COUNT ( * ) - + + COUNT ( * ) + + MAX ( ALL 26 ) AS col0 FROM tab1
----
27
26

query II rowsort
SELECT ALL 61 AS col2, + col2 AS col0 FROM tab2
----
61
23
61
40
61
58

query I rowsort
SELECT - 6 + 78 + + 8 AS col1 FROM tab1
----
80
80
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 > - 11 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL + COUNT( * ) * 11 AS col1 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + COUNT ( * ) * 11 AS col1 FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT COUNT( + col2 ) + COUNT( * ) * - + ( - MAX( DISTINCT - - 63 ) ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3357
SELECT COUNT ( + col2 ) + COUNT ( * ) * - + ( - MAX ( DISTINCT - - 63 ) ) FROM tab2 AS cor0
----
192

query I rowsort
SELECT - 20 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT - 73 * + 78 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 16297325263270c97b9accb3f39a1a55

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT COUNT( * ) - + 85 AS col1 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3360
SELECT COUNT ( * ) - + 85 AS col1 FROM tab0 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT + 22 * 23 - COUNT( * ) FROM tab0 cor0
----
503

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 22 * 23 - COUNT ( * ) FROM tab0 cor0
----
503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL - + CAST( + - 3 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL - + CAST ( + - 3 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT - col2 * - col1 + - col0 + - 99 + col2 AS col0 FROM tab0 AS cor0
----
2
34
3740

query I rowsort
SELECT + - AVG ( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT + - COUNT( ALL col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT + - COUNT ( ALL col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 * - col0 <> col2 + - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 WHERE NOT 22 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 WHERE NOT 22 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL COUNT( * ) + - 20 AS col1 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL COUNT ( * ) + - 20 AS col1 FROM tab1
----
-17

query I rowsort
SELECT DISTINCT col1 + - col2 + - 50 AS col1 FROM tab0
----
-148
-16
-39

query III rowsort
SELECT * FROM tab0 WHERE col1 <= ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT ALL 44 * - - CAST( - MAX( ALL 0 ) AS SIGNED ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT ALL 44 * - - CAST ( - MAX ( ALL 0 ) AS INTEGER ) col0 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3373
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) / - + 70 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + ( CAST ( NULL AS REAL ) ) / - + 70 + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT DISTINCT - 65 * + MIN( ALL + 92 ) * 41 * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT - 65 * + MIN ( ALL + 92 ) * 41 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - 2 * - + col2 + col0 FROM tab0 AS cor0
----
107
109
295

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3376
SELECT DISTINCT + col2 / - CAST( NULL AS DECIMAL ) + + + 33 + + ( - 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT + col2 / - CAST ( NULL AS REAL ) + + + 33 + + ( - 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 5 * 16 - col1 FROM tab1 AS cor0
----
-127
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3379
SELECT ALL 43 AS col0, 55 * - col1 AS col1 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 * 82 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3379
SELECT ALL 43 AS col0, 55 * - col1 AS col1 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 * 82 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - 80 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 87 FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL ( 69 ) AS col0 FROM tab1 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + - col1 - + - ( + col2 ) + + + ( - + col2 ) / - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3384
SELECT + 44, CAST( NULL AS SIGNED ) * - 38 AS col1 FROM tab2 AS cor0
----
44
NULL
44
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-3384
SELECT + 44, CAST ( NULL AS INTEGER ) * - 38 AS col1 FROM tab2 AS cor0
----
44
NULL
44
NULL
44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab0 cor0
----
62

query I rowsort
SELECT - col0 + 33 FROM tab0 AS cor0
----
-54
-64
18

query I rowsort
SELECT DISTINCT - - col2 * - + 67 * + - 91 + ( + 17 ) FROM tab2 AS cor0
----
140248
243897
353643

query I rowsort
SELECT DISTINCT - col0 + ( - col0 ) * + 56 FROM tab1 AS cor0
----
-2907
-4845
-5187

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + + MAX( - - 80 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3391
SELECT + + MAX ( - - 80 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT ( + CAST( + AVG ( + col1 ) AS SIGNED ) ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3392
SELECT ( + CAST ( + AVG ( + col1 ) AS INTEGER ) ) FROM tab0
----
34

query I rowsort
SELECT DISTINCT col2 * + ( - + 29 ) + col2 AS col1 FROM tab2
----
-1120
-1624
-644

query I rowsort
SELECT ALL - 77 AS col2 FROM tab1
----
-77
-77
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3395
SELECT ALL 35 + + MIN( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL 35 + + MIN ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - COUNT( ALL col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3396
SELECT - COUNT ( ALL col1 ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col0 + + ( - 37 ) + + col0 + 34 * - + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-166399
-170377
-210247

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3398
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
query II rowsort label-3398
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + - 0 + + 39 FROM tab2 AS cor0
----
39

query I rowsort
SELECT ALL + col2 * + col2 - - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT DISTINCT SUM( ALL + 71 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT SUM ( ALL + 71 ) FROM tab2
----
213

query I rowsort
SELECT + + AVG ( 15 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - 40 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - 40 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT DISTINCT + - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col1, col1 col1 FROM tab0 AS cor0 WHERE NOT ( col2 * 73 / + 77 * - 48 IS NULL )
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - col0 * - + 55 * col2 AS col1 FROM tab1
----
269280
275825
340340

query I rowsort
SELECT ALL - col0 * - col0 * + 34 FROM tab1
----
245650
281554
88434

query I rowsort
SELECT + col2 * ( 89 ) FROM tab2
----
2047
3560
5162

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col0 = NULL
----

query I rowsort
SELECT - + col0 * + + col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT DISTINCT - + MAX( ALL - col1 ) + 60 FROM tab1 cor0
----
65

skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT - + MAX ( ALL - col1 ) + 60 FROM tab1 cor0
----
65

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE NOT - col2 - - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT COUNT( DISTINCT 21 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT COUNT ( DISTINCT 21 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 84 * col1 FROM tab0 AS cor0
----
1764
6804
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT DISTINCT + col1 * - CAST( NULL AS SIGNED ) + col2 + - - col1 + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT + col1 * - CAST ( NULL AS INTEGER ) + col2 + - - col1 + - col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT ALL - 44 + + COUNT( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL - 44 + + COUNT ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT ALL - 75 + + + col2 FROM tab2 AS cor0
----
-17
-35
-52

query I rowsort
SELECT 23 FROM tab0 WHERE NULL IS NULL
----
23
23
23

query I rowsort
SELECT DISTINCT col2 + - 80 AS col0 FROM tab0
----
-33
-70
19

query I rowsort
SELECT DISTINCT - 26 + + col2 AS col0 FROM tab2
----
-3
14
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - COUNT( * ) * + - 56 * - 73 + - - 91 FROM tab1
----
-12173

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( * ) * + - 56 * - 73 + - - 91 FROM tab1
----
-12173

query II rowsort
SELECT ALL - - ( + - col0 ), + 37 * 93 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 49 FROM tab1 WHERE - 9 IS NULL
----

query I rowsort
SELECT ALL + - 95 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT - col0 + + col2 + + - col2 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3426
SELECT CAST( - - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3426
SELECT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - ( + 18 ) + + col0 FROM tab2
----
28
46
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3428
SELECT DISTINCT 46 + + CAST( NULL AS SIGNED ), col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3428
SELECT DISTINCT 46 + + CAST ( NULL AS INTEGER ), col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL

query III rowsort
SELECT - + col1 - - 43 AS col1, col1 AS col1, - col2 AS col2 FROM tab0 cor0
----
9 values hashing to c575a9fc511509f1c602df72d9dbcabe

onlyif mysql # aggregate syntax: 
query II rowsort label-3430
SELECT DISTINCT + AVG ( + col2 ) AS col2, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 70
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3430
SELECT DISTINCT + AVG ( + col2 ) AS col2, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 70
----
NULL
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - - 55 >= + + 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 12 / + 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 71 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL ( + - ( - COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL ( + - ( - COUNT ( * ) ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3437
SELECT DISTINCT + col0, + col1 * + CAST( col0 AS SIGNED ) FROM tab0
----
15
1215
87
1827
97
97

skipif mysql # not compatible
query II rowsort label-3437
SELECT DISTINCT + col0, + col1 * + CAST ( col0 AS INTEGER ) FROM tab0
----
15
1215
87
1827
97
97

query I rowsort
SELECT ( + 95 ) AS col0 FROM tab1 WHERE NOT - 3 = NULL
----

query I rowsort
SELECT ALL 52 * + - col0 FROM tab2
----
-2392
-3328
-3900

query II rowsort
SELECT 52, - col2 AS col1 FROM tab1 AS cor0
----
52
-59
52
-68
52
-96

query I rowsort
SELECT + 44 * - col2 + col1 FROM tab1
----
-2591
-2945
-4210

query I rowsort
SELECT ALL - 32 * col0 AS col2 FROM tab2
----
-1472
-2048
-2400

query I rowsort
SELECT ALL + col2 * 97 AS col1 FROM tab1
----
5723
6596
9312

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 49 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 - - 8 AND col0 + + col2
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT ( 25 ) IN ( - ( 69 ) )
----
-51
-85
-91

query I rowsort
SELECT ALL 84 * - 36 + - 90 * ( col1 ) AS col0 FROM tab1
----
-3474
-4284
-7254

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT ALL CAST( + ( - col1 ) AS SIGNED ) AS col1 FROM tab0 WHERE NULL = - ( col1 ) + - CAST( + col1 + + 98 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL CAST ( + ( - col1 ) AS INTEGER ) AS col1 FROM tab0 WHERE NULL = - ( col1 ) + - CAST ( + col1 + + 98 AS INTEGER )
----

query I rowsort
SELECT 6 * + col2 FROM tab2
----
138
240
348

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * col1 col0 FROM tab1
----
168
564
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3453
SELECT DISTINCT 39 + CAST( NULL AS DECIMAL ) * AVG ( 25 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT 39 + CAST ( NULL AS REAL ) * AVG ( 25 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + col0 + - 33
----

query I rowsort
SELECT 18 * - 41 FROM tab2
----
-738
-738
-738

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 18 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3457
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 - col0
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 - col0
----
0

query I rowsort
SELECT ALL - ( - 80 ) + + col2 FROM tab1
----
139
148
176

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT + MIN( 5 ) * + 92 FROM tab1
----
460

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + MIN ( 5 ) * + 92 FROM tab1
----
460

query III rowsort
SELECT * FROM tab0 WHERE 59 * + 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT - MIN( ALL 67 ) col1 FROM tab1 WHERE 60 + col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3461
SELECT - MIN ( ALL 67 ) col1 FROM tab1 WHERE 60 + col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) IN ( - 70 - - 35 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3463
SELECT ALL - 49 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - 49 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 10 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3466
SELECT DISTINCT COUNT( * ) DIV 14 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT COUNT ( * ) / 14 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL MIN( 35 ) AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL MIN ( 35 ) AS col2 FROM tab1 AS cor0
----
35

query I rowsort
SELECT ALL + 79 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + ( col0 + - 27 * + col0 ) col1 FROM tab0 AS cor0
----
-2425
-435
825

onlyif mysql # DIV for integer division: 
query I rowsort label-3471
SELECT 60 * ( + 71 DIV ( + ( col1 ) ) ) + col1 * + col2 FROM tab0
----
3807
390
4359

skipif mysql # not compatible
query I rowsort label-3471
SELECT 60 * ( + 71 / ( + ( col1 ) ) ) + col1 * + col2 FROM tab0
----
3807
390
4359

query I rowsort
SELECT + 81 AS col0 FROM tab0 WHERE col1 IS NOT NULL
----
81
81
81

query I rowsort
SELECT col2 + 60 * + 46 AS col0 FROM tab1
----
2819
2828
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT COUNT( * ) + - 11 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT COUNT ( * ) + - 11 FROM tab2
----
-8

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NULL >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 87 col1 FROM tab0
----
-102
-174
-184

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 + + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - MIN( col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - MIN ( col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 * col0 )
----

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab1 cor0 WHERE NOT - col2 > 62
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 94 col1 FROM tab2 AS cor0
----
4794
6298
7238

onlyif mysql # DIV for integer division: 
query I rowsort label-3483
SELECT - 47 DIV 38 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3483
SELECT - 47 / 38 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3484
SELECT + CAST( NULL AS SIGNED ) * - ( 28 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3484
SELECT + CAST ( NULL AS INTEGER ) * - ( 28 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 58 * - 66 FROM tab2
----
-3828
-3828
-3828

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT col1 + + 74 * - col0 = 51 * - col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT AVG ( - col2 ) * 21 + + ( - COUNT( * ) - ( - 52 + 88 ) * 12 ) * ( + 91 + - 20 ) FROM tab0 WHERE NOT ( - 45 + + 46 * + col0 ) NOT IN ( 66 / col2 - 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3487
SELECT AVG ( - col2 ) * 21 + + ( - COUNT ( * ) - ( - 52 + 88 ) * 12 ) * ( + 91 + - 20 ) FROM tab0 WHERE NOT ( - 45 + + 46 * + col0 ) NOT IN ( 66 / col2 - 60 )
----
NULL

query I rowsort
SELECT ALL - ( - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 40 AS col1 FROM tab1 AS cor0
----
40

query I rowsort
SELECT - col1 * ( - 25 ) + - col2 AS col1 FROM tab2 AS cor0
----
1252
1617
1885

query I rowsort
SELECT ALL + + ( col0 ) * 72 + - col2 AS col1 FROM tab1 AS cor0
----
3576
6061
6484

query II rowsort
SELECT ALL + col2, 80 * + col2 AS col1 FROM tab1
----
59
4720
68
5440
96
7680

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 < + col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - - col2 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND 81 * - 93
----

query I rowsort
SELECT col0 + + ( + col1 ) AS col1 FROM tab1 WHERE - col1 IN ( 2 )
----

query I rowsort
SELECT DISTINCT col0 * - ( - col0 ) FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3500
SELECT - COUNT( * ) AS col0, - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-3500
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - MIN( col2 ) * + 65 col0 FROM tab0 AS cor0
----
-650

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT ALL - MIN ( col2 ) * + 65 col0 FROM tab0 AS cor0
----
-650

query I rowsort
SELECT ALL col1 * - - 67 + + col0 AS col0 FROM tab2 AS cor0
----
3463
4564
5223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT DISTINCT - ( - - col1 ) * - - CAST( NULL AS SIGNED ) + 20 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT - ( - - col1 ) * - - CAST ( NULL AS INTEGER ) + 20 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 + + + col1 AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL - ( + COUNT( * ) ) + - 5 AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL - ( + COUNT ( * ) ) + - 5 AS col0 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN + - 34 * 45 + ( - col2 ) AND col1 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT - COUNT( * ) + + COUNT( ALL + col2 ) * - COUNT( DISTINCT + 98 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3507
SELECT - COUNT ( * ) + + COUNT ( ALL + col2 ) * - COUNT ( DISTINCT + 98 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - col2 * col0 + + col2 + + 93 AS col1 FROM tab1 cor0
----
-4707
-4863
-6027

query I rowsort
SELECT DISTINCT - - ( + 98 ) * + 9 * col2 + col2 + - col2 AS col2 FROM tab1 cor0
----
52038
59976
84672

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT COUNT( * ) * - MIN( DISTINCT - 48 ) + - 10 * COUNT( * ) FROM tab2 cor0
----
114

skipif mysql # not compatible
query I rowsort label-3510
SELECT COUNT ( * ) * - MIN ( DISTINCT - 48 ) + - 10 * COUNT ( * ) FROM tab2 cor0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3511
SELECT * FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-3511
SELECT * FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT 21 FROM tab2 WHERE - col1 * - + col0 / - col2 = - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 59 * + 96 col1 FROM tab2
----
5606
5624
5641

query I rowsort
SELECT DISTINCT col0 * 14 * - col2 - - - col2 FROM tab2
----
-14835
-35880
-60958

query I rowsort
SELECT ALL - col0 * - 56 - - - 76 AS col1 FROM tab1
----
2780
4684
5020

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + ( 65 ) col2 FROM tab1
----
-3
-31
6

query III rowsort
SELECT * FROM tab1 WHERE ( - + ( + - 36 ) ) NOT BETWEEN col0 * + col0 + col1 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col1 IN ( - + 19 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT + - 39 DIV + 31 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3519
SELECT + - 39 / + 31 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT ALL - 59 DIV - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - 59 / - col2 AS col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL = + 19 + - - ( col1 ) + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + col2 BETWEEN - col1 * 83 AND NULL )
----

query I rowsort
SELECT 89 * col0 AS col2 FROM tab1 AS cor0 WHERE + 83 < ( - - 63 * - + col1 / col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3524
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) + - 96 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) + - 96 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT MAX( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT MAX ( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 85 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - SUM( + 69 ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3527
SELECT - SUM ( + 69 ) FROM tab0 AS cor0
----
-207

query II rowsort
SELECT DISTINCT - - col0 AS col2, + col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT ALL col0 AS col2, col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
51
64
77
75
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 - 55 * - + col0 * col0 IS NOT NULL
----

query I rowsort
SELECT col0 * - ( - 77 ) - - col1 FROM tab1 AS cor0
----
3941
6550
7054

query I rowsort
SELECT ALL 6 * 14 + + 12 FROM tab0 WHERE ( NOT ( - 12 * col2 ) = ( col1 ) )
----
96
96
96

query II rowsort
SELECT col1 AS col1, - 55 FROM tab1
----
14
-55
47
-55
5
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3534
SELECT col2 DIV - 25 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT col2 / - 25 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL ( col2 ) + col0 / col1 FROM tab0 WHERE NOT ( NOT ( + - ( + col2 ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 83 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT 68 DIV - + 26 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3537
SELECT 68 / - + 26 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT - 80 * col1 FROM tab1 WHERE NOT - col2 * 2 + + 71 IS NOT NULL
----

query I rowsort
SELECT ALL + + 79 + + col0 * 89 AS col0 FROM tab2 WHERE col1 + 0 BETWEEN NULL AND + + col1
----

query I rowsort
SELECT DISTINCT - + 4 FROM tab0 cor0
----
-4

query I rowsort
SELECT + col1 * col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT DISTINCT + col2 * + col0 DIV - ( - col0 ) + + 47 + - col1 FROM tab1
----
101
129
68

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + col2 * + col0 / - ( - col0 ) + + 47 + - col1 FROM tab1
----
101
129
68

query I rowsort
SELECT + + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 21 * - ( - 79 ) + - - col1 + + + col1 + 23 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 + + - col0 * + 26 + col1 / - col0 / - col0 ) NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * + ( + col2 ) + - 27 FROM tab1 AS cor0
----
3454
4597
9189

query I rowsort
SELECT col0 + col1 AS col0 FROM tab1 AS cor0 WHERE ( - col0 NOT BETWEEN ( + col1 ) - + col2 AND ( NULL ) )
----
138
90

query I rowsort
SELECT 46 FROM tab1 AS cor0 WHERE ( NOT - + col2 * - col0 IS NOT NULL )
----

query II rowsort
SELECT ALL - + ( - + 48 ) + + + 49 AS col0, - col2 * + ( + - 43 ) * - col1 - 34 + - col1 AS col2 FROM tab0 AS cor0
----
97
-163816
97
-4292
97
-9085

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT ( NOT ( - col1 + + 80 IS NOT NULL ) ) )
----
3

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT ( NOT ( - col1 + + 80 IS NOT NULL ) ) )
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE 39 + - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT MAX( DISTINCT 31 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-3552
SELECT MAX ( DISTINCT 31 ) FROM tab1
----
31

query I rowsort
SELECT ALL - 49 + + col0 FROM tab1
----
2
36
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - col0 * + 17 / - col0 * + + CAST( + 47 AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - col0 * + 17 / - col0 * + + CAST ( + 47 AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 41 * - col0 * + col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL IN ( - col0, + col2 * + + 6, - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL IN ( - col0, + col2 * + + 6, - - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT SUM( DISTINCT + 32 ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-3557
SELECT SUM ( DISTINCT + 32 ) FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT ALL + 22 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + 22 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL 77 - + + COUNT( * ) col2 FROM tab2
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3559
SELECT ALL 77 - + + COUNT ( * ) col2 FROM tab2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT + + SUM( - + 32 ) / ( - + COUNT( * ) ) AS col2 FROM tab2 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT + + SUM ( - + 32 ) / ( - + COUNT ( * ) ) AS col2 FROM tab2 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3561
SELECT * FROM tab0 WHERE NULL IN ( - 83, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3561
SELECT * FROM tab0 WHERE NULL IN ( - 83, + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE NOT NULL IN ( + col1, col0 )
----

query II rowsort
SELECT DISTINCT 35 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
35
10
35
47
35
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT ALL + 17 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL + 17 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT - 92 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + + 42 + CAST( - 2 AS SIGNED ) ) AND + col1 / 67 + - col1 <> + col1 * - col1
----

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT - 92 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + + 42 + CAST ( - 2 AS INTEGER ) ) AND + col1 / 67 + - col1 <> + col1 * - col1
----

query I rowsort
SELECT ALL + - 13 AS col2 FROM tab2 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT COUNT ( - col2 ) FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < - col0
----

query II rowsort
SELECT - 83, - 69 AS col2 FROM tab2 AS cor0
----
-83
-69
-83
-69
-83
-69

query I rowsort
SELECT ALL 47 * + 89 * 72 AS col0 FROM tab1
----
301176
301176
301176

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + COUNT( * ) * - 72 + 42 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-606

skipif mysql # not compatible
query I rowsort label-3572
SELECT + COUNT ( * ) * - 72 + 42 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-606

query I rowsort
SELECT ALL - - 46 AS col2 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT DISTINCT + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3575
SELECT + CAST( + - ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3575
SELECT + CAST ( + - ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + col2 * - - 25 AS col1 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT - 40 * - 43 * - COUNT( * ) FROM tab0 AS cor0
----
-5160

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 40 * - 43 * - COUNT ( * ) FROM tab0 AS cor0
----
-5160

query II rowsort
SELECT DISTINCT - col0 * 58 AS col2, ( + + col0 ) FROM tab1 AS cor0
----
-2958
51
-4930
85
-5278
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT COUNT( ALL - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3581
SELECT COUNT ( ALL - col2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 52 FROM tab2 WHERE NOT + col1 IS NULL
----
52

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 6 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - + col2 > - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL COUNT( DISTINCT + + col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3585
SELECT ALL COUNT ( DISTINCT + + col1 ) col0 FROM tab0
----
3

query I rowsort
SELECT ALL col0 + - col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - - 70 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
70

query I rowsort
SELECT 18 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 91 <= ( 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col1, col0 * col0 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query I rowsort
SELECT ALL - - 42 AS col0 FROM tab1 AS cor0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT + + CAST( NULL AS SIGNED ) - - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT + + CAST ( NULL AS INTEGER ) - - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 7 AS col0, + 2 FROM tab0 AS cor0
----
7
2

query I rowsort
SELECT - col2 - + + 18 FROM tab2 AS cor0
----
-41
-58
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + - COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3595
SELECT + - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3597
SELECT - col1, ( + col0 ) FROM tab2 WHERE + - CAST( - + 35 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-3597
SELECT - col1, ( + col0 ) FROM tab2 WHERE + - CAST ( - + 35 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 6 + - col0 AS col0 FROM tab2
----
-40
-58
-69

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + 58 NOT IN ( + col2 * - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3600
SELECT CAST( + COUNT( ALL + CAST( 59 AS SIGNED ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3600
SELECT CAST ( + COUNT ( ALL + CAST ( 59 AS INTEGER ) ) AS INTEGER ) FROM tab2
----
3

query I rowsort
SELECT ALL + col0 * + + col2 * ( col2 ) - + - 85 FROM tab2
----
102485
24419
252385

query I rowsort
SELECT ALL + ( - + col0 ) + + + col2 AS col2 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + - col2 > 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col2 + col1 + + 24 * - + 64 col1 FROM tab0 AS cor0
----
-1305
-1436
2352

query I rowsort
SELECT ALL - col2 * - - col2 * 63 * - + col0 FROM tab2 cor0
----
1533042
15894900
6451200

query I rowsort
SELECT ALL - + col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col0 IS NULL OR ( col2 ) * col1 > - 17
----
-10
-47
-99

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT COUNT( * ) * + MAX( col1 ) AS col2, - 22 AS col1 FROM tab0
----
243
-22

skipif mysql # not compatible
query II rowsort label-3608
SELECT COUNT ( * ) * + MAX ( col1 ) AS col2, - 22 AS col1 FROM tab0
----
243
-22

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 * - - col2 FROM tab0
----
1
99
21
210
81
3807

onlyif mysql # DIV for integer division: 
query I rowsort label-3610
SELECT + col2 DIV + 28 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3610
SELECT + col2 / + 28 AS col1 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT DISTINCT + ( - COUNT( * ) ), COUNT( * ) * + 42 FROM tab1 AS cor0 WHERE NULL NOT IN ( ( col0 ), - col1 )
----
0
0

skipif mysql # not compatible
query II rowsort label-3611
SELECT DISTINCT + ( - COUNT ( * ) ), COUNT ( * ) * + 42 FROM tab1 AS cor0 WHERE NULL NOT IN ( ( col0 ), - col1 )
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT DISTINCT - 47 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - 47 / - col1 AS col2 FROM tab0 AS cor0
----
0
2
47

query I rowsort
SELECT ALL - + col0 * + 69 * + - ( + - col2 ) FROM tab0 AS cor0
----
-48645
-60030
-662607

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - MIN( DISTINCT - ( 55 ) ) / COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3614
SELECT - MIN ( DISTINCT - ( 55 ) ) / COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + CAST( 54 AS SIGNED ) <> col0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + CAST ( 54 AS INTEGER ) <> col0
----
15
87
97

query I rowsort
SELECT + - col2 AS col1 FROM tab0 cor0 WHERE NOT col0 BETWEEN ( + col1 ) / + col0 AND NULL
----

query II rowsort
SELECT DISTINCT col1 * + 74 AS col0, + col2 FROM tab2
----
3774
23
4958
58
5698
40

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - - col0 + col2 + 73 NOT IN ( 41, - ( - + col1 ) * - - 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT 44 + COUNT( * ) * + COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT 44 + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
53

query I rowsort
SELECT + 84 * - + col0 * - 47 * + - col2 AS col2 FROM tab2
----
-10106880
-17173800
-4176984

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT + COUNT( - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3622
SELECT + COUNT ( - col1 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3623
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT 11 * + - COUNT( DISTINCT - + col1 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-3624
SELECT 11 * + - COUNT ( DISTINCT - + col1 ) FROM tab0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT + CAST( NULL AS SIGNED ) * + MAX( + 85 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( + 85 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 18 * col0 AS col2 FROM tab2
----
-1152
-1350
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT DISTINCT + col2 * 63 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT + - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE + 86 < col1
----

query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3631
SELECT DISTINCT - - ( ( + col2 ) ) * - - CAST( + - 38 AS SIGNED ) + + col0 AS col1 FROM tab2 AS cor0
----
-1456
-2129
-828

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - - ( ( + col2 ) ) * - - CAST ( + - 38 AS INTEGER ) + + col0 AS col1 FROM tab2 AS cor0
----
-1456
-2129
-828

query I rowsort
SELECT col1 * col2 * + col2 + + 31 FROM tab0
----
178960
2131
9832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) * + ( 96 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) * + ( 96 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 36 + + + 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
89

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3636
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 >= 17 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3636
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 >= 17 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - 51 - - - col2 + + 51 AND - - 64 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT 59 DIV col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3638
SELECT 59 / col2 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT MAX( ALL + col1 ) - - + 2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-3640
SELECT MAX ( ALL + col1 ) - - + 2 FROM tab0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 33 FROM tab1
----
59
33
68
33
96
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL + SUM( ALL 40 ) AS col1 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + SUM ( ALL 40 ) AS col1 FROM tab1 AS cor0
----
120

query I rowsort
SELECT - 31 * + col1 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3644
SELECT + + COUNT( - col2 ) DIV - + COUNT( * ) col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3644
SELECT + + COUNT ( - col2 ) / - + COUNT ( * ) col1 FROM tab0 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT + col1 * 18 + col2 * 73 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col0 / col1 + col0, + ( col1 ), - col0 + - col1 / - col2 + col1 + 36 + CAST( NULL AS SIGNED ) / - col0 - + col0 * + 99 * 98 )
----

skipif mysql # not compatible
query I rowsort label-3645
SELECT + col1 * 18 + col2 * 73 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col0 / col1 + col0, + ( col1 ), - col0 + - col1 / - col2 + col1 + 36 + CAST ( NULL AS INTEGER ) / - col0 - + col0 * + 99 * 98 )
----

query I rowsort
SELECT - col1 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col0 * - + 11 * + col0 FROM tab2 AS cor0 WHERE col1 - + col0 IN ( + 85, col1, 91 )
----

query I rowsort
SELECT ALL - + 50 * - - col1 AS col2 FROM tab2 AS cor0
----
-2550
-3350
-3850

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <> col2
----

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1 AS cor0 WHERE ( col0 ) IS NOT NULL
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT + + COUNT( * ) + 2 FROM tab0 WHERE NOT - + ( col1 ) IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-3651
SELECT + + COUNT ( * ) + 2 FROM tab0 WHERE NOT - + ( col1 ) IS NOT NULL
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT DISTINCT - MAX( + + ( + - 82 ) ) col2 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) <= + - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3652
SELECT DISTINCT - MAX ( + + ( + - 82 ) ) col2 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) <= + - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ALL 40 + - COUNT( * ) FROM tab2 WHERE - 19 > ( NULL )
----
40

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 40 + - COUNT ( * ) FROM tab2 WHERE - 19 > ( NULL )
----
40

query I rowsort
SELECT ALL - - ( + col2 ) FROM tab0 WHERE NOT - 4 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT DISTINCT 15 DIV + col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT 15 / + col2 FROM tab2
----
0

query I rowsort
SELECT 60 + - col2 + col1 * + 86 - 9 FROM tab0 AS cor0
----
1847
38
6970

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 NOT IN ( + + col2 / + col2, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col0, - col1, - 55 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3659
SELECT + MAX( + col2 ) DIV - 64 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3659
SELECT + MAX ( + col2 ) / - 64 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT + MIN( 40 ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-3661
SELECT + MIN ( 40 ) FROM tab2
----
40

query I rowsort
SELECT ALL - col1 + - - col2 + + col1 * col0 AS col1 FROM tab2
----
2318
4891
5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT col0 * - - CAST( NULL AS SIGNED ) * - - col2 * - - col1 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT col0 * - - CAST ( NULL AS INTEGER ) * - - col2 * - - col1 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3664
SELECT DISTINCT + 25 DIV + 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + 25 / + 77 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 - - 22 AS col2 FROM tab1 AS cor0
----
27
36
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) - - MIN( - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3666
SELECT - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - - MIN ( - + col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT - CAST( NULL AS SIGNED ) + + col1 + + 86 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-3667
SELECT - CAST ( NULL AS INTEGER ) + + col1 + + 86 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col0 + + col1 + - - col1 FROM tab1 AS cor0
----
185
79
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT - - ( - CAST( NULL AS SIGNED ) ) + + - col2 * + + 67 * - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT - - ( - CAST ( NULL AS INTEGER ) ) + + - col2 * + + 67 * - + col0 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 17 ) AS col2 FROM tab0 AS cor0
----
17

query II rowsort
SELECT ALL col1, - col2 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT SUM( - 62 ) FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-3673
SELECT SUM ( - 62 ) FROM tab1
----
-186

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 49 + + - col0 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT + ( - COUNT( ALL + col2 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + ( - COUNT ( ALL + col2 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT DISTINCT - CAST( - 7 AS SIGNED ) AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - CAST ( - 7 AS INTEGER ) AS col2 FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT SUM( + + 14 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3677
SELECT SUM ( + + 14 ) FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3678
SELECT ALL - CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46 AS col1, + 62 col1 FROM tab1 AS cor0
----
46
62
46
62
46
62

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT - 63 DIV + - 24 - col1 FROM tab2 WHERE NOT ( NOT ( - 11 ) * + 4 * + 22 IS NOT NULL )
----
-49
-65
-75

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 63 / + - 24 - col1 FROM tab2 WHERE NOT ( NOT ( - 11 ) * + 4 * + 22 IS NOT NULL )
----
-49
-65
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3682
SELECT COUNT( * ) * - MAX( - 96 ) + COUNT( * ) - + CAST( + 52 AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-3682
SELECT COUNT ( * ) * - MAX ( - 96 ) + COUNT ( * ) - + CAST ( + 52 AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( - + col2 ) col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 77 * - 93 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( + + ( - col0 ) ) + - 23 AS col2 FROM tab2 AS cor0
----
23
41
52

query I rowsort
SELECT ALL col1 * - 39 AS col0 FROM tab2
----
-1989
-2613
-3003

query I rowsort
SELECT DISTINCT - 33 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT + 84 + - 29 AS col2, - col0 AS col0, + 86 AS col0 FROM tab2
----
9 values hashing to e499d5add5be80f469c721b7772e08a4

query II rowsort
SELECT col0 * - + col0, col2 FROM tab2
----
-2116
23
-4096
40
-5625
58

query I rowsort
SELECT ALL - 1 * + 83 * - col2 AS col1 FROM tab1
----
4897
5644
7968

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 / + + col2
----

query I rowsort
SELECT DISTINCT - col2 + - + 99 AS col2 FROM tab1
----
-158
-167
-195

query I rowsort
SELECT + col2 + - - 35 + + 59 + - col1 * - col0 FROM tab2
----
2463
5062
5177

query III rowsort
SELECT * FROM tab0 WHERE col0 + 8 * + - 69 * - col2 * col2 <> - + 81 + + 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * - + 88 * - col2 - col1 AS col2 FROM tab0
----
-194473
-862489
-8821

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col1 + + col2 - + 61 < ( NULL )
----

query I rowsort
SELECT ALL - col2 - 67 FROM tab1 AS cor0
----
-126
-135
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT col1 + - 27 DIV + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26
20
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3698
SELECT col1 + - 27 / + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-26
20
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT ALL + ( + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3699
SELECT ALL + ( + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
10
47
99

query II rowsort
SELECT + col2 * 66 - - col2 AS col1, - 21 FROM tab0 AS cor0
----
3149
-21
6633
-21
670
-21

query I rowsort
SELECT - ( - col2 ) * - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT 91 + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT 91 + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3703
SELECT col1 + - + CAST( - - col0 AS SIGNED ) * - col2 AS col2, col0 FROM tab0 AS cor0 WHERE NOT col0 + - + col2 <= + 50
----
891
87

skipif mysql # not compatible
query II rowsort label-3703
SELECT col1 + - + CAST ( - - col0 AS INTEGER ) * - col2 AS col2, col0 FROM tab0 AS cor0 WHERE NOT col0 + - + col2 <= + 50
----
891
87

query II rowsort
SELECT DISTINCT - 51 AS col1, - col2 FROM tab1 AS cor0
----
-51
-59
-51
-68
-51
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT - 39 AS col2, COUNT( * ) FROM tab0 AS cor0
----
-39
3

skipif mysql # not compatible
query II rowsort label-3705
SELECT - 39 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-39
3

query I rowsort
SELECT ALL - + col2 * - 67 AS col2 FROM tab0 AS cor0
----
3149
6633
670

query I rowsort
SELECT - col1 * + + ( - col2 ) AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT - MAX( DISTINCT 5 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - MAX ( DISTINCT 5 ) AS col2 FROM tab0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT ALL + 95 DIV - COUNT( * ) AS col1 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + 95 / - COUNT ( * ) AS col1 FROM tab1
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3710
SELECT CAST( NULL AS DECIMAL ) / + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT CAST ( NULL AS REAL ) / + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3711
SELECT * FROM tab1 WHERE NOT + col2 <= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3711
SELECT * FROM tab1 WHERE NOT + col2 <= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE ( NOT col0 - - ( + col0 ) >= - 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3713
SELECT DISTINCT * FROM tab0 WHERE ( CAST( - 90 AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-3713
SELECT DISTINCT * FROM tab0 WHERE ( CAST ( - 90 AS INTEGER ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3714
SELECT DISTINCT + SUM( DISTINCT + - col0 ) AS col0, + 68 AS col0 FROM tab1
----
-227
68

skipif mysql # not compatible
query II rowsort label-3714
SELECT DISTINCT + SUM ( DISTINCT + - col0 ) AS col0, + 68 AS col0 FROM tab1
----
-227
68

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * ( - col0 ) + + - col1 FROM tab2 AS cor0
----
-2167
-4173
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - + COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3717
SELECT - + COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

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 + col0 AS col2, + 35 FROM tab0
----
15
35
87
35
97
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + 90 + 52 col2 FROM tab2 AS cor0
----
165
182
200

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - - COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3721
SELECT - - COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3722
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3722
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT + CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3723
SELECT + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - 81 + + 14 AS col1 FROM tab0 AS cor0
----
-67

query I rowsort
SELECT + col0 + + + col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL - - 54 + - + 25 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT ALL - - 55 + - ( + + col2 ) FROM tab2 AS cor0
----
-3
15
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT + + MAX( + - 91 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT + + MAX ( + - 91 ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - - col2 > ( NULL )
----

query I rowsort
SELECT col2 FROM tab2 WHERE + col1 + + col2 + - - 40 NOT BETWEEN NULL AND + + col0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + - col2 col2 FROM tab2
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - + 91 * + COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-3734
SELECT - + 91 * + COUNT ( * ) FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + MIN( ALL col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3735
SELECT + MIN ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL - col2 + - - CAST( NULL AS SIGNED ) + + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL - col2 + - - CAST ( NULL AS INTEGER ) + + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 * + - 87 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to e64273c200086b1f9b00b1a4b63606eb

query I rowsort
SELECT DISTINCT - 39 - - col1 * - col2 + - - 20 + - 70 + + 4 FROM tab1
----
-1429
-3281
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query II rowsort
SELECT DISTINCT col1 * + 54 AS col1, + col0 * + + 2 * - col0 AS col2 FROM tab1
----
2538
-16562
270
-14450
756
-5202

query I rowsort
SELECT DISTINCT - + 23 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COUNT( * ) * - 19 * + 67 AS col1 FROM tab1 AS cor0
----
-3819

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COUNT ( * ) * - 19 * + 67 AS col1 FROM tab1 AS cor0
----
-3819

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL IN ( - col2, col2, col1 + + col1, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3744
SELECT col2 * 22 + col0 + - col1 + + ( col0 ) + + - col0 + + col0 * - + col1 * - + CAST( NULL AS SIGNED ) * - - col1 - - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT col2 * 22 + col0 + - col1 + + ( col0 ) + + - col0 + + col0 * - + col1 * - + CAST ( NULL AS INTEGER ) * - - col1 - - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT CAST( NULL AS SIGNED ) * col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT CAST ( NULL AS INTEGER ) * col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 73 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
-73

query I rowsort
SELECT ALL - 68 * 1 * + 82 AS col0 FROM tab2 cor0
----
-5576
-5576
-5576

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 11 IN ( + + col0 / - - col2 + - 29 + + col0 / + col0 - - col0, col2, + col1 * - col2 + + col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3749
SELECT DISTINCT + 90 * col0 DIV - col0 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + 90 * col0 / - col0 FROM tab1
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - col1 DIV + 2 AS col2 FROM tab1
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-3750
SELECT - col1 / + 2 AS col2 FROM tab1
----
-2
-23
-7

query II rowsort
SELECT - 91, + col1 + col2 AS col1 FROM tab0 WHERE NOT col0 NOT BETWEEN + col1 AND 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3752
SELECT - CAST( NULL AS SIGNED ) AS col1, - col2 + - - ( - 66 ) AS col1 FROM tab2
----
NULL
-106
NULL
-124
NULL
-89

skipif mysql # not compatible
query II rowsort label-3752
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col2 + - - ( - 66 ) AS col1 FROM tab2
----
NULL
-106
NULL
-124
NULL
-89

query I rowsort
SELECT - col1 * + + 67 AS col2 FROM tab2
----
-3417
-4489
-5159

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - MIN( + col2 ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-3754
SELECT - MIN ( + col2 ) FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT + + MAX( + + 23 ) AS col2 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3755
SELECT + + MAX ( + + 23 ) AS col2 FROM tab0 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL = NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 39 * + ( + col2 ) * + col2 + + + 44 - + 81 * + col0 - col0 - + col2 * + - col0 <= + col2
----

query II rowsort
SELECT + - col2 AS col0, + col2 AS col0 FROM tab0 cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + 80 * + col1 FROM tab2
----
4080
5360
6160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3760
SELECT 55 + + - CAST( NULL AS SIGNED ) - - COUNT( 56 ) * + 44 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT 55 + + - CAST ( NULL AS INTEGER ) - - COUNT ( 56 ) * + 44 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 91 IS NULL
----

query I rowsort
SELECT col2 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT - + 62 * - CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT - + 62 * - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3765
SELECT DISTINCT + - COUNT( DISTINCT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3765
SELECT DISTINCT + - COUNT ( DISTINCT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT ALL - 3 + col1 + + + col2 DIV + + 36 + + 28 * 3 col2 FROM tab1 AS cor0
----
129
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3767
SELECT ALL - 3 + col1 + + + col2 / + + 36 + + 28 * 3 col2 FROM tab1 AS cor0
----
129
87
97

query I rowsort
SELECT + - col2 - + - col0 FROM tab1 WHERE NULL IS NULL
----
-45
23
26

onlyif mysql # DIV for integer division: 
query II rowsort label-3769
SELECT col2 col0, - 59 DIV + col2 + - col1 AS col0 FROM tab0
----
10
-26
47
-82
99
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3769
SELECT col2 col0, - 59 / + col2 + - col1 AS col0 FROM tab0
----
10
-26
47
-82
99
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3770
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT COUNT( * ) FROM tab0 WHERE 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT COUNT ( * ) FROM tab0 WHERE 96 IS NULL
----
0

query I rowsort
SELECT ALL - 20 / - - 33 AS col2 FROM tab2 WHERE NULL <= + + col2 * + + 73
----

query I rowsort
SELECT ALL + 88 + col1 FROM tab2
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT COUNT( * ) - 73 * + - 88 AS col2 FROM tab1
----
6427

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT COUNT ( * ) - 73 * + - 88 AS col2 FROM tab1
----
6427

query I rowsort
SELECT DISTINCT + 6 - col0 AS col2 FROM tab0
----
-81
-9
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT col0 DIV + + col2 - - col1 col0 FROM tab0
----
1
29
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3776
SELECT col0 / + + col2 - - col1 col0 FROM tab0
----
1
29
81

query I rowsort
SELECT + col0 + - 7 * - col2 FROM tab0 AS cor0
----
157
344
790

query II rowsort
SELECT DISTINCT + - col2 AS col2, 97 * + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-59
-485
-68
-4559
-96
-1358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3779
SELECT DISTINCT - + col2 + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - + col2 + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col2 + + + col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT col2 * - col0 * - 71 AS col2 FROM tab0
----
50055
61770
681813

onlyif mysql # DIV for integer division: 
query I rowsort label-3782
SELECT ( 4 ) DIV - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT ( 4 ) / - col0 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + - col1 AS col2, + 47 FROM tab0 cor0
----
-1
47
-21
47
-81
47

query I rowsort
SELECT ALL - - 14 AS col2 FROM tab2 cor0
----
14
14
14

query II rowsort
SELECT DISTINCT col2 AS col0, 47 FROM tab2 AS cor0
----
23
47
40
47
58
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3786
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 6 * - col0 NOT BETWEEN 74 + + 1 + 3 + - + 30 * - CAST( NULL AS SIGNED ) AND + 71
----

skipif mysql # not compatible
query III rowsort label-3786
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 6 * - col0 NOT BETWEEN 74 + + 1 + 3 + - + 30 * - CAST ( NULL AS INTEGER ) AND + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL + ( - - COUNT( * ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + ( - - COUNT ( * ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT + CAST( + - 33 AS SIGNED ) FROM tab0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-3788
SELECT + CAST ( + - 33 AS INTEGER ) FROM tab0
----
-33
-33
-33

query II rowsort
SELECT - + ( 45 ) * col2 - - ( - + col1 ) + + - col0 AS col1, - 41 FROM tab1 WHERE NOT 62 = - col0
----
-2745
-41
-3198
-41
-4385
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT DISTINCT + ( + + COUNT( * ) ) + + COUNT( col0 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT + ( + + COUNT ( * ) ) + + COUNT ( col0 ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT 52 + - 98 + + 32 * - col2 * ( - - col0 ) * col0 * + ( + - ( + 97 ) ) AS col2 FROM tab2 AS cor0
----
1012679954
151065426
508559314

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - MAX( ALL + + 7 ) + - 94 + - 30 FROM tab2 AS cor0
----
-131

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - MAX ( ALL + + 7 ) + - 94 + - 30 FROM tab2 AS cor0
----
-131

query I rowsort
SELECT + col2 / + 97 + + + col2 AS col1 FROM tab2 AS cor0 WHERE 97 IS NULL
----

query I rowsort
SELECT col0 * 85 + - col2 FROM tab1 AS cor0
----
4239
7166
7667

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - ( - 66 ) + - + 39 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT - - 5 * + col1 FROM tab0 AS cor0
----
105
405
5

query I rowsort
SELECT DISTINCT 13 * col0 - col0 FROM tab2 AS cor0
----
552
768
900

query I rowsort
SELECT + - 36 * - 82 AS col0 FROM tab1 AS cor0
----
2952
2952
2952

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT + ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3799
SELECT + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT - 46 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - 46 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-138

query I rowsort
SELECT + + 12 + - 98 AS col2 FROM tab2 cor0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 53 + - - 58 - + + col2, 38 ) OR col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + 93 AS col0 FROM tab1
----
-3
25
34

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + 93 AS col0 FROM tab1
----
-3
25
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 - - + 5 + + col1 FROM tab2
----
107
139
159

query III rowsort
SELECT * FROM tab2 WHERE - col0 = + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT DISTINCT - + col2 - - + 67 + col2 DIV - ( + col0 ) + + ( + col1 ) * + + col0 + + - 6 FROM tab0 AS cor0
----
1226
1878
58

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - + col2 - - + 67 + col2 / - ( + col0 ) + + ( + col1 ) * + + col0 + + - 6 FROM tab0 AS cor0
----
1226
1878
58

query I rowsort
SELECT + col2 * + col2 * + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-14493249
-44100
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT - - COUNT( 95 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3810
SELECT - - COUNT ( 95 ) col0 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * 64 - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 * + col2 FROM tab0 WHERE NOT + col0 IS NULL
----
100
2209
9801

query I rowsort
SELECT ALL ( + - ( + col1 ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + - col1 * - + col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3815
SELECT + col2 + - + CAST( - col1 AS SIGNED ) * + 95 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col2 * + - col0
----

skipif mysql # not compatible
query I rowsort label-3815
SELECT + col2 + - + CAST ( - col1 AS INTEGER ) * + 95 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col2 * + - col0
----

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 cor0 WHERE + ( - col1 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT CAST( + - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3817
SELECT CAST ( + - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 73 * + - col0 AS col1 FROM tab0 AS cor0
----
1095
6351
7081

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3820
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3821
SELECT COUNT( * ) DIV + + 55 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( * ) / + + 55 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col0 < - 91 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3823
SELECT DISTINCT - COUNT( * ), - 24 AS col0 FROM tab2
----
-3
-24

skipif mysql # not compatible
query II rowsort label-3823
SELECT DISTINCT - COUNT ( * ), - 24 AS col0 FROM tab2
----
-3
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3825
SELECT col2 col1, - CAST( NULL AS DECIMAL ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3825
SELECT col2 col1, - CAST ( NULL AS REAL ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT - + col0 + + col2 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL 15 + - col0 AS col0 FROM tab0 AS cor0
----
-72
-82
0

query I rowsort
SELECT ALL - 89 + + - 18 AS col1 FROM tab2 AS cor0
----
-107
-107
-107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3829
SELECT ALL - + COUNT( * ) + 40 + - CAST( NULL AS DECIMAL ) + - + 45 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL - + COUNT ( * ) + 40 + - CAST ( NULL AS REAL ) + - + 45 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - + COUNT( * ) + 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-3830
SELECT - + COUNT ( * ) + 19 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query I rowsort
SELECT - col1 + 59 AS col0 FROM tab1
----
12
45
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL = + 9
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL = + 9
----
0

query I rowsort
SELECT + 18 - + - col2 FROM tab0
----
117
28
65

query I rowsort
SELECT 83 - - - 64 FROM tab2
----
19
19
19

query I rowsort
SELECT 24 - + col2 FROM tab2
----
-16
-34
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3836
SELECT DISTINCT + col0 - - - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT + col0 - - - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT COUNT( - col2 ) - - - MIN( - - ( - ( - - 64 ) ) ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT COUNT ( - col2 ) - - - MIN ( - - ( - ( - - 64 ) ) ) FROM tab2
----
67

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 17 * - col1 / - + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 66 col1, + col0 AS col0 FROM tab1 cor0
----
-66
51
-66
85
-66
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, col1 col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query II rowsort
SELECT - + 36 AS col2, + 65 FROM tab2 AS cor0
----
-36
65
-36
65
-36
65

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3842
SELECT * FROM tab2 WHERE NOT + + 52 * - col0 <> + CAST( - 36 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3842
SELECT * FROM tab2 WHERE NOT + + 52 * - col0 <> + CAST ( - 36 AS REAL )
----

query I rowsort
SELECT 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + 38 - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
38

skipif mysql # not compatible
query I rowsort label-3844
SELECT + 38 - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col2 ) col1 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 24 = - + col2 OR NOT NULL NOT BETWEEN + col2 AND - + col0 / - - col1 * - + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT DISTINCT 46 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT 46 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3850
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL MIN( DISTINCT - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL MIN ( DISTINCT - col0 ) FROM tab0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - col2
----

query I rowsort
SELECT 37 FROM tab1 WHERE NOT NULL <= 70
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - + col2 * - 63 AND NULL
----

query I rowsort
SELECT DISTINCT 42 * + + col2 FROM tab2
----
1680
2436
966

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 66 / - - ( 34 ) + - + col0 + + 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT col0 FROM tab1 WHERE + - 76 * - 40 * - - col0 * 49 + + - CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query I rowsort label-3857
SELECT col0 FROM tab1 WHERE + - 76 * - 40 * - - col0 * 49 + + - CAST ( NULL AS INTEGER ) <= - col0
----

query I rowsort
SELECT col1 + + + col1 + - - 54 FROM tab0
----
216
56
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT ALL MAX( + col0 ) * - 47 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-13677

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL MAX ( + col0 ) * - 47 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-13677

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3860
SELECT ALL col1 col1, CAST( NULL AS DECIMAL ) * - - col0 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-3860
SELECT ALL col1 col1, CAST ( NULL AS REAL ) * - - col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + ( + + 91 ) + + + col0 AS col1 FROM tab2 AS cor0
----
137
155
166

query I rowsort
SELECT col1 * - ( - col0 ) * col2 * col0 + + col1 FROM tab0 AS cor0
----
1589511
856656
931492

query I rowsort
SELECT + col0 * 15 AS col2 FROM tab0
----
1305
1455
225

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - COUNT( * ) - + + 29 AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - COUNT ( * ) - + + 29 AS col2 FROM tab0
----
-32

query II rowsort
SELECT DISTINCT col1, col2 * - 67 AS col1 FROM tab0 AS cor0
----
1
-6633
21
-670
81
-3149

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT ALL col2 AS col0, - col0 * + col0 AS col1 FROM tab2 AS cor0
----
23
-2116
40
-4096
58
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT ALL + COUNT( * ) + - 12 AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + COUNT ( * ) + - 12 AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + col1 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
124
162
69

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT DISTINCT 32 AS col0, - 43 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
32
-129

skipif mysql # not compatible
query II rowsort label-3871
SELECT DISTINCT 32 AS col0, - 43 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
32
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT DISTINCT ( + 97 ) + + - col0 + + - col0 DIV - + col2 AS col2 FROM tab0 AS cor0
----
0
18
82

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT ( + 97 ) + + - col0 + + - col0 / - + col2 AS col2 FROM tab0 AS cor0
----
0
18
82

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab0 WHERE NOT ( col0 / col2 * - col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 33 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 33 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 36 AS col0 FROM tab0
----
-2916
-36
-756

query I rowsort
SELECT DISTINCT col0 * 53 * col1 FROM tab0
----
5141
64395
96831

onlyif mysql # aggregate syntax: 
query II rowsort label-3877
SELECT - MAX( + - 49 ) AS col0, - COUNT( * ) col1 FROM tab1
----
49
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3877
SELECT - MAX ( + - 49 ) AS col0, - COUNT ( * ) col1 FROM tab1
----
49
-3

query II rowsort
SELECT DISTINCT + ( - col1 ) * + col2, + col0 AS col1 FROM tab0
----
-210
87
-3807
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT - COUNT( + + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3879
SELECT - COUNT ( + + col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 11 * - col2 = - 87
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL + MAX( + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + MAX ( + col1 ) FROM tab2 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - col0 + col1 * ( - 36 ) IS NULL
----

query II rowsort
SELECT ALL + + col1 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT col1 + - + 31 FROM tab1 AS cor0
----
-17
-26
16

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > - col1
----

query I rowsort
SELECT DISTINCT col0 + - - 51 FROM tab0
----
138
148
66

query I rowsort
SELECT ALL col1 * + 0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT 66 * - CAST( col0 AS SIGNED ) FROM tab1
----
-3366
-5610
-6006

skipif mysql # not compatible
query I rowsort label-3888
SELECT 66 * - CAST ( col0 AS INTEGER ) FROM tab1
----
-3366
-5610
-6006

query I rowsort
SELECT - 87 * col1 FROM tab0
----
-1827
-7047
-87

query I rowsort
SELECT + 5 * + + col2 FROM tab2
----
115
200
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * + + col1 * + col0 col0 FROM tab2 AS cor0
----
197184
291525
54004

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3892
SELECT + - col2, - col2 - + CAST( 44 AS SIGNED ) * - 91 AS col1 FROM tab2 AS cor0 WHERE 55 * - col1 <= + col2 + col1 + - - col1 + + 31 + - col2
----
-23
3981
-40
3964
-58
3946

skipif mysql # not compatible
query II rowsort label-3892
SELECT + - col2, - col2 - + CAST ( 44 AS INTEGER ) * - 91 AS col1 FROM tab2 AS cor0 WHERE 55 * - col1 <= + col2 + col1 + - - col1 + + 31 + - col2
----
-23
3981
-40
3964
-58
3946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col1 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT - + 45 * + 73 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-3285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL - 47 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - 47 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT ALL - COUNT( ALL - 43 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL - COUNT ( ALL - 43 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3897
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 + - 38 * 8 * + + col2 * col1 + col2 * - CAST( NULL AS SIGNED ) / + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3897
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / - col2 + - 38 * 8 * + + col2 * col1 + col2 * - CAST ( NULL AS INTEGER ) / + col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 - - - col2 AS col1, + col2 FROM tab1 AS cor0 WHERE NOT + col0 < - 40 / - - col0
----
-118
59
-136
68
-192
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL - MAX( - 4 ) AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - MAX ( - 4 ) AS col1 FROM tab1 AS cor0
----
4

query I rowsort
SELECT - ( + 73 ) FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3901
SELECT + 6 * - MIN( - + col0 ) DIV - 12 col2 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3901
SELECT + 6 * - MIN ( - + col0 ) / - 12 col2 FROM tab0 AS cor0
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col0 ) * col1 + - 71 FROM tab0 AS cor0
----
-1286
-168
-1898

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 cor0 WHERE NOT 70 * - 33 >= - - col0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3905
SELECT col2 DIV 76 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT col2 / 76 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT + 23 BETWEEN col1 AND ( + col1 * - ( + 93 ) - + + col0 )
----
59
68
96

query II rowsort
SELECT DISTINCT col0, + ( - 6 ) AS col0 FROM tab2
----
46
-6
64
-6
75
-6

query I rowsort
SELECT ALL - ( - col1 ) * col0 AS col1 FROM tab0 cor0
----
1215
1827
97

query II rowsort
SELECT + col0 AS col0, 95 AS col0 FROM tab2 AS cor0
----
46
95
64
95
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3910
SELECT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3911
SELECT - col1 * 92 DIV col1 * - col0 AS col2 FROM tab1 cor0
----
4692
7820
8372

skipif mysql # not compatible
query I rowsort label-3911
SELECT - col1 * 92 / col1 * - col0 AS col2 FROM tab1 cor0
----
4692
7820
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT COUNT( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3912
SELECT COUNT ( DISTINCT + + col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - col2 + - - col2 AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT MIN( + - col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3915
SELECT MIN ( + - col1 ) col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT + MIN( col1 ) + - 17 AS col2 FROM tab0 WHERE + + col1 IS NOT NULL
----
-16

skipif mysql # not compatible
query I rowsort label-3916
SELECT + MIN ( col1 ) + - 17 AS col2 FROM tab0 WHERE + + col1 IS NOT NULL
----
-16

query III rowsort
SELECT * FROM tab1 WHERE + col1 / - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT - ( + 93 ) + - 65 + - col1 * ( CAST( - 99 AS SIGNED ) ) FROM tab2
----
4891
6475
7465

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - ( + 93 ) + - 65 + - col1 * ( CAST ( - 99 AS INTEGER ) ) FROM tab2
----
4891
6475
7465

query I rowsort
SELECT ALL col2 + + ( + col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT - 22 + - - col2 AS col0 FROM tab2
----
1
18
36

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE - + 31 BETWEEN + + 17 * + + 50 + + col1 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT ALL + col0 * col0 + col1 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) * - - 25 IS NOT NULL
----
306
7590
9410

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + col0 * col0 + col1 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) * - - 25 IS NOT NULL
----
306
7590
9410

onlyif mysql # DIV for integer division: 
query II rowsort label-3923
SELECT - - ( + - 91 ) + + col1 * - + col1 AS col0, col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-532
-1
-6652
-1
-92
-1

skipif mysql # not compatible
query II rowsort label-3923
SELECT - - ( + - 91 ) + + col1 * - + col1 AS col0, col0 / - col0 AS col2 FROM tab0 AS cor0
----
-532
-1
-6652
-1
-92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - + 1 * COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3924
SELECT - + 1 * COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT SUM( - - 16 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT SUM ( - - 16 ) AS col0 FROM tab1 AS cor0
----
48

query II rowsort
SELECT - ( col2 ) * + col0 + col1 + - + 27 + - col0, + col1 AS col2 FROM tab2 cor0
----
-1080
51
-2574
77
-4385
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT + col2 col1, 38 DIV - 79 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3928
SELECT + col2 col1, 38 / - 79 FROM tab2 AS cor0
----
23
0
40
0
58
0

query I rowsort
SELECT DISTINCT col1 + - ( 24 ) AS col0 FROM tab1
----
-10
-19
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3930
SELECT - col1 DIV col0 col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3930
SELECT - col1 / col0 col0 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL + SUM( DISTINCT col0 ) col0 FROM tab0 WHERE col0 - + 79 >= 31
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3931
SELECT ALL + SUM ( DISTINCT col0 ) col0 FROM tab0 WHERE col0 - + 79 >= 31
----
NULL

query I rowsort
SELECT + 90 - col2 AS col0 FROM tab2
----
32
50
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3933
SELECT + col1 DIV 28 col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3933
SELECT + col1 / 28 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + 73 + - col1 * + col0 AS col2 FROM tab2
----
-2273
-4855
-4952

query I rowsort
SELECT - 79 * ( col0 ) AS col1 FROM tab1
----
-4029
-6715
-7189

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + 79 - - 90 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE - ( - 54 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE ( 6 * ( - col2 ) ) NOT BETWEEN - col1 AND + 72
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT BETWEEN col1 * + col2 + + 26 * - 85 AND col2
----
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 58 + + col1 * ( 19 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + 60 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3944
SELECT + 36 * CAST( + col2 AS SIGNED ) + + CAST( col1 AS SIGNED ) DIV ( + 80 ) AS col0 FROM tab2
----
1440
2088
828

skipif mysql # not compatible
query I rowsort label-3944
SELECT + 36 * CAST ( + col2 AS INTEGER ) + + CAST ( col1 AS INTEGER ) / ( + 80 ) AS col0 FROM tab2
----
1440
2088
828

query III rowsort
SELECT * FROM tab0 WHERE + col1 + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3946
SELECT DISTINCT + col0 + + ( + col0 + col0 ) DIV 40 FROM tab1
----
53
89
95

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT + col0 + + ( + col0 + col0 ) / 40 FROM tab1
----
53
89
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 - - col1 col2 FROM tab2
----
69
85
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT - COUNT( * ) DIV + 4 FROM tab2 WHERE NOT ( NULL ) >= ( col1 + - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT - COUNT ( * ) / + 4 FROM tab2 WHERE NOT ( NULL ) >= ( col1 + - 16 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 > NULL
----

query I rowsort
SELECT DISTINCT ( - ( - 37 ) ) AS col0 FROM tab2 AS cor0
----
37

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col0 FROM tab2 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - MAX( 90 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-90

skipif mysql # not compatible
query I rowsort label-3954
SELECT - MAX ( 90 ) FROM tab2 AS cor0 CROSS JOIN tab0
----
-90

query I rowsort
SELECT ALL + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( col1 ) ) = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 69 AND - 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3958
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND - 53 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3958
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - 53 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 84 + + col2 AS col1 FROM tab0 AS cor0
----
-37
-74
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) BETWEEN 80 AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT - - 64 + + MAX( 6 ) * - 41 AS col0 FROM tab1 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-3962
SELECT - - 64 + + MAX ( 6 ) * - 41 AS col0 FROM tab1 AS cor0
----
-182

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 BETWEEN - 19 - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 * col2 + col1 > col0
----
-3

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 * col2 + col1 > col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3966
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + MIN( ALL + + col0 ) * - 79 FROM tab1
----
-4029

skipif mysql # not compatible
query I rowsort label-3968
SELECT + MIN ( ALL + + col0 ) * - 79 FROM tab1
----
-4029

query I rowsort
SELECT col1 + - col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL OR ( col2 ) IS NOT NULL
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3970
SELECT DISTINCT + col2 + + ( + col0 ) * - CAST( col1 * col1 - - col1 AS SIGNED ) FROM tab1
----
-10614
-205228
-2491

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + col2 + + ( + col0 ) * - CAST ( col1 * col1 - - col1 AS INTEGER ) FROM tab1
----
-10614
-205228
-2491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT COUNT( * ) * + ( - COUNT( 72 ) ) DIV 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) * + ( - COUNT ( 72 ) ) / 96 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 37 * col0 )
----

query I rowsort
SELECT ( - + ( col0 ) ) * col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - COUNT( * ) + 32 FROM tab1 WHERE NOT + 42 + - col2 IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - COUNT ( * ) + 32 FROM tab1 WHERE NOT + 42 + - col2 IS NOT NULL
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + 80 - - COUNT( * ) AS col0 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3975
SELECT + 80 - - COUNT ( * ) AS col0 FROM tab1
----
83

query I rowsort
SELECT ALL - col0 * - + 35 - - col2 AS col1 FROM tab2
----
1633
2280
2683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT ALL + + 64 DIV - SUM( + col0 ) * - 94 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL + + 64 / - SUM ( + col0 ) * - 94 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT + 88 FROM tab1 AS cor0 WHERE ( 67 ) IS NULL
----

query I rowsort
SELECT + 21 + + col0 FROM tab2 AS cor0
----
67
85
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col0 col2 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT ALL 61 * + col2 + - - 17 FROM tab2
----
1420
2457
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT - + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3982
SELECT - + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL - 1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NULL < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT - MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT + 38, ( 73 ) * - col0 + - 92 AS col0 FROM tab0 AS cor0
----
38
-1187
38
-6443
38
-7173

query I rowsort
SELECT DISTINCT + - ( + - col2 ) * + 74 FROM tab0 AS cor0
----
3478
7326
740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 23 col2, col0 * + 53 - - 2 FROM tab2 AS cor0
----
23
2440
23
3394
23
3977

query I rowsort
SELECT - - col0 * - - ( - col1 ) + col2 FROM tab2 cor0
----
-2323
-4888
-4967

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - ( + 3 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3992
SELECT DISTINCT col2, col0 DIV - 34 FROM tab1 AS cor0
----
59
-2
68
-2
96
-1

skipif mysql # not compatible
query II rowsort label-3992
SELECT DISTINCT col2, col0 / - 34 FROM tab1 AS cor0
----
59
-2
68
-2
96
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col0 ) IN ( col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 18 * - + 0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE col2 >= col0
----
14

query I rowsort
SELECT + 49 * col0 + col1 FROM tab0 WHERE NOT ( - - col1 ) = NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * + + col2 AS col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - 55 FROM tab1 WHERE NOT ( - col1 ) IS NULL
----
-55
-55
-55

query I rowsort
SELECT - 29 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 + 80 / + 40 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( ( + col2 BETWEEN + col0 AND NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 5 NOT BETWEEN NULL AND 76 + col0
----

query II rowsort
SELECT + col2 + - col0, col2 - + + col0 AS col1 FROM tab1 cor0
----
-23
-23
-26
-26
45
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 80 AND col1 + col2 + col2
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 cor0 WHERE 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4005
SELECT ALL - + col1 DIV - col0 + + col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL - + col1 / - col0 + + col0 FROM tab0 AS cor0
----
20
87
97

query I rowsort
SELECT - - 98 * + col0 + - - col0 AS col2 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT + AVG ( - 20 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT + AVG ( - 20 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL - MAX( DISTINCT + 5 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL - MAX ( DISTINCT + 5 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - col0 + col0 AS col2 FROM tab2 WHERE - col1 = + 23
----

query III rowsort
SELECT * FROM tab1 WHERE + ( - col2 ) + 31 * - 92 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 + - col2 + col2 * - - ( + col1 ) NOT IN ( col2 )
----
97
1
99

query I rowsort
SELECT DISTINCT + 92 * 82 + - col1 - - col0 FROM tab0 AS cor0
----
7478
7610
7640

query II rowsort
SELECT DISTINCT - ( + + col2 ) + - 44 AS col1, + col1 * - 87 FROM tab2 AS cor0
----
-102
-5829
-67
-4437
-84
-6699

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4014
SELECT col1 col1 FROM tab2 AS cor0 WHERE col0 * CAST( NULL AS SIGNED ) - + 79 + - col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4014
SELECT col1 col1 FROM tab2 AS cor0 WHERE col0 * CAST ( NULL AS INTEGER ) - + 79 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4015
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 82 + - col1 ) BETWEEN + CAST( - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4015
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 82 + - col1 ) BETWEEN + CAST ( - col0 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4016
SELECT col0, CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4016
SELECT col0, CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT + col0 + 12 * 73 + col2 FROM tab1 AS cor0
----
1020
1023
1035

query I rowsort
SELECT + - 68 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-4017
-4671
-6542

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT - col0 DIV 59 DIV + col0 + + 45 + - col2 AS col1 FROM tab1
----
-14
-23
-51

skipif mysql # not compatible
query I rowsort label-4020
SELECT - col0 / 59 / + col0 + + 45 + - col2 AS col1 FROM tab1
----
-14
-23
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab2 WHERE NULL IN ( - - 54 / - - 17 )
----
0

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab2 WHERE NULL IN ( - - 54 / - - 17 )
----
0

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE ( NULL ) > ( 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL + COUNT( * ) * - - ( - + 52 ) AS col1 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + COUNT ( * ) * - - ( - + 52 ) AS col1 FROM tab1
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4024
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 66 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 66 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4025
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT ( NOT ( CAST( + 7 AS SIGNED ) * col2 + col1 * - 75 ) <> ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT ( NOT ( CAST ( + 7 AS INTEGER ) * col2 + col1 * - 75 ) <> ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT ALL col0 - - col0 * + CAST( - col1 AS SIGNED ) FROM tab0
----
-1200
-1740
0

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL col0 - - col0 * + CAST ( - col1 AS INTEGER ) FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 4 <= col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT 29 * col0 - - 99 FROM tab0 WHERE - col1 >= CAST( 72 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4028
SELECT 29 * col0 - - 99 FROM tab0 WHERE - col1 >= CAST ( 72 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT SUM( ALL - + col2 ) + + - SUM( ALL - col0 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4029
SELECT SUM ( ALL - + col2 ) + + - SUM ( ALL - col0 ) FROM tab2
----
64

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 26 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( - + col2 ) FROM tab1 WHERE NULL BETWEEN NULL AND col0
----
0

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( - + col2 ) FROM tab1 WHERE NULL BETWEEN NULL AND col0
----
0

query II rowsort
SELECT DISTINCT - 95 AS col1, + ( + 20 ) FROM tab1 AS cor0
----
-95
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4033
SELECT - 32 * CAST( NULL AS SIGNED ) + 49 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT - 32 * CAST ( NULL AS INTEGER ) + 49 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4034
SELECT - - COUNT( * ) col0 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) + - 55 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4034
SELECT - - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) + - 55 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4037
SELECT ALL + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 76 FROM tab2 AS cor0 WHERE NOT + ( 0 ) IN ( - 96 )
----
76
76
76

query III rowsort
SELECT - - ( 8 ) AS col0, + col1, + - col2 + col1 FROM tab2 AS cor0
----
9 values hashing to fc283a2d1719e26e7c37dca58e9e3ca7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 69 / - col2 * 2 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT DISTINCT - 64 DIV COUNT( ALL - + col1 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - 64 / COUNT ( ALL - + col1 ) FROM tab2 AS cor0
----
-21

query I rowsort
SELECT ALL - - 0 * col2 FROM tab0 AS cor0 WHERE NOT + 31 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 36 + - col1
----

query II rowsort
SELECT ALL col2 AS col0, - 8 * + col2 FROM tab2
----
23
-184
40
-320
58
-464

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT 69 col0, COUNT( * ) + + - 32 AS col2 FROM tab2
----
69
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4046
SELECT 69 col0, COUNT ( * ) + + - 32 AS col2 FROM tab2
----
69
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-4047
SELECT DISTINCT - COUNT( * ) AS col2, - 98 FROM tab1
----
-3
-98

skipif mysql # not compatible
query II rowsort label-4047
SELECT DISTINCT - COUNT ( * ) AS col2, - 98 FROM tab1
----
-3
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT SUM( 22 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4048
SELECT SUM ( 22 ) FROM tab0
----
66

query I rowsort
SELECT - ( - col1 ) FROM tab2 WHERE NOT - col0 + - col1 >= - 39
----
51
67
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4050
SELECT COUNT( * ) * - - COUNT( * ) * + 12 * - + 34, + 91 AS col0 FROM tab2
----
-3672
91

skipif mysql # not compatible
query II rowsort label-4050
SELECT COUNT ( * ) * - - COUNT ( * ) * + 12 * - + 34, + 91 AS col0 FROM tab2
----
-3672
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4051
SELECT + CAST( + MAX( ALL - 60 ) AS SIGNED ), 93 AS col1 FROM tab1
----
-60
93

skipif mysql # not compatible
query II rowsort label-4051
SELECT + CAST ( + MAX ( ALL - 60 ) AS INTEGER ), 93 AS col1 FROM tab1
----
-60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT - COUNT( 99 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - COUNT ( 99 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - MAX( ALL - col2 ) AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4053
SELECT - MAX ( ALL - col2 ) AS col2 FROM tab0 cor0
----
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 80 * + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + col2 ) + - 83 AS col1 FROM tab2 cor0
----
-106
-123
-141

query I rowsort
SELECT ALL - ( - + ( col1 ) ) * - - 15 * - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-6615
-98415

query I rowsort
SELECT - + ( + 80 ) FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + 1 + - COUNT( * ) AS col1 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-4059
SELECT + 1 + - COUNT ( * ) AS col1 FROM tab1
----
-2

query I rowsort
SELECT - col2 + + ( + 2 ) + + 86 AS col0 FROM tab1
----
-8
20
29

query I rowsort
SELECT + col0 + col1 + + col0 FROM tab0
----
111
195
195

query I rowsort
SELECT + ( - + 95 ) + + 92 AS col2 FROM tab2
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT DISTINCT + CAST( ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + CAST ( ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - 70 + - ( 26 ) FROM tab0 cor0
----
-96

query I rowsort
SELECT DISTINCT col0 + col2 * - col0 AS col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT ALL + col0 - col2 * + col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT ALL CAST( NULL AS SIGNED ) + + + COUNT( + - col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL CAST ( NULL AS INTEGER ) + + + COUNT ( + - col1 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4068
SELECT CAST( - 24 AS SIGNED ) - + 95 col2, - col0 + col0 col0 FROM tab0
----
-119
0
-119
0
-119
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4068
SELECT CAST ( - 24 AS INTEGER ) - + 95 col2, - col0 + col0 col0 FROM tab0
----
-119
0
-119
0
-119
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + col2 - - 58 col0, col1 AS col2 FROM tab0
----
-138
1
-39
21
-4
81

query I rowsort
SELECT DISTINCT 26 + - + 3 FROM tab0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - 3 + - SUM( + - col2 ) col2 FROM tab0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4071
SELECT ALL - 3 + - SUM ( + - col2 ) col2 FROM tab0
----
153

query I rowsort
SELECT 14 - + 42 AS col0 FROM tab1
----
-28
-28
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + col2 + + 4 * + 49
----

query I rowsort
SELECT ALL col2 * col2 * + - 54 FROM tab2 AS cor0
----
-181656
-28566
-86400

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT - + COUNT( * ) * + 5 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4075
SELECT - + COUNT ( * ) * + 5 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4076
SELECT COUNT( * ), - ( COUNT( * ) ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4076
SELECT COUNT ( * ), - ( COUNT ( * ) ) AS col1 FROM tab2
----
3
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL <> col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT CAST( 71 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1633
2840
4118

skipif mysql # not compatible
query I rowsort label-4078
SELECT CAST ( 71 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1633
2840
4118

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT - + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4079
SELECT - + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + ( + col1 ) * + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + 95 IS NOT NULL
----

query II rowsort
SELECT col0 AS col0, + col1 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4083
SELECT 8 * - - col0 AS col1, - 9 * - - CAST( NULL AS SIGNED ) FROM tab2
----
368
NULL
512
NULL
600
NULL

skipif mysql # not compatible
query II rowsort label-4083
SELECT 8 * - - col0 AS col1, - 9 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
368
NULL
512
NULL
600
NULL

query I rowsort
SELECT ALL - 75 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT COUNT( * ) * - 43 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-4085
SELECT COUNT ( * ) * - 43 FROM tab0
----
-129

query I rowsort
SELECT ALL + ( + col0 ) FROM tab2 WHERE NOT col2 * - col2 + - 60 + + 88 * ( + col0 ) * ( 16 ) IS NULL
----
46
64
75

query II rowsort
SELECT 88 * - col2, col2 FROM tab0
----
-4136
47
-8712
99
-880
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT + 79 DIV - - COUNT( * ) AS col2 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT + 79 / - - COUNT ( * ) AS col2 FROM tab1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col2 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT + 59 AS col0 FROM tab0 AS cor0 WHERE ( col2 ) >= ( - ( col2 ) )
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4091
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 64 + + 42, + ( - 34 ) DIV + col0 AS col1 FROM tab1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4091
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 64 + + 42, + ( - 34 ) / + col0 AS col1 FROM tab1
----
NULL
0

query I rowsort
SELECT DISTINCT + col1 + + + col1 FROM tab2
----
102
134
154

query II rowsort
SELECT ALL - + 14 AS col0, - col1 FROM tab0 AS cor0
----
-14
-1
-14
-21
-14
-81

query I rowsort
SELECT + + col2 * ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL = NULL )
----

query I rowsort
SELECT 32 - 96 AS col2 FROM tab1 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + - col0 + - col2 * col2 AS col0 FROM tab0 cor0
----
-187
-2224
-9898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 2 + + col2 AS col2 FROM tab0
----
101
12
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4099
SELECT DISTINCT + col1 DIV - col1 - + col2 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT + col1 / - col1 - + col2 FROM tab2
----
-24
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL MAX( DISTINCT 61 ) col0 FROM tab1
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4100
SELECT ALL MAX ( DISTINCT 61 ) col0 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT - SUM( DISTINCT 53 ) AS col2 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-4101
SELECT - SUM ( DISTINCT 53 ) AS col2 FROM tab0
----
-53

query I rowsort
SELECT ALL 98 AS col0 FROM tab2 WHERE + col1 IN ( - 97, - col2, col2 )
----

query I rowsort
SELECT DISTINCT col0 * - + 17 FROM tab2 cor0
----
-1088
-1275
-782

query I rowsort
SELECT - + col1 * - col0 - - col1 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT CAST( + + 99 AS SIGNED ) FROM tab2
----
99
99
99

skipif mysql # not compatible
query I rowsort label-4105
SELECT CAST ( + + 99 AS INTEGER ) FROM tab2
----
99
99
99

query I rowsort
SELECT ALL col2 * + - 83 AS col1 FROM tab1 AS cor0
----
-4897
-5644
-7968

query I rowsort
SELECT 93 + + 52 * col0 FROM tab0 AS cor0
----
4617
5137
873

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4108
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 59 * CAST( - - col2 AS SIGNED ) / + col2
----

skipif mysql # not compatible
query III rowsort label-4108
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > - 59 * CAST ( - - col2 AS INTEGER ) / + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT ALL 79 + - col0 FROM tab2 AS cor0
----
15
33
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4111
SELECT COUNT( * ) AS col1, ( - COUNT( * ) ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4111
SELECT COUNT ( * ) AS col1, ( - COUNT ( * ) ) FROM tab0
----
3
-3

query I rowsort
SELECT col0 * 75 AS col1 FROM tab0
----
1125
6525
7275

query I rowsort
SELECT col2 * - col2 * + - ( - col1 ) FROM tab0
----
-178929
-2100
-9801

query III rowsort
SELECT * FROM tab2 WHERE + - 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 18, + col0 col2 FROM tab2
----
18
46
18
64
18
75

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( + 14 ) IS NULL
----
14
47
5

query I rowsort
SELECT + col2 * + 9 AS col2 FROM tab2
----
207
360
522

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( + 15 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, - ( - col0 ) FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT ALL - col0 DIV col0 + + + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - col0 / col0 + + + col0 FROM tab2 AS cor0
----
45
63
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 30 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT + col1 DIV col1 + - 96 AS col2 FROM tab2
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-4124
SELECT + col1 / col1 + - 96 AS col2 FROM tab2
----
-95
-95
-95

query I rowsort
SELECT DISTINCT 76 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
76

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4127
SELECT ( - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4127
SELECT ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT DISTINCT + 27 * - COUNT( * ) + - MIN( ALL - col2 ) AS col1 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT + 27 * - COUNT ( * ) + - MIN ( ALL - col2 ) AS col1 FROM tab1 cor0
----
15

query I rowsort
SELECT + col0 - + col1 - + col2 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT DISTINCT + 57 + - col2 * + - col0 FROM tab1 AS cor0
----
4953
5072
6245

onlyif mysql # aggregate syntax: 
query II rowsort label-4131
SELECT + 81 - + + COUNT( * ) AS col0, - 91 AS col0 FROM tab0 cor0
----
78
-91

skipif mysql # not compatible
query II rowsort label-4131
SELECT + 81 - + + COUNT ( * ) AS col0, - 91 AS col0 FROM tab0 cor0
----
78
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT DISTINCT col2 + + ( col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT DISTINCT col2 + + ( col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col2 - 66 + col0 FROM tab1
----
78
81
93

query II rowsort
SELECT - 74, + col1 FROM tab0
----
-74
1
-74
21
-74
81

query I rowsort
SELECT + ( 76 ) AS col1 FROM tab2
----
76
76
76

query II rowsort
SELECT ALL col2, 78 AS col1 FROM tab1
----
59
78
68
78
96
78

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT col2 * - 53 NOT BETWEEN NULL AND ( - 79 )
----

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT COUNT( * ) * - + 44 AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4139
SELECT COUNT ( * ) * - + 44 AS col2 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT + 16 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 97 * col1 AS col0 FROM tab0 AS cor0
----
2037
7857
97

query I rowsort
SELECT + col2 * 62 FROM tab2
----
1426
2480
3596

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT CAST( - MIN( + col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4143
SELECT CAST ( - MIN ( + col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + 92 * col0 * - + 99 AS col2 FROM tab0 cor0
----
-136620
-792396
-883476

query I rowsort
SELECT ALL - col0 * + + 30 + - + 38 FROM tab1 AS cor0
----
-1568
-2588
-2768

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT - 75 + + col0 * - col0 AS col2 FROM tab1
----
-2676
-7300
-8356

query I rowsort
SELECT ALL + 62 AS col0 FROM tab2
----
62
62
62

query I rowsort
SELECT - ( - col2 ) + + + 51 + - col2 FROM tab1
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT - MIN( + + 49 ) col2 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4150
SELECT - MIN ( + + 49 ) col2 FROM tab0 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT DISTINCT - 49 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - 49 / - col0 AS col2 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT DISTINCT - 73 - COUNT( * ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT - 73 - COUNT ( * ) FROM tab2
----
-76

query I rowsort
SELECT ALL - 88 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE + col2 - 19 > - col2
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab2
----
-23

query I rowsort
SELECT + 74 + - col2 AS col1 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT + col2 + - ( + 98 ) AS col0 FROM tab0 AS cor0
----
-51
-88
1

query II rowsort
SELECT - 39 * + 2 AS col0, 79 + - + col0 * - col2 * - - col0 FROM tab1 AS cor0
----
-78
249775
-78
426354
-78
563187

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT DISTINCT COUNT( * ) * - ( + 36 ), 35 AS col1 FROM tab1 WHERE NULL < NULL
----
0
35

skipif mysql # not compatible
query II rowsort label-4162
SELECT DISTINCT COUNT ( * ) * - ( + 36 ), 35 AS col1 FROM tab1 WHERE NULL < NULL
----
0
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT + ( - 60 ) DIV + 78 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4163
SELECT + ( - 60 ) / + 78 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT MIN( DISTINCT col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4164
SELECT MIN ( DISTINCT col1 ) FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 62 ) col2 FROM tab2 cor0 WHERE ( - 43 * - + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT - + MAX( - 18 ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT - + MAX ( - 18 ) FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT DISTINCT + - MIN( - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + - MIN ( - col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 67 AS col0, 37 col0 FROM tab0
----
67
37
67
37
67
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, - 48 col2 FROM tab1
----
59
-48
68
-48
96
-48

query I rowsort
SELECT - 84 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 NOT BETWEEN NULL AND - + 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT - + 74 + - COUNT( * ) FROM tab1 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4173
SELECT - + 74 + - COUNT ( * ) FROM tab1 cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 45 + - col1 col2 FROM tab1 AS cor0
----
2281
3820
4048

query I rowsort
SELECT ALL - - 35 * - + col1 AS col2 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT DISTINCT 60 DIV - col0 AS col0 FROM tab0 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT 60 / - col0 AS col0 FROM tab0 AS cor0
----
-4
0

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE + 21 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT - 49 * + col0 * + CAST( 94 AS SIGNED ) FROM tab0
----
-400722
-446782
-69090

skipif mysql # not compatible
query I rowsort label-4178
SELECT - 49 * + col0 * + CAST ( 94 AS INTEGER ) FROM tab0
----
-400722
-446782
-69090

query I rowsort
SELECT ALL + col1 + - col2 * + + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

onlyif mysql # DIV for integer division: 
query I rowsort label-4180
SELECT col0 DIV + + col2 + + col2 FROM tab0 AS cor0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-4180
SELECT col0 / + + col2 + + col2 FROM tab0 AS cor0
----
18
47
99

query I rowsort
SELECT - + 47 + - - 24 * + 59 FROM tab2 AS cor0
----
1369
1369
1369

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + 15 + - COUNT( * ) * - - 32 * - COUNT( * ) AS col2 FROM tab0
----
303

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 15 + - COUNT ( * ) * - - 32 * - COUNT ( * ) AS col2 FROM tab0
----
303

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + + col0 + - 90 IS NOT NULL
----

query I rowsort
SELECT - + ( 57 ) * 25 AS col1 FROM tab2 AS cor0
----
-1425
-1425
-1425

query I rowsort
SELECT DISTINCT + 13 * - + col0 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN ( + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4186
SELECT DISTINCT + + col2, - col0 DIV + + CAST( col2 AS SIGNED ) + - ( - col2 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
10
-8
47
3
99
1

skipif mysql # not compatible
query II rowsort label-4186
SELECT DISTINCT + + col2, - col0 / + + CAST ( col2 AS INTEGER ) + - ( - col2 ) / + col0 AS col1 FROM tab0 AS cor0
----
10
-8
47
3
99
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + 69 * - col0 <> NULL
----

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab2 WHERE NOT col0 + + col2 - + - 77 / + ( 93 ) IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col1, ( 94 ) AS col1 FROM tab2
----
-23
94
-40
94
-58
94

query I rowsort
SELECT col2 * - 27 * + col0 FROM tab0
----
-19035
-23490
-259281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4191
SELECT CAST( + + col2 AS SIGNED ) AS col2, - col0 col2 FROM tab0
----
10
-87
47
-15
99
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4191
SELECT CAST ( + + col2 AS INTEGER ) AS col2, - col0 col2 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT col0 DIV - 91 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT col0 / - 91 FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
SELECT DISTINCT - col0 DIV - - ( + col2 ) AS col0 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT - col0 / - - ( + col2 ) AS col0 FROM tab0
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - - COUNT( + - ( - col1 ) ) + SUM( - - col1 ) col2 FROM tab1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4194
SELECT - - COUNT ( + - ( - col1 ) ) + SUM ( - - col1 ) col2 FROM tab1 WHERE NOT NULL > NULL
----
NULL

query II rowsort
SELECT ALL - 66 AS col1, + 53 FROM tab2 AS cor0
----
-66
53
-66
53
-66
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT + MAX( DISTINCT ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4196
SELECT + MAX ( DISTINCT ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT - - col1 * + col1 + + col0 + - 22 + + col2 AS col0 FROM tab1 AS cor0
----
147
2346
321

query I rowsort
SELECT ALL + 67 * + - 73 AS col1 FROM tab0 AS cor0
----
-4891
-4891
-4891

query I rowsort
SELECT col0 + - 3 * - + col2 * + 77 FROM tab2 AS cor0
----
13473
5359
9304

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 25 * - col2 + - 97 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT DISTINCT col1 + + - CAST( NULL AS SIGNED ) / 32 + - + 97 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col1 + + - CAST ( NULL AS INTEGER ) / 32 + - + 97 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL - 81 + COUNT( * ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - 81 + COUNT ( * ) FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT COUNT( * ) + + 3 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4203
SELECT COUNT ( * ) + + 3 FROM tab2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4204
SELECT ALL CAST( NULL AS DECIMAL ) + + + 94 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL CAST ( NULL AS REAL ) + + + 94 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT + COUNT( * ) - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + COUNT ( * ) - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT + col0 FROM tab0 WHERE - - col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT SUM( + col2 ) + + COUNT( * ) AS col2 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-4207
SELECT SUM ( + col2 ) + + COUNT ( * ) AS col2 FROM tab0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT ALL + col0 - col2 + + + col1 DIV col1 col0 FROM tab2
----
18
24
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4208
SELECT ALL + col0 - col2 + + + col1 / col1 col0 FROM tab2
----
18
24
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT + - MIN( col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT + - MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - 93 * - 7 FROM tab2 AS cor0
----
651
651
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 AS cor0 WHERE NOT NULL = - col0 * + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + ( - + col0 ) = ( - - col2 * + 69 )
----
0

skipif mysql # not compatible
query I rowsort label-4212
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + ( - + col0 ) = ( - - col2 * + 69 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab1 cor0 WHERE NULL BETWEEN - ( - - col2 ) AND 22 + + + col0 * + 75 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT + COUNT( ALL + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL - SUM( DISTINCT col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - SUM ( DISTINCT col0 ) AS col0 FROM tab2
----
-185

query I rowsort
SELECT + + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0 AS cor0
----
54

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + 80 + col1 FROM tab2 AS cor0
----
1891
3277
4707

query I rowsort
SELECT DISTINCT + - col2 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT ALL 13 DIV 49 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL 13 / 49 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * 44 AS col1 FROM tab2
----
2244
2948
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT col1 DIV 45 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4224
SELECT col1 / 45 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL 2 * + col1 AS col1 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4226
SELECT DISTINCT + CAST( + + CAST( + col0 AS DECIMAL ) AS SIGNED ), + col2 * + col1 AS col2 FROM tab1
----
51
1344
85
295
91
3196

skipif mysql # not compatible
query II rowsort label-4226
SELECT DISTINCT + CAST ( + + CAST ( + col0 AS REAL ) AS INTEGER ), + col2 * + col1 AS col2 FROM tab1
----
51
1344
85
295
91
3196

query I rowsort
SELECT - 0 - col0 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT ALL - 97 DIV + col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - 97 / + col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4229
SELECT COUNT( * ) AS col1, - 86 FROM tab1
----
3
-86

skipif mysql # not compatible
query II rowsort label-4229
SELECT COUNT ( * ) AS col1, - 86 FROM tab1
----
3
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / - - 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + 31 * + COUNT( * ) col1 FROM tab2
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4231
SELECT + 31 * + COUNT ( * ) col1 FROM tab2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT ALL + MIN( - - col1 ) DIV - 86 * MAX( - - 54 ) DIV + - 16 DIV + COUNT( - ( + + 98 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + MIN ( - - col1 ) / - 86 * MAX ( - - 54 ) / + - 16 / + COUNT ( - ( + + 98 ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT COUNT( * ) FROM tab2 WHERE + ( + 81 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4233
SELECT COUNT ( * ) FROM tab2 WHERE + ( + 81 ) IS NOT NULL
----
3

query II rowsort
SELECT ALL col0 AS col2, - ( - + 35 ) AS col2 FROM tab2
----
46
35
64
35
75
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4235
SELECT DISTINCT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + - col1 + col0 AS col1 FROM tab2 AS cor0
----
-56
-59
-90

query II rowsort
SELECT ALL col0, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + 18 AS col2 FROM tab0 AS cor0 WHERE NULL > - col2 + + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT COUNT( * ) col2 FROM tab2 AS cor0 WHERE 37 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) / + + col2 * + - 43
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4240
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 37 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) / + + col2 * + - 43
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab1 cor0
----
144
147
159

query II rowsort
SELECT col0 AS col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4243
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) + - - 61 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4243
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) + - - 61 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * + col2 IN ( col1 + - - col2, + col1, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 - + 87 FROM tab1
----
-19
-28
9

query I rowsort
SELECT ( - col1 ) - col2 AS col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - col2 - + 84 AS col2 FROM tab2
----
-107
-124
-142

query I rowsort
SELECT col2 - - - col2 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 30 * - + 12 IS NULL
----

query I rowsort
SELECT ALL + 86 - + ( + ( + + col1 ) ) FROM tab2 cor0
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT - - COUNT( * ) + + - 22 FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4251
SELECT - - COUNT ( * ) + + - 22 FROM tab2 cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4252
SELECT * FROM tab1 WHERE NOT 36 BETWEEN NULL AND + col2 * - - CAST( NULL AS SIGNED ) * + + col1 + + 81
----

skipif mysql # not compatible
query III rowsort label-4252
SELECT * FROM tab1 WHERE NOT 36 BETWEEN NULL AND + col2 * - - CAST ( NULL AS INTEGER ) * + + col1 + + 81
----

query I rowsort
SELECT - col1 * 17 AS col2 FROM tab0
----
-1377
-17
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT - MAX( + 75 ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-4254
SELECT - MAX ( + 75 ) AS col0 FROM tab0
----
-75

query I rowsort
SELECT ALL + 2 * + col1 FROM tab1 cor0
----
10
28
94

query I rowsort
SELECT DISTINCT - 53 * + col1 * + col2 FROM tab1 AS cor0
----
-15635
-169388
-71232

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT + col2 * + col1 DIV col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT + col2 * + col1 / col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + - col2 * 6 FROM tab0 AS cor0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - COUNT( * ) * 78 AS col2 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) * 78 AS col2 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab2 AS cor0 WHERE NOT - col2 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4261
SELECT ALL - - CAST( NULL AS DECIMAL ) / - 93 - - 7 / + 97 - - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - - CAST ( NULL AS REAL ) / - 93 - - 7 / + 97 - - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4262
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * + + 28 FROM tab2
----
1288
1792
2100

query III rowsort
SELECT * FROM tab1 WHERE NOT - 75 * - - col0 + + col2 IN ( 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4265
SELECT DISTINCT - CAST( + col2 AS DECIMAL ) + + - col1 + - col0 * 52 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - CAST ( + col2 AS REAL ) + + - col1 + - col0 * 52 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab0
----
53
53
53

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 <> + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT DISTINCT + MAX( ALL col2 ) AS col2, - MIN( ALL col1 ) + 42 AS col2 FROM tab1 AS cor0
----
96
37

skipif mysql # not compatible
query II rowsort label-4268
SELECT DISTINCT + MAX ( ALL col2 ) AS col2, - MIN ( ALL col1 ) + 42 AS col2 FROM tab1 AS cor0
----
96
37

query I rowsort
SELECT ALL col1 + - + col0 * + - col0 AS col2 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT DISTINCT 33 + - + col1 * - 54 AS col1 FROM tab0
----
1167
4407
87

query I rowsort
SELECT 17 - + 81 - + col1 FROM tab1 AS cor0
----
-111
-69
-78

query I rowsort
SELECT DISTINCT 83 + + col2 * + col2 FROM tab0 AS cor0
----
183
2292
9884

query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL < NULL AND NOT col0 * col1 / col1 IS NULL
----

query II rowsort
SELECT ALL + 89 + ( ( + + col2 ) ) - - - col1, + 93 AS col0 FROM tab0 AS cor0
----
187
93
55
93
78
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + ( + - COUNT( DISTINCT - 7 ) ) + - 11 col2 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4275
SELECT + ( + - COUNT ( DISTINCT - 7 ) ) + - 11 col2 FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL - SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT col2 * 37 FROM tab2 AS cor0
----
1480
2146
851

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4278
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN - + 84 - + CAST( NULL AS SIGNED ) + + 60 * - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4278
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN - + 84 - + CAST ( NULL AS INTEGER ) + + 60 * - col0 AND NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - - 55
----

query I rowsort
SELECT 34 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT ALL - COUNT( * ) - + MIN( - col2 ) AS col2 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL - COUNT ( * ) - + MIN ( - col2 ) AS col2 FROM tab2
----
55

query I rowsort
SELECT + col1 + col1 + + ( + col2 ) FROM tab1
----
124
162
69

query I rowsort
SELECT DISTINCT col1 + - - 64 FROM tab0
----
145
65
85

query I rowsort
SELECT ALL - 39 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT ALL 83 AS col0, + 72 + + - col2 FROM tab1
----
83
-24
83
13
83
4

query I rowsort
SELECT + ( - col2 ) + col0 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + - col0 + + col2 + - - 98 FROM tab1 WHERE + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4287
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + - col0 + + col2 + - - 98 FROM tab1 WHERE + - col2 IS NULL
----

query I rowsort
SELECT - col1 * + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-158949
-18225
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col0 FROM tab2 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT ALL - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT CAST( NULL AS SIGNED ) * 71 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT CAST ( NULL AS INTEGER ) * 71 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4294
SELECT CAST( - - 73 AS SIGNED ) AS col2, col0 DIV - + col0 + 52 * - - col0 FROM tab0 AS cor0
----
73
4523
73
5043
73
779

skipif mysql # not compatible
query II rowsort label-4294
SELECT CAST ( - - 73 AS INTEGER ) AS col2, col0 / - + col0 + 52 * - - col0 FROM tab0 AS cor0
----
73
4523
73
5043
73
779

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 + col0 * ( + ( + ( + col2 ) ) ) BETWEEN + col0 AND + 36
----

query II rowsort
SELECT - col2, col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 98 + + col0 FROM tab2 AS cor0 WHERE col0 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT + + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT + 30 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4298
SELECT + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT + 30 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col2, + col2, - col2 / - col0, + + col0 )
----

query II rowsort
SELECT ALL + col0 AS col0, ( - - col0 ) FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT ALL + col2, col1 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 12, - col1 col2 FROM tab1
----
12
-14
12
-47
12
-5

query II rowsort
SELECT 70 AS col2, 33 + - 26 + col1 FROM tab1
----
70
12
70
21
70
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4304
SELECT + 90 DIV - col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-4304
SELECT + 90 / - col0 FROM tab0
----
-1
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + col2 col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT - CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT - CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4307
SELECT - 57 DIV - COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-4307
SELECT - 57 / - COUNT ( * ) FROM tab0
----
19

query I rowsort
SELECT + col2 * + - ( 66 ) FROM tab1 AS cor0 WHERE col0 * 17 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4310
SELECT ( + ( - col0 ) ) DIV col2 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-80
0
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT ( + ( - col0 ) ) / col2 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-80
0
0

query I rowsort
SELECT - 87 + + col2 FROM tab2 AS cor0
----
-29
-47
-64

query I rowsort
SELECT DISTINCT + ( - 99 ) FROM tab2, tab2 AS cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 58 * - 0 NOT BETWEEN NULL AND - ( + - col2 )
----

query I rowsort
SELECT DISTINCT col1 + + col0 + - + col0 AS col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT DISTINCT - col1 DIV + col1 + - col2 + + col2 * 96 - - 27 FROM tab0 cor0
----
4491
9431
976

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT - col1 / + col1 + - col2 + + col2 * 96 - - 27 FROM tab0 cor0
----
4491
9431
976

query I rowsort
SELECT + col2 * + 66 * col2 AS col1 FROM tab1 cor0
----
229746
305184
608256

query I rowsort
SELECT ALL - col2 + + - ( - - 19 ) FROM tab2 AS cor0
----
-42
-59
-77

query I rowsort
SELECT + + col0 - + 1 + col2 FROM tab2 AS cor0
----
103
132
68

query I rowsort
SELECT ALL + col2 * + 94 * - 78 + - col1 FROM tab2
----
-168687
-293357
-425323

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT ALL 49 - col0 DIV col1 - + - col1 AS col0 FROM tab1
----
37
60
95

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL 49 - col0 / col1 - + - col1 AS col0 FROM tab1
----
37
60
95

query I rowsort
SELECT ALL col0 + 56 + - 12 AS col0 FROM tab1
----
129
135
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - + + col0 * + col1 col2, + col1 FROM tab1
----
-340
5
-4186
47
-663
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 - ( - col0 ) col2 FROM tab2
----
110
128
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4324
SELECT DISTINCT COUNT( * ) - - CAST( + COUNT( * ) AS SIGNED ) + 53 AS col0 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT COUNT ( * ) - - CAST ( + COUNT ( * ) AS INTEGER ) + 53 AS col0 FROM tab0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT DISTINCT 49 DIV 19 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT 49 / 19 FROM tab1
----
2

query I rowsort
SELECT + col1 + + + 54 * + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( + col0 - col2 )
----
4719
5239
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT col0 / 39 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + + ( - + 62 ) IN ( - 71 / - CAST( + ( + col2 ) AS SIGNED ) * 64 )
----

skipif mysql # not compatible
query I rowsort label-4327
SELECT col0 / 39 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + + ( - + 62 ) IN ( - 71 / - CAST ( + ( + col2 ) AS INTEGER ) * 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT COUNT( * ) * - - 75 FROM tab1 cor0
----
225

skipif mysql # not compatible
query I rowsort label-4328
SELECT COUNT ( * ) * - - 75 FROM tab1 cor0
----
225

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab2 WHERE NOT - - ( - - 87 ) IS NOT NULL
----

query I rowsort
SELECT + + col1 + + col0 - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col0 + - col1 AND NULL
----
-1
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4331
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4331
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT + + ( 55 ) AS col1 FROM tab0 cor0
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT - ( - ( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT - ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT - - MAX( + - 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4335
SELECT - - MAX ( + - 8 ) FROM tab2 AS cor0
----
-8

query II rowsort
SELECT + + col2, - 21 * - col0 * + ( + 55 ) * + 90 + col1 FROM tab1 AS cor0
----
59
8835755
68
9459497
96
5301464

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN col1 AND - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT ( - + COUNT( * ) ) + + 77 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT ( - + COUNT ( * ) ) + + 77 FROM tab1
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 82 * - 57 col0, 62 FROM tab2
----
-4674
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT ALL - SUM( DISTINCT - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL - SUM ( DISTINCT - col0 ) FROM tab1
----
227

query I rowsort
SELECT ALL 40 * + - col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL - 33 * - - COUNT( * ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4342
SELECT ALL - 33 * - - COUNT ( * ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + COUNT( * ) * 12 AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + COUNT ( * ) * 12 AS col0 FROM tab2 AS cor0
----
36

query II rowsort
SELECT ALL - col1 + + 45 AS col0, col1 * + col1 - + 61 AS col2 FROM tab1 AS cor0
----
-2
2148
31
135
40
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4345
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 WHERE - col0 / - - 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT ALL MIN( + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL MIN ( + col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col2 + + + 27 + col1 * + col0 FROM tab2 AS cor0
----
2350
4915
4994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT + col1 / - - 8 + + 68 * - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT + col1 / - - 8 + + 68 * - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT + + col0 + + - 25 * - CAST( NULL AS SIGNED ) * + + col0 / - 64 * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT + + col0 + + - 25 * - CAST ( NULL AS INTEGER ) * + + col0 / - 64 * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 66 NOT IN ( - col1, 54 )
----

query I rowsort
SELECT ALL - 2 * - - col2 * col1 FROM tab1
----
-2688
-590
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * 31 AS col1 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * 31 AS col1 FROM tab1
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4354
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * + col2 < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4354
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * + col2 < ( NULL )
----

query I rowsort
SELECT - + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4356
SELECT ALL COUNT( - CAST( - - col1 AS SIGNED ) ) DIV ( - - 6 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL COUNT ( - CAST ( - - col1 AS INTEGER ) ) / ( - - 6 ) AS col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 24 col0 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT ALL + + COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4359
SELECT ALL + + COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT - COUNT( * ) * - 27 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4360
SELECT - COUNT ( * ) * - 27 FROM tab0
----
81

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT + 66 IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT DISTINCT COUNT( * ) DIV - 20 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT COUNT ( * ) / - 20 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + - col2 * - - 97 AS col1 FROM tab0 AS cor0 WHERE 95 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col0 / 69 * - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 16 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + + MIN( DISTINCT + 73 ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4366
SELECT + + MIN ( DISTINCT + 73 ) FROM tab0 AS cor0
----
73

query I rowsort
SELECT - col2 FROM tab2 WHERE + col2 <> + col1
----
-23
-40
-58

query II rowsort
SELECT 18 AS col1, - col0 * - - col2 * + 89 FROM tab1
----
18
-435744
18
-446335
18
-550732

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT SUM( DISTINCT - 41 ) AS col0 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT SUM ( DISTINCT - 41 ) AS col0 FROM tab2
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT DISTINCT - 50 col1, COUNT( * ) col1 FROM tab2
----
-50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4370
SELECT DISTINCT - 50 col1, COUNT ( * ) col1 FROM tab2
----
-50
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT AVG ( - + ( - CAST( NULL AS SIGNED ) ) ) / + CAST( NULL AS SIGNED ) + + - 27 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT AVG ( - + ( - CAST ( NULL AS INTEGER ) ) ) / + CAST ( NULL AS INTEGER ) + + - 27 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4372
SELECT * FROM tab0 AS cor0 WHERE - CAST( - col2 AS SIGNED ) + 29 > NULL
----

skipif mysql # not compatible
query III rowsort label-4372
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) + 29 > NULL
----

query II rowsort
SELECT + col2 + col1 AS col2, col2 AS col2 FROM tab1 cor0
----
110
96
115
68
64
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 76 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT - SUM( + 65 ) + - 38 AS col2 FROM tab2 AS cor0
----
-233

skipif mysql # not compatible
query I rowsort label-4375
SELECT - SUM ( + 65 ) + - 38 AS col2 FROM tab2 AS cor0
----
-233

query I rowsort
SELECT 36 + + col2 FROM tab2
----
59
76
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4377
SELECT ALL col0 + CAST( - - 76 AS SIGNED ) DIV + 30 AS col2 FROM tab2
----
48
66
77

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL col0 + CAST ( - - 76 AS INTEGER ) / + 30 AS col2 FROM tab2
----
48
66
77

query I rowsort
SELECT DISTINCT + ( - col1 ) - - + col0 AS col2 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT + - ( + 50 ) / col2 + + 35 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + ( - - col1 ) = - col0
----

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + - ( + 50 ) / col2 + + 35 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + ( - - col1 ) = - col0
----

query I rowsort
SELECT DISTINCT col0 * + + col2 + - - col0 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4381
SELECT ALL - 13 * - - 3, - col0 * + 51 - col1 + - CAST( col1 AS SIGNED ) + - 3 col0 FROM tab2 AS cor0
----
-39
-2451
-39
-3421
-39
-3962

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4381
SELECT ALL - 13 * - - 3, - col0 * + 51 - col1 + - CAST ( col1 AS INTEGER ) + - 3 col0 FROM tab2 AS cor0
----
-39
-2451
-39
-3421
-39
-3962

onlyif mysql # DIV for integer division: 
query II rowsort label-4382
SELECT - - col2 DIV + - col2 col2, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
-1
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4382
SELECT - - col2 / + - col2 col2, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
-1
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4383
SELECT + + 4 DIV - col1 col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4383
SELECT + + 4 / - col1 col0 FROM tab0 AS cor0
----
-4
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4384
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) * - 76 + 94 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 76 + 94 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4385
SELECT ALL col1 DIV - 45 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4385
SELECT ALL col1 / - 45 col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 * + - col1 AS col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT 5 * MAX( + + 94 ) FROM tab2
----
470

skipif mysql # not compatible
query I rowsort label-4387
SELECT 5 * MAX ( + + 94 ) FROM tab2
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL - MIN( ALL - - 60 ) * + ( + + 82 ) + + COUNT( * ) col0 FROM tab1
----
-4917

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4388
SELECT ALL - MIN ( ALL - - 60 ) * + ( + + 82 ) + + COUNT ( * ) col0 FROM tab1
----
-4917

query I rowsort
SELECT DISTINCT - col0 * + col0 * col1 FROM tab0
----
-158949
-18225
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL >= 38 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 59 FROM tab1 WHERE NOT col0 IS NULL
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0, + col1 + - 17 * - + col1 col1 FROM tab1 AS cor0
----
51
252
85
90
91
846

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT ALL - 99 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - 99 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-297

query II rowsort
SELECT - 77 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
-77
-23
-77
-40
-77
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT - + ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4396
SELECT - + ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT - col1 * + col1 + CAST( - - 94 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-102
-2115
69

skipif mysql # not compatible
query I rowsort label-4397
SELECT - col1 * + col1 + CAST ( - - 94 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-102
-2115
69

query I rowsort
SELECT col1 + 40 AS col0 FROM tab2
----
107
117
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT + MIN( ALL 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4399
SELECT + MIN ( ALL 12 ) FROM tab1
----
12

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( + col1 - 2 ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + + col2 * 51 col0 FROM tab1
----
3052
3511
4939

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT 15 * - MIN( - 67 ) + 65 FROM tab1
----
1070

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT 15 * - MIN ( - 67 ) + 65 FROM tab1
----
1070

query III rowsort
SELECT ALL * FROM tab0 WHERE - 34 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - ( - ( col1 ) ) * col1 AND ( - col0 )
----

query I rowsort
SELECT ALL + 43 + col1 FROM tab2
----
110
120
94

query I rowsort
SELECT ( - 75 ) AS col1 FROM tab1
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 13 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4408
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + 34 AS SIGNED ) + 95 IN ( CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4408
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + 34 AS INTEGER ) + 95 IN ( CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - 27 * col2 + - 75 FROM tab2
----
-1155
-1641
-696

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 46 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4411
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) ) > ( 21 )
----

skipif mysql # not compatible
query III rowsort label-4411
SELECT DISTINCT * FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > ( 21 )
----

query I rowsort
SELECT 84 - - col1 FROM tab2
----
135
151
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 44 col0 FROM tab1
----
15
24
52

query I rowsort
SELECT DISTINCT 27 * col0 + 33 FROM tab2
----
1275
1761
2058

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN ( NULL ) AND col1 + 93
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 - - col1 NOT BETWEEN + col0 AND + col2 * + col1
----

query I rowsort
SELECT DISTINCT 36 * + 0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 81 AND - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - 26 * MAX( 18 ) AS col0 FROM tab1
----
-468

skipif mysql # not compatible
query I rowsort label-4419
SELECT - 26 * MAX ( 18 ) AS col0 FROM tab1
----
-468

query I rowsort
SELECT + 15 * + col2 AS col0 FROM tab0
----
1485
150
705

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT + COUNT( * ) * - MAX( 76 ) AS col0 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-4422
SELECT + COUNT ( * ) * - MAX ( 76 ) AS col0 FROM tab2
----
-228

query I rowsort
SELECT + 86 FROM tab1 WHERE ( NULL ) IS NULL
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + 42 AND col0
----

query I rowsort
SELECT ALL 61 + - col0 FROM tab1
----
-24
-30
10

query I rowsort
SELECT + 50 * + 70 FROM tab0
----
3500
3500
3500

query I rowsort
SELECT col2 * + col2 FROM tab0 cor0 WHERE - col2 / col1 > + 6 * col0
----

query I rowsort
SELECT 19 * col2 AS col1 FROM tab2 cor0
----
1102
437
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4429
SELECT + COUNT( * ) - CAST( 90 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4429
SELECT + COUNT ( * ) - CAST ( 90 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN 52 + + 40 AND ( col1 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT + SUM( + col2 ) + - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
220

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + SUM ( + col2 ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
220

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 * + 0 <> + ( + 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab0 cor0
----
51
51
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4434
SELECT ALL - + COUNT( CAST( col2 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4434
SELECT ALL - + COUNT ( CAST ( col2 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT - - SUM( - 18 ) AS col1 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT - - SUM ( - 18 ) AS col1 FROM tab2 AS cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL + 45 * 4 AS col2 FROM tab1 AS cor0
----
180
180
180

query I rowsort
SELECT col0 - col1 AS col1 FROM tab1 cor0 WHERE NOT col0 * col1 IN ( col1 / - 74 - 47 )
----
37
44
80

query I rowsort
SELECT DISTINCT - col0 / + col1 + + 70 AS col0 FROM tab1 cor0 WHERE NOT ( - col0 ) NOT IN ( - col0 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT + col1 * 54 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4440
SELECT + col1 * 54 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + 83 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 <= col1
----
87
21
10
97
1
99

query I rowsort
SELECT 56 * col0 FROM tab0 AS cor0
----
4872
5432
840

query I rowsort
SELECT DISTINCT - + ( 24 ) AS col1 FROM tab0 cor0
----
-24

query I rowsort
SELECT col0 * 83 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1245
7221
8051

query I rowsort
SELECT ALL 57 - + 31 * col1 AS col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE NOT ( 33 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - MAX( - - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4448
SELECT - MAX ( - - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT MIN( ALL - 20 ) * 13 FROM tab0
----
-260

skipif mysql # not compatible
query I rowsort label-4449
SELECT MIN ( ALL - 20 ) * 13 FROM tab0
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT - MAX( ( - col2 ) ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4450
SELECT - MAX ( ( - col2 ) ) AS col0 FROM tab2
----
23

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT DISTINCT 47 * + 51 * + col2 AS col2 FROM tab1
----
141423
162996
230112

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT ALL + - 5 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4453
SELECT ALL + - 5 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4454
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - ( + MIN( col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4455
SELECT - ( + MIN ( col2 ) ) FROM tab2
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + col2 col0 FROM tab2
----
60
77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT - 76 + - - COUNT( * ) * 38 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4457
SELECT - 76 + - - COUNT ( * ) * 38 FROM tab0 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + 85 + - SUM( + + col0 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 85 + - SUM ( + + col0 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + MIN( DISTINCT + 51 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + MIN ( DISTINCT + 51 ) AS col2 FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 / - col0 * - col2 AND NULL
----

query I rowsort
SELECT - 72 FROM tab2 AS cor0 WHERE + col2 * - 72 / 93 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) > col0
----
46
51
23
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT DISTINCT col0 * 28 DIV - 81 FROM tab0 AS cor0
----
-30
-33
-5

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT col0 * 28 / - 81 FROM tab0 AS cor0
----
-30
-33
-5

query I rowsort
SELECT DISTINCT - 36 FROM tab2 AS cor0 WHERE ( 43 + - 90 + col0 ) NOT IN ( + col1 )
----
-36

query I rowsort
SELECT ALL + 59 + col2 + + col0 + - ( + 78 ) * col0 FROM tab1
----
-3772
-6427
-6880

query I rowsort
SELECT DISTINCT col0 * + - col2 * - + 95 + - col1 AS col2 FROM tab1
----
465106
476420
587813

query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( + + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT DISTINCT SUM( DISTINCT - col0 ) - - 17 FROM tab0
----
-182

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT SUM ( DISTINCT - col0 ) - - 17 FROM tab0
----
-182

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN - ( + 81 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT COUNT( * ) + + 99 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( * ) + + 99 FROM tab0
----
102

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) IS NULL AND NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT CAST( NULL AS SIGNED ) - 34 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT CAST ( NULL AS INTEGER ) - 34 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 - - col1 FROM tab0
----
-17
-37
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - + col0 * + col1 IN ( + ( ( col0 ) ) + col0 ) )
----

query I rowsort
SELECT ALL - 93 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-4789
-6306
-7225

query I rowsort
SELECT ALL - ( 62 ) FROM tab2 AS cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT ALL - 13, + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-13
9

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL - 13, + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-13
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 30 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST( + - 11 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( + - 11 AS INTEGER ) )
----

query II rowsort
SELECT - col2 AS col1, + col0 + col0 FROM tab1 cor0
----
-59
170
-68
182
-96
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL + + CAST( MAX( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + + CAST ( MAX ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( 8 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT col0 DIV 2 FROM tab0
----
43
48
7

skipif mysql # not compatible
query I rowsort label-4484
SELECT col0 / 2 FROM tab0
----
43
48
7

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + 88 NOT IN ( - + 35 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 8 * + 1 * + col2 * + col2 AS col0 FROM tab0
----
17672
78408
800

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT MAX( col2 ) * 66 FROM tab2
----
3828

skipif mysql # not compatible
query I rowsort label-4487
SELECT MAX ( col2 ) * 66 FROM tab2
----
3828

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col1 NOT IN ( + col1 * ( - 35 ) / - 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT + 80 > 25
----

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT + 80 > 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 * col2 col1 FROM tab1
----
1298
1496
2112

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) < col0
----
51
14
96

query I rowsort
SELECT ALL 90 AS col0 FROM tab2 WHERE ( NOT ( NULL ) <> ( - - col1 ) )
----

query I rowsort
SELECT + + col2 + - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 24 * + ( + - col2 ) + - col1 - col1 + col2 FROM tab0 AS cor0
----
-1243
-2279
-272

query II rowsort
SELECT col0, ( col1 ) AS col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT ALL SUM( - col2 ) + + 14 FROM tab2 AS cor0
----
-107

skipif mysql # not compatible
query I rowsort label-4496
SELECT ALL SUM ( - col2 ) + + 14 FROM tab2 AS cor0
----
-107

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 97, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT + CAST( + + 3 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-4498
SELECT + CAST ( + + 3 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 78 AND + col2
----

query I rowsort
SELECT - 45 * + 43 * + col2 + - - col0 FROM tab1 AS cor0
----
-114080
-131489
-185709

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 47 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( + 60 ) IS NULL
----
10
47
99

query I rowsort
SELECT col0 + + + col2 - + + col0 AS col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT - col1 + + + 76 + + 30 DIV 89 FROM tab1 AS cor0
----
29
62
71

skipif mysql # not compatible
query I rowsort label-4504
SELECT - col1 + + + 76 + + 30 / 89 FROM tab1 AS cor0
----
29
62
71

query I rowsort
SELECT DISTINCT + col2 * + col1 - - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - 44
----
1224
3157
3953

query I rowsort
SELECT DISTINCT - + col1 * - col2 + - - col2 * - col0 FROM tab2 AS cor0
----
-464
115
520

query I rowsort
SELECT DISTINCT + col0 + + + col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT DISTINCT 21 + col1 AS col2 FROM tab2
----
72
88
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 9 NOT BETWEEN + ( + col1 ) AND - col1 + + col0 * 67
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT ( + + 79 ) * - - 83 + - 58 AS col2 FROM tab2
----
6499

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4511
SELECT * FROM tab0 WHERE ( + CAST( + ( col1 ) AS SIGNED ) * 90 ) BETWEEN NULL AND ( col0 + + 19 + col0 / - 99 )
----

skipif mysql # not compatible
query III rowsort label-4511
SELECT * FROM tab0 WHERE ( + CAST ( + ( col1 ) AS INTEGER ) * 90 ) BETWEEN NULL AND ( col0 + + 19 + col0 / - 99 )
----

query I rowsort
SELECT ALL + 97 * col0 AS col0 FROM tab2
----
4462
6208
7275

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 * 71 * col0 + col2 + 75 AND NULL
----

query I rowsort
SELECT ALL col0 - 2 AS col0 FROM tab2
----
44
62
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, - 80 col1 FROM tab0 AS cor0
----
1
-80
21
-80
81
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4516
SELECT + - col0 DIV + 81 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-4516
SELECT + - col0 / + 81 col1 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col0 - + + col0 + - 1 AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - + COUNT( * ) - - + 37 AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4518
SELECT - + COUNT ( * ) - - + 37 AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - + 55 > ( col0 )
----
59
68
96

query I rowsort
SELECT ALL col1 * + 39 FROM tab2
----
1989
2613
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + ( SUM( + - 96 ) ) AS col0 FROM tab1 WHERE NOT - + col0 * col0 * + col2 * - - col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT + ( SUM ( + - 96 ) ) AS col0 FROM tab1 WHERE NOT - + col0 * col0 * + col2 * - - col2 < NULL
----
NULL

query I rowsort
SELECT - 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL - - 22 AS col1 FROM tab0 WHERE col1 <> + 33
----
22
22
22

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT 48 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + - COUNT( * ) + + + 60 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-4526
SELECT + - COUNT ( * ) + + + 60 FROM tab0 AS cor0 WHERE NOT col0 * - - col2 IS NOT NULL
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT + - ( + - MIN( - - 51 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4527
SELECT + - ( + - MIN ( - - 51 ) ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4528
SELECT ALL COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
3
NULL

query I rowsort
SELECT - ( + 39 ) * - 67 FROM tab0
----
2613
2613
2613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) * - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) * - col1 FROM tab0
----
NULL

query I rowsort
SELECT + 93 * - 10 AS col2 FROM tab0
----
-930
-930
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT MAX( ALL + - 46 ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-4532
SELECT MAX ( ALL + - 46 ) AS col1 FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - MAX( 29 ) FROM tab2 WHERE NOT ( - col0 ) <= 11 + - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - MAX ( 29 ) FROM tab2 WHERE NOT ( - col0 ) <= 11 + - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT SUM( ALL + col1 ) * + MIN( 48 ) + COUNT( DISTINCT 75 ) FROM tab0
----
4945

skipif mysql # not compatible
query I rowsort label-4534
SELECT SUM ( ALL + col1 ) * + MIN ( 48 ) + COUNT ( DISTINCT 75 ) FROM tab0
----
4945

query I rowsort
SELECT ALL + col1 * - 60 AS col2 FROM tab0 AS cor0
----
-1260
-4860
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4536
SELECT + 91 + + 91 col0, + CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
182
51
182
85
182
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4536
SELECT + 91 + + 91 col0, + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
182
51
182
85
182
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 24 col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col1 + 95 + - + 78 * - col0 FROM tab1
----
4059
6720
7146

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT + COUNT( ALL + 13 ) col2 FROM tab0 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-4539
SELECT DISTINCT + COUNT ( ALL + 13 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - - 45 AS col0 FROM tab2 AS cor0
----
45
45
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + - 85 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL + - MIN( ALL - col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + - MIN ( ALL - col2 ) FROM tab0 cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT + + COUNT( DISTINCT + 61 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + + COUNT ( DISTINCT + 61 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + 75 * - + 24 / 73 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - ( col1 ) col2, + col1 AS col1 FROM tab0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT col1 * - 40 * 77 + col1 + + + col1 FROM tab0
----
-249318
-3078
-64638

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + 98 - COUNT( * ) AS col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4547
SELECT + 98 - COUNT ( * ) AS col1 FROM tab0
----
95

query I rowsort
SELECT DISTINCT - 37 - + 37 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT DISTINCT MAX( - - 21 ) - + COUNT( * ) col0 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4549
SELECT DISTINCT MAX ( - - 21 ) - + COUNT ( * ) col0 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4550
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2
----
-6

query I rowsort
SELECT - col2 * + + 13 + + 45 AS col1 FROM tab0
----
-1242
-566
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT DISTINCT - COUNT( DISTINCT - ( + col1 ) ) AS col2 FROM tab1 WHERE NOT - col1 - + 88 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - COUNT ( DISTINCT - ( + col1 ) ) AS col2 FROM tab1 WHERE NOT - col1 - + 88 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + 8 FROM tab0 AS cor0 WHERE ( + col1 ) IN ( - - col0 + 45 + + 51 - col1 * - col2 + + 89 + + - 78 * + - col0 / + col1 * 72 )
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - 43, - 59 / + 74, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT + SUM( ALL - - 5 ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT + SUM ( ALL - - 5 ) FROM tab2 AS cor0
----
15

query II rowsort
SELECT - col2, + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT - + ( - + 9 ) AS col1 FROM tab1 AS cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT MAX( ALL - ( - ( - 89 ) ) ) AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4558
SELECT MAX ( ALL - ( - ( - 89 ) ) ) AS col1 FROM tab2 AS cor0
----
-89

query II rowsort
SELECT + + col0, col0 AS col2 FROM tab2 cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4560
SELECT * FROM tab1 cor0 WHERE NOT 49 < CAST( NULL AS DECIMAL ) * - - col1
----

skipif mysql # not compatible
query III rowsort label-4560
SELECT * FROM tab1 cor0 WHERE NOT 49 < CAST ( NULL AS REAL ) * - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - + 55 col0 FROM tab0
----
-142
-152
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT + COUNT( - 57 ) - 45 FROM tab2 WHERE NOT + + 95 IS NOT NULL
----
-45

skipif mysql # not compatible
query I rowsort label-4562
SELECT + COUNT ( - 57 ) - 45 FROM tab2 WHERE NOT + + 95 IS NOT NULL
----
-45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * + 90 - + col0 + - + col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4565
SELECT - - 42 DIV - + col2 + col2 - + col2 col2, 64 FROM tab0 AS cor0
----
-4
64
0
64
0
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4565
SELECT - - 42 / - + col2 + col2 - + col2 col2, 64 FROM tab0 AS cor0
----
-4
64
0
64
0
64

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT ALL + col2 * + + col2 + - col1 AS col0 FROM tab2 AS cor0 WHERE - ( - - ( 84 ) ) IS NOT NULL
----
1523
3297
478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + 86 AS col0, + col0 col0 FROM tab1 AS cor0
----
100
51
133
91
91
85

query I rowsort
SELECT ALL - + col1 - - + col1 * col0 FROM tab1 cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT ALL col0 + 75 * - 40 FROM tab0
----
-2903
-2913
-2985

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - ( + 22 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL - + MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - + MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT + SUM( - - col2 ) AS col2 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + SUM ( - - col2 ) AS col2 FROM tab2 cor0
----
121

query I rowsort
SELECT - - 65 + + col0 AS col0 FROM tab0 AS cor0
----
152
162
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT + COUNT( * ) * MIN( DISTINCT - - col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4575
SELECT + COUNT ( * ) * MIN ( DISTINCT - - col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - MAX( - col0 ) + + 19 + + - COUNT( * ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4576
SELECT - MAX ( - col0 ) + + 19 + + - COUNT ( * ) FROM tab1 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT - 94 + 94 DIV + col2 AS col2 FROM tab0 AS cor0
----
-85
-92
-94

skipif mysql # not compatible
query I rowsort label-4577
SELECT - 94 + 94 / + col2 AS col2 FROM tab0 AS cor0
----
-85
-92
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) col2 FROM tab2 cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT + 8 + - col0 AS col2 FROM tab1 AS cor0
----
-43
-77
-83

query I rowsort
SELECT ALL 79 + - 78 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ( - - col1 ) FROM tab1 AS cor0 WHERE - col0 BETWEEN + col0 AND ( - - 39 * + - col1 * 23 + col2 + col1 / - + 27 + col0 * - 26 - 7 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT - CAST( + + col0 AS SIGNED ) + col1 AS col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-4582
SELECT - CAST ( + + col0 AS INTEGER ) + col1 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT DISTINCT col2 + - col0 - + 43 FROM tab2
----
-60
-66
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4, ( col0 ) col0 FROM tab2
----
4
46
4
64
4
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL - COUNT( * ) + - + 10 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - COUNT ( * ) + - + 10 FROM tab1
----
-13

query II rowsort
SELECT ALL 78 AS col1, 12 * - col1 - col0 FROM tab2
----
78
-658
78
-879
78
-988

query I rowsort
SELECT + 30 * + col0 + - col1 AS col1 FROM tab2 cor0
----
1329
1843
2183

query I rowsort
SELECT DISTINCT + col2 * - 77 AS col1 FROM tab0 AS cor0
----
-3619
-7623
-770

query II rowsort
SELECT DISTINCT + - col2 * 15 AS col2, 96 FROM tab0 cor0
----
-1485
96
-150
96
-705
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT DISTINCT + MIN( col0 ) * - CAST( - 34 AS SIGNED ) FROM tab1 AS cor0
----
1734

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT + MIN ( col0 ) * - CAST ( - 34 AS INTEGER ) FROM tab1 AS cor0
----
1734

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT col0 / - 82 * - - col0 + + col1 + CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT col0 / - 82 * - - col0 + + col1 + CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 * - col0 + col2 FROM tab1 cor0
----
402
569
614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4593
SELECT ALL - - CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - - CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT SUM( ALL 29 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT SUM ( ALL 29 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= + - col1
----
NULL

query I rowsort
SELECT ALL - col0 * col2 + col2 FROM tab2 cor0
----
-1035
-2520
-4292

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= 21
----

query II rowsort
SELECT - col2 + - ( col1 ) * + 43 / + col2, - col0 - - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT COUNT( * ) * - + 30 * - - MIN( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
8640

skipif mysql # not compatible
query I rowsort label-4598
SELECT COUNT ( * ) * - + 30 * - - MIN ( DISTINCT - col2 ) AS col0 FROM tab1 cor0
----
8640

query I rowsort
SELECT 17 * + - col1 AS col1 FROM tab2
----
-1139
-1309
-867

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4600
SELECT * FROM tab0 WHERE ( - CAST( NULL AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4600
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS REAL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4601
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4601
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + - col2 * + col0 - 23 + - - col2 + + 60 * + col2 - - 60 IS NULL
----

query II rowsort
SELECT - col1 AS col0, - ( - ( col1 ) ) AS col0 FROM tab1
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1081
2600
4408

query I rowsort
SELECT ALL - ( - 60 ) * + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3060
4020
4620

query I rowsort
SELECT DISTINCT col0 * - col0 + - col0 AS col0 FROM tab2
----
-2162
-4160
-5700

query I rowsort
SELECT DISTINCT 64 + 54 AS col2 FROM tab1
----
118

query I rowsort
SELECT ALL 5 - col2 FROM tab0
----
-42
-5
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4610
SELECT ALL + SUM( DISTINCT - 15 ) - - + 19 * - + 4 * 64 col1, - 1 AS col0 FROM tab2
----
-4879
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4610
SELECT ALL + SUM ( DISTINCT - 15 ) - - + 19 * - + 4 * 64 col1, - 1 AS col0 FROM tab2
----
-4879
-1

query I rowsort
SELECT + + col0 * + - 32 AS col0 FROM tab1 AS cor0
----
-1632
-2720
-2912

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * - 14 >= + col1 * col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT + COUNT( * ) - - 36 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4614
SELECT + COUNT ( * ) - - 36 FROM tab1 AS cor0
----
39

query I rowsort
SELECT - 18 * + col2 FROM tab2 AS cor0 WHERE + 37 BETWEEN - - col1 AND col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 <> NULL
----

query I rowsort
SELECT ALL 20 AS col2 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( ( col2 * - col0 + + col0 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE - 69 IS NOT NULL OR ( NOT 88 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4620
SELECT - COUNT( * ) FROM tab1 WHERE NULL >= NULL OR col2 < CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4620
SELECT - COUNT ( * ) FROM tab1 WHERE NULL >= NULL OR col2 < CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + - col0 * + 9 FROM tab0 WHERE NOT col2 IS NULL
----
-135
-783
-873

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( - + col1 ) >= 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + SUM( col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + SUM ( col1 ) FROM tab2 cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT + - COUNT( ALL + 90 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + - COUNT ( ALL + 90 ) AS col0 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + col2, 76 FROM tab1
----
59
76
68
76
96
76

query I rowsort
SELECT - 16 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT COUNT( - col2 ) * - COUNT( * ) FROM tab2 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-4628
SELECT COUNT ( - col2 ) * - COUNT ( * ) FROM tab2 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT + ( + - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT ALL 15 + - + 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # aggregate syntax: 
query II rowsort label-4631
SELECT 96, COUNT( * ) AS col1 FROM tab0 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-4631
SELECT 96, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
96
3

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4633
SELECT + COUNT( * ) DIV + + 18 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COUNT ( * ) / + + 18 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - 95 * col2 / + col1 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT MIN( ALL + - 2 ) col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT MIN ( ALL + - 2 ) col2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ALL 67 + + col2 FROM tab0 AS cor0
----
114
166
77

query II rowsort
SELECT 66 AS col0, - 99 AS col0 FROM tab1 AS cor0
----
66
-99
66
-99
66
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT + CAST( NULL AS SIGNED ) / + + 30 + - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT + CAST ( NULL AS INTEGER ) / + + 30 + - + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT - COUNT( ALL + col1 ) + COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - COUNT ( ALL + col1 ) + COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT ALL ( MIN( DISTINCT - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL ( MIN ( DISTINCT - col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT + 49 * + + col1 * col1 + - - col0 AS col0 FROM tab1
----
108332
1310
9655

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 FROM tab1
----
-420
-4230
-700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * + col2 - col2 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3953
4556
6432

query I rowsort
SELECT DISTINCT - 70 * ( - col0 ) FROM tab1 AS cor0
----
3570
5950
6370

query I rowsort
SELECT DISTINCT + - col1 + - ( col1 ) * 84 AS col0 FROM tab2 AS cor0
----
-4335
-5695
-6545

query I rowsort
SELECT - ( - + 37 ) FROM tab2 AS cor0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4647
SELECT ALL + - 47 + + - 71 DIV + col2 FROM tab1 AS cor0
----
-47
-48
-48

skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + - 47 + + - 71 / + col2 FROM tab1 AS cor0
----
-47
-48
-48

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 - + 30 + + - col2 AS col2, col0 + - col1 + + - col2 FROM tab1
----
-112
-59
-51
-24
-84
21

query I rowsort
SELECT col2 * + ( col1 ) - - + col2 AS col1 FROM tab0
----
198
220
3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 68 col1 FROM tab0
----
-53
19
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT CAST( NULL AS SIGNED ) + - ( - col0 ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT CAST ( NULL AS INTEGER ) + - ( - col0 ) * col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT + COUNT( * ) + 77 - - 93 AS col0 FROM tab0 AS cor0
----
173

skipif mysql # not compatible
query I rowsort label-4654
SELECT + COUNT ( * ) + 77 - - 93 AS col0 FROM tab0 AS cor0
----
173

query I rowsort
SELECT - + 70 + + col1 AS col2 FROM tab0 AS cor0
----
-49
-69
11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= - col0 + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4657
SELECT DISTINCT + + col2 DIV - col2 col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4657
SELECT DISTINCT + + col2 / - col2 col2 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - - ( + + 35 ) col2, 83 AS col2 FROM tab1 AS cor0
----
1645
83
175
83
490
83

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT ALL - + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL - + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 39 * col0 + + col2 FROM tab0 AS cor0
----
3403
3882
632

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * - + col1 IS NULL
----
117
125
74

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT col1 DIV ( col0 ) col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4666
SELECT col1 / ( col0 ) col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + 51 ) AS col2 FROM tab1
----
51
51
51

query I rowsort
SELECT - 64 + - col2 - 83 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-170
-187
-205

onlyif mysql # aggregate syntax: 
query II rowsort label-4669
SELECT ( + + MIN( DISTINCT - + 1 ) ) AS col1, - ( - MIN( ALL - col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-75

skipif mysql # not compatible
query II rowsort label-4669
SELECT ( + + MIN ( DISTINCT - + 1 ) ) AS col1, - ( - MIN ( ALL - col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-75

query I rowsort
SELECT - col0 * - col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 28 + - col1 FROM tab0
----
-53
27
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + - 51 col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 * + + col2 - - + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) FROM tab2 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 + col1 col0 FROM tab1 cor0
----
111
69
78

query I rowsort
SELECT + 2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT ALL - COUNT( * ) + 98 + COUNT( * ) col2 FROM tab0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT ALL - COUNT ( * ) + 98 + COUNT ( * ) col2 FROM tab0
----
98

query II rowsort
SELECT - col1, col0 + 0 AS col1 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 59 <> - + col2
----

query I rowsort
SELECT ALL 35 AS col1 FROM tab0 WHERE NOT - col1 >= col2
----
35
35
35

query I rowsort
SELECT ALL - col2 - - 33 AS col0 FROM tab1
----
-26
-35
-63

query I rowsort
SELECT + - col0 FROM tab2 WHERE NULL BETWEEN + ( 17 ) AND NULL
----

query I rowsort
SELECT ALL ( 75 ) * - ( col1 ) FROM tab0
----
-1575
-6075
-75

query I rowsort
SELECT + 87 - + col2 FROM tab1
----
-9
19
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT DISTINCT 27 * 30 * + col1 DIV col1, ( - + col2 ) AS col2 FROM tab0
----
810
-10
810
-47
810
-99

skipif mysql # not compatible
query II rowsort label-4685
SELECT DISTINCT 27 * 30 * + col1 / col1, ( - + col2 ) AS col2 FROM tab0
----
810
-10
810
-47
810
-99

query III rowsort
SELECT * FROM tab2 WHERE col0 * - 25 NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - 86 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 88 + - + col2 FROM tab2 AS cor0
----
-111
-128
-146

query I rowsort
SELECT - 82 + + + col2 * + col0 AS col1 FROM tab2 cor0
----
2478
4268
976

query II rowsort
SELECT DISTINCT - + col2 + - col0 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-104
40
-133
58
-69
23

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE NULL >= - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col2 <= - 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4693
SELECT DISTINCT - - 20 DIV - - col0 - - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - - 20 / - - col0 - - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT 44 + - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ( col0 ), 53 FROM tab1 AS cor0
----
51
53
85
53
91
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4696
SELECT - SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col0, COUNT( DISTINCT - col2 ) * 20 FROM tab0 AS cor0
----
NULL
60

skipif mysql # not compatible
query II rowsort label-4696
SELECT - SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( DISTINCT - col2 ) * 20 FROM tab0 AS cor0
----
NULL
60

query I rowsort
SELECT + 24 * + col2 FROM tab1
----
1416
1632
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4698
SELECT - COUNT( * ) DIV + + SUM( ALL + CAST( + 93 AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4698
SELECT - COUNT ( * ) / + + SUM ( ALL + CAST ( + 93 AS INTEGER ) ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + + col1 / + col0 >= - 52 * + + 77 - + col0 + + - 1 * + col0
----
3

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + + col1 / + col0 >= - 52 * + + 77 - + col0 + + - 1 * + col0
----
3

query I rowsort
SELECT - col2 * - ( - col0 ) + - 37 * - col2 + 78 + - - col0 * - col1 + + col2 + ( + col2 ) AS col0 FROM tab0 WHERE NOT - 48 BETWEEN NULL AND 54 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL COUNT( - 73 ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4701
SELECT ALL COUNT ( - 73 ) col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN col1 + + - col0 * col2 AND - 94 / - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 97 * - - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col0 FROM tab2 cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 25 + + ( + 56 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col2 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT DISTINCT - - MIN( ALL 22 ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
22
3

skipif mysql # not compatible
query II rowsort label-4707
SELECT DISTINCT - - MIN ( ALL 22 ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
22
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT ALL - COUNT( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 19 + - - 65 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT col0 + - 48 AS col0 FROM tab0 AS cor0
----
-33
39
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4711
SELECT - + 78 DIV + col1 + col1 AS col0 FROM tab1 AS cor0
----
-10
46
9

skipif mysql # not compatible
query I rowsort label-4711
SELECT - + 78 / + col1 + col1 AS col0 FROM tab1 AS cor0
----
-10
46
9

query I rowsort
SELECT - 49 + - col1 - - + 37 FROM tab0
----
-13
-33
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT + 97 + + MAX( ALL 84 ) AS col1 FROM tab1
----
181

skipif mysql # not compatible
query I rowsort label-4713
SELECT + 97 + + MAX ( ALL 84 ) AS col1 FROM tab1
----
181

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( 93, + 94 )
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE - 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4716
SELECT - col0 DIV + ( - col0 ) AS col0, - 4 FROM tab1 AS cor0
----
1
-4
1
-4
1
-4

skipif mysql # not compatible
query II rowsort label-4716
SELECT - col0 / + ( - col0 ) AS col0, - 4 FROM tab1 AS cor0
----
1
-4
1
-4
1
-4

query I rowsort
SELECT - 58 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-58
-58
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT col2 DIV ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4718
SELECT col2 / ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 21 + col0 AS col1 FROM tab2
----
67
85
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT + + COUNT( * ) * 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
207

skipif mysql # not compatible
query I rowsort label-4720
SELECT + + COUNT ( * ) * 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-4721
SELECT ALL + - 11 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-11
3

skipif mysql # not compatible
query II rowsort label-4721
SELECT ALL + - 11 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-11
3

query I rowsort
SELECT + + 1 * col2 * - col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, + 29 * - 43 col0 FROM tab0 AS cor0
----
10
-1247
47
-1247
99
-1247

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL + MIN( + 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + MIN ( + 72 ) FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4725
SELECT + - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) BETWEEN col1 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - ( + 30 ) ) * - col0 + + - col2 AS col0 FROM tab0 AS cor0
----
2600
2811
403

query II rowsort
SELECT ALL + col2, col2 * col0 AS col0 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

query I rowsort
SELECT DISTINCT col0 * - col1 + - - col1 + col2 FROM tab0 cor0
----
-1087
-1796
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = col1 * + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4731
SELECT ALL COUNT( * ) DIV COUNT( * ) DIV COUNT( * ), 18 AS col1 FROM tab1
----
0
18

skipif mysql # not compatible
query II rowsort label-4731
SELECT ALL COUNT ( * ) / COUNT ( * ) / COUNT ( * ), 18 AS col1 FROM tab1
----
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT + ( + + CAST( 31 AS SIGNED ) ) FROM tab2
----
31
31
31

skipif mysql # not compatible
query I rowsort label-4732
SELECT + ( + + CAST ( 31 AS INTEGER ) ) FROM tab2
----
31
31
31

query I rowsort
SELECT 18 * - 81 AS col2 FROM tab0
----
-1458
-1458
-1458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT ALL - + col0 AS col1 FROM tab2 WHERE CAST( col0 AS SIGNED ) / col0 / + - col0 - - + col2 > col2
----

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - + col0 AS col1 FROM tab2 WHERE CAST ( col0 AS INTEGER ) / col0 / + - col0 - - + col2 > col2
----

query I rowsort
SELECT DISTINCT 99 * + col0 + - 52 FROM tab0 AS cor0
----
1433
8561
9551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + ( - 32 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT ALL 28 DIV - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4738
SELECT ALL 28 / - + COUNT ( * ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT ( + - 71 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 / + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4740
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 / + - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4741
SELECT + - CAST( - - col0 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4741
SELECT + - CAST ( - - col0 AS INTEGER ) / col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - 98 * - col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4743
SELECT CAST( - 0 AS SIGNED ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT CAST ( - 0 AS INTEGER ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - 14 ) * - + col0 - 54 * col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - - col1 + + col1 AS col2 FROM tab2
----
148
209
218

query I rowsort
SELECT + col1 + - col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4747
SELECT 94 * + + COUNT( * ) * MAX( ALL + + col1 ) - + 32 AS col2, + 43 AS col1 FROM tab0
----
22810
43

skipif mysql # not compatible
query II rowsort label-4747
SELECT 94 * + + COUNT ( * ) * MAX ( ALL + + col1 ) - + 32 AS col2, + 43 AS col1 FROM tab0
----
22810
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) - - - COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) - - - COUNT ( * ) AS col0 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT COUNT( * ) - - 79 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-4749
SELECT COUNT ( * ) - - 79 FROM tab1
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT DISTINCT + col2 * + - col0 * - - col0 - - - CAST( NULL AS SIGNED ) + + + col1 - + + 35 / - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT + col2 * + - col0 * - - col0 - - - CAST ( NULL AS INTEGER ) + + + col1 - + + 35 / - col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT + + SUM( DISTINCT ( + 74 ) ) AS col0 FROM tab1 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + + SUM ( DISTINCT ( + 74 ) ) AS col0 FROM tab1 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT MAX( ALL + 81 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4752
SELECT MAX ( ALL + 81 ) AS col0 FROM tab0
----
81

query I rowsort
SELECT + 2 AS col1 FROM tab0 WHERE NOT + + col2 * col2 * - 12 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL - MAX( DISTINCT col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - MAX ( DISTINCT col0 ) FROM tab2 cor0
----
-75

query II rowsort
SELECT - 66, col0 + - 82 AS col2 FROM tab0 AS cor0
----
-66
-67
-66
15
-66
5

query I rowsort
SELECT ALL + 25 * - + 21 + + + col2 AS col1 FROM tab0 AS cor0
----
-426
-478
-515

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL MIN( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4758
SELECT ALL MIN ( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL - COUNT( * ) * SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - COUNT ( * ) * SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
363

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 20 - 74 IN ( col0, - col2 / - + 32, + 23 - - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT - ( 6 ) * + MIN( DISTINCT ( + - col0 ) ) + + MAX( - 68 ) AS col1 FROM tab2 AS cor0
----
382

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - ( 6 ) * + MIN ( DISTINCT ( + - col0 ) ) + + MAX ( - 68 ) AS col1 FROM tab2 AS cor0
----
382

onlyif mysql # aggregate syntax: 
query II rowsort label-4762
SELECT - COUNT( * ) AS col1, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4762
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT - COUNT( + - col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4763
SELECT - COUNT ( + - col0 ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4764
SELECT col0 DIV 40 * + + col0 AS col1 FROM tab0
----
0
174
194

skipif mysql # not compatible
query I rowsort label-4764
SELECT col0 / 40 * + + col0 AS col1 FROM tab0
----
0
174
194

onlyif mysql # DIV for integer division: 
query I rowsort label-4765
SELECT DISTINCT 52 DIV + col1 FROM tab0
----
0
2
52

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT 52 / + col1 FROM tab0
----
0
2
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT COUNT( * ) col2 FROM tab2 WHERE NOT ( col1 / 4 IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4766
SELECT COUNT ( * ) col2 FROM tab2 WHERE NOT ( col1 / 4 IS NOT NULL )
----
0

query I rowsort
SELECT ALL ( + ( + col1 ) ) FROM tab0
----
1
21
81

query I rowsort
SELECT ALL - ( + 92 ) AS col2 FROM tab2 WHERE NOT 58 IS NULL
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT 37 * + COUNT( DISTINCT 2 ) AS col1 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT 37 * + COUNT ( DISTINCT 2 ) AS col1 FROM tab0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4770
SELECT + col1 DIV col0 + + - col0 FROM tab0
----
-10
-87
-97

skipif mysql # not compatible
query I rowsort label-4770
SELECT + col1 / col0 + + - col0 FROM tab0
----
-10
-87
-97

query I rowsort
SELECT DISTINCT - 32 * - + col1 + - 28 AS col1 FROM tab1 AS cor0
----
132
1476
420

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) BETWEEN - 2 AND col0 * col1 / + - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT + MIN( DISTINCT - 96 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4773
SELECT + MIN ( DISTINCT - 96 ) AS col0 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 41 col0 FROM tab2 AS cor0
----
23
41
40
41
58
41

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col0 * + col0 > + 85 + - + col0 * ( 51 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 + - 58 AS col1 FROM tab1 AS cor0
----
-7
27
33

query I rowsort
SELECT + col2 * 96 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1 * + col0
----

query I rowsort
SELECT - col2 * + + col2 * col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-102400
-24334
-252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4781
SELECT ALL + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL + COUNT( * ) * - 41 + SUM( - col1 ) col1 FROM tab1 AS cor0
----
-189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4782
SELECT ALL + COUNT ( * ) * - 41 + SUM ( - col1 ) col1 FROM tab1 AS cor0
----
-189

query I rowsort
SELECT 13 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-2
-74
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN - - col0 * + ( + - col0 ) / - + col2 AND NULL )
----

query I rowsort
SELECT col1 + col0 + - col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT COUNT( * ) * - 71 + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT COUNT ( * ) * - 71 + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * + col1 FROM tab2 WHERE - ( - - col2 ) + - col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4788
SELECT DISTINCT - 95 - - - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - 95 - - - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT DISTINCT COUNT( * ) - 34 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT COUNT ( * ) - 34 FROM tab1
----
-31

query III rowsort
SELECT * FROM tab0 WHERE 18 = NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) - + 23 AS col2 FROM tab0
----
-13
24
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT 21 / - - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4793
SELECT 21 / - - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + 62 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-62

query I rowsort
SELECT + - 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL - col1 * - col1 * + + 87 AS col2 FROM tab1
----
17052
192183
2175

onlyif mysql # aggregate syntax: 
query II rowsort label-4797
SELECT - SUM( + 38 ), + 62 col2 FROM tab2 cor0
----
-114
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4797
SELECT - SUM ( + 38 ), + 62 col2 FROM tab2 cor0
----
-114
62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * col0 IS NULL
----

query I rowsort
SELECT 62 AS col2 FROM tab2 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT ALL 52 * + + COUNT( * ) AS col2, - 66 * + MIN( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
156
-1518

skipif mysql # not compatible
query II rowsort label-4801
SELECT ALL 52 * + + COUNT ( * ) AS col2, - 66 * + MIN ( DISTINCT col2 ) AS col0 FROM tab2 AS cor0
----
156
-1518

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4802
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4802
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 84 * + 80 * col2 * 72 AS col0, - col2 FROM tab0 AS cor0
----
-22740480
-47
-47900160
-99
-4838400
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-4804
SELECT ( 16 ) DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT ( 16 ) / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 16 * 5 AS col1 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4806
SELECT ALL - COUNT( * ) + - ( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT + col2 * + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - COUNT ( * ) + - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + col2 * + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 25 NOT BETWEEN + col1 AND - + 90 * - - col1 + col2 + - + 41 * + 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 * col1 col0 FROM tab1 cor0
----
2914
310
868

query I rowsort
SELECT ALL + + ( - - ( + col0 ) ) * col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4810
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - AVG ( ALL + col1 ) * ( + - COUNT( * ) ) AS col2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - AVG ( ALL + col1 ) * ( + - COUNT ( * ) ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + - 54 FROM tab1 AS cor0
----
-40
-49
-7

query I rowsort
SELECT ALL col2 * - 91 FROM tab1
----
-5369
-6188
-8736

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 45 <= - - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col0, ( + + col2 ) AS col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT col0 * - col0 - 94 FROM tab0
----
-319
-7663
-9503

query II rowsort
SELECT + col2 AS col1, + col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN + col1 AND col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4818
SELECT ALL - COUNT( * ) + COUNT( CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4818
SELECT ALL - COUNT ( * ) + COUNT ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 92 / + - col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4820
SELECT DISTINCT COUNT( col2 ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4820
SELECT DISTINCT COUNT ( col2 ) / + + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4821
SELECT ALL + col1 DIV + ( + col1 ) AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL + col1 / + ( + col1 ) AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 90 + 85 + + 60 AS col0 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT ALL 7 + - COUNT( + - col0 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL 7 + - COUNT ( + - col0 ) AS col2 FROM tab1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT 15 DIV + col2 - col2 * + - 27 + col1 AS col2 FROM tab2
----
1157
1633
672

skipif mysql # not compatible
query I rowsort label-4824
SELECT 15 / + col2 - col2 * + - 27 + col1 AS col2 FROM tab2
----
1157
1633
672

query I rowsort
SELECT ALL 52 - 21 AS col2 FROM tab0
----
31
31
31

query I rowsort
SELECT DISTINCT + ( - ( - - 69 ) ) + - col2 FROM tab0
----
-116
-168
-79

query II rowsort
SELECT ALL + ( - + 13 ), + 60 AS col2 FROM tab2
----
-13
60
-13
60
-13
60

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 93 col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + COUNT( * ) * - MAX( ALL - 28 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4830
SELECT + COUNT ( * ) * - MAX ( ALL - 28 ) AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT + COUNT( DISTINCT + + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT + COUNT ( DISTINCT + + col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 60 ) BETWEEN + 18 AND + + col1
----
15
81
47

query I rowsort
SELECT + col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 0 * - 71 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL + + SUM( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + + SUM ( ALL + + col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + - col0 col1 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4838
SELECT col2 DIV - col2 + + col2 AS col0 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4838
SELECT col2 / - col2 + + col2 AS col0 FROM tab1
----
58
67
95

query I rowsort
SELECT col0 + col1 * 2 FROM tab2
----
148
209
218

query III rowsort
SELECT * FROM tab2 WHERE - 63 - col2 > - - 62 * + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col2 ) * - - col1 AS col0 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL COUNT( * ) * + MAX( DISTINCT col2 ) + 26 + 9 AS col2 FROM tab0 AS cor0
----
332

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT col2 ) + 26 + 9 AS col2 FROM tab0 AS cor0
----
332

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT + COUNT( * ) * - 1 * - 36 FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + COUNT ( * ) * - 1 * - 36 FROM tab2 cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col1 col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT col0 DIV + 32 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4845
SELECT col0 / + 32 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
0
2
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - ( + + col2 ), 39 - + col2 * col1 * + 69 / + + col0, col1 * + 63 + - col1 + col0, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT SUM( DISTINCT + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4847
SELECT SUM ( DISTINCT + col1 ) AS col1 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT DISTINCT ( + CAST( + col1 AS SIGNED ) ) + - 99 AS col0 FROM tab0
----
-18
-78
-98

skipif mysql # not compatible
query I rowsort label-4848
SELECT DISTINCT ( + CAST ( + col1 AS INTEGER ) ) + - 99 AS col0 FROM tab0
----
-18
-78
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 NOT BETWEEN + col2 / + + col1 AND - + col1 )
----

query I rowsort
SELECT DISTINCT + col1 - + + 61 AS col2 FROM tab1 AS cor0
----
-14
-47
-56

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + ( - 55 ) AND - + col2 / - + col1 + - 17
----

query I rowsort
SELECT - - 47 + + 17 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4853
SELECT + 32 DIV - col0 + col0 + - + 27 AS col2 FROM tab0 AS cor0
----
-14
60
70

skipif mysql # not compatible
query I rowsort label-4853
SELECT + 32 / - col0 + col0 + - + 27 AS col2 FROM tab0 AS cor0
----
-14
60
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT - 9 * + + col2 + + col1 DIV col2 FROM tab2 AS cor0
----
-205
-359
-521

skipif mysql # not compatible
query I rowsort label-4854
SELECT - 9 * + + col2 + + col1 / col2 FROM tab2 AS cor0
----
-205
-359
-521

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( * ) * + COUNT( ALL col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) * + COUNT ( ALL col1 ) FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 45 NOT BETWEEN ( + - col1 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4857
SELECT DISTINCT + - col0 / - - 60 / - + CAST( NULL AS SIGNED ) * col1 * col0 AS col2 FROM tab0 WHERE 8 > NULL
----

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + - col0 / - - 60 / - + CAST ( NULL AS INTEGER ) * col1 * col0 AS col2 FROM tab0 WHERE 8 > NULL
----

query I rowsort
SELECT ALL - - col1 / + 29 FROM tab0 WHERE - col0 IN ( - 26, + 94 )
----

query II rowsort
SELECT 91 AS col0, col0 FROM tab0
----
91
15
91
87
91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT SUM( DISTINCT 73 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4860
SELECT SUM ( DISTINCT 73 ) FROM tab0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4861
SELECT ALL + - CAST( 98 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL + - CAST ( 98 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-98
-98
-98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE NOT - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT COUNT( DISTINCT + 61 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT COUNT ( DISTINCT + 61 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4865
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) + - 52 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif mysql # not compatible
query IIIIII rowsort label-4865
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) + - 52 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col2 * + col2 * + + col2 FROM tab2
----
12167
195112
64000

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT ALL 1 + + 6 DIV + 60 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL 1 + + 6 / + 60 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4868
SELECT DISTINCT col2 AS col0, CAST( 66 AS SIGNED ) FROM tab1
----
59
66
68
66
96
66

skipif mysql # not compatible
query II rowsort label-4868
SELECT DISTINCT col2 AS col0, CAST ( 66 AS INTEGER ) FROM tab1
----
59
66
68
66
96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT - COUNT( - col2 ) + + - ( 2 ) AS col2 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - COUNT ( - col2 ) + + - ( 2 ) AS col2 FROM tab2
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL = 93 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4871
SELECT - 39, 19 + + + MAX( DISTINCT + + col0 ) AS col1 FROM tab2
----
-39
94

skipif mysql # not compatible
query II rowsort label-4871
SELECT - 39, 19 + + + MAX ( DISTINCT + + col0 ) AS col1 FROM tab2
----
-39
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 88 * + COUNT( * ) col1 FROM tab1
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4872
SELECT + 88 * + COUNT ( * ) col1 FROM tab1
----
264

query I rowsort
SELECT DISTINCT + col2 + + 37 AS col2 FROM tab2
----
60
77
95

query I rowsort
SELECT ALL col1 * + col2 * - ( col2 ) * - 14 + col1 AS col0 FROM tab2
----
1724877
3155499
377757

query I rowsort
SELECT - - col0 + 20 FROM tab2 WHERE NULL IS NULL
----
66
84
95

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 97 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4877
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) + + 95 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4877
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE + CAST ( - CAST ( NULL AS REAL ) AS REAL ) + + 95 IS NULL
----
-51
-85
-91

query II rowsort
SELECT ALL col1, 25 FROM tab1 AS cor0 WHERE NOT + 57 >= - - col0 + - ( - 70 )
----
14
25
47
25
5
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4879
SELECT col0 DIV - col2 AS col0 FROM tab2 WHERE NOT - col0 = col0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4879
SELECT col0 / - col2 AS col0 FROM tab2 WHERE NOT - col0 = col0
----
-1
-1
-2

query I rowsort
SELECT 23 - col1 AS col0 FROM tab0
----
-58
2
22

query I rowsort
SELECT DISTINCT 50 * col0 AS col0 FROM tab0
----
4350
4850
750

query I rowsort
SELECT 30 * - 52 FROM tab2
----
-1560
-1560
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT COUNT( * ) + + 74 FROM tab1
----
77

skipif mysql # not compatible
query I rowsort label-4883
SELECT COUNT ( * ) + + 74 FROM tab1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT DISTINCT - 94 * SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
17390

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT - 94 * SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
17390

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4885
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT CAST( + ( + ( - col0 ) ) AS DECIMAL ) BETWEEN - col1 + 36 AND NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT CAST ( + ( + ( - col0 ) ) AS REAL ) BETWEEN - col1 + 36 AND NULL
----
59
68
96

query I rowsort
SELECT 35 + 79 AS col0 FROM tab0
----
114
114
114

query I rowsort
SELECT 4 + 43 FROM tab1
----
47
47
47

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 WHERE + col0 NOT BETWEEN ( col0 ) AND ( - col0 )
----
6

skipif mysql # not compatible
query I rowsort label-4889
SELECT COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 WHERE + col0 NOT BETWEEN ( col0 ) AND ( - col0 )
----
6

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + ( col2 ) NOT BETWEEN 9 AND ( - 13 )
----

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT 5 NOT BETWEEN ( + col1 + - col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT + CAST( AVG ( col2 ) AS SIGNED ) AS col1 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4892
SELECT + CAST ( AVG ( col2 ) AS INTEGER ) AS col1 FROM tab1
----
74

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 41 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * + col0 + 26 * + col1 col2 FROM tab2
----
1418
1892
2130

query I rowsort
SELECT DISTINCT 34 + ( 1 ) FROM tab1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT ALL 70 FROM tab2 WHERE NULL > + CAST( NULL AS SIGNED ) * - 79 + 47
----

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL 70 FROM tab2 WHERE NULL > + CAST ( NULL AS INTEGER ) * - 79 + 47
----

query I rowsort
SELECT DISTINCT - col2 * 58 + - col0 AS col0 FROM tab0
----
-2741
-5839
-667

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 71 - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT + COUNT( * ) * 34 AS col1 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + COUNT ( * ) * 34 AS col1 FROM tab1 AS cor0
----
102

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 55 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL MAX( DISTINCT - 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL MAX ( DISTINCT - 25 ) FROM tab2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + col0 + 91 FROM tab0 AS cor0
----
-6
4
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( ( + 32 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - 13 * 7 FROM tab0 AS cor0
----
-44
-81
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL col0 * ( col2 + CAST( - col1 AS SIGNED ) * - col0 ) FROM tab2 AS cor0
----
108974
317952
381225

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL col0 * ( col2 + CAST ( - col1 AS INTEGER ) * - col0 ) FROM tab2 AS cor0
----
108974
317952
381225

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 48 * + ( 88 ) FROM tab1 cor0 WHERE NULL < ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT DISTINCT col0 + - col0 * - CAST( - col0 + + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT col0 + - col0 * - CAST ( - col0 + + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - col2 + 50 AS col2 FROM tab0 cor0
----
-49
3
40

query I rowsort
SELECT - col2 + + 74 AS col2 FROM tab2 cor0
----
16
34
51

query I rowsort
SELECT col0 * col2 + col2 * ( col2 * col0 ) FROM tab0 AS cor0
----
33840
9570
960300

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4918
SELECT DISTINCT + MIN( ( + CAST( - col1 AS SIGNED ) ) ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN 39 AND - col0
----
-47

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT + MIN ( ( + CAST ( - col1 AS INTEGER ) ) ) AS col0 FROM tab1 WHERE NOT col0 BETWEEN 39 AND - col0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + 2 + 15 col0 FROM tab2
----
83

query I rowsort
SELECT ALL col2 + col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 13 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + + 19 * 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT col1 DIV + col2 + 50 FROM tab2
----
51
51
52

skipif mysql # not compatible
query I rowsort label-4923
SELECT col1 / + col2 + 50 FROM tab2
----
51
51
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-4925
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + AVG ( 79 ) col0 FROM tab1 AS cor0 WHERE NOT ( col2 + + col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT col1 - - col1 * - 76 AS col0 FROM tab0 AS cor0
----
-1575
-6075
-75

query I rowsort
SELECT + + col0 - - 84 FROM tab1 AS cor0
----
135
169
175

query I rowsort
SELECT ALL 94 + + + 22 * - 49 FROM tab1 AS cor0
----
-984
-984
-984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 + col2 col2 FROM tab1 AS cor0
----
125
88
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT ALL + col2 * + col2 * ( + 87 ) + + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
302848
402289
801793

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL + col2 * + col2 * ( + 87 ) + + col0 / col0 AS col2 FROM tab1 AS cor0
----
302848
402289
801793

query I rowsort
SELECT - + 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + col1 * col0 IS NULL
----

query I rowsort
SELECT + col1 / col1 FROM tab1 WHERE 9 - - col0 * 46 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, ( + + col1 ) col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT + col1, + ( + 43 ) AS col2 FROM tab2 AS cor0
----
51
43
67
43
77
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 + - col2 * 12 ) OR NOT + col1 / col1 >= 91 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 38, - col1 col0 FROM tab0 AS cor0
----
-38
-1
-38
-21
-38
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * col0 NOT BETWEEN col0 * 33 AND ( ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT ALL + col1 * - col2 * - col0 * + col0 AS col2 FROM tab2 AS cor0
----
12615680
21858750
2482068

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL COUNT( DISTINCT + + col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col1 * - col0 + - 40 FROM tab0 WHERE 10 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT DISTINCT col1 DIV + + 31 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT col1 / + + 31 FROM tab0
----
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT - MIN( DISTINCT + col2 ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4949
SELECT - MIN ( DISTINCT + col2 ) col0 FROM tab2
----
-23

query II rowsort
SELECT - 43 * col1 AS col1, col0 AS col2 FROM tab0
----
-3483
15
-43
97
-903
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4951
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL + - 46 * + + col2 + - 54 - col2 * col1 + - 66 FROM tab1 AS cor0 WHERE - 99 IS NOT NULL
----
-3129
-5880
-6444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT MIN( + CAST( NULL AS SIGNED ) ) + - - ( + + 94 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) + - - ( + + 94 ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE col0 * + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + 47 * - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + COUNT( * ) + + 78 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + COUNT ( * ) + + 78 FROM tab2 AS cor0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4957
SELECT DISTINCT col0 + - ( + + col0 ) * + 34 AS col2, ( + CAST( NULL AS DECIMAL ) ) FROM tab1
----
-1683
NULL
-2805
NULL
-3003
NULL

skipif mysql # not compatible
query II rowsort label-4957
SELECT DISTINCT col0 + - ( + + col0 ) * + 34 AS col2, ( + CAST ( NULL AS REAL ) ) FROM tab1
----
-1683
NULL
-2805
NULL
-3003
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4958
SELECT ALL 48 + SUM( CAST( + col0 AS SIGNED ) ) FROM tab0
----
247

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL 48 + SUM ( CAST ( + col0 AS INTEGER ) ) FROM tab0
----
247

query I rowsort
SELECT DISTINCT + col2 + - - col2 AS col1 FROM tab1
----
118
136
192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 38 * + 71 * - 44 BETWEEN NULL AND 48 * + col2
----

query I rowsort
SELECT col0 + + ( col2 ) FROM tab0 WHERE + col2 IS NOT NULL
----
196
62
97

query I rowsort
SELECT ALL col0 + - - col2 + - - 70 AS col1 FROM tab2
----
139
174
203

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT COUNT( * ) - - + ( - 62 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4963
SELECT COUNT ( * ) - - + ( - 62 ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL - 22 - - col2 + - - 95 FROM tab1
----
132
141
169

query II rowsort
SELECT DISTINCT - + 89 + col0, 64 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-38
64
-4
64
2
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL + CAST( + + COUNT( * ) AS SIGNED ) * - + 77 AS col1 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + CAST ( + + COUNT ( * ) AS INTEGER ) * - + 77 AS col1 FROM tab1
----
-231

query I rowsort
SELECT col0 + + col1 - + col1 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + MAX( ALL - - 54 ) AS col2 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4968
SELECT + MAX ( ALL - - 54 ) AS col2 FROM tab0
----
54

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab2 WHERE NOT NULL <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab1 cor0
----
-32

query I rowsort
SELECT DISTINCT ( 98 ) FROM tab2 AS cor0 WHERE NOT - 10 * + ( + 74 ) NOT IN ( col0 - + col2 )
----

query I rowsort
SELECT + ( 42 ) * - col2 + + + col1 AS col0 FROM tab0 AS cor0
----
-1893
-399
-4157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT - MIN( + col0 ) DIV - 34 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4974
SELECT - MIN ( + col0 ) / - 34 AS col1 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 45 + + + col1 col2 FROM tab0 AS cor0
----
2196
4456
471

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4976
SELECT CAST( NULL AS SIGNED ) * + col2 * - CAST( NULL AS DECIMAL ) col0, - CAST( NULL AS SIGNED ) + - 1 + - 68 - - col2 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4976
SELECT CAST ( NULL AS INTEGER ) * + col2 * - CAST ( NULL AS REAL ) col0, - CAST ( NULL AS INTEGER ) + - 1 + - 68 - - col2 FROM tab1
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col2 ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT - 97 AS col2, MAX( col2 ) FROM tab2
----
-97
58

skipif mysql # not compatible
query II rowsort label-4979
SELECT - 97 AS col2, MAX ( col2 ) FROM tab2
----
-97
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4980
SELECT + 68 * col1 FROM tab0 WHERE NOT col1 * - col1 + col2 - - col0 BETWEEN + 24 AND + CAST( + col0 AS SIGNED ) * - 53
----
1428
5508
68

skipif mysql # not compatible
query I rowsort label-4980
SELECT + 68 * col1 FROM tab0 WHERE NOT col1 * - col1 + col2 - - col0 BETWEEN + 24 AND + CAST ( + col0 AS INTEGER ) * - 53
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT DISTINCT COUNT( * ), - ( - 92 ) col0 FROM tab0
----
3
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4981
SELECT DISTINCT COUNT ( * ), - ( - 92 ) col0 FROM tab0
----
3
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4982
SELECT ALL + + col0 FROM tab0 WHERE NULL NOT IN ( + CAST( col1 AS DECIMAL ), - 4 )
----

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + + col0 FROM tab0 WHERE NULL NOT IN ( + CAST ( col1 AS REAL ), - 4 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 - + 18 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + + col0 col1 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * + 21 / + - 45 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE - 10 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT ALL 85 + + col1 - + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL 85 + + col1 - + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
85
85
85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + 91
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4991
SELECT DISTINCT - 81 * + 85, - CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0 cor0
----
-6885
3

skipif mysql # not compatible
query II rowsort label-4991
SELECT DISTINCT - 81 * + 85, - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 cor0
----
-6885
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL COUNT( - CAST( + col0 AS SIGNED ) ) * 83 AS col2 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL COUNT ( - CAST ( + col0 AS INTEGER ) ) * 83 AS col2 FROM tab2 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT - + COUNT( * ) + + 54 AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4993
SELECT - + COUNT ( * ) + + 54 AS col0 FROM tab0 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT ( + col0 ) * + col0 + + - CAST( NULL AS SIGNED ) - col1 FROM tab1 cor0 WHERE col0 - - col0 * - - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT ( + col0 ) * + col0 + + - CAST ( NULL AS INTEGER ) - col1 FROM tab1 cor0 WHERE col0 - - col0 * - - col2 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - 34 + col1 AS col0 FROM tab0 AS cor0
----
-13
-33
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4996
SELECT 54 * - MAX( DISTINCT - - col1 ) + COUNT( * ) + + 38, 61 AS col0 FROM tab0 AS cor0
----
-4333
61

skipif mysql # not compatible
query II rowsort label-4996
SELECT 54 * - MAX ( DISTINCT - - col1 ) + COUNT ( * ) + + 38, 61 AS col0 FROM tab0 AS cor0
----
-4333
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT ALL col1 DIV - col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL col1 / - col1 + + - col0 AS col2 FROM tab0 AS cor0
----
-16
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + + COUNT( * ) + MIN( ALL - + 6 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4998
SELECT + + COUNT ( * ) + MIN ( ALL - + 6 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 39 - - 49 FROM tab1
----
88
88
88

query I rowsort
SELECT ALL + 30 + + - col0 FROM tab2
----
-16
-34
-45

query I rowsort
SELECT DISTINCT ( - ( 84 ) ) + - - col1 AS col0 FROM tab2
----
-17
-33
-7

query I rowsort
SELECT ALL col0 - + - col2 + - 56 FROM tab0
----
140
41
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col0 ) = + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT ALL + CAST( NULL AS SIGNED ) - + 81 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL + CAST ( NULL AS INTEGER ) - + 81 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 ) BETWEEN - col2 AND + 12 / - 85 * - col2
----

query II rowsort
SELECT ALL + 55 AS col1, 49 FROM tab2 AS cor0
----
55
49
55
49
55
49

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 19 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - ( 62 ) FROM tab0 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 71, col0 col1 FROM tab1
----
71
51
71
85
71
91

query I rowsort
SELECT DISTINCT 77 * + - 46 FROM tab0
----
-3542

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5012
SELECT + 10 AS col0, 35 / CAST( NULL AS SIGNED ) + - + 88 + - - col0 + col2 * + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
10
NULL
10
NULL
10
NULL

skipif mysql # not compatible
query II rowsort label-5012
SELECT + 10 AS col0, 35 / CAST ( NULL AS INTEGER ) + - + 88 + - - col0 + col2 * + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
10
NULL
10
NULL
10
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab1 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5015
SELECT ALL - - COUNT( ALL - + 92 ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5015
SELECT ALL - - COUNT ( ALL - + 92 ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT - - 7, + col2 * - col2 AS col1 FROM tab2 cor0
----
7
-1600
7
-3364
7
-529

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 56 * + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5018
SELECT DISTINCT + 47 DIV + COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + 47 / + COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL - MAX( 5 ) AS col1 FROM tab2 WHERE NOT + col0 BETWEEN 53 AND 7
----
-5

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - MAX ( 5 ) AS col1 FROM tab2 WHERE NOT + col0 BETWEEN 53 AND 7
----
-5

query I rowsort
SELECT 83 * - - 67 FROM tab1
----
5561
5561
5561

query I rowsort
SELECT ALL ( col0 ) * + 97 AS col1 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT ALL + + 75 * + col0 + + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1140
6612
7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 col0 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT + - col2 / - - 10 * col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT CAST( + 99 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT CAST ( + 99 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL + CAST( 45 AS SIGNED ) + + 81 * - col0 FROM tab0 cor0
----
-1170
-7002
-7812

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + CAST ( 45 AS INTEGER ) + + 81 * - col0 FROM tab0 cor0
----
-1170
-7002
-7812

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT + 76 + COUNT( * ) + 57 AS col0 FROM tab2 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT + 76 + COUNT ( * ) + 57 AS col0 FROM tab2 AS cor0
----
136

query I rowsort
SELECT ALL ( + + 42 ) FROM tab1
----
42
42
42

query I rowsort
SELECT 44 + + col2 AS col2 FROM tab2
----
102
67
84

query I rowsort
SELECT 36 + + - 41 FROM tab2
----
-5
-5
-5

query II rowsort
SELECT col2 AS col1, 63 * + + ( col2 ) * col2 FROM tab0
----
10
6300
47
139167
99
617463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * + 68 col0 FROM tab0 cor0
----
150212
666468
6800

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT ALL - 55 * + ( + COUNT( * ) ) AS col0, MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-165
-91

skipif mysql # not compatible
query II rowsort label-5033
SELECT ALL - 55 * + ( + COUNT ( * ) ) AS col0, MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-165
-91

query I rowsort
SELECT DISTINCT + 75 + col1 - - - col2 FROM tab2 AS cor0
----
103
112
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT - - MAX( + 24 ) AS col0 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT - - MAX ( + 24 ) AS col0 FROM tab0 cor0
----
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 23, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + - col2 col2 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 42 * - + 90 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + col0 + + 72 >= NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - 16 ) )
----

query II rowsort
SELECT ALL 83 - - ( - col2 ) - + ( - col0 ) AS col0, 50 FROM tab2
----
100
50
106
50
107
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 - - 4 col0, - col2 AS col0 FROM tab2
----
45
-23
45
-40
45
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT - 64 DIV - 39 + + + 7 AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - 64 / - 39 + + + 7 AS col0 FROM tab2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT ALL col1 DIV + - col0 + col0 FROM tab2
----
45
63
75

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL col1 / + - col0 + col0 FROM tab2
----
45
63
75

query III rowsort
SELECT * FROM tab1 WHERE + 38 > - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT 68 - 51 * - + COUNT( * ) col0 FROM tab1
----
221

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5046
SELECT DISTINCT 68 - 51 * - + COUNT ( * ) col0 FROM tab1
----
221

query III rowsort
SELECT * FROM tab1 WHERE NULL > 53
----

query I rowsort
SELECT - 69 + + 97 AS col0 FROM tab1
----
28
28
28

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col2 AND + ( - col1 )
----

query I rowsort
SELECT ALL col1 - + + col2 * - + col1 * + - col0 + - col0 - + col1 FROM tab1
----
-25160
-290927
-68595

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > col2 * - col1
----

query II rowsort
SELECT - - 67 * + + col2 AS col0, - col1 * + + col0 * 40 * + col1 AS col1 FROM tab0 AS cor0
----
3149
-3936600
6633
-3880
670
-1534680

query I rowsort
SELECT ALL - + col0 * + 20 * + - col2 FROM tab2 AS cor0
----
21160
51200
87000

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 > + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col2 FROM tab1
----
84
84
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT ALL + COUNT( * ) DIV - 46 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + COUNT ( * ) / - 46 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT * FROM tab1 AS cor0 WHERE NOT 46 + col2 + - ( + + 39 ) + + CAST( NULL AS SIGNED ) + + - col2 / + 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5057
SELECT * FROM tab1 AS cor0 WHERE NOT 46 + col2 + - ( + + 39 ) + + CAST ( NULL AS INTEGER ) + + - col2 / + 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT DISTINCT - + MAX( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * + 87 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT - + MAX ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * + 87 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - col2 * + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 8 * - col1 * - 75 * + col0 * - col0 FROM tab2 AS cor0
----
-189235200
-226125000
-64749600

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT + col0 * col1 + - - col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5063
SELECT + col0 * col1 + - - col2 / - col1 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT + - col0 * + col2 + - ( col1 ) + + + col2 FROM tab1 WHERE NOT + - 79 = col2
----
-4814
-4961
-6167

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT 84 AS col0, - ( + COUNT( * ) ) FROM tab1
----
84
-3

skipif mysql # not compatible
query II rowsort label-5066
SELECT 84 AS col0, - ( + COUNT ( * ) ) FROM tab1
----
84
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT ALL + 14 * 86 * - 15 * + + COUNT( * ), 30 * - ( - - 47 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0
-1410

skipif mysql # not compatible
query II rowsort label-5067
SELECT ALL + 14 * 86 * - 15 * + + COUNT ( * ), 30 * - ( - - 47 ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0
-1410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 93 col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 70, col1 FROM tab0
----
-70
1
-70
21
-70
81

query II rowsort
SELECT ALL - col2 AS col1, - 30 FROM tab2
----
-23
-30
-40
-30
-58
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT + COUNT( ALL + col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + COUNT ( ALL + col1 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5073
SELECT * FROM tab1 AS cor0 WHERE - col0 <= + 60 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5073
SELECT * FROM tab1 AS cor0 WHERE - col0 <= + 60 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT DISTINCT col1 DIV + + 76 + + col2 AS col1 FROM tab2 AS cor0
----
23
41
58

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT col1 / + + 76 + + col2 AS col1 FROM tab2 AS cor0
----
23
41
58

query II rowsort
SELECT col1 AS col2, + 3 * - 60 * 5 AS col1 FROM tab0 AS cor0
----
1
-900
21
-900
81
-900

query I rowsort
SELECT + col0 + - 13 - - col1 AS col1 FROM tab1 cor0
----
125
52
77

query I rowsort
SELECT 91 + 96 + + - col1 FROM tab2 AS cor0
----
110
120
136

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) < ( - col2 )
----

query I rowsort
SELECT - 71 + ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-118
-76
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 5 * - + 94 >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT - - 19 DIV + col1 + 97 + - col1 FROM tab2 AS cor0
----
20
30
46

skipif mysql # not compatible
query I rowsort label-5081
SELECT - - 19 / + col1 + 97 + - col1 FROM tab2 AS cor0
----
20
30
46

query I rowsort
SELECT DISTINCT - col0 + + + 1 AS col2 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ( - COUNT( * ) ) AS col0 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5083
SELECT ( - COUNT ( * ) ) AS col0 FROM tab1, tab2 AS cor0
----
-9

query I rowsort
SELECT ALL col1 - - - col1 + + ( - - 66 ) AS col2 FROM tab0
----
66
66
66

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col2 * + + 28 AND col2
----

query I rowsort
SELECT 99 FROM tab1 WHERE NOT + 59 + + col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT + 25 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, 62 col1 FROM tab1
----
59
62
68
62
96
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5089
SELECT DISTINCT - col1 / + col1 * - 43 * + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT - col1 / + col1 * - 43 * + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT - SUM( DISTINCT - col1 ) col2 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5090
SELECT DISTINCT - SUM ( DISTINCT - col1 ) col2 FROM tab0
----
103

query I rowsort
SELECT 43 * - col1 * - col2 FROM tab0
----
163701
4257
9030

query I rowsort
SELECT + col2 * + - 26 AS col1 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT - ( - + 44 ) AS col0 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5094
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5094
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5095
SELECT DISTINCT - - 33 * - col2 + + + CAST( - + col1 AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-1632
NULL
-3268
NULL
-351
NULL

skipif mysql # not compatible
query II rowsort label-5095
SELECT DISTINCT - - 33 * - col2 + + + CAST ( - + col1 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-1632
NULL
-3268
NULL
-351
NULL

query I rowsort
SELECT 65 * 40 * - col0 AS col0 FROM tab2 AS cor0
----
-119600
-166400
-195000

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT 53 >= - col2
----

query I rowsort
SELECT 0 + col0 AS col0 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 31 <= NULL
----

query I rowsort
SELECT - col0 * - - col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 IN ( - col1, - 25 * col1, - + col2 + col1 )
----

query I rowsort
SELECT ALL 38 + col1 AS col2 FROM tab0
----
119
39
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5104
SELECT DISTINCT 56 + col0 DIV col2 AS col2 FROM tab2
----
57
58

skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT 56 + col0 / col2 AS col2 FROM tab2
----
57
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT ALL SUM( DISTINCT 85 ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL SUM ( DISTINCT 85 ) FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - COUNT( * ) * - 12 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5106
SELECT - COUNT ( * ) * - 12 FROM tab2
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5107
SELECT ALL col1 + + col0 AS col1 FROM tab2 WHERE NOT NULL IN ( col1, 24, - col0, 49, col1, - CAST( NULL AS DECIMAL ) / - 74 )
----

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL col1 + + col0 AS col1 FROM tab2 WHERE NOT NULL IN ( col1, 24, - col0, 49, col1, - CAST ( NULL AS REAL ) / - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT + + 65 * ( - COUNT( * ) ) + - SUM( ALL - 69 ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5108
SELECT + + 65 * ( - COUNT ( * ) ) + - SUM ( ALL - 69 ) AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT 39 + - - col2 - + col0 + + - col2 FROM tab2 AS cor0
----
-25
-36
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT col1 + - col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT col1 + - col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 42 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( - - ( col2 ) ) - 76 AS col2 FROM tab2
----
-18
-36
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5113
SELECT COUNT( * ) DIV - 32 * - COUNT( 18 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( * ) / - 32 * - COUNT ( 18 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL COUNT( * ) - + + COUNT( * ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5114
SELECT ALL COUNT ( * ) - + + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + ( + + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 + + + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 * + + 86 FROM tab0 AS cor0
----
4042
8514
860

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( 5 ) <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 43 / + + col2 FROM tab2 AS cor0 WHERE NOT NULL < 55
----

query I rowsort
SELECT - 35 - - - 35 * col2 FROM tab0 AS cor0
----
-1680
-3500
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT DISTINCT - + COUNT( * ) AS col1, 30 AS col0 FROM tab1 AS cor0
----
-3
30

skipif mysql # not compatible
query II rowsort label-5121
SELECT DISTINCT - + COUNT ( * ) AS col1, 30 AS col0 FROM tab1 AS cor0
----
-3
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + 84 AS col2 FROM tab0 cor0
----
15
84
87
84
97
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5123
SELECT - 28 DIV - col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5123
SELECT - 28 / - col2 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT ALL MIN( ALL + 1 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL MIN ( ALL + 1 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 29 * - + col0 * col2 * - col0 AS col0 FROM tab2
----
1411372
4751360
9461250

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5126
SELECT + CAST( + - 61 AS SIGNED ), + col0 AS col2 FROM tab2
----
-61
46
-61
64
-61
75

skipif mysql # not compatible
query II rowsort label-5126
SELECT + CAST ( + - 61 AS INTEGER ), + col0 AS col2 FROM tab2
----
-61
46
-61
64
-61
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT - col1 DIV ( + + col0 ) AS col2 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5127
SELECT - col1 / ( + + col0 ) AS col2 FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - - MIN( - 24 ) - 14 col2 FROM tab2 WHERE + + col2 IS NOT NULL
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5128
SELECT ALL - - MIN ( - 24 ) - 14 col2 FROM tab2 WHERE + + col2 IS NOT NULL
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT + CAST( ( col1 ) AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5129
SELECT + CAST ( ( col1 ) AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5130
SELECT DISTINCT - col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT DISTINCT - col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col0 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5132
SELECT - SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5133
SELECT DISTINCT - 73 * COUNT( DISTINCT - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - 73 * COUNT ( DISTINCT - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab1 cor0
----
0

query I rowsort
SELECT - col1 + + 11 + - col2 * + col2 FROM tab2 AS cor0
----
-1666
-3420
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + 43 + - COUNT( * ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5135
SELECT + 43 + - COUNT ( * ) FROM tab0 AS cor0
----
40

query I rowsort
SELECT + col0 * + col2 + + - col2 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT - - col2 * + col2 + + col1 - - col1 FROM tab0 AS cor0
----
142
2371
9803

onlyif mysql # aggregate syntax: 
query II rowsort label-5138
SELECT DISTINCT 20 + - COUNT( * ) AS col0, ( - 49 ) * 53 AS col0 FROM tab1
----
17
-2597

skipif mysql # not compatible
query II rowsort label-5138
SELECT DISTINCT 20 + - COUNT ( * ) AS col0, ( - 49 ) * 53 AS col0 FROM tab1
----
17
-2597

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + MIN( + 48 ) * + - COUNT( * ) col0 FROM tab1
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5139
SELECT DISTINCT + MIN ( + 48 ) * + - COUNT ( * ) col0 FROM tab1
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5140
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5140
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 75 + col1 AS col0 FROM tab0 AS cor0 WHERE + col1 < - ( + col2 ) * col2 / + ( - col2 )
----
76

query II rowsort
SELECT + + 5 - + - col1, col1 FROM tab2 AS cor0
----
56
51
72
67
82
77

query I rowsort
SELECT ALL - - col1 - 54 FROM tab2 cor0
----
-3
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT COUNT( * ) + + - 46 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5144
SELECT COUNT ( * ) + + - 46 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT DISTINCT col1 * + - 2 * 45 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 * + 44 AS col0 FROM tab0 cor0
----
3564
44
924

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 * col0 <= + - 51 / - - col0 + - + col1 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 21 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col0 ) col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5152
SELECT DISTINCT col1 AS col0, + 0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5152
SELECT DISTINCT col1 AS col0, + 0 + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - MAX( - 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-5153
SELECT - MAX ( - 50 ) FROM tab0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT ALL ( COUNT( + - 66 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL ( COUNT ( + - 66 ) ) FROM tab1
----
3

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT NULL = NULL
----

query II rowsort
SELECT col2 AS col0, col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - col1 * - + 97 * 16 FROM tab2 AS cor0
----
103984
119504
79152

query II rowsort
SELECT DISTINCT ( col1 ) AS col2, col0 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + + - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5161
SELECT ALL - + COUNT( * ) * - ( - CAST( NULL AS SIGNED ) ) + + + 22 + COUNT( * ) / + 41 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL - + COUNT ( * ) * - ( - CAST ( NULL AS INTEGER ) ) + + + 22 + COUNT ( * ) / + 41 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT - COUNT( ALL - + ( + col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5163
SELECT - COUNT ( ALL - + ( + col2 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + ( 93 ) * 88 AS col2 FROM tab0 AS cor0
----
8184
8184
8184

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT + - col0 * + col0 * col2 AS col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

query II rowsort
SELECT ALL - col0 * + col1, col0 AS col0 FROM tab2 cor0
----
-2346
46
-4928
64
-5025
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5168
SELECT DISTINCT - 8 DIV - + 22 + + col1 * - col2 + - col1 FROM tab0 AS cor0
----
-100
-231
-3888

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - 8 / - + 22 + + col1 * - col2 + - col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT ALL col1 + + 92 - col2 FROM tab0
----
-6
103
126

query II rowsort
SELECT 59 AS col1, - col2 FROM tab2
----
59
-23
59
-40
59
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5171
SELECT + CAST( NULL AS SIGNED ) col1, COUNT( * ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5171
SELECT + CAST ( NULL AS INTEGER ) col1, COUNT ( * ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT + col2 * + + 46 - - col1 AS col1 FROM tab2
----
1109
1917
2735

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT - col1 - + col2 DIV + 25 FROM tab0
----
-21
-4
-82

skipif mysql # not compatible
query I rowsort label-5173
SELECT - col1 - + col2 / + 25 FROM tab0
----
-21
-4
-82

query I rowsort
SELECT DISTINCT + 74 * + col2 FROM tab0
----
3478
7326
740

query III rowsort
SELECT * FROM tab0 WHERE - + 31 - + col0 >= - col0 * - col1 + + col2
----

query I rowsort
SELECT - 77 + + - 21 FROM tab1
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5177
SELECT col0 + - - col0 + + ( - CAST( NULL AS SIGNED ) ) AS col1, col2 - + col2 - + col0 + - ( + - 0 ) AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5177
SELECT col0 + - - col0 + + ( - CAST ( NULL AS INTEGER ) ) AS col1, col2 - + col2 - + col0 + - ( + - 0 ) AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 21 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT - - 51 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
51

query I rowsort
SELECT - 49 * + col0 AS col2 FROM tab1
----
-2499
-4165
-4459

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT + 13 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5181
SELECT + 13 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ALL + + SUM( DISTINCT - 38 ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL + + SUM ( DISTINCT - 38 ) FROM tab1 AS cor0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ( - SUM( ALL col2 ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5183
SELECT ( - SUM ( ALL col2 ) ) AS col2 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT DISTINCT ( - CAST( - 75 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT ( - CAST ( - 75 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5185
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5185
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 42 AS col1 FROM tab1 cor0
----
42
42
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5187
SELECT DISTINCT - SUM( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - SUM ( ALL - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - + col1 - + + 66 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 46 * + col1 + + col2 FROM tab0 AS cor0
----
145
3773
976

query I rowsort
SELECT 28 + - + col1 AS col0 FROM tab0 cor0
----
-53
27
7

query I rowsort
SELECT + col1 * + col1 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT + col1 DIV + 62 + - 80 + 2 DIV + - col2 col2 FROM tab2 AS cor0
----
-79
-79
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT + col1 / + 62 + - 80 + 2 / + - col2 col2 FROM tab2 AS cor0
----
-79
-79
-80

query I rowsort
SELECT ALL - col2 * - + col2 + col0 AS col0 FROM tab2 AS cor0
----
1664
3439
575

query I rowsort
SELECT 99 + - col1 * + col0 * + + 98 AS col2 FROM tab0 cor0
----
-118971
-178947
-9407

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5196
SELECT ALL 55 + + col0 AS col1, CAST( NULL AS DECIMAL ), - col2 * - col0 AS col2 FROM tab0
----
9 values hashing to d9c28b11159d085b7c8cbf22d18448d7

skipif mysql # not compatible
query III rowsort label-5196
SELECT ALL 55 + + col0 AS col1, CAST ( NULL AS REAL ), - col2 * - col0 AS col2 FROM tab0
----
9 values hashing to d9c28b11159d085b7c8cbf22d18448d7

query I rowsort
SELECT ALL 13 + - + ( + 47 ) FROM tab0
----
-34
-34
-34

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 69 * - - 42 + + 56 NOT BETWEEN col1 * + + 88 * + 50 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT COUNT( * ) * - - COUNT( ALL - 72 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5199
SELECT COUNT ( * ) * - - COUNT ( ALL - 72 ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5200
SELECT ALL - CAST( NULL AS SIGNED ) / - 27 - - col2 AS col0, + col0 + + - 33 * + - col1 AS col0 FROM tab1
----
NULL
1642
NULL
250
NULL
513

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL - CAST ( NULL AS INTEGER ) / - 27 - - col2 AS col0, + col0 + + - 33 * + - col1 AS col0 FROM tab1
----
NULL
1642
NULL
250
NULL
513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT DISTINCT + + ( CAST( ( + 40 ) AS SIGNED ) ) FROM tab2 WHERE NOT - col2 IS NULL
----
40

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + + ( CAST ( ( + 40 ) AS INTEGER ) ) FROM tab2 WHERE NOT - col2 IS NULL
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5202
SELECT DISTINCT 60 DIV - CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT 60 / - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5203
SELECT - + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5203
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 14 * - 43 + - col2 - col2 FROM tab0 AS cor0
----
404
508
582

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL SUM( + + col2 ) + + MIN( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL SUM ( + + col2 ) + + MIN ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
172

query I rowsort
SELECT - 41 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5207
SELECT - + 85 DIV 61 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-5207
SELECT - + 85 / 61 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-5208
SELECT 34, COUNT( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
34
1

skipif mysql # not compatible
query II rowsort label-5208
SELECT 34, COUNT ( DISTINCT + 20 ) AS col1 FROM tab1 AS cor0
----
34
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5209
SELECT + col0, col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
51
6
85
11
91
1

skipif mysql # not compatible
query II rowsort label-5209
SELECT + col0, col2 / + col1 AS col1 FROM tab1 AS cor0
----
51
6
85
11
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL - MIN( - - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - MIN ( - - col2 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT + col2 AS col1, + col0 + 57 * + col2 FROM tab2 AS cor0
----
23
1357
40
2344
58
3381

onlyif mysql # DIV for integer division: 
query II rowsort label-5212
SELECT DISTINCT col1 AS col0, - 24 DIV + + col1 FROM tab1 AS cor0
----
14
-1
47
0
5
-4

skipif mysql # not compatible
query II rowsort label-5212
SELECT DISTINCT col1 AS col0, - 24 / + + col1 FROM tab1 AS cor0
----
14
-1
47
0
5
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + CAST( NULL AS SIGNED ) * + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + CAST ( NULL AS INTEGER ) * + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col0, - 97 AS col2 FROM tab1 cor0 WHERE NOT col0 <> NULL
----

query I rowsort
SELECT ALL + col2 * + - 29 FROM tab1 AS cor0
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5216
SELECT DISTINCT - 31 AS col2, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5216
SELECT DISTINCT - 31 AS col2, CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + 44 < NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 > 45
----
87
21
10

query I rowsort
SELECT + 99 * + 37 AS col1 FROM tab1
----
3663
3663
3663

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT ALL + 50 DIV + + col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + 50 / + + col0 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 col0 FROM tab0 cor0
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT ALL + col0 DIV - - col1 + + col1 AS col2 FROM tab1
----
17
22
48

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + col0 / - - col1 + + col1 AS col2 FROM tab1
----
17
22
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + 47 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + 47 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
44

query I rowsort
SELECT DISTINCT - 11 - - col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
4
76
86

query I rowsort
SELECT col0 - - col0 + + + col0 FROM tab2
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT SUM( ALL - 92 ) - - 83 col2 FROM tab2
----
-193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5227
SELECT SUM ( ALL - 92 ) - - 83 col2 FROM tab2
----
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT DISTINCT - CAST( + + 28 AS SIGNED ) + - + col2 AS col2 FROM tab0
----
-127
-38
-75

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - CAST ( + + 28 AS INTEGER ) + - + col2 AS col2 FROM tab0
----
-127
-38
-75

query I rowsort
SELECT - col2 + - - 54 FROM tab2
----
-4
14
31

query II rowsort
SELECT DISTINCT + col2 * + col1 - col2 - - 41 + + col1 * col1, ( col0 ) * + 56 AS col2 FROM tab2
----
3792
2576
8358
4200
9010
3584

query II rowsort
SELECT ALL - col0 AS col0, 66 FROM tab1
----
-51
66
-85
66
-91
66

query I rowsort
SELECT + col0 + - 41 AS col0 FROM tab0 cor0
----
-26
46
56

query II rowsort
SELECT DISTINCT + col2 AS col0, 56 FROM tab0 AS cor0
----
10
56
47
56
99
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5235
SELECT ALL - + COUNT( + col0 ) col0, + COUNT( * ) * - 72 FROM tab0 AS cor0
----
-3
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5235
SELECT ALL - + COUNT ( + col0 ) col0, + COUNT ( * ) * - 72 FROM tab0 AS cor0
----
-3
-216

query I rowsort
SELECT DISTINCT + col0 * 7 FROM tab1 AS cor0
----
357
595
637

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT DISTINCT - 51 * ( COUNT( * ) ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT - 51 * ( COUNT ( * ) ) FROM tab2
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT + col1 col1 FROM tab1 WHERE - CAST( - 39 AS SIGNED ) > - col0 + + col0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT DISTINCT + col1 col1 FROM tab1 WHERE - CAST ( - 39 AS INTEGER ) > - col0 + + col0
----
14
47
5

query I rowsort
SELECT - 51 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-51
-51

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 36 ) + col1 > NULL
----

query I rowsort
SELECT + col0 + + 90 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT ( - MIN( ALL - - 15 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5242
SELECT ( - MIN ( ALL - - 15 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT 66 * COUNT( * ) AS col2, 99 FROM tab2 AS cor0
----
198
99

skipif mysql # not compatible
query II rowsort label-5243
SELECT 66 * COUNT ( * ) AS col2, 99 FROM tab2 AS cor0
----
198
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5244
SELECT + col2 DIV - + col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5244
SELECT + col2 / - + col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND 62
----
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5246
SELECT DISTINCT col1 DIV col1 DIV - + 82, col2 FROM tab1
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-5246
SELECT DISTINCT col1 / col1 / - + 82, col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT - ( - MAX( + - 13 ) ) + + 33 + 93 FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-5248
SELECT - ( - MAX ( + - 13 ) ) + + 33 + 93 FROM tab2
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL COUNT( * ) * + - ( + 97 ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL COUNT ( * ) * + - ( + 97 ) FROM tab2
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT ALL - CAST( + - col2 AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - CAST ( + - col2 AS INTEGER ) FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT ALL 47 * + - COUNT( * ) FROM tab0
----
-141

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL 47 * + - COUNT ( * ) FROM tab0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT ALL - COUNT( * ) * + - 34 AS col1 FROM tab0 cor0
----
102

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - COUNT ( * ) * + - 34 AS col1 FROM tab0 cor0
----
102

query II rowsort
SELECT col0, col2 * - + 41 FROM tab1 cor0
----
51
-3936
85
-2419
91
-2788

query I rowsort
SELECT ALL + + 57 + - 62 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - col1 + + + 26 + + - col1 FROM tab1
----
-2
-68
16

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT + 95 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 * col0 * + + col0 FROM tab0 cor0
----
10575
75690
931491

query I rowsort
SELECT 28 * - col1 + + 53 AS col2 FROM tab2 AS cor0
----
-1375
-1823
-2103

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT - ( + COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5259
SELECT DISTINCT - ( + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT DISTINCT - 12 FROM tab2 cor0 WHERE NOT + CAST( + col2 AS SIGNED ) NOT BETWEEN ( col1 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - 12 FROM tab2 cor0 WHERE NOT + CAST ( + col2 AS INTEGER ) NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5261
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6

query I rowsort
SELECT - + col2 + + - col2 + - ( + + col1 ) FROM tab0 AS cor0
----
-175
-199
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - COUNT( * ) + + SUM( - 65 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5263
SELECT - COUNT ( * ) + + SUM ( - 65 ) FROM tab2 AS cor0
----
-198

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0 + + 82 * - col1 * - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + ( - + COUNT( * ) ) + 74 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5265
SELECT + ( - + COUNT ( * ) ) + 74 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-5266
SELECT ALL + 0 DIV col0 - - col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + 0 / col0 - - col2 FROM tab2 cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + COUNT( * ) + + COUNT( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-5267
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
6

query II rowsort
SELECT - col2, + col2 * + - col2 * col0 AS col1 FROM tab1
----
-59
-295885
-68
-420784
-96
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + COUNT( * ) * + - COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5269
SELECT + COUNT ( * ) * + - COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE + - col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL + COUNT( col1 ) * 58 - - SUM( ALL - + col0 ) + 8 * - 48 FROM tab0
----
-409

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL + COUNT ( col1 ) * 58 - - SUM ( ALL - + col0 ) + 8 * - 48 FROM tab0
----
-409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 0 AS col2, + col0 AS col1 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT - 5 * - - ( col1 ) FROM tab2 AS cor0
----
-255
-335
-385

query I rowsort
SELECT ALL - - col1 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT col2 / - - col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - 1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + 60 ) FROM tab0
----
60
60
60

query III rowsort
SELECT * FROM tab2 WHERE NOT - 49 * + + col1 * - + 40 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL MIN( - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL MIN ( - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT + col2 * + 71 - + + CAST( NULL AS SIGNED ) + - 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT + col2 * + 71 - + + CAST ( NULL AS INTEGER ) + - 56 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 66 * col0 FROM tab1 AS cor0
----
3366
5610
6006

onlyif mysql # aggregate syntax: 
query II rowsort label-5284
SELECT + COUNT( 38 ) - - 46, - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----
46
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5284
SELECT + COUNT ( 38 ) - - 46, - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col2
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL ( + - 94 ) * + - MIN( - ( - - col2 ) ) FROM tab0 AS cor0
----
-9306

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL ( + - 94 ) * + - MIN ( - ( - - col2 ) ) FROM tab0 AS cor0
----
-9306

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - MAX( 85 ) col1 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5286
SELECT - MAX ( 85 ) col1 FROM tab1 AS cor0
----
-85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5287
SELECT DISTINCT + col2 - + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE 75 BETWEEN - 31 * - - CAST( NULL AS DECIMAL ) + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT + col2 - + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE 75 BETWEEN - 31 * - - CAST ( NULL AS REAL ) + - col0 AND NULL
----

query I rowsort
SELECT ALL + + col0 + + col2 + - ( + + 12 ) + - + 81 * + + col2 * + col0 FROM tab0 AS cor0
----
-57055
-70385
-777659

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND - col1 + - + 92
----

query I rowsort
SELECT DISTINCT 80 * + col0 + + col1 FROM tab2
----
3731
5197
6067

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 + + - ( 55 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( col0 ) AS col0, + 3 col1 FROM tab2
----
-46
3
-64
3
-75
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col2 col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT SUM( DISTINCT + - col2 ) AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5294
SELECT SUM ( DISTINCT + - col2 ) AS col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT col2 * - + col0 * + col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT - SUM( + col2 ) DIV - + 16 FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-5296
SELECT - SUM ( + col2 ) / - + 16 FROM tab1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT + col0 + - + col1 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT + col0 + - + col1 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 37 ) + 73 FROM tab1 AS cor0
----
110
110
110

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT + MIN( - 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-5300
SELECT + MIN ( - 12 ) FROM tab0
----
-12

query I rowsort
SELECT ALL 25 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > 76
----

query I rowsort
SELECT DISTINCT - col0 - 7 AS col2 FROM tab0
----
-104
-22
-94

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5304
SELECT ( - 10 ) - CAST( col0 AS SIGNED ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5304
SELECT ( - 10 ) - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + + 83 + + + 44 FROM tab2 AS cor0
----
127
127
127

query I rowsort
SELECT - - col1 * + col0 * - col2 * + 35 * - col0 + + + col1 - col0 * + + ( - col1 ) * - col2 FROM tab0 AS cor0
----
29923101
32592583
55613901

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT - ( 41 ) + - COUNT( * ) AS col0 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT - ( 41 ) + - COUNT ( * ) AS col0 FROM tab1
----
-44

query I rowsort
SELECT DISTINCT - col0 - - 6 * - 85 FROM tab0
----
-525
-597
-607

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 WHERE 47 NOT IN ( + col0, col0 * - + col0, + 24 )
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL ( - MIN( DISTINCT 62 ) ) AS col0 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL ( - MIN ( DISTINCT 62 ) ) AS col0 FROM tab0
----
-62

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ( + - COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5313
SELECT ( + - COUNT ( * ) ) col0 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - - col0
----

query II rowsort
SELECT DISTINCT 42, col1 * - - 35 AS col1 FROM tab2 AS cor0 WHERE 67 * 60 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 + - 50 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 < NULL
----

query I rowsort
SELECT - 78 * - + col2 FROM tab0
----
3666
7722
780

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5320
SELECT - ( - + COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 + + ( - col0 ) + + col0 + col1 / ( - col2 ) - + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5320
SELECT - ( - + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 + + ( - col0 ) + + col0 + col1 / ( - col2 ) - + CAST ( NULL AS INTEGER ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 + - + col0 col2 FROM tab1 AS cor0
----
-11
-5
29

query I rowsort
SELECT 69 + + + col2 AS col2 FROM tab1
----
128
137
165

query I rowsort
SELECT DISTINCT + 91 + + ( - 67 ) AS col0 FROM tab2
----
24

query I rowsort
SELECT 38 + + - 72 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT col1 * + + col0 * - + col2 * - + 71 + - col0 AS col0 FROM tab2
----
13995456
20692875
3830972

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL - 14 * - COUNT( * ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL - 14 * - COUNT ( * ) AS col0 FROM tab0
----
42

query I rowsort
SELECT col1 * - col1 * - 65 + col0 FROM tab0 cor0
----
162
28752
426480

query II rowsort
SELECT + 92, col2 FROM tab1 AS cor0
----
92
59
92
68
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT ( 99 ) * + - COUNT( * ) + - - SUM( + 33 ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT ( 99 ) * + - COUNT ( * ) + - - SUM ( + 33 ) FROM tab0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT ALL - CAST( NULL AS SIGNED ) / + col1 * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL - CAST ( NULL AS INTEGER ) / + col1 * - - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - col2 + + col1 - + - col0 FROM tab1 AS cor0
----
1409
3334
385

query I rowsort
SELECT DISTINCT + 55 + - 70 + col1 AS col0 FROM tab1 AS cor0
----
-1
-10
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT - MIN( ALL - col0 ) * + 12 * + 78 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5333
SELECT - MIN ( ALL - col0 ) * + 12 * + 78 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE col0 + col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL + col0 * + 1 FROM tab1
----
51
85
91

query I rowsort
SELECT + + col0 AS col0 FROM tab0 WHERE NOT + col2 = - + 16 * col1 + - 2
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col0, ( - - col1 ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
14
-47
47
-5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5338
SELECT ALL col1 * col0 DIV col0 * col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL col1 * col0 / col0 * col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL <> col2 + + ( + 3 ) / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5341
SELECT MAX( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT MAX ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + - ( - col0 )
----

query II rowsort
SELECT DISTINCT + col0 AS col1, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL SUM( + - 86 ) FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL SUM ( + - 86 ) FROM tab2 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT + SUM( DISTINCT - 33 ) AS col1 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + SUM ( DISTINCT - 33 ) AS col1 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( NULL ) IN ( - col1 * - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT col0 DIV - 59 + col2 AS col0 FROM tab0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-5347
SELECT col0 / - 59 + col2 AS col0 FROM tab0
----
47
9
98

query I rowsort
SELECT - col1 * - ( ( + col1 ) ) + col0 FROM tab1
----
110
2300
247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 + + 22 col0 FROM tab2
----
49
49
49

query III rowsort
SELECT ALL * FROM tab1 WHERE + 32 / 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 24 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT ( - COUNT( * ) ) FROM tab2 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5352
SELECT ( - COUNT ( * ) ) FROM tab2 WHERE NULL <= NULL
----
0

query I rowsort
SELECT ALL + col0 + col1 * + 66 FROM tab0
----
1473
163
5361

query I rowsort
SELECT - 51 * col0 AS col1 FROM tab0
----
-4437
-4947
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT ALL + ( + col0 ) DIV 48 + + ( + 36 + col1 ) FROM tab0
----
117
39
58

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + ( + col0 ) / 48 + + ( + 36 + col1 ) FROM tab0
----
117
39
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT 83 * COUNT( * ) AS col0 FROM tab0
----
249

skipif mysql # not compatible
query I rowsort label-5356
SELECT 83 * COUNT ( * ) AS col0 FROM tab0
----
249

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5357
SELECT DISTINCT col1 FROM tab1 WHERE 83 * col1 NOT IN ( + 17 * - CAST( - col0 / + col0 AS DECIMAL ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT col1 FROM tab1 WHERE 83 * col1 NOT IN ( + 17 * - CAST ( - col0 / + col0 AS REAL ) )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT DISTINCT COUNT( * ) * 92 AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT COUNT ( * ) * 92 AS col1 FROM tab1
----
276

query I rowsort
SELECT - col1 + col1 * col0 AS col2 FROM tab0
----
1134
1806
96

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN col1 AND ( + col1 )
----

query I rowsort
SELECT col1 * 71 FROM tab0 WHERE NOT + col1 / 55 = - col1
----
1491
5751
71

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL + MAX( DISTINCT - col1 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( 74 ) NOT BETWEEN NULL AND ( + 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( 3 ) AND ( col0 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( 3 ) AND ( col0 * - col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT CAST( + 81 AS SIGNED ) AS col0 FROM tab1
----
81
81
81

skipif mysql # not compatible
query I rowsort label-5366
SELECT CAST ( + 81 AS INTEGER ) AS col0 FROM tab1
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5367
SELECT + col2 DIV col1 FROM tab0 WHERE CAST( - col2 AS SIGNED ) * + col0 IS NOT NULL
----
0
0
99

skipif mysql # not compatible
query I rowsort label-5367
SELECT + col2 / col1 FROM tab0 WHERE CAST ( - col2 AS INTEGER ) * + col0 IS NOT NULL
----
0
0
99

query I rowsort
SELECT ALL col1 * 45 FROM tab1
----
2115
225
630

query I rowsort
SELECT + col0 + + col1 FROM tab0 WHERE NOT - col2 + + 55 NOT IN ( - ( - col1 ) )
----

query I rowsort
SELECT ALL col2 * 53 AS col1 FROM tab0
----
2491
5247
530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT ALL + 74 * COUNT( + CAST( + 89 AS SIGNED ) ) FROM tab0
----
222

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + 74 * COUNT ( + CAST ( + 89 AS INTEGER ) ) FROM tab0
----
222

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( col1 * col2 + - col0 ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5373
SELECT ALL 68 + + col1 DIV - 67 AS col0 FROM tab0
----
67
68
68

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL 68 + + col1 / - 67 AS col0 FROM tab0
----
67
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT - 22 + - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-22

skipif mysql # not compatible
query I rowsort label-5375
SELECT - 22 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-22

query I rowsort
SELECT DISTINCT 45 + col2 FROM tab2 AS cor0
----
103
68
85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col0 ) ) <= - col2 * + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT 13 * ( COUNT( * ) ) - - ( ( 13 ) ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT 13 * ( COUNT ( * ) ) - - ( ( 13 ) ) FROM tab0
----
52

query I rowsort
SELECT 0 AS col0 FROM tab2 WHERE col0 * + 93 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL COUNT( 49 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL COUNT ( 49 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT + COUNT( DISTINCT + 18 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5381
SELECT + COUNT ( DISTINCT + 18 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + 41 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col2 FROM tab0 cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 85 + - 31 * + col0 NOT BETWEEN - 25 * 65 + - col1 / - 67 AND + 35
----
51
14
96

query I rowsort
SELECT DISTINCT + + 89 * - 33 FROM tab1 cor0
----
-2937

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT 39 * - COUNT( * ) FROM tab1 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5386
SELECT 39 * - COUNT ( * ) FROM tab1 cor0
----
-117

query I rowsort
SELECT ALL - col0 * - 46 FROM tab0
----
4002
4462
690

query I rowsort
SELECT DISTINCT ( - + 7 ) * + col1 FROM tab0
----
-147
-567
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT DISTINCT col1 DIV + - col0 col2 FROM tab2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5389
SELECT DISTINCT col1 / + - col0 col2 FROM tab2
----
-1
0

query I rowsort
SELECT ALL + 47 * - col1 AS col1 FROM tab0
----
-3807
-47
-987

query I rowsort
SELECT ALL + 29 FROM tab2 WHERE NOT NULL IS NOT NULL
----
29
29
29

query I rowsort
SELECT ALL - 60 AS col1 FROM tab1 WHERE ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT DISTINCT - col0 DIV + + 89 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - col0 / + + 89 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT CAST( 89 AS SIGNED ) * - col2 FROM tab0
----
-4183
-8811
-890

skipif mysql # not compatible
query I rowsort label-5394
SELECT CAST ( 89 AS INTEGER ) * - col2 FROM tab0
----
-4183
-8811
-890

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 - col2 = ( col0 + col2 ) OR col1 - + 86 IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL BETWEEN 98 + 41 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT SUM( ALL + 6 ) FROM tab0 WHERE ( NULL ) IS NULL
----
18

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT SUM ( ALL + 6 ) FROM tab0 WHERE ( NULL ) IS NULL
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 < - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5399
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

skipif mysql # not compatible
query IIIIII rowsort label-5399
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5400
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) + - - MIN( ALL - col1 ) DIV SUM( 46 ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5400
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) + - - MIN ( ALL - col1 ) / SUM ( 46 ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT - - ( + ( + 78 ) ) * + col1 FROM tab0 AS cor0
----
1638
6318
78

query I rowsort
SELECT + col2 + + - 59 AS col1 FROM tab0 cor0
----
-12
-49
40

query I rowsort
SELECT - 41 + - - col2 AS col1 FROM tab1 cor0
----
18
27
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - 45 + 24 + - + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-21
-21
-26

skipif mysql # not compatible
query I rowsort label-5404
SELECT - 45 + 24 + - + col1 / col0 AS col0 FROM tab0 AS cor0
----
-21
-21
-26

query I rowsort
SELECT + - 81 + - - 10 FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT ALL - - 7 DIV + 49 * + col1 * col0 + - col1 + 98 FROM tab2 AS cor0
----
21
31
47

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - - 7 / + 49 * + col1 * col0 + - col1 + 98 FROM tab2 AS cor0
----
21
31
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT - MIN( ALL col2 ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-5407
SELECT - MIN ( ALL col2 ) + - COUNT ( * ) FROM tab1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT CAST( + + col0 AS SIGNED ) + + col1 * - - 33 AS col0 FROM tab2
----
1729
2286
2605

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT CAST ( + + col0 AS INTEGER ) + + col1 * - - 33 AS col0 FROM tab2
----
1729
2286
2605

query III rowsort
SELECT ALL * FROM tab2 WHERE - 44 NOT BETWEEN + - col0 * - col1 AND ( - 32 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT 87 * - 60 + - ( + ( SUM( ALL col2 ) ) ) FROM tab0
----
-5376

skipif mysql # not compatible
query I rowsort label-5410
SELECT 87 * - 60 + - ( + ( SUM ( ALL col2 ) ) ) FROM tab0
----
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT MAX( DISTINCT - col1 ) + + COUNT( * ) - - + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT MAX ( DISTINCT - col1 ) + + COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 74 + + - col2 + + 42 - - + 91 * 17 FROM tab0
----
1564
1616
1653

query I rowsort
SELECT - col1 FROM tab0 WHERE - - 12 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 28 ) IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 87 + 68 AS col1 FROM tab2 WHERE NOT - 86 * - col2 IS NULL
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT col2 DIV + + 63 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5416
SELECT col2 / + + 63 AS col2 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5417
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 * - - col0 * - - CAST( - 36 AS DECIMAL ) NOT BETWEEN col0 + CAST( NULL AS SIGNED ) AND ( CAST( - 67 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5417
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 * - - col0 * - - CAST ( - 36 AS REAL ) NOT BETWEEN col0 + CAST ( NULL AS INTEGER ) AND ( CAST ( - 67 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT MIN( DISTINCT 28 ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-5418
SELECT MIN ( DISTINCT 28 ) FROM tab1 AS cor0
----
28

query I rowsort
SELECT - - col2 - + col2 + + - col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 87 - - col1 - - col2 + + 53 * - col2 FROM tab2 AS cor0
----
-1058
-1916
-2862

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT 9 * - col0 + - 81 AS col0 FROM tab1 AS cor0 WHERE col0 * + col0 < + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col0 FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT * FROM tab0 AS cor0 WHERE 6 BETWEEN ( + col2 ) + CAST( NULL AS SIGNED ) * col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-5424
SELECT * FROM tab0 AS cor0 WHERE 6 BETWEEN ( + col2 ) + CAST ( NULL AS INTEGER ) * col2 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col2 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1454
-3311
-359

query I rowsort
SELECT - + 65 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT DISTINCT CAST( - + MAX( ALL - + col0 ) AS SIGNED ) * 26 FROM tab1 AS cor0
----
1326

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT CAST ( - + MAX ( ALL - + col0 ) AS INTEGER ) * 26 FROM tab1 AS cor0
----
1326

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5428
SELECT + ( - CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5428
SELECT + ( - CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT + - 1 * + col2 DIV - 70 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5429
SELECT + - 1 * + col2 / - 70 AS col0 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 44, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL 37 * - COUNT( ALL - - ( + col2 ) ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL 37 * - COUNT ( ALL - - ( + col2 ) ) FROM tab2 AS cor0
----
-111

query I rowsort
SELECT DISTINCT + 25 FROM tab0 cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT DISTINCT + + ( + - col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT ALL - 32 * + CAST( NULL AS SIGNED ) / + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 * col0 )
----

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - 32 * + CAST ( NULL AS INTEGER ) / + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 * col0 )
----

query I rowsort
SELECT ALL col2 * - + 18 AS col0 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL + COUNT( * ) * - 93 AS col2 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + COUNT ( * ) * - 93 AS col2 FROM tab2 AS cor0
----
-279

query I rowsort
SELECT 67 * + col2 AS col1 FROM tab1
----
3953
4556
6432

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 19 + + + 52 IS NULL
----

query I rowsort
SELECT DISTINCT + - 46 FROM tab1 WHERE - ( + col2 ) IS NOT NULL
----
-46

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 42 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + - col1 * + - col2 + + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT + SUM( 9 ) + - - MAX( 29 ) * + MAX( ALL CAST( 18 AS SIGNED ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5442
SELECT + SUM ( 9 ) + - - MAX ( 29 ) * + MAX ( ALL CAST ( 18 AS INTEGER ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 54 + + ( - col0 ) FROM tab0
----
-33
-43
39

query I rowsort
SELECT + ( + - col0 ) + - 48 FROM tab1
----
-133
-139
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 95 * + + 80 * + col2 + col1 - col1 FROM tab1
----
448400
516800
729600

query II rowsort
SELECT - ( + col2 ) + col2, col0 FROM tab0
----
0
15
0
87
0
97

query I rowsort
SELECT DISTINCT - 61 * - col1 AS col2 FROM tab1 AS cor0
----
2867
305
854

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + 57 * - - MAX( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-1311

skipif mysql # not compatible
query I rowsort label-5449
SELECT + 57 * - - MAX ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-1311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col2 FROM tab0 AS cor0 WHERE ( ( - col0 * - + 77 ) <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL + AVG ( 39 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( ( + col2 <> NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL + AVG ( 39 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( ( + col2 <> NULL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - SUM( ALL + + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5452
SELECT - SUM ( ALL + + col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL - - col2 + + + col2 - col1 + - col0 * - + col2 AS col2 FROM tab2 cor0
----
1053
2563
4399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 AS cor0 WHERE NULL <> - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 IN ( - 37 )
----

query I rowsort
SELECT DISTINCT - 44 + - col1 AS col2 FROM tab1 cor0
----
-49
-58
-91

query I rowsort
SELECT ALL col0 + + - 7 FROM tab0
----
8
80
90

query I rowsort
SELECT + col0 - - col2 AS col0 FROM tab2
----
104
133
69

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 BETWEEN - ( col1 ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * - 19 * 8 - + col1 AS col1 FROM tab2
----
-3547
-6157
-8883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT COUNT( * ) * - ( 34 ) * + CAST( NULL AS SIGNED ) + - - 36 * + - MIN( + col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT COUNT ( * ) * - ( 34 ) * + CAST ( NULL AS INTEGER ) + - - 36 * + - MIN ( + col1 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5463
SELECT DISTINCT - COUNT( * ), 7 AS col2 FROM tab0
----
-3
7

skipif mysql # not compatible
query II rowsort label-5463
SELECT DISTINCT - COUNT ( * ), 7 AS col2 FROM tab0
----
-3
7

query I rowsort
SELECT + 19 + + - 94 AS col1 FROM tab1
----
-75
-75
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + + 83 IS NULL
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT 67 + 65 = col0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col0 FROM tab2 AS cor0
----
-83
-83
-83

query II rowsort
SELECT ALL + col2 AS col2, 65 FROM tab2 AS cor0
----
23
65
40
65
58
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5469
SELECT * FROM tab0 WHERE NOT - + 26 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5469
SELECT * FROM tab0 WHERE NOT - + 26 * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT - SUM( col2 ) FROM tab1 AS cor0 WHERE NOT 58 + + + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT - SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT 58 + + + col1 = NULL
----
NULL

query I rowsort
SELECT - 33 * + + ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 * - 10 + + + col2 * + 58 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5472
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5472
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5473
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 * col2 + - col0 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-5473
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 * col2 + - col0 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT 44 AS col2 FROM tab1 cor0 WHERE NOT 28 IS NULL
----
44
44
44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col2, - col0 * - + ( 78 ) )
----

query I rowsort
SELECT DISTINCT - 0 * - 29 - - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 97 + - 55 + + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( - ( col0 ) ) AS col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT col1 * - - ( + col1 ) FROM tab1
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN ( - col2 + 92 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 = ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5482
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) / - ( - + ( + 75 ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5482
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) / - ( - + ( + 75 ) ) IS NULL
----

query I rowsort
SELECT - col2 + + + col1 + + col2 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 21 * + col2 col1 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT DISTINCT - col0 * - 76 * - col0 AS col1 FROM tab0 AS cor0
----
-17100
-575244
-715084

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT ALL + COUNT( * ) + + COUNT( * ) + + 90 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + 90 FROM tab0
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0, col1 * - + col1 + 64 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5488
SELECT ALL COUNT( * ) AS col2, 81 FROM tab1 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-5488
SELECT ALL COUNT ( * ) AS col2, 81 FROM tab1 AS cor0
----
3
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5489
SELECT DISTINCT + - col2 + - - col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5489
SELECT DISTINCT + - col2 + - - col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT - col2 + - 63 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-5490
SELECT - col2 + - 63 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT - - col1 + - col0 + - col2 DIV col0 * - + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-193
-3579
-66

skipif mysql # not compatible
query I rowsort label-5492
SELECT - - col1 + - col0 + - col2 / col0 * - + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-193
-3579
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT - ( - + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5493
SELECT - ( - + COUNT ( * ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + 19 + + COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + 19 + + COUNT ( * ) FROM tab1
----
22

query II rowsort
SELECT ALL col1 * - - 77, col1 FROM tab2
----
3927
51
5159
67
5929
77

query II rowsort
SELECT ( - + col1 ) AS col1, 13 AS col1 FROM tab0
----
-1
13
-21
13
-81
13

query I rowsort
SELECT + col2 - + - col0 AS col2 FROM tab1 AS cor0
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - col0 col2, + col2 AS col2 FROM tab2 AS cor0
----
-2116
23
-4096
40
-5625
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5499
SELECT ALL CAST( + col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL CAST ( + col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT - MIN( - 71 ) AS col1 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT - MIN ( - 71 ) AS col1 FROM tab1 AS cor0
----
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5502
SELECT + COUNT( * ) * COUNT( * ) AS col1, - 36 AS col1 FROM tab2 AS cor0
----
9
-36

skipif mysql # not compatible
query II rowsort label-5502
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, - 36 AS col1 FROM tab2 AS cor0
----
9
-36

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> NULL
----

query II rowsort
SELECT - - 71, 29 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 13f51319b48a27c42adedf42674c2b94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, col2 col2 FROM tab0
----
15
47
87
10
97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 16 * - - col1 * - 78 col0 FROM tab0 AS cor0
----
-101088
-1248
-26208

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5507
SELECT 38, CAST( col1 AS SIGNED ) * CAST( + ( col0 ) AS SIGNED ) * ( - col1 ) + + 21 AS col1 FROM tab1 AS cor0
----
38
-200998
38
-2104
38
-9975

skipif mysql # not compatible
query II rowsort label-5507
SELECT 38, CAST ( col1 AS INTEGER ) * CAST ( + ( col0 ) AS INTEGER ) * ( - col1 ) + + 21 AS col1 FROM tab1 AS cor0
----
38
-200998
38
-2104
38
-9975

query I rowsort
SELECT DISTINCT - - col1 * 76 FROM tab2 AS cor0 WHERE NOT - 37 + col1 IS NOT NULL
----

query II rowsort
SELECT + - 29 + - - 50, + ( + ( - col0 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + 71 * + + col2 * - 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL + + COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + + COUNT ( col2 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col0 ) * - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 88 FROM tab2 WHERE NOT + + 88 < 80 * col1
----

query I rowsort
SELECT - col1 * col0 * + 95 AS col2 FROM tab2
----
-222870
-468160
-477375

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN - + col2 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN - + col2 AND + col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5516
SELECT DISTINCT MIN( ALL CAST( - col1 AS SIGNED ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT MIN ( ALL CAST ( - col1 AS INTEGER ) ) FROM tab2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT DISTINCT col0 FROM tab1 WHERE NOT + - 28 NOT IN ( - - ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT col0 FROM tab1 WHERE NOT + - 28 NOT IN ( - - ( - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT - COUNT( * ) FROM tab2 WHERE NOT 61 IN ( - + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-5518
SELECT - COUNT ( * ) FROM tab2 WHERE NOT 61 IN ( - + col2 )
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5520
SELECT DISTINCT - COUNT( * ) * COUNT( * ) DIV - 17 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) / - 17 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - 35 + + col1 AS col2 FROM tab2 AS cor0
----
39
82
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col1 + + + 93 + - 4 + - - col2 * - ( 7 ) * - + 99 * + col0 FROM tab1
----
3393031
3475489
4288420

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT DISTINCT MAX( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT MAX ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + SUM( 85 ) AS col1 FROM tab2 cor0
----
255

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + SUM ( 85 ) AS col1 FROM tab2 cor0
----
255

query I rowsort
SELECT ALL - 74 + - col2 * - + 44 * 46 AS col2 FROM tab1 AS cor0
----
119342
137558
194230

query I rowsort
SELECT ALL + 4 + + col2 FROM tab1 AS cor0
----
100
63
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5529
SELECT col0 DIV ( - 63 ) * - col2 - + col2 + + + col1 * - col2 - - + 29 * CAST( - col1 AS SIGNED ) * - ( - 87 ) * - + col0 FROM tab0
----
244632
3061591
4609311

skipif mysql # not compatible
query I rowsort label-5529
SELECT col0 / ( - 63 ) * - col2 - + col2 + + + col1 * - col2 - - + 29 * CAST ( - col1 AS INTEGER ) * - ( - 87 ) * - + col0 FROM tab0
----
244632
3061591
4609311

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL - 76 + + - COUNT( * ) * COUNT( DISTINCT + - 40 ) + + 84 FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - 76 + + - COUNT ( * ) * COUNT ( DISTINCT + - 40 ) + + 84 FROM tab2
----
5

query I rowsort
SELECT + 65 + - 39 FROM tab2
----
26
26
26

query II rowsort
SELECT DISTINCT col1 - + col2, + col1 FROM tab0
----
-98
1
11
21
34
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT + MAX( 75 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + MAX ( 75 ) FROM tab0
----
75

query I rowsort
SELECT ( + - col0 ) * + 41 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * 96 col1 FROM tab2 AS cor0
----
-2784
-2784
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT - 97 * COUNT( * ) col2 FROM tab0 cor0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5536
SELECT - 97 * COUNT ( * ) col2 FROM tab0 cor0
----
-291

query II rowsort
SELECT ALL + col1 * col0 AS col2, - 40 AS col0 FROM tab0
----
1215
-40
1827
-40
97
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT + CAST( + 25 AS SIGNED ) FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-5538
SELECT + CAST ( + 25 AS INTEGER ) FROM tab2
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 74 col1 FROM tab2 AS cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT DISTINCT + 51 * + col1 + + - 23 * + 60 - + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT + 51 * + col1 + + - 23 * + 60 - + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) * - 18 AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5541
SELECT COUNT ( * ) * - 18 AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL MAX( ALL col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL MAX ( ALL col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT + ( - col2 ) AS col2 FROM tab1 WHERE NOT ( NULL ) = 46
----

query I rowsort
SELECT - col0 + + + col2 AS col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - ( + 64 ) AS col1 FROM tab2 WHERE - - col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5546
SELECT 95 DIV 34 * + MAX( col1 ) * 16 + + 69 AS col2 FROM tab2
----
2533

skipif mysql # not compatible
query I rowsort label-5546
SELECT 95 / 34 * + MAX ( col1 ) * 16 + + 69 AS col2 FROM tab2
----
2533

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query II rowsort label-5548
SELECT ALL MAX( + col1 ) + + 92 AS col1, + 40 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
139
43

skipif mysql # not compatible
query II rowsort label-5548
SELECT ALL MAX ( + col1 ) + + 92 AS col1, + 40 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
139
43

query I rowsort
SELECT ALL + col1 + - 3 AS col1 FROM tab1 AS cor0
----
11
2
44

query II rowsort
SELECT 46 AS col0, + col1 FROM tab1 AS cor0
----
46
14
46
47
46
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 47 col0 FROM tab0 AS cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 88 / - col0 + - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT + col2 * ( - ( col0 ) ) * + - CAST( + ( + + ( + col1 ) ) AS SIGNED ) + + 49 col0 FROM tab0 AS cor0
----
18319
57154
9652

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5554
SELECT + col2 * ( - ( col0 ) ) * + - CAST ( + ( + + ( + col1 ) ) AS INTEGER ) + + 49 col0 FROM tab0 AS cor0
----
18319
57154
9652

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT + - 26 + + MIN( + + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5555
SELECT + - 26 + + MIN ( + + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5556
SELECT * FROM tab1 AS cor0 WHERE CAST( - + ( col2 ) AS SIGNED ) * col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-5556
SELECT * FROM tab1 AS cor0 WHERE CAST ( - + ( col2 ) AS INTEGER ) * col0 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 76 col2 FROM tab2 AS cor0
----
-1
25
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 * - - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT + AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT col1 + + col2 + + 84 AS col0 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + ( - col1 ) IN ( + col1 * + ( + col0 ) / + 56 )
----

skipif mysql # not compatible
query I rowsort label-5560
SELECT col1 + + col2 + + 84 AS col0 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + ( - col1 ) IN ( + col1 * + ( + col0 ) / + 56 )
----

query I rowsort
SELECT ALL 57 * - - col2 * - - col2 AS col0 FROM tab0
----
125913
558657
5700

query I rowsort
SELECT DISTINCT - ( - col2 ) * + + col1 AS col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - col1 * + 41 FROM tab1
----
-1927
-205
-574

onlyif mysql # DIV for integer division: 
query II rowsort label-5564
SELECT - 88 AS col2, + col2 DIV 77 col2 FROM tab0
----
-88
0
-88
0
-88
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5564
SELECT - 88 AS col2, + col2 / 77 col2 FROM tab0
----
-88
0
-88
0
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT ALL - + SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5565
SELECT ALL - + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - - 92 * ( + + col1 ) FROM tab1 cor0
----
1288
4324
460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab2 AS cor0
----
31
31
31

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 17 + - 12 - + - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5569
SELECT DISTINCT - 45, - col2 * - + CAST( - + 1 AS SIGNED ) col2 FROM tab0
----
-45
-10
-45
-47
-45
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5569
SELECT DISTINCT - 45, - col2 * - + CAST ( - + 1 AS INTEGER ) col2 FROM tab0
----
-45
-10
-45
-47
-45
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT ALL + 87 DIV col2 DIV - 9 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL + 87 / col2 / - 9 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT - 61 + col1 FROM tab2
----
-10
16
6

query II rowsort
SELECT - 17 AS col0, + col2 AS col1 FROM tab1
----
-17
59
-17
68
-17
96

query II rowsort
SELECT ALL + col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT + - 78, col0 AS col2 FROM tab1 AS cor0
----
-78
51
-78
85
-78
91

query II rowsort
SELECT DISTINCT - col2 AS col0, 0 - - 31 FROM tab0 AS cor0
----
-10
31
-47
31
-99
31

query I rowsort
SELECT ALL 57 * col1 FROM tab0 AS cor0
----
1197
4617
57

query I rowsort
SELECT DISTINCT + + col2 * col1 + + col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT ALL - 63 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - 63 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + 64 AS col2, 40 AS col1 FROM tab1 WHERE col0 NOT IN ( + col0, + col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT DISTINCT 48 + - COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 48 + - COUNT ( * ) FROM tab2
----
45

query II rowsort
SELECT col2 * col2 AS col2, col0 AS col1 FROM tab0
----
100
87
2209
15
9801
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5583
SELECT col2 * col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
705
NULL
870
NULL
9603
NULL

skipif mysql # not compatible
query II rowsort label-5583
SELECT col2 * col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
705
NULL
870
NULL
9603
NULL

query I rowsort
SELECT ALL ( col1 ) + - + col1 + - 1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5585
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT + 53 + col1 + + col0 AS col1 FROM tab0
----
149
151
161

query I rowsort
SELECT + col0 * - + col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - ( + - 74 ) AS col1 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - 59 + + col2 FROM tab1 cor0
----
0
37
9

query I rowsort
SELECT DISTINCT ( + 65 ) * + ( - - col1 ) + 67 + + 36 FROM tab0 cor0
----
1468
168
5368

query I rowsort
SELECT ALL - 50 * - col1 FROM tab2 AS cor0
----
2550
3350
3850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5592
SELECT col2 AS col1, CAST( NULL AS SIGNED ) * + - 85 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5592
SELECT col2 AS col1, CAST ( NULL AS INTEGER ) * + - 85 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT DISTINCT ( col2 ) / + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - ( - col1 ), + ( + - col2 ) AS col0 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT + 92 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
92
92
92

query I rowsort
SELECT DISTINCT - 99 * col1 - + col1 FROM tab0 AS cor0
----
-100
-2100
-8100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5597
SELECT DISTINCT + CAST( + ( - col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + CAST ( + ( - col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + col0 * - 84 NOT BETWEEN ( 74 ) + + col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT ALL + 86 * + - SUM( + col0 ) * + + 39 FROM tab1 AS cor0
----
-761358

skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + 86 * + - SUM ( + col0 ) * + + 39 FROM tab1 AS cor0
----
-761358

query I rowsort
SELECT ALL + col1 * - + col0 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL - SUM( + 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL - SUM ( + 0 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col1 ) ) col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT DISTINCT + - 70 * MIN( - - col1 ) FROM tab1 AS cor0
----
-350

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT + - 70 * MIN ( - - col1 ) FROM tab1 AS cor0
----
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT DISTINCT + - MIN( ALL + - col2 ) + + 91 AS col1 FROM tab0 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + - MIN ( ALL + - col2 ) + + 91 AS col1 FROM tab0 AS cor0
----
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 cor0 WHERE + 82 * ( + - ( - - col2 ) ) + + col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5607
SELECT + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT DISTINCT COUNT( * ) + + 62 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT COUNT ( * ) + + 62 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL CAST( NULL AS SIGNED ) - - - col2 + col0 * + col0 / + + 42 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL CAST ( NULL AS INTEGER ) - - - col2 + col0 * + col0 / + + 42 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT COUNT( * ) * + 86 AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-5610
SELECT COUNT ( * ) * + 86 AS col0 FROM tab2 AS cor0
----
258

query I rowsort
SELECT col2 - + + 98 AS col2 FROM tab0 AS cor0
----
-51
-88
1

query I rowsort
SELECT - ( - + col0 ) - - - col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 70, col0 / + 29 + + + 98 )
----

query I rowsort
SELECT ALL - - 60 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT + 13 * + col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT + 13 * + col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + + col2 + + col0 FROM tab2 cor0
----
1219
3144
3961

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT DISTINCT + COUNT( - + 88 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5617
SELECT DISTINCT + COUNT ( - + 88 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5618
SELECT - 11 * 85 DIV - ( + COUNT( * ) ) FROM tab0 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-5618
SELECT - 11 * 85 / - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
311

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5619
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col1 NOT IN ( 89, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5619
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col1 NOT IN ( 89, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT 71 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
213

skipif mysql # not compatible
query I rowsort label-5620
SELECT 71 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
213

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT - MIN( DISTINCT + ( + col1 ) ) AS col0, - ( 29 ) FROM tab1
----
-5
-29

skipif mysql # not compatible
query II rowsort label-5621
SELECT - MIN ( DISTINCT + ( + col1 ) ) AS col0, - ( 29 ) FROM tab1
----
-5
-29

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, + 16 col2 FROM tab1
----
59
16
68
16
96
16

query II rowsort
SELECT ALL col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query II rowsort
SELECT - 39 AS col2, + ( + + 98 ) FROM tab1
----
-39
98
-39
98
-39
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT COUNT( DISTINCT - + 28 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5626
SELECT COUNT ( DISTINCT - + 28 ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT - ( col0 ) * 94 AS col2, 16 * - 53 FROM tab2 AS cor0
----
-4324
-848
-6016
-848
-7050
-848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL - COUNT( * ) * - 50 + + CAST( - 99 AS SIGNED ) * 99 FROM tab1 AS cor0
----
-9651

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL - COUNT ( * ) * - 50 + + CAST ( - 99 AS INTEGER ) * 99 FROM tab1 AS cor0
----
-9651

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 70 + + col1 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT 23, COUNT( * ) + + + MIN( DISTINCT - ( 36 ) ) AS col2 FROM tab0 cor0
----
23
-33

skipif mysql # not compatible
query II rowsort label-5630
SELECT 23, COUNT ( * ) + + + MIN ( DISTINCT - ( 36 ) ) AS col2 FROM tab0 cor0
----
23
-33

query I rowsort
SELECT + 52 * - + col0 AS col2 FROM tab1 AS cor0
----
-2652
-4420
-4732

query II rowsort
SELECT ALL col0 AS col0, 40 AS col1 FROM tab1 AS cor0
----
51
40
85
40
91
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5633
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - SUM( ALL - 14 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
126

skipif mysql # not compatible
query I rowsort label-5634
SELECT - SUM ( ALL - 14 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
126

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - 11 ) / - col0 BETWEEN NULL AND + col0 * + col1 + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 * col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - 49 * - + 77 AS col0 FROM tab1 AS cor0
----
3778
3787
3820

query I rowsort
SELECT ALL - col2 + + 60 AS col2 FROM tab1 AS cor0
----
-36
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) * - 48 * 49 FROM tab1, tab2 AS cor0
----
21159

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) * - 48 * 49 FROM tab1, tab2 AS cor0
----
21159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( - col1 ) col0 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT - col0 + 3 AS col2 FROM tab1
----
-48
-82
-88

query II rowsort
SELECT - 7 - col2 * - col1, 4 AS col0 FROM tab2
----
1166
4
3073
4
3879
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL - CAST( + col2 AS SIGNED ) - - 59 FROM tab0
----
-40
12
49

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - CAST ( + col2 AS INTEGER ) - - 59 FROM tab0
----
-40
12
49

query I rowsort
SELECT 80 + + 1 FROM tab1
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT DISTINCT - COUNT( * ) + + 10 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT - COUNT ( * ) + + 10 FROM tab1 AS cor0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5646
SELECT ALL + + 62 + - - 14 DIV col0 - + + col2 FROM tab1 cor0
----
-34
-6
3

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + + 62 + - - 14 / col0 - + + col2 FROM tab1 cor0
----
-34
-6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT + MAX( + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5647
SELECT + MAX ( + col2 ) FROM tab2 cor0
----
58

query I rowsort
SELECT col0 * 96 FROM tab1
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5649
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + ( - 81 ) FROM tab0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col0, + col1 * col2 + - 12 col2 FROM tab2
----
-23
1161
-40
3068
-58
3874

query II rowsort
SELECT ALL - col0 AS col2, + col2 + col1 FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL - MIN( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - MIN ( DISTINCT 72 ) AS col1 FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT + + 23 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT + + 23 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( - col2 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 32 col2, - ( + ( + - 76 ) ) * - col2 col0 FROM tab1 AS cor0
----
32
-4484
32
-5168
32
-7296

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5659
SELECT CAST( NULL AS SIGNED ) AS col0, col2 FROM tab1 cor0
--