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
----
NULL
59
NULL
68
NULL
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5660
SELECT - col1 DIV + - 29 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5660
SELECT - col1 / + - 29 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab2 WHERE + - col0 >= - col1
----
128

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab2 WHERE + - col0 >= - col1
----
128

query I rowsort
SELECT - - col1 * - + ( + col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN + 72 + col0 + - ( + col1 ) AND + col2 + + + 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT CAST( ( - col0 ) AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5663
SELECT CAST ( ( - col0 ) AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

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

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

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

query I rowsort
SELECT ALL + col0 + - - 1 FROM tab1 AS cor0
----
52
86
92

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5669
SELECT ALL + CAST( - col2 AS SIGNED ) + + 15 DIV - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + CAST ( - col2 AS INTEGER ) + + 15 / - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + ( - SUM( ALL - 42 ) ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-5670
SELECT + ( - SUM ( ALL - 42 ) ) FROM tab2 AS cor0
----
126

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

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

query I rowsort
SELECT + - 96 * - col1 FROM tab2 AS cor0
----
4896
6432
7392

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

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

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT - 36 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + col0 * + 13 FROM tab2
----
598
832
975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT CAST( - 84 AS SIGNED ) * + - col0 + + 6 + + col1 AS col0 FROM tab1 AS cor0
----
4304
7151
7697

skipif mysql # not compatible
query I rowsort label-5676
SELECT CAST ( - 84 AS INTEGER ) * + - col0 + + 6 + + col1 AS col0 FROM tab1 AS cor0
----
4304
7151
7697

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

query II rowsort
SELECT ALL + - 62 AS col0, + ( + 68 ) FROM tab0 AS cor0
----
-62
68
-62
68
-62
68

query I rowsort
SELECT - - ( - - col1 ) * + + 26 + + 82 + - col1 AS col2 FROM tab1 AS cor0
----
1257
207
432

query I rowsort
SELECT ALL 83 + - col1 FROM tab1 AS cor0 WHERE - 9 IS NOT NULL
----
36
69
78

query I rowsort
SELECT - AVG ( ALL - col2 ) FROM tab0 cor0 WHERE - ( col0 ) <= NULL
----
NULL

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

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

query I rowsort
SELECT - 81 * - col1 + ( 54 ) + col1 + 46 FROM tab2 AS cor0
----
4282
5594
6414

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT - col1 + - + 79 + + + ( + col2 ) FROM tab0
----
-113
-90
19

query I rowsort
SELECT - 77 * + 22 + - col1 FROM tab1
----
-1699
-1708
-1741

onlyif mysql # aggregate syntax: 
query II rowsort label-5688
SELECT + COUNT( 47 ) AS col2, 28 AS col2 FROM tab1
----
3
28

skipif mysql # not compatible
query II rowsort label-5688
SELECT + COUNT ( 47 ) AS col2, 28 AS col2 FROM tab1
----
3
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT ALL + col2 + - CAST( + + ( + col0 ) AS SIGNED ) * - ( col1 ) AS col0 FROM tab2
----
2369
4968
5083

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + col2 + - CAST ( + + ( + col0 ) AS INTEGER ) * - ( col1 ) AS col0 FROM tab2
----
2369
4968
5083

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

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

query I rowsort
SELECT DISTINCT col1 - + col1 + + col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5692
SELECT MAX( col1 ), - MIN( + + col2 ) + - + 48 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
47
NULL

skipif mysql # not compatible
query II rowsort label-5692
SELECT MAX ( col1 ), - MIN ( + + col2 ) + - + 48 / - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
47
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE 53 NOT BETWEEN 49 * + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + - COUNT( * ) * + MIN( col0 ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5696
SELECT + - COUNT ( * ) * + MIN ( col0 ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT + col2 - 17 FROM tab0 AS cor0
----
-7
30
82

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

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - COUNT ( DISTINCT - 26 ) AS col2 FROM tab0 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT DISTINCT 23 * + MIN( DISTINCT + col1 ) FROM tab2
----
1173

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT 23 * + MIN ( DISTINCT + col1 ) FROM tab2
----
1173

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

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL 50 / + - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - - MIN( ( 40 ) ) AS col2 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5702
SELECT - - MIN ( ( 40 ) ) AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT - + 42 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

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

query I rowsort
SELECT + + 82 * - ( - col1 ) FROM tab1 AS cor0
----
1148
3854
410

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

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

query I rowsort
SELECT ALL + - 37 * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-2178
-2469
-3538

query II rowsort
SELECT - - 23, col2 * ( - - col1 ) AS col0 FROM tab1 cor0
----
23
1344
23
295
23
3196

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

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

query I rowsort
SELECT 66 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN - ( - + col1 ) AND NULL
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 85, col1 col2 FROM tab0
----
1275
81
7395
21
8245
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT - COUNT( - 90 ) AS col2, + MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-5714
SELECT - COUNT ( - 90 ) AS col2, + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-3
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT + ( - + CAST( - col2 AS SIGNED ) ) + + 65 FROM tab0
----
112
164
75

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + ( - + CAST ( - col2 AS INTEGER ) ) + + 65 FROM tab0
----
112
164
75

query I rowsort
SELECT DISTINCT - col2 / 44 + - + col1 FROM tab2 WHERE NOT NULL BETWEEN col0 * ( + + col2 ) AND + 0 * - 73
----

query I rowsort
SELECT col0 + - 57 - col0 * - col0 * + col2 * - + 27 FROM tab2
----
-1314047
-4423673
-8808732

query II rowsort
SELECT DISTINCT - col2 * + + col2 AS col2, col1 * - col2 * 80 + - + 68 FROM tab0
----
-100
-16868
-2209
-304628
-9801
-7988

query I rowsort
SELECT 11 FROM tab0 AS cor0 WHERE + 68 IS NOT NULL
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT DISTINCT + CAST( + AVG ( DISTINCT - + 93 ) AS SIGNED ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5720
SELECT DISTINCT + CAST ( + AVG ( DISTINCT - + 93 ) AS INTEGER ) FROM tab1 AS cor0
----
-93

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL 14 - - ( - ( + MAX( - col1 ) ) ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 14 - - ( - ( + MAX ( - col1 ) ) ) FROM tab1
----
19

query I rowsort
SELECT DISTINCT + ( - 20 ) - - col1 AS col0 FROM tab0
----
-19
1
61

query I rowsort
SELECT ALL 60 + + col1 AS col1 FROM tab0
----
141
61
81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT ALL - COUNT( * ) - 91 + 71 * + + 20 FROM tab1
----
1326

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - COUNT ( * ) - 91 + 71 * + + 20 FROM tab1
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT 72 + - COUNT( * ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-5730
SELECT 72 + - COUNT ( * ) AS col0 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-5731
SELECT COUNT( DISTINCT 16 ) + + + 45, + 46 AS col1 FROM tab2
----
46
46

skipif mysql # not compatible
query II rowsort label-5731
SELECT COUNT ( DISTINCT 16 ) + + + 45, + 46 AS col1 FROM tab2
----
46
46

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

query I rowsort
SELECT ALL + col0 * - 5 AS col1 FROM tab1 AS cor0
----
-255
-425
-455

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 85 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 * + - 57, - col0 + - + col1 col1 FROM tab2 AS cor0
----
-2622
-97
-3648
-141
-4275
-142

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 11 + - 34 - 13 + - col2 + + col0 + - - 83 >= NULL
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col2 = - 44
----

query I rowsort
SELECT ALL - 10 + + col1 AS col1 FROM tab2 WHERE + col0 / 38 + + col0 IS NOT NULL
----
41
57
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT ALL 51 - ( + COUNT( * ) ) col2 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5745
SELECT ALL 51 - ( + COUNT ( * ) ) col2 FROM tab1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5746
SELECT DISTINCT * FROM tab0 WHERE NOT + 87 * 24 * - col1 NOT IN ( col2 * - col2 / - + CAST( NULL AS SIGNED ) + 24 + + 82 )
----

skipif mysql # not compatible
query III rowsort label-5746
SELECT DISTINCT * FROM tab0 WHERE NOT + 87 * 24 * - col1 NOT IN ( col2 * - col2 / - + CAST ( NULL AS INTEGER ) + 24 + + 82 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 * 68 * - + col0 * 79 + - col1 + + - 82 col0, + col0 * col0 * 90 AS col0 FROM tab2 AS cor0
----
-2471253
190440
-3438239
368640
-4029149
506250

query I rowsort
SELECT - - 86 + + 67 * - col1 * - 96 * - col1 FROM tab1 AS cor0
----
-1260586
-14208202
-160714

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT - 37 + + 77 DIV - 26 + + 45 AS col0 FROM tab0 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-5751
SELECT - 37 + + 77 / - 26 + + 45 AS col0 FROM tab0 cor0
----
6
6
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT + col2 DIV - 79 + + 8 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-10753
-2360
-25568

skipif mysql # not compatible
query I rowsort label-5752
SELECT + col2 / - 79 + + 8 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-10753
-2360
-25568

query I rowsort
SELECT col0 * - + 56 AS col0 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT ALL col0 + + - col0 FROM tab2 cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5756
SELECT COUNT( + + col0 ) AS col1, + 4 * - COUNT( * ) * + CAST( NULL AS SIGNED ) / + 4 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5756
SELECT COUNT ( + + col0 ) AS col1, + 4 * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + 4 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL + COUNT( * ) + + + COUNT( * ) * - - 18 AS col1 FROM tab0, tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) * - - 18 AS col1 FROM tab0, tab0 AS cor0
----
171

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT + MIN( ALL - col0 ) col2 FROM tab2 AS cor0
----
-75

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

query II rowsort
SELECT + 82 AS col0, 12 AS col0 FROM tab1 AS cor0
----
82
12
82
12
82
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT ALL col0 DIV col2 + col1 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL col0 / col2 + col1 FROM tab0 AS cor0
----
1
29
81

query I rowsort
SELECT + + 59 * + col0 FROM tab2 AS cor0
----
2714
3776
4425

query II rowsort
SELECT + 2 AS col2, + 69 FROM tab0 cor0
----
2
69
2
69
2
69

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT DISTINCT - COUNT( - + 91 ) + - - COUNT( * ) + 8 * - MAX( - col0 ) col2 FROM tab2
----
368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT DISTINCT - COUNT ( - + 91 ) + - - COUNT ( * ) + 8 * - MAX ( - col0 ) col2 FROM tab2
----
368

onlyif mysql # DIV for integer division: 
query I rowsort label-5771
SELECT 32 DIV + + col1 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5771
SELECT 32 / + + col1 FROM tab1
----
0
2
6

query I rowsort
SELECT + 28 * + col0 FROM tab1
----
1428
2380
2548

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT - + col2 + - ( + - 86 ) DIV + col2 AS col1 FROM tab2 AS cor0
----
-20
-38
-57

skipif mysql # not compatible
query I rowsort label-5773
SELECT - + col2 + - ( + - 86 ) / + col2 AS col1 FROM tab2 AS cor0
----
-20
-38
-57

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

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

query I rowsort
SELECT ALL + col2 + + ( - 51 ) FROM tab2
----
-11
-28
7

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT ALL col2 DIV - col0 + + 85 FROM tab2 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL col2 / - col0 + + 85 FROM tab2 AS cor0
----
85
85
85

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

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

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

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

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

query II rowsort
SELECT - 1, 24 AS col0 FROM tab1
----
-1
24
-1
24
-1
24

query II rowsort
SELECT ALL 53, col2 FROM tab0 AS cor0
----
53
10
53
47
53
99

onlyif mysql # DIV for integer division: 
query III rowsort label-5787
SELECT + - 11 AS col2, - 80, ( col1 ) DIV col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to 216b7e398e93838be0a6094282210d7a

skipif mysql # not compatible
query III rowsort label-5787
SELECT + - 11 AS col2, - 80, ( col1 ) / col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to 216b7e398e93838be0a6094282210d7a

query I rowsort
SELECT col2 * - - 31 * - col2 * + col1 AS col2 FROM tab1
----
-3999744
-539555
-6737168

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + MIN( ALL - 57 ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-5789
SELECT + MIN ( ALL - 57 ) AS col2 FROM tab2
----
-57

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

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT CAST ( + + SUM ( ALL + col2 ) AS INTEGER ) FROM tab2
----
121

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----

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

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
97
21
87
81
15

query I rowsort
SELECT ALL - + col0 * + col2 + - - col0 AS col2 FROM tab2 cor0
----
-1012
-2496
-4275

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + - + col0 * - col1 * col1 col1 FROM tab2 AS cor0
----
119575
336604
379385

query I rowsort
SELECT - 72 + + col2 FROM tab0
----
-25
-62
27

query I rowsort
SELECT col1 * - col0 + - 49 FROM tab1
----
-4326
-474
-763

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5800
SELECT ALL col1 col1, col2 DIV col1 AS 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-5800
SELECT ALL col1 col1, col2 / col1 AS col1 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT 93 + + col0 * 81 * - + 1 AS col2 FROM tab1
----
-4038
-6792
-7278

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT ALL 45 DIV - + 93 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 45 / - + 93 AS col1 FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5805
SELECT ALL + 38 DIV - + COUNT( * ) col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5805
SELECT ALL + 38 / - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + 48 + + ( col2 ) - + col1 + - col2 FROM tab1 AS cor0
----
1
34
43

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5808
SELECT - 11 FROM tab0 WHERE ( - 31 + + CAST( - col2 - - 29 AS DECIMAL ) ) IN ( col2 + ( - 64 + + col1 / - ( 83 + 85 / col0 ) ) )
----

skipif mysql # not compatible
query I rowsort label-5808
SELECT - 11 FROM tab0 WHERE ( - 31 + + CAST ( - col2 - - 29 AS REAL ) ) IN ( col2 + ( - 64 + + col1 / - ( 83 + 85 / col0 ) ) )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5810
SELECT 64 DIV col0 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5810
SELECT 64 / col0 AS col0 FROM tab2
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT COUNT( * ) * 26 AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5812
SELECT COUNT ( * ) * 26 AS col0 FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT DISTINCT col0 DIV 63 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT col0 / 63 AS col1 FROM tab2
----
0
1

query I rowsort
SELECT col2 * - ( 94 ) AS col0 FROM tab0
----
-4418
-9306
-940

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

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

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

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

query I rowsort
SELECT - col1 + + 2 AS col2 FROM tab0
----
-19
-79
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + col1 / - 92 IS NOT NULL
----

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

query I rowsort
SELECT - 38 * 29 AS col2 FROM tab1
----
-1102
-1102
-1102

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT ALL + ( COUNT( * ) ) + 31 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL + ( COUNT ( * ) ) + 31 FROM tab0
----
34

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5824
SELECT + COUNT( * ) * 44 - CAST( + ( COUNT( * ) ) AS SIGNED ) FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-5824
SELECT + COUNT ( * ) * 44 - CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab2
----
129

query I rowsort
SELECT - 28 * - ( col2 * - 18 ) FROM tab1
----
-29736
-34272
-48384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT ALL - 17 FROM tab1 WHERE NOT NULL BETWEEN + col0 - col1 AND ( + col1 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL - 17 FROM tab1 WHERE NOT NULL BETWEEN + col0 - col1 AND ( + col1 - + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT col1 + + 32 AS col2 FROM tab0
----
113
33
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 79 / + 52 ) >= col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) NOT BETWEEN - 43 AND ( 89 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE 97 + - 21 <= col1 * - col0
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE 97 + - 21 <= col1 * - col0
----
0

query I rowsort
SELECT - col1 * 29 + 3 * + 23 AS col0 FROM tab0
----
-2280
-540
40

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

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

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

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

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

query I rowsort
SELECT 86 + - ( - 5 ) AS col2 FROM tab0
----
91
91
91

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

query I rowsort
SELECT ALL - ( 2 ) AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + - 55 AS col0 FROM tab1 cor0
----
-55

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

query I rowsort
SELECT col1 * + col1 + - 74 AS col0 FROM tab0 cor0 WHERE 81 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - 47 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - 47 FROM tab0 AS cor0
----
-138

query I rowsort
SELECT DISTINCT 73 + - 15 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL + col1 * + 62 FROM tab2 AS cor0 WHERE col1 + + col2 IS NOT NULL
----
3162
4154
4774

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT ALL - col1 + - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - col1 + - col0 / - col1 AS col2 FROM tab2 AS cor0
----
-51
-66
-77

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

query I rowsort
SELECT DISTINCT - col0 + 67 * - 38 FROM tab1 AS cor0
----
-2597
-2631
-2637

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5849
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) IN ( CAST( + 14 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5849
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 ) IN ( CAST ( + 14 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + COUNT( DISTINCT - 99 ) - + 90 * - 11 AS col2 FROM tab0
----
991

skipif mysql # not compatible
query I rowsort label-5850
SELECT + COUNT ( DISTINCT - 99 ) - + 90 * - 11 AS col2 FROM tab0
----
991

query I rowsort
SELECT DISTINCT - col1 + 33 * col1 AS col1 FROM tab2
----
1632
2144
2464

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

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

query I rowsort
SELECT - - ( + ( col2 ) ) * - col2 + col0 AS col0 FROM tab1 AS cor0
----
-3396
-4533
-9165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT + col1 * CAST( col0 AS SIGNED ) + - 62 AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5854
SELECT + col1 * CAST ( col0 AS INTEGER ) + - 62 AS col1 FROM tab1 AS cor0 WHERE - ( + col0 ) - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NULL <> 52
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT MIN( ALL - col0 ) col1 FROM tab0
----
-97

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

query I rowsort
SELECT col0 - - - 39 AS col0 FROM tab2
----
25
36
7

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT + + col0 BETWEEN - 87 AND col2 * col0
----

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

query I rowsort
SELECT DISTINCT col1 * - - 0 AS col0 FROM tab1 cor0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5864
SELECT + MIN( ALL - col0 ) DIV + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-5864
SELECT + MIN ( ALL - col0 ) / + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT - COUNT( * ) DIV + 49 col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5865
SELECT - COUNT ( * ) / + 49 col0 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT DISTINCT - MIN( - col2 ) * - + ( 33 ) FROM tab0 cor0
----
-3267

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT - MIN ( - col2 ) * - + ( 33 ) FROM tab0 cor0
----
-3267

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

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

query I rowsort
SELECT ALL - 86 AS col1 FROM tab1 AS cor0 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT ALL 16 * + 51 * + col0 AS col0 FROM tab1 cor0
----
41616
69360
74256

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 * + ( + col0 ) ) > col1 - - 84 * 43 OR NULL NOT IN ( - col2 * - ( + 68 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5872
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ), - 32 + COUNT( * ) * - ( - 31 ) AS col0 FROM tab0
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5872
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ), - 32 + COUNT ( * ) * - ( - 31 ) AS col0 FROM tab0
----
NULL
61

query I rowsort
SELECT col0 * col1 AS col2 FROM tab2 WHERE NOT + col1 < 13
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( - ( 4 ) ) col1 FROM tab1 WHERE NOT NULL = col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + 96 * + ( + SUM( - col1 ) ) FROM tab0
----
-9888

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 96 * + ( + SUM ( - col1 ) ) FROM tab0
----
-9888

query I rowsort
SELECT + 43 AS col2 FROM tab1 WHERE NOT ( - + 40 ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL 74 * col2 AS col0 FROM tab2
----
1702
2960
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-5878
SELECT ALL ( - col1 ) DIV - + col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - 0 + col0 BETWEEN ( NULL ) AND col1
----
1
21

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5882
SELECT ALL MIN( 47 ) / - SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL MIN ( 47 ) / - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL + col2 * + col0 * - - 3 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
14637
14960
18473

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + col2 * + col0 * - - 3 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
14637
14960
18473

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT ALL - 43 + + COUNT( * ) + + 17 + + COUNT( * ) + + + MAX( + col2 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL - 43 + + COUNT ( * ) + + 17 + + COUNT ( * ) + + + MAX ( + col2 ) FROM tab2 AS cor0
----
38

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

query I rowsort
SELECT DISTINCT col2 * + - col0 + col1 FROM tab1 WHERE + col0 * 98 IS NOT NULL
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL COUNT( * ) - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL COUNT ( * ) - COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT DISTINCT - col1 * - col1 * + col1 + + - 90 DIV + col2 * col1 DIV col1 col1 FROM tab1
----
103822
124
2744

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5892
SELECT DISTINCT - col1 * - col1 * + col1 + + - 90 / + col2 * col1 / col1 col1 FROM tab1
----
103822
124
2744

query I rowsort
SELECT DISTINCT + col0 * - - 13 + + - col1 + + col2 FROM tab1
----
1159
1204
745

query II rowsort
SELECT DISTINCT col0 AS col1, col2 - + col1 AS col1 FROM tab1
----
51
82
85
54
91
21

query I rowsort
SELECT col0 * + col0 - - col1 AS col0 FROM tab1 AS cor0
----
2615
7230
8328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT - CAST( - col0 AS SIGNED ) * + col2 - + col1 FROM tab0 AS cor0
----
624
849
9602

skipif mysql # not compatible
query I rowsort label-5896
SELECT - CAST ( - col0 AS INTEGER ) * + col2 - + col1 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT - col2 - + col1 + - col0 * - + col0 + + + 54 AS col2 FROM tab2 cor0
----
2096
4033
5554

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT MAX( DISTINCT - ( col0 ) ) - SUM( ALL - - 90 ) FROM tab2 AS cor0
----
-316

skipif mysql # not compatible
query I rowsort label-5898
SELECT MAX ( DISTINCT - ( col0 ) ) - SUM ( ALL - - 90 ) FROM tab2 AS cor0
----
-316

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT DISTINCT COUNT( - 28 ) + - - MAX( DISTINCT - 81 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT COUNT ( - 28 ) + - - MAX ( DISTINCT - 81 ) FROM tab2
----
-78

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

query I rowsort
SELECT - + col1 * + 75 AS col2 FROM tab0 AS cor0
----
-1575
-6075
-75

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

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab1 AS cor0 WHERE col1 IN ( + col0, - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5904
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) col0, col1 * - col2 FROM tab2 AS cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5904
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) col0, col1 * - col2 FROM tab2 AS cor0
----
NULL
-1173
NULL
-3080
NULL
-3886

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

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

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL col2 / - - col2 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT COUNT( * ) * - 71 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT COUNT ( * ) * - 71 FROM tab0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT ALL col1 / - - ( + CAST( NULL AS SIGNED ) ) col0, 39 + + + CAST( NULL AS SIGNED ) + + - 10 + col1 / - col0 AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

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

query I rowsort
SELECT - col1 - + + 28 FROM tab2 WHERE NOT - + col2 IS NULL
----
-105
-79
-95

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

query I rowsort
SELECT - 99 * - col0 AS col0 FROM tab0 AS cor0
----
1485
8613
9603

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE + ( + col0 ) < 42
----

query I rowsort
SELECT ALL + 14 + + - col0 FROM tab1 AS cor0
----
-37
-71
-77

query II rowsort
SELECT DISTINCT col0 * col1 + + 13, col1 * col0 * - 13 + + - col1 AS col1 FROM tab1 AS cor0
----
4290
-55648
438
-5530
727
-9296

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5919
SELECT ALL + CAST( ( - - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + CAST ( ( - - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT ALL - 34 * 97, - ( col2 ) AS col0 FROM tab0 AS cor0
----
-3298
-10
-3298
-47
-3298
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT DISTINCT CAST( + 43 AS SIGNED ) + - 59 AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT CAST ( + 43 AS INTEGER ) + - 59 AS col0 FROM tab0 AS cor0
----
-16

query I rowsort
SELECT - 30 AS col1 FROM tab1 AS cor0 WHERE col2 / - col2 NOT BETWEEN ( + ( + col0 ) ) AND + 51
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + col0 * - 89 + 52 * col1 FROM tab2 cor0 WHERE + col2 * + 88 / - col2 + - - col0 * + 42 + + col2 + col0 IN ( + 64 + + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 78 = - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5925
SELECT * FROM tab0 AS cor0 WHERE - 36 + - 53 IN ( - + CAST( NULL AS DECIMAL ) * col1, - 97 - - col2 )
----

skipif mysql # not compatible
query III rowsort label-5925
SELECT * FROM tab0 AS cor0 WHERE - 36 + - 53 IN ( - + CAST ( NULL AS REAL ) * col1, - 97 - - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5926
SELECT DISTINCT - col0 + + CAST( NULL AS DECIMAL ), col0 DIV col1 AS col0 FROM tab2 cor0
----
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-5926
SELECT DISTINCT - col0 + + CAST ( NULL AS REAL ), col0 / col1 AS col0 FROM tab2 cor0
----
NULL
0
NULL
1

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

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

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

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

query I rowsort
SELECT ALL 30 + + + 99 AS col2 FROM tab0
----
129
129
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL COUNT( * ) - - 41 + + 32 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL COUNT ( * ) - - 41 + + 32 FROM tab2
----
76

query I rowsort
SELECT + col2 * - 31 + + - col1 FROM tab2
----
-1317
-1865
-764

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT ALL + col0 DIV + col1 - + 18 - col0 AS col2 FROM tab0
----
-101
-18
-33

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL + col0 / + col1 - + 18 - col0 AS col2 FROM tab0
----
-101
-18
-33

query I rowsort
SELECT 55 + 63 FROM tab1
----
118
118
118

query I rowsort
SELECT + - col2 FROM tab1 cor0 WHERE - 99 <= - - 21
----
-59
-68
-96

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5936
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - 3 < - + CAST( - col1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5936
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - 3 < - + CAST ( - col1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 < - - 13
----

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

query II rowsort
SELECT DISTINCT - 21 * + 13 AS col0, 56 FROM tab2 AS cor0
----
-273
56

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL - col0 * - 27 FROM tab1 AS cor0
----
1377
2295
2457

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

skipif mysql # not compatible
query II rowsort label-5943
SELECT DISTINCT - 96, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-96
3

query I rowsort
SELECT + 30 AS col1 FROM tab1 cor0
----
30
30
30

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

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

query I rowsort
SELECT ALL - col2 * - 6 + + - 22 FROM tab2 AS cor0
----
116
218
326

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 68 < NULL
----

query I rowsort
SELECT 46 + + 28 FROM tab1
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL - MAX( ALL + + 0 ) col0 FROM tab0
----
0

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

query I rowsort
SELECT col0 * col1 + + + col0 AS col2 FROM tab2
----
2392
4992
5100

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

query I rowsort
SELECT ALL 35 * - + col1 FROM tab1
----
-1645
-175
-490

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 30 + - col1 + + - 78 * + - col0 >= NULL
----

query I rowsort
SELECT ALL ( + + col1 ) * + - col1 AS col0 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL 51 + + 0 + + col0 FROM tab1 AS cor0
----
102
136
142

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT DISTINCT 41 * ( - + 89 ), COUNT( * ) AS col0 FROM tab2
----
-3649
3

skipif mysql # not compatible
query II rowsort label-5957
SELECT DISTINCT 41 * ( - + 89 ), COUNT ( * ) AS col0 FROM tab2
----
-3649
3

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 = 10
----

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

skipif mysql # not compatible
query III rowsort label-5960
SELECT * FROM tab1 WHERE - - col2 >= - - ( + - ( + CAST ( + + col2 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL <> + col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT 50 + col0 DIV - 44 FROM tab2 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5962
SELECT 50 + col0 / - 44 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT - col1 + + 44 FROM tab0 AS cor0
----
-37
23
43

query I rowsort
SELECT - col1 * + 93 + - col1 + col2 + col2 AS col1 FROM tab1 AS cor0
----
-1124
-352
-4282

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE - 64 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5966
SELECT CAST( + col0 AS SIGNED ) + 21 AS col2 FROM tab1 AS cor0
----
106
112
72

skipif mysql # not compatible
query I rowsort label-5966
SELECT CAST ( + col0 AS INTEGER ) + 21 AS col2 FROM tab1 AS cor0
----
106
112
72

query I rowsort
SELECT DISTINCT ( col1 ) + - - 58 AS col0 FROM tab2 AS cor0
----
109
125
135

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5969
SELECT - SUM( + col1 ) AS col0, SUM( col0 ) AS col1 FROM tab2
----
-195
185

skipif mysql # not compatible
query II rowsort label-5969
SELECT - SUM ( + col1 ) AS col0, SUM ( col0 ) AS col1 FROM tab2
----
-195
185

query I rowsort
SELECT DISTINCT - col2 - 85 * - - 48 FROM tab0
----
-4090
-4127
-4179

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - - col1 = 45 * - ( 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT ALL + COUNT( * ) - + MAX( col0 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL + COUNT ( * ) - + MAX ( col0 ) AS col2 FROM tab2
----
-72

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

query I rowsort
SELECT - 41 + - + 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 805b9eac28b33d003ecdf3c2f31b8588

onlyif mysql # aggregate syntax: 
query II rowsort label-5975
SELECT + COUNT( * ) AS col2, - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-22

skipif mysql # not compatible
query II rowsort label-5975
SELECT + COUNT ( * ) AS col2, - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5976
SELECT + 86, + COUNT( DISTINCT + - col2 ) DIV + + 41 AS col2 FROM tab0 cor0
----
86
0

skipif mysql # not compatible
query II rowsort label-5976
SELECT + 86, + COUNT ( DISTINCT + - col2 ) / + + 41 AS col2 FROM tab0 cor0
----
86
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT SUM( 73 ) FROM tab2 cor0
----
219

skipif mysql # not compatible
query I rowsort label-5977
SELECT SUM ( 73 ) FROM tab2 cor0
----
219

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2 cor0
----
70

query I rowsort
SELECT 82 * + col2 * + 3 AS col1 FROM tab2 cor0
----
14268
5658
9840

query I rowsort
SELECT ALL col2 + col0 + - col0 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT DISTINCT + 67 + + col2 * + col1 FROM tab0
----
166
277
3874

query I rowsort
SELECT ALL ( + 60 ) AS col2 FROM tab2
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT MAX( 98 ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-5984
SELECT MAX ( 98 ) AS col0 FROM tab1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5985
SELECT - ( 46 ) DIV col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5985
SELECT - ( 46 ) / col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5986
SELECT DISTINCT - col0 + CAST( - col2 AS SIGNED ) + + col1 col0, 20 FROM tab0 cor0
----
-195
20
-76
20
19
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5986
SELECT DISTINCT - col0 + CAST ( - col2 AS INTEGER ) + + col1 col0, 20 FROM tab0 cor0
----
-195
20
-76
20
19
20

query I rowsort
SELECT DISTINCT + + 79 * + col0 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT - + ( + COUNT( ALL col2 ) ) AS col1 FROM tab1 AS cor0 WHERE 83 IN ( - - col0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5988
SELECT - + ( + COUNT ( ALL col2 ) ) AS col1 FROM tab1 AS cor0 WHERE 83 IN ( - - col0, col2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-5989
SELECT COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-27

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

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

query I rowsort
SELECT DISTINCT - 5 * + col1 AS col0 FROM tab2
----
-255
-335
-385

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT DISTINCT - col1 DIV + 12 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT - col1 / + 12 FROM tab1
----
-1
-3
0

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

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

query II rowsort
SELECT + 55 * col1, - col1 AS col2 FROM tab0 AS cor0
----
1155
-21
4455
-81
55
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5996
SELECT DISTINCT + col1 * - CAST( 39 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1989
-2613
-3003

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT + col1 * - CAST ( 39 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1989
-2613
-3003

query I rowsort
SELECT ALL + ( 83 ) + + + ( - - col1 ) FROM tab1 AS cor0
----
130
88
97

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

query I rowsort
SELECT col1 - - 61 * - col1 * - + col0 AS col1 FROM tab1 AS cor0
----
25930
260944
43568

query I rowsort
SELECT + 45 * - col1 - - col2 FROM tab2 AS cor0
----
-2272
-2957
-3425

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT - + 47 + - 44 * COUNT( * ) AS col1 FROM tab0 cor0
----
-179

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - + 47 + - 44 * COUNT ( * ) AS col1 FROM tab0 cor0
----
-179

query I rowsort
SELECT ALL + col1 + + + col1 * + 19 AS col2 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT DISTINCT - 60 * - - col2 AS col0 FROM tab0
----
-2820
-5940
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT ALL + 32 * - 82 * + 86 * CAST( - - col1 AS SIGNED ) FROM tab0
----
-18278784
-225664
-4738944

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL + 32 * - 82 * + 86 * CAST ( - - col1 AS INTEGER ) FROM tab0
----
-18278784
-225664
-4738944

onlyif mysql # DIV for integer division: 
query I rowsort label-6005
SELECT ALL 70 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL 70 / - col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + + COUNT( * ) + MIN( 11 ) AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN - col0 AND ( col1 ) * - + col2 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT + + COUNT ( * ) + MIN ( 11 ) AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN - col0 AND ( col1 ) * - + col2 + col0
----
NULL

query I rowsort
SELECT DISTINCT - + 6 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + 92 * COUNT( * ) * - - 90 - + 4 + + - 18 FROM tab2 AS cor0
----
24818

skipif mysql # not compatible
query I rowsort label-6008
SELECT + 92 * COUNT ( * ) * - - 90 - + 4 + + - 18 FROM tab2 AS cor0
----
24818

query I rowsort
SELECT DISTINCT + 53 * + col0 AS col0 FROM tab1 AS cor0
----
2703
4505
4823

query I rowsort
SELECT ALL + - col0 * + + 83 + col1 AS col0 FROM tab0 AS cor0
----
-1164
-7200
-8050

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - ( + 42 ) * - col2 AS col1, col0 col1 FROM tab0
----
29610
15
36540
87
403326
97

query I rowsort
SELECT - ( + 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

query I rowsort
SELECT ALL - ( col2 ) * 70 + + col1 * ( - col2 ) AS col0 FROM tab0 cor0
----
-7029
-7097
-910

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 * + 88 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
4488
-85
7480
-91
8008

query I rowsort
SELECT + col0 * + 83 + + 64 + col0 * col1 AS col2 FROM tab1 AS cor0
----
11894
5011
7544

query I rowsort
SELECT - col1 + - 11 * + - col2 FROM tab0
----
1088
436
89

query I rowsort
SELECT DISTINCT col1 * 19 * col2 * - + col1 AS col1 FROM tab0
----
-1881
-5858973
-83790

query I rowsort
SELECT + col0 + - + 23 FROM tab1
----
28
62
68

query III rowsort
SELECT * FROM tab2 WHERE - 58 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6025
SELECT ALL * FROM tab2 WHERE NOT - col2 * + - col0 NOT BETWEEN 27 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6025
SELECT ALL * FROM tab2 WHERE NOT - col2 * + - col0 NOT BETWEEN 27 AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT + col2 + - 78 / + + 82 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 > col0
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT ALL CAST( - 54 AS SIGNED ) AS col2 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL CAST ( - 54 AS INTEGER ) AS col2 FROM tab0
----
-54
-54
-54

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) - col2 * + - 69 col1 FROM tab0
----
3228
603
6734

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6031
SELECT ALL col2 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL col2 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + + 58 + + col0 FROM tab1 cor0
----
109
143
149

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col2 * + + 42 + 5 + + 89 - + - col2 FROM tab2 AS cor0
----
1083
1814
2588

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

query II rowsort
SELECT col1 AS col0, 89 * - + col2 AS col0 FROM tab0 cor0
----
1
-8811
21
-890
81
-4183

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT - col2 DIV 37 DIV 34 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6038
SELECT - col2 / 37 / 34 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL 48 * + ( + col1 ) * ( - col2 ) + + col0 * - col0 AS col2, col2 * col0 FROM tab1
----
-161689
6188
-21385
5015
-67113
4896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6040
SELECT ALL COUNT( * ) DIV + COUNT( * ) AS col2, 53 FROM tab0
----
1
53

skipif mysql # not compatible
query II rowsort label-6040
SELECT ALL COUNT ( * ) / + COUNT ( * ) AS col2, 53 FROM tab0
----
1
53

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 74 * col2 col1 FROM tab1
----
-21830
-236504
-99456

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL SUM( DISTINCT - 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL SUM ( DISTINCT - 46 ) FROM tab2
----
-46

query I rowsort
SELECT col1 * col0 * - 3 AS col0 FROM tab0
----
-291
-3645
-5481

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND ( + - 19 ) / 18 + + 19 * col2 + + 72 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6047
SELECT + COUNT( * ) DIV - - 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT + COUNT ( * ) / - - 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - SUM( ALL - + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6048
SELECT - SUM ( ALL - + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-6049
SELECT ALL - + 14 + - col2 DIV + col0 * 1 * - + ( + 91 ) col1 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6049
SELECT ALL - + 14 + - col2 / + col0 * 1 * - + ( + 91 ) col1 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 <> NULL
----

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

query I rowsort
SELECT DISTINCT ( - - 20 ) + col0 FROM tab1 AS cor0
----
105
111
71

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

query I rowsort
SELECT DISTINCT 15 + col0 + 0 * + col2 - + + col1 FROM tab0 AS cor0
----
-51
111
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6055
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + 23 + + 33 * - - CAST( + col2 AS DECIMAL ) * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6055
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + + 23 + + 33 * - - CAST ( + col2 AS REAL ) * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 <> + col2
----

query I rowsort
SELECT ALL - 17 + col1 AS col0 FROM tab0 cor0
----
-16
4
64

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT ALL col2 * - + col1 * CAST( 31 AS SIGNED ) + + 94 * + 37 * - + ( - 27 ) AS col1 FROM tab1
----
-5170
52242
84761

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL col2 * - + col1 * CAST ( 31 AS INTEGER ) + + 94 * + 37 * - + ( - 27 ) AS col1 FROM tab1
----
-5170
52242
84761

query I rowsort
SELECT - col1 * + col2 + + 30 * 14 * - col1 FROM tab0
----
-37827
-519
-9030

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6064
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, CAST( NULL AS SIGNED ) / - 25 )
----

skipif mysql # not compatible
query III rowsort label-6064
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1, CAST ( NULL AS INTEGER ) / - 25 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= + 30 + - col0 * col0 * + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + ( + 85 ) + + 97 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6067
SELECT DISTINCT + MAX( ALL + + col0 ) + - 51 AS col0 FROM tab1 AS cor0 WHERE NOT 87 + 71 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT + MAX ( ALL + + col0 ) + - 51 AS col0 FROM tab1 AS cor0 WHERE NOT 87 + 71 <= NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT DISTINCT + 12 * - - 77 + - CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1023
934
971

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + 12 * - - 77 + - CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1023
934
971

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 78 <= 72
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT ALL COUNT( * ) * + 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL COUNT ( * ) * + 85 FROM tab1
----
255

query I rowsort
SELECT DISTINCT col1 * + - ( - col0 ) AS col0 FROM tab0
----
1215
1827
97

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

skipif mysql # not compatible
query I rowsort label-6074
SELECT + ( CAST ( + - 74 AS INTEGER ) ) AS col0 FROM tab2
----
-74
-74
-74

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= 3
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 11 * + - col2 NOT BETWEEN + ( - col2 ) AND - 30
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT - ( + ( + - MAX( - - 19 ) ) ) col0 FROM tab2
----
19

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

query I rowsort
SELECT ( 15 ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT - + 58 * + ( col1 ) AS col1 FROM tab2 WHERE NOT col1 + + - col2 * + + col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1, 76 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - col2
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT + col2 DIV - col0 + 76 AS col2 FROM tab1 cor0
----
75
76
76

skipif mysql # not compatible
query I rowsort label-6086
SELECT + col2 / - col0 + 76 AS col2 FROM tab1 cor0
----
75
76
76

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

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

query I rowsort
SELECT 93 + - col0 - + 19 FROM tab0 AS cor0
----
-13
-23
59

query I rowsort
SELECT ( - 17 ) + col2 FROM tab0 AS cor0
----
-7
30
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT col2 + + col1 DIV - - col0 + - + 89 FROM tab1
----
-21
-30
7

skipif mysql # not compatible
query I rowsort label-6090
SELECT col2 + + col1 / - - col0 + - + 89 FROM tab1
----
-21
-30
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 26 <> NULL
----

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

query I rowsort
SELECT DISTINCT col0 + - + 24 FROM tab2
----
22
40
51

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

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

query I rowsort
SELECT + col1 - 76 AS col0 FROM tab1 cor0
----
-29
-62
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6097
SELECT ALL + col0 * col2 * col1 * + col1 + col1, col0 / - + 41 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * + col2 + + ( col2 ) AND CAST( - 83 AS SIGNED ) - - + col2
----

skipif mysql # not compatible
query II rowsort label-6097
SELECT ALL + col0 * col2 * col1 * + col1 + col1, col0 / - + 41 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * + col2 + + ( col2 ) AND CAST ( - 83 AS INTEGER ) - - + col2
----

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

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

skipif mysql # not compatible
query I rowsort label-6099
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * + MAX ( col2 ) FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT ALL MIN( DISTINCT - col0 ) AS col0, + 50 FROM tab1 AS cor0
----
-91
50

skipif mysql # not compatible
query II rowsort label-6101
SELECT ALL MIN ( DISTINCT - col0 ) AS col0, + 50 FROM tab1 AS cor0
----
-91
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT DISTINCT - - COUNT( * ) * MIN( DISTINCT + - 65 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6103
SELECT DISTINCT - - COUNT ( * ) * MIN ( DISTINCT + - 65 ) col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col2 * ( - - 7 ) FROM tab2 AS cor0
----
161
280
406

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 > + - 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + + col1 + + 17 FROM tab1 WHERE NOT + + col0 + 47 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 43 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT - 46 + 44 FROM tab2
----
-2
-2
-2

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

onlyif mysql # DIV for integer division: 
query III rowsort label-6114
SELECT - col0 DIV - + col1, col1 * col2 AS col0, col1 col2 FROM tab1
----
9 values hashing to f76fac0835d4201a25aaf1686b1900f2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6114
SELECT - col0 / - + col1, col1 * col2 AS col0, col1 col2 FROM tab1
----
9 values hashing to f76fac0835d4201a25aaf1686b1900f2

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

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

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

skipif mysql # not compatible
query I rowsort label-6116
SELECT + - 40 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-13

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6117
SELECT CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) col1 FROM tab0 AS cor0
----
9

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

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

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

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

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

query I rowsort
SELECT DISTINCT 32 + + col0 + - + 94 FROM tab2
----
-16
13
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6123
SELECT CAST( + 57 AS SIGNED ) - - + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-6123
SELECT CAST ( + 57 AS INTEGER ) - - + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT COUNT( * ) * + 64 FROM tab0 WHERE NULL IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-6124
SELECT COUNT ( * ) * + 64 FROM tab0 WHERE NULL IS NULL
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-6125
SELECT col2 + - 23 + col1 + + 22 DIV - col0 * + + 9 FROM tab2
----
102
51
94

skipif mysql # not compatible
query I rowsort label-6125
SELECT col2 + - 23 + col1 + + 22 / - col0 * + + 9 FROM tab2
----
102
51
94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6126
SELECT CAST( NULL AS DECIMAL ) + - - CAST( - 36 AS SIGNED ) / - CAST( col2 AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6126
SELECT CAST ( NULL AS REAL ) + - - CAST ( - 36 AS INTEGER ) / - CAST ( col2 AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT - 44 + 46 + + + 13 * 0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 44 + 46 + + + 13 * 0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col2 AS col1, col0 + + - col0 * 0 + + col2 col0 FROM tab0 AS cor0
----
196
196
62
62
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL SUM( DISTINCT - 72 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL SUM ( DISTINCT - 72 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT DISTINCT CAST( - + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6132
SELECT CAST( NULL AS SIGNED ) + 86 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT CAST ( NULL AS INTEGER ) + 86 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - 99, + col0 FROM tab2 cor0
----
-99
46
-99
64
-99
75

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab0 WHERE NOT - col2 - - + 81 + - 89 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6135
SELECT COUNT( * ) DIV + + 37 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6135
SELECT COUNT ( * ) / + + 37 FROM tab1
----
0

query I rowsort
SELECT + + 3 AS col0 FROM tab2 WHERE NOT 59 > - + col0 AND + 22 IN ( - col1, 68 )
----

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

query I rowsort
SELECT ALL - ( + col0 ) + + col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT + MAX( ALL + + col1 ) * - 25 + - COUNT( - 35 ) AS col1 FROM tab1 AS cor0
----
-1178

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT + MAX ( ALL + + col1 ) * - 25 + - COUNT ( - 35 ) AS col1 FROM tab1 AS cor0
----
-1178

query III rowsort
SELECT * FROM tab1 WHERE - col1 <= - + ( - 33 ) + + + 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT - + COUNT( * ) * 16 * + 52 FROM tab2 AS cor0
----
-2496

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - + COUNT ( * ) * 16 * + 52 FROM tab2 AS cor0
----
-2496

query I rowsort
SELECT + - col0 * - col0 + - col0 + - + col0 AS col1 FROM tab0 AS cor0
----
195
7395
9215

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

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

query II rowsort
SELECT + 35 AS col0, col1 - - - 11 AS col0 FROM tab2 AS cor0 WHERE - 81 + 44 >= - + col2
----
35
56
35
66

query I rowsort
SELECT ALL 41 + + col2 AS col2 FROM tab2
----
64
81
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT - COUNT( ( - 9 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6148
SELECT - COUNT ( ( - 9 ) ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6149
SELECT - COUNT( + 10 ) - + MIN( col0 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6149
SELECT - COUNT ( + 10 ) - + MIN ( col0 ) FROM tab0 AS cor0
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( + - 22 ) - + COUNT( * ) col0 FROM tab0 cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + 88 * - MAX( ALL + 53 ) AS col1 FROM tab1 AS cor0
----
-4664

skipif mysql # not compatible
query I rowsort label-6152
SELECT + 88 * - MAX ( ALL + 53 ) AS col1 FROM tab1 AS cor0
----
-4664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6153
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + CAST( NULL AS SIGNED ) BETWEEN ( + col1 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-6153
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + CAST ( NULL AS INTEGER ) BETWEEN ( + col1 ) AND col2
----

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

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

query I rowsort
SELECT col0 * + col2 - 41 AS col0 FROM tab2 AS cor0
----
1017
2519
4309

query I rowsort
SELECT - + col2 * + col2 * - + 41 FROM tab2 AS cor0
----
137924
21689
65600

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

query I rowsort
SELECT + + col0 * 45 AS col2 FROM tab2 AS cor0
----
2070
2880
3375

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + 6 * - 84
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6162
SELECT * FROM tab2 WHERE NOT NULL <= CAST( + col0 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6162
SELECT * FROM tab2 WHERE NOT NULL <= CAST ( + col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL - COUNT( DISTINCT - + 66 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - COUNT ( DISTINCT - + 66 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT - ( - 9 ) AS col1 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT ALL + - ( + + col1 ) + + - col2 - 49 - col2 FROM tab0 cor0
----
-224
-248
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT COUNT( * ) * + SUM( ALL col2 ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-6166
SELECT COUNT ( * ) * + SUM ( ALL col2 ) FROM tab2 AS cor0
----
363

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT 17 - + MIN( + ( col0 ) ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT 17 - + MIN ( + ( col0 ) ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT - col1 + + 98 FROM tab0
----
17
77
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + + col0 * - + 96 * + - col2 * + col2 / - - 78 = + - 8 + + - ( col2 ) AND 51 NOT IN ( + 51 * 96 + - col1, - ( col1 ), ( + + col2 ) * - col2 * - col1, col0 )
----

query I rowsort
SELECT + 18 + + col2 FROM tab2
----
41
58
76

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

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

query I rowsort
SELECT col1 + + - col2 * - col1 * col1 FROM tab0
----
100
308448
4431

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

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

query I rowsort
SELECT - col1 + 35 FROM tab1
----
-12
21
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL 24 - + - ( - SUM( col1 ) ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL 24 - + - ( - SUM ( col1 ) ) FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL - + ( + - COUNT( + 74 ) ) FROM tab0 WHERE NOT + 88 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - + ( + - COUNT ( + 74 ) ) FROM tab0 WHERE NOT + 88 BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6178
SELECT DISTINCT + col0 - - col2 + - + col2 DIV col1 FROM tab1
----
133
141
158

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + col0 - - col2 + - + col2 / col1 FROM tab1
----
133
141
158

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 * col1 * col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-18270
-57105
-9603

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

skipif mysql # not compatible
query I rowsort label-6184
SELECT + col2 / + 69 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6185
SELECT 84 AS col0, ( + CAST( NULL AS SIGNED ) ) * + 6 + + col1 FROM tab0
----
84
NULL
84
NULL
84
NULL

skipif mysql # not compatible
query II rowsort label-6185
SELECT 84 AS col0, ( + CAST ( NULL AS INTEGER ) ) * + 6 + + col1 FROM tab0
----
84
NULL
84
NULL
84
NULL

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

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

query II rowsort
SELECT col1 * - col1 AS col2, - col1 FROM tab0
----
-1
-1
-441
-21
-6561
-81

query II rowsort
SELECT ALL 58 * col0 AS col2, + 72 * - 21 AS col1 FROM tab0
----
5046
-1512
5626
-1512
870
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = col1
----
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL = col1
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab2 cor0
----
2601
4489
5929

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6194
SELECT ALL 47 * - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 38 + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL 47 * - - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 38 + - CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6195
SELECT DISTINCT - 1 DIV - - col2 AS col2, col1 + + + col1 col2 FROM tab2
----
0
102
0
134
0
154

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6195
SELECT DISTINCT - 1 / - - col2 AS col2, col1 + + + col1 col2 FROM tab2
----
0
102
0
134
0
154

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT DISTINCT ( 97 ) * CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT ( 97 ) * CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6198
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 91 + + 10 BETWEEN - - col1 AND + col0 + + col1 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL col0 + + ( - 91 ) + - + ( - 5 ) FROM tab0
----
-71
1
11

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

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

query I rowsort
SELECT ALL - 74 + col2 FROM tab1 AS cor0
----
-15
-6
22

query I rowsort
SELECT - + col2 + - 9 * - - 17 + - col1 + col1 FROM tab0 AS cor0
----
-163
-200
-252

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 84 * + 43 + - - col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT ALL - 68 - - COUNT( * ) FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - 68 - - COUNT ( * ) FROM tab1
----
-65

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + 12 * - 0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT - ( + + ( col1 ) ) FROM tab1
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT col2 + + 16 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - MAX( DISTINCT - 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-6214
SELECT - MAX ( DISTINCT - 67 ) FROM tab0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6215
SELECT DISTINCT 82 * - - 91 + + - 26 DIV col1 AS col2 FROM tab1 AS cor0
----
7457
7461
7462

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT 82 * - - 91 + + - 26 / col1 AS col2 FROM tab1 AS cor0
----
7457
7461
7462

query II rowsort
SELECT col1, + col2 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
51
74
67
125
77
117

query I rowsort
SELECT ALL + - 52 + + col0 FROM tab0 AS cor0
----
-37
35
45

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

query I rowsort
SELECT DISTINCT - col1 * + 52 / - col2 + col0 + col1 * - - 50 * col1 / - col1 + - col2 + - col2 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT DISTINCT col1 * ( + col1 ) DIV + col2 FROM tab2 AS cor0
----
113
148
77

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT col1 * ( + col1 ) / + col2 FROM tab2 AS cor0
----
113
148
77

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= - + 88
----
97
1
99

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

query I rowsort
SELECT ALL col2 * - 73 AS col2 FROM tab2
----
-1679
-2920
-4234

onlyif mysql # DIV for integer division: 
query II rowsort label-6225
SELECT col2 DIV - col1 AS col1, col1 AS col0 FROM tab0
----
-99
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-6225
SELECT col2 / - col1 AS col1, col1 AS col0 FROM tab0
----
-99
1
0
21
0
81

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

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

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

query I rowsort
SELECT 80 + + 56 AS col2 FROM tab1
----
136
136
136

query I rowsort
SELECT 78 * - ( - col2 ) + - 17 FROM tab1
----
4585
5287
7471

query I rowsort
SELECT ALL + - col0 * + + col0 * col0 FROM tab2 AS cor0
----
-262144
-421875
-97336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + + - col1 col2 FROM tab0 AS cor0
----
-15
45
65

query I rowsort
SELECT + 60 * + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( 11 )
----

query I rowsort
SELECT ALL 27 - + - 19 FROM tab1
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT DISTINCT + col2 DIV col1 * - ( - + 93 ) + + ( 80 ) FROM tab1
----
1103
173
638

skipif mysql # not compatible
query I rowsort label-6234
SELECT DISTINCT + col2 / col1 * - ( - + 93 ) + + ( 80 ) FROM tab1
----
1103
173
638

query I rowsort
SELECT ALL + 83 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 78 ) col1 FROM tab0
----
78
78
78

query II rowsort
SELECT - 17 AS col2, + col1 + col1 AS col2 FROM tab1
----
-17
10
-17
28
-17
94

query II rowsort
SELECT DISTINCT 62, + col1 FROM tab0
----
62
1
62
21
62
81

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

query I rowsort
SELECT DISTINCT + 24 * + 52 FROM tab0 cor0
----
1248

query I rowsort
SELECT DISTINCT col1 * + 55 AS col1 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT + - col0 * + 47 * - ( - CAST( col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-110262
-231616
-236175

skipif mysql # not compatible
query I rowsort label-6245
SELECT + - col0 * + 47 * - ( - CAST ( col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-110262
-231616
-236175

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 52 ) NOT BETWEEN col2 AND NULL
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT - CAST( + 81 AS SIGNED ) AS col2 FROM tab0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6247
SELECT - CAST ( + 81 AS INTEGER ) AS col2 FROM tab0
----
-81
-81
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 52 ) IS NOT NULL
----

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

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

query I rowsort
SELECT 55 - col0 FROM tab1
----
-30
-36
4

query I rowsort
SELECT ALL 59 * - 87 AS col0 FROM tab2
----
-5133
-5133
-5133

query I rowsort
SELECT ALL 30 * + 98 + col1 FROM tab1 WHERE NULL > ( 58 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6253
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) + col0 >= col2
----

skipif mysql # not compatible
query III rowsort label-6253
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) + col0 >= col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL - 11 * COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - 11 * COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT - col2 * 60 AS col1 FROM tab2
----
-1380
-2400
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT DISTINCT ( COUNT( col0 ) ) + 83 col1 FROM tab2
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6257
SELECT DISTINCT ( COUNT ( col0 ) ) + 83 col1 FROM tab2
----
86

query I rowsort
SELECT - 29 * col0 AS col2 FROM tab0
----
-2523
-2813
-435

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

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

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2 WHERE NOT ( 38 ) IS NULL
----
25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 23 <= NULL
----

query I rowsort
SELECT ALL ( + 29 ) FROM tab1
----
29
29
29

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) IN ( + 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT ALL - 2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL - 2 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - ( - col2 - - col1 ) col0 FROM tab0 AS cor0
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL COUNT( * ) + 11 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL COUNT ( * ) + 11 FROM tab1 AS cor0
----
14

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

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

query I rowsort
SELECT ALL + col2 - 2 FROM tab0
----
45
8
97

query I rowsort
SELECT ALL - 68 - + col1 FROM tab1
----
-115
-73
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL <= ( + col1 / + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL <= ( + col1 / + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6275
SELECT * FROM tab0 AS cor0 WHERE CAST( - 38 AS SIGNED ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-6275
SELECT * FROM tab0 AS cor0 WHERE CAST ( - 38 AS INTEGER ) IN ( col2 )
----

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6278
SELECT DISTINCT - COUNT ( * ) / + 18 col2 FROM tab1 AS cor0
----
0

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

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

query I rowsort
SELECT + 39 * - col0 FROM tab1 AS cor0
----
-1989
-3315
-3549

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT - - MIN( 14 ) AS col2 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-6282
SELECT - - MIN ( 14 ) AS col2 FROM tab0 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col0 <= ( col2 )
----
2

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col0 <= ( col2 )
----
2

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

query I rowsort
SELECT ALL col1 * 32 AS col1 FROM tab0 WHERE NOT 91 IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - AVG ( 23 ) * SUM( ALL col1 ) FROM tab1 WHERE ( 97 ) = 24 / col0 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - AVG ( 23 ) * SUM ( ALL col1 ) FROM tab1 WHERE ( 97 ) = 24 / col0 + 88
----
NULL

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

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

query I rowsort
SELECT ALL - col0 * + 43 * col1 + + 72 FROM tab2 AS cor0
----
-100806
-211832
-216003

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 59 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 70 + - 46 = NULL
----

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

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

query I rowsort
SELECT DISTINCT + 31 + col2 AS col0 FROM tab2 AS cor0
----
54
71
89

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

query I rowsort
SELECT - + col0 * + + 84 AS col1 FROM tab2 AS cor0
----
-3864
-5376
-6300

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + - 40 OR ( col2 ) >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT DISTINCT - 23 + - 51 + + + col1 AS col2 FROM tab1 AS cor0
----
-27
-60
-69

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

query I rowsort
SELECT DISTINCT + - col1 * - 78 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

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

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0 WHERE ( + ( + - 22 ) ) IS NULL
----

query I rowsort
SELECT col2 + 64 FROM tab1
----
123
132
160

query I rowsort
SELECT - col2 * 63 + - col0 AS col0 FROM tab1
----
-3802
-4375
-6099

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT 80 + - COUNT( * ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-6314
SELECT 80 + - COUNT ( * ) FROM tab0
----
77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT + + 18 + - 31 + + col1 DIV col1 FROM tab2 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-6316
SELECT + + 18 + - 31 + + col1 / col1 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT ALL + - col2 DIV + - col2 + - 66 + 36 * col0 FROM tab0 AS cor0
----
3067
3427
475

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + - col2 / + - col2 + - 66 + 36 * col0 FROM tab0 AS cor0
----
3067
3427
475

query I rowsort
SELECT ALL - ( 36 ) AS col0 FROM tab0 AS cor0
----
-36
-36
-36

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 18 * + + 49 AS col2 FROM tab1 AS cor0
----
-882
-882
-882

query I rowsort
SELECT + col1 * + ( - + col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

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

query I rowsort
SELECT ALL 66 * + - col1 FROM tab2
----
-3366
-4422
-5082

query I rowsort
SELECT DISTINCT - 62 * + 20 FROM tab1
----
-1240

query II rowsort
SELECT 27, + 39 AS col2 FROM tab1
----
27
39
27
39
27
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6332
SELECT + col2 DIV - + 84 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6332
SELECT + col2 / - + 84 FROM tab2
----
0
0
0

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

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

query II rowsort
SELECT ALL 2 AS col0, col1 AS col2 FROM tab1
----
2
14
2
47
2
5

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 63 * - 94 ) <> ( NULL )
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 81 NOT IN ( - col2 )
----
1
21
81

query I rowsort
SELECT col0 * + + col0 * + 63 FROM tab2
----
133308
258048
354375

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

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

query I rowsort
SELECT - + 92 * - ( col1 ) + col1 * + 67 * - ( - col0 ) FROM tab1 AS cor0
----
28935
290883
49126

query I rowsort
SELECT ALL 69 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
69
69
69

query II rowsort
SELECT DISTINCT 88 + + 32 AS col1, + 75 AS col0 FROM tab2 AS cor0
----
120
75

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

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - ( - - 80 ) BETWEEN col1 AND 85 * - col2 * + - col2 * col1 + 5
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + + - 38 * + 71 col1 FROM tab1
----
-2641
-2641
-2641

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT + 29 + + COUNT( * ) col1 FROM tab0
----
32

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6347
SELECT * FROM tab0 WHERE ( + CAST( + + 34 AS SIGNED ) * + ( col1 ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6347
SELECT * FROM tab0 WHERE ( + CAST ( + + 34 AS INTEGER ) * + ( col1 ) ) = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-6348
SELECT ( - COUNT ( ALL + - 22 ) ) FROM tab2
----
-3

query I rowsort
SELECT ALL - + 94 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + col0 + 42 * col1 - 5 * + col1 FROM tab0
----
135
3093
885

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6352
SELECT ALL + col2 DIV - col0 + + - CAST( - col2 AS SIGNED ) + col2 + + col1 * col0 * - col0 - + col0 AS col2 FROM tab0
----
-159016
-18149
-9309

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + col2 / - col0 + + - CAST ( - col2 AS INTEGER ) + col2 + + col1 * col0 * - col0 - + col0 AS col2 FROM tab0
----
-159016
-18149
-9309

query I rowsort
SELECT DISTINCT + 2 - 10 FROM tab2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-6354
SELECT ALL COUNT( * ) col0, 18 AS col0 FROM tab1
----
3
18

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6355
SELECT ALL * FROM tab0 AS cor0 WHERE + + col0 * - 26 - + col2 / - CAST( + col0 AS SIGNED ) = col2 AND ( - col1 - + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6355
SELECT ALL * FROM tab0 AS cor0 WHERE + + col0 * - 26 - + col2 / - CAST ( + col0 AS INTEGER ) = col2 AND ( - col1 - + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 20 * - col0 = - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 20 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 18 + + col2 + + col1 IN ( + 23 + - + col0 ) )
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < col2
----

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

query I rowsort
SELECT + col1 * col2 + + col2 AS col2 FROM tab0 AS cor0
----
198
220
3854

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN 47 AND 24
----

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

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

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

query I rowsort
SELECT DISTINCT 48 * col1 FROM tab0
----
1008
3888
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT MIN( ALL 28 ) col1 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6369
SELECT DISTINCT MIN ( ALL 28 ) col1 FROM tab2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6370
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - 3 + - col1 * + col2 / - + 85 + + CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6370
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - 3 + - col1 * + col2 / - + 85 + + CAST ( - - col0 AS INTEGER ) )
----

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

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

query I rowsort
SELECT 33 AS col1 FROM tab1 WHERE NOT ( ( - ( + 96 ) ) ) IS NULL
----
33
33
33

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

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

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

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

query I rowsort
SELECT - 59 + + + col1 AS col1 FROM tab1 AS cor0
----
-12
-45
-54

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

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

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

query I rowsort
SELECT col2 * - 32 + ( - 50 ) AS col0 FROM tab1 cor0
----
-1938
-2226
-3122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT ALL + CAST( - col1 AS SIGNED ) + + - col1 FROM tab2 AS cor0 WHERE NOT - 87 + - col0 + + 28 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + CAST ( - col1 AS INTEGER ) + + - col1 FROM tab2 AS cor0 WHERE NOT - 87 + - col0 + + 28 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6382
SELECT DISTINCT - col0 AS col1, + 30 DIV + 87 * + col1 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-6382
SELECT DISTINCT - col0 AS col1, + 30 / + 87 * + col1 AS col0 FROM tab0 AS cor0
----
-15
0
-87
0
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT DISTINCT + + SUM( ALL + - col0 ) AS col2 FROM tab1 cor0 WHERE ( + col2 ) - - - ( col2 ) < + col1 * - col2 * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT + + SUM ( ALL + - col0 ) AS col2 FROM tab1 cor0 WHERE ( + col2 ) - - - ( col2 ) < + col1 * - col2 * 75
----
NULL

query I rowsort
SELECT ALL - col1 + - 29 * - col1 AS col1 FROM tab1 AS cor0
----
1316
140
392

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IS NULL AND - col1 * + + 38 <= - + 94
----

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

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

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

query I rowsort
SELECT ALL col0 + col1 + col0 FROM tab1
----
116
175
229

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT + 6 + - 2 + - ( COUNT( * ) ) FROM tab2, tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6389
SELECT + 6 + - 2 + - ( COUNT ( * ) ) FROM tab2, tab0 AS cor0
----
-5

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

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

query I rowsort
SELECT + 60 * + col2 + - - 71 AS col2 FROM tab1
----
3611
4151
5831

onlyif mysql # DIV for integer division: 
query I rowsort label-6392
SELECT col2 DIV col1 * - + col2 - + 33 + - col0 DIV + 6 AS col0 FROM tab0 AS cor0
----
-35
-47
-9850

skipif mysql # not compatible
query I rowsort label-6392
SELECT col2 / col1 * - + col2 - + 33 + - col0 / + 6 AS col0 FROM tab0 AS cor0
----
-35
-47
-9850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 - - + col2 * col2 col1, 37 * + 88 * + + 26 FROM tab1 cor0
----
3540
84656
4692
84656
9312
84656

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE - col0 <> + + col2
----
3

skipif mysql # not compatible
query I rowsort label-6394
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE - col0 <> + + col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT DISTINCT + CAST( - - 81 AS SIGNED ) * 95 + col2 * + col0 FROM tab1 AS cor0
----
12591
12710
13883

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT + CAST ( - - 81 AS INTEGER ) * 95 + col2 * + col0 FROM tab1 AS cor0
----
12591
12710
13883

query II rowsort
SELECT ALL - - col2 * 82 AS col1, 64 FROM tab1 AS cor0
----
4838
64
5576
64
7872
64

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6398
SELECT ( - ( 81 ) ) / - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6398
SELECT ( - ( 81 ) ) / - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6399
SELECT ALL + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT DISTINCT - + COUNT( * ) + 57 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT - + COUNT ( * ) + 57 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
48

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

query I rowsort
SELECT ALL + col0 * - - col1 + + col2 AS col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT DISTINCT + - 63 FROM tab1 cor0
----
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL + SUM( - 19 ) AS col1 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL + SUM ( - 19 ) AS col1 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT DISTINCT + ( - + col1 ) * - - col2 + - - col0 AS col1 FROM tab0 AS cor0
----
-123
-2
-3792

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL + CAST( - col2 AS SIGNED ) + + col2 FROM tab1 AS cor0 WHERE NOT + 39 BETWEEN + + col1 * 58 * - + col1 + + ( + - 6 ) + 35 + 76 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + CAST ( - col2 AS INTEGER ) + + col2 FROM tab1 AS cor0 WHERE NOT + 39 BETWEEN + + col1 * 58 * - + col1 + + ( + - 6 ) + 35 + 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL MAX( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL MAX ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col0 - col2 + - + col2 + - col1 / + 73 + - + 74 / - - col1 + - col1
----

query I rowsort
SELECT - col0 * - ( - col0 ) FROM tab1
----
-2601
-7225
-8281

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6414
SELECT + 94 + MIN( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6414
SELECT + 94 + MIN ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT - COUNT( * ) * COUNT( * ), - COUNT( * ) + 12 AS col0 FROM tab2
----
-9
9

skipif mysql # not compatible
query II rowsort label-6415
SELECT - COUNT ( * ) * COUNT ( * ), - COUNT ( * ) + 12 AS col0 FROM tab2
----
-9
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6416
SELECT ALL * FROM tab2 WHERE NOT NULL <> - + 96 + + CAST( - 59 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6416
SELECT ALL * FROM tab2 WHERE NOT NULL <> - + 96 + + CAST ( - 59 AS INTEGER )
----

query I rowsort
SELECT + 92 * - 82 * col2 FROM tab0
----
-354568
-746856
-75440

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

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

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

query I rowsort
SELECT ( + 66 ) FROM tab2
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + SUM( DISTINCT + - 98 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + SUM ( DISTINCT + - 98 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT DISTINCT + 47 DIV ( - col0 ) - + col1 FROM tab0
----
-1
-21
-84

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT + 47 / ( - col0 ) - + col1 FROM tab0
----
-1
-21
-84

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

query I rowsort
SELECT DISTINCT - + 76 + + col0 FROM tab0 AS cor0
----
-61
11
21

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6427
SELECT ALL - 62 DIV - col1 + + 61 AS col0, - col0 FROM tab1 AS cor0
----
62
-91
65
-51
73
-85

skipif mysql # not compatible
query II rowsort label-6427
SELECT ALL - 62 / - col1 + + 61 AS col0, - col0 FROM tab1 AS cor0
----
62
-91
65
-51
73
-85

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6430
SELECT + CAST( NULL AS SIGNED ) AS col0, 9 AS col1 FROM tab0
----
NULL
9
NULL
9
NULL
9

skipif mysql # not compatible
query II rowsort label-6430
SELECT + CAST ( NULL AS INTEGER ) AS col0, 9 AS col1 FROM tab0
----
NULL
9
NULL
9
NULL
9

query III rowsort
SELECT * FROM tab1 WHERE + 63 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL MAX( DISTINCT - - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL MAX ( DISTINCT - - col1 ) AS col1 FROM tab0
----
81

query II rowsort
SELECT ALL 76 AS col2, col0 + - col2 FROM tab2
----
76
17
76
23
76
24

query I rowsort
SELECT + 34 * - 59 AS col2 FROM tab2 AS cor0
----
-2006
-2006
-2006

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 * - + CAST( + col2 AS SIGNED ) NOT BETWEEN + 35 * + 77 AND - 52 )
----
3

skipif mysql # not compatible
query I rowsort label-6436
SELECT - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 * - + CAST ( + col2 AS INTEGER ) NOT BETWEEN + 35 * + 77 AND - 52 )
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 20, + col1 * - 16 col1 FROM tab0 AS cor0
----
-20
-1296
-20
-16
-20
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL - MIN( col1 ) - + + 42 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col1, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - MIN ( col1 ) - + + 42 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( col1, - col0 )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6441
SELECT ALL - + CAST( NULL AS DECIMAL ) * + AVG ( + + 8 ) FROM tab0 WHERE NULL <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL - + CAST ( NULL AS REAL ) * + AVG ( + + 8 ) FROM tab0 WHERE NULL <> - col0
----
NULL

query II rowsort
SELECT ALL 19 AS col2, col2 + + + 19 AS col0 FROM tab0
----
19
118
19
29
19
66

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

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

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

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

query I rowsort
SELECT DISTINCT col2 / + - ( - 69 ) AS col1 FROM tab1 WHERE NOT 59 <> + + col1 * + col0 / - + col0
----

query I rowsort
SELECT ALL - 48 FROM tab1, tab0 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT + col2 * + - col1 * - col1 FROM tab0
----
308367
4410
99

query II rowsort
SELECT DISTINCT - col2 AS col2, 72 AS col0 FROM tab0
----
-10
72
-47
72
-99
72

query I rowsort
SELECT - col0 * - col0 * + 77 FROM tab0
----
17325
582813
724493

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

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

query III rowsort
SELECT DISTINCT - col2 * - + ( - + col1 ), col2, col0 FROM tab2
----
9 values hashing to 4861896ecd907c74c66e240fdfadbd64

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT + 76 + COUNT( * ) * + COUNT( * ) + + 56 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-6452
SELECT + 76 + COUNT ( * ) * + COUNT ( * ) + + 56 FROM tab0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-6453
SELECT ALL 1 * 2 DIV + 42 * + col2 * + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL 1 * 2 / + 42 * + col2 * + + col0 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6454
SELECT 67 + COUNT ( * ) FROM tab0 cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT + + 94 - + MIN( col2 ) FROM tab2 WHERE - + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT + + 94 - + MIN ( col2 ) FROM tab2 WHERE - + col0 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( - ( 69 ) ) * + col2, + 85 col1 FROM tab0 AS cor0
----
3243
85
6831
85
690
85

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

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * 10 + + col2 / + 82 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT - - col1 + - 90 DIV - + col1 + - - col1 - + 98 AS col2 FROM tab1 cor0 WHERE NOT ( - col1 IS NULL )
----
-3
-64
-70

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT - - col1 + - 90 / - + col1 + - - col1 - + 98 AS col2 FROM tab1 cor0 WHERE NOT ( - col1 IS NULL )
----
-3
-64
-70

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

query I rowsort
SELECT col2 * - col1 * - 3 + col2 + col0 FROM tab2 AS cor0
----
11791
3588
9344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT col2 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6461
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT col2 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + col2 + + col2 * + col1 AS col2 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT DISTINCT MIN( ALL + + col2 ) - + COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT MIN ( ALL + + col2 ) - + COUNT ( * ) FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT 36 + + COUNT( * ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6464
SELECT 36 + + COUNT ( * ) AS col1 FROM tab1
----
39

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

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

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

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

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

query I rowsort
SELECT ALL + + 61 + + AVG ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT SUM( ALL + - col0 ) * + COUNT( * ) * - 47 FROM tab1 AS cor0
----
32007

skipif mysql # not compatible
query I rowsort label-6470
SELECT SUM ( ALL + - col0 ) * + COUNT ( * ) * - 47 FROM tab1 AS cor0
----
32007

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6472
SELECT ALL + - 51, + SUM( + + 40 ) AS col1 FROM tab1 AS cor0
----
-51
120

skipif mysql # not compatible
query II rowsort label-6472
SELECT ALL + - 51, + SUM ( + + 40 ) AS col1 FROM tab1 AS cor0
----
-51
120

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6474
SELECT DISTINCT + + MAX( DISTINCT + CAST( - col0 AS SIGNED ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + + MAX ( DISTINCT + CAST ( - col0 AS INTEGER ) ) FROM tab1 cor0
----
-51

query I rowsort
SELECT - - 16 + + - col1 * + 48 FROM tab2 AS cor0
----
-2432
-3200
-3680

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

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

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

skipif mysql # not compatible
query I rowsort label-6477
SELECT + + CAST ( - + MIN ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + COUNT ( * ) + 39 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 87 col2 FROM tab2 AS cor0
----
133
151
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6479
SELECT + col0 DIV + col2 + 97 AS col0 FROM tab0
----
105
97
97

skipif mysql # not compatible
query I rowsort label-6479
SELECT + col0 / + col2 + 97 AS col0 FROM tab0
----
105
97
97

query I rowsort
SELECT ALL col2 + + 65 + + 86 FROM tab1
----
210
219
247

query I rowsort
SELECT - 20 + - + col2 + + col1 FROM tab0
----
-118
-9
14

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

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

query I rowsort
SELECT ALL + 25 * + col0 * - + col0 - + - ( - col2 ) FROM tab2 AS cor0
----
-102440
-140683
-52923

onlyif mysql # DIV for integer division: 
query I rowsort label-6484
SELECT + + 92 * + 51 - col0 DIV - - 53 - + - 86 + + col1 FROM tab0 cor0
----
4778
4798
4859

skipif mysql # not compatible
query I rowsort label-6484
SELECT + + 92 * + 51 - col0 / - - 53 - + - 86 + + col1 FROM tab0 cor0
----
4778
4798
4859

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

query I rowsort
SELECT DISTINCT 29 * - - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1711
1972
2784

query I rowsort
SELECT ALL ( - 4 ) - col0 FROM tab1 AS cor0
----
-55
-89
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-6488
SELECT DISTINCT + + COUNT( * ) + - ( - 79 ) AS col2, - 59 AS col2 FROM tab1 AS cor0
----
82
-59

skipif mysql # not compatible
query II rowsort label-6488
SELECT DISTINCT + + COUNT ( * ) + - ( - 79 ) AS col2, - 59 AS col2 FROM tab1 AS cor0
----
82
-59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT ALL col0 DIV - 60 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL col0 / - 60 AS col2 FROM tab1
----
-1
-1
0

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

query I rowsort
SELECT - 74 * + col0 + + 7 AS col0 FROM tab0 AS cor0
----
-1103
-6431
-7171

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6495
SELECT DISTINCT - COUNT( DISTINCT - col0 ) / - 21 * CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6495
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) / - 21 * CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

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

query I rowsort
SELECT DISTINCT + col2 * - - col1 * 8 AS col2 FROM tab1 WHERE ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6498
SELECT + 96 DIV + 13 AS col2 FROM tab2
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6498
SELECT + 96 / + 13 AS col2 FROM tab2
----
7
7
7

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

query II rowsort
SELECT ALL - - 15 AS col0, + col2 + - col2 AS col1 FROM tab0 AS cor0
----
15
0
15
0
15
0

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

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

query I rowsort
SELECT ALL + - 22 FROM tab1 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + col1 * - col0 AS col0 FROM tab0 AS cor0 WHERE + 24 + col1 IS NOT NULL
----
-1296
-1848
-98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL COUNT( * ) + - - 48 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL COUNT ( * ) + - - 48 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, col1 col2 FROM tab0
----
15
81
87
21
97
1

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6510
SELECT ALL - 55 AS col1, col0 + - ( - 2 ) + + - col2 / ( + - CAST( NULL AS DECIMAL ) ) FROM tab0
----
-55
NULL
-55
NULL
-55
NULL

skipif mysql # not compatible
query II rowsort label-6510
SELECT ALL - 55 AS col1, col0 + - ( - 2 ) + + - col2 / ( + - CAST ( NULL AS REAL ) ) FROM tab0
----
-55
NULL
-55
NULL
-55
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 11 + + col0 >= - ( + 6 ) * + - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + col1 + + col0 + col2 + + col1 FROM tab2 AS cor0
----
-2481
-4289
-5748

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

query I rowsort
SELECT DISTINCT col1 + - col0 * - 22 AS col2 FROM tab1 AS cor0
----
1136
1875
2049

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6516
SELECT + ( - + COUNT( * ) ) AS col1, 59 AS col1 FROM tab1
----
-3
59

skipif mysql # not compatible
query II rowsort label-6516
SELECT + ( - + COUNT ( * ) ) AS col1, 59 AS col1 FROM tab1
----
-3
59

query I rowsort
SELECT ( 56 ) * - col2 AS col0 FROM tab0
----
-2632
-5544
-560

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT ALL + col2 DIV + col2 - col0 - col1 + - col2 DIV 11 * + col0 - + col0 - + 68 col2 FROM tab2
----
-302
-464
-659

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6518
SELECT ALL + col2 / + col2 - col0 - col1 + - col2 / 11 * + col0 - + col0 - + 68 col2 FROM tab2
----
-302
-464
-659

query I rowsort
SELECT ( + - col2 ) * - + col0 FROM tab1 cor0
----
4896
5015
6188

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6523
SELECT DISTINCT + col2 DIV - + 4 FROM tab0
----
-11
-2
-24

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT + col2 / - + 4 FROM tab0
----
-11
-2
-24

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 + - col1 AS col2 FROM tab0 cor0
----
10
-42
47
-162
99
-2

query I rowsort
SELECT - 53 * - col1 AS col2 FROM tab0 AS cor0
----
1113
4293
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT + + CAST( + + 67 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

skipif mysql # not compatible
query I rowsort label-6529
SELECT + + CAST ( + + 67 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
-3953
-4556
-6432

query I rowsort
SELECT ALL - + 89 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6531
SELECT col2 DIV - ( 1 ) + 98 + 5 + + - ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-381
-4242
-707

skipif mysql # not compatible
query I rowsort label-6531
SELECT col2 / - ( 1 ) + 98 + 5 + + - ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-381
-4242
-707

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 NOT IN ( col1, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6535
SELECT - col1 * 83 DIV - - 74 + 87 AS col1 FROM tab2
----
1
12
30

skipif mysql # not compatible
query I rowsort label-6535
SELECT - col1 * 83 / - - 74 + 87 AS col1 FROM tab2
----
1
12
30

query II rowsort
SELECT ALL - ( + col1 ) + + - 18 AS col2, - col2 AS col1 FROM tab0
----
-19
-99
-39
-10
-99
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT + COUNT( 82 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6537
SELECT + COUNT ( 82 ) FROM tab2
----
3

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE - 78 IS NULL
----

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

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

query I rowsort
SELECT - - 12 - col1 AS col0 FROM tab1 AS cor0
----
-2
-35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT + col2 + + 6 DIV - 62 + - - col1 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6543
SELECT + col2 + + 6 / - 62 + - - col1 FROM tab2 AS cor0
----
117
125
74

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

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

query I rowsort
SELECT - col2 * + col1 * - col1 + - col1 FROM tab2 AS cor0
----
237083
260295
59772

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6546
SELECT DISTINCT + COUNT( * ) * - - SUM( ALL - 17 ) DIV MAX( ALL + - col2 ) + + + 26 AS col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-6546
SELECT DISTINCT + COUNT ( * ) * - - SUM ( ALL - 17 ) / MAX ( ALL + - col2 ) + + + 26 AS col2 FROM tab2 AS cor0
----
32

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT ( NOT + + 5 <> col1 )
----
-68
-96

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 = - 23
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6551
SELECT + - col1 AS col2 FROM tab2 WHERE NOT + ( - col2 ) <= CAST( + - col2 AS DECIMAL ) + - 40
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6551
SELECT + - col1 AS col2 FROM tab2 WHERE NOT + ( - col2 ) <= CAST ( + - col2 AS REAL ) + - 40
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 77 * 17 + + col1 + + + 63 FROM tab1 AS cor0
----
-1199
-1232
-1241

query I rowsort
SELECT 14 FROM tab0 WHERE ( NOT NULL >= NULL )
----

query I rowsort
SELECT DISTINCT col0 * - 85 FROM tab0
----
-1275
-7395
-8245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, 54 * + 33 FROM tab2 AS cor0
----
46
1782
64
1782
75
1782

query I rowsort
SELECT 5 AS col2 FROM tab2 AS cor0 WHERE + 45 = - 31
----

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

query I rowsort
SELECT ALL + ( col1 ) * - - 3 + - 39 * + + col0 - + 19 + + - 97 + + 74 FROM tab1 cor0
----
-1989
-3342
-3450

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

query I rowsort
SELECT ALL - ( - 42 ) - + + 35 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
7
7
7

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

query I rowsort
SELECT ALL - col1 * + + 56 AS col0 FROM tab0 AS cor0
----
-1176
-4536
-56

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

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

query II rowsort
SELECT + 90 - - - 60, + 60 AS col1 FROM tab1
----
30
60
30
60
30
60

query I rowsort
SELECT ALL + col1 * - 92 + + 47 + + - col0 + + - 17 - ( + + col0 ) + + 51 FROM tab0
----
-2025
-205
-7401

query I rowsort
SELECT ALL col2 * + 84 * + col2 - - col1 * - - 50 FROM tab2
----
138250
285926
46986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6567
SELECT ALL 37 * CAST( + + col2 AS SIGNED ) * col2 AS col0 FROM tab1
----
128797
171088
340992

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL 37 * CAST ( + + col2 AS INTEGER ) * col2 AS col0 FROM tab1
----
128797
171088
340992

query II rowsort
SELECT - col0 + + col2 AS col0, - 62 FROM tab2
----
-17
-62
-23
-62
-24
-62

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

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

query I rowsort
SELECT - 55 + - col1 + - - 51 + 60 + + col0 * + 43 + col2 FROM tab0
----
3786
4325
667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6571
SELECT col2 + CAST( 7 AS SIGNED ) AS col1 FROM tab2
----
30
47
65

skipif mysql # not compatible
query I rowsort label-6571
SELECT col2 + CAST ( 7 AS INTEGER ) AS col1 FROM tab2
----
30
47
65

query I rowsort
SELECT - col1 + col2 * - - col0 * - + 12 AS col1 FROM tab0
----
-10461
-115237
-8541

onlyif mysql # DIV for integer division: 
query I rowsort label-6573
SELECT ALL 69 - + ( - col0 ) + - 73 + + + col0 DIV + col0 FROM tab1
----
48
82
88

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL 69 - + ( - col0 ) + - 73 + + + col0 / + col0 FROM tab1
----
48
82
88

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

skipif mysql # not compatible
query I rowsort label-6574
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + CAST ( + 56 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT DISTINCT - - 53 + col2 * - col1 AS col2 FROM tab2 cor0
----
-1120
-3027
-3833

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT SUM( + + col2 ) FROM tab0 cor0 WHERE NOT col1 + 61 + - 0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT SUM ( + + col2 ) FROM tab0 cor0 WHERE NOT col1 + 61 + - 0 = NULL
----
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-6580
SELECT DISTINCT + - COUNT ( * ) AS col0, - 99 FROM tab0 AS cor0
----
-3
-99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT + 19 DIV - col1 * - + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT + 19 / - col1 * - + col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col1 AS col0, 92 + 24 AS col2 FROM tab0
----
1
116
21
116
81
116

query I rowsort
SELECT - ( - + ( - 82 ) ) FROM tab2
----
-82
-82
-82

query I rowsort
SELECT col1 * + 22 AS col1 FROM tab1
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT SUM( ALL + - 43 ) AS col2 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-6586
SELECT SUM ( ALL + - 43 ) AS col2 FROM tab0
----
-129

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT DISTINCT ( - + COUNT( * ) ) * - + 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT ( - + COUNT ( * ) ) * - + 41 FROM tab2
----
123

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT + + 80 / 82 AS col1 FROM tab0 AS cor0 WHERE - 95 + + - col1 + - - CAST( NULL AS SIGNED ) * + col1 * + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6591
SELECT + + 80 / 82 AS col1 FROM tab0 AS cor0 WHERE - 95 + + - col1 + - - CAST ( NULL AS INTEGER ) * + col1 * + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + 71, col2, + ( - - 41 ), 40, 98 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT - COUNT( * ) + 49 + + ( - + 44 ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6595
SELECT - COUNT ( * ) + 49 + + ( - + 44 ) FROM tab0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL - + 85 * MIN( ALL - - 75 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= col0 * - CAST( NULL AS SIGNED ) * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - + 85 * MIN ( ALL - - 75 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= col0 * - CAST ( NULL AS INTEGER ) * - 48
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - - 91 ) col2 FROM tab0 AS cor0
----
1365
7917
8827

query I rowsort
SELECT DISTINCT - 11 + + col0 FROM tab1 AS cor0
----
40
74
80

query I rowsort
SELECT ALL col1 - + col0 + + 73 FROM tab2 AS cor0
----
65
78
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT - SUM( ALL + 89 ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-6600
SELECT - SUM ( ALL + 89 ) FROM tab0
----
-267

query II rowsort
SELECT col1, + col0 * - + col1 FROM tab2
----
51
-2346
67
-5025
77
-4928

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6603
SELECT ALL - col2 DIV 8 AS col1 FROM tab1
----
-12
-7
-8

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - col2 / 8 AS col1 FROM tab1
----
-12
-7
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT - - ( + - COUNT( ALL - + ( + col1 ) ) ) - + + COUNT( * ) AS col1 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6604
SELECT - - ( + - COUNT ( ALL - + ( + col1 ) ) ) - + + COUNT ( * ) AS col1 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL + - MAX( DISTINCT + col0 ) / + 20 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + - MAX ( DISTINCT + col0 ) / + 20 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * - col0
----
NULL

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6609
SELECT DISTINCT col0 / + 58 col2 FROM tab0
----
0
1

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

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

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

query I rowsort
SELECT + + col2 * 73 * + 51 FROM tab2 cor0
----
148920
215934
85629

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT + CAST( - AVG ( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-6613
SELECT + CAST ( - AVG ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
52

query I rowsort
SELECT ALL + col2 * 63 AS col1 FROM tab2 AS cor0
----
1449
2520
3654

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + + COUNT( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + ( - - 37 ) BETWEEN + col1 AND - 77
----
3

skipif mysql # not compatible
query I rowsort label-6616
SELECT + + COUNT ( DISTINCT col2 ) AS col1 FROM tab2 WHERE NOT + ( - - 37 ) BETWEEN + col1 AND - 77
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT COUNT( DISTINCT 71 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6618
SELECT COUNT ( DISTINCT 71 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6619
SELECT + COUNT( * ) * + + 39 * + - 92 AS col2 FROM tab1
----
-10764

skipif mysql # not compatible
query I rowsort label-6619
SELECT + COUNT ( * ) * + + 39 * + - 92 AS col2 FROM tab1
----
-10764

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL - - MIN( ALL col2 ) FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - - MIN ( ALL col2 ) FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT + 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

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

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

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

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

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

query I rowsort
SELECT ALL + 54 + - 3 AS col0 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT - + 75 - col2 FROM tab0 AS cor0
----
-122
-174
-85

query I rowsort
SELECT col0 - ( 27 ) + - col2 FROM tab1 AS cor0
----
-1
-4
-72

query I rowsort
SELECT ALL + col2 + col2 * + 37 FROM tab2 cor0
----
1520
2204
874

query II rowsort
SELECT DISTINCT col1 + + col1, ( + col2 ) FROM tab1
----
10
59
28
96
94
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6633
SELECT ALL - col0 DIV + 47 - - - CAST( 27 AS SIGNED ) col0 FROM tab2
----
-27
-28
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6633
SELECT ALL - col0 / + 47 - - - CAST ( 27 AS INTEGER ) col0 FROM tab2
----
-27
-28
-28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - 76 + + COUNT( * ) FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-6635
SELECT - 76 + + COUNT ( * ) FROM tab1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT DISTINCT 65 * + 4 - + 57 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT 65 * + 4 - + 57 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 65 + + 1 FROM tab1
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL ( + + SUM( 48 ) ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL ( + + SUM ( 48 ) ) FROM tab0 AS cor0
----
144

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - ( + col1 ) col2 FROM tab0
----
15
-81
87
-21
97
-1

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT + 13 FROM tab1 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) * 63 IS NULL
----
13
13
13

skipif mysql # not compatible
query I rowsort label-6645
SELECT + 13 FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) * 63 IS NULL
----
13
13
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 95 / - col2 + ( + col0 ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL COUNT( DISTINCT - 86 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL COUNT ( DISTINCT - 86 ) FROM tab2 cor0
----
1

query I rowsort
SELECT ALL - + col1 + - col0 + + 33 FROM tab0 AS cor0
----
-63
-65
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6649
SELECT DISTINCT + CAST( 5 AS SIGNED ) DIV + 68 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT DISTINCT + CAST ( 5 AS INTEGER ) / + 68 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - + 7 + col2 AS col0 FROM tab0 AS cor0
----
3
40
92

query I rowsort
SELECT + 88 + - col0 FROM tab0
----
-9
1
73

query II rowsort
SELECT col0 * - col0 * 71 + + 88, col1 FROM tab2
----
-150148
51
-290728
77
-399287
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6653
SELECT ALL ( 19 ) AS col0, - COUNT( * ) FROM tab1
----
19
-3

skipif mysql # not compatible
query II rowsort label-6653
SELECT ALL ( 19 ) AS col0, - COUNT ( * ) FROM tab1
----
19
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 NOT IN ( - + 2 / + - col2, 6 + + col1, - 63 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 31 AS col0, col1 * - col0 * + 86 col0 FROM tab1
----
1829
-36550
2108
-367822
2976
-61404

onlyif mysql # DIV for integer division: 
query II rowsort label-6656
SELECT ( - 96 ) DIV - + col0 + - 50 * ( col0 ) - + - col2 col2, - 4 FROM tab1
----
-2453
-4
-4190
-4
-4481
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6656
SELECT ( - 96 ) / - + col0 + - 50 * ( col0 ) - + - col2 col2, - 4 FROM tab1
----
-2453
-4
-4190
-4
-4481
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6657
SELECT 35 DIV - - 43 AS col1, COUNT( * ) col1 FROM tab1
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6657
SELECT 35 / - - 43 AS col1, COUNT ( * ) col1 FROM tab1
----
0
3

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE col1 / + + 59 = - - col2
----

query I rowsort
SELECT + col2 - + - 73 + - 24 * + 32 FROM tab1 AS cor0
----
-599
-627
-636

query I rowsort
SELECT 36 - + col0 + - - col0 * + col1 + 37 + + - col1 FROM tab0 AS cor0
----
1192
1792
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - COUNT( * ) * + 65 * 25 + - 98 AS col2 FROM tab2
----
-4973

skipif mysql # not compatible
query I rowsort label-6661
SELECT - COUNT ( * ) * + 65 * 25 + - 98 AS col2 FROM tab2
----
-4973

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT - 33 * - COUNT( * ) - - + COUNT( * ) + + + MAX( DISTINCT + 57 ) * - 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-834

skipif mysql # not compatible
query I rowsort label-6662
SELECT - 33 * - COUNT ( * ) - - + COUNT ( * ) + + + MAX ( DISTINCT + 57 ) * - 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL MIN( 91 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL MIN ( 91 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
91

query I rowsort
SELECT DISTINCT - 71 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-71

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + col1 >= - - col1 + - col2
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT - col0 DIV + 1 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6666
SELECT - col0 / + 1 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT MIN( col0 ) * + + 44 FROM tab2 cor0
----
2024

skipif mysql # not compatible
query I rowsort label-6667
SELECT MIN ( col0 ) * + + 44 FROM tab2 cor0
----
2024

query I rowsort
SELECT ( 25 ) AS col0 FROM tab1 AS cor0
----
25
25
25

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

query II rowsort
SELECT + col1, 58 + + 2 + - col0 * - col2 AS col0 FROM tab1
----
14
4956
47
6248
5
5075

query I rowsort
SELECT DISTINCT ( + 95 ) / - 62 FROM tab2 WHERE + + col2 IS NULL
----

query II rowsort
SELECT ALL - col2 * + 98, col2 AS col0 FROM tab2 AS cor0
----
-2254
23
-3920
40
-5684
58

query I rowsort
SELECT ALL - col0 * - col0 + - col0 FROM tab0 AS cor0 WHERE col2 / col2 = + - col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT + col2 * - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + col2 * - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1344
-295
-3196

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

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

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

skipif mysql # not compatible
query I rowsort label-6677
SELECT + - 85 / - col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 62 <> NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6679
SELECT - COUNT ( * ) col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 * - 81 col1, ( col1 ) FROM tab1 AS cor0
----
4131
14
6885
5
7371
47

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT DISTINCT + + COUNT( * ) * - MAX( - col2 ) + + CAST( NULL AS SIGNED ) - - SUM( DISTINCT + - col1 ) * + MIN( - + col1 ) / ( - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT DISTINCT + + COUNT ( * ) * - MAX ( - col2 ) + + CAST ( NULL AS INTEGER ) - - SUM ( DISTINCT + - col1 ) * + MIN ( - + col1 ) / ( - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT + col2 * + - 4 AS col1 FROM tab2 AS cor0
----
-160
-232
-92

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

query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = - 38 / - col1 + - col0 + + 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - 39 col1 FROM tab1 cor0
----
-107
-135
-98

query II rowsort
SELECT ALL - 26 AS col1, 23 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6689
SELECT ALL + ( 5 ) * + col1 + - 31 DIV col1 FROM tab1
----
19
235
68

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + ( 5 ) * + col1 + - 31 / col1 FROM tab1
----
19
235
68

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

query I rowsort
SELECT - col0 * + + 20 * - 80 + - col2 * col0 AS col0 FROM tab1
----
130985
139412
76704

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

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

query I rowsort
SELECT ALL - col2 * - col1 + + col2 + + + col1 FROM tab2 AS cor0
----
1247
3197
4011

query I rowsort
SELECT 12 + - col1 FROM tab1
----
-2
-35
7

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - col1 * col2 > ( + col2 + col0 / col0 )
----
-59
-68
-96

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

query I rowsort
SELECT DISTINCT 87 * 53 AS col2 FROM tab1
----
4611

query I rowsort
SELECT + 83 + col2 FROM tab2 WHERE NULL NOT BETWEEN col0 + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > 50 + col2
----

query I rowsort
SELECT DISTINCT - ( col1 ) * + 96 AS col1 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT + col0 * col0 - col1 AS col1 FROM tab1
----
2587
7220
8234

query I rowsort
SELECT - ( col1 ) - col2 AS col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT + col1 * - 69 + col1 AS col1 FROM tab1
----
-3196
-340
-952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT + 67 DIV col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6706
SELECT + 67 / col1 FROM tab2
----
0
1
1

query I rowsort
SELECT + col0 * 43 + col1 AS col2 FROM tab1
----
2207
3660
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT 73 + COUNT( + 70 ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
76

skipif mysql # not compatible
query I rowsort label-6708
SELECT 73 + COUNT ( + 70 ) AS col1 FROM tab1 WHERE NOT - col2 IS NULL
----
76

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + 36 * + col0 > 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 + - col2 * + 19 AS col1 FROM tab1
----
-1126
-1339
-1838

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

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

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

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

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

query I rowsort
SELECT - 16 - - 35 FROM tab1
----
19
19
19

query III rowsort
SELECT * FROM tab0 WHERE ( + 21 + - col2 ) >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT - MAX( DISTINCT 17 ) col1 FROM tab1 AS cor0
----
-17

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6722
SELECT + MIN( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 / CAST( NULL AS SIGNED ) > - 12 - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT + MIN ( DISTINCT + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 / CAST ( NULL AS INTEGER ) > - 12 - 43
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT COUNT( * ) * 92 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-6727
SELECT COUNT ( * ) * 92 FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6728
SELECT + SUM( ( - ( + col0 ) ) ) DIV 82 AS col0 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-6728
SELECT + SUM ( ( - ( + col0 ) ) ) / 82 AS col0 FROM tab2
----
-2

query I rowsort
SELECT col0 * - 86 AS col2 FROM tab2
----
-3956
-5504
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT 80 * - MIN( 62 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND + 59 / 6 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT 80 * - MIN ( 62 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN NULL AND + 59 / 6 + 47
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * 23 + + 32 * col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1817
2393
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT DISTINCT 55 * COUNT( * ) FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT 55 * COUNT ( * ) FROM tab2 cor0
----
165

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

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

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

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

query I rowsort
SELECT + col0 * col0 + + 14 FROM tab0 AS cor0
----
239
7583
9423

query I rowsort
SELECT ALL + col0 + + 92 FROM tab0 AS cor0
----
107
179
189

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT 92 + COUNT( * ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6739
SELECT 92 + COUNT ( * ) FROM tab1 AS cor0
----
95

query I rowsort
SELECT - col0 * 7 + 49 AS col0 FROM tab0 AS cor0
----
-56
-560
-630

query I rowsort
SELECT DISTINCT - 55 + col1 * - col1 FROM tab2
----
-2656
-4544
-5984

query I rowsort
SELECT ALL 41 + - col0 FROM tab1
----
-10
-44
-50

query I rowsort
SELECT ALL ( col1 ) * col2 AS col1 FROM tab0
----
210
3807
99

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

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col0 <> ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6747
SELECT + col0 * + - CAST( + col0 AS SIGNED ) FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-6747
SELECT + col0 * + - CAST ( + col0 AS INTEGER ) FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL col2 * + 33 FROM tab1 cor0
----
1947
2244
3168

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6751
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE NOT col1 = ( - 25 / 73 ) AND ( CAST( NULL AS DECIMAL ) * col2 ) IS NULL
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6751
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE NOT col1 = ( - 25 / 73 ) AND ( CAST ( NULL AS REAL ) * col2 ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT DISTINCT - col1 DIV + + 22 + - col1 AS col2 FROM tab1 AS cor0
----
-14
-49
-5

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT - col1 / + + 22 + - col1 AS col2 FROM tab1 AS cor0
----
-14
-49
-5

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) BETWEEN - 16 AND ( + 26 ) AND NULL <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT ALL - col1 DIV - col2 + col0 FROM tab0 AS cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - col1 / - col2 + col0 FROM tab0 AS cor0
----
16
89
97

query I rowsort
SELECT ALL col2 * + + col0 * col0 - - col2 FROM tab2 AS cor0
----
163880
326308
48691

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6759
SELECT DISTINCT + 7 DIV MAX( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ALL 50 * + + col1 + + col0 FROM tab2 AS cor0
----
2596
3425
3914

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 84 / + col1 - - 52 NOT BETWEEN NULL AND + 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT DISTINCT + - 53 * col0 DIV - + ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT + - 53 * col0 / - + ( - ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
53

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT CAST( - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) - + SUM( ALL col0 ) * + 56 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6766
SELECT CAST ( - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) - + SUM ( ALL col0 ) * + 56 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT + ( + - 10 ) FROM tab1 cor0
----
-10
-10
-10

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + - 52 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, + col2 * - col1 + + col0 col2 FROM tab0 AS cor0
----
1
-2
21
-123
81
-3792

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 > ( 95 ) OR NULL IN ( col2 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL - MAX( DISTINCT + col2 ) * 91 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 99 + 3 / + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL - MAX ( DISTINCT + col2 ) * 91 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 99 + 3 / + 33 )
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6777
SELECT ALL - SUM( DISTINCT + CAST( - - col1 AS SIGNED ) ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6777
SELECT ALL - SUM ( DISTINCT + CAST ( - - col1 AS INTEGER ) ) col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < 24
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6779
SELECT DISTINCT ( + - COUNT( * ) ) AS col2, - MIN( - col1 ) * + 16 + + 53 * 49 AS col0 FROM tab0
----
-3
3893

skipif mysql # not compatible
query II rowsort label-6779
SELECT DISTINCT ( + - COUNT ( * ) ) AS col2, - MIN ( - col1 ) * + 16 + + 53 * 49 AS col0 FROM tab0
----
-3
3893

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

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

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

query I rowsort
SELECT - 34 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 52 AND - - ( - 99 ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + + MAX( ALL ( col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6783
SELECT + + MAX ( ALL ( col2 ) ) FROM tab1 AS cor0
----
96

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

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

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

query I rowsort
SELECT - 8 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT SUM( ALL - + 65 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6788
SELECT SUM ( ALL - + 65 ) FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT + col2 DIV - col1 + - - 16 * - 4 col0 FROM tab0 cor0
----
-163
-64
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6789
SELECT + col2 / - col1 + - - 16 * - 4 col0 FROM tab0 cor0
----
-163
-64
-64

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

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

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

query I rowsort
SELECT DISTINCT + - 18 + - - 80 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
3727
695
7805

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 15 * - MAX( + 17 ) FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6793
SELECT 15 * - MAX ( + 17 ) FROM tab0 AS cor0
----
-255

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6794
SELECT * FROM tab2 AS cor0 WHERE - CAST( + col0 AS DECIMAL ) - 1 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6794
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + col0 AS REAL ) - 1 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * + 76 + - 20 col1 FROM tab0 AS cor0
----
6592
6592
6592

onlyif mysql # DIV for integer division: 
query I rowsort label-6797
SELECT ALL + 53 + + + ( 36 ) DIV + col2 FROM tab0
----
53
53
56

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL + 53 + + + ( 36 ) / + col2 FROM tab0
----
53
53
56

query I rowsort
SELECT DISTINCT - 15 * - col0 FROM tab1
----
1275
1365
765

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT + 91 + col0 * + + col2 DIV + col2 FROM tab0
----
106
178
188

skipif mysql # not compatible
query I rowsort label-6799
SELECT + 91 + col0 * + + col2 / + col2 FROM tab0
----
106
178
188

query III rowsort
SELECT * FROM tab0 WHERE ( - + col1 ) <> col2 * - 89 / + 20 + ( + 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6804
SELECT DISTINCT - 88 DIV 4 * - SUM( - col2 ) FROM tab2
----
-2662

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT - 88 / 4 * - SUM ( - col2 ) FROM tab2
----
-2662

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT ALL 84 DIV - col2 AS col1 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL 84 / - col2 AS col1 FROM tab2
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL COUNT( * ) * + 14 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL COUNT ( * ) * + 14 FROM tab0
----
42

query I rowsort
SELECT DISTINCT - col1 + + + col2 AS col0 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT COUNT( * ) * COUNT( * ) + + + 76 * + 77 AS col2 FROM tab2
----
5861

skipif mysql # not compatible
query I rowsort label-6808
SELECT COUNT ( * ) * COUNT ( * ) + + + 76 * + 77 AS col2 FROM tab2
----
5861

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - - col1 < col0 )
----

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

query I rowsort
SELECT - 44 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-44
-44
-44

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 76 col2 FROM tab1
----
-17
-8
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + COUNT( - 0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6815
SELECT + COUNT ( - 0 ) AS col2 FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
3

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN + col1 * + col1 * col1 AND - 0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / col2 <> NULL
----

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT SUM( DISTINCT - - 82 ) * + + 96 AS col2 FROM tab1 AS cor0
----
7872

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT SUM ( DISTINCT - - 82 ) * + + 96 AS col2 FROM tab1 AS cor0
----
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL + COUNT( * ) * + + MAX( + col0 ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + COUNT ( * ) * + + MAX ( + col0 ) AS col0 FROM tab2
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT + 64 DIV - - col2 AS col1 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6821
SELECT + 64 / - - col2 AS col1 FROM tab2
----
1
1
2

query I rowsort
SELECT ( + - col2 ) AS col0 FROM tab2
----
-23
-40
-58

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

query I rowsort
SELECT ALL - col0 + - 24 AS col1 FROM tab2 AS cor0
----
-70
-88
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 92
----

query II rowsort
SELECT + - col2 * - - 83 + col2 AS col0, 85 * - - col0 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) = - 93
----
-3854
-19125
-8118
-799765
-820
-643365

query I rowsort
SELECT ALL - 8 + - col1 FROM tab0 AS cor0
----
-29
-89
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) = - 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6829
SELECT 5 DIV col0 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6829
SELECT 5 / col0 * + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( ( - + col2 BETWEEN + - col1 / 1 AND - + 74 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT - 75 + - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-6831
SELECT - 75 + - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ( - COUNT( * ) ) + SUM( + - 23 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-216

skipif mysql # not compatible
query I rowsort label-6832
SELECT ( - COUNT ( * ) ) + SUM ( + - 23 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + - col2 AS col1, + 17 col2 FROM tab1
----
-21
17
-54
17
-82
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 * + 94 * - col2 + ( - 89 ) ) <> NULL
----

query I rowsort
SELECT + + col2 * + 29 + + col1 + + col2 AS col2 FROM tab2 AS cor0
----
1277
1807
741

query I rowsort
SELECT DISTINCT - col2 * col2 + 26 AS col2 FROM tab1 AS cor0
----
-3455
-4598
-9190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6837
SELECT ALL COUNT( CAST( NULL AS SIGNED ) ) + - - COUNT( * ) * 20 * + 78 + 97 AS col2 FROM tab2 AS cor0
----
4777

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL COUNT ( CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) * 20 * + 78 + 97 AS col2 FROM tab2 AS cor0
----
4777

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT DISTINCT col0 DIV - + col0 + + 7 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT col0 / - + col0 + + 7 AS col2 FROM tab1
----
6

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

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

query I rowsort
SELECT DISTINCT - col0 * + + 45 FROM tab2
----
-2070
-2880
-3375

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT - COUNT( * ) * 57 AS col1 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - COUNT ( * ) * 57 AS col1 FROM tab1
----
-171

query II rowsort
SELECT ALL - col2, - col1 * - col1 AS col1 FROM tab0
----
-10
441
-47
6561
-99
1

query I rowsort
SELECT + col0 - - 48 AS col1 FROM tab1 AS cor0
----
133
139
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 21 NOT IN ( + - 17 + - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6846
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 21 NOT IN ( + - 17 + - col0 )
----
0

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

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

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

query II rowsort
SELECT DISTINCT col1 AS col2, 74 + + col0 FROM tab2
----
51
120
67
149
77
138

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

skipif mysql # not compatible
query I rowsort label-6850
SELECT CAST ( NULL AS REAL ) * MIN ( + 62 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE - 71 * 45 < ( NULL )
----

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

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

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

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

query I rowsort
SELECT col2 * ( + 42 ) AS col1 FROM tab2 AS cor0
----
1680
2436
966

query I rowsort
SELECT + 79 * + + col2 * col1 + 39 AS col0 FROM tab0 AS cor0
----
16629
300792
7860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - ( - - col1 ) col1 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT - 84 * + col1 FROM tab2 cor0
----
-4284
-5628
-6468

query II rowsort
SELECT DISTINCT - - col2 * - 94 * + - 76 * - - col2, + col1 FROM tab1 AS cor0
----
24868264
5
33033856
47
65839104
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT ALL - SUM( DISTINCT - + 96 ) * + COUNT( 34 ) FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL - SUM ( DISTINCT - + 96 ) * + COUNT ( 34 ) FROM tab0 AS cor0
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT ALL col1 DIV + + ( - + col2 ) AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL col1 / + + ( - + col2 ) AS col0 FROM tab2
----
-1
-1
-2

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 46 BETWEEN NULL AND + col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6864
SELECT DISTINCT - + 7 AS col1 FROM tab0 WHERE NULL = 53 * - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - + 7 AS col1 FROM tab0 WHERE NULL = 53 * - CAST ( - col1 AS INTEGER )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT - 26 + - - 10 + + SUM( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-6867
SELECT - 26 + - - 10 + + SUM ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
140

query I rowsort
SELECT DISTINCT - 91 + col0 * - 13 + col2 FROM tab0 AS cor0
----
-1212
-1253
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT + 83 * - + COUNT( * ) AS col1 FROM tab1 cor0
----
-249

skipif mysql # not compatible
query I rowsort label-6869
SELECT + 83 * - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-249

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 <= + - col2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6871
SELECT + - CAST( + - col0 AS SIGNED ) * 53 DIV 73 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-27
-5

skipif mysql # not compatible
query I rowsort label-6871
SELECT + - CAST ( + - col0 AS INTEGER ) * 53 / 73 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-27
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT DISTINCT + - COUNT( * ) + + 84 AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT + - COUNT ( * ) + + 84 AS col1 FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL 73 + - 26 AS col1 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( 86 - col1 ) IS NULL
----
14
47
5

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

query I rowsort
SELECT DISTINCT + col1 + col2 * - + 76 FROM tab1
----
-4479
-5121
-7282

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

query I rowsort
SELECT + col2 * + col1 * 55 FROM tab2 AS cor0
----
169400
213730
64515

query II rowsort
SELECT DISTINCT col1 * - col0 * + ( + - col1 ) AS col2, col2 * - col0 * col0 * - 89 AS col0 FROM tab1 cor0
----
201019
50116612
2125
37938475
9996
22222944

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

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT + MAX ( 16 ) AS col0 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT - + col2 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6885
SELECT ALL - + CAST( + col1 AS SIGNED ) DIV col0 col0 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT 64 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6886
SELECT 64 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT ALL 64 DIV + 16 FROM tab1
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL 64 / + 16 FROM tab1
----
4
4
4

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 37 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT ALL 2 AS col2, - 22 - - - COUNT( * ) AS col0 FROM tab1
----
2
-25

skipif mysql # not compatible
query II rowsort label-6891
SELECT ALL 2 AS col2, - 22 - - - COUNT ( * ) AS col0 FROM tab1
----
2
-25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 + - 2 < NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6894
SELECT ALL - 40 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE + 70 IN ( + + 75 )
----

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL - 40 * CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE + 70 IN ( + + 75 )
----

query I rowsort
SELECT ALL col0 + - + 23 FROM tab0 AS cor0
----
-8
64
74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT CAST( - 52 AS SIGNED ) + col0 * - CAST( + 71 AS SIGNED ) AS col2 FROM tab1
----
-3673
-6087
-6513

skipif mysql # not compatible
query I rowsort label-6897
SELECT CAST ( - 52 AS INTEGER ) + col0 * - CAST ( + 71 AS INTEGER ) AS col2 FROM tab1
----
-3673
-6087
-6513

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1 * + 57 col0, col0 + + 11 * col2 AS col1 FROM tab1 cor0
----
-2679
839
-285
734
-798
1107

query I rowsort
SELECT DISTINCT - 28 * + col0 AS col1 FROM tab0 AS cor0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query II rowsort label-6901
SELECT - + SUM( - 84 ) AS col2, + 12 AS col2 FROM tab1 AS cor0
----
252
12

skipif mysql # not compatible
query II rowsort label-6901
SELECT - + SUM ( - 84 ) AS col2, + 12 AS col2 FROM tab1 AS cor0
----
252
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT DISTINCT 44 + + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT 44 + + COUNT ( * ) FROM tab1 AS cor0
----
47

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

query I rowsort
SELECT DISTINCT - 76 - - 76 FROM tab1
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 43 col0, col1 AS col0 FROM tab0 cor0
----
-43
1
-43
21
-43
81

query II rowsort
SELECT + - col0 AS col0, 18 * + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
-15
765
-87
159
-97
1781

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

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

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

query I rowsort
SELECT - 37 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-37
-37
-37

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 * + col2 * + col0 * - 13 IN ( - col2, - 3, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6918
SELECT COUNT( * ) * + - AVG ( CAST( NULL AS DECIMAL ) ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6918
SELECT COUNT ( * ) * + - AVG ( CAST ( NULL AS REAL ) ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT DISTINCT 87 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT 87 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL + + col2 + + 44 * - - ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-2221
-2890
-3348

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 72 ) * - 89 IS NULL
----

query I rowsort
SELECT ALL 51 * + col0 * - 5 FROM tab2 AS cor0
----
-11730
-16320
-19125

query I rowsort
SELECT 32 - + - col0 - - 90 FROM tab2 AS cor0
----
168
186
197

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

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

query I rowsort
SELECT ALL - col2 + - 1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-60
-69
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT ALL - ( 67 ) * - CAST( + 95 AS SIGNED ) * + - col0 + 28 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - ( 67 ) * - CAST ( + 95 AS INTEGER ) * + - col0 + 28 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col2 * + 15 + - 43 FROM tab2 cor0
----
-388
-643
-913

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6930
SELECT ALL + 47 DIV - 31 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6930
SELECT ALL + 47 / - 31 col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6931
SELECT + col2 DIV 20 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6931
SELECT + col2 / 20 FROM tab2
----
1
2
2

query I rowsort
SELECT col0 * + 85 FROM tab1 WHERE NOT + 73 + col2 - + col0 >= ( col2 / - - ( - + col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 87 + - + 86 NOT BETWEEN 29 AND - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6935
SELECT + col2 + - col2 * - 65 FROM tab0 WHERE NOT ( NULL ) IN ( 36, - col2, - col0 * - ( + - col2 ) * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6935
SELECT + col2 + - col2 * - 65 FROM tab0 WHERE NOT ( NULL ) IN ( 36, - col2, - col0 * - ( + - col2 ) * + CAST ( NULL AS INTEGER ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6937
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NOT 18 * - - CAST( NULL AS SIGNED ) BETWEEN - 70 + - + ( + - 30 ) + - ( - - 88 ) AND NULL ) ) )
----

skipif mysql # not compatible
query III rowsort label-6937
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT ( NOT 18 * - - CAST ( NULL AS INTEGER ) BETWEEN - 70 + - + ( + - 30 ) + - ( - - 88 ) AND NULL ) ) )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6939
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND 92 * + - CAST( NULL AS SIGNED ) + 64
----

skipif mysql # not compatible
query III rowsort label-6939
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN NULL AND 92 * + - CAST ( NULL AS INTEGER ) + 64
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT COUNT( * ) + + 22 FROM tab2 cor0
----
25

skipif mysql # not compatible
query I rowsort label-6943
SELECT COUNT ( * ) + + 22 FROM tab2 cor0
----
25

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

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

query I rowsort
SELECT ALL - ( - - 23 ) + + col0 FROM tab0
----
-8
64
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 15 * + 77 * col2 col2 FROM tab1
----
-5654880
-5792325
-7147140

onlyif mysql # aggregate syntax: 
query II rowsort label-6947
SELECT DISTINCT COUNT( * ) * + 28 AS col0, + 6 * + + COUNT( * ) AS col1 FROM tab1
----
84
18

skipif mysql # not compatible
query II rowsort label-6947
SELECT DISTINCT COUNT ( * ) * + 28 AS col0, + 6 * + + COUNT ( * ) AS col1 FROM tab1
----
84
18

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) <> - - col2 )
----

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

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

query I rowsort
SELECT - + 48 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

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

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - 10 * + COUNT ( * ) FROM tab2
----
-30

query I rowsort
SELECT ALL - col0 - + 77 AS col1 FROM tab1
----
-128
-162
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT DISTINCT - col2 DIV + 79 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT - col2 / + 79 AS col1 FROM tab0 AS cor0
----
-1
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6955
SELECT + - 24 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6955
SELECT + - 24 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - ( + col1 ) * - - 68 * + col0 AS col0 FROM tab0 AS cor0
----
-124236
-6596
-82620

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT - ( - col2 ) DIV 40 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT - ( - col2 ) / 40 AS col1 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT ALL CAST( col1 AS SIGNED ) col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT ALL CAST ( col1 AS INTEGER ) col1 FROM tab0
----
1
21
81

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6966
SELECT * FROM tab0 WHERE NOT ( col0 + + col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND 46 )
----

skipif mysql # not compatible
query III rowsort label-6966
SELECT * FROM tab0 WHERE NOT ( col0 + + col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND 46 )
----

query I rowsort
SELECT ALL col2 + - col2 + 70 * - col0 AS col1 FROM tab1 AS cor0
----
-3570
-5950
-6370

query I rowsort
SELECT + + col2 * - col1 * - + col2 * - 61 * + 72 + + + 77 AS col1 FROM tab0 AS cor0
----
-43045915
-785856091
-9223123

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

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

query I rowsort
SELECT DISTINCT - col0 + + ( + + 47 ) FROM tab0 AS cor0
----
-40
-50
32

query I rowsort
SELECT + 87 * - AVG ( - 82 ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT 21 + - + ( 86 ) + + CAST( - - 48 AS SIGNED ) AS col0 FROM tab1
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-6972
SELECT 21 + - + ( 86 ) + + CAST ( - - 48 AS INTEGER ) AS col0 FROM tab1
----
-17
-17
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6975
SELECT 62 + - + col0 DIV + col0 AS col0 FROM tab0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-6975
SELECT 62 + - + col0 / + col0 AS col0 FROM tab0
----
61
61
61

query I rowsort
SELECT + + col1 + - 83 AS col0 FROM tab0 cor0
----
-2
-62
-82

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 41 + col2 > col2
----

query I rowsort
SELECT ALL col0 + 26 AS col2 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL + - SUM( DISTINCT + 75 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 / - col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + - SUM ( DISTINCT + 75 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 / - col1 > NULL
----
NULL

query I rowsort
SELECT - col2 * col2 FROM tab1 WHERE ( NULL ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + 68 + COUNT( * ) + - 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

skipif mysql # not compatible
query I rowsort label-6981
SELECT + 68 + COUNT ( * ) + - 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

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

query I rowsort
SELECT + 16 * 83 AS col0 FROM tab2 AS cor0
----
1328
1328
1328

query I rowsort
SELECT - col1 * - - col2 * - 17 * - 44 * - - 84 + + ( col2 ) FROM tab0 AS cor0
----
-13194710
-239201377
-6220269

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 66 ) <= - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * + + ( + - col0 ) - col0 * + 27 * - 26 AS col0 FROM tab0 AS cor0
----
10755
68643
77503

onlyif mysql # DIV for integer division: 
query III rowsort label-6987
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 DIV - col2 = + 2 DIV + - 19 * + 22
----
85
5
59

skipif mysql # not compatible
query III rowsort label-6987
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 / - col2 = + 2 / + - 19 * + 22
----
85
5
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 0
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6992
SELECT CAST ( 66 AS INTEGER ) AS col0 FROM tab1
----
66
66
66

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6997
SELECT + 11 / + col0 / - CAST ( NULL AS REAL ) * - ( + 32 ) FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL > ( NULL ) )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 7 ) > 10 * col1
----

query I rowsort
SELECT DISTINCT + col1 * - - 67 - col0 + - 8 FROM tab2 AS cor0
----
3363
4406
5087

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT DISTINCT - 83 + + MIN( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT - 83 + + MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7004
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) + - 88 < + 5
----

skipif mysql # not compatible
query III rowsort label-7004
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) + - 88 < + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT + - col2 DIV col0 AS col2 FROM tab0 WHERE col0 * - - col2 IS NOT NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT + - col2 / col0 AS col2 FROM tab0 WHERE col0 * - - col2 IS NOT NULL
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL = 84 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-7006
SELECT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL = 84 + - col2
----
0

query I rowsort
SELECT ALL col2 * col0 * - 92 FROM tab2 AS cor0
----
-235520
-400200
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-7008
SELECT ALL + COUNT( * ) + + 72 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7008
SELECT ALL + COUNT ( * ) + + 72 FROM tab1 AS cor0
----
75

query I rowsort
SELECT ALL - col1 + - - col0 + + - col1 FROM tab0 AS cor0
----
-147
45
95

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL + SUM( ALL - col2 ) AS col1 FROM tab2 WHERE NOT + col1 + - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + SUM ( ALL - col2 ) AS col1 FROM tab2 WHERE NOT + col1 + - + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT DISTINCT SUM( - + ( - - 11 ) ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-7014
SELECT DISTINCT SUM ( - + ( - - 11 ) ) FROM tab2
----
-33

query I rowsort
SELECT 57 - - + 33 + - + col1 AS col0 FROM tab2 AS cor0
----
13
23
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col1 + - - col0
----

query II rowsort
SELECT - - 60 + + + col2, col2 AS col1 FROM tab2 AS cor0
----
100
40
118
58
83
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7018
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col0, MAX( ALL 99 ) FROM tab2, tab1 AS cor0
----
1
99

skipif mysql # not compatible
query II rowsort label-7018
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col0, MAX ( ALL 99 ) FROM tab2, tab1 AS cor0
----
1
99

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 3 NOT IN ( col1, col1 + - col2 )
----

query I rowsort
SELECT + 46 * + col1 AS col0 FROM tab1 AS cor0
----
2162
230
644

query I rowsort
SELECT ALL 21 * - col1 AS col1 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # DIV for integer division: 
query I rowsort label-7024
SELECT DISTINCT - col1 DIV + 27 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7024
SELECT DISTINCT - col1 / + 27 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT - - col0 * col2 FROM tab2 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE NOT + + col0 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT - col0 DIV + - col0 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7027
SELECT - col0 / + - col0 col0 FROM tab0
----
1
1
1

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 53 + 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - - col1 * - col0 AS col2 FROM tab1
----
-420
-4230
-700

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 40 + - 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7034
SELECT ALL + col0 + - - 75 * ( - CAST( NULL AS SIGNED ) ) * - col2 AS col2, col2 + - - 37 col2 FROM tab0 AS cor0
----
NULL
136
NULL
47
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7034
SELECT ALL + col0 + - - 75 * ( - CAST ( NULL AS INTEGER ) ) * - col2 AS col2, col2 + - - 37 col2 FROM tab0 AS cor0
----
NULL
136
NULL
47
NULL
84

onlyif mysql # DIV for integer division: 
query II rowsort label-7035
SELECT ALL 59 DIV - col2 + - + col2 AS col2, - col1 FROM tab2 AS cor0
----
-25
-51
-41
-77
-59
-67

skipif mysql # not compatible
query II rowsort label-7035
SELECT ALL 59 / - col2 + - + col2 AS col2, - col1 FROM tab2 AS cor0
----
-25
-51
-41
-77
-59
-67

query I rowsort
SELECT ALL - ( 9 ) AS col1 FROM tab2 AS cor0 WHERE NULL >= + col0 / col0 + + col2 / 73
----

query I rowsort
SELECT 56 - - 59 FROM tab0 AS cor0
----
115
115
115

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7040
SELECT + + col0 AS col0, + col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7040
SELECT + + col0 AS col0, + col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT 72 + + + col2 DIV + col1 FROM tab1
----
73
78
83

skipif mysql # not compatible
query I rowsort label-7041
SELECT 72 + + + col2 / + col1 FROM tab1
----
73
78
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7042
SELECT DISTINCT + + 53 * - COUNT( * ) AS col1 FROM tab2 WHERE NOT + 86 + + col2 + 29 * - col0 + + col1 - + CAST( NULL AS DECIMAL ) IS NOT NULL
----
-159

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT + + 53 * - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + 86 + + col2 + 29 * - col0 + + col1 - + CAST ( NULL AS REAL ) IS NOT NULL
----
-159

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT 13 + MIN( + col2 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-7044
SELECT 13 + MIN ( + col2 ) FROM tab1
----
72

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

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

query I rowsort
SELECT DISTINCT - col0 - - 69 * - 36 AS col2 FROM tab1
----
-2535
-2569
-2575

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT ALL + + MIN( 45 ) FROM tab2 WHERE NOT ( ( NULL ) >= + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + + MIN ( 45 ) FROM tab2 WHERE NOT ( ( NULL ) >= + 39 )
----
NULL

query I rowsort
SELECT + 28 + 44 * - - 15 AS col1 FROM tab0
----
688
688
688

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT ALL - COUNT( ALL 50 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7049
SELECT ALL - COUNT ( ALL 50 ) FROM tab0
----
-3

query I rowsort
SELECT 61 * - + 65 * - - col2 AS col2 FROM tab2 AS cor0
----
-158600
-229970
-91195

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

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

query I rowsort
SELECT + + ( + 64 ) FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND - - 45 * - col1
----
64
64
64

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

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

query I rowsort
SELECT + 56 * - - col2 + + col2 + + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * + + 27 IS NULL
----
1334
2320
3364

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

query I rowsort
SELECT + ( + - col0 ) * - col1 * + col0 AS col0 FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7058
SELECT ( MAX( + - col1 ) ) DIV - 24 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-7058
SELECT ( MAX ( + - col1 ) ) / - 24 FROM tab2
----
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 77 + 48 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL MIN( + + 14 ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL MIN ( + + 14 ) FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT - MIN( ALL - + 77 ) * + - COUNT( * ) AS col0 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-7061
SELECT - MIN ( ALL - + 77 ) * + - COUNT ( * ) AS col0 FROM tab1
----
-231

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

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

query I rowsort
SELECT + 31 * - col0 FROM tab1
----
-1581
-2635
-2821

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT - MAX( + col0 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7065
SELECT - MAX ( + col0 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT DISTINCT 39 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT 39 / + col1 AS col1 FROM tab1 AS cor0
----
0
2
7

query I rowsort
SELECT DISTINCT 6 + - - col1 FROM tab0 AS cor0
----
27
7
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7068
SELECT ALL + 51 * + - 50 * + 36 DIV - + 2 + 84 * COUNT( ALL 46 ) AS col1 FROM tab0 AS cor0
----
46152

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL + 51 * + - 50 * + 36 / - + 2 + 84 * COUNT ( ALL 46 ) AS col1 FROM tab0 AS cor0
----
46152

query I rowsort
SELECT ALL - col2 - + 32 AS col0 FROM tab2 AS cor0
----
-55
-72
-90

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 76 + - + col1 * + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7072
SELECT ALL - 11 + + COUNT( * ) * - - CAST( NULL AS SIGNED ) * + COUNT( * ) * 36 AS col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7073
SELECT col2 DIV + col2 - col2 + - 90 * 24 col2 FROM tab1
----
-2218
-2227
-2255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7073
SELECT col2 / + col2 - col2 + - 90 * 24 col2 FROM tab1
----
-2218
-2227
-2255

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

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

query I rowsort
SELECT ALL - + 26 FROM tab1 AS cor0 WHERE NOT col2 / col2 <> + ( + 89 )
----

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

query I rowsort
SELECT ALL - 99 + - 71 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 049c51cd5c69c812039629bb08303169

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

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

query II rowsort
SELECT DISTINCT - 73 AS col0, ( 98 ) FROM tab1 AS cor0
----
-73
98

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

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

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

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

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

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

query I rowsort
SELECT col1 * + col2 + + - 75 AS col2 FROM tab1 AS cor0
----
1269
220
3121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col0 + - ( + col0 ) - - + 79 FROM tab1 AS cor0
----
-103
-23
-91

query I rowsort
SELECT 52 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 36
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT - ( col0 ) DIV - - col0 + col2 * col2 AS col1 FROM tab0
----
2208
9800
99

skipif mysql # not compatible
query I rowsort label-7090
SELECT - ( col0 ) / - - col0 + col2 * col2 AS col1 FROM tab0
----
2208
9800
99

query I rowsort
SELECT col2 * + + col1 + col1 FROM tab2 AS cor0
----
1224
3157
3953

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

query I rowsort
SELECT + 3 AS col1 FROM tab1 AS cor0 WHERE col1 * - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 * - - 55 + - - col2
----
0

skipif mysql # not compatible
query I rowsort label-7094
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col0 * - - 55 + - - col2
----
0

query I rowsort
SELECT ALL - ( + + col2 ) * - col2 + - col2 FROM tab0 cor0
----
2162
90
9702

query I rowsort
SELECT + + 37 - + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-14
-30
-40

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

query II rowsort
SELECT col0 + + col1 + - 81, col2 * + 47 AS col1 FROM tab2 cor0
----
16
1081
60
1880
61
2726

query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT + SUM( DISTINCT - col1 ) * + + 11 + 96 FROM tab0 AS cor0
----
-1037

skipif mysql # not compatible
query I rowsort label-7100
SELECT + SUM ( DISTINCT - col1 ) * + + 11 + 96 FROM tab0 AS cor0
----
-1037

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

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

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

query I rowsort
SELECT - 20 + - - 69 * + - col0 AS col1 FROM tab1
----
-3539
-5885
-6299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7104
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) - + 62 AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) - + 62 AS col2 FROM tab2
----
-59

query I rowsort
SELECT DISTINCT col1 + - col2 + - - col0 AS col0 FROM tab2
----
101
74
84

query I rowsort
SELECT + col0 * + col2 + - 13 AS col1 FROM tab1
----
4883
5002
6175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7107
SELECT DISTINCT - col0 col0 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) <= - ( - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7107
SELECT DISTINCT - col0 col0 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) <= - ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7108
SELECT DISTINCT col2 - - - col2 DIV - + ( + 69 ) + 47 FROM tab1
----
106
115
144

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT col2 - - - col2 / - + ( + 69 ) + 47 FROM tab1
----
106
115
144

onlyif mysql # DIV for integer division: 
query II rowsort label-7109
SELECT - col0 * + - col1 AS col2, col0 DIV + + col0 FROM tab0
----
1215
1
1827
1
97
1

skipif mysql # not compatible
query II rowsort label-7109
SELECT - col0 * + - col1 AS col2, col0 / + + col0 FROM tab0
----
1215
1
1827
1
97
1

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

skipif mysql # not compatible
query I rowsort label-7110
SELECT - COUNT ( - + col1 ) FROM tab2
----
-3

query I rowsort
SELECT ALL 5 * + col0 FROM tab0
----
435
485
75

query I rowsort
SELECT - 54 * - 17 AS col1 FROM tab1
----
918
918
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - 64 AS col1, col0 col2 FROM tab0
----
5568
87
6208
97
960
15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT 95, + COUNT( * ) AS col0 FROM tab0
----
95
3

skipif mysql # not compatible
query II rowsort label-7115
SELECT 95, + COUNT ( * ) AS col0 FROM tab0
----
95
3

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

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

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

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

query I rowsort
SELECT + - col0 + 91 + col0 + + 48 AS col0 FROM tab1 AS cor0
----
139
139
139

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

query I rowsort
SELECT 92 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - + col1 AND + col2
----

query II rowsort
SELECT DISTINCT col0, - 38 - + - 33 FROM tab1
----
51
-5
85
-5
91
-5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7124
SELECT COUNT( + 96 ) AS col2, 45 col2 FROM tab0
----
3
45

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT DISTINCT - ( + 99 ) DIV 44 DIV + 22 + col0 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - ( + 99 ) / 44 / + 22 + col0 AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7126
SELECT - SUM( + ( + 2 ) ) DIV COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7126
SELECT - SUM ( + ( + 2 ) ) / COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-18

query II rowsort
SELECT ALL col2, + 55 AS col0 FROM tab2
----
23
55
40
55
58
55

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

query I rowsort
SELECT - 31 - - 16 FROM tab0 AS cor0
----
-15
-15
-15

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7132
SELECT DISTINCT COUNT( * ) - 31, + ( COUNT( * ) ) col2 FROM tab1
----
-28
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7132
SELECT DISTINCT COUNT ( * ) - 31, + ( COUNT ( * ) ) col2 FROM tab1
----
-28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT DISTINCT + + MIN( ( + 28 ) ) * + 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1428

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + + MIN ( ( + 28 ) ) * + 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1428

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7135
SELECT + + col1 DIV - 10 FROM tab2 AS cor0
----
-5
-6
-7

skipif mysql # not compatible
query I rowsort label-7135
SELECT + + col1 / - 10 FROM tab2 AS cor0
----
-5
-6
-7

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7137
SELECT ALL - - CAST( - + SUM( ( + col2 ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - - CAST ( - + SUM ( ( + col2 ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE - ( - 57 ) - + col0 BETWEEN NULL AND + 21
----

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

query I rowsort
SELECT + 17 FROM tab1 WHERE NOT + + col2 >= - 70
----

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

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

query I rowsort
SELECT + col1 + + 11 FROM tab1
----
16
25
58

query I rowsort
SELECT - 78 FROM tab2 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 IN ( 33 )
----

query I rowsort
SELECT - 22 * col1 - col1 AS col1 FROM tab1
----
-1081
-115
-322

query I rowsort
SELECT - col1 + ( 11 + 76 ) * + 59 FROM tab0
----
5052
5112
5132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT DISTINCT COUNT( * ) + - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) <> 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT ALL 99 + + COUNT( * ) * - 61 AS col2 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL 99 + + COUNT ( * ) * - 61 AS col2 FROM tab1
----
-84

query I rowsort
SELECT ALL 10 * col0 FROM tab0
----
150
870
970

query III rowsort
SELECT * FROM tab2 WHERE + col1 >= ( 4 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + col2 + col1 AS col1 FROM tab2
----
-1007
-2483
-4283

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT 7 * MIN( 92 ) FROM tab1
----
644

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 7 * MIN ( 92 ) FROM tab1
----
644

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND ( 64 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT COUNT( * ) * MAX( + col0 ) AS col0 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-7159
SELECT COUNT ( * ) * MAX ( + col0 ) AS col0 FROM tab2
----
225

query I rowsort
SELECT + col1 * - 85 FROM tab0
----
-1785
-6885
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT COUNT( * ) * + 45 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-7161
SELECT COUNT ( * ) * + 45 FROM tab0
----
135

query I rowsort
SELECT ALL col0 - + 15 FROM tab1
----
36
70
76

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT DISTINCT AVG ( - 71 ) + MAX( + CAST( NULL AS SIGNED ) ) * + AVG ( + 45 + - col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT AVG ( - 71 ) + MAX ( + CAST ( NULL AS INTEGER ) ) * + AVG ( + 45 + - col0 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + + 76 AS col0 FROM tab2
----
127
143
153

query I rowsort
SELECT + 27 * col2 FROM tab0
----
1269
2673
270

query I rowsort
SELECT DISTINCT 72 + - col1 FROM tab2
----
-5
21
5

query I rowsort
SELECT 96 + - ( col1 ) * - col2 FROM tab1 AS cor0
----
1440
3292
391

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

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

query I rowsort
SELECT + col2 * - 80 FROM tab1 AS cor0 WHERE - col1 + - 13 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + ( + col1 + - 90 * + col2 ) AS col1 FROM tab0 AS cor0
----
-4134
-792
-8812

query I rowsort
SELECT DISTINCT 55 + + 5 AS col1 FROM tab0 AS cor0
----
60

query I rowsort
SELECT DISTINCT 27 - col1 * col2 FROM tab0
----
-183
-3780
-72

query I rowsort
SELECT + col1 * - 33 - 61 AS col0 FROM tab2
----
-1744
-2272
-2602

query I rowsort
SELECT ALL + 94 * 86 - 24 AS col1 FROM tab2
----
8060
8060
8060

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

skipif mysql # not compatible
query III rowsort label-7176
SELECT * FROM tab2 WHERE NULL < - CAST ( NULL AS INTEGER ) * - 85 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT col0 - col2 DIV col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7177
SELECT col0 - col2 / col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - COUNT( DISTINCT 85 ) - - COUNT( * ) AS col1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-7178
SELECT - COUNT ( DISTINCT 85 ) - - COUNT ( * ) AS col1 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT COUNT( * ) - - 58 * 54 AS col0 FROM tab2 AS cor0
----
3135

skipif mysql # not compatible
query I rowsort label-7179
SELECT COUNT ( * ) - - 58 * 54 AS col0 FROM tab2 AS cor0
----
3135

query I rowsort
SELECT + col2 - 93 * col2 FROM tab2 AS cor0
----
-2116
-3680
-5336

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

query I rowsort
SELECT ALL - ( - 21 ) FROM tab2 AS cor0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 - + col1 col2 FROM tab0 cor0
----
-100
-120
-180

query I rowsort
SELECT - 33 * + col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

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

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

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

query I rowsort
SELECT ALL + 89 * col1 FROM tab0 AS cor0
----
1869
7209
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 * - col1 col2 FROM tab2 AS cor0
----
-561
-737
-847

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 84 ) >= col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab2 AS cor0 WHERE col1 = NULL
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE + 67 BETWEEN NULL AND ( + 43 + col2 )
----

query I rowsort
SELECT ALL + 35 * + col1 AS col0 FROM tab0 AS cor0
----
2835
35
735

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7200
SELECT ALL - - COUNT ( + 58 ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab1 cor1 ON NULL IS NULL WHERE NOT ( - 50 ) IS NOT NULL
----

query I rowsort
SELECT + ( - 68 ) + + col2 AS col1 FROM tab2 AS cor0
----
-10
-28
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT COUNT( col1 ) + 17 + + 74 AS col2 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-7204
SELECT COUNT ( col1 ) + 17 + + 74 AS col2 FROM tab1 cor0
----
94

query I rowsort
SELECT ALL + 58 * 26 AS col2 FROM tab1 AS cor0 WHERE 97 + - - col1 * - col2 BETWEEN NULL AND col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + MIN( - 74 ) * 25 FROM tab0 AS cor0
----
-1850

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + MIN ( - 74 ) * 25 FROM tab0 AS cor0
----
-1850

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, col2 + col0 FROM tab1 AS cor0
----
-14
147
-47
159
-5
144

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( + 22 ) IS NULL
----

query I rowsort
SELECT ALL col0 * + col2 + + col1 AS col0 FROM tab0
----
786
891
9604

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

query I rowsort
SELECT ALL + 12 * - - col0 * 23 * col1 FROM tab1
----
117300
1180452
197064

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + + + COUNT( DISTINCT + col2 ) * + 41 AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + + + COUNT ( DISTINCT + col2 ) * + 41 AS col2 FROM tab2 AS cor0
----
129

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

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

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

query I rowsort
SELECT ALL + col2 * - + ( col1 ) - - 25 FROM tab1
----
-1319
-270
-3171

query I rowsort
SELECT - 9 * - 49 * - + 7 * - 67 + + + col1 FROM tab2
----
206880
206896
206906

query I rowsort
SELECT ALL col0 + + - 84 AS col2 FROM tab2
----
-20
-38
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT DISTINCT + 28 DIV col2 * col2 - + - col2 * - ( col0 ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT + 28 / col2 * col2 - + - col2 * - ( col0 ) FROM tab1
----
-4896
-5015
-6188

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

query III rowsort
SELECT * FROM tab2 WHERE ( + + col1 + - col0 / 2 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 83 + + col0 * + 64 FROM tab0 AS cor0
----
-10
5485
-47
877
-99
6125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT + 7 DIV + + COUNT( * ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7229
SELECT + 7 / + + COUNT ( * ) FROM tab2 AS cor0
----
2

query II rowsort
SELECT + 67, col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
67
15
67
87
67
97

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT 80 * - 76 IS NULL
----
51
67
77

query I rowsort
SELECT - 11 * - + col0 AS col1 FROM tab1 AS cor0
----
1001
561
935

query I rowsort
SELECT col1 * - 26 FROM tab2 AS cor0
----
-1326
-1742
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + COUNT( + + col2 ) * 92 AS col1 FROM tab1 cor0
----
276

skipif mysql # not compatible
query I rowsort label-7234
SELECT + COUNT ( + + col2 ) * 92 AS col1 FROM tab1 cor0
----
276

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT - MAX( ALL - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT - MAX ( ALL - col1 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7237
SELECT DISTINCT * FROM tab0 WHERE + 25 * 38 >= ( - CAST( col0 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7237
SELECT DISTINCT * FROM tab0 WHERE + 25 * 38 >= ( - CAST ( col0 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab1, tab1 AS cor0
----
-87

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT - 37 + - - col2 * + col2 NOT BETWEEN - + 16 + + 33 AND + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 / - col2 >= NULL
----

query II rowsort
SELECT 9, + col1 FROM tab2 cor0
----
9
51
9
67
9
77

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

query I rowsort
SELECT - col2 + + col0 * - col2 - col2 AS col1 FROM tab1 AS cor0
----
-5088
-5133
-6324

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7246
SELECT DISTINCT col0 DIV + col0, col2 - - col2 col0 FROM tab2 AS cor0
----
1
116
1
46
1
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7246
SELECT DISTINCT col0 / + col0, col2 - - col2 col0 FROM tab2 AS cor0
----
1
116
1
46
1
80

query I rowsort
SELECT ALL 99 + + col1 AS col2 FROM tab1 AS cor0
----
104
113
146

onlyif mysql # DIV for integer division: 
query I rowsort label-7248
SELECT ALL + 77 + col2 DIV - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + 77 + col2 / - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
78
78
78

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7250
SELECT ALL - 63 + - COUNT ( * ), COUNT ( * ) col0 FROM tab1 AS cor0
----
-66
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7252
SELECT ALL col1 DIV + col1 + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL col1 / + col1 + col1 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT ALL 15 - + col2 + + col1 FROM tab0
----
-83
26
49

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7255
SELECT * FROM tab1 WHERE - col1 / 85 + + CAST( - ( + 11 ) AS SIGNED ) NOT IN ( + col0 * 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7255
SELECT * FROM tab1 WHERE - col1 / 85 + + CAST ( - ( + 11 ) AS INTEGER ) NOT IN ( + col0 * 89 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 + - col0 + - 12 AS col1 FROM tab2
----
-116
-145
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ( - COUNT( * ) ) + - 41 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-7257
SELECT ( - COUNT ( * ) ) + - 41 FROM tab0
----
-44

query III rowsort
SELECT * FROM tab2 WHERE + - 54 * - + col0 BETWEEN NULL AND - col1 + + col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT DISTINCT + + col1 * + CAST( - col0 AS SIGNED ) * + 17 * + 27 + - ( + col2 ) * + 1 AS col0 FROM tab2 AS cor0
----
-1076837
-2261992
-2306533

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT + + col1 * + CAST ( - col0 AS INTEGER ) * + 17 * + 27 + - ( + col2 ) * + 1 AS col0 FROM tab2 AS cor0
----
-1076837
-2261992
-2306533

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7266
SELECT CAST( NULL AS DECIMAL ) * - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - 90 * + MAX( - + 37 ) FROM tab1 AS cor0
----
3330

skipif mysql # not compatible
query I rowsort label-7267
SELECT - 90 * + MAX ( - + 37 ) FROM tab1 AS cor0
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT 77 * - COUNT( * ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-7268
SELECT 77 * - COUNT ( * ) FROM tab1
----
-231

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

skipif mysql # not compatible
query I rowsort label-7269
SELECT COUNT ( * ) / - 58 * + + SUM ( DISTINCT - - col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 NOT BETWEEN - + 35 * + + col2 / + + col2 * - - 50 - col2 / + col2 * col1 AND ( NULL )
----

query I rowsort
SELECT ( + - 82 ) AS col1 FROM tab1
----
-82
-82
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT ALL 20 DIV + COUNT( * ) FROM tab2
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7273
SELECT + col2 / - col2 / CAST( NULL AS SIGNED ) AS col1, + col1 * + 35 FROM tab2
----
NULL
1785
NULL
2345
NULL
2695

skipif mysql # not compatible
query II rowsort label-7273
SELECT + col2 / - col2 / CAST ( NULL AS INTEGER ) AS col1, + col1 * + 35 FROM tab2
----
NULL
1785
NULL
2345
NULL
2695

query I rowsort
SELECT DISTINCT 68 * - + 68 AS col1 FROM tab2
----
-4624

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7275
SELECT DISTINCT COUNT( * ) DIV - + MIN( 54 ), COUNT( * ) AS col0 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-7275
SELECT DISTINCT COUNT ( * ) / - + MIN ( 54 ), COUNT ( * ) AS col0 FROM tab1
----
0
3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7277
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7277
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 cor0
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE - 69 BETWEEN NULL AND ( - col0 / + ( - 59 ) * + + 3 )
----

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

query I rowsort
SELECT 71 * - 97 AS col2 FROM tab0
----
-6887
-6887
-6887

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

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

query I rowsort
SELECT - col1 * - col1 + 2 FROM tab0 AS cor0
----
3
443
6563

onlyif mysql # DIV for integer division: 
query II rowsort label-7284
SELECT DISTINCT + col2 AS col1, - col0 DIV 56 + col0 + + + 55 * + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
10
141
47
70
99
151

skipif mysql # not compatible
query II rowsort label-7284
SELECT DISTINCT + col2 AS col1, - col0 / 56 + col0 + + + 55 * + col1 / + col1 AS col1 FROM tab0 AS cor0
----
10
141
47
70
99
151

query I rowsort
SELECT col0 + 70 * - 59 AS col0 FROM tab1 AS cor0
----
-4039
-4045
-4079

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT - col0 * + - col2 + + CAST( + + col2 AS SIGNED ) FROM tab2 cor0 WHERE NULL IS NULL
----
1081
2600
4408

skipif mysql # not compatible
query I rowsort label-7286
SELECT - col0 * + - col2 + + CAST ( + + col2 AS INTEGER ) FROM tab2 cor0 WHERE NULL IS NULL
----
1081
2600
4408

query I rowsort
SELECT DISTINCT + - 78 + + col0 AS col2 FROM tab2 AS cor0
----
-14
-3
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7288
SELECT DISTINCT + col2 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT + col2 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
118
136
192

query II rowsort
SELECT ALL + 46 AS col2, + col1 FROM tab0 AS cor0 WHERE - col1 - + + col0 IS NOT NULL
----
46
1
46
21
46
81

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

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

query I rowsort
SELECT DISTINCT col1 + 90 + + col1 * - col1 FROM tab0
----
-330
-6390
90

query I rowsort
SELECT DISTINCT + + col0 + - 26 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - - col1 AND - col1
----

query I rowsort
SELECT DISTINCT 59 - + col2 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL MIN( + 40 ) FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL MIN ( + 40 ) FROM tab0
----
40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT + 79 - MIN( ALL - - col1 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 79 - MIN ( ALL - - col1 ) FROM tab1
----
74

query I rowsort
SELECT - col2 * - - col0 - col1 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT + + col1 + + col2 * - - col2 + - 8 + - 39 FROM tab0 AS cor0
----
2243
74
9755

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7302
SELECT DISTINCT + col0 AS col0, 95 DIV - 84 FROM tab1 cor0
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-7302
SELECT DISTINCT + col0 AS col0, 95 / - 84 FROM tab1 cor0
----
51
-1
85
-1
91
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7303
SELECT ALL - col2 AS col1, + 76 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-7303
SELECT ALL - col2 AS col1, + 76 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT - - col1 * - col0 * - 33 FROM tab0 AS cor0
----
3201
40095
60291

query I rowsort
SELECT - ( - - ( - - col0 ) ) * 10 AS col0 FROM tab2 AS cor0
----
-460
-640
-750

query II rowsort
SELECT + - col2 * + 21 * col0, 50 AS col1 FROM tab0 AS cor0
----
-14805
50
-18270
50
-201663
50

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

query I rowsort
SELECT DISTINCT col2 * 3 FROM tab0 AS cor0
----
141
297
30

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + col0 BETWEEN + + 33 AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + 66 * + col2 AS col1 FROM tab1
----
323136
330990
408408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT DISTINCT col1 DIV 83 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT col1 / 83 FROM tab0
----
0

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

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

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

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT DISTINCT + 35 * COUNT( * ) + + ( - 68 ) + 9 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
256

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT + 35 * COUNT ( * ) + + ( - 68 ) + 9 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
256

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 BETWEEN + + col0 AND - + 6 + - - col2 + col0 + + - col0 * + - col2
----
87
21
10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL + COUNT( * ) col0 FROM tab1 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-7324
SELECT ALL + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT - 87 * col2 AS col2 FROM tab2 AS cor0
----
-2001
-3480
-5046

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 = + ( col2 ) * - - col2 - + 66 + - 0
----

query I rowsort
SELECT - - ( - col2 ) - 41 FROM tab0 AS cor0
----
-140
-51
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7328
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - 50 * - ( - + 15 ) + - - col0 + + - CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-7328
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - 50 * - ( - + 15 ) + - - col0 + + - CAST ( NULL AS INTEGER ) ) = NULL
----

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

query II rowsort
SELECT DISTINCT - 39 + + - ( col1 ) AS col1, col1 AS col0 FROM tab0 AS cor0
----
-120
81
-40
1
-60
21

query I rowsort
SELECT - 22 + - col2 AS col2 FROM tab1
----
-118
-81
-90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + 96 col2 FROM tab2
----
-21
-32
-50

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

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

query II rowsort
SELECT + ( - 44 ), 98 AS col1 FROM tab1
----
-44
98
-44
98
-44
98

onlyif mysql # DIV for integer division: 
query II rowsort label-7336
SELECT + col0 AS col2, 17 DIV - - 61 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7336
SELECT + col0 AS col2, 17 / - - 61 FROM tab1
----
51
0
85
0
91
0

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

query I rowsort
SELECT + col0 * - - ( 36 ) FROM tab2 AS cor0
----
1656
2304
2700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7339
SELECT DISTINCT * FROM tab2 WHERE NOT 68 - - col1 BETWEEN NULL AND + + CAST( NULL AS SIGNED ) * - 48 + + - col1 + - - 58
----

skipif mysql # not compatible
query III rowsort label-7339
SELECT DISTINCT * FROM tab2 WHERE NOT 68 - - col1 BETWEEN NULL AND + + CAST ( NULL AS INTEGER ) * - 48 + + - col1 + - - 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 - col2 >= ( + + 22 + col2 )
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * col1 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NULL > 27
----

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

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

skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - 82 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT - COUNT( + + col2 ) + 25 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - COUNT ( + + col2 ) + 25 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
22

query I rowsort
SELECT ALL - 84 * + col2 AS col1 FROM tab0 cor0
----
-3948
-8316
-840

query I rowsort
SELECT DISTINCT col2 + + col1 + - + 73 AS col2 FROM tab2 cor0
----
1
44
52

query I rowsort
SELECT ALL - 50 * + 46 AS col1 FROM tab1
----
-2300
-2300
-2300

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT - COUNT( * ) * - 91 AS col0 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-7350
SELECT - COUNT ( * ) * - 91 AS col0 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT - - MAX( + col2 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - - col1 AND - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7351
SELECT - - MAX ( + col2 ) AS col0 FROM tab1 WHERE NOT NULL BETWEEN - - col1 AND - 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7352
SELECT - 73 AS col2, CAST( NULL AS SIGNED ) * - - col1 * col2 FROM tab0
----
-73
NULL
-73
NULL
-73
NULL

skipif mysql # not compatible
query II rowsort label-7352
SELECT - 73 AS col2, CAST ( NULL AS INTEGER ) * - - col1 * col2 FROM tab0
----
-73
NULL
-73
NULL
-73
NULL

query II rowsort
SELECT ALL 5 AS col1, col2 FROM tab0 cor0
----
5
10
5
47
5
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( col2 ) + + - col0 IS NULL
----

query I rowsort
SELECT ALL - col0 + 97 AS col2 FROM tab1 cor0
----
12
46
6

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 = - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7357
SELECT ALL + - ( + col2 ) + + col2 DIV col0 - - col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + - ( + col2 ) + + col2 / col0 - - col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 cor0 WHERE + 57 >= - 0 / 83 - - - col2 + + 93 + + + col2
----

query I rowsort
SELECT - 59 + col0 FROM tab2
----
-13
16
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7360
SELECT + col2 * + - 80 + + + 21 DIV + - ( col1 ) col1 FROM tab0
----
-3760
-7941
-801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7360
SELECT + col2 * + - 80 + + + 21 / + - ( col1 ) col1 FROM tab0
----
-3760
-7941
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT DISTINCT 47 + COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT 47 + COUNT ( * ) FROM tab1
----
50

query I rowsort
SELECT ALL + ( + ( - + 98 ) ) * 86 + - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8c47294e4b0a34be0b0e693fb3d0b469

query I rowsort
SELECT ALL - 64 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( NULL ) >= - col0
----

query I rowsort
SELECT ALL 28 AS col0 FROM tab2 cor0
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7366
SELECT + 16 DIV 2 * + - CAST( + 17 AS SIGNED ) * - + 24 + + - 14 FROM tab0 AS cor0
----
3250
3250
3250

skipif mysql # not compatible
query I rowsort label-7366
SELECT + 16 / 2 * + - CAST ( + 17 AS INTEGER ) * - + 24 + + - 14 FROM tab0 AS cor0
----
3250
3250
3250

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT - + COUNT( + - 84 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7367
SELECT - + COUNT ( + - 84 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL col1 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # DIV for integer division: 
query I rowsort label-7369
SELECT - 21 DIV + + 77 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT - 21 / + + 77 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1 WHERE - 53 * col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT + 80 - + + col1 FROM tab0
----
-1
59
79

query II rowsort
SELECT DISTINCT 30 AS col2, - 57 AS col2 FROM tab0
----
30
-57

query II rowsort
SELECT ALL col2, 44 FROM tab0
----
10
44
47
44
99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT DISTINCT - COUNT( 68 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - COUNT ( 68 ) FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col1 * - + col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT + CAST( NULL AS SIGNED ) * 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT + CAST ( NULL AS INTEGER ) * 31 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 + + 6 * - col1 * - col2 BETWEEN ( - col0 * + col2 + - 37 + - - 59 * + 7 + ( - 51 ) + + - col0 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 67 * - 8 AS col1 FROM tab0 cor0
----
-536
-536
-536

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 + 83 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT - COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-7381
SELECT - COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
-3

query II rowsort
SELECT col1 AS col0, - col1 + - ( + col1 ) * + 25 AS col2 FROM tab2 AS cor0
----
51
-1326
67
-1742
77
-2002

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 72 <> + 86 + - col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7384
SELECT 36 AS col1, col2 DIV col1 AS col0 FROM tab1 cor0
----
36
1
36
11
36
6

skipif mysql # not compatible
query II rowsort label-7384
SELECT 36 AS col1, col2 / col1 AS col0 FROM tab1 cor0
----
36
1
36
11
36
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( col1 )
----

query I rowsort
SELECT col0 * 49 AS col2 FROM tab0
----
4263
4753
735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7388
SELECT 27 * + + CAST( MAX( + - col1 ) AS SIGNED ) + + 79 - - 3 + - SUM( ALL + 12 ), - COUNT( * ) AS col1 FROM tab1
----
-89
-3

skipif mysql # not compatible
query II rowsort label-7388
SELECT 27 * + + CAST ( MAX ( + - col1 ) AS INTEGER ) + + 79 - - 3 + - SUM ( ALL + 12 ), - COUNT ( * ) AS col1 FROM tab1
----
-89
-3

query I rowsort
SELECT ALL 57 * 73 AS col1 FROM tab2
----
4161
4161
4161

query III rowsort
SELECT * FROM tab1 WHERE + col0 IS NOT NULL AND NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT 46 + - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7391
SELECT 46 + - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0 + + - col2 AS col1, + col0 FROM tab2
----
17
75
23
46
24
64

query I rowsort
SELECT + + col1 + + 27 AS col1 FROM tab1 AS cor0
----
32
41
74

query I rowsort
SELECT ALL + + ( + - col2 ) * + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE ( col2 >= + 0 )
----
1
21
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + col1 * - 2 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 30 + - col0 NOT IN ( - - col0, 48 / - ( - col2 ) )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * + + col2 + + col1 - 17 >= - col2 / - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 AS col1, col1 col2 FROM tab2
----
-58
51
-58
67
-58
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 17 * + + col1 / + col0 - + + col2 BETWEEN - 89 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7402
SELECT ALL + CAST( - 43 AS SIGNED ) col0 FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7402
SELECT ALL + CAST ( - 43 AS INTEGER ) col0 FROM tab1 AS cor0
----
-43
-43
-43

query II rowsort
SELECT - col1 * 76 + - col0, + col1 FROM tab2 cor0
----
-3922
51
-5167
67
-5916
77

query II rowsort
SELECT col0, col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT + COUNT( DISTINCT - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT ALL + col0 * + col2 AS col1, col1 * + ( - 12 ) FROM tab1
----
4896
-168
5015
-60
6188
-564

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7407
SELECT ALL + COUNT( * ) DIV + 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + COUNT ( * ) / + 99 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT - col1 * col2 NOT BETWEEN 94 / - + col1 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-7408
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - col1 * col2 NOT BETWEEN 94 / - + col1 AND col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7410
SELECT + ( col2 ) * - 53 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7410
SELECT + ( col2 ) * - 53 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + + col1 AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT ALL + - CAST( col0 AS SIGNED ) col1 FROM tab0 WHERE col1 <> + ( col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7412
SELECT ALL + - CAST ( col0 AS INTEGER ) col1 FROM tab0 WHERE col1 <> + ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7413
SELECT + COUNT( * ), 63 DIV + COUNT( * ) AS col1 FROM tab0
----
3
21

skipif mysql # not compatible
query II rowsort label-7413
SELECT + COUNT ( * ), 63 / + COUNT ( * ) AS col1 FROM tab0
----
3
21

query I rowsort
SELECT DISTINCT - ( + - 66 ) * + 51 FROM tab1
----
3366

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + - col1 / - 23 < - 81 )
----
-3

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT + - col1 / - 23 < - 81 )
----
-3

query I rowsort
SELECT ALL - 10 * - col2 FROM tab0 cor0
----
100
470
990

onlyif mysql # DIV for integer division: 
query I rowsort label-7417
SELECT DISTINCT + - 99 + col0 DIV - col2 AS col1 FROM tab2 AS cor0
----
-100
-101

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT + - 99 + col0 / - col2 AS col1 FROM tab2 AS cor0
----
-100
-101

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( 54 ) + - + ( - 21 ) AS col1 FROM tab2 cor0
----
-33

query I rowsort
SELECT DISTINCT - + ( col2 ) - - col2 - - ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) + 93 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7421
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) + 93 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - ( - 13 ) FROM tab1 AS cor0
----
104
64
98

query II rowsort
SELECT - col0 AS col0, + 41 FROM tab0
----
-15
41
-87
41
-97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT COUNT( * ) * - 6 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7424
SELECT COUNT ( * ) * - 6 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT MAX( - 6 ) AS col0 FROM tab2 WHERE NOT - 7 * + + col2 / - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT MAX ( - 6 ) AS col0 FROM tab2 WHERE NOT - 7 * + + col2 / - col1 >= NULL
----
NULL

query II rowsort
SELECT col1 AS col2, 19 AS col1 FROM tab1
----
14
19
47
19
5
19

query I rowsort
SELECT ALL col0 * 24 AS col0 FROM tab1
----
1224
2040
2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 7 col2 FROM tab1
----
413
476
672

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT + 81, + ( + 96 ) AS col0 FROM tab0
----
81
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL - 77 + + - col1 + CAST( NULL AS SIGNED ) + 95 + + 94 + - 30 + col0 * + + col1 * - + ( - 69 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - 77 + + - col1 + CAST ( NULL AS INTEGER ) + 95 + + 94 + - 30 + col0 * + + col1 * - + ( - 69 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 72 * - - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-3768
-6179
-6620

query I rowsort
SELECT ALL + + col1 - - 6 + + 38 * + + col2 AS col0 FROM tab0 cor0
----
1873
3769
407

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, col2 )
----

query I rowsort
SELECT DISTINCT - col0 * - 13 + + - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
529
728
842

query II rowsort
SELECT col1 * col1, + col2 AS col1 FROM tab0 AS cor0
----
1
99
441
10
6561
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + MAX( DISTINCT + col2 ) * - + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + MAX ( DISTINCT + col2 ) * - + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT + CAST( ( MIN( ALL col1 ) ) AS SIGNED ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7438
SELECT + CAST ( ( MIN ( ALL col1 ) ) AS INTEGER ) FROM tab2 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT 98 DIV + 30 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7439
SELECT 98 / + 30 FROM tab0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT DISTINCT COUNT( ALL col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT COUNT ( ALL col0 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 NOT IN ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 2, + 93 AS col2 FROM tab0
----
2
93
2
93
2
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT + COUNT( * ) * + - COUNT( DISTINCT + - col2 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT - col1 * + + col0 * + + 60 * 3 FROM tab1
----
-128520
-76500
-769860

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT ALL - + COUNT( * ) AS col2, COUNT( DISTINCT - 96 ) FROM tab0 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-7445
SELECT ALL - + COUNT ( * ) AS col2, COUNT ( DISTINCT - 96 ) FROM tab0 AS cor0
----
-3
1

query II rowsort
SELECT col2, 44 + - 26 FROM tab1 AS cor0
----
59
18
68
18
96
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7447
SELECT + col1 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7447
SELECT + col1 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7448
SELECT DISTINCT + - col1 AS col2, col2 DIV 73 * + - 52 * 60 - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

skipif mysql # not compatible
query II rowsort label-7448
SELECT DISTINCT + - col1 AS col2, col2 / 73 * + - 52 * 60 - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7449
SELECT - - CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7449
SELECT - - CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + ( - col1 ) * - + 80 * - col1 + + ( + - 16 ) FROM tab0 AS cor0 WHERE NOT 37 / + + 68 IS NOT NULL
----

query I rowsort
SELECT 42 * - col0 AS col2 FROM tab1 WHERE NOT ( + 26 * + col1 * + col2 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT SUM( DISTINCT 53 ) DIV + 59 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT SUM ( DISTINCT 53 ) / + 59 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7453
SELECT - CAST( + MIN( - col1 ) AS SIGNED ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7453
SELECT - CAST ( + MIN ( - col1 ) AS INTEGER ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + col1 + + ( + - 86 ) FROM tab2
----
-19
-35
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT - SUM( + - 4 ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7455
SELECT - SUM ( + - 4 ) FROM tab2
----
12

onlyif mysql # DIV for integer division: 
query II rowsort label-7456
SELECT DISTINCT 50 + col2 AS col1, - col2 + - col1 DIV + col2 FROM tab2 AS cor0
----
108
-59
73
-25
90
-41

skipif mysql # not compatible
query II rowsort label-7456
SELECT DISTINCT 50 + col2 AS col1, - col2 + - col1 / + col2 FROM tab2 AS cor0
----
108
-59
73
-25
90
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT - col1 + + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT - col1 + + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 24 FROM tab1 cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT + - col1 DIV - 68 + + + 80 * + ( col0 ) FROM tab1 cor0
----
4080
6800
7280

skipif mysql # not compatible
query I rowsort label-7459
SELECT + - col1 / - 68 + + + 80 * + ( col0 ) FROM tab1 cor0
----
4080
6800
7280

query I rowsort
SELECT col2 * + + ( - col0 ) * + col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL + MIN( - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + MIN ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT DISTINCT + ( - 23 ) * - MAX( - + col1 ) AS col1 FROM tab2 AS cor0
----
-1173

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT + ( - 23 ) * - MAX ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-1173

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7465
SELECT ALL COUNT( * ) * - - 56 * + 31 FROM tab0
----
5208

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL COUNT ( * ) * - - 56 * + 31 FROM tab0
----
5208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT - 77 * - + col2 + - col0 / col0 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + 36 = col0
----

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 77 * - + col2 + - col0 / col0 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + 36 = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT MAX( ALL + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7467
SELECT MAX ( ALL + col0 ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7468
SELECT ALL + COUNT( + 81 ), - 61 col0 FROM tab2
----
3
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7468
SELECT ALL + COUNT ( + 81 ), - 61 col0 FROM tab2
----
3
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL CAST( + + col1 AS SIGNED ) * - 20 + - col0 AS col0 FROM tab0 AS cor0
----
-117
-1635
-507

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL CAST ( + + col1 AS INTEGER ) * - 20 + - col0 AS col0 FROM tab0 AS cor0
----
-117
-1635
-507

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
14
47
47
5
5

query I rowsort
SELECT + 62 * - col0 AS col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: 
query II rowsort label-7472
SELECT ALL + COUNT( * ) AS col1, - ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL + COUNT ( * ) AS col1, - ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
3
-3

query I rowsort
SELECT + col2 * + 3 AS col2 FROM tab0 AS cor0 WHERE + ( - 28 ) <= - + col1
----
297
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL + MAX( DISTINCT 55 ) FROM tab0 AS cor0 WHERE - col0 <> - ( 20 ) / - col1
----
55

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + MAX ( DISTINCT 55 ) FROM tab0 AS cor0 WHERE - col0 <> - ( 20 ) / - col1
----
55

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND 6 + col1 + - - 4
----

query I rowsort
SELECT DISTINCT + 32 + col0 AS col0 FROM tab0 AS cor0
----
119
129
47

query I rowsort
SELECT ALL - - col1 * + + col1 + + col2 - - - col0 AS col2 FROM tab2 AS cor0
----
2578
4472
5905

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT COUNT( - 93 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT COUNT ( - 93 ) FROM tab1
----
3

query I rowsort
SELECT + + 24 + col0 FROM tab0 WHERE - col0 IS NOT NULL
----
111
121
39

query I rowsort
SELECT DISTINCT - col0 - + col1 + col1 * - - 72 AS col0 FROM tab2
----
3575
4682
5403

query I rowsort
SELECT 1 + + col1 + + 12 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT DISTINCT + COUNT( + + 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT + COUNT ( + + 28 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT 78 + - col0 + + 54 * - ( + + col0 ), 93 * 34 AS col1 FROM tab2
----
-2452
3162
-3442
3162
-4047
3162

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

query I rowsort
SELECT + 9 AS col1 FROM tab2 cor0
----
9
9
9

query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT + COUNT( * ) * - COUNT( * ) + - + COUNT( ALL - col0 ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7487
SELECT + COUNT ( * ) * - COUNT ( * ) + - + COUNT ( ALL - col0 ) FROM tab2 cor0
----
-12

query I rowsort
SELECT - 9 * + col0 FROM tab1 AS cor0
----
-459
-765
-819

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 59 * - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7490
SELECT - COUNT( * ) AS col0, - COUNT( ALL - col2 ) DIV - SUM( col1 ) + - COUNT( * ) + - COUNT( + col2 ) FROM tab0 AS cor0
----
-3
-6

skipif mysql # not compatible
query II rowsort label-7490
SELECT - COUNT ( * ) AS col0, - COUNT ( ALL - col2 ) / - SUM ( col1 ) + - COUNT ( * ) + - COUNT ( + col2 ) FROM tab0 AS cor0
----
-3
-6

query I rowsort
SELECT DISTINCT - 4 * - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1700
-17108
-2856

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT - + col0 DIV + + ( + col2 ) + + 46 AS col2 FROM tab0 AS cor0
----
38
46
46

skipif mysql # not compatible
query I rowsort label-7492
SELECT - + col0 / + + ( + col2 ) + + 46 AS col2 FROM tab0 AS cor0
----
38
46
46

query I rowsort
SELECT DISTINCT - 69 * - - col0 AS col0 FROM tab0
----
-1035
-6003
-6693

query II rowsort
SELECT ALL col0 * + 34 * col0 * + col1, col0 FROM tab0
----
319906
97
5404266
87
619650
15

query I rowsort
SELECT DISTINCT + col1 * + - 76 FROM tab0 AS cor0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7496
SELECT - col1 * + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT - col1 * + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * 0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7498
SELECT ALL 5 * - MIN( ALL - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL 5 * - MIN ( ALL - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL = + col0
----

query I rowsort
SELECT DISTINCT - + 82 AS col1 FROM tab0 cor0 WHERE + 96 + col1 + - 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT - - CAST( - - ( col1 ) AS SIGNED ) * - - col0 * 30 FROM tab2 AS cor0
----
147840
150750
70380

skipif mysql # not compatible
query I rowsort label-7501
SELECT - - CAST ( - - ( col1 ) AS INTEGER ) * - - col0 * 30 FROM tab2 AS cor0
----
147840
150750
70380

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 * + col2 * + col1 + col0, col1, + ( + + 34 ), col2, + col1 )
----

query I rowsort
SELECT + 90 FROM tab0 AS cor0 WHERE NULL IN ( - col0, + 98, - + col2 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL CAST( NULL AS SIGNED ) + + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7505
SELECT ALL CAST ( NULL AS INTEGER ) + + + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT ALL col1 + - col1 DIV - 29 FROM tab1 AS cor0
----
14
48
5

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL col1 + - col1 / - 29 FROM tab1 AS cor0
----
14
48
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7507
SELECT DISTINCT + ( + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + ( + MAX ( DISTINCT CAST ( NULL AS REAL ) ) ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + - 4 - - col0 + + + 87 + - - col2 AS col1, col0 col1 FROM tab1 AS cor0 WHERE + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT - col0 + - - ( col0 ) + + col0 + col2 * 87 * + 82 * - + CAST( - + ( 58 ) AS SIGNED ) FROM tab2 cor0
----
16550944
23998851
9516802

skipif mysql # not compatible
query I rowsort label-7509
SELECT - col0 + - - ( col0 ) + + col0 + col2 * 87 * + 82 * - + CAST ( - + ( 58 ) AS INTEGER ) FROM tab2 cor0
----
16550944
23998851
9516802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT ALL + CAST( - col2 AS SIGNED ) - + col0 FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + CAST ( - col2 AS INTEGER ) - + col0 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL ( + col0 ) - + + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 75 - col0 FROM tab1
----
-10
-16
24

query I rowsort
SELECT - ( col1 ) + 89 * + col2 FROM tab2
----
1996
3483
5095

query I rowsort
SELECT DISTINCT + col0 * + 55 / + col2 FROM tab1 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7515
SELECT ALL COUNT( * ) AS col2, 6 FROM tab0
----
3
6

skipif mysql # not compatible
query II rowsort label-7515
SELECT ALL COUNT ( * ) AS col2, 6 FROM tab0
----
3
6

query II rowsort
SELECT + col2 AS col1, - col0 * - 23 FROM tab2
----
23
1058
40
1472
58
1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT + CAST( + - col1 AS SIGNED ) * - 24 * + - col1 AS col2 FROM tab0
----
-10584
-157464
-24

skipif mysql # not compatible
query I rowsort label-7517
SELECT + CAST ( + - col1 AS INTEGER ) * - 24 * + - col1 AS col2 FROM tab0
----
-10584
-157464
-24

query I rowsort
SELECT ALL 51 - + 34 - 1 - + col2 * - - col2 AS col0 FROM tab0
----
-2193
-84
-9785

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + + 11 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7520
SELECT ALL - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - col2 / - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT - 57, - 41 AS col1 FROM tab2 AS cor0
----
-57
-41

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 * col0 * col1 AS col1 FROM tab0 cor0
----
18270
57105
9603

query II rowsort
SELECT ALL col1, + 31 FROM tab2 AS cor0 WHERE - col2 * + + col0 IS NOT NULL
----
51
31
67
31
77
31

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 2 * - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 * + - 72, + col2 + col2 AS col1 FROM tab1 AS cor0
----
4248
118
4896
136
6912
192

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * col1 <= - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - - ( col1 ), + 92, col1 * - 9 * 70 + - 70, - 60 )
----

query I rowsort
SELECT 59 * + col0 AS col1 FROM tab2
----
2714
3776
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT - SUM( - + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7531
SELECT - SUM ( - + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT 89 * + + COUNT( DISTINCT - col2 ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT 89 * + + COUNT ( DISTINCT - col2 ) FROM tab2
----
267

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT ALL - - ( - col1 ) + - + col1 DIV - col0 AS col2 FROM tab0 cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL - - ( - col1 ) + - + col1 / - col0 AS col2 FROM tab0 cor0
----
-1
-21
-76

query I rowsort
SELECT ALL + + col1 * 13 FROM tab0 AS cor0
----
1053
13
273

query I rowsort
SELECT ALL + + col1 + + + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT ALL col0 + - 72 FROM tab0
----
-57
15
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 33 ) * - 49 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 82818a0ccfcaf41e425101189803d866

query I rowsort
SELECT ALL - 63 * - col2 AS col1 FROM tab0
----
2961
6237
630

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 * ( 42 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL - ( - - 17 ) + + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL - ( - - 17 ) + + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-23

query I rowsort
SELECT + ( + 40 ) AS col0 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - 73 * - col2 FROM tab2 cor0
----
1679
2920
4234

onlyif mysql # DIV for integer division: 
query II rowsort label-7545
SELECT + + col2 AS col1, + 99 DIV - 20 FROM tab1 AS cor0
----
59
-4
68
-4
96
-4

skipif mysql # not compatible
query II rowsort label-7545
SELECT + + col2 AS col1, + 99 / - 20 FROM tab1 AS cor0
----
59
-4
68
-4
96
-4

query II rowsort
SELECT ALL + col2 * + col2 + + + ( col0 ) + - + col0 * col1 - - - 3, 64 AS col2 FROM tab1
----
3138
64
435
64
8550
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * 20 col0, 67 col1 FROM tab1
----
1180
67
1360
67
1920
67

query I rowsort
SELECT DISTINCT col0 + - col2 * ( 59 ) - 64 AS col0 FROM tab0
----
-2822
-567
-5808

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT 81 - - SUM( - col1 ) AS col0 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-7550
SELECT 81 - - SUM ( - col1 ) AS col0 FROM tab2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NULL > + 46
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NULL > + 46
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7552
SELECT * FROM tab0 WHERE col1 * - - col1 - - 99 + - col2 NOT IN ( - 46 / - - ( - 8 ), ( - col1 ) * CAST( NULL AS DECIMAL ) + - + col1 / col1 )
----

skipif mysql # not compatible
query III rowsort label-7552
SELECT * FROM tab0 WHERE col1 * - - col1 - - 99 + - col2 NOT IN ( - 46 / - - ( - 8 ), ( - col1 ) * CAST ( NULL AS REAL ) + - + col1 / col1 )
----

query I rowsort
SELECT ALL 71 * - 12 - + col1 + + col2 AS col0 FROM tab1 AS cor0
----
-770
-798
-831

query III rowsort
SELECT * FROM tab1 WHERE NOT - 54 * + - col1 + 67 * col1 > ( col2 * col0 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL + 93 AS col0, - COUNT( * ) AS col1 FROM tab1
----
93
-3

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL + 93 AS col0, - COUNT ( * ) AS col1 FROM tab1
----
93
-3

query II rowsort
SELECT + 24 AS col1, + col0 FROM tab1 AS cor0
----
24
51
24
85
24
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT ALL - SUM( + 41 ) AS col0 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL - SUM ( + 41 ) AS col0 FROM tab0 AS cor0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col2 FROM tab2 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT + COUNT( * ) * 8 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7559
SELECT + COUNT ( * ) * 8 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT ALL + - COUNT( * ) * + + 44 col0 FROM tab1 AS cor0 WHERE col2 + + - 45 IS NOT NULL
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7560
SELECT ALL + - COUNT ( * ) * + + 44 col0 FROM tab1 AS cor0 WHERE col2 + + - 45 IS NOT NULL
----
-132

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 7 IS NOT NULL )
----

query I rowsort
SELECT + col2 * + col0 / + col0 + 46 FROM tab0 WHERE NOT + - col1 <> 77
----

query I rowsort
SELECT DISTINCT col1 * - + 9 FROM tab1
----
-126
-423
-45

query I rowsort
SELECT + 86 AS col2 FROM tab2 WHERE NOT NULL BETWEEN col2 * - + 74 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - + col2 * + + col2 col2 FROM tab1
----
-3409
-4552
-9144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7566
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) + + + 97 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + + + 97 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab0
----
-3

query I rowsort
SELECT - col1 + + 59 + - - col1 + col1 * + - col0 AS col0 FROM tab1
----
-366
-4218
-655

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 62 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL 3 + + ( + COUNT( * ) ) - - CAST( + + 86 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL 3 + + ( + COUNT ( * ) ) - - CAST ( + + 86 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
92

query I rowsort
SELECT 81 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - col2 + + - 57 AS col0 FROM tab2 AS cor0
----
-115
-80
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 * col1 * + col1 + + 57 col0 FROM tab1 cor0
----
-13663
-154573
-1693

query III rowsort
SELECT ALL * FROM tab2 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NULL IN ( + col2, 22, - - col0 * 35 / 73 + + - col1, - 35 )
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IN ( + col2, 22, - - col0 * 35 / 73 + + - col1, - 35 )
----
0

query II rowsort
SELECT col0 AS col0, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT ALL col1 * - 87 * + - col1 FROM tab1
----
17052
192183
2175

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 11 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col2 FROM tab1
----
77
77
77

query I rowsort
SELECT DISTINCT + 79 * + 4 * 88 AS col2 FROM tab0
----
27808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + 77 ) > 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7583
SELECT DISTINCT col0 AS col2, CAST( + - col2 AS SIGNED ) * - col2 + - 41 + + col0 DIV + + col1 AS col0 FROM tab1 AS cor0
----
51
9178
85
3457
91
4584

skipif mysql # not compatible
query II rowsort label-7583
SELECT DISTINCT col0 AS col2, CAST ( + - col2 AS INTEGER ) * - col2 + - 41 + + col0 / + + col1 AS col0 FROM tab1 AS cor0
----
51
9178
85
3457
91
4584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col0 FROM tab1 AS cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > col0 * + - col1
----

query I rowsort
SELECT 87 + - - col1 FROM tab2 AS cor0
----
138
154
164

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7588
SELECT DISTINCT - + COUNT( * ) + CAST( 55 AS SIGNED ) FROM tab2 cor0
----
52

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - + COUNT ( * ) + CAST ( 55 AS INTEGER ) FROM tab2 cor0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT col0 DIV + + col0 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7589
SELECT col0 / + + col0 col0 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL col1 * - - 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col0 * - + col0 AS col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT col0 IS NULL
----
23
40
58

query II rowsort
SELECT ALL + col2 AS col0, - col0 AS col2 FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT - COUNT( * ) * - 27 AS col0 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-7594
SELECT - COUNT ( * ) * - 27 AS col0 FROM tab2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT ALL + COUNT( * ), - COUNT( * ) + - 52 + - MIN( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3
-70

skipif mysql # not compatible
query II rowsort label-7595
SELECT ALL + COUNT ( * ), - COUNT ( * ) + - 52 + - MIN ( DISTINCT + col0 ) AS col0 FROM tab0 AS cor0
----
3
-70

query I rowsort
SELECT DISTINCT + col1 * + 19 FROM tab1 AS cor0 WHERE NULL IS NULL
----
266
893
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7597
SELECT col1 / + ( - + col0 ) * + - col0 + + 62 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT col1 / + ( - + col0 ) * + - col0 + + 62 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ALL - + 55 - + COUNT( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - + 55 - + COUNT ( DISTINCT + + col0 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL 71 - col2 AS col2 FROM tab2
----
13
31
48

query III rowsort
SELECT * FROM tab2 WHERE 22 / 31 + - col2 * col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 85 + 87 * 58 col1 FROM tab1
----
1051
3856
4621

query I rowsort
SELECT col1 * - 17 AS col0 FROM tab0
----
-1377
-17
-357

query III rowsort
SELECT ALL * FROM tab0 WHERE - 24 * col1 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + + 5 FROM tab1
----
-46
-80
-86

query III rowsort
SELECT * FROM tab1 WHERE 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 / - ( 53 * - col0 ) FROM tab0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT - 51 * - col2 FROM tab1
----
3009
3468
4896

query I rowsort
SELECT ALL - col0 + + 36 FROM tab2
----
-10
-28
-39

query I rowsort
SELECT 35 * - 15 + + col2 FROM tab1
----
-429
-457
-466

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL + 15 - COUNT( * ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + 15 - COUNT ( * ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----
15

query I rowsort
SELECT ALL - col1 * 26 FROM tab1
----
-1222
-130
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT + CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT + CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 55 - col0 FROM tab2
----
-101
-119
-130

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 NOT BETWEEN - ( - col2 ) + - col2 AND ( 89 )
----
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) * col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - 30 FROM tab0
----
-15
57
67

query I rowsort
SELECT ( + 72 ) AS col1 FROM tab1
----
72
72
72

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT - SUM( ALL - 36 ) AS col2 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7620
SELECT - SUM ( ALL - 36 ) AS col2 FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL ( + 49 ) AS col1 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - 41 * col1 - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 94 FROM tab0 AS cor0 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT ALL col0 * - 88 AS col2 FROM tab0 AS cor0
----
-1320
-7656
-8536

query I rowsort
SELECT DISTINCT - col0 * + 85 FROM tab2 AS cor0
----
-3910
-5440
-6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT ALL 28 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL 28 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT ALL + col0 DIV 83 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL + col0 / 83 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - col2 + 74 * 5 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT DISTINCT + - COUNT( * ) + - CAST( SUM( ALL col1 ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-588

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT + - COUNT ( * ) + - CAST ( SUM ( ALL col1 ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col0 FROM tab2 cor0 WHERE NULL = + col2 * + col0 + col2
----

query I rowsort
SELECT ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * - 39 FROM tab0 AS cor0
----
3159
39
819

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col1 > ( col2 / col0 + - col1 / 64 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT ALL + - col2 DIV ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + - col2 / ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 76 + - 3 / col1 ) NOT IN ( + 70 )
----

query I rowsort
SELECT ALL + 63 + + col0 * col1 AS col1 FROM tab2
----
2409
4991
5088

query I rowsort
SELECT DISTINCT 21 FROM tab2 WHERE NOT + col0 * 2 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 26 + - 2 FROM tab1
----
-1328
-2212
-2368

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( col0 / 87 ) AND NULL
----

query I rowsort
SELECT 50 * - - col1 + + 86 FROM tab2
----
2636
3436
3936

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT - col1 DIV + - col1 + + col0 AS col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-7641
SELECT - col1 / + - col1 + + col0 AS col2 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + 79 + + - 3 + COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-7642
SELECT + 79 + + - 3 + COUNT ( * ) FROM tab1
----
79

query I rowsort
SELECT - col1 * - col2 + col2 FROM tab2 AS cor0
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT - col0 + - col0 + + ( 70 ) DIV col1 AS col1 FROM tab0 AS cor0
----
-124
-171
-30

skipif mysql # not compatible
query I rowsort label-7644
SELECT - col0 + - col0 + + ( 70 ) / col1 AS col1 FROM tab0 AS cor0
----
-124
-171
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 97 / col2 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT DISTINCT - CAST( - 35 AS SIGNED ) * - COUNT( * ) + + 73 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT - CAST ( - 35 AS INTEGER ) * - COUNT ( * ) + + 73 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT DISTINCT + + col2 - - 49 + - 45 FROM tab0 cor0
----
103
14
51

query I rowsort
SELECT DISTINCT - ( 51 ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7649
SELECT ALL * FROM tab1 WHERE NOT ( ( col0 ) * col0 + CAST( col0 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7649
SELECT ALL * FROM tab1 WHERE NOT ( ( col0 ) * col0 + CAST ( col0 AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE + ( + 70 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 57 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col1 ) > ( - 30 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + 28 * COUNT( * ) col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7653
SELECT + 28 * COUNT ( * ) col2 FROM tab1 AS cor0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT col0 DIV + - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT col0 / + - col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT DISTINCT + 19 * + + COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
57

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT + 19 * + + COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
57

query I rowsort
SELECT ALL - col0 * + col2 - + - 16 FROM tab1 AS cor0
----
-4880
-4999
-6172

query I rowsort
SELECT ALL + + 81 * - col0 FROM tab0 AS cor0
----
-1215
-7047
-7857

query I rowsort
SELECT ALL 68 AS col1 FROM tab2 AS cor0 WHERE NOT 75 = ( NULL )
----

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT col1 * + col2 + + col1 AS col1 FROM tab1 WHERE NOT ( - + col1 ) IS NULL
----
1358
300
3243

query I rowsort
SELECT ALL ( 74 ) * 36 AS col2 FROM tab0 WHERE - ( + 39 ) + col2 * - ( 65 ) = ( ( 51 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT ( - CAST( NULL AS SIGNED ) ) * - - col2 * - ( 74 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT ( - CAST ( NULL AS INTEGER ) ) * - - col2 * - ( 74 ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT + COUNT( DISTINCT - col0 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7663
SELECT + COUNT ( DISTINCT - col0 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL + SUM( + 85 ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL + SUM ( + 85 ) FROM tab2
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT + COUNT( + + 47 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7665
SELECT + COUNT ( + + 47 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7666
SELECT ALL * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7666
SELECT ALL * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT MIN( + 45 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7667
SELECT MIN ( + 45 ) FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT ALL MAX( + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL MAX ( + col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col1 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab2 AS cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 48 * - col0 * - + 89 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT + COUNT( * ) * - 7 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7672
SELECT + COUNT ( * ) * - 7 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - col0 - + 62 + col1 FROM tab0 WHERE col1 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON + 44 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + 91 * - 70 FROM tab2
----
-6370

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 69 + 4 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7677
SELECT ALL col1 * - - col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL col1 * - - col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + + col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE + col1 + ( - + 63 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7679
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 + ( - + 63 ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 33 col0 FROM tab1 AS cor0
----
38
47
80

query I rowsort
SELECT col2 + - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7682
SELECT DISTINCT 13 DIV + + COUNT( * ) + - 77 AS col1 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT 13 / + + COUNT ( * ) + - 77 AS col1 FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + MAX( ALL - 87 ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-7683
SELECT + MAX ( ALL - 87 ) AS col1 FROM tab1
----
-87

query I rowsort
SELECT + ( - col1 ) * + col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT 43 * + + col0 - + col0 + - - col2 FROM tab0 AS cor0
----
3664
4173
677

query I rowsort
SELECT ALL + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 15 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 <= + col0
----

query I rowsort
SELECT 84 * - col0 + + col1 FROM tab2 AS cor0
----
-3813
-5299
-6233

query III rowsort
SELECT ALL * FROM tab0 WHERE 89 >= col0
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - 31 + - 92 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 33 IN ( - - 17 ) )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7693
SELECT + CAST( 88 AS SIGNED ), + CAST( NULL AS SIGNED ) * col2 / 95 AS col0 FROM tab0 AS cor0
----
88
NULL
88
NULL
88
NULL

skipif mysql # not compatible
query II rowsort label-7693
SELECT + CAST ( 88 AS INTEGER ), + CAST ( NULL AS INTEGER ) * col2 / 95 AS col0 FROM tab0 AS cor0
----
88
NULL
88
NULL
88
NULL

query II rowsort
SELECT - + 75 * 65, + col1 * - 67 * + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-4875
-13468273
-4875
-142375
-4875
-669732

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + MAX( ( + - col1 ) ) * 50 FROM tab0 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7695
SELECT + MAX ( ( + - col1 ) ) * 50 FROM tab0 cor0
----
-50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - + col2 / ( - ( + 54 ) ) < + + col1 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7697
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7697
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col2, col2 * - 16 AS col2 FROM tab2
----
23
-368
40
-640
58
-928

query II rowsort
SELECT - col2 AS col2, - col2 AS col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL - + 54 * + 63 FROM tab0 AS cor0
----
-3402
-3402
-3402

query I rowsort
SELECT col1 * col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( col0 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT - - COUNT( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - - 81 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7702
SELECT - - COUNT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - - 81 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT CAST( NULL AS SIGNED ) * - col0 * + + 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT CAST ( NULL AS INTEGER ) * - col0 * + + 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 93 ) > - 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7705
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * + col2 * - col2 < + col1
----

skipif mysql # not compatible
query III rowsort label-7705
SELECT DISTINCT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * + col2 * - col2 < + col1
----

query I rowsort
SELECT ( + 80 ) FROM tab0
----
80
80
80

query II rowsort
SELECT DISTINCT 51 * + + col0 + ( + col1 ), col1 AS col1 FROM tab0
----
4458
21
4948
1
846
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT + SUM( + + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7708
SELECT + SUM ( + + col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE 7 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 78 col2 FROM tab1 AS cor0
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT ALL COUNT( * ) * + 78 FROM tab1 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL COUNT ( * ) * + 78 FROM tab1 AS cor0
----
234

query I rowsort
SELECT DISTINCT + col0 + + col1 + - - col1 AS col1 FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT + 83 + + + 13 + col0 + - 17 AS col1 FROM tab0 AS cor0
----
166
176
94

query I rowsort
SELECT ALL col0 - - + col2 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col1 * - + 0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT col1 + + + col0 + - 53 DIV + + col0 FROM tab0
----
108
93
98

skipif mysql # not compatible
query I rowsort label-7716
SELECT col1 + + + col0 + - 53 / + + col0 FROM tab0
----
108
93
98

query I rowsort
SELECT 3 * + - col2 AS col1 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col2 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7718
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col2 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 + - + col1 ) < - col2 + col0 * col2 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - + MIN( + 20 ) col0 FROM tab2 AS cor0 WHERE col0 * + 10 >= + - 0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7720
SELECT - + MIN ( + 20 ) col0 FROM tab2 AS cor0 WHERE col0 * + 10 >= + - 0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL = col2 * - col0 / - col1 + col2 + + + col2 * - col0 / col2 * col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7722
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7722
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL - 56 + - 94 FROM tab1 AS cor0
----
-150
-150
-150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( 31 ) * + - col2 IS NULL
----

query I rowsort
SELECT ( col1 ) AS col0 FROM tab1 AS cor0 WHERE - 6 / + col2 <> col0 / 15
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT col0, - 97 AS col0 FROM tab0
----
15
-97
87
-97
97
-97

query II rowsort
SELECT ALL col0 AS col0, - 12 FROM tab2
----
46
-12
64
-12
75
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT 70 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT DISTINCT + ( 46 ) DIV col2 - 65 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + ( 46 ) / col2 - 65 FROM tab1 AS cor0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT DISTINCT + SUM( + - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT + SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 65 + - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
112
164
75

query II rowsort
SELECT DISTINCT - 33, + col1 + - col1 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-33
-10
-33
-47
-33
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7735
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + 63 DIV - - 3 FROM tab2 cor0
----
NULL
21

skipif mysql # not compatible
query II rowsort label-7735
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + 63 / - - 3 FROM tab2 cor0
----
NULL
21

query I rowsort
SELECT ALL - 49 AS col0 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT 20 + - 40 * + + col2 BETWEEN + + 24 AND + 65 + + col2
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7738
SELECT ALL CAST( + - col1 AS SIGNED ) AS col0, + ( 36 ) FROM tab1
----
-14
36
-47
36
-5
36

skipif mysql # not compatible
query II rowsort label-7738
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col0, + ( 36 ) FROM tab1
----
-14
36
-47
36
-5
36

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7740
SELECT DISTINCT + COUNT( ALL 59 ), - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7740
SELECT DISTINCT + COUNT ( ALL 59 ), - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT ( - COUNT( ALL - col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7741
SELECT ( - COUNT ( ALL - col2 ) ) FROM tab0
----
-3

query I rowsort
SELECT 86 * - col1 AS col1 FROM tab1
----
-1204
-4042
-430

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7743
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7743
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) col1, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND col1
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + + col0 / 92 * - - col1 NOT BETWEEN ( - + ( col0 ) ) AND - col0 * + + col2 - col2 + - - 74
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT ( - + COUNT( * ) ) AS col1, 84 FROM tab2, tab0 AS cor0
----
-9
84

skipif mysql # not compatible
query II rowsort label-7746
SELECT ( - + COUNT ( * ) ) AS col1, 84 FROM tab2, tab0 AS cor0
----
-9
84

query I rowsort
SELECT - - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NOT col2 < NULL )
----

query I rowsort
SELECT ALL + 84 AS col1 FROM tab0 cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - 97 * col2 + col1 FROM tab1 AS cor0
----
-5718
-6549
-9298

query I rowsort
SELECT + col2 + + 52 FROM tab0
----
151
62
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT + COUNT( * ) * + 60 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT + COUNT ( * ) * + 60 FROM tab0
----
180

query II rowsort
SELECT 76 * - - col1 + - col1 AS col0, + col2 AS col1 FROM tab1
----
1050
96
3525
68
375
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL 80 + - COUNT( * ) FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL 80 + - COUNT ( * ) FROM tab1 cor0
----
77

query I rowsort
SELECT DISTINCT + col2 + + 66 FROM tab0
----
113
165
76

query I rowsort
SELECT ALL col1 + + ( - col0 ) FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL 3 * col2 AS col1 FROM tab1
----
177
204
288

query I rowsort
SELECT DISTINCT + col0 * + 13 FROM tab1
----
1105
1183
663

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ( + MAX( - 30 ) ) - + SUM( DISTINCT + col0 ) - + 68 FROM tab2
----
-283

skipif mysql # not compatible
query I rowsort label-7759
SELECT ( + MAX ( - 30 ) ) - + SUM ( DISTINCT + col0 ) - + 68 FROM tab2
----
-283

query I rowsort
SELECT 92 - col2 * col2 FROM tab1
----
-3389
-4532
-9124

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - COUNT( * ) + - MAX( ALL + col2 ) - - + 74 FROM tab1 WHERE - + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT - COUNT ( * ) + - MAX ( ALL + col2 ) - - + 74 FROM tab1 WHERE - + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT DISTINCT - COUNT( + col1 ) - MIN( DISTINCT - 26 ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT - COUNT ( + col1 ) - MIN ( DISTINCT - 26 ) FROM tab0
----
23

query I rowsort
SELECT - - col0 * + 43 * - 9 - + + ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-17848
-24832
-29100

query I rowsort
SELECT + + 34 * col1 * + + col1 FROM tab2 AS cor0
----
152626
201586
88434

query I rowsort
SELECT DISTINCT 35 * - 8 AS col2 FROM tab0
----
-280

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( 49 - - 49, col0, + col1, + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7767
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - CAST( NULL AS DECIMAL ) * + 81, - col1, - - col0, col1 )
----

skipif mysql # not compatible
query III rowsort label-7767
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + - CAST ( NULL AS REAL ) * + 81, - col1, - - col0, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + col0 + + - col1 IS NULL
----

query II rowsort
SELECT ALL + col2, + 25 AS col0 FROM tab2 AS cor0
----
23
25
40
25
58
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * - + col2 * + col1 col2 FROM tab1 AS cor0
----
1475
150212
18816

query II rowsort
SELECT ALL + - col2, - col0 * col1 AS col1 FROM tab2 AS cor0
----
-23
-2346
-40
-4928
-58
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col2 FROM tab1 AS cor0 WHERE NOT ( - col2 * + 4 * + + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT 18 * COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7773
SELECT 18 * COUNT ( * ) FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7774
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7775
SELECT CAST( col0 AS SIGNED ) * + col2 AS col0, + 83 FROM tab0 AS cor0
----
705
83
870
83
9603
83

skipif mysql # not compatible
query II rowsort label-7775
SELECT CAST ( col0 AS INTEGER ) * + col2 AS col0, + 83 FROM tab0 AS cor0
----
705
83
870
83
9603
83

query I rowsort
SELECT 89 * - 45 * - + col0 FROM tab1 AS cor0
----
204255
340425
364455

query I rowsort
SELECT - 57 * + + col2 - - 52 FROM tab2 AS cor0
----
-1259
-2228
-3254

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 9, - 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT COUNT( * ) + + 34 AS col2 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7779
SELECT COUNT ( * ) + + 34 AS col2 FROM tab0
----
37

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * - col2 * + + ( col2 ) AS col2 FROM tab1 AS cor0
----
51
-884736
85
-205379
91
-314432

query I rowsort
SELECT - + 15 + + 53 AS col0 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT - - ( + 25 ) + 63 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7783
SELECT ALL + COUNT( * ) + + + COUNT( DISTINCT - col1 ) col2, CAST( + + ( + 99 ) AS SIGNED ) + - + COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / - 46 / 93
----
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7783
SELECT ALL + COUNT ( * ) + + + COUNT ( DISTINCT - col1 ) col2, CAST ( + + ( + 99 ) AS INTEGER ) + - + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / - 46 / 93
----
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL MIN ( + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IS NOT NULL AND NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL + MAX( 30 ) - + 52 AS col0 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + MAX ( 30 ) - + 52 AS col0 FROM tab1 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - - col1 * + - col1 + + col2 * 50 > + - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7788
SELECT ALL col1 DIV 59 - + 49 + - col2 AS col2 FROM tab0
----
-148
-59
-95

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL col1 / 59 - + 49 + - col2 AS col2 FROM tab0
----
-148
-59
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + + + 11 + - col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + + + 11 + - col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 93 * - - 71 FROM tab0
----
6603
6603
6603

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - - col1 IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT - 46 * + col1 * + col1 >= NULL )
----

query I rowsort
SELECT DISTINCT + ( + 50 ) AS col2 FROM tab1
----
50

query I rowsort
SELECT - ( - col1 ) * + 13 FROM tab0 AS cor0
----
1053
13
273

query I rowsort
SELECT + col0 * - 87 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7796
SELECT ALL col2, CAST( col2 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
59
144
68
159
96
147

skipif mysql # not compatible
query II rowsort label-7796
SELECT ALL col2, CAST ( col2 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
59
144
68
159
96
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7797
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + CAST( + + col0 AS SIGNED ), col1 * - 98 )
----

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE NOT + col0 IN ( + CAST ( + + col0 AS INTEGER ), col1 * - 98 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 11 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT ( + 73 ) / + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7800
SELECT ( + 73 ) / + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 48 * + col0 AS col2 FROM tab2
----
2208
3072
3600

query III rowsort
SELECT * FROM tab0 WHERE NOT - 50 IS NOT NULL
----

query I rowsort
SELECT ( + - col2 ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT ALL MAX( col1 ) * 73 DIV - SUM( 87 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL MAX ( col1 ) * 73 / - SUM ( 87 ) FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT 26 + + COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7806
SELECT 26 + + COUNT ( * ) FROM tab2 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7807
SELECT ALL - - 80 + col0, - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2 AS cor0
----
126
NULL
144
NULL
155
NULL

skipif mysql # not compatible
query II rowsort label-7807
SELECT ALL - - 80 + col0, - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2 AS cor0
----
126
NULL
144
NULL
155
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT - SUM( ALL col2 ) * - 43 AS col2 FROM tab2 AS cor0
----
5203

skipif mysql # not compatible
query I rowsort label-7808
SELECT - SUM ( ALL col2 ) * - 43 AS col2 FROM tab2 AS cor0
----
5203

query I rowsort
SELECT + - col0 * - ( col2 ) FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7810
SELECT COUNT( * ) * - + CAST( NULL AS DECIMAL ) - - - 90 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT COUNT ( * ) * - + CAST ( NULL AS REAL ) - - - 90 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT ( - - 90 ) BETWEEN col2 * + col1 - + col0 + - col0 + - 40 * + + col1 + - - 51 AND NULL
----
58

query I rowsort
SELECT DISTINCT 64 * + - col2 AS col0 FROM tab0
----
-3008
-6336
-640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT col0 * CAST( + col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-7813
SELECT col0 * CAST ( + col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT ALL + ( + - col2 ) DIV - + 98 * - 8 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL + ( + - col2 ) / - + 98 * - 8 AS col2 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT + 30 DIV col1 FROM tab0
----
0
1
30

skipif mysql # not compatible
query I rowsort label-7815
SELECT + 30 / col1 FROM tab0
----
0
1
30

query I rowsort
SELECT ALL - - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab1 WHERE NOT + 67 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT + 86 AS col1 FROM tab2 WHERE + - col1 IS NULL
----

query II rowsort
SELECT + col1, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT DISTINCT + ( - - col0 ) DIV + + col1 + + 30 AS col1 FROM tab0 AS cor0
----
127
30
34

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + ( - - col0 ) / + + col1 + + 30 AS col1 FROM tab0 AS cor0
----
127
30
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + - col1 * - col1 + - col2 + - + col1 col2 FROM tab0 AS cor0
----
0
420
6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL + ( + col2 ) + CAST( NULL AS SIGNED ) + + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL + ( + col2 ) + CAST ( NULL AS INTEGER ) + + + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT COUNT( * ) + - + COUNT( * ) + - 87 col0 FROM tab2
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7823
SELECT COUNT ( * ) + - + COUNT ( * ) + - 87 col0 FROM tab2
----
-87

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 64 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT + ( MAX( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT + ( MAX ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7827
SELECT ALL 52 AS col2, + col1 DIV + col2 FROM tab2 cor0
----
52
1
52
1
52
2

skipif mysql # not compatible
query II rowsort label-7827
SELECT ALL 52 AS col2, + col1 / + col2 FROM tab2 cor0
----
52
1
52
1
52
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT - + MIN( + 92 ) AS col2 FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-7828
SELECT - + MIN ( + 92 ) AS col2 FROM tab2 cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT COUNT( ALL - + 62 ) - - ( - 43 ) AS col0 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-7829
SELECT COUNT ( ALL - + 62 ) - - ( - 43 ) AS col0 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT + COUNT( * ) - - - 69 AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-7830
SELECT + COUNT ( * ) - - - 69 AS col1 FROM tab2
----
-66

query I rowsort
SELECT col0 - ( col1 ) FROM tab1
----
37
44
80

query I rowsort
SELECT + col1 * ( + col1 ) - - 49 AS col1 FROM tab1 AS cor0
----
2258
245
74

query I rowsort
SELECT + 62 * - + 53 FROM tab2 AS cor0
----
-3286
-3286
-3286

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 4 + + col1 * 63 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + COUNT( * ) * + 51 AS col1 FROM tab2 cor0
----
153

skipif mysql # not compatible
query I rowsort label-7835
SELECT + COUNT ( * ) * + 51 AS col1 FROM tab2 cor0
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col0 * + + col0 FROM tab2
----
-51
2116
-67
5625
-77
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT SUM( DISTINCT + - col1 ) col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7837
SELECT SUM ( DISTINCT + - col1 ) col2 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 * col2 - col2
----

query I rowsort
SELECT - ( + ( - col0 ) ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 81 > col0 * - + 60 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7841
SELECT ALL - 90 * 93 DIV col0 * + + CAST( + - col1 AS SIGNED ) * + - 69, 85 AS col0 FROM tab1 AS cor0
----
-158424
85
-295113
85
-33810
85

skipif mysql # not compatible
query II rowsort label-7841
SELECT ALL - 90 * 93 / col0 * + + CAST ( + - col1 AS INTEGER ) * + - 69, 85 AS col0 FROM tab1 AS cor0
----
-158424
85
-295113
85
-33810
85

query I rowsort
SELECT 86 * col2 + - + 71 + - 74 * + col2 FROM tab0 AS cor0 WHERE NOT 66 + - 2 <> ( + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 46 AS col2, + 14 col0 FROM tab2 AS cor0
----
-46
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL - col2 * + CAST( - + col0 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
1007
2483
4283

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - col2 * + CAST ( - + col0 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
1007
2483
4283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 1, + 46 * + - ( - + col0 ) col0 FROM tab2 AS cor0
----
1
2116
1
2944
1
3450

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + col2 + + 1 IN ( 11, col0 * + col2, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL BETWEEN + col2 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 86 col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - col2 * 29 * + col1 AS col1 FROM tab2 AS cor0
----
-112694
-34017
-89320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7850
SELECT ALL 80 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL 80 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 - + col2 * - - col2 FROM tab2
----
-1501
-3265
-430

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 cor0 WHERE NOT col0 / col2 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT + + COUNT( * ) + + + 24 AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7853
SELECT + + COUNT ( * ) + + + 24 AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT - + col1 + 35 FROM tab2 cor0
----
-16
-32
-42

query I rowsort
SELECT col2 * 19 + col0 + + col1 + + 2 + col2 * - 92 * col1 + + 5 + - col1 FROM tab0 AS cor0
----
-19036
-349329
-7123

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - - col0 <> 61 * + col0 + - + 69 + + col0 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT + 99 + - COUNT( * ) + - - MIN( ALL + col2 ) col0 FROM tab1 AS cor0
----
155

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7857
SELECT + 99 + - COUNT ( * ) + - - MIN ( ALL + col2 ) col0 FROM tab1 AS cor0
----
155

query I rowsort
SELECT - col1 * - ( ( - col1 ) ) * - + 38 * col0 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
12793650
14419328
4546548

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT + 86 DIV - col0 AS col1 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT + 86 / - col0 AS col1 FROM tab0
----
-5
0
0

query II rowsort
SELECT col0 AS col0, col2 AS col0 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT CAST( 16 AS SIGNED ) FROM tab1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-7861
SELECT CAST ( 16 AS INTEGER ) FROM tab1
----
16
16
16

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 23 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL COUNT( DISTINCT + col0 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT 2 + + 21 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT ALL + - 18 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + - 18 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL MIN( - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL MIN ( - col2 ) AS col2 FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab1 cor0 WHERE NOT NULL = - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL + + COUNT( * ) + + COUNT( * ) * - 15 col1 FROM tab1 cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7868
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) * - 15 col1 FROM tab1 cor0
----
-42

query I rowsort
SELECT - + col0 + + - 30 + - col0 FROM tab1 AS cor0
----
-132
-200
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL - COUNT( * ) + - 87 + - - 85 AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL - COUNT ( * ) + - 87 + - - 85 AS col1 FROM tab1 cor0
----
-5

query I rowsort
SELECT DISTINCT col2 + + 26 + 71 * - + col1 + - 98 - + 7 * - - 55 AS col2 FROM tab0 AS cor0
----
-1938
-429
-6161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7872
SELECT CAST( NULL AS SIGNED ) * col1 / col0 col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7872
SELECT CAST ( NULL AS INTEGER ) * col1 / col0 col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + MIN( ALL + - 86 ) col2 FROM tab1
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7874
SELECT + MIN ( ALL + - 86 ) col2 FROM tab1
----
-86

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + col1 * + - 64 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT + 91 * + CAST( - - col0 AS SIGNED ) * - - 65 AS col1 FROM tab0
----
514605
573755
88725

skipif mysql # not compatible
query I rowsort label-7876
SELECT + 91 * + CAST ( - - col0 AS INTEGER ) * - - 65 AS col1 FROM tab0
----
514605
573755
88725

onlyif mysql # aggregate syntax: 
query II rowsort label-7877
SELECT ALL + COUNT( * ) AS col0, + MAX( - 27 ) FROM tab1
----
3
-27

skipif mysql # not compatible
query II rowsort label-7877
SELECT ALL + COUNT ( * ) AS col0, + MAX ( - 27 ) FROM tab1
----
3
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT DISTINCT 35 * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7878
SELECT DISTINCT 35 * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - col0 * col1 / 67 * + col2 FROM tab2 AS cor0 WHERE ( - 68 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7880
SELECT 87 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7880
SELECT 87 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT ( 61 ) DIV - col2 + + - 69 + col0 + + col1 FROM tab1 AS cor0
----
-4
20
69

skipif mysql # not compatible
query I rowsort label-7881
SELECT ( 61 ) / - col2 + + - 69 + col0 + + col1 FROM tab1 AS cor0
----
-4
20
69

query II rowsort
SELECT - col1 + - col0 AS col1, col2 FROM tab0
----
-108
10
-96
47
-98
99

query I rowsort
SELECT DISTINCT 59 + - 97 AS col2 FROM tab0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + ( - 50 ) + COUNT( * ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7884
SELECT + ( - 50 ) + COUNT ( * ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT ALL + 94 / - col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + 94 / - col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 9 FROM tab1 cor0
----
-9
-9
-9

query II rowsort
SELECT col2, + col1 AS col0 FROM tab1 cor0 WHERE NOT + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT 24 * + + col0 FROM tab1 AS cor0
----
1224
2040
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT + CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7890
SELECT + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) <> + col1 * - + col2 - + + 94
----

query I rowsort
SELECT DISTINCT + ( ( - 18 ) ) * + 97 FROM tab0
----
-1746

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL - col1 DIV - ( + 51 ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - col1 / - ( + 51 ) FROM tab2
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 89, + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + MAX( + + col2 ) * + - 62 FROM tab0 cor0
----
-6138

skipif mysql # not compatible
query I rowsort label-7896
SELECT + MAX ( + + col2 ) * + - 62 FROM tab0 cor0
----
-6138

query I rowsort
SELECT 83 * - + 35 * + col2 - + - col1 AS col0 FROM tab2 cor0
----
-116123
-168423
-66764

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT + COUNT( + + 98 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + COUNT ( + + 98 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 54 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( - - 73 ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT - SUM( - - 56 ) FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7902
SELECT - SUM ( - - 56 ) FROM tab0 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7903
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - 50 + - + col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7903
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 50 + - + col2 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL COUNT( * ) + - + 51 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL COUNT ( * ) + - + 51 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT - MIN( - col1 ) + + 8 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT - MIN ( - col1 ) + + 8 FROM tab2 AS cor0
----
85

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7907
SELECT ALL - - col0 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL - - col0 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT ALL - CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 25 col0 FROM tab0
----
106
26
46

query I rowsort
SELECT ALL + col0 - - 38 + + 15 * - col1 * col2 AS col0 FROM tab0
----
-1350
-3025
-57052

query I rowsort
SELECT col1 FROM tab2 WHERE - + ( - - col0 ) NOT IN ( + ( 27 ) )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT COUNT( * ) + SUM( + 32 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7912
SELECT COUNT ( * ) + SUM ( + 32 ) FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col2 * - - 92 - + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col2 * - - 92 - + - col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7914
SELECT COUNT( * ) FROM tab0 WHERE - col1 + + CAST( NULL AS DECIMAL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7914
SELECT COUNT ( * ) FROM tab0 WHERE - col1 + + CAST ( NULL AS REAL ) IS NULL
----
3

query II rowsort
SELECT ALL 68 * - col2 AS col0, + col0 AS col1 FROM tab1
----
-4012
85
-4624
91
-6528
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT 86 + CAST( + 61 AS SIGNED ) + 1 FROM tab0
----
148
148
148

skipif mysql # not compatible
query I rowsort label-7916
SELECT 86 + CAST ( + 61 AS INTEGER ) + 1 FROM tab0
----
148
148
148

query I rowsort
SELECT - col0 * + - col1 + + col2 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT 74 * + 92 + + col1 FROM tab0
----
6809
6829
6889

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 * - col0, col1 AS col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT + - col1 * 46 * - col1 AS col0 FROM tab0 AS cor0
----
20286
301806
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + MAX( - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7922
SELECT + MAX ( - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7923
SELECT 8 DIV - - CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT 8 / - - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col1 AS col2 FROM tab2 AS cor0
----
2065
4019
5558

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7925
SELECT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT DISTINCT - col0, - 32 AS col2 FROM tab0 AS cor0
----
-15
-32
-87
-32
-97
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT DISTINCT - ( - + 88 ) * - CAST( - + 84 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 12 + + col0 + - col0 * - 63 BETWEEN 8 + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT - ( - + 88 ) * - CAST ( - + 84 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 12 + + col0 + - col0 * - 63 BETWEEN 8 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7928
SELECT ALL - COUNT( * ), + 92 AS col1 FROM tab0 AS cor0
----
-3
92

skipif mysql # not compatible
query II rowsort label-7928
SELECT ALL - COUNT ( * ), + 92 AS col1 FROM tab0 AS cor0
----
-3
92

query I rowsort
SELECT DISTINCT 27 * + col1 - - + col2 * + - 73 AS col1 FROM tab2 AS cor0
----
-2425
-302
-841

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT MIN( - 97 ) * 14 FROM tab1
----
-1358

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT MIN ( - 97 ) * 14 FROM tab1
----
-1358

query I rowsort
SELECT col2 * - col1 * - col1 AS col1 FROM tab0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab0
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7933
SELECT ALL CAST( NULL AS DECIMAL ) / + 40 / col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL CAST ( NULL AS REAL ) / + 40 / col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT COUNT( * ) DIV - 59 * + 20 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7934
SELECT COUNT ( * ) / - 59 * + 20 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT DISTINCT + COUNT( ALL + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + COUNT ( ALL + + col2 ) FROM tab1
----
3

query II rowsort
SELECT + col1, - 1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT ( - COUNT( * ) ) * - - 42 + + 69 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT ( - COUNT ( * ) ) * - - 42 + + 69 FROM tab1
----
-57

query I rowsort
SELECT col1 + - + 90 FROM tab1
----
-43
-76
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT + 78 + + + COUNT( * ) - - 71 col0 FROM tab2
----
152

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7940
SELECT + 78 + + + COUNT ( * ) - - 71 col0 FROM tab2
----
152

query III rowsort
SELECT * FROM tab1 WHERE - 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT MIN( ALL + + 9 ) AS col2 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7942
SELECT MIN ( ALL + + 9 ) AS col2 FROM tab1 cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7943
SELECT DISTINCT col2 + - col1 DIV - 63 AS col2, col0 AS col2 FROM tab1 cor0
----
59
85
68
91
96
51

skipif mysql # not compatible
query II rowsort label-7943
SELECT DISTINCT col2 + - col1 / - 63 AS col2, col0 AS col2 FROM tab1 cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT 41 + + COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT 41 + + COUNT ( * ) FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT DISTINCT + col2 + col1 + + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
175
199
41

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + col2 + col1 + + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # aggregate syntax: 
query II rowsort label-7946
SELECT COUNT( * ) AS col2, COUNT( * ) * + - COUNT( * ) FROM tab1 cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-7946
SELECT COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( * ) FROM tab1 cor0
----
3
-9

query I rowsort
SELECT DISTINCT 78 + + 64 FROM tab2
----
142

query II rowsort
SELECT DISTINCT col2 AS col1, - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + col1 * - 85 + - col1 + col2 FROM tab1
----
-1108
-371
-3974

query II rowsort
SELECT col0 AS col2, col0 * - 3 + col2 - col2 FROM tab2
----
46
-138
64
-192
75
-225

query I rowsort
SELECT col0 * + 76 AS col0 FROM tab0
----
1140
6612
7372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT - col0 * CAST( NULL AS SIGNED ) - + col0 / + 17 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT - col0 * CAST ( NULL AS INTEGER ) - + col0 / + 17 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT 80 AS col2, col2 AS col2 FROM tab1
----
80
59
80
68
80
96

query I rowsort
SELECT 6 - + 44 AS col2 FROM tab1
----
-38
-38
-38

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 16 * col0 / - - 30 BETWEEN col0 * + 55 AND + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 72 AS col0, col0 + - col1 AS col2 FROM tab0 AS cor0
----
72
-66
72
66
72
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL + COUNT( * ) + + - CAST( - 70 AS SIGNED ) FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL + COUNT ( * ) + + - CAST ( - 70 AS INTEGER ) FROM tab0 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + COUNT( * ) + + - 4 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7958
SELECT + COUNT ( * ) + + - 4 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col0 + 33 AS col1 FROM tab0 AS cor0
----
120
130
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL <= + col2 + + col1
----

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL <= + col2 + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7961
SELECT - CAST( ( 24 ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT - 2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7961
SELECT - CAST ( ( 24 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL + ( + MIN( DISTINCT - 1 ) ) * ( + 12 ) * - COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + ( + MIN ( DISTINCT - 1 ) ) * ( + 12 ) * - COUNT ( * ) AS col1 FROM tab1
----
36

query I rowsort
SELECT DISTINCT + - 27 AS col1 FROM tab1 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 90 <= ( col2 )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * - - col0 * col2 * - + col0 col1 FROM tab1 AS cor0
----
1248480
2131375
2815540

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT MAX( ALL 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7967
SELECT MAX ( ALL 3 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col2 * 17 NOT BETWEEN + + ( col2 ) + + 12 - - - 36 / - + col1 * col0 AND + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL + ( COUNT( * ) ) - - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL + ( COUNT ( * ) ) - - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT col2 DIV 84 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7970
SELECT col2 / 84 AS col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( - col2 ) >= NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, 51 FROM tab2
----
46
51
64
51
75
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL + COUNT( DISTINCT ( - 79 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + COUNT ( DISTINCT ( - 79 ) ) FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, - col2 FROM tab0 cor0 WHERE 4 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT - - COUNT( * ) + + ( ( MAX( DISTINCT col2 ) ) ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-7975
SELECT - - COUNT ( * ) + + ( ( MAX ( DISTINCT col2 ) ) ) FROM tab0 AS cor0
----
102

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT DISTINCT + ( + 11 ) AS col2 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + ( + 11 ) AS col2 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - + ( 36 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

query I rowsort
SELECT DISTINCT - 96 + - + col1 AS col1 FROM tab0 AS cor0
----
-117
-177
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT - CAST( - 68 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-7981
SELECT - CAST ( - 68 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT 99 + - 17 FROM tab2 AS cor0
----
82

query II rowsort
SELECT col0 + 23 AS col2, 51 FROM tab2 AS cor0
----
69
51
87
51
98
51

query I rowsort
SELECT ALL col1 * - - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT SUM( + - 50 ) + 35 AS col2 FROM tab0 AS cor0
----
-115

skipif mysql # not compatible
query I rowsort label-7985
SELECT SUM ( + - 50 ) + 35 AS col2 FROM tab0 AS cor0
----
-115

query I rowsort
SELECT ALL - 22 + + 23 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - col2 * 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT 21 * - - MAX( col0 ) - + 65 col0 FROM tab2
----
1510

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7988
SELECT DISTINCT 21 * - - MAX ( col0 ) - + 65 col0 FROM tab2
----
1510

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT ALL 79 DIV + - col1 + + + col1 FROM tab0
----
-78
18
81

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL 79 / + - col1 + + + col1 FROM tab0
----
-78
18
81

query I rowsort
SELECT DISTINCT ( col0 ) + col2 AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + 7 * - col1 - - ( - - 12 ) FROM tab1
----
-23
-317
-86

query I rowsort
SELECT ALL - col2 * - 54 FROM tab2
----
1242
2160
3132

query I rowsort
SELECT 68 * + - col2 AS col2 FROM tab1
----
-4012
-4624
-6528

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 13 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT ALL 99 * - SUM( DISTINCT col1 ) - + COUNT( DISTINCT + col1 ) col1, + SUM( + - col2 ) FROM tab2
----
-19308
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7995
SELECT ALL 99 * - SUM ( DISTINCT col1 ) - + COUNT ( DISTINCT + col1 ) col1, + SUM ( + - col2 ) FROM tab2
----
-19308
-121

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( + 71 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7997
SELECT - col1 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7997
SELECT - col1 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 25 + col0 + + 89 * + col2 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + - 36 AS col0 FROM tab0 AS cor0
----
-3132
-3492
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT SUM( ALL 12 ) AS col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8000
SELECT SUM ( ALL 12 ) AS col0 FROM tab0 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 < + 70 + ( - col1 ) * - col2 - 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT - COUNT( * ) * + 18 AS col2 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-8002
SELECT - COUNT ( * ) * + 18 AS col2 FROM tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL + MAX( ALL + ( col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL + MAX ( ALL + ( col1 ) ) FROM tab0
----
81

query II rowsort
SELECT + col0 * - col0 * + col0 AS col0, col2 FROM tab2
----
-262144
40
-421875
58
-97336
23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8005
SELECT - CAST( NULL AS DECIMAL ) * + col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8005
SELECT - CAST ( NULL AS REAL ) * + col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL + 35 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 * + col2 AND + - col2 * - - col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL + 35 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 * + col2 AND + - col2 * - - col1 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL - SUM( + col2 ) + MIN( ALL + 70 ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL - SUM ( + col2 ) + MIN ( ALL + 70 ) AS col0 FROM tab1 AS cor0
----
-153

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 / - 68 * - col0 * + - 81 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + - col2 ) + - 1 AS col0 FROM tab0 AS cor0
----
-100
-11
-48

query I rowsort
SELECT - 14 * - + col1 + + + 90 - - col0 + + col2 AS col2 FROM tab1
----
304
433
907

query I rowsort
SELECT - - col1 + col1 FROM tab1 WHERE col1 * + 71 + + - col2 = NULL
----

query I rowsort
SELECT ALL + 13 * - - col1 FROM tab2 AS cor0
----
1001
663
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT DISTINCT + col1 + 35 * col2 + - CAST( + col0 AS SIGNED ) + - col2 * - 15 FROM tab1 AS cor0
----
2870
3356
4763

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + col1 + 35 * col2 + - CAST ( + col0 AS INTEGER ) + - col2 * - 15 FROM tab1 AS cor0
----
2870
3356
4763

query I rowsort
SELECT col2 * + 47 + col1 * col1 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - col0 * - 68 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 87 * - col0 + col0 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT ALL col0 - + 42 AS col1 FROM tab0
----
-27
45
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + 83 - SUM( DISTINCT + + col0 ) FROM tab0
----
-116

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + 83 - SUM ( DISTINCT + + col0 ) FROM tab0
----
-116

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE col1 * col2 / + + col2 + + col2 * + + col0 + + col1 - - 32 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - MAX( + - 90 ) - - + 26 col2 FROM tab0
----
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8022
SELECT - MAX ( + - 90 ) - - + 26 col2 FROM tab0
----
116

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + 60 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + 60 * + col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8025
SELECT - 28 DIV + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 28 / + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT col0 * - 21 - + col1 FROM tab2 AS cor0
----
-1017
-1421
-1642

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT ALL - MAX( - 60 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - MAX ( - 60 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
60

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT NULL = - col1 )
----

query I rowsort
SELECT ALL + col1 + 88 FROM tab1 WHERE ( + 60 IS NOT NULL )
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL + + COUNT( - 75 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL + + COUNT ( - 75 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT - MAX( ALL + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - 33 + - ( - 30 ) + col0 FROM tab0 cor0
----
12
84
94

query I rowsort
SELECT DISTINCT + 50 * + col0 * + col1 FROM tab2
----
117300
246400
251250

query II rowsort
SELECT DISTINCT 56, col0 AS col0 FROM tab2
----
56
46
56
64
56
75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8036
SELECT - 1 AS col2, + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1
----
-1
NULL
-1
NULL
-1
NULL

skipif mysql # not compatible
query II rowsort label-8036
SELECT - 1 AS col2, + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1
----
-1
NULL
-1
NULL
-1
NULL

query II rowsort
SELECT ALL col1, 20 FROM tab1
----
14
20
47
20
5
20

query I rowsort
SELECT DISTINCT ( + 14 ) FROM tab1
----
14

query I rowsort
SELECT 20 + + col1 FROM tab2
----
71
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT ALL + 55 * 4, COUNT( * ) AS col2 FROM tab2
----
220
3

skipif mysql # not compatible
query II rowsort label-8040
SELECT ALL + 55 * 4, COUNT ( * ) AS col2 FROM tab2
----
220
3

query I rowsort
SELECT DISTINCT + col0 + ( + col1 ) FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + - 36 * - + 12 AS col2 FROM tab1 AS cor0
----
432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT DISTINCT + - 46 FROM tab0 cor0 WHERE - CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + - 46 FROM tab0 cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT + - 15, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-8044
SELECT + - 15, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-15
3

query I rowsort
SELECT ALL + + ( + 38 ) FROM tab2 cor0 WHERE col0 IS NOT NULL
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT ALL col2 + + + 98 + + col2 DIV col0 FROM tab2 AS cor0
----
121
138
156

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL col2 + + + 98 + + col2 / col0 FROM tab2 AS cor0
----
121
138
156

query I rowsort
SELECT DISTINCT + ( + col1 ) + + - col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8048
SELECT - 65 + + col1 DIV 76 + + - col2 * - col2 col2, 62 AS col0 FROM tab2 AS cor0
----
1536
62
3299
62
464
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8048
SELECT - 65 + + col1 / 76 + + - col2 * - col2 col2, 62 AS col0 FROM tab2 AS cor0
----
1536
62
3299
62
464
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT + + col1 + + 6 + col2 DIV - 79 AS col2 FROM tab0 AS cor0
----
27
6
87

skipif mysql # not compatible
query I rowsort label-8049
SELECT + + col1 + + 6 + col2 / - 79 AS col2 FROM tab0 AS cor0
----
27
6
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT ALL + CAST( NULL AS SIGNED ) / + ( + 63 ) + - col1 + 18 + - - 35 / - 28 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + CAST ( NULL AS INTEGER ) / + ( + 63 ) + - col1 + 18 + - - 35 / - 28 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT - col1 DIV + ( - + col1 ) + - - col1 + ( + col0 ) FROM tab0 cor0
----
109
97
99

skipif mysql # not compatible
query I rowsort label-8051
SELECT - col1 / + ( - + col1 ) + - - col1 + ( + col0 ) FROM tab0 cor0
----
109
97
99

query I rowsort
SELECT ALL + col2 * - - col2 + + col0 AS col2 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT ALL + col0 + + col0 + + + 75 FROM tab1
----
177
245
257

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE - col0 + - + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE - col0 + - + col0 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 96 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8056
SELECT ALL 34 DIV + 91 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL 34 / + 91 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8057
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * ( 91 ) FROM tab1
----
5369
6188
8736

query II rowsort
SELECT ALL + col0, - ( 27 ) + + - col1 AS col1 FROM tab1
----
51
-41
85
-32
91
-74

query II rowsort
SELECT DISTINCT - - col0, 36 AS col2 FROM tab1 AS cor0
----
51
36
85
36
91
36

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 95 + - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col2 FROM tab2 cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col1 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT ALL ( - 70 ) AS col1 FROM tab0 WHERE NOT 51 * + col1 IS NULL
----
-70
-70
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT col2 DIV - col0 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8066
SELECT col2 / - col0 + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + ( + 41 ) FROM tab1
----
41

query I rowsort
SELECT + 21 AS col1 FROM tab2 WHERE NOT ( 65 ) >= col1 + col1
----
21
21
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) + - ( + MAX( DISTINCT 83 ) + - COUNT( * ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8069
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) + - ( + MAX ( DISTINCT 83 ) + - COUNT ( * ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( + ( col0 ) ) AND - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8071
SELECT ALL MIN( DISTINCT - CAST( NULL AS SIGNED ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8071
SELECT ALL MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + - col2 / - 11 AS col2 FROM tab1 WHERE NOT NULL > col0 + + col1 * col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8073
SELECT ALL COUNT( * ) + COUNT( - ( ( col1 ) ) ) DIV - 11 AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL COUNT ( * ) + COUNT ( - ( ( col1 ) ) ) / - 11 AS col0 FROM tab2
----
3

query I rowsort
SELECT col1 - + col0 * col0 AS col0 FROM tab1
----
-2587
-7220
-8234

query I rowsort
SELECT - 2 * + 71 FROM tab0 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE col0 IN ( col0 / 62 )
----

query I rowsort
SELECT DISTINCT 87 - + 65 AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * 87 AS col1 FROM tab0
----
1305
7569
8439

query I rowsort
SELECT DISTINCT - col0 + 44 AS col1 FROM tab0
----
-43
-53
29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 69 ) IN ( 85 + ( ( ( - 28 ) ) ) * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT COUNT( 75 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8081
SELECT COUNT ( 75 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8082
SELECT ALL COUNT( * ) DIV + 33 AS col0 FROM tab1 WHERE - col0 * + 63 IN ( 37 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL COUNT ( * ) / + 33 AS col0 FROM tab1 WHERE - col0 * + 63 IN ( 37 + + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL + 84 * - COUNT( ALL col0 / 52 ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + 84 * - COUNT ( ALL col0 / 52 ) FROM tab2
----
-252

query I rowsort
SELECT ALL col1 + - col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - 29 FROM tab2 WHERE NOT col2 * 30 BETWEEN ( 89 ) AND ( - col1 )
----
-29
-29
-29

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT - col1 = ( - col2 ) * col0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8087
SELECT ALL - 68 DIV COUNT( * ) + - 14 AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - 68 / COUNT ( * ) + - 14 AS col0 FROM tab2 AS cor0
----
-36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT 50 / + 18 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT 50 / + 18 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 93 + + col2 FROM tab0 AS cor0
----
103
140
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT COUNT( * ) + - SUM( 25 ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8091
SELECT COUNT ( * ) + - SUM ( 25 ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL + col0 * + 79 + - col2 FROM tab0 AS cor0
----
1138
6863
7564

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( 61 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8093
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( 61 ) IS NULL
----
0

query I rowsort
SELECT + + 94 FROM tab2 cor0
----
94
94
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( col0 )
----

query I rowsort
SELECT ALL - 0 + 89 AS col1 FROM tab2 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * col1 col1 FROM tab0 AS cor0
----
2754
34
714

query I rowsort
SELECT ALL - - col0 + col0 * + col1 AS col1 FROM tab2 cor0
----
2392
4992
5100

query I rowsort
SELECT + - col1 - ( - col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8101
SELECT - + ( 36 ) DIV SUM( DISTINCT 74 ) col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8101
SELECT - + ( 36 ) / SUM ( DISTINCT 74 ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 77 * + 91 FROM tab0 AS cor0
----
-7007
-7007
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT + - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8103
SELECT + - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( - 31 ) AS col0 FROM tab1 AS cor0
----
-31

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN 48 - + 71 AND + col1 + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND - ( 35 )
----

query I rowsort
SELECT + 80 * col0 AS col2 FROM tab1
----
4080
6800
7280

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 3 BETWEEN col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 12 FROM tab1 WHERE ( + ( 22 ) ) NOT BETWEEN - col1 AND ( 37 )
----

query I rowsort
SELECT ALL + 93 * 95 AS col0 FROM tab2 WHERE NULL IS NULL
----
8835
8835
8835

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * col2 IS NULL
----

query I rowsort
SELECT - ( - col1 ) + 1 FROM tab0 WHERE NOT - col2 + + col0 IS NULL
----
2
22
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 74 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL - COUNT( ALL - 67 ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - COUNT ( ALL - 67 ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT + 73 DIV + + 3 + col0 FROM tab0 AS cor0
----
111
121
39

skipif mysql # not compatible
query I rowsort label-8115
SELECT + 73 / + + 3 + col0 FROM tab0 AS cor0
----
111
121
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT ALL 66 * COUNT( * ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL 66 * COUNT ( * ) FROM tab1
----
198

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL >= - ( - 28 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + - COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8118
SELECT + - COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col2 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-28
-37
-9

query II rowsort
SELECT 76 AS col1, + col1 + col2 FROM tab2 cor0
----
76
117
76
125
76
74

query I rowsort
SELECT DISTINCT + 72 + - - col0 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT DISTINCT + col0 + 40 + + - col0 - col0 AS col1 FROM tab1 AS cor0
----
-11
-45
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8123
SELECT ALL - + COUNT( * ) DIV - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - + COUNT ( * ) / - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 47 * col1 = NULL
----

query I rowsort
SELECT ALL 23 + + 83 + ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-104
-3701
7

query I rowsort
SELECT - col0 * + col1 - + col2 AS col2 FROM tab1 AS cor0 WHERE col1 <> - 8
----
-4345
-484
-810

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8127
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 47 NOT IN ( CAST( - 99 AS DECIMAL ) )
----
3

skipif mysql # not compatible
query I rowsort label-8127
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 47 NOT IN ( CAST ( - 99 AS REAL ) )
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( 13 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 71 + - ( + col2 ) AS col0 FROM tab2
----
13
31
48

query I rowsort
SELECT 79 + + ( col2 ) - - - col0 AS col1 FROM tab0
----
111
2
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8131
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 20 + col2 AS col1 FROM tab0
----
119
30
67

query I rowsort
SELECT ALL - col1 * ( - col1 * 90 ) FROM tab2 WHERE NOT col0 IS NULL
----
234090
404010
533610

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE ( col2 <= col2 )
----
73
73
73

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE ( ( NULL BETWEEN ( col0 ) AND + 57 - col2 / col1 ) )
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ( - col0 ) * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8138
SELECT 23 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * - - 72 <= ( + - col1 * - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT 23 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 * - - 72 <= ( + - col1 * - - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL - 65 * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + ( - col0 ) * col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - 65 * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + ( - col0 ) * col0 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col2 FROM tab0 AS cor0
----
32
32
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > ( col0 + + + col1 )
----

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + - + col0 * - - col0 * - col0 NOT BETWEEN ( 54 + + 85 ) AND ( 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + SUM( + ( 21 ) ) FROM tab2, tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-8143
SELECT + SUM ( + ( 21 ) ) FROM tab2, tab2 AS cor0
----
189

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - col1 - + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT ALL 43 DIV COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL 43 / COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT COUNT( * ) * 70 - - - 45 AS col1 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT COUNT ( * ) * 70 - - - 45 AS col1 FROM tab1 AS cor0
----
165

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 75 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT + MIN( ALL - + col0 ) + - COUNT( * ) + 2 AS col0 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-8148
SELECT + MIN ( ALL - + col0 ) + - COUNT ( * ) + 2 AS col0 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE + col0 * + + ( - 58 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 53 NOT BETWEEN - + col2 + col2 * col1 AND + 4 * - + col0 - col0 - - ( 47 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * - - ( 13 ) - col0 - + 90 / col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT ALL + SUM( - + col1 ) * + + 10 * + - 16 + - COUNT( * ) FROM tab2 AS cor0
----
31197

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL + SUM ( - + col1 ) * + + 10 * + - 16 + - COUNT ( * ) FROM tab2 AS cor0
----
31197

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE ( + 22 * - + 16 / + - col0 ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8154
SELECT DISTINCT CAST( NULL AS DECIMAL ) - 67 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT DISTINCT CAST ( NULL AS REAL ) - 67 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 23 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT col2 - + ( - col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT col2 - + ( - col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT - 26 * - COUNT( * ) AS col1 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT - 26 * - COUNT ( * ) AS col1 FROM tab0
----
78

query I rowsort
SELECT + col1 * - - col2 - col2 FROM tab0
----
0
200
3760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 74 col1 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT ALL - 95, 38 - + - ( + + 44 ) + MAX( ALL col0 ) * - ( + COUNT( DISTINCT + 32 ) ) AS col0 FROM tab2 AS cor0
----
-95
7

skipif mysql # not compatible
query II rowsort label-8160
SELECT ALL - 95, 38 - + - ( + + 44 ) + MAX ( ALL col0 ) * - ( + COUNT ( DISTINCT + 32 ) ) AS col0 FROM tab2 AS cor0
----
-95
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT - MIN( - col2 ) + + 31 AS col1 FROM tab2 cor0
----
89

skipif mysql # not compatible
query I rowsort label-8161
SELECT - MIN ( - col2 ) + + 31 AS col1 FROM tab2 cor0
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8162
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + - 60 - + CAST( NULL AS DECIMAL ) ) > - col0 + - col1 + - 76 + 44
----

skipif mysql # not compatible
query III rowsort label-8162
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 + - 60 - + CAST ( NULL AS REAL ) ) > - col0 + - col1 + - 76 + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT DISTINCT - - 68 * - 37 + - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
-2516

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT - - 68 * - 37 + - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
-2516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT - col2 * + + col2 * + col2 + - - CAST( NULL AS SIGNED ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8164
SELECT - col2 * + + col2 * + col2 + - - CAST ( NULL AS INTEGER ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT ALL + - MIN( ALL 33 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8165
SELECT ALL + - MIN ( ALL 33 ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-33

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - col0 NOT IN ( - + col2, + col0 )
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col2 + - ( col0 ) - 35 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT + MAX( DISTINCT + col1 ) * + + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8168
SELECT + MAX ( DISTINCT + col1 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8169
SELECT CAST( + ( - ( col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8169
SELECT CAST ( + ( - ( col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + ( + - 25 ) FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL - - col1 * + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT ALL - + CAST( + ( - MAX( DISTINCT col2 ) ) AS SIGNED ) - - 93 * 99 FROM tab1 WHERE NULL <= + 59 * - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - + CAST ( + ( - MAX ( DISTINCT col2 ) ) AS INTEGER ) - - 93 * 99 FROM tab1 WHERE NULL <= + 59 * - - col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT + COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8173
SELECT + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
3
3

query II rowsort
SELECT col2 AS col0, + 73 FROM tab0
----
10
73
47
73
99
73

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 * - 97 / 21 NOT BETWEEN ( col2 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8176
SELECT 67, - COUNT( * ) AS col2 FROM tab2
----
67
-3

skipif mysql # not compatible
query II rowsort label-8176
SELECT 67, - COUNT ( * ) AS col2 FROM tab2
----
67
-3

query I rowsort
SELECT + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8178
SELECT ALL - col0 * + col1 / 46 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - col0 * + col1 / 46 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 7 + + 67 + + col1 AS col0 FROM tab2 AS cor0
----
111
127
137

query I rowsort
SELECT DISTINCT + + 82 + + - col1 FROM tab2 AS cor0
----
15
31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + MIN( - - col1 ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8182
SELECT + MIN ( - - col1 ) col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - + col2 + - col2 * col1 * + + col2 FROM tab1 AS cor0
----
-129120
-17464
-217396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT - col0 + - - col2 AS col2 FROM tab1 cor0 WHERE ( - CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT - col0 + - - col2 AS col2 FROM tab1 cor0 WHERE ( - CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8185
SELECT DISTINCT ( COUNT( * ) ), - 48 col1 FROM tab2
----
3
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8185
SELECT DISTINCT ( COUNT ( * ) ), - 48 col1 FROM tab2
----
3
-48

query I rowsort
SELECT ALL col1 * - + ( 71 ) AS col0 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT ALL ( - 87 ) + col0 DIV - 19 FROM tab1 AS cor0
----
-89
-91
-91

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL ( - 87 ) + col0 / - 19 FROM tab1 AS cor0
----
-89
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT - 85 * + - COUNT( * ) + + 29 * - - 50 AS col2 FROM tab1 AS cor0
----
1705

skipif mysql # not compatible
query I rowsort label-8188
SELECT - 85 * + - COUNT ( * ) + + 29 * - - 50 AS col2 FROM tab1 AS cor0
----
1705

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ALL + ( + col2 ) DIV - 53 + - - 64 AS col1 FROM tab0 AS cor0
----
63
64
64

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + ( + col2 ) / - 53 + - - 64 AS col1 FROM tab0 AS cor0
----
63
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT - COUNT( * ) + + 45 AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8190
SELECT - COUNT ( * ) + + 45 AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT + col0 * 23 * + 19 * 10 + + 16 AS col0 FROM tab0 cor0
----
380206
423906
65566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - + + 83 col0 FROM tab1 AS cor0
----
-142
-151
-179

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NOT 97 > ( - col0 - col1 ) )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + - 37 col1 FROM tab1
----
-1887
-3145
-3367

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 51 / - - 1 * + 11 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8196
SELECT DISTINCT col1 DIV - - 82 AS col0, - CAST( ( col1 ) AS SIGNED ) * 37 AS col1 FROM tab0
----
0
-2997
0
-37
0
-777

skipif mysql # not compatible
query II rowsort label-8196
SELECT DISTINCT col1 / - - 82 AS col0, - CAST ( ( col1 ) AS INTEGER ) * 37 AS col1 FROM tab0
----
0
-2997
0
-37
0
-777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8197
SELECT + 16 * - CAST( - + 61 AS SIGNED ) + - MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
1023

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 16 * - CAST ( - + 61 AS INTEGER ) + - MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL + MIN( - 20 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL + MIN ( - 20 ) FROM tab0 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, + 69 * col0 col2 FROM tab0
----
1
6693
21
6003
81
1035

query I rowsort
SELECT ALL 31 * + ( - col2 ) AS col1 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT ( + + 25 ) AS col0 FROM tab1
----
25
25
25

query I rowsort
SELECT ALL + 93 * - - col2 FROM tab2
----
2139
3720
5394

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8203
SELECT DISTINCT - - 57 AS col2, + CAST( NULL AS DECIMAL ) + 57 + + + 62 * + col1 * + col2 FROM tab1 AS cor0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT DISTINCT - - 57 AS col2, + CAST ( NULL AS REAL ) + 57 + + + 62 * + col1 * + col2 FROM tab1 AS cor0
----
57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT ALL + SUM( ALL + 87 ) AS col2 FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + SUM ( ALL + 87 ) AS col2 FROM tab1 AS cor0
----
261

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 76 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col1 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT + col1 * col0 + col2 * + - col0 / + - 4 - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL - 11 * - col2 FROM tab0 AS cor0
----
1089
110
517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * + col2 col2 FROM tab1
----
249696
426275
563108

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - ( - 85 ) * - - col2 * - + 63 * + + 57 * - col0 + col1 AND - - ( col2 )
----

query I rowsort
SELECT col2 * 39 / col0 * 85 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> - col1
----

query I rowsort
SELECT DISTINCT col1 + ( + col0 ) FROM tab1 AS cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - 14 + + - col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT - + 16 + - COUNT( * ) FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT - + 16 + - COUNT ( * ) FROM tab2 cor0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL - MAX( ALL + + 81 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL - MAX ( ALL + + 81 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT COUNT( * ) * MAX( DISTINCT + 50 ) FROM tab0, tab2 cor0
----
450

skipif mysql # not compatible
query I rowsort label-8219
SELECT COUNT ( * ) * MAX ( DISTINCT + 50 ) FROM tab0, tab2 cor0
----
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8220
SELECT + CAST( NULL AS SIGNED ) * + MAX( ALL 89 ) - + 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( ALL 89 ) - + 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8221
SELECT ALL - SUM( ALL 23 ) * - + COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - SUM ( ALL 23 ) * - + COUNT ( * ) + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 43 AS col0 FROM tab2 AS cor0
----
21
3
32

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL ) OR + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 33 * - + col2 + + col2 + - 30 AS col2 FROM tab0 AS cor0
----
1568
310
3336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col1, - col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8227
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + ( + col1 ) DIV col1 + col1 + + - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + ( + col1 ) / col1 + col1 + + - col1 FROM tab0
----
-1
-21
-81

query II rowsort
SELECT ALL col1 + + col2 AS col2, col0 AS col1 FROM tab2
----
117
64
125
75
74
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT + col2 * - + 22 - 64 DIV 62 * 3 col0 FROM tab1
----
-1301
-1499
-2115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8229
SELECT + col2 * - + 22 - 64 / 62 * 3 col0 FROM tab1
----
-1301
-1499
-2115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8230
SELECT ALL col2 - CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
21
54
82

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL col2 - CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT col2 - - ( + col0 ) AS col2 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 32 )
----

query I rowsort
SELECT - col1 FROM tab0 WHERE - ( - + col2 ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT col0 * - - col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT + col2 * + CAST( NULL AS SIGNED ) * - 37 * - col0 + + col1 - - col0 + ( - + col1 ) * + 28 * col1 * - CAST( - col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8235
SELECT + col2 * + CAST ( NULL AS INTEGER ) * - 37 * - col0 + + col1 - - col0 + ( - + col1 ) * + 28 * col1 * - CAST ( - col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT + 26 * + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT + 26 * + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 74 BETWEEN col0 AND - - col2 + + 95 * + col2
----
85
5
59
91
47
68

query I rowsort
SELECT - col2 * + 20 AS col2 FROM tab2 AS cor0
----
-1160
-460
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT - + COUNT( * ) * SUM( 77 ) AS col1 FROM tab1 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-8240
SELECT - + COUNT ( * ) * SUM ( 77 ) AS col1 FROM tab1 AS cor0
----
-693

query I rowsort
SELECT ALL - 64 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-150144
-315392
-321600

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col1 ) = - 25 * + ( + - 21 ) - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8243
SELECT DISTINCT COUNT( - CAST( + - col2 AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT COUNT ( - CAST ( + - col2 AS INTEGER ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8244
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8245
SELECT SUM( 74 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8245
SELECT SUM ( 74 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT DISTINCT COUNT( * ) * - MAX( col1 ) - - COUNT( * ) + COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT COUNT ( * ) * - MAX ( col1 ) - - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT - 70 DIV - col2 + - + col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-8247
SELECT - 70 / - col2 + - + col2 FROM tab1 AS cor0
----
-58
-67
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT ALL + 48 DIV + ( MIN( ALL + col1 ) ) + + 68 + + ( + 45 ) + + COUNT( - 91 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 48 / + ( MIN ( ALL + col1 ) ) + + 68 + + ( + 45 ) + + COUNT ( - 91 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
170

query I rowsort
SELECT DISTINCT + col1 + + - 24 FROM tab0 AS cor0
----
-23
-3
57

query I rowsort
SELECT DISTINCT col1 * 88 FROM tab2
----
4488
5896
6776

query I rowsort
SELECT - - col1 * col2 + - + col2 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT 76 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
76
76
76

query I rowsort
SELECT 7 + - - col2 + + 76 * + + 21 * - col1 * + + col2 FROM tab1 AS cor0
----
-2144921
-470754
-5100741

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + + col1 > NULL
----

query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # DIV for integer division: 
query I rowsort label-8257
SELECT ALL 95 + + - 75 DIV + ( - - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
80
90
94

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL 95 + + - 75 / + ( - - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
80
90
94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8258
SELECT - 50 + + CAST( - col2 AS DECIMAL ) + - + ( ( + col1 ) ) AS col2 FROM tab2 WHERE NULL BETWEEN - ( - 76 ) / + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8258
SELECT - 50 + + CAST ( - col2 AS REAL ) + - + ( ( + col1 ) ) AS col2 FROM tab2 WHERE NULL BETWEEN - ( - 76 ) / + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8259
SELECT COUNT( DISTINCT CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8259
SELECT COUNT ( DISTINCT CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL 36 - - + 67 FROM tab1
----
103
103
103

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8261
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 65 * col2 AS col0, - 82 + - col1 col1 FROM tab2
----
NULL
-133
NULL
-149
NULL
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8261
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 65 * col2 AS col0, - 82 + - col1 col1 FROM tab2
----
NULL
-133
NULL
-149
NULL
-159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8262
SELECT ALL + col2 DIV ( - CAST( + 62 AS SIGNED ) ) FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + col2 / ( - CAST ( + 62 AS INTEGER ) ) FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 WHERE NOT - col1 - - ( + col2 ) + - + 93 IS NULL
----
-1
-21
-81

query I rowsort
SELECT col0 * - - 0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL >= col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 85 * 54 * col1 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 88 * + ( col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
5192
5984
8448

query II rowsort
SELECT ALL col0 AS col0, + ( + + col1 ) * + col2 * col1 + + col0 AS col0 FROM tab0
----
15
308382
87
4497
97
196

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT MIN( DISTINCT - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT MIN ( DISTINCT - col0 ) FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8270
SELECT + CAST( + 28 AS SIGNED ) + + + col0 AS col0, col2 + - 12 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query II rowsort label-8270
SELECT + CAST ( + 28 AS INTEGER ) + + + col0 AS col0, col2 + - 12 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8271
SELECT - + 75 * + COUNT( * ) DIV + - COUNT( - col1 ) FROM tab1 cor0
----
75

skipif mysql # not compatible
query I rowsort label-8271
SELECT - + 75 * + COUNT ( * ) / + - COUNT ( - col1 ) FROM tab1 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - 49 + + col0 + - col0 * col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8272
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - 49 + + col0 + - col0 * col0 <> NULL
----
0

query II rowsort
SELECT 75 * + col1 AS col1, - col2 AS col1 FROM tab2
----
3825
-23
5025
-58
5775
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8274
SELECT DISTINCT - CAST( + - 36 AS SIGNED ) AS col2, col0 AS col1 FROM tab2
----
36
46
36
64
36
75

skipif mysql # not compatible
query II rowsort label-8274
SELECT DISTINCT - CAST ( + - 36 AS INTEGER ) AS col2, col0 AS col1 FROM tab2
----
36
46
36
64
36
75

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT + - 23 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col1 BETWEEN NULL AND + ( - + col0 ) * + col0 * + - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8277
SELECT DISTINCT * FROM tab0 WHERE - + CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8277
SELECT DISTINCT * FROM tab0 WHERE - + CAST ( - col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT + 93, + 76 AS col2 FROM tab2 WHERE - col0 + - col1 IS NOT NULL
----
93
76
93
76
93
76

query I rowsort
SELECT DISTINCT 47 + - - col0 + + 45 * col2 AS col2 FROM tab0 AS cor0
----
2177
4599
584

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL IN ( - 64, + 38 + - + 98 - + col1 * + col1 * - + col0 + + col0 - + 56 * - col1 * + + col1 - col2 * + - col2, + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 35 BETWEEN NULL AND + 94 + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8282
SELECT ALL - col2 * + 11 + + col2 DIV + col0 * + - 24, + col0 AS col2 FROM tab2 AS cor0
----
-253
46
-440
64
-638
75

skipif mysql # not compatible
query II rowsort label-8282
SELECT ALL - col2 * + 11 + + col2 / + col0 * + - 24, + col0 AS col2 FROM tab2 AS cor0
----
-253
46
-440
64
-638
75

query I rowsort
SELECT 57 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
2645
3688
4333

query I rowsort
SELECT + 55 * + - 45 * ( - 87 ) + - 39 + - col1 AS col1 FROM tab2
----
215209
215219
215235

query I rowsort
SELECT ALL - + 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT + - col1 DIV - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 57 BETWEEN NULL AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT + - col1 / - col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 57 BETWEEN NULL AND - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8288
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8288
SELECT CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + + 82 + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < + col2 * + col0
----
82

skipif mysql # not compatible
query I rowsort label-8289
SELECT + + 82 + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) < + col2 * + col0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 - - - 6 col1 FROM tab0 AS cor0
----
82
82
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - - 37 ) FROM tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8293
SELECT ALL * FROM tab1 WHERE - 71 * - CAST( - 6 AS SIGNED ) > 74
----

skipif mysql # not compatible
query III rowsort label-8293
SELECT ALL * FROM tab1 WHERE - 71 * - CAST ( - 6 AS INTEGER ) > 74
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 FROM tab0 WHERE - col0 >= + - col1 + 24
----
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL + COUNT( ALL + + col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL + COUNT ( ALL + + col1 ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col1 col2 FROM tab0 cor0 WHERE - col0 NOT BETWEEN + - col2 AND NULL
----
87
21

query II rowsort
SELECT - 30 * - + col0, - col0 + + 56 + + col1 AS col0 FROM tab2 AS cor0
----
1380
61
1920
69
2250
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT SUM( ALL - 89 ) * - 97 - 42 FROM tab0 cor0
----
25857

skipif mysql # not compatible
query I rowsort label-8298
SELECT SUM ( ALL - 89 ) * - 97 - 42 FROM tab0 cor0
----
25857

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT DISTINCT COUNT( * ) AS col0, 14 + - 57 + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
3
-43

skipif mysql # not compatible
query II rowsort label-8299
SELECT DISTINCT COUNT ( * ) AS col0, 14 + - 57 + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
3
-43

query II rowsort
SELECT DISTINCT + 6, col1 FROM tab1 AS cor0
----
6
14
6
47
6
5

query II rowsort
SELECT 21 AS col1, col2 FROM tab0 cor0
----
21
10
21
47
21
99

query I rowsort
SELECT ALL 28 * + + col0 + col2 - 97 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1 cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL + - ( - MIN( + col2 ) ) * 78 FROM tab0 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + - ( - MIN ( + col2 ) ) * 78 FROM tab0 AS cor0
----
780

query I rowsort
SELECT - ( ( 98 ) ) AS col0 FROM tab0 AS cor0
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT ALL + ( - 63 ) + + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND col1 )
----
-63

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + ( - 63 ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND col1 )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT + col0 * + 85 + - ( - col2 ) * - + CAST( - + col0 AS SIGNED ) + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
18044
2042
8362

skipif mysql # not compatible
query I rowsort label-8307
SELECT + col0 * + 85 + - ( - col2 ) * - + CAST ( - + col0 AS INTEGER ) + col2 + + + col0 AS col1 FROM tab0 AS cor0
----
18044
2042
8362

onlyif mysql # DIV for integer division: 
query I rowsort label-8308
SELECT DISTINCT 85 DIV col0 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT 85 / col0 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8309
SELECT * FROM tab0 WHERE + ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8309
SELECT * FROM tab0 WHERE + ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - + 6 FROM tab1
----
45
79
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8311
SELECT * FROM tab2 WHERE - CAST( - + 41 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8311
SELECT * FROM tab2 WHERE - CAST ( - + 41 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( + 38 ) AS col2 FROM tab1
----
-38

query I rowsort
SELECT DISTINCT + 23 * col0 + - 69 FROM tab1 WHERE NOT + ( + - col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL 52 AS col0, 7 * + + 43 AS col1 FROM tab2
----
52
301
52
301
52
301

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT + COUNT( * ) + + ( 60 ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-8316
SELECT + COUNT ( * ) + + ( 60 ) AS col1 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT 0 + + - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8317
SELECT 0 + + - COUNT ( * ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT - col2 + - + 45 + + col0 * - col1 + col0 FROM tab0 AS cor0
----
-1292
-144
-1795

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8320
SELECT 10 * CAST( NULL AS SIGNED ) - COUNT( * ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8320
SELECT 10 * CAST ( NULL AS INTEGER ) - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL ( 65 ) - - 14 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + - 6 + + 13 AS col0 FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
7

query I rowsort
SELECT col2 + 72 AS col1 FROM tab0 AS cor0
----
119
171
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL - MAX( - + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL - MAX ( - + col2 ) FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8326
SELECT + SUM( - 7 ) col1, + MIN( col1 ) - + 28 AS col2 FROM tab0 AS cor0
----
-21
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8326
SELECT + SUM ( - 7 ) col1, + MIN ( col1 ) - + 28 AS col2 FROM tab0 AS cor0
----
-21
-27

query I rowsort
SELECT ALL 45 * + 58 FROM tab2
----
2610
2610
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT COUNT( * ) * - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT COUNT ( * ) * - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT - ( + 39 ) AS col0 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT + 91 * - + col1 FROM tab1
----
-1274
-4277
-455

query II rowsort
SELECT ALL col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT COUNT( ALL + 36 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT COUNT ( ALL + 36 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 + - col1 + + col1 IS NULL
----

query I rowsort
SELECT ALL col0 * - 10 AS col1 FROM tab1
----
-510
-850
-910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT - CAST( + 87 AS SIGNED ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - CAST ( + 87 AS INTEGER ) AS col0 FROM tab1
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 4 ) AS col0, col2 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8337
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8337
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT 39 * 92 + - ( MAX( DISTINCT - col2 ) ) AS col1 FROM tab1 AS cor0
----
3647

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT 39 * 92 + - ( MAX ( DISTINCT - col2 ) ) AS col1 FROM tab1 AS cor0
----
3647

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT DISTINCT col0 + col0 DIV - col2 FROM tab0 AS cor0
----
15
79
97

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT col0 + col0 / - col2 FROM tab0 AS cor0
----
15
79
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 - + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 79 * - + 50 AS col2 FROM tab0 AS cor0
----
-3950
-3950
-3950

query I rowsort
SELECT ALL - col0 + 77 AS col0 FROM tab2
----
13
2
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8344
SELECT * FROM tab1 WHERE CAST( + col1 AS DECIMAL ) > col1 * 14
----

skipif mysql # not compatible
query III rowsort label-8344
SELECT * FROM tab1 WHERE CAST ( + col1 AS REAL ) > col1 * 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 62 col2 FROM tab2
----
2852
3968
4650

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ( + COUNT( * ) ) * + + 51 AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8346
SELECT ( + COUNT ( * ) ) * + + 51 AS col1 FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + 97 - + - COUNT( * ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-8347
SELECT + 97 - + - COUNT ( * ) FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8348
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT 48 + 45 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT 54 * - ( 79 ) AS col1 FROM tab2
----
-4266

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT + 86 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT + 86 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 60 AS col1 FROM tab1 AS cor0
----
60
60
60

query II rowsort
SELECT ALL - col1, 9 AS col1 FROM tab1 AS cor0
----
-14
9
-47
9
-5
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8354
SELECT CAST( - col1 AS SIGNED ) * - 46 FROM tab2 AS cor0
----
2346
3082
3542

skipif mysql # not compatible
query I rowsort label-8354
SELECT CAST ( - col1 AS INTEGER ) * - 46 FROM tab2 AS cor0
----
2346
3082
3542

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + MAX( + 64 ) AS col1 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8355
SELECT + MAX ( + 64 ) AS col1 FROM tab2 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT - 6 + - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT - 6 + - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT ALL - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT ALL - + 21 * - COUNT( * ) col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT ALL - + 21 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL - ( + col0 ) * - + col0 AS col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN - + col0 AND col2 * + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 49 FROM tab2 WHERE NULL NOT BETWEEN - col0 AND - + 55 + - - col1 / + 67 * + 90 + + 57
----

query I rowsort
SELECT - col1 * + + 44 AS col0 FROM tab1
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT ALL - SUM( - + 68 ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-8363
SELECT ALL - SUM ( - + 68 ) FROM tab0 AS cor0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT ALL + + col0 DIV 6 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL + + col0 / 6 / + col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43, - 86 col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - 66 * 46 FROM tab0 AS cor0
----
-3036
-3036
-3036

query I rowsort
SELECT DISTINCT + + 81 + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT MIN( + 32 ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8368
SELECT MIN ( + 32 ) AS col0 FROM tab1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - - 93 * + COUNT( * ) * - COUNT( DISTINCT - col1 ) * MAX( ALL col0 ) AS col1 FROM tab2 cor0
----
-62775

skipif mysql # not compatible
query I rowsort label-8369
SELECT - - 93 * + COUNT ( * ) * - COUNT ( DISTINCT - col1 ) * MAX ( ALL col0 ) AS col1 FROM tab2 cor0
----
-62775

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT col1 DIV - col2 AS col0 FROM tab2 AS cor0 WHERE 66 IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8370
SELECT col1 / - col2 AS col0 FROM tab2 AS cor0 WHERE 66 IS NOT NULL
----
-1
-1
-2

query I rowsort
SELECT - 68 * - 27 + 29 + + col0 * + col2 FROM tab0 AS cor0
----
11468
2570
2735

onlyif mysql # DIV for integer division: 
query II rowsort label-8372
SELECT 48 + + ( - col2 ) col0, 57 - - 25 * + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-11
82
-20
82
-48
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8372
SELECT 48 + + ( - col2 ) col0, 57 - - 25 * + col0 / + col0 AS col2 FROM tab1 AS cor0
----
-11
82
-20
82
-48
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL + + 30 / COUNT( * ) + ( - + ( 38 ) ) + - CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + + 30 / COUNT ( * ) + ( - + ( 38 ) ) + - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + 80 FROM tab2 AS cor0
----
103
120
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col1 col0 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - 40 > col0 + - 19
----

query III rowsort
SELECT * FROM tab1 WHERE - 51 = NULL
----

query I rowsort
SELECT - col1 + + - col1 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + 66 * - COUNT( - col2 ) AS col2 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-8379
SELECT + 66 * - COUNT ( - col2 ) AS col2 FROM tab0
----
-198

query I rowsort
SELECT ALL col1 * + 55 FROM tab2 AS cor0
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - - ( COUNT( ALL + col0 ) ) * 47 + + 61 FROM tab1 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-8381
SELECT - - ( COUNT ( ALL + col0 ) ) * 47 + + 61 FROM tab1 AS cor0
----
202

query I rowsort
SELECT col0 * col0 * - - col2 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT - 76 DIV + col0 AS col0 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT - 76 / + col0 AS col0 FROM tab0 cor0
----
-5
0
0

query I rowsort
SELECT ALL - col1 + - col2 + + col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL CAST( NULL AS SIGNED ) * + col2 * + - col0 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 * + - col0 * - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT ALL + ( - 8 ) FROM tab1 AS cor0
----
-8
-8
-8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + 70
----

query I rowsort
SELECT DISTINCT + 34 + - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT MIN( DISTINCT 11 ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8391
SELECT MIN ( DISTINCT 11 ) FROM tab1
----
11

query II rowsort
SELECT ALL 20 AS col2, - col2 FROM tab0
----
20
-10
20
-47
20
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8393
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8393
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8394
SELECT + CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8394
SELECT + CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - - 63 AS col0 FROM tab1 AS cor0
----
63

query II rowsort
SELECT - col1 AS col1, 84 AS col0 FROM tab2 AS cor0
----
-51
84
-67
84
-77
84

query I rowsort
SELECT col1 - ( + - col1 ) FROM tab1 WHERE - col0 * - 64 NOT BETWEEN - col0 AND col0 + - + col1
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT 52 + - MIN( - col1 ) AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-8398
SELECT 52 + - MIN ( - col1 ) AS col0 FROM tab2
----
129

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * col2 * + 92 + - col1 + - - 44 < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8400
SELECT DISTINCT - 13 - CAST( NULL AS SIGNED ) + - - ( col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - 13 - CAST ( NULL AS INTEGER ) + - - ( col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL - CAST( - MIN( ALL - 76 ) AS SIGNED ) + + - 88 AS col2 FROM tab1 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - CAST ( - MIN ( ALL - 76 ) AS INTEGER ) + + - 88 AS col2 FROM tab1 AS cor0
----
-164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col0 FROM tab0 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT COUNT( + + 90 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8403
SELECT COUNT ( + + 90 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT + col1 AS col1, col0 AS col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT ALL 24 - col0 * + col0 FROM tab0
----
-201
-7545
-9385

query II rowsort
SELECT DISTINCT col0 AS col0, col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8407
SELECT MAX( + col1 ) - - AVG ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT MAX ( + col1 ) - - AVG ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT ALL - CAST( 96 AS SIGNED ) AS col0 FROM tab2
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - CAST ( 96 AS INTEGER ) AS col0 FROM tab2
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - col2 - + 81 AS col0 FROM tab2
----
-104
-121
-139

query I rowsort
SELECT + col0 - + + col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT DISTINCT + 25 * + - col1 - + col2 FROM tab1
----
-1243
-184
-446

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8412
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-8412
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, - col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + 50 + + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8413
SELECT + 50 + + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT + 54 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8414
SELECT + 54 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT ALL - col1 + - col2 DIV + 66 AS col2 FROM tab1 AS cor0
----
-15
-48
-5

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - col1 + - col2 / + 66 AS col2 FROM tab1 AS cor0
----
-15
-48
-5

query I rowsort
SELECT DISTINCT - + 38 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-38

query III rowsort
SELECT * FROM tab2 WHERE NOT + 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * - + 88 AS col2 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT - col2 * col0 * - + col1 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query II rowsort label-8421
SELECT DISTINCT + - col2 DIV - col0 AS col2, - ( + 56 ) FROM tab0 AS cor0
----
0
-56
1
-56
3
-56

skipif mysql # not compatible
query II rowsort label-8421
SELECT DISTINCT + - col2 / - col0 AS col2, - ( + 56 ) FROM tab0 AS cor0
----
0
-56
1
-56
3
-56

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> 47 * + col0 - + 7 * - col0 / - 38 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT 37 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8423
SELECT 37 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT ALL + 91 DIV - col0 col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8424
SELECT ALL + 91 / - col0 col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT - MAX( - 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-8425
SELECT - MAX ( - 31 ) FROM tab2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL - COUNT( DISTINCT + + 30 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - COUNT ( DISTINCT + + 30 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT COUNT( * ) + + + 44 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-8427
SELECT COUNT ( * ) + + + 44 FROM tab0
----
47

query I rowsort
SELECT ( col1 ) + - col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT ALL - COUNT( * ) + - - 64 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - COUNT ( * ) + - - 64 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT - 50 + - MIN( col2 ) FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8430
SELECT - 50 + - MIN ( col2 ) FROM tab2 cor0
----
-73

query I rowsort
SELECT - 54 + col2 + - - col0 + - 39 * - + col0 FROM tab1 AS cor0
----
2082
3405
3654

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 47 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 64 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT DISTINCT MAX( - 26 ) AS col1 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT MAX ( - 26 ) AS col1 FROM tab1
----
-26

query II rowsort
SELECT - 86 AS col2, col1 FROM tab1
----
-86
14
-86
47
-86
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - 53 - - + MAX( ALL 34 ) AS col1 FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-8436
SELECT - 53 - - + MAX ( ALL 34 ) AS col1 FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL - COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + ( 85 ) + + 72 AS col2 FROM tab2 AS cor0
----
157
157
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8439
SELECT ALL - col1 * + col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT ALL - col1 * + col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + - ( 21 ) + - col0 AS col0 FROM tab1 AS cor0
----
-1324
-1519
-2067

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT - + 99 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8441
SELECT - + 99 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT MAX( DISTINCT + col1 ) * COUNT( * ) + - 52 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-8442
SELECT MAX ( DISTINCT + col1 ) * COUNT ( * ) + - 52 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
176

query I rowsort
SELECT + 85 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
132
184
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8444
SELECT ALL + col1 + - CAST( + col2 AS SIGNED ) + - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL + col1 + - CAST ( + col2 AS INTEGER ) + - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - col2 + col1 - ( - col2 ) * 46 AS col2 FROM tab0 AS cor0
----
2196
4456
471

query I rowsort
SELECT ALL + col1 - + 78 AS col2 FROM tab2 AS cor0
----
-1
-11
-27

query I rowsort
SELECT DISTINCT - ( col1 ) + + - col1 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL - ( + + COUNT( * ) ) - - + COUNT( * ) FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - ( + + COUNT ( * ) ) - - + COUNT ( * ) FROM tab2, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8449
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
-81

query I rowsort
SELECT ALL - - col2 + + col2 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - 89 - - - col2 FROM tab0
----
-136
-188
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT DISTINCT - COUNT( DISTINCT - 34 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - COUNT ( DISTINCT - 34 ) FROM tab2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT - MAX( ALL - CAST( col0 AS SIGNED ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8453
SELECT - MAX ( ALL - CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2
----
46

query I rowsort
SELECT DISTINCT ( + 7 ) - 70 * + 37 AS col2 FROM tab2
----
-2583

query I rowsort
SELECT DISTINCT + + 41 AS col2 FROM tab0 AS cor0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT - MAX( + + col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8456
SELECT - MAX ( + + col1 ) FROM tab2 cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8457
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) col1, - col2 + + col0 FROM tab0 AS cor0
----
NULL
-2
NULL
-32
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8457
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) col1, - col2 + + col0 FROM tab0 AS cor0
----
NULL
-2
NULL
-32
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col1 FROM tab0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT - ( + 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) NOT BETWEEN 62 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8459
SELECT - ( + 13 ) AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) NOT BETWEEN 62 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----
0

query I rowsort
SELECT ALL - - col1 * + col1 * + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 84
----
0

skipif mysql # not compatible
query I rowsort label-8462
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - 84
----
0

query II rowsort
SELECT DISTINCT + + col0 AS col1, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8464
SELECT ( + - ( + col2 ) ) DIV - - col1 col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8464
SELECT ( + - ( + col2 ) ) / - - col1 col1 FROM tab0
----
-99
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col1 FROM tab1
----
94
94
94

query I rowsort
SELECT - ( - ( + 32 ) ) FROM tab2
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT ALL CAST( + + COUNT( * ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2
----
3

query II rowsort
SELECT 14 * - 18 AS col2, 45 FROM tab2
----
-252
45
-252
45
-252
45

query II rowsort
SELECT DISTINCT + col0 * + col1, col1 AS col1 FROM tab1
----
425
5
4277
47
714
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - 58 ) col1 FROM tab0 WHERE NULL IS NULL
----
58
58
58

query I rowsort
SELECT DISTINCT col1 * col1 + - 61 AS col2 FROM tab0 AS cor0
----
-60
380
6500

query I rowsort
SELECT DISTINCT + + 35 + + + 24 AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT DISTINCT + - COUNT( * ) + + 44 AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT + - COUNT ( * ) + + 44 AS col2 FROM tab0 AS cor0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT - col0 DIV - col2 + - ( + + 47 ) + + 15 AS col2 FROM tab1
----
-31
-31
-32

skipif mysql # not compatible
query I rowsort label-8474
SELECT - col0 / - col2 + - ( + + 47 ) + + 15 AS col2 FROM tab1
----
-31
-31
-32

query I rowsort
SELECT DISTINCT - + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT + + CAST( - - 82 AS SIGNED ) * - col1 * - col0 * - 42 FROM tab1 AS cor0
----
-1463700
-14729988
-2459016

skipif mysql # not compatible
query I rowsort label-8476
SELECT + + CAST ( - - 82 AS INTEGER ) * - col1 * - col0 * - 42 FROM tab1 AS cor0
----
-1463700
-14729988
-2459016

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT - - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8478
SELECT - - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8480
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( - col1 AS SIGNED ) / col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8480
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) / col1 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8481
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( ( 37 ) * + - col0, ( col2 ), col2, - col1, CAST( + 98 AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-8481
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( ( 37 ) * + - col0, ( col2 ), col2, - col1, CAST ( + 98 AS INTEGER ) + - col2 )
----

query I rowsort
SELECT - 54 - col1 AS col0 FROM tab1 AS cor0
----
-101
-59
-68

query I rowsort
SELECT + 55 - - col0 AS col2 FROM tab2 AS cor0
----
101
119
130

query I rowsort
SELECT ALL - col1 + - - 99 FROM tab1
----
52
85
94

query III rowsort
SELECT * FROM tab1 WHERE - - 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 77 - + col0 FROM tab0
----
-164
-174
-92

query I rowsort
SELECT DISTINCT 64 * - + ( + col2 ) - col1 FROM tab2
----
-1523
-2637
-3779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT + MAX( DISTINCT - col0 ) / + COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST( + col1 AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT + MAX ( DISTINCT - col0 ) / + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN + CAST ( + col1 AS INTEGER ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8489
SELECT DISTINCT 96 AS col2, 91 DIV - COUNT( * ) AS col0 FROM tab0 cor0
----
96
-30

skipif mysql # not compatible
query II rowsort label-8489
SELECT DISTINCT 96 AS col2, 91 / - COUNT ( * ) AS col0 FROM tab0 cor0
----
96
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8490
SELECT + - CAST( NULL AS SIGNED ) / + - COUNT( * ), 38 * CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1 cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8490
SELECT + - CAST ( NULL AS INTEGER ) / + - COUNT ( * ), 38 * CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - + MAX( + + 56 ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - + MAX ( + + 56 ) FROM tab0 AS cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col2 FROM tab1 WHERE + + col2 IS NOT NULL
----
73

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * + col1 + col1 + - - ( - ( - + col1 ) ) col2 FROM tab2 AS cor0
----
1734
2278
2618

query I rowsort
SELECT - col0 AS col0 FROM tab0 cor0 WHERE NOT 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT - col1 AS col2, - 58 AS col0 FROM tab1
----
-14
-58
-47
-58
-5
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0
----
9

query II rowsort
SELECT ALL - 22 AS col0, col0 * + ( + col0 ) FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT MAX( DISTINCT - + 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT MAX ( DISTINCT - + 74 ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL 53 * - - SUM( col2 ) AS col0 FROM tab0
----
8268

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL 53 * - - SUM ( col2 ) AS col0 FROM tab0
----
8268

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col2 * + 90 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE - + col2 >= NULL
----

query I rowsort
SELECT col2 + + 86 AS col2 FROM tab0
----
133
185
96

query I rowsort
SELECT ALL 55 * + 24 + ( - + col0 ) AS col1 FROM tab1
----
1229
1235
1269

onlyif mysql # aggregate syntax: 
query II rowsort label-8506
SELECT 45 + - ( + COUNT( * ) ), - 51 AS col2 FROM tab2
----
42
-51

skipif mysql # not compatible
query II rowsort label-8506
SELECT 45 + - ( + COUNT ( * ) ), - 51 AS col2 FROM tab2
----
42
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-8507
SELECT ALL + - col1 + ( - col2 ) DIV - - 97, col2 col2 FROM tab0 AS cor0
----
-2
99
-21
10
-81
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8507
SELECT ALL + - col1 + ( - col2 ) / - - 97, col2 col2 FROM tab0 AS cor0
----
-2
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT - - MIN( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8508
SELECT - - MIN ( DISTINCT + - col0 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT + - MIN( ALL + col2 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8509
SELECT + - MIN ( ALL + col2 ) col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT + - col1 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 64 + - - col1 col2 FROM tab2 AS cor0
----
115
131
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT DISTINCT MIN( DISTINCT - 65 ) * - 46 - + - 78 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8512
SELECT DISTINCT MIN ( DISTINCT - 65 ) * - 46 - + - 78 col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL - + 68 - - + 16 * - + col1 FROM tab1 AS cor0
----
-148
-292
-820

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 <= + col0
----
87
21
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN - 85 AND + col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - col1 * 64 AS col2 FROM tab0
----
-1344
-5184
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8517
SELECT - col0 DIV 19 AS col2 FROM tab0
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-8517
SELECT - col0 / 19 AS col2 FROM tab0
----
-4
-5
0

query I rowsort
SELECT col1 * - col0 FROM tab2 WHERE col2 + 75 IS NOT NULL
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 3 ) NOT BETWEEN 56 * - col2 AND ( 19 * 27 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 * 37 AS col0 FROM tab1
----
1887
3145
3367

query I rowsort
SELECT ALL 59 + col1 AS col2 FROM tab2
----
110
126
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT COUNT( * ) * 93 col1 FROM tab0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8523
SELECT COUNT ( * ) * 93 col1 FROM tab0
----
279

query I rowsort
SELECT + 15 + 84 * col2 AS col0 FROM tab2
----
1947
3375
4887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 2 col1 FROM tab2
----
128
150
92

query I rowsort
SELECT - 45 AS col2 FROM tab0 WHERE ( - 70 ) > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8527
SELECT ALL + ( + COUNT( * ) ) FROM tab2 WHERE col1 + CAST( NULL AS DECIMAL ) IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL + ( + COUNT ( * ) ) FROM tab2 WHERE col1 + CAST ( NULL AS REAL ) IN ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8528
SELECT DISTINCT + AVG ( ALL - CAST( NULL AS SIGNED ) ) + 53 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) + 53 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 * 90 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col1 ) + + col1 / 18 ) <= NULL
----

query I rowsort
SELECT col1 + - 39 AS col0 FROM tab0
----
-18
-38
42

query I rowsort
SELECT ALL + col0 + + col0 FROM tab2 WHERE NOT + col2 NOT BETWEEN ( 6 ) AND 21
----

query I rowsort
SELECT + 12 + + 30 AS col1 FROM tab0
----
42
42
42

query I rowsort
SELECT DISTINCT + col2 + + 93 FROM tab2 WHERE col0 IS NOT NULL
----
116
133
151

query I rowsort
SELECT ALL + 92 - - 9 FROM tab2
----
101
101
101

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT COUNT( * ) - MAX( ALL col2 ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-8537
SELECT COUNT ( * ) - MAX ( ALL col2 ) FROM tab2
----
-55

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col1 * col2 + - col0 ) AND NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8540
SELECT DISTINCT - 33 + + col1 DIV 57 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-8540
SELECT DISTINCT - 33 + + col1 / 57 AS col0 FROM tab1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL = ( - col0 + 79 )
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT col2 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT - SUM( ALL col1 ) FROM tab0 WHERE NOT + col0 * + col0 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-8544
SELECT - SUM ( ALL col1 ) FROM tab0 WHERE NOT + col0 * + col0 IS NULL
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-8545
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 32 ) + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( 32 ) + - col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT + 70 * + ( + col1 ) + col0 DIV col1 AS col2 FROM tab1 cor0
----
3291
367
983

skipif mysql # not compatible
query I rowsort label-8547
SELECT + 70 * + ( + col1 ) + col0 / col1 AS col2 FROM tab1 cor0
----
3291
367
983

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8549
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( NULL AS DECIMAL ) / + col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-8549
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS REAL ) / + col0 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ALL 24 DIV + col0 + + 59 FROM tab0 AS cor0
----
59
59
60

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL 24 / + col0 + + 59 FROM tab0 AS cor0
----
59
59
60

query I rowsort
SELECT ALL col2 * col1 + col1 * col1 FROM tab2 AS cor0
----
3774
8375
9009

query I rowsort
SELECT DISTINCT - 56 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-56

query I rowsort
SELECT col1 / col0 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 14 + col0 * col2 AS col0 FROM tab2 AS cor0
----
1072
2574
4364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT ALL col2 + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE + col2 * + 49 - + ( + col2 ) NOT BETWEEN ( - col2 / - 31 ) AND + col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL col2 + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE + col2 * + 49 - + ( + col2 ) NOT BETWEEN ( - col2 / - 31 ) AND + col1
----
NULL
NULL
NULL

query I rowsort
SELECT - 64 * 33 FROM tab1
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT - 98 * 58 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-5684

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab1
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 36 BETWEEN - col1 AND ( - col1 + col1 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 32 * + col0 AS col2 FROM tab2
----
1472
2048
2400

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE + col0 = ( 7 * - col2 )
----

query I rowsort
SELECT - ( + + 22 ) * col0 AS col1 FROM tab2
----
-1012
-1408
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + 98 * + 70 * ( ( - COUNT( * ) ) ) FROM tab2
----
-20580

skipif mysql # not compatible
query I rowsort label-8563
SELECT + 98 * + 70 * ( ( - COUNT ( * ) ) ) FROM tab2
----
-20580

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( + col2 ) ) > 42 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT DISTINCT ( + - COUNT( + col2 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT ( + - COUNT ( + col2 ) ) FROM tab0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT - 64 * - COUNT( * ) AS col2 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-8567
SELECT - 64 * - COUNT ( * ) AS col2 FROM tab2
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT + 41 + COUNT( * ) * - COUNT( * ) FROM tab2 cor0
----
32

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + 41 + COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT ALL - col2 - - col1 DIV col0 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - col2 - - col1 / col0 FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col0 * - col2 AND ( 12 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT - 37 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 37 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 8 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT 55 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT + - COUNT( * ) * - AVG ( ( - col2 ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT + - COUNT ( * ) * - AVG ( ( - col2 ) ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + + col1 * - col0 + 45 FROM tab0 AS cor0
----
-1170
-1782
-52

query I rowsort
SELECT col1 * 1 FROM tab2 cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 78 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT - ( + MIN( DISTINCT + col1 ) ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT - ( + MIN ( DISTINCT + col1 ) ) AS col1 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - col2 + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - col2 + col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8581
SELECT CAST( NULL AS SIGNED ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8581
SELECT CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8582
SELECT COUNT( + + col1 ) * 60 * + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT COUNT ( + + col1 ) * 60 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + 82 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8584
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col1 AND - - 74 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8584
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col1 AND - - 74 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT + 70 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col2 col0, col0 - + col2 * + col2 FROM tab0
----
-210
-13
-3807
-2194
-99
-9704

query I rowsort
SELECT + ( - 41 ) FROM tab1
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT + - MAX( - + 41 ) AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-8589
SELECT + - MAX ( - + 41 ) AS col1 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ( + 80 ) * col2 AS col0 FROM tab2 AS cor0
----
1840
3200
4640

query I rowsort
SELECT ALL - col2 * col2 * col0 + + col2 FROM tab1 AS cor0
----
-295826
-420716
-469920

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + MIN( ALL col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8592
SELECT + MIN ( ALL col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 4 + - col2 * + + 0 FROM tab1 AS cor0
----
-4

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ( + + col2 ) AS col2 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8597
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - col0 * col2 + + 32 AS col1 FROM tab1
----
-4864
-4983
-6156

query I rowsort
SELECT col2 * + 38 + + col2 AS col1 FROM tab1
----
2301
2652
3744

query I rowsort
SELECT + ( - 71 ) / - + 55 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT + COUNT( * ) DIV 93 + COUNT( * ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8601
SELECT + COUNT ( * ) / 93 + COUNT ( * ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT 92 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT 92 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 59 + col1 FROM tab1 AS cor0
----
106
64
73

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 59 + + col2 = - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8605
SELECT ALL COUNT( * ) + - + COUNT( * ) DIV 58 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL COUNT ( * ) + - + COUNT ( * ) / 58 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT col2 * 27 - - col1 AS col1 FROM tab1
----
1598
1883
2606

query I rowsort
SELECT ALL + 7 * + 4 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + 91 - col1 AS col1 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
14
24
40

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT + ( col0 ) NOT BETWEEN col1 AND ( 21 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT - col2 DIV - + col1 + - - 66 FROM tab0 AS cor0
----
165
66
66

skipif mysql # not compatible
query I rowsort label-8610
SELECT - col2 / - + col1 + - - 66 FROM tab0 AS cor0
----
165
66
66

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + col0 - 79 ) >= - col1
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 BETWEEN NULL AND + 87
----

query I rowsort
SELECT DISTINCT - + 55 FROM tab2 AS cor0 WHERE NOT + 19 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8614
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT ( NOT NULL BETWEEN 7 AND - CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-8614
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT ( NOT NULL BETWEEN 7 AND - CAST ( NULL AS INTEGER ) ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN NULL AND ( + 67 ) )
----

query I rowsort
SELECT AVG ( ALL + + col2 ) / - 0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL MIN( - 61 ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL MIN ( - 61 ) FROM tab2
----
-61

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT 59 DIV + + COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8619
SELECT 59 / + + COUNT ( * ) FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT COUNT( + 24 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT COUNT ( + 24 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT - - col1 DIV ( + - col2 ) + col1 AS col0 FROM tab1 WHERE NOT - - col2 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8621
SELECT - - col1 / ( + - col2 ) + col1 AS col0 FROM tab1 WHERE NOT - - col2 IS NULL
----
14
47
5

query I rowsort
SELECT - ( + 55 ) AS col2 FROM tab2
----
-55
-55
-55

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) >= 60 + - col0
----

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
28

query I rowsort
SELECT ALL 80 FROM tab1, tab0 AS cor0 WHERE NOT + 15 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT col1 DIV + + 65 + - 65 AS col2 FROM tab1
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-8626
SELECT col1 / + + 65 + - 65 AS col2 FROM tab1
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL + MAX( DISTINCT - - ( + 61 ) ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + MAX ( DISTINCT - - ( + 61 ) ) FROM tab0
----
61

query I rowsort
SELECT - + 8 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL + + 34 * - 37 + col2 + - - 79 + - col2 * - + 25 + + 85 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8630
SELECT 86 + col2 * col0 col2 FROM tab1 AS cor0 WHERE col2 BETWEEN col1 AND - - col2 + CAST( - col1 AS SIGNED ) * CAST( - + col0 AS SIGNED )
----
4982
5101
6274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8630
SELECT 86 + col2 * col0 col2 FROM tab1 AS cor0 WHERE col2 BETWEEN col1 AND - - col2 + CAST ( - col1 AS INTEGER ) * CAST ( - + col0 AS INTEGER )
----
4982
5101
6274

onlyif mysql # DIV for integer division: 
query I rowsort label-8631
SELECT + + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-8631
SELECT + + col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 + - 41 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + 54 AS col2 FROM tab0
----
101
153
64

query I rowsort
SELECT + 34 FROM tab0 WHERE + col0 + col1 IS NULL
----

query I rowsort
SELECT col2 * + 78 * + col1 AS col2 FROM tab1
----
104832
23010
249288

query I rowsort
SELECT ALL col1 - + + col0 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT col1 * - - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8637
SELECT col1 * - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE col1 = + col0
----

query I rowsort
SELECT DISTINCT 24 - - col2 * col1 FROM tab1
----
1368
319
3220

query I rowsort
SELECT + 48 * col1 - + col0 AS col0 FROM tab1
----
155
2165
621

query II rowsort
SELECT ALL col1 * - col0 - + 14, 12 - + - 23 AS col2 FROM tab0
----
-111
35
-1229
35
-1841
35

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT - 64 IS NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - - col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - 18 + - + 1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT + + col1 + - + 41 FROM tab1 AS cor0
----
-27
-36
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8646
SELECT + col2 + + 96 DIV - col0 + - - col2 col2 FROM tab0 AS cor0
----
19
198
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8646
SELECT + col2 + + 96 / - col0 + - - col2 col2 FROM tab0 AS cor0
----
19
198
88

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 18 + + col0 < + + col0 * 39 + + col0 + + 74 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + + - col0 * - + col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT - - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8649
SELECT - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 55 * - - 80 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT COUNT( * ) AS col1, - 53 + + + 99 + - 10 FROM tab2 AS cor0
----
3
36

skipif mysql # not compatible
query II rowsort label-8651
SELECT COUNT ( * ) AS col1, - 53 + + + 99 + - 10 FROM tab2 AS cor0
----
3
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, + col2 * + col2 + - + 41 col0 FROM tab1 AS cor0
----
59
3440
68
4583
96
9175

query I rowsort
SELECT + col1 * + 71 AS col2 FROM tab2 cor0
----
3621
4757
5467

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT - COUNT( * ) * + 15 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8654
SELECT - COUNT ( * ) * + 15 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-135

query I rowsort
SELECT DISTINCT col0 * + col2 - + - col0 * - col0 * col2 AS col2 FROM tab0 AS cor0
----
-74820
-921888
-9870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( CAST( col1 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT ( CAST ( col1 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT + CAST( 78 AS SIGNED ) * + 72 * - col2 + + + col0 + col2 AS col1 FROM tab0 AS cor0
----
-263890
-555788
-56063

skipif mysql # not compatible
query I rowsort label-8657
SELECT + CAST ( 78 AS INTEGER ) * + 72 * - col2 + + + col0 + col2 AS col1 FROM tab0 AS cor0
----
-263890
-555788
-56063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 1 * + col1 * + 84 * + + col0 col1, - col2 FROM tab0 AS cor0
----
-102060
-47
-153468
-10
-8148
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8659
SELECT + col2 * col0 AS col1, col0 * CAST( ( col1 ) AS SIGNED ) FROM tab0
----
705
1215
870
1827
9603
97

skipif mysql # not compatible
query II rowsort label-8659
SELECT + col2 * col0 AS col1, col0 * CAST ( ( col1 ) AS INTEGER ) FROM tab0
----
705
1215
870
1827
9603
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col2 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col2 FROM tab2, tab0 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8662
SELECT col1 + - CAST( + col1 AS SIGNED ) + - col1 DIV - ( - + col2 ) + 54 * - col1 AS col0 FROM tab2
----
-2756
-3619
-4159

skipif mysql # not compatible
query I rowsort label-8662
SELECT col1 + - CAST ( + col1 AS INTEGER ) + - col1 / - ( - + col2 ) + 54 * - col1 AS col0 FROM tab2
----
-2756
-3619
-4159

query I rowsort
SELECT - 40 * col2 * - col2 AS col0 FROM tab1 cor0 WHERE NOT - col0 <> ( NULL )
----

query I rowsort
SELECT - 69 AS col2 FROM tab1 cor0 WHERE NOT + col1 * + - col2 * - - col0 < - col1
----

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 43 IN ( col0 )
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT + MAX( DISTINCT - 6 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8667
SELECT + MAX ( DISTINCT - 6 ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT col1 * + + 96 FROM tab1
----
1344
4512
480

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8669
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT col1 / + + col1 + - - col1 + + 80 * 3 + - - 91 / - + col1 * + 0 / - col0 + - - 45 > ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8669
SELECT DISTINCT + col1 col2 FROM tab2 WHERE NOT col1 / + + col1 + - - col1 + + 80 * 3 + - - 91 / - + col1 * + 0 / - col0 + - - 45 > ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8670
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( col0 AS SIGNED ) IN ( - ( col2 ) - - + ( col2 ) + - 77 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8670
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( col0 AS INTEGER ) IN ( - ( col2 ) - - + ( col2 ) + - 77 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8671
SELECT + SUM( ALL + col0 ) * - 13 AS col0, - COUNT( * ) AS col1 FROM tab2
----
-2405
-3

skipif mysql # not compatible
query II rowsort label-8671
SELECT + SUM ( ALL + col0 ) * - 13 AS col0, - COUNT ( * ) AS col1 FROM tab2
----
-2405
-3

query I rowsort
SELECT DISTINCT col1 * - 20 FROM tab2 AS cor0
----
-1020
-1340
-1540

query I rowsort
SELECT 4 * col2 FROM tab0 AS cor0 WHERE ( NULL ) <= 12
----

query I rowsort
SELECT + ( 93 ) + + col0 FROM tab2 AS cor0
----
139
157
168

onlyif mysql # DIV for integer division: 
query I rowsort label-8675
SELECT 90 + - - col2 - - - 50 DIV + ( + + col1 ) AS col2 FROM tab0 AS cor0 WHERE ( - 64 ) IS NOT NULL
----
137
139
98

skipif mysql # not compatible
query I rowsort label-8675
SELECT 90 + - - col2 - - - 50 / + ( + + col1 ) AS col2 FROM tab0 AS cor0 WHERE ( - 64 ) IS NOT NULL
----
137
139
98

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 cor0 WHERE ( NOT NULL > + col0 * - col1 + + 0 + - 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT CAST( NULL AS SIGNED ) + col1 * - ( - + col2 ) * + 99 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8677
SELECT CAST ( NULL AS INTEGER ) + col1 * - ( - + col2 ) * + 99 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8678
SELECT + col1 * + col2 + + - ( + col2 ) + + + 2 + - col0 AS col2, - 79 DIV + + 98 + - col0 * + col1 * - 97 col1 FROM tab1 AS cor0
----
1199
69258
153
41225
3039
414869

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8678
SELECT + col1 * + col2 + + - ( + col2 ) + + + 2 + - col0 AS col2, - 79 / + + 98 + - col0 * + col1 * - 97 col1 FROM tab1 AS cor0
----
1199
69258
153
41225
3039
414869

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT COUNT( * ) DIV 77 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT COUNT ( * ) / 77 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( - 61 - - col0 < - + col1 )
----
15
87
97

query I rowsort
SELECT + - 36 + - col1 AS col2 FROM tab0 AS cor0
----
-117
-37
-57

query I rowsort
SELECT DISTINCT - - 13 + + col1 AS col2 FROM tab1 AS cor0
----
18
27
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL - 77 + 95 * - 48 * + COUNT( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL - 77 + 95 * - 48 * + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
-77

query I rowsort
SELECT ALL + 47 + col0 AS col1 FROM tab1 cor0
----
132
138
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 - - col1 * 98 col0 FROM tab0
----
120
2080
7960

query I rowsort
SELECT DISTINCT + 24 - - 15 * col1 FROM tab0
----
1239
339
39

query I rowsort
SELECT ALL 6 - + col0 AS col0 FROM tab2
----
-40
-58
-69

query III rowsort
SELECT * FROM tab0 WHERE 42 > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - + 10 AS col2 FROM tab1
----
49
58
86

query I rowsort
SELECT col2 * + ( + col2 ) * col1 FROM tab0
----
178929
2100
9801

query II rowsort
SELECT ( - + col0 ) AS col1, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col2 * - 26 FROM tab0 AS cor0
----
-1222
-2574
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-8693
SELECT 49 DIV - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT 49 / - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 10 + - + col1 AS col2 FROM tab0 AS cor0
----
-11
-31
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT ALL MIN( ALL - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL MIN ( ALL - col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL ( + col1 ) * - col2 * - - 8 AS col2 FROM tab2 cor0
----
-24640
-31088
-9384

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR - - col0 + - + col1 >= NULL
----

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 * - col0 col1 FROM tab0 cor0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT + + COUNT( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + + COUNT ( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL MAX( 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL MAX ( 70 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - MAX( ALL + + col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-8703
SELECT - MAX ( ALL + + col1 ) FROM tab2
----
-77

query II rowsort
SELECT 55 AS col0, - col2 AS col0 FROM tab0
----
55
-10
55
-47
55
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 <> col1 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT 41 * - + MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
-2091

skipif mysql # not compatible
query I rowsort label-8706
SELECT 41 * - + MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
-2091

query II rowsort
SELECT 67 AS col0, + 53 + ( col2 ) * + - col1 FROM tab0
----
67
-157
67
-3754
67
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + - + 63 <= + 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - 16 ) * 27 FROM tab0
----
432
432
432

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8710
SELECT ALL * FROM tab2 WHERE ( + CAST( col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8710
SELECT ALL * FROM tab2 WHERE ( + CAST ( col0 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT DISTINCT + 33 + 0 AS col2 FROM tab0 cor0
----
33

query I rowsort
SELECT ALL col0 + - col2 * col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT + col0 + - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE 9 * + - col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + 50 AS col0 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT ALL - COUNT( * ) + - + 10 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL - COUNT ( * ) + - + 10 FROM tab2 AS cor0
----
-13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT + - MAX( ALL + 28 ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8719
SELECT + - MAX ( ALL + 28 ) FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT - CAST( NULL AS SIGNED ) - - col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT - CAST ( NULL AS INTEGER ) - - col0 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - 72 + 94 AS col1 FROM tab1
----
107
113
73

query I rowsort
SELECT col2 - + col1 * col0 + col1 - + 92 AS col1 FROM tab0
----
-1179
-1888
-89

query I rowsort
SELECT DISTINCT col1 - 25 + - 31 * + + 13 FROM tab1
----
-381
-414
-423

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8724
SELECT * FROM tab2 WHERE NULL IN ( CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) + + 37 * 34 )
----

skipif mysql # not compatible
query III rowsort label-8724
SELECT * FROM tab2 WHERE NULL IN ( CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) + + 37 * 34 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) IN ( - + col2 * + 98 * - + col2 + - 90 ) )
----

query I rowsort
SELECT + col1 * + 52 AS col0 FROM tab0 WHERE NULL < + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( ( col0 ) <= 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT + COUNT( * ) FROM tab0 WHERE + - ( - col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8728
SELECT + COUNT ( * ) FROM tab0 WHERE + - ( - col0 ) IS NOT NULL
----
3

query I rowsort
SELECT 21 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 * + 54 AS col2 FROM tab1 AS cor0
----
2754
4590
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT DISTINCT - MIN( ALL + 18 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND col1
----
-18

skipif mysql # not compatible
query I rowsort label-8731
SELECT DISTINCT - MIN ( ALL + 18 ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 AND col1
----
-18

query II rowsort
SELECT DISTINCT - col1 * ( - + col0 ), - col0 AS col2 FROM tab1 AS cor0
----
425
-85
4277
-91
714
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + - col2 - - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT + 85 AS col1, - MIN( + + col2 ) AS col0 FROM tab0 cor0
----
85
-10

skipif mysql # not compatible
query II rowsort label-8734
SELECT + 85 AS col1, - MIN ( + + col2 ) AS col0 FROM tab0 cor0
----
85
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT ( + 24 ) * - COUNT( - col1 ) * - - MIN( col0 ) - - 91 + + + 30 FROM tab1
----
-3551

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT ( + 24 ) * - COUNT ( - col1 ) * - - MIN ( col0 ) - - 91 + + + 30 FROM tab1
----
-3551

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - - col2 + - col1 FROM tab2 cor0 WHERE NOT 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT DISTINCT AVG ( + 51 ) - + - COUNT( - + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT AVG ( + 51 ) - + - COUNT ( - + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT + 86 * + COUNT( * ) + - 98 FROM tab2 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-8739
SELECT + 86 * + COUNT ( * ) + - 98 FROM tab2 AS cor0
----
160

query I rowsort
SELECT DISTINCT + col0 + col2 + + 21 FROM tab2 AS cor0
----
125
154
90

query II rowsort
SELECT - 75 * + 43 AS col2, + col0 - col2 AS col2 FROM tab0 WHERE NOT - 86 = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8742
SELECT ALL + CAST( - 85 AS SIGNED ) FROM tab0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + CAST ( - 85 AS INTEGER ) FROM tab0
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-8743
SELECT - col1 DIV + col1 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8743
SELECT - col1 / + col1 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT DISTINCT + + COUNT( * ) DIV - - COUNT( * ) + ( 17 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT + + COUNT ( * ) / - - COUNT ( * ) + ( 17 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT - + col0 AS col2 FROM tab0 AS cor0 WHERE col1 = + col1
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 45 * + 18 BETWEEN - col1 * - col0 AND col0 + + - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - - MAX( DISTINCT - ( 4 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-8747
SELECT - - MAX ( DISTINCT - ( 4 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - SUM( DISTINCT - - 15 ) FROM tab2 WHERE NULL NOT IN ( col0, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT - SUM ( DISTINCT - - 15 ) FROM tab2 WHERE NULL NOT IN ( col0, col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > - col1 * col2 * + col1 + - col1 - - 88 + - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT COUNT( * ) + + + SUM( ALL + ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-8750
SELECT COUNT ( * ) + + + SUM ( ALL + ( + + col1 ) ) AS col0 FROM tab0 AS cor0
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT ALL + + 92 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + + 92 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * - ( 86 ) + + - col2 * col1 col1 FROM tab2 AS cor0
----
4112
4918
6825

query I rowsort
SELECT + 31 + col0 AS col1 FROM tab1 AS cor0
----
116
122
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT CAST( 49 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT CAST ( 49 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT + + 48 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + + 48 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8756
SELECT - - 71 / - col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT - - 71 / - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 3 AS col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT col0 + + ( - col2 ) FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT 86 * - col2 * - 76 + + ( - 54 ) FROM tab0 AS cor0
----
307138
647010
65306

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL > - col0 + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL SUM( ALL + - 79 ) + + - 95 AS col1 FROM tab1 AS cor0
----
-332

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL SUM ( ALL + - 79 ) + + - 95 AS col1 FROM tab1 AS cor0
----
-332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 69 col0 FROM tab2
----
-120
-136
-146

query III rowsort
SELECT * FROM tab1 WHERE col2 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - 61 * + COUNT( * ) * - + ( + 21 ) FROM tab2
----
3843

skipif mysql # not compatible
query I rowsort label-8764
SELECT - 61 * + COUNT ( * ) * - + ( + 21 ) FROM tab2
----
3843

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 58 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT ALL CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT ALL col2, - 32 FROM tab0
----
10
-32
47
-32
99
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-8768
SELECT ALL COUNT( * ), 17 * 35 AS col2 FROM tab0 AS cor0
----
3
595

skipif mysql # not compatible
query II rowsort label-8768
SELECT ALL COUNT ( * ), 17 * 35 AS col2 FROM tab0 AS cor0
----
3
595

query II rowsort
SELECT ALL - 11 AS col1, col1 FROM tab2 AS cor0
----
-11
51
-11
67
-11
77

query I rowsort
SELECT ALL + 56 FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + col0 )
----
56
56
56

query I rowsort
SELECT DISTINCT + col1 + + 44 AS col0 FROM tab1 AS cor0
----
49
58
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT ( ( NULL ) <= NULL ) ) )
----

query I rowsort
SELECT - col1 * - - col1 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 = 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT ALL 66 DIV - - col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL 66 / - - col0 FROM tab0
----
0
0
4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + col0 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col1 ) * ( - 41 ) * + - 67 FROM tab1 WHERE NOT - 18 IS NULL
----
129109
13735
38458

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8778
SELECT - - col0 - + 34 + + 40 * - - col1 * col1 * + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE - col1 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8778
SELECT - - col0 - + 34 + + 40 * - - col1 * col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE - col1 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 40 NOT BETWEEN NULL AND 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + + 37 col0 FROM tab1 AS cor0
----
-22
-31
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8782
SELECT 94 * + - COUNT( DISTINCT - - col2 ) AS col1, - COUNT( * ) FROM tab1
----
-282
-3

skipif mysql # not compatible
query II rowsort label-8782
SELECT 94 * + - COUNT ( DISTINCT - - col2 ) AS col1, - COUNT ( * ) FROM tab1
----
-282
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - col2 + - col0 / - col1
----

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab0 cor0
----
40

query I rowsort
SELECT ALL - + 76 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1155
-6699
-7469

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 35 IN ( - col2 )
----

query I rowsort
SELECT + 19 * ( - col2 ) AS col1 FROM tab2
----
-1102
-437
-760

query III rowsort
SELECT * FROM tab1 WHERE NOT 49 + ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8789
SELECT DISTINCT COUNT( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8789
SELECT DISTINCT COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8790
SELECT + 11, + COUNT( * ) AS col1 FROM tab0
----
11
3

skipif mysql # not compatible
query II rowsort label-8790
SELECT + 11, + COUNT ( * ) AS col1 FROM tab0
----
11
3

query II rowsort
SELECT DISTINCT + col2, + 5 - col1 FROM tab0
----
10
-16
47
-76
99
4

query II rowsort
SELECT DISTINCT col2, col1 - col2 FROM tab2
----
23
28
40
37
58
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8793
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) = + 18 * + ( col2 ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8793
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) = + 18 * + ( col2 ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8794
SELECT ALL COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8794
SELECT ALL COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 57 col0 FROM tab0 AS cor0
----
1
57
21
57
81
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT ALL + SUM( + 0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL + SUM ( + 0 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT DISTINCT 7 * - ( - + CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
329
693
70

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT 7 * - ( - + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT DISTINCT + MAX( DISTINCT - - 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
78

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT + MAX ( DISTINCT - - 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8799
SELECT ALL + COUNT( * ) + + CAST( NULL AS DECIMAL ) * 54 + + 96 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS REAL ) * 54 + + 96 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ( - 88 ) FROM tab1 cor0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 + - + col2 AND NULL
----

query II rowsort
SELECT DISTINCT + col2 + col1 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
100
-1
128
-81
31
-21

query I rowsort
SELECT ALL + + 37 + - - col2 FROM tab0 AS cor0
----
136
47
84

query I rowsort
SELECT ALL + 1 + - 35 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8805
SELECT + 60 + + CAST( + col2 AS SIGNED ) * + 32 * col2 - - - col1 DIV col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
107707
58
16986
23
51259
40

skipif mysql # not compatible
query II rowsort label-8805
SELECT + 60 + + CAST ( + col2 AS INTEGER ) * + 32 * col2 - - - col1 / col2 AS col1, col2 AS col1 FROM tab2 AS cor0
----
107707
58
16986
23
51259
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8806
SELECT CAST( - MIN( 30 ) AS SIGNED ) * - + COUNT( * ) * + 85 + - 38 FROM tab2
----
7612

skipif mysql # not compatible
query I rowsort label-8806
SELECT CAST ( - MIN ( 30 ) AS INTEGER ) * - + COUNT ( * ) * + 85 + - 38 FROM tab2
----
7612

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT ALL + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8808
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL + col2 * + + 26 AS col2 FROM tab1
----
1534
1768
2496

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8810
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) BETWEEN + 41 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8810
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) BETWEEN + 41 AND NULL
----

query I rowsort
SELECT + ( + 1 ) AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * - - 60 FROM tab2 AS cor0
----
1380
2400
3480

query I rowsort
SELECT ALL col0 + + 13 FROM tab2 AS cor0
----
59
77
88

query I rowsort
SELECT ALL 16 / + - col1 * col1 AS col0 FROM tab0 cor0 WHERE ( NULL = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8815
SELECT DISTINCT col2, - col2 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
23
-23
40
-40
58
-58

skipif mysql # not compatible
query II rowsort label-8815
SELECT DISTINCT col2, - col2 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
23
-23
40
-40
58
-58

query I rowsort
SELECT ALL col1 * + ( - col2 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-8817
SELECT + - col1 + + col1 + - col0 + + ( 29 ) DIV - 73 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8817
SELECT + - col1 + + col1 + - col0 + + ( 29 ) / - 73 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT SUM( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT SUM ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT ALL - - col0 DIV - - 97 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - - col0 / - - 97 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab0 cor0
----
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( + 58 IS NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8822
SELECT + COUNT( + CAST( - col1 AS SIGNED ) ), MAX( + col2 ) AS col1 FROM tab2
----
3
58

skipif mysql # not compatible
query II rowsort label-8822
SELECT + COUNT ( + CAST ( - col1 AS INTEGER ) ), MAX ( + col2 ) AS col1 FROM tab2
----
3
58

query I rowsort
SELECT 60 * - 92 AS col0 FROM tab2
----
-5520
-5520
-5520

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT - SUM( col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - SUM ( col0 ) FROM tab0 AS cor0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + + 26 ) AS col1 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT ALL - MAX( + + 59 ) AS col1 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - MAX ( + + 59 ) AS col1 FROM tab2 AS cor0
----
-59

query II rowsort
SELECT - col2, 34 AS col1 FROM tab1
----
-59
34
-68
34
-96
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - COUNT( * ) + + - 96 AS col1 FROM tab1 WHERE NOT + col0 >= col0 * col1 * - - col1
----
-99

skipif mysql # not compatible
query I rowsort label-8829
SELECT - COUNT ( * ) + + - 96 AS col1 FROM tab1 WHERE NOT + col0 >= col0 * col1 * - - col1
----
-99

query I rowsort
SELECT ALL - 16 * + ( + + col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
-1355
-1409
-802

query I rowsort
SELECT col0 * col1 AS col2 FROM tab1 AS cor0 WHERE ( + ( - + 62 ) / + - 66 / - + ( - col0 ) / + + col0 + - col0 + - + col1 * + + col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 93 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT DISTINCT - 29 + + MAX( + - col2 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - 29 + + MAX ( + - col2 ) FROM tab0 AS cor0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT ALL + col2 DIV 75 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL + col2 / 75 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT - COUNT( * ), 90 AS col2 FROM tab1 AS cor0
----
-3
90

skipif mysql # not compatible
query II rowsort label-8835
SELECT - COUNT ( * ), 90 AS col2 FROM tab1 AS cor0
----
-3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT + MIN( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8836
SELECT + MIN ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - col0 * 88 AS col1 FROM tab0
----
-1320
-7656
-8536

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8838
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 87 ) FROM tab0
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8840
SELECT ALL - 34 * + col1 AS col2 FROM tab2 WHERE NOT NULL <> - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL - 34 * + col1 AS col2 FROM tab2 WHERE NOT NULL <> - CAST ( col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT + col0 * col0 * - CAST( col2 AS SIGNED ) col2 FROM tab0
----
-10575
-75690
-931491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8841
SELECT + col0 * col0 * - CAST ( col2 AS INTEGER ) col2 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT + CAST( NULL AS SIGNED ) / + COUNT( * ) - 52 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) - 52 AS col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 58 + - + col0 + ( - ( 30 ) ) col0 FROM tab0
----
-154
-184
-22

query I rowsort
SELECT ALL - col1 * col1 * 49 FROM tab2 AS cor0
----
-127449
-219961
-290521

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + + COUNT( * ) + + 98 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + + COUNT ( * ) + + 98 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
297

query I rowsort
SELECT + 24 * - col0 AS col0 FROM tab1
----
-1224
-2040
-2184

query I rowsort
SELECT + col2 * - 22 AS col0 FROM tab1
----
-1298
-1496
-2112

query I rowsort
SELECT - - 94 * + + col0 FROM tab1 AS cor0
----
4794
7990
8554

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT DISTINCT ( COUNT( ALL col2 ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8849
SELECT DISTINCT ( COUNT ( ALL col2 ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT + + COUNT( ALL col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8850
SELECT + + COUNT ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + 66 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8852
SELECT - col1 DIV + col2 + + + col2 + + col2 + - col1 FROM tab1 AS cor0
----
113
178
89

skipif mysql # not compatible
query I rowsort label-8852
SELECT - col1 / + col2 + + + col2 + + col2 + - col1 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8853
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 79 FROM tab2 AS cor0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8853
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 79 FROM tab2 AS cor0
----
NULL
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8854
SELECT + + col1 DIV - col2 FROM tab0 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT + + col1 / - col2 FROM tab0 cor0
----
-1
-2
0

query II rowsort
SELECT + - col1 AS col2, 98 FROM tab0 AS cor0
----
-1
98
-21
98
-81
98

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 35 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ALL SUM( DISTINCT 68 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL SUM ( DISTINCT 68 ) FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT DISTINCT - ( MAX( col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8858
SELECT DISTINCT - ( MAX ( col1 ) ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT + CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8859
SELECT + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL + + col0 AS col1 FROM tab0 WHERE NOT + + col0 * - + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + + col0 AS col1 FROM tab0 WHERE NOT + + col0 * - + CAST ( NULL AS INTEGER ) < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 NOT BETWEEN NULL AND + col2 * + - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT ALL + COUNT( * ), ( - + 78 ) AS col2 FROM tab1 WHERE + col0 > - col1 * + col1 * + - col2
----
0
-78

skipif mysql # not compatible
query II rowsort label-8862
SELECT ALL + COUNT ( * ), ( - + 78 ) AS col2 FROM tab1 WHERE + col0 > - col1 * + col1 * + - col2
----
0
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 6 * - + ( + col1 ) AND - 91
----

query II rowsort
SELECT - 37 AS col1, 23 * - - col1 + - col0 * + col0 FROM tab2 WHERE NOT ( - col1 * - - col2 ) = NULL
----

query II rowsort
SELECT ( col2 ) AS col0, col2 AS col2 FROM tab1 WHERE NULL >= - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8866
SELECT + + CAST( + + MIN( ( - col1 ) ) AS SIGNED ) * - 21 * - + 62 * - + CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
300762

skipif mysql # not compatible
query I rowsort label-8866
SELECT + + CAST ( + + MIN ( ( - col1 ) ) AS INTEGER ) * - 21 * - + 62 * - + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
300762

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT 31 + + - 18 AS col2 FROM tab2 AS cor0
----
13

query I rowsort
SELECT ALL - 1 + - 12 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT - CAST( NULL AS SIGNED ) + + 65 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-8870
SELECT - CAST ( NULL AS INTEGER ) + + 65 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT - 12 + ( - + MIN( ALL - 52 ) ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 12 + ( - + MIN ( ALL - 52 ) ) FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab0 AS cor0 WHERE + 50 IS NULL
----

query I rowsort
SELECT 53 + col1 * + - col2 AS col0 FROM tab2
----
-1120
-3027
-3833

query III rowsort
SELECT * FROM tab1 WHERE - - 16 + ( - 59 ) <= NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE + 37 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - ( + col1 ) + 2 BETWEEN 36 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8877
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8877
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL + CAST( NULL AS SIGNED ) * ( + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 - + col1 * col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT - + MAX( DISTINCT 22 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-22

skipif mysql # not compatible
query I rowsort label-8880
SELECT - + MAX ( DISTINCT 22 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-22

query II rowsort
SELECT DISTINCT 43 * - col1, - col2 * - - col0 AS col0 FROM tab1
----
-2021
-6188
-215
-5015
-602
-4896

query I rowsort
SELECT + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8883
SELECT - + MIN( col2 ) AS col1, - COUNT( * ) DIV - MAX( - + col0 ) FROM tab1 AS cor0
----
-59
0

skipif mysql # not compatible
query II rowsort label-8883
SELECT - + MIN ( col2 ) AS col1, - COUNT ( * ) / - MAX ( - + col0 ) FROM tab1 AS cor0
----
-59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT - MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8884
SELECT - MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL NOT BETWEEN ( NULL ) AND - col2 / col1 * + + ( + - 39 ) ) )
----

query I rowsort
SELECT DISTINCT - + 80 FROM tab1 cor0
----
-80

query I rowsort
SELECT + col1 + + + col0 FROM tab2 AS cor0 WHERE NOT ( NOT - - col0 * 60 IS NOT NULL )
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL - - col2 * + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - - col2 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT 90 * + MIN( - 77 ) FROM tab0
----
-6930

skipif mysql # not compatible
query I rowsort label-8890
SELECT 90 * + MIN ( - 77 ) FROM tab0
----
-6930

query II rowsort
SELECT col2 AS col2, + 18 AS col0 FROM tab2
----
23
18
40
18
58
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT 31 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8892
SELECT 31 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 98, ( + 50 ) AS col0 FROM tab0
----
98
50
98
50
98
50

query II rowsort
SELECT - col2, - col0 AS col2 FROM tab2
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT DISTINCT + AVG ( + col1 ) FROM tab0 cor0 WHERE ( NULL ) > NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * 89 + - + col0 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT ALL AVG ( DISTINCT 84 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL AVG ( DISTINCT 84 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - + SUM( DISTINCT 17 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8899
SELECT - + SUM ( DISTINCT 17 ) FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8900
SELECT ALL + ( 30 ) * + 40 + + COUNT( * ) AS col2, COUNT( * ) FROM tab2 cor0
----
1203
3

skipif mysql # not compatible
query II rowsort label-8900
SELECT ALL + ( 30 ) * + 40 + + COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 cor0
----
1203
3

query II rowsort
SELECT DISTINCT col2 * + 5 * + 77 + - col0, col1 FROM tab2 AS cor0
----
15336
77
22255
67
8809
51

query I rowsort
SELECT + 12 - - 75 FROM tab1
----
87
87
87

query I rowsort
SELECT + col0 + - col2 * - + col0 AS col2 FROM tab2
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT DISTINCT - CAST( - col0 AS SIGNED ) - + col2 * + - col2 - - + col1 FROM tab1
----
3571
4762
9281

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) - + col2 * + - col2 - - + col1 FROM tab1
----
3571
4762
9281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8905
SELECT DISTINCT CAST( ( - + 65 ) AS SIGNED ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT CAST ( ( - + 65 ) AS INTEGER ) FROM tab0
----
-65

query I rowsort
SELECT 61 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 48 * - 48 + + col1 * + col1 AS col1 FROM tab0
----
2305
2745
8865

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT - COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-8908
SELECT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query II rowsort
SELECT + 7, + col0 FROM tab1
----
7
51
7
85
7
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8910
SELECT DISTINCT + - col0 * - 89 * - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + - col0 * - 89 * - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col0, - col1 - ( - 69 ) FROM tab1 AS cor0
----
-51
55
-85
64
-91
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8912
SELECT + COUNT( * ) DIV - ( ( ( + 50 ) ) ) AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT + COUNT ( * ) / - ( ( ( + 50 ) ) ) AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - + 51 * - 6 FROM tab2 AS cor0
----
306
306
306

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT DISTINCT - + col1 DIV - - 70 col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT DISTINCT - + col1 / - - 70 col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8915
SELECT DISTINCT - COUNT( * ) DIV + 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - COUNT ( * ) / + 69 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 8 AS col0 FROM tab0 WHERE NOT - + col2 IS NULL
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL - 51 + - ( - + 11 ) * - - COUNT( * ) AS col1 FROM tab2 WHERE + col2 BETWEEN + col2 * col2 AND NULL
----
-51

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - 51 + - ( - + 11 ) * - - COUNT ( * ) AS col1 FROM tab2 WHERE + col2 BETWEEN + col2 * col2 AND NULL
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT + COUNT( * ) * - 68 + - 72 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-684

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + COUNT ( * ) * - 68 + - 72 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-684

onlyif mysql # DIV for integer division: 
query I rowsort label-8920
SELECT DISTINCT 1 DIV + col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT 1 / + col0 AS col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT - col2 + 1 FROM tab2 AS cor0
----
-22
-39
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-8923
SELECT - col0 + + - col2 DIV - col2 col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8923
SELECT - col0 + + - col2 / - col2 col0 FROM tab0 AS cor0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 + 93 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT + 42 + + - 20 - - ( + - COUNT( * ) ) AS col0 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-8925
SELECT + 42 + + - 20 - - ( + - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
19

query II rowsort
SELECT ALL - 86, + col1 AS col1 FROM tab1 AS cor0
----
-86
14
-86
47
-86
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE + ( + + col0 ) < col0 * + + 79
----
3

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE + ( + + col0 ) < col0 * + + 79
----
3

query I rowsort
SELECT ALL - 62 * - col1 * - col2 + - col2 AS col1 FROM tab0 cor0
----
-13030
-236081
-6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + - col1 * col1 col0 FROM tab2 AS cor0
----
-2657
-4545
-5985

query II rowsort
SELECT + col0, col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab1 WHERE + 87 + + ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT - COUNT( * ) * + - 92 AS col0 FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-8932
SELECT - COUNT ( * ) * + - 92 AS col0 FROM tab2
----
276

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 43 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > NULL
----

query II rowsort
SELECT col2, 56 FROM tab0 cor0
----
10
56
47
56
99
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL MAX( DISTINCT 81 ) FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL MAX ( DISTINCT 81 ) FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT COUNT( ALL - 56 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8937
SELECT COUNT ( ALL - 56 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 63 * ( col2 ) FROM tab0 cor0
----
2961
6237
630

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - ( + 89 ) * + - col0 + + col0 AND + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8941
SELECT ALL - 94 * + + COUNT( * ) FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - 94 * + + COUNT ( * ) FROM tab0 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL SUM( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL SUM ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL + + 14 * + col1 * - - 83 AS col1 FROM tab1 cor0
----
16268
54614
5810

query II rowsort
SELECT DISTINCT + 1, 2 AS col2 FROM tab0
----
1
2

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 57 / col0 + + 82 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8946
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV - - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8946
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / - - COUNT ( * ) FROM tab0
----
-1

query II rowsort
SELECT - col0, + col1 AS col0 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # DIV for integer division: 
query II rowsort label-8948
SELECT + 68 DIV 83, col0 * + + col0 AS col2 FROM tab2
----
0
2116
0
4096
0
5625

skipif mysql # not compatible
query II rowsort label-8948
SELECT + 68 / 83, col0 * + + col0 AS col2 FROM tab2
----
0
2116
0
4096
0
5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8949
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL + 0 * - 19 + - COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + 0 * - 19 + - COUNT ( * ) AS col0 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 col0 FROM tab1 AS cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT - col2 * col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - + COUNT( * ) * COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8953
SELECT - + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-81

query I rowsort
SELECT DISTINCT + 83 * 55 - - 46 FROM tab1
----
4611

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT 15 DIV + + col1 AS col1 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-8955
SELECT 15 / + + col1 AS col1 FROM tab0
----
0
0
15

query I rowsort
SELECT DISTINCT 9 * + col0 + col1 - + - ( - 27 ) AS col2 FROM tab2 AS cor0
----
438
626
715

query I rowsort
SELECT + 49 AS col2 FROM tab2 cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - ( + - col0 ) * + col0 * + - 59 * - ( + 64 ) + + col0 + + col2 * + col1 FROM tab0 AS cor0
----
28580841
35528580
853422

query I rowsort
SELECT + col2 * 43 * - col0 - - + col2 FROM tab2
----
-110040
-186992
-45471

query I rowsort
SELECT ALL - 87 + - col1 + col0 * + col0 FROM tab2
----
1978
3932
5471

query I rowsort
SELECT DISTINCT col1 - - col1 - + 70 - + ( - col1 ) + + col1 * + 41 + col0 * - col2 * - + ( - 73 ) AS col0 FROM tab1
----
-356862
-365945
-449726

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT + COUNT( - 85 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8962
SELECT + COUNT ( - 85 ) FROM tab1
----
3

query I rowsort
SELECT - col1 * - col1 * 54 * - 66 * + col0 AS col0 FROM tab0
----
-136739988
-345708
-350751060

query I rowsort
SELECT 63 * - - 29 FROM tab1 AS cor0
----
1827
1827
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + COUNT( * ) * - + 64 AS col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8965
SELECT + COUNT ( * ) * - + 64 AS col0 FROM tab1 AS cor0
----
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-8966
SELECT + col0 DIV 46 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8966
SELECT + col0 / 46 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 FROM tab2 AS cor0
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 WHERE col1 + col0 > NULL
----

query I rowsort
SELECT - ( 97 ) FROM tab2
----
-97
-97
-97

query I rowsort
SELECT ( 77 ) AS col2 FROM tab2 WHERE NULL >= col0 + col1 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT - COUNT( * ) FROM tab0 WHERE col1 + col0 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT - COUNT ( * ) FROM tab0 WHERE col1 + col0 < + col1
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN 29 AND col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + col2 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + 69 NOT IN ( - 64 )
----

query III rowsort
SELECT * FROM tab1 WHERE 57 >= - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = ( col1 * - col1 )
----

query I rowsort
SELECT + col2 + - col0 * col1 AS col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE NOT col0 * + col0 + + col0 < col1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * 65 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE ( + col1 * 20 ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8982
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8982
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8983
SELECT - CAST( 73 AS SIGNED ) DIV + col0 FROM tab2 WHERE + 35 DIV + col1 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8983
SELECT - CAST ( 73 AS INTEGER ) / + col0 FROM tab2 WHERE + 35 / + col1 IS NOT NULL
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT ALL MIN( DISTINCT col2 ) * 81 AS col1 FROM tab0
----
810

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL MIN ( DISTINCT col2 ) * 81 AS col1 FROM tab0
----
810

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 + - col0 ) NOT IN ( 56 / - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT + COUNT( * ) + + 98 * 98 col0 FROM tab1
----
9607

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8988
SELECT + COUNT ( * ) + + 98 * 98 col0 FROM tab1
----
9607

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8990
SELECT ALL + MIN( DISTINCT 95 ) + + COUNT( * ) DIV ( ( + COUNT( * ) ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL + MIN ( DISTINCT 95 ) + + COUNT ( * ) / ( ( + COUNT ( * ) ) ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT 51 - col1 AS col0 FROM tab0
----
-30
30
50

query I rowsort
SELECT col2 * 8 AS col0 FROM tab0
----
376
792
80

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8993
SELECT col0 DIV 78 FROM tab0 WHERE ( + col0 ) NOT BETWEEN CAST( - col0 AS DECIMAL ) AND + col1
----
1
1

skipif mysql # not compatible
query I rowsort label-8993
SELECT col0 / 78 FROM tab0 WHERE ( + col0 ) NOT BETWEEN CAST ( - col0 AS REAL ) AND + col1
----
1
1

query I rowsort
SELECT ALL col1 + - 21 AS col1 FROM tab0 AS cor0
----
-20
0
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT - AVG ( col2 ) AS col0 FROM tab1 AS cor0 WHERE ( - col2 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 16 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 16 IS NOT NULL
----
3

query I rowsort
SELECT ALL - col0 * + col2 + 47 AS col1 FROM tab1 AS cor0
----
-4849
-4968
-6141

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT ALL ( col1 ) DIV col0 - col2 FROM tab2
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL ( col1 ) / col0 - col2 FROM tab2
----
-22
-39
-58

query I rowsort
SELECT DISTINCT + col1 * - col1 - col2 AS col2 FROM tab1
----
-2277
-292
-84

query I rowsort
SELECT DISTINCT + 72 - col2 AS col2 FROM tab2 AS cor0
----
14
32
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - - 22 + SUM( - col2 + - col0 ) AS col1 FROM tab1 AS cor0
----
-428

skipif mysql # not compatible
query I rowsort label-9002
SELECT - - 22 + SUM ( - col2 + - col0 ) AS col1 FROM tab1 AS cor0
----
-428

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL - COUNT( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL - COUNT ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 77 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 7 + + 84 AS col1 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL + + COUNT( col0 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL + + COUNT ( col0 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT 10 + COUNT( * ) * - MIN( 66 + - col2 * + ( + ( col1 ) ) ) FROM tab1 AS cor0
----
9400

skipif mysql # not compatible
query I rowsort label-9008
SELECT 10 + COUNT ( * ) * - MIN ( 66 + - col2 * + ( + ( col1 ) ) ) FROM tab1 AS cor0
----
9400

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE 4 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * 20 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) <> col2 - - col0 * + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col1 * + col0 NOT BETWEEN NULL AND + 20 * col2
----

query I rowsort
SELECT - col0 * - - col2 * - 85 FROM tab1
----
416160
426275
525980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9014
SELECT ALL - COUNT( * ) FROM tab1 WHERE - 73 * 14 < ( - col1 ) - CAST( NULL AS SIGNED ) * col2
----
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - 73 * 14 < ( - col1 ) - CAST ( NULL AS INTEGER ) * col2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + col1 + col1 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9016
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( col2 AS SIGNED ) IS NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9016
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( col2 AS INTEGER ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - ( - 40 ) FROM tab2 AS cor0
----
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + ( 80 ) ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT ALL + SUM( + col1 ) * 66 + 2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9019
SELECT ALL + SUM ( + col1 ) * 66 + 2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( col1 ) )
----

query I rowsort
SELECT - + col2 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9022
SELECT ALL * FROM tab1 WHERE NOT NULL > - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9022
SELECT ALL * FROM tab1 WHERE NOT NULL > - + CAST ( NULL AS REAL )
----

query I rowsort
SELECT DISTINCT + + 59 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + 39 - MAX( ALL 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

skipif mysql # not compatible
query I rowsort label-9024
SELECT + 39 - MAX ( ALL 46 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

query I rowsort
SELECT - 36 + + col1 AS col0 FROM tab2
----
15
31
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT + ( 13 ) + - 64 + - ( col0 ) * ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9026
SELECT + ( 13 ) + - 64 + - ( col0 ) * ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT SUM( + ( col2 ) ) FROM tab0 WHERE ( + ( + 24 ) ) > + col0 + col0 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT SUM ( + ( col2 ) ) FROM tab0 WHERE ( + ( + 24 ) ) > + col0 + col0 * col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9028
SELECT + CAST( NULL AS SIGNED ) * + 37 + - 48 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT + CAST ( NULL AS INTEGER ) * + 37 + - 48 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + MAX( 43 ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9029
SELECT + MAX ( 43 ) FROM tab2 AS cor0
----
43

query I rowsort
SELECT DISTINCT + col0 + + + ( ( - col1 ) ) FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT 32 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 80 - - col2 + 26 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9033
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - - + 39 + 78 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9033
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 - - + 39 + 78 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + MIN( - col2 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT + MIN ( - col2 ) FROM tab1 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT + col0 / col2 AS col2 FROM tab2 AS cor0 WHERE - col1 * + 19 + + 68 <= NULL
----

query II rowsort
SELECT + col1 AS col1, ( - col1 ) FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # DIV for integer division: 
query III rowsort label-9037
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 DIV - 83 ) NOT BETWEEN + ( 33 ) * - col2 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9037
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 / - 83 ) NOT BETWEEN + ( 33 ) * - col2 AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT ALL - 5 * + 37 FROM tab1
----
-185
-185
-185

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - 70 BETWEEN - 68 AND NULL
----

query I rowsort
SELECT col0 * + + col2 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT DISTINCT col1 * col0 + 20 FROM tab0 WHERE NOT + col0 <> - - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - + col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT col0 + + col1 - - ( - + CAST( NULL AS SIGNED ) ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT col0 + + col1 - - ( - + CAST ( NULL AS INTEGER ) ) * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + + ( ( col1 ) ) FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT + 57 - + COUNT( * ) FROM tab1 AS cor0 WHERE col2 * - + 24 NOT BETWEEN - + 54 AND col2
----
54

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT + 57 - + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * - + 24 NOT BETWEEN - + 54 AND col2
----
54

query I rowsort
SELECT DISTINCT - 72 + - - 31 + 34 AS col0 FROM tab2 AS cor0
----
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 20 ) > + 31 * - 73 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT ALL col2 * + col0 + + - col0 + - + CAST( NULL AS SIGNED ) - - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL col2 * + col0 + + - col0 + - + CAST ( NULL AS INTEGER ) - - - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9051
SELECT * FROM tab2 WHERE ( - + col0 ) BETWEEN + col0 * - CAST( - col2 AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-9051
SELECT * FROM tab2 WHERE ( - + col0 ) BETWEEN + col0 * - CAST ( - col2 AS INTEGER ) AND + col2
----

query I rowsort
SELECT ALL - 0 * col2 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + col1 AS col0, + col0 * - 32 FROM tab2 AS cor0
----
51
-1472
67
-2400
77
-2048

query I rowsort
SELECT + col0 * 58 FROM tab0 AS cor0
----
5046
5626
870

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT - 11 * COUNT( * ) AS col0 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9055
SELECT - 11 * COUNT ( * ) AS col0 FROM tab0 cor0
----
-33

query I rowsort
SELECT DISTINCT - 28 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 * col2 * - + col0 + col0 + - col2 - - col2 * 10 * + col1 AS col2 FROM tab0 AS cor0
----
-73513
-930503
27463

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT CAST( NULL AS SIGNED ) * - + ( - col2 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9058
SELECT CAST ( NULL AS INTEGER ) * - + ( - col2 ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + ( 26 ) ) FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 95, 47 col0 FROM tab1
----
95
47
95
47
95
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT + ( + + ( - - COUNT( * ) ) ) AS col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9061
SELECT + ( + + ( - - COUNT ( * ) ) ) AS col1 FROM tab2, tab0 AS cor0
----
9

query II rowsort
SELECT 70 AS col0, - col1 FROM tab0
----
70
-1
70
-21
70
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-9063
SELECT DISTINCT + col2 AS col1, + col0 DIV + - 9 FROM tab2
----
23
-5
40
-7
58
-8

skipif mysql # not compatible
query II rowsort label-9063
SELECT DISTINCT + col2 AS col1, + col0 / + - 9 FROM tab2
----
23
-5
40
-7
58
-8

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - 49 + + - 82 = - + 90
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - 63
----

query I rowsort
SELECT - col0 * 73 AS col0 FROM tab1 WHERE NOT + col2 + + - 70 BETWEEN + 51 AND NULL
----
-3723
-6205
-6643

query I rowsort
SELECT + 13 * - col2 FROM tab2
----
-299
-520
-754

query I rowsort
SELECT - - 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL - 19 + + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 29 * + + col2 NOT BETWEEN - + col0 AND ( NULL )
----
-19

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL - 19 + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 29 * + + col2 NOT BETWEEN - + col0 AND ( NULL )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9070
SELECT - - ( - ( COUNT( * ) ) ), 41 AS col0 FROM tab0 AS cor0
----
-3
41

skipif mysql # not compatible
query II rowsort label-9070
SELECT - - ( - ( COUNT ( * ) ) ), 41 AS col0 FROM tab0 AS cor0
----
-3
41

query II rowsort
SELECT + 73 + - ( - 31 ) AS col1, + ( - 98 ) AS col1 FROM tab1 AS cor0
----
104
-98
104
-98
104
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + col0 col2 FROM tab0 AS cor0
----
168
178
96

query I rowsort
SELECT DISTINCT + 56 + + 12 FROM tab0 cor0 WHERE NULL < + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9074
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 - CAST( + + 14 AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT ALL + CAST ( NULL AS REAL ) + - col1 - CAST ( + + 14 AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9075
SELECT col1 + - - col2 AS col0, + col2 - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
117
-24
125
-17
74
-23

skipif mysql # not compatible
query II rowsort label-9075
SELECT col1 + - - col2 AS col0, + col2 - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
117
-24
125
-17
74
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - COUNT( * ) + - COUNT( * ) * - - 6 * - + 42 FROM tab2 AS cor0
----
753

skipif mysql # not compatible
query I rowsort label-9076
SELECT - COUNT ( * ) + - COUNT ( * ) * - - 6 * - + 42 FROM tab2 AS cor0
----
753

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 4 ) + col2 col1 FROM tab0
----
103
14
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9079
SELECT col1 + + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT col1 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9080
SELECT DISTINCT + COUNT( * ) AS col0, - 96 FROM tab0
----
3
-96

skipif mysql # not compatible
query II rowsort label-9080
SELECT DISTINCT + COUNT ( * ) AS col0, - 96 FROM tab0
----
3
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9081
SELECT 23 * - COUNT( * ) + 96 AS col0, - COUNT( * ) FROM tab1
----
27
-3

skipif mysql # not compatible
query II rowsort label-9081
SELECT 23 * - COUNT ( * ) + 96 AS col0, - COUNT ( * ) FROM tab1
----
27
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT DISTINCT CAST( + 88 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT CAST ( + 88 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
88

query I rowsort
SELECT DISTINCT - 73 + + 16 AS col1 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 6 ) > col1 / + + ( ( + col2 ) ) * + - 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 - - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT + - COUNT( * ) * + + COUNT( * ) - ( + 81 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9086
SELECT + - COUNT ( * ) * + + COUNT ( * ) - ( + 81 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT - + 85 * - col2 FROM tab2 WHERE ( - col2 * - 59 + - ( - col0 ) * + col1 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + - 76 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT - col2 - - 64 FROM tab0
----
-35
17
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9090
SELECT 28 * - col0 DIV - col0 AS col2 FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-9090
SELECT 28 * - col0 / - col0 AS col2 FROM tab2
----
28
28
28

query I rowsort
SELECT - 72 * - + 19 * - - col2 - 75 FROM tab0 AS cor0
----
135357
13605
64221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9092
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) * - 37 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) * - 37 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - 64 FROM tab2 AS cor0
----
-3264
-4288
-4928

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 68 * - col1 - - - 66 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + + 97 * + + col0 col0 FROM tab1 AS cor0
----
-41225
-414869
-69258

query I rowsort
SELECT ALL - - ( 65 ) AS col1 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - 94 + - + ( + + col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-145
-161
-171

query I rowsort
SELECT 35 * + col1 AS col0 FROM tab0
----
2835
35
735

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT + SUM( DISTINCT + ( + col2 ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT + SUM ( DISTINCT + ( + col2 ) ) AS col2 FROM tab2
----
121

query II rowsort
SELECT - col1 AS col2, 67 FROM tab0
----
-1
67
-21
67
-81
67

query I rowsort
SELECT col0 + col2 FROM tab2 WHERE NOT ( + col0 ) + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9102
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * + - 6 ) NOT IN ( col1, - CAST( NULL AS SIGNED ) * - 1 + + - 89 )
----

skipif mysql # not compatible
query III rowsort label-9102
SELECT DISTINCT * FROM tab0 WHERE ( - col0 * + - 6 ) NOT IN ( col1, - CAST ( NULL AS INTEGER ) * - 1 + + - 89 )
----

query I rowsort
SELECT 62 FROM tab1 WHERE NOT NULL IS NOT NULL
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9104
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( + col1 AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9104
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( + col1 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT + 3 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - - col1 * + - col1 + col1 BETWEEN + 39 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9105
SELECT + 3 AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - - col1 * + - col1 + col1 BETWEEN + 39 AND NULL
----

query I rowsort
SELECT ALL - ( 35 ) * - - col0 + col0 AS col2 FROM tab0 AS cor0
----
-2958
-3298
-510

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - col1 + - + col0 IS NOT NULL
----

query I rowsort
SELECT - + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT - 39 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT + col0 * + + col2 * + 23 * - col0 + 83 FROM tab2
----
-1119281
-3768237
-7503667

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT ALL - 78 * 85 DIV col1 + + col1 + - - 35 + + + col0 * - 4 FROM tab0
----
-25
-607
-6982

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - 78 * 85 / col1 + + col1 + - - 35 + + + col0 * - 4 FROM tab0
----
-25
-607
-6982

query I rowsort
SELECT DISTINCT - col2 + - + ( col1 ) FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT + 94 + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT + 94 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
91

query I rowsort
SELECT DISTINCT col0 + + 67 + + + col0 AS col1 FROM tab1 AS cor0
----
169
237
249

query I rowsort
SELECT ALL + + 57 - - col1 FROM tab0 AS cor0
----
138
58
78

onlyif mysql # aggregate syntax: 
query II rowsort label-9117
SELECT 64, + 45 + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
64
51

skipif mysql # not compatible
query II rowsort label-9117
SELECT 64, + 45 + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
64
51

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 37 AND NULL
----

query I rowsort
SELECT + 28 * + + 50 FROM tab0
----
1400
1400
1400

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT MAX( DISTINCT - col1 ) col0 FROM tab2 WHERE NULL IS NULL
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9120
SELECT MAX ( DISTINCT - col1 ) col0 FROM tab2 WHERE NULL IS NULL
----
-51

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT 98 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT - col1 - - col1 - - col2 DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9122
SELECT - col1 - - col1 - - col2 / + col1 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 > col0
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9124
SELECT ALL - col0 + - 87 + CAST( NULL AS SIGNED ) AS col1, + col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-9124
SELECT ALL - col0 + - 87 + CAST ( NULL AS INTEGER ) AS col1, + col2 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9125
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 19, - 64 * - - CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9125
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + 19, - 64 * - - CAST ( + - col1 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - col1 NOT BETWEEN NULL AND - ( - col1 ) / - 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( col0 ) * col0 * col2 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT + 41 * + col0 FROM tab1 AS cor0
----
2091
3485
3731

query I rowsort
SELECT - col2 * + 14 AS col2 FROM tab1 cor0
----
-1344
-826
-952

query I rowsort
SELECT - 51 * + ( - 11 ) FROM tab0 AS cor0
----
561
561
561

query I rowsort
SELECT + 19 * - 18 FROM tab2
----
-342
-342
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT ALL - COUNT( * ) * - 29 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - COUNT ( * ) * - 29 FROM tab1
----
87

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + 47 * + + 31
----

query II rowsort
SELECT + col1 + + + col1 AS col0, col2 AS col1 FROM tab0
----
162
47
2
99
42
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - 93 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - 93 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9138
SELECT - 7 + - + 59 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9138
SELECT - 7 + - + 59 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT DISTINCT col1 + CAST( col0 AS SIGNED ) + + ( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
129
177
99

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT col1 + CAST ( col0 AS INTEGER ) + + ( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9141
SELECT + - COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 / + 20 + - CAST( col0 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9141
SELECT + - COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 / + 20 + - CAST ( col0 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT + 81 * - MAX( + 95 ) * + 52 * + SUM( ALL 4 ) FROM tab1 AS cor0
----
-4801680

skipif mysql # not compatible
query I rowsort label-9142
SELECT + 81 * - MAX ( + 95 ) * + 52 * + SUM ( ALL 4 ) FROM tab1 AS cor0
----
-4801680

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT ALL + MAX( - - 59 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL + MAX ( - - 59 ) FROM tab1
----
59

query I rowsort
SELECT 13 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT - col2 + - - col1 - + CAST( + - col2 AS SIGNED ) * + col0 * + - 4 col1 FROM tab1 AS cor0
----
-19666
-20114
-24773

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9145
SELECT - col2 + - - col1 - + CAST ( + - col2 AS INTEGER ) * + col0 * + - 4 col1 FROM tab1 AS cor0
----
-19666
-20114
-24773

query I rowsort
SELECT ALL + col2 * + col1 + - 21 FROM tab0 AS cor0
----
189
3786
78

query I rowsort
SELECT ALL 47 AS col1 FROM tab2 cor0 WHERE NULL = ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9148
SELECT - - SUM( ALL + col2 ) * + SUM( ALL col2 ) + + - COUNT( col0 ) + - 96 DIV 2 FROM tab2 AS cor0
----
14590

skipif mysql # not compatible
query I rowsort label-9148
SELECT - - SUM ( ALL + col2 ) * + SUM ( ALL col2 ) + + - COUNT ( col0 ) + - 96 / 2 FROM tab2 AS cor0
----
14590

query I rowsort
SELECT + 18 + 19 AS col2 FROM tab1 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL + - 86 + + MAX( ALL 28 ) AS col1 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL + - 86 + + MAX ( ALL 28 ) AS col1 FROM tab1 AS cor0
----
-58

query I rowsort
SELECT col1 FROM tab1 WHERE + - col2 + col0 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + - 36
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * + + col2 col2 FROM tab1
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + MAX( + col0 ) * - + 28 AS col1 FROM tab0
----
-2716

skipif mysql # not compatible
query I rowsort label-9154
SELECT + MAX ( + col0 ) * - + 28 AS col1 FROM tab0
----
-2716

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT + col2 DIV + - 20 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT + col2 / + - 20 FROM tab0
----
-2
-4
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9156
SELECT DISTINCT col0 DIV + + col1, + 0 + col0 * - col1 * + col1 - + 55 + - + col2 AS col0 FROM tab2 AS cor0
----
0
-119724
0
-379551
1
-336788

skipif mysql # not compatible
query II rowsort label-9156
SELECT DISTINCT col0 / + + col1, + 0 + col0 * - col1 * + col1 - + 55 + - + col2 AS col0 FROM tab2 AS cor0
----
0
-119724
0
-379551
1
-336788

query I rowsort
SELECT col1 - col0 - - - 69 AS col1 FROM tab0 AS cor0
----
-135
-165
-3

query I rowsort
SELECT - ( - col0 ) * col0 AS col0 FROM tab0 cor0
----
225
7569
9409

query II rowsort
SELECT + + 10, - col2 * + col2 AS col2 FROM tab1 AS cor0
----
10
-3481
10
-4624
10
-9216

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + col1 + - - 0 IS NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 68 ) <= + col1 + + - col2
----

query I rowsort
SELECT ALL - 48 * - + col1 AS col2 FROM tab0 AS cor0
----
1008
3888
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9163
SELECT DISTINCT 34 DIV - 85 + + col0 + - col2 + CAST( - 81 AS SIGNED ) FROM tab2 AS cor0
----
-57
-58
-64

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT 34 / - 85 + + col0 + - col2 + CAST ( - 81 AS INTEGER ) FROM tab2 AS cor0
----
-57
-58
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL col0 / - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9164
SELECT ALL col0 / - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9165
SELECT ALL MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col2 * - - 20 AS col2 FROM tab0
----
1980
200
940

query I rowsort
SELECT + col2 * + + col2 AS col0 FROM tab2
----
1600
3364
529

query II rowsort
SELECT DISTINCT - 7, 84 + + col2 * - col1 AS col2 FROM tab2
----
-7
-1089
-7
-2996
-7
-3802

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 57 * + 63 + - col0 + - col2 FROM tab1
----
3432
3444
3447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT + col1 + - CAST( 85 AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4
-64
-84

skipif mysql # not compatible
query I rowsort label-9171
SELECT + col1 + - CAST ( 85 AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4
-64
-84

query I rowsort
SELECT ALL + + col1 + - + col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT + 2 * - CAST( + - col2 AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
113
178
89

skipif mysql # not compatible
query I rowsort label-9173
SELECT + 2 * - CAST ( + - col2 AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL + 76 + - COUNT( * ) AS col2 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + 76 + - COUNT ( * ) AS col2 FROM tab1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE - col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT - CAST( NULL AS SIGNED ) - - col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT - CAST ( NULL AS INTEGER ) - - col0 + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN col1 AND - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT + col1 DIV + col0 - - col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9180
SELECT + col1 / + col0 - - col1 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - col1 col0 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT 46 - col2 AS col0 FROM tab0
----
-1
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT ALL ( + 13 ) + + COUNT( * ) AS col2 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL ( + 13 ) + + COUNT ( * ) AS col2 FROM tab1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT 58 DIV + 95 - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9184
SELECT 58 / + 95 - col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL MAX( + 81 ) - - COUNT( * ) AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL MAX ( + 81 ) - - COUNT ( * ) AS col0 FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT + 57 * + 6 * 78 + - SUM( - 90 ) col0 FROM tab0 AS cor0
----
26946

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9187
SELECT + 57 * + 6 * 78 + - SUM ( - 90 ) col0 FROM tab0 AS cor0
----
26946

query I rowsort
SELECT 17 * - 21 FROM tab0 AS cor0
----
-357
-357
-357

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9189
SELECT ALL 25 * - 42, + 89 AS col1, + - col2 * - - 77 + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

skipif mysql # not compatible
query III rowsort label-9189
SELECT ALL 25 * - 42, + 89 AS col1, + - col2 * - - 77 + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col2
----

query II rowsort
SELECT + - 39 AS col1, + col0 FROM tab1 AS cor0
----
-39
51
-39
85
-39
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9191
SELECT - + COUNT( * ) AS col2, 69 FROM tab1 AS cor0
----
-3
69

skipif mysql # not compatible
query II rowsort label-9191
SELECT - + COUNT ( * ) AS col2, 69 FROM tab1 AS cor0
----
-3
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + - COUNT( DISTINCT + ( col0 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9192
SELECT + - COUNT ( DISTINCT + ( col0 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 18 + col2 AS col0 FROM tab2 AS cor0
----
22
40
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 BETWEEN 31 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT + ( - CAST( col1 AS SIGNED ) ) FROM tab1 cor0 WHERE NOT + col0 * col1 * + - ( + - 62 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9195
SELECT + ( - CAST ( col1 AS INTEGER ) ) FROM tab1 cor0 WHERE NOT + col0 * col1 * + - ( + - 62 ) > NULL
----

query I rowsort
SELECT + 94 * + 80 AS col0 FROM tab1
----
7520
7520
7520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9197
SELECT + col2 + + ( col2 ) * - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT + col2 + + ( col2 ) * - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT DISTINCT - 73 FROM tab1 WHERE NOT - + 64 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT - 73 FROM tab1 WHERE NOT - + 64 + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 32 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9200
SELECT + 53 DIV col2 col0, - col1 + + col1 + + - col0 * + - col0 FROM tab0 AS cor0
----
0
9409
1
225
5
7569

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9200
SELECT + 53 / col2 col0, - col1 + + col1 + + - col0 * + - col0 FROM tab0 AS cor0
----
0
9409
1
225
5
7569

query I rowsort
SELECT DISTINCT - col1 * col2 + - 99 FROM tab2 AS cor0
----
-1272
-3179
-3985

query I rowsort
SELECT DISTINCT + 64 + - 94 + - col1 FROM tab2 cor0
----
-107
-81
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 - ( col2 ) * 12 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + ( - col2 ) + + + col0 AS col1, - col0 * + 43 - - + 70 AS col1 FROM tab1
----
-45
-2123
23
-3843
26
-3585

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL SUM( ALL + 18 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL SUM ( ALL + 18 ) FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL - + COUNT( 38 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - + COUNT ( 38 ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9207
SELECT ALL col0 DIV ( col1 ) + + 19 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-27
31
8

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL col0 / ( col1 ) + + 19 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-27
31
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + + col2 / col2 * col0
----

query I rowsort
SELECT DISTINCT - + col0 + col0 * col2 * ( + + col0 ) FROM tab1 AS cor0
----
249645
426190
563017

query I rowsort
SELECT ( - 58 ) FROM tab2 cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT COUNT( * ) - - ( + COUNT( ALL col2 ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( ALL col2 ) ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL ( + 70 ) + - + col2 FROM tab2
----
12
30
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9213
SELECT * FROM tab1 WHERE NOT - col2 + - - col2 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9213
SELECT * FROM tab1 WHERE NOT - col2 + - - col2 NOT BETWEEN - CAST ( NULL AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9214
SELECT DISTINCT COUNT( * ) - - COUNT( DISTINCT 80 ) - - ( - 17 ) * 37 * + 90 - 4, - 58 col2 FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----
-56614
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9214
SELECT DISTINCT COUNT ( * ) - - COUNT ( DISTINCT 80 ) - - ( - 17 ) * 37 * + 90 - 4, - 58 col2 FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----
-56614
-58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9216
SELECT ALL - CAST( NULL AS DECIMAL ) * + col1 AS col0, 62 FROM tab1
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-9216
SELECT ALL - CAST ( NULL AS REAL ) * + col1 AS col0, 62 FROM tab1
----
NULL
62
NULL
62
NULL
62

onlyif mysql # DIV for integer division: 
query II rowsort label-9217
SELECT DISTINCT + col0 * 94 AS col0, col2 * + + 0 DIV + col0 * col2 FROM tab0
----
1410
0
8178
0
9118
0

skipif mysql # not compatible
query II rowsort label-9217
SELECT DISTINCT + col0 * 94 AS col0, col2 * + + 0 / + col0 * col2 FROM tab0
----
1410
0
8178
0
9118
0

query I rowsort
SELECT - 23 * + ( + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-16215
-20010
-220869

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL + 51 * + MAX( DISTINCT - + col2 ) col0 FROM tab1 AS cor0
----
-3009

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9219
SELECT ALL + 51 * + MAX ( DISTINCT - + col2 ) col0 FROM tab1 AS cor0
----
-3009

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - SUM( DISTINCT + - 14 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - SUM ( DISTINCT + - 14 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT + 81 * - COUNT( * ) col2 FROM tab1
----
-243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9221
SELECT DISTINCT + 81 * - COUNT ( * ) col2 FROM tab1
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9222
SELECT DISTINCT + col0 AS col0, col2 + + + CAST( NULL AS SIGNED ) - - - col1 + + + 56 + + col2 * + col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9222
SELECT DISTINCT + col0 AS col0, col2 + + + CAST ( NULL AS INTEGER ) - - - col1 + + + 56 + + col2 * + col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9223
SELECT ALL - 94 AS col1, - 86 DIV + COUNT( * ) FROM tab0 AS cor0
----
-94
-28

skipif mysql # not compatible
query II rowsort label-9223
SELECT ALL - 94 AS col1, - 86 / + COUNT ( * ) FROM tab0 AS cor0
----
-94
-28

onlyif mysql # DIV for integer division: 
query II rowsort label-9224
SELECT DISTINCT - col1 + - 96 * - + 20 + + 48 + 54 DIV col0 + ( - col1 ) AS col0, + 19 * col1 FROM tab0 cor0
----
1809
1539
1926
399
1966
19

skipif mysql # not compatible
query II rowsort label-9224
SELECT DISTINCT - col1 + - 96 * - + 20 + + 48 + 54 / col0 + ( - col1 ) AS col0, + 19 * col1 FROM tab0 cor0
----
1809
1539
1926
399
1966
19

query I rowsort
SELECT + 60 * - col2 FROM tab1 AS cor0
----
-3540
-4080
-5760

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NULL NOT IN ( col2, 30 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9227
SELECT ALL ( - CAST( col2 AS SIGNED ) ) DIV - - ( + col1 ) FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-9227
SELECT ALL ( - CAST ( col2 AS INTEGER ) ) / - - ( + col1 ) FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT + col2 * - + col1 * 83 FROM tab1
----
-111552
-24485
-265268

query I rowsort
SELECT + col0 * - + col1 / col1 - + col2 AS col0 FROM tab1 WHERE NULL = col1
----

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) * + + col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9231
SELECT * FROM tab1 WHERE + - CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9231
SELECT * FROM tab1 WHERE + - CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9232
SELECT ALL - COUNT( * ) DIV 79 * + ( + + 13 ), + COUNT( * ) col0 FROM tab1
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9232
SELECT ALL - COUNT ( * ) / 79 * + ( + + 13 ), + COUNT ( * ) col0 FROM tab1
----
0
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9233
SELECT MAX( ALL col0 ) DIV + 18 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9233
SELECT MAX ( ALL col0 ) / + 18 FROM tab1
----
5

query II rowsort
SELECT DISTINCT - col0, + col2 FROM tab0
----
-15
47
-87
10
-97
99

query III rowsort
SELECT * FROM tab1 WHERE - col2 IN ( - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT COUNT( * ) * + - 82 FROM tab0
----
-246

skipif mysql # not compatible
query I rowsort label-9236
SELECT COUNT ( * ) * + - 82 FROM tab0
----
-246

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9238
SELECT - COUNT( * ) AS col0, 15 FROM tab1
----
-3
15

skipif mysql # not compatible
query II rowsort label-9238
SELECT - COUNT ( * ) AS col0, 15 FROM tab1
----
-3
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9239
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9239
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ALL + ( + - 73 ) AS col1 FROM tab2
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - 72 * + - 78 + col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9242
SELECT - 4 AS col2, + col2 DIV col1 * col2 + - 82 FROM tab1
----
-4
-14
-4
494
-4
567

skipif mysql # not compatible
query II rowsort label-9242
SELECT - 4 AS col2, + col2 / col1 * col2 + - 82 FROM tab1
----
-4
-14
-4
494
-4
567

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL col1 + - 10 AS col0 FROM tab0
----
-9
11
71

query II rowsort
SELECT ALL + + col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT ALL - col1 + - + 18, col0 FROM tab1 AS cor0
----
-23
85
-32
51
-65
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT + + MIN( ALL - ( 36 ) ) + ( + 89 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9248
SELECT + + MIN ( ALL - ( 36 ) ) + ( + 89 ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT DISTINCT - ( + MIN( ALL 49 ) ) FROM tab1, tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT - ( + MIN ( ALL 49 ) ) FROM tab1, tab1 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9250
SELECT + COUNT( * ) * COUNT( * ), + 26 AS col0 FROM tab0
----
9
26

skipif mysql # not compatible
query II rowsort label-9250
SELECT + COUNT ( * ) * COUNT ( * ), + 26 AS col0 FROM tab0
----
9
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 2 IS NOT NULL
----

query I rowsort
SELECT ( + + col1 ) - + col2 FROM tab1 AS cor0
----
-21
-54
-82

query II rowsort
SELECT ALL - 3 AS col2, + col0 AS col2 FROM tab1 AS cor0 WHERE - col2 = NULL
----

query II rowsort
SELECT ( col0 ) AS col1, + col0 + + col2 FROM tab2 AS cor0
----
46
69
64
104
75
133

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT ( - - SUM( ALL col2 ) ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9255
SELECT ( - - SUM ( ALL col2 ) ) AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9257
SELECT + CAST( col1 AS SIGNED ) DIV - col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9257
SELECT + CAST ( col1 AS INTEGER ) / - col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT - COUNT( DISTINCT + col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9258
SELECT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT ALL ( + + CAST( + - ( - 45 ) AS SIGNED ) ) FROM tab0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL ( + + CAST ( + - ( - 45 ) AS INTEGER ) ) FROM tab0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9260
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col1 AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 + + col2 BETWEEN - col1 AND col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - col1 ) * - - 10 + + 71 FROM tab2
----
-439
-599
-699

onlyif mysql # aggregate syntax: 
query II rowsort label-9263
SELECT 35 AS col1, + COUNT( * ) AS col2 FROM tab1
----
35
3

skipif mysql # not compatible
query II rowsort label-9263
SELECT 35 AS col1, + COUNT ( * ) AS col2 FROM tab1
----
35
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 99 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9265
SELECT DISTINCT - 5 AS col2, + COUNT( * ) AS col1 FROM tab1
----
-5
3

skipif mysql # not compatible
query II rowsort label-9265
SELECT DISTINCT - 5 AS col2, + COUNT ( * ) AS col1 FROM tab1
----
-5
3

query I rowsort
SELECT - + col1 FROM tab1 WHERE NOT - + 70 IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT MAX( ALL - col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9267
SELECT MAX ( ALL - col1 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT - 81 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT + 60 AS col1 FROM tab0 WHERE NOT ( - 84 ) = col2
----
60
60
60

query I rowsort
SELECT DISTINCT - 82 + - col0 FROM tab0 AS cor0
----
-169
-179
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT ALL - MAX( + + 42 ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - MAX ( + + 42 ) AS col0 FROM tab0 AS cor0
----
-42

query I rowsort
SELECT 14 + - - col1 FROM tab0 AS cor0
----
15
35
95

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 55 / - col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT - COUNT( * ) + COUNT( + col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9274
SELECT - COUNT ( * ) + COUNT ( + col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9275
SELECT DISTINCT - - CAST( - 75 AS SIGNED ) + 57 + + COUNT( - 21 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - - CAST ( - 75 AS INTEGER ) + 57 + + COUNT ( - 21 ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT col2 + - + 25 FROM tab1
----
34
43
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9277
SELECT DISTINCT COUNT( * ) AS col1, 13 AS col2 FROM tab2
----
3
13

skipif mysql # not compatible
query II rowsort label-9277
SELECT DISTINCT COUNT ( * ) AS col1, 13 AS col2 FROM tab2
----
3
13

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9278
SELECT + 54 - - 75 DIV - 94 AS col0 FROM tab2 WHERE - + ( + + CAST( - 73 AS SIGNED ) ) IS NOT NULL
----
54
54
54

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 54 - - 75 / - 94 AS col0 FROM tab2 WHERE - + ( + + CAST ( - 73 AS INTEGER ) ) IS NOT NULL
----
54
54
54

query I rowsort
SELECT - col2 * + col1 * col2 * + - 22 + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
2838579
382995
4781307

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - MAX( DISTINCT - col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9280
SELECT - MAX ( DISTINCT - col2 ) AS col0 FROM tab2
----
23

query II rowsort
SELECT DISTINCT col1 AS col1, col1 + - - 25 AS col2 FROM tab0
----
1
26
21
46
81
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - MIN( 25 ) AS col1 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-9282
SELECT - MIN ( 25 ) AS col1 FROM tab0
----
-25

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + col1 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + col2 * + col0 col0 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT - 97 * - + 28 AS col0 FROM tab2 AS cor0
----
2716
2716
2716

query I rowsort
SELECT ALL + col2 - col2 + + col0 * + - ( col1 ) AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT 54 + + 82 * + col0 + col1 AS col2 FROM tab1
----
4250
7029
7563

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 59 AS col2 FROM tab1 WHERE NOT NULL IS NULL AND NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 59 AS col2 FROM tab1 WHERE NOT NULL IS NULL AND NOT NULL <= NULL
----

query I rowsort
SELECT ( + - 46 ) + col2 FROM tab2
----
-23
-6
12

query II rowsort
SELECT ALL - col0 AS col0, col1 * 85 * 14 FROM tab2 AS cor0
----
-46
60690
-64
91630
-75
79730

query I rowsort
SELECT ALL ( 7 ) AS col0 FROM tab2 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT SUM( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9292
SELECT DISTINCT SUM ( DISTINCT - col0 ) col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - 9 * + 82 AS col2 FROM tab1 AS cor0
----
-738
-738
-738

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT - - COUNT( * ) * ( + 75 ) AS col0 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9294
SELECT - - COUNT ( * ) * ( + 75 ) AS col0 FROM tab1 AS cor0
----
225

query I rowsort
SELECT DISTINCT - - col1 FROM tab2 AS cor0 WHERE 47 IS NULL
----

query I rowsort
SELECT 10 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + 54 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 48 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col0 FROM tab0
----
46

query I rowsort
SELECT DISTINCT - col1 * 99 / + col0 + 45 AS col0 FROM tab0 WHERE + col2 BETWEEN NULL AND - - 11 OR NULL <= - col1 - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-9301
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 17 IS NOT NULL
----

query II rowsort
SELECT - col2 AS col2, 40 FROM tab0
----
-10
40
-47
40
-99
40

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col2 + - 81 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 22
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT + COUNT( * ) * + 97 AS col0 FROM tab2 cor0
----
291

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT + COUNT ( * ) * + 97 AS col0 FROM tab2 cor0
----
291

query I rowsort
SELECT ALL + 57 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + + 70 AND NULL
----

query I rowsort
SELECT ALL + 11 + + col1 * ( - 71 ) AS col2 FROM tab0 AS cor0
----
-1480
-5740
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL SUM( DISTINCT - + col2 ) + + ( 35 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL SUM ( DISTINCT - + col2 ) + + ( 35 ) FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab1 AS cor0 WHERE - col2 - 36 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 73 + - 93 - col0, + 8 col2 FROM tab1 cor0
----
-217
8
-251
8
-257
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT - 16 + COUNT( * ) * + 6 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT - 16 + COUNT ( * ) * + 6 FROM tab1
----
2

query I rowsort
SELECT ALL 31 * + 24 FROM tab0
----
744
744
744

query II rowsort
SELECT - col1 - col0 AS col1, 18 FROM tab1
----
-138
18
-65
18
-90
18

query I rowsort
SELECT DISTINCT - ( + col2 ) - 98 + + col0 * + - 33 * - 95 AS col1 FROM tab2
----
144089
200502
234969

query I rowsort
SELECT ALL ( - - col1 ) * 25 * + - col2 FROM tab0
----
-2475
-5250
-95175

query I rowsort
SELECT + 30 + col2 + + - 84 + + col1 FROM tab1
----
10
56
61

query I rowsort
SELECT ALL - col0 * + - col2 AS col1 FROM tab0
----
705
870
9603

query II rowsort
SELECT + + col1 + col2 AS col0, - 55 * - col1 * - - col2 AS col2 FROM tab2 AS cor0
----
117
169400
125
213730
74
64515

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9321
SELECT ALL + 32 DIV + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL + 32 / + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT DISTINCT col2 + - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT - 62 + + 20 * - - col0 * 98 FROM tab2 AS cor0
----
125378
146938
90098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - col2 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT ( + COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9325
SELECT DISTINCT ( + COUNT ( * ) ) col1 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col2 FROM tab2
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT DISTINCT + - MIN( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT + - MIN ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT - SUM( + - CAST( NULL AS SIGNED ) ) * CAST( + 35 AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT - SUM ( + - CAST ( NULL AS INTEGER ) ) * CAST ( + 35 AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - - MIN( DISTINCT ( - + col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9329
SELECT - - MIN ( DISTINCT ( - + col1 ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-9330
SELECT DISTINCT - COUNT( * ) AS col0, 9 AS col1 FROM tab2 cor0 WHERE - col1 < - col1 + - 36
----
0
9

skipif mysql # not compatible
query II rowsort label-9330
SELECT DISTINCT - COUNT ( * ) AS col0, 9 AS col1 FROM tab2 cor0 WHERE - col1 < - col1 + - 36
----
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 95 col2, col0 + 89 FROM tab0
----
95
104
95
176
95
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT col2 - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT col2 - col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT - 35 DIV + COUNT( * ) col0 FROM tab0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9333
SELECT - 35 / + COUNT ( * ) col0 FROM tab0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9334
SELECT * FROM tab2 WHERE NOT + + col2 < col0 * + + col1 + + + col0 + + CAST( - col2 AS SIGNED ) * col2 / + col0 + + col1
----

skipif mysql # not compatible
query III rowsort label-9334
SELECT * FROM tab2 WHERE NOT + + col2 < col0 * + + col1 + + + col0 + + CAST ( - col2 AS INTEGER ) * col2 / + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT COUNT( ALL + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9335
SELECT COUNT ( ALL + - col2 ) AS col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - col0 col1 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT ALL + col0, - 26 + + 68 FROM tab0
----
15
42
87
42
97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - - COUNT( - col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9338
SELECT - - COUNT ( - col1 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL - 5 FROM tab0 AS cor0 WHERE NULL = 41 + - col2
----

query I rowsort
SELECT - + 30 * + col2 AS col2 FROM tab0 AS cor0
----
-1410
-2970
-300

query I rowsort
SELECT ALL ( - - ( + col1 ) ) * col2 * + 74 AS col1 FROM tab2
----
227920
287564
86802

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + + COUNT( ALL - col2 ) + - 87 AS col1 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9342
SELECT + + COUNT ( ALL - col2 ) + - 87 AS col1 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT - col1 + + 95 - + - col0 FROM tab1 AS cor0
----
132
139
175

query I rowsort
SELECT + + 51 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT + 12 + + 4 AS col0 FROM tab1 cor0
----
16
16
16

query I rowsort
SELECT + col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT ALL - 6 + ( + 32 ) FROM tab2
----
26
26
26

query I rowsort
SELECT ALL 61 * - col0 AS col0 FROM tab1
----
-3111
-5185
-5551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL col0 / 12 * + CAST( NULL AS SIGNED ) * - + 90 + - 73 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL col0 / 12 * + CAST ( NULL AS INTEGER ) * - + 90 + - 73 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - + col2 * - col0 * ( + col2 ) + + col1 * - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL COUNT( * ) * MAX( ALL + - 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL COUNT ( * ) * MAX ( ALL + - 0 ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 51 / + - col1 + - col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT - + COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT - + COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

query I rowsort
SELECT 31 FROM tab2 WHERE NOT NULL = col1
----

query I rowsort
SELECT - 12 * + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a1cc142fb585924bc76c117be2225d15

query I rowsort
SELECT DISTINCT 32 * + col2 FROM tab0
----
1504
3168
320

query II rowsort
SELECT ALL + ( + + col2 ), + col2 + - 80 FROM tab1 AS cor0 WHERE NOT NULL >= 66
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9358
SELECT ALL + 80 DIV - + CAST( + col2 AS SIGNED ) + + ( col0 ) FROM tab2 cor0
----
43
62
74

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + 80 / - + CAST ( + col2 AS INTEGER ) + + ( col0 ) FROM tab2 cor0
----
43
62
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - - SUM( + col1 ) AS col0 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9359
SELECT - - SUM ( + col1 ) AS col0 FROM tab0 cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT ALL + CAST( ( 79 ) AS SIGNED ) * + 51 FROM tab1
----
4029
4029
4029

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL + CAST ( ( 79 ) AS INTEGER ) * + 51 FROM tab1
----
4029
4029
4029

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT - ( col0 ) DIV - + 76 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9361
SELECT - ( col0 ) / - + 76 FROM tab0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT - 80 FROM tab2 WHERE NOT + col0 * + CAST( NULL AS SIGNED ) BETWEEN + col2 + col0 + - col2 + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9362
SELECT - 80 FROM tab2 WHERE NOT + col0 * + CAST ( NULL AS INTEGER ) BETWEEN + col2 + col0 + - col2 + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9363
SELECT CAST( NULL AS SIGNED ) col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9363
SELECT CAST ( NULL AS INTEGER ) col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT - ( + 67 ) AS col0 FROM tab1
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - - 8 ) FROM tab2
----
-8
-8
-8

query I rowsort
SELECT col0 + - - col1 AS col2 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9368
SELECT DISTINCT * FROM tab1 WHERE NOT + + 27 * + + col0 * + - col1 + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9368
SELECT DISTINCT * FROM tab1 WHERE NOT + + 27 * + + col0 * + - col1 + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 84 + + - col1 + - col1 AS col1 FROM tab0
----
-78
42
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL - SUM( DISTINCT 46 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL - SUM ( DISTINCT 46 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL + 28 * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-252

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL + 28 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9372
SELECT ALL CAST( NULL AS SIGNED ) + - 74 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL CAST ( NULL AS INTEGER ) + - 74 AS col1, + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - - col2 + col2 FROM tab0 AS cor0 WHERE col1 * - 29 IS NOT NULL
----
198
20
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 65 = col2
----

query I rowsort
SELECT DISTINCT + 48 + + + 66 AS col0 FROM tab1 AS cor0
----
114

query I rowsort
SELECT - col1 - + col1 * - col1 * ( + col1 ) AS col0 FROM tab1
----
103776
120
2730

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col0 AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9378
SELECT DISTINCT ( + COUNT( * ) ) + 59 DIV + SUM( + 62 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT ( + COUNT ( * ) ) + 59 / + SUM ( + 62 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 53 + + + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 99 - ( col0 ) AS col1 FROM tab1
----
14
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL 72 + + COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL 72 + + COUNT ( * ) FROM tab2
----
75

query I rowsort
SELECT + col2 * - ( + + col2 ) + - + col2 * + 73 * - + col1 AS col2 FROM tab0
----
-2574
15230
275702

query III rowsort
SELECT DISTINCT - col1 - + col1, col1 * col2 - + - col0 AS col0, + + col1 FROM tab2
----
9 values hashing to 08298bf76e3a4bd71dcbc7cc1097256d

query I rowsort
SELECT - col0 * + + col2 + + 1 FROM tab1
----
-4895
-5014
-6187

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - col0 * col0 + - 99 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT + + CAST( + - 46 AS SIGNED ) col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) * - 44 IS NULL
----
-46
-46
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9386
SELECT + + CAST ( + - 46 AS INTEGER ) col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - 44 IS NULL
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 + - col1 * col1 col1 FROM tab2
----
-2552
-4411
-5862

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 35
----

query I rowsort
SELECT + + col0 * + 64 * + 69 AS col2 FROM tab1 AS cor0
----
225216
375360
401856

onlyif mysql # DIV for integer division: 
query II rowsort label-9391
SELECT 60 AS col0, + col0 DIV + 49 col0 FROM tab0
----
60
0
60
1
60
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9391
SELECT 60 AS col0, + col0 / + 49 col0 FROM tab0
----
60
0
60
1
60
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT CAST( + col2 AS SIGNED ) * + col1 * - 42 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9392
SELECT CAST ( + col2 AS INTEGER ) * + col1 * - 42 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 50 ) NOT BETWEEN - col0 AND - - 29 - + 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT col2 + - col1 IS NULL
----
51
67
77

query I rowsort
SELECT + 47 * col2 * + 40 AS col2 FROM tab2 AS cor0
----
109040
43240
75200

query I rowsort
SELECT - 56 * - col2 * + col1 AS col0 FROM tab0 AS cor0
----
11760
213192
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL COUNT( * ) * 49 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL COUNT ( * ) * 49 FROM tab0 AS cor0
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9398
SELECT 13 DIV - COUNT( * ) AS col2 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9398
SELECT 13 / - COUNT ( * ) AS col2 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + 25 + - MIN( ALL - + col1 ) FROM tab0 WHERE NOT - col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT + 25 + - MIN ( ALL - + col1 ) FROM tab0 WHERE NOT - col0 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT COUNT( * ) + + MIN( DISTINCT 21 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9400
SELECT COUNT ( * ) + + MIN ( DISTINCT 21 ) FROM tab1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9401
SELECT DISTINCT - 5 DIV - - COUNT( * ) col0, + 6 + 87 FROM tab1
----
-1
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9401
SELECT DISTINCT - 5 / - - COUNT ( * ) col0, + 6 + 87 FROM tab1
----
-1
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col0 col2 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL - CAST( MAX( ALL - 23 ) AS SIGNED ) AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL - CAST ( MAX ( ALL - 23 ) AS INTEGER ) AS col2 FROM tab0
----
23

query II rowsort
SELECT col1 * - col2 * + col0 + + col0 AS col1, col0 AS col1 FROM tab1
----
-24990
85
-290745
91
-68493
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + ( - col0 )
----

query I rowsort
SELECT DISTINCT + col1 * col1 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1540
320
5405

query I rowsort
SELECT DISTINCT + + ( - - 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query I rowsort
SELECT ALL + 16 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT - ( - CAST( + - 75 AS SIGNED ) ) + col0 AS col1 FROM tab2
----
-11
-29
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT - ( - CAST ( + - 75 AS INTEGER ) ) + col0 AS col1 FROM tab2
----
-11
-29
0

query I rowsort
SELECT - + 96 + + 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9412
SELECT ALL - 54 DIV + ( - COUNT( * ) ) + + - 60 AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - 54 / + ( - COUNT ( * ) ) + + - 60 AS col1 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9413
SELECT CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-9413
SELECT CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT + 43 + col0 * - - col0 AS col0, col1 FROM tab2 AS cor0
----
2159
51
4139
77
5668
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT ALL + 30 + + COUNT( * ) * + 81 * - - 6 * + ( 43 ) FROM tab0 AS cor0
----
62724

skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL + 30 + + COUNT ( * ) * + 81 * - - 6 * + ( 43 ) FROM tab0 AS cor0
----
62724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 24 col0 FROM tab2 AS cor0
----
47
64
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9417
SELECT + + col0 + - col1 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT + + col0 + - col1 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( - 92 ) - - ( - 32 ) + - 5 * col2 + - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-155
-236
-383

query I rowsort
SELECT DISTINCT - 56 - 69 FROM tab1 cor0
----
-125

query I rowsort
SELECT ALL col1 + + col1 * - col1 * col1 AS col2 FROM tab1
----
-103776
-120
-2730

query I rowsort
SELECT ALL 81 - + col2 * - + 29 FROM tab2
----
1241
1763
748

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab0
----
6

query III rowsort
SELECT * FROM tab1 WHERE + + 76 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9424
SELECT * FROM tab1 WHERE CAST( + 88 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9424
SELECT * FROM tab1 WHERE CAST ( + 88 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - - 95 * - 59 AS col0 FROM tab1 WHERE NOT - - col0 IS NULL
----
-5605
-5605
-5605

query I rowsort
SELECT 91 * col0 AS col2 FROM tab0
----
1365
7917
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col2 + - col0 AS col0 FROM tab1
----
59
-26
68
-23
96
45

query I rowsort
SELECT + - 82 AS col1 FROM tab0 cor0
----
-82
-82
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9429
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + ( + + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-9429
SELECT * FROM tab1 cor0 WHERE NOT ( NOT + ( + + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT ALL - + col0 * - CAST( col2 AS SIGNED ) * + col2 FROM tab0 cor0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - + col0 * - CAST ( col2 AS INTEGER ) * + col2 FROM tab0 cor0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 + + ( + col1 ) + col1 col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT + COUNT( * ) * + - 27 AS col0, - MIN( ALL - col2 ) FROM tab2
----
-81
58

skipif mysql # not compatible
query II rowsort label-9432
SELECT + COUNT ( * ) * + - 27 AS col0, - MIN ( ALL - col2 ) FROM tab2
----
-81
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT ( col1 ) DIV + col2 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9433
SELECT ( col1 ) / + col2 col1 FROM tab1
----
0
0
0

query II rowsort
SELECT - ( + col1 ), ( - col2 ) AS col1 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL CAST( 2 AS SIGNED ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL CAST ( 2 AS INTEGER ) FROM tab2
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IS NULL OR NULL < NULL
----

query II rowsort
SELECT ALL - 26 * + col2 AS col2, 35 FROM tab1 AS cor0
----
-1534
35
-1768
35
-2496
35

query I rowsort
SELECT + + col0 AS col1 FROM tab1 cor0 WHERE NOT - 58 IS NOT NULL
----

query I rowsort
SELECT + col0 * + - 73 AS col1 FROM tab0
----
-1095
-6351
-7081

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 = NULL
----

query I rowsort
SELECT DISTINCT col2 + + - col2 + - 96 FROM tab2
----
-96

query I rowsort
SELECT + - 18 * - col1 * + col2 * col1 + - col1 FROM tab2 AS cor0
----
1076763
4268803
4686449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 + + 51 col0 FROM tab1
----
81
81
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 21
----

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab0 WHERE NOT + col1 IN ( ( col0 ) )
----
-40
-40
-40

query I rowsort
SELECT - 54 + 83 FROM tab2
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9448
SELECT ALL - CAST( - col0 AS SIGNED ) / CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9448
SELECT ALL - CAST ( - col0 AS INTEGER ) / CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - 37 FROM tab0
----
-118
-38
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT col0 DIV + 54 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9450
SELECT col0 / + 54 FROM tab1
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT DISTINCT - col1 DIV col1 + + col0 AS col2 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT - col1 / col1 + + col0 AS col2 FROM tab1
----
50
84
90

query I rowsort
SELECT DISTINCT col1 + col2 * 57 FROM tab0
----
2760
5644
591

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT 58 DIV col0 col0 FROM tab2
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9453
SELECT DISTINCT 58 / col0 col0 FROM tab2
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * 57 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9455
SELECT - 3 DIV MAX( ALL + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9455
SELECT - 3 / MAX ( ALL + col2 ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9456
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( col0 ) + col0 AS col1 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9458
SELECT ALL + 10 DIV + CAST( - col1 * 42 AS SIGNED ) AS col0 FROM tab1 WHERE NOT + col1 * - 39 - col0 IN ( + col1 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + 10 / + CAST ( - col1 * 42 AS INTEGER ) AS col0 FROM tab1 WHERE NOT + col1 * - 39 - col0 IN ( + col1 )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9460
SELECT col2 - ( col2 - + col2 ) AS col1 FROM tab1 WHERE NOT - col2 + CAST( NULL AS SIGNED ) BETWEEN col1 AND 60
----

skipif mysql # not compatible
query I rowsort label-9460
SELECT col2 - ( col2 - + col2 ) AS col1 FROM tab1 WHERE NOT - col2 + CAST ( NULL AS INTEGER ) BETWEEN col1 AND 60
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN col0 * 44 AND ( + ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( 66 ) BETWEEN + col0 - + col1 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT 36 * CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9463
SELECT 36 * CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * col2 col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT ( - 11 ) * COUNT( * ) FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9465
SELECT ( - 11 ) * COUNT ( * ) FROM tab0 cor0
----
-33

query III rowsort
SELECT * FROM tab2 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9467
SELECT DISTINCT * FROM tab2 WHERE NOT + 18 + + col0 IN ( - col0 + 4 * CAST( - 3 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9467
SELECT DISTINCT * FROM tab2 WHERE NOT + 18 + + col0 IN ( - col0 + 4 * CAST ( - 3 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= ( col0 + - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT DISTINCT + + 84 + MIN( col2 + - ( + col1 + - col1 DIV + col0 ) ) AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT + + 84 + MIN ( col2 + - ( + col1 + - col1 / + col0 ) ) AS col2 FROM tab1 AS cor0
----
105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col1 FROM tab2 AS cor0
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT ALL + col1 * col1 + 17 DIV col0 AS col1 FROM tab0 AS cor0
----
1
441
6562

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL + col1 * col1 + 17 / col0 AS col1 FROM tab0 AS cor0
----
1
441
6562

query I rowsort
SELECT - - col0 + - 63 * - 0 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 58 * col2 + 72 * 55 AS col1 FROM tab0 AS cor0
----
4540
6686
9702

query I rowsort
SELECT - col1 + 51 AS col0 FROM tab2
----
-16
-26
0

query I rowsort
SELECT col0 FROM tab1 WHERE ( - col2 * + col0 ) <> ( + col0 )
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT + 76 NOT IN ( 65 )
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE - 82 IS NOT NULL
----
46
64
75

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND ( + ( col2 ) )
----

query I rowsort
SELECT DISTINCT + col0 * - 46 * + col1 AS col1 FROM tab1
----
-19550
-196742
-32844

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NULL > 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT - COUNT( * ) * - - ( + COUNT( * ) ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9482
SELECT - COUNT ( * ) * - - ( + COUNT ( * ) ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT DISTINCT 55 + + 85 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT 55 + + 85 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 + 33 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col2 + - 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + - col1 col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9486
SELECT ALL - - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - 82 FROM tab0 cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 95 * + 20 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - ( + 8 ) + 54 + - col1 AS col0 FROM tab1 AS cor0
----
-369
-72
9

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab1 WHERE + + 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL + COUNT( * ) * - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + COUNT ( * ) * - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + col0 + - + 94 AS col1 FROM tab1 AS cor0
----
-3
-43
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + - COUNT( * ) * - 22 + + 28 AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9493
SELECT + - COUNT ( * ) * - 22 + + 28 AS col0 FROM tab0 AS cor0
----
94

query I rowsort
SELECT ALL - - col1 * + col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9495
SELECT DISTINCT - col1 DIV + - col1 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT - col1 / + - col1 AS col0 FROM tab0 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + - COUNT( * ) * + 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT + - COUNT ( * ) * + 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col1 * - col1 * - col0 * + col1 AS col0 FROM tab2
----
22557225
29218112
6101946

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT 50 * 60 * - + COUNT( * ) AS col2 FROM tab2
----
-9000

skipif mysql # not compatible
query I rowsort label-9499
SELECT 50 * 60 * - + COUNT ( * ) AS col2 FROM tab2
----
-9000

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT ( MIN( ALL ( - 96 ) ) ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-9500
SELECT ( MIN ( ALL ( - 96 ) ) ) AS col2 FROM tab0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9501
SELECT DISTINCT * FROM tab2 WHERE + 18 >= - + CAST( NULL AS SIGNED ) / - 18 + - col2 * - 83
----

skipif mysql # not compatible
query III rowsort label-9501
SELECT DISTINCT * FROM tab2 WHERE + 18 >= - + CAST ( NULL AS INTEGER ) / - 18 + - col2 * - 83
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 * col2 IN ( 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL MAX( ALL - + 6 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL MAX ( ALL - + 6 ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab1 cor0
----
-44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 80 * - - col2 + - 37 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 * 0 * + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * + col1 NOT BETWEEN NULL AND 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT DISTINCT 82 FROM tab0 AS cor0 WHERE 23 + col1 * - CAST( NULL AS SIGNED ) * + col1 - col1 NOT BETWEEN + ( 26 ) AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT 82 FROM tab0 AS cor0 WHERE 23 + col1 * - CAST ( NULL AS INTEGER ) * + col1 - col1 NOT BETWEEN + ( 26 ) AND ( col0 )
----

query I rowsort
SELECT + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 + - col0, + 69 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9511
SELECT ALL - + 12 + + SUM( + ( - col1 ) ) DIV + + 32 AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - + 12 + + SUM ( + ( - col1 ) ) / + + 32 AS col0 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT + ( 15 ) AS col1 FROM tab2 AS cor0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 + - col0 col0 FROM tab1 AS cor0
----
13
47
7

query I rowsort
SELECT - + 10 + - col2 FROM tab2 AS cor0 WHERE 51 + - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT MAX( - 35 ) AS col0 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-9516
SELECT MAX ( - 35 ) AS col0 FROM tab2
----
-35

query I rowsort
SELECT col0 FROM tab0 WHERE + - col0 * - 29 + + 14 * + col0 NOT BETWEEN NULL AND + ( + ( + ( + col0 ) ) )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9518
SELECT + col2 - + col2 / CAST( CAST( 30 AS SIGNED ) * 55 AS SIGNED ) AS col2 FROM tab0 WHERE - - col1 * + col0 < ( - col2 - col2 )
----

skipif mysql # not compatible
query I rowsort label-9518
SELECT + col2 - + col2 / CAST ( CAST ( 30 AS INTEGER ) * 55 AS INTEGER ) AS col2 FROM tab0 WHERE - - col1 * + col0 < ( - col2 - col2 )
----

query I rowsort
SELECT + col0 * - ( + - col0 ) AS col1 FROM tab2
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 19 AS col0, - 5 + ( - 89 ) col0 FROM tab2
----
19
-94
19
-94
19
-94

query I rowsort
SELECT - col1 * 13 FROM tab1
----
-182
-611
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT 12 - - 24 * + + COUNT( + col2 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9522
SELECT 12 - - 24 * + + COUNT ( + col2 ) FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT - 65 + 95 * 0 AS col1 FROM tab1, tab1 AS cor0 WHERE 37 * - - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9523
SELECT - 65 + 95 * 0 AS col1 FROM tab1, tab1 AS cor0 WHERE 37 * - - CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9524
SELECT - col0 * + - col0 + col1 / + ( - CAST( NULL AS SIGNED ) ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9524
SELECT - col0 * + - col0 + col1 / + ( - CAST ( NULL AS INTEGER ) ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT ALL + COUNT( * ) * + MAX( ALL - + col1 ) FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL + COUNT ( * ) * + MAX ( ALL - + col1 ) FROM tab2
----
-153

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + - ( + col2 ) + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT - COUNT( * ) * - 94 FROM tab1 cor0
----
282

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - COUNT ( * ) * - 94 FROM tab1 cor0
----
282

query I rowsort
SELECT ALL + + col2 + + 17 FROM tab2 AS cor0
----
40
57
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9529
SELECT DISTINCT + COUNT( * ), - 37 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
-37

skipif mysql # not compatible
query II rowsort label-9529
SELECT DISTINCT + COUNT ( * ), - 37 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-9530
SELECT DISTINCT col2 DIV - 63 AS col2, + col2 AS col0 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9530
SELECT DISTINCT col2 / - 63 AS col2, + col2 AS col0 FROM tab2
----
0
23
0
40
0
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 76 * + col1 IS NOT NULL AND NULL >= + ( + ( - 76 ) ) - 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT ALL ( - ( - CAST( COUNT( * ) AS SIGNED ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL ( - ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 0 / - 4 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 + + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9535
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9535
SELECT * FROM tab2 AS cor0 WHERE NOT + 97 * CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( + 73 ) * ( + col1 ) AS col2 FROM tab1 cor0
----
1022
3431
365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 col0 FROM tab1 cor0
----
43

query I rowsort
SELECT ALL - col1 * col0 FROM tab2 AS cor0 WHERE NOT - col1 BETWEEN + - col2 + + - col1 + - col0 AND ( + - col0 )
----
-5025

query I rowsort
SELECT col0 * + 8 FROM tab2
----
368
512
600

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT SUM( ALL 78 ) FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-9540
SELECT SUM ( ALL 78 ) FROM tab1
----
234

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - 74 ) BETWEEN + + col1 AND ( - + col2 / col1 + + ( + col0 ) )
----

query I rowsort
SELECT + + 72 + + + col2 * col2 + - col1 AS col1 FROM tab1 WHERE NOT - col0 IS NULL
----
3548
4649
9274

query II rowsort
SELECT ALL col0 AS col0, col2 + - + 85 FROM tab1
----
51
11
85
-26
91
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 WHERE + CAST( NULL AS SIGNED ) - + + col1 + 65 IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - + + col1 + 65 IS NULL
----
12

query I rowsort
SELECT DISTINCT + col0 * + 67 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT col0 * - - 53 + + col1 FROM tab2 AS cor0
----
2489
3469
4042

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT - - ( - MAX( 52 ) ) AS col2 FROM tab0 cor0 WHERE NOT - col2 * - 20 * + col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - - ( - MAX ( 52 ) ) AS col2 FROM tab0 cor0 WHERE NOT - col2 * - 20 * + col0 BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT col0 * - col0, col0 + col2 AS col1 FROM tab0
----
-225
62
-7569
97
-9409
196

onlyif mysql # aggregate syntax: 
query II rowsort label-9549
SELECT DISTINCT - 70, - ( COUNT( * ) ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
-70
-3

skipif mysql # not compatible
query II rowsort label-9549
SELECT DISTINCT - 70, - ( COUNT ( * ) ) AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
-70
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9550
SELECT ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 12 ) IS NOT NULL
----

query I rowsort
SELECT - 31 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT 43 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - 69 + + MIN( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9554
SELECT - 69 + + MIN ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT DISTINCT - col2 * - col2 + - 52 + ( 43 ) + + col2 AS col0 FROM tab0 AS cor0
----
101
2247
9891

onlyif mysql # DIV for integer division: 
query II rowsort label-9556
SELECT + col2 + + - ( + 24 ) * + col0, + col1 DIV 94 col0 FROM tab1 AS cor0
----
-1128
0
-1981
0
-2116
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9556
SELECT + col2 + + - ( + 24 ) * + col0, + col1 / 94 col0 FROM tab1 AS cor0
----
-1128
0
-1981
0
-2116
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL - COUNT( * ) + + 92 AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - COUNT ( * ) + + 92 AS col1 FROM tab2 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT - COUNT( * ) + + 57 AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT - COUNT ( * ) + + 57 AS col0 FROM tab2 AS cor0
----
54

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9560
SELECT ALL + col0 * ( + CAST( NULL AS SIGNED ) ) + + col1 / + - 56 AS col0, 44 FROM tab1 AS cor0
----
NULL
44
NULL
44
NULL
44

skipif mysql # not compatible
query II rowsort label-9560
SELECT ALL + col0 * ( + CAST ( NULL AS INTEGER ) ) + + col1 / + - 56 AS col0, 44 FROM tab1 AS cor0
----
NULL
44
NULL
44
NULL
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - 89 + - COUNT( * ) AS col0 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 89 + - COUNT ( * ) AS col0 FROM tab2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT DISTINCT col1 * + CAST( - + col0 AS SIGNED ) + - + col0 AS col1 FROM tab1
----
-4368
-510
-765

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT col1 * + CAST ( - + col0 AS INTEGER ) + - + col0 AS col1 FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT * FROM tab1 WHERE ( - 16 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + MIN( ALL - 80 ) FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + MIN ( ALL - 80 ) FROM tab1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9565
SELECT + + col0 + - - col1 + - col1 DIV - 53 AS col0 FROM tab1 WHERE NULL IS NULL
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9565
SELECT + + col0 + - - col1 + - col1 / - 53 AS col0 FROM tab1 WHERE NULL IS NULL
----
138
65
90

query I rowsort
SELECT ALL - 7 * - col0 AS col2 FROM tab1
----
357
595
637

query II rowsort
SELECT col1 * col0 * col1 AS col0, + col2 FROM tab0
----
38367
10
97
99
98415
47

query III rowsort
SELECT * FROM tab0 WHERE - + ( 95 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9569
SELECT ( + CAST( NULL AS SIGNED ) ) * - 21 / + 13 - + MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ( + CAST ( NULL AS INTEGER ) ) * - 21 / + 13 - + MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT ( - + col0 ) - + col1 FROM tab0 AS cor0
----
-108
-96
-98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( - col1 ) AND + col2 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query II rowsort
SELECT DISTINCT + - col2, col0 AS col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT DISTINCT - + 60 AS col2, col1 FROM tab0 AS cor0
----
-60
1
-60
21
-60
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + ( + col0 ) col2 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT - COUNT( * ) * - MAX( ALL + col0 ) * - + SUM( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
45396

skipif mysql # not compatible
query I rowsort label-9579
SELECT - COUNT ( * ) * - MAX ( ALL + col0 ) * - + SUM ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
45396

query I rowsort
SELECT DISTINCT - col2 * col1 * + - col2 * - 99 FROM tab1 AS cor0
----
-12773376
-1723095
-21515472

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + - 89 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 87 col2, col2 FROM tab1 AS cor0
----
-87
59
-87
68
-87
96

query I rowsort
SELECT - + col2 * - - col0 * - - col1 FROM tab1 cor0
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query II rowsort label-9584
SELECT DISTINCT 35 * - + col0, + col0 DIV - - 69 AS col2 FROM tab2
----
-1610
0
-2240
0
-2625
1

skipif mysql # not compatible
query II rowsort label-9584
SELECT DISTINCT 35 * - + col0, + col0 / - - 69 AS col2 FROM tab2
----
-1610
0
-2240
0
-2625
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT + SUM( - 65 ) col0 FROM tab1
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9585
SELECT DISTINCT + SUM ( - 65 ) col0 FROM tab1
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - 27 * + 2 + + - COUNT( * ) FROM tab0 WHERE - col0 IS NOT NULL
----
-57

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - 27 * + 2 + + - COUNT ( * ) FROM tab0 WHERE - col0 IS NOT NULL
----
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( - col0 ) AS col1, + 75 AS col1 FROM tab0
----
-15
75
-87
75
-97
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9589
SELECT ALL col1 / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL col1 / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 + + col1 * - + 16 AS col0 FROM tab1
----
-100
-244
-772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 AS cor0 WHERE NOT 6 * - + 76 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 16 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 99 - - 44 FROM tab1 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9594
SELECT 64 - + CAST( + - col1 AS SIGNED ) FROM tab0
----
145
65
85

skipif mysql # not compatible
query I rowsort label-9594
SELECT 64 - + CAST ( + - col1 AS INTEGER ) FROM tab0
----
145
65
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9595
SELECT ALL col2 * 7 + - CAST( - col2 AS SIGNED ), - 55 AS col1 FROM tab2
----
184
-55
320
-55
464
-55

skipif mysql # not compatible
query II rowsort label-9595
SELECT ALL col2 * 7 + - CAST ( - col2 AS INTEGER ), - 55 AS col1 FROM tab2
----
184
-55
320
-55
464
-55

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + - col1 + - - col0
----

query III rowsort
SELECT * FROM tab2 WHERE + 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 91 * + - 80 * + col2 - + - col0 FROM tab1
----
429605
495131
698931

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT MAX( + - col2 ) + COUNT( DISTINCT - col1 ) col1 FROM tab2
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT MAX ( + - col2 ) + COUNT ( DISTINCT - col1 ) col1 FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9600
SELECT col2 + + CAST( + - col1 AS SIGNED ) AS col1 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9600
SELECT col2 + + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - COUNT( * ) * + 93 + - ( - COUNT( * ) ) FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-9601
SELECT - COUNT ( * ) * + 93 + - ( - COUNT ( * ) ) FROM tab2
----
-276

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 + - - 65 col0 FROM tab1
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT DISTINCT - + 94 DIV 77 - - col0 + col1 FROM tab1 AS cor0
----
137
64
89

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT - + 94 / 77 - - col0 + col1 FROM tab1 AS cor0
----
137
64
89

query II rowsort
SELECT ALL col0, + 8 FROM tab2
----
46
8
64
8
75
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-9606
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 * + col1 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9608
SELECT - - col2 * - col2 * + + col0, col2 + + CAST( - ( + col2 ) AS SIGNED ) DIV + 55 AS col1 FROM tab1 AS cor0
----
-295885
58
-420784
67
-470016
95

skipif mysql # not compatible
query II rowsort label-9608
SELECT - - col2 * - col2 * + + col0, col2 + + CAST ( - ( + col2 ) AS INTEGER ) / + 55 AS col1 FROM tab1 AS cor0
----
-295885
58
-420784
67
-470016
95

query II rowsort
SELECT - ( ( + 97 ) ) AS col0, col1 FROM tab0 AS cor0
----
-97
1
-97
21
-97
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT + COUNT( - 14 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT + COUNT ( - 14 ) AS col1 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 49 * - col2 col2 FROM tab2 AS cor0
----
-164836
-25921
-78400

query II rowsort
SELECT ALL + col2 + + - col1 AS col1, 76 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT - CAST( + col0 AS SIGNED ) FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9613
SELECT - CAST ( + col0 AS INTEGER ) FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 10 NOT BETWEEN NULL AND - col1 * col0
----

query I rowsort
SELECT - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT ALL col0 AS col2, - ( + col2 ) AS col2 FROM tab2
----
46
-23
64
-40
75
-58

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 72 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 49 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + - + ( ( + 14 ) ) * + col0 FROM tab2
----
-621
-856
-992

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < ( 99 * + col0 + - - col0 + + - 60 + col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT DISTINCT + 64 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9624
SELECT + col0, - 30 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <> + 16
----

skipif mysql # not compatible
query II rowsort label-9624
SELECT + col0, - 30 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 <> + 16
----

query I rowsort
SELECT + col2 * + + 14 + + + ( + ( + ( + col0 ) ) ) + - + ( col1 ) FROM tab2 cor0
----
317
547
820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT + 39 * + ( - CAST( - COUNT( * ) AS SIGNED ) ) * - 61 + ( - 33 ) AS col1 FROM tab2 AS cor0
----
-7170

skipif mysql # not compatible
query I rowsort label-9626
SELECT + 39 * + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) * - 61 + ( - 33 ) AS col1 FROM tab2 AS cor0
----
-7170

query II rowsort
SELECT + col0 AS col0, - col2 * - col1 FROM tab1 AS cor0
----
51
1344
85
295
91
3196

query II rowsort
SELECT - 45 * - - col2 AS col1, + col2 + + 76 FROM tab0
----
-2115
123
-4455
175
-450
86

query II rowsort
SELECT DISTINCT - ( col2 ) * - col0 AS col0, col2 AS col1 FROM tab2
----
1058
23
2560
40
4350
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT COUNT( + 33 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-9630
SELECT COUNT ( + 33 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL col0 * 99 FROM tab1 AS cor0
----
5049
8415
9009

query I rowsort
SELECT DISTINCT + col0 + + + col2 - + + 26 + - - col2 * + 32 * + - col2 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-313462
-5725692
-67129

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) * + - 67 FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-9633
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) * + - 67 FROM tab2 AS cor0
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) - + 14 * - + CAST( 90 AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) - + 14 * - + CAST ( 90 AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - 38 - - - col2 - col1 * + col1 * - col2 * col1 FROM tab2
----
17444158
18261242
3050912

query III rowsort
SELECT * FROM tab1 WHERE ( + 61 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2 AS col1, - col0 * + col0 * + + col1 * - col1 * 13 AS col1 FROM tab2
----
23
71548308
40
315707392
58
328258125

query I rowsort
SELECT col1 - + ( + - col1 ) + + - 46 AS col1 FROM tab1
----
-18
-36
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT COUNT( DISTINCT 19 ) - 94 AS col2 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-9639
SELECT COUNT ( DISTINCT 19 ) - 94 AS col2 FROM tab2
----
-93

query I rowsort
SELECT + col2 - + 4 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9641
SELECT ALL - - COUNT( * ) AS col2, + ( - 75 ) FROM tab1 AS cor0
----
3
-75

skipif mysql # not compatible
query II rowsort label-9641
SELECT ALL - - COUNT ( * ) AS col2, + ( - 75 ) FROM tab1 AS cor0
----
3
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT MAX( ALL - 86 ) col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9642
SELECT DISTINCT MAX ( ALL - 86 ) col2 FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT - ( - COUNT( + - 1 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - ( - COUNT ( + - 1 ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 64 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-64
46
-64
64
-64
75

query I rowsort
SELECT DISTINCT - - 83 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 61 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # DIV for integer division: 
query II rowsort label-9647
SELECT + col2 col0, col1 DIV - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
-1
40
-1
58
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9647
SELECT + col2 col0, col1 / - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
-1
40
-1
58
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9648
SELECT - ( 65 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * col2 IN ( + col0 + + col1 - col0, CAST( NULL AS SIGNED ), - + col2, + 5 )
----

skipif mysql # not compatible
query I rowsort label-9648
SELECT - ( 65 ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * col2 IN ( + col0 + + col1 - col0, CAST ( NULL AS INTEGER ), - + col2, + 5 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT COUNT( * ) * + 82 AS col2 FROM tab1 cor0
----
246

skipif mysql # not compatible
query I rowsort label-9649
SELECT COUNT ( * ) * + 82 AS col2 FROM tab1 cor0
----
246

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 + col2 / - ( - col0 ) * 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
8

query I rowsort
SELECT col0 * + 33 AS col1 FROM tab1
----
1683
2805
3003

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9653
SELECT ALL + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9653
SELECT ALL + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL + col2 * + col2 * - col1 - - col0 + - + col0 AS col2 FROM tab0 WHERE NOT - 80 BETWEEN col2 AND NULL
----
-178929
-2100
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-9655
SELECT + col2 DIV - 49 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9655
SELECT + col2 / - 49 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT COUNT( * ) * - + 77 AS col1 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( * ) * - + 77 AS col1 FROM tab1
----
-231

query II rowsort
SELECT ALL col0, - 91 + - - ( col1 ) AS col0 FROM tab0
----
15
-10
87
-70
97
-90

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + ( + col2 ) / + - col1
----

query I rowsort
SELECT col2 * - col1 + + col0 AS col0 FROM tab0
----
-123
-2
-3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col0 FROM tab0 AS cor0 WHERE + col1 * - col0 IS NULL
----

query II rowsort
SELECT - ( + col0 ), ( + + col0 ) AS col1 FROM tab1 cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL col2 * - + 25 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + - + 47 FROM tab0
----
-32
40
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT DISTINCT col0 + + col2 DIV - col0 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT col0 + + col2 / - col0 FROM tab1
----
50
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9665
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9665
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9666
SELECT - 60 * - 51 * - COUNT( * ) AS col1, - 1 FROM tab2
----
-9180
-1

skipif mysql # not compatible
query II rowsort label-9666
SELECT - 60 * - 51 * - COUNT ( * ) AS col1, - 1 FROM tab2
----
-9180
-1

query I rowsort
SELECT + - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT ALL 27 DIV - + 46 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 27 / - + 46 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - - 44 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + - ( + 71 ) AS col1 FROM tab1 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - ( col0 ) * - col0 col0 FROM tab0
----
-3375
-658503
-912673

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT + ( - ( + + col2 ) ) DIV col0 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + ( - ( + + col2 ) ) / col0 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT - MAX( DISTINCT + 65 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - MAX ( DISTINCT + 65 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-65

query II rowsort
SELECT DISTINCT + col1 AS col0, col0 FROM tab1 cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9677
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 73 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9677
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 73 AND + + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT ALL ( + + 96 ) FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL MIN( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col1 ) col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT + SUM( col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9682
SELECT + SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT col1 * - - 29 - col0 FROM tab2 AS cor0
----
1433
1868
2169

onlyif mysql # DIV for integer division: 
query II rowsort label-9684
SELECT DISTINCT 54 + 58 - + 63, - col1 DIV col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
49
0

skipif mysql # not compatible
query II rowsort label-9684
SELECT DISTINCT 54 + 58 - + 63, - col1 / col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
49
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9685
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9685
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col0 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT - col1 + col2 FROM tab0 AS cor0 WHERE ( NOT NULL BETWEEN ( + col0 ) AND col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9688
SELECT DISTINCT + COUNT( ALL - col0 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + COUNT ( ALL - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 26 AS col0, col1 FROM tab2 AS cor0
----
26
51
26
67
26
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - 13 col0, - 84 * col1 - - col1 AS col1 FROM tab1
----
-182
-1162
-611
-3901
-65
-415

query I rowsort
SELECT ALL + col0 * - col2 * - - col2 * - col0 FROM tab1
----
23970816
25150225
38291344

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT + ( 26 ) * + COUNT( * ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT + ( 26 ) * + COUNT ( * ) FROM tab0
----
78

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + 66 NOT IN ( + + 44, col0, - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 * 39, + 24, col2 )
----

query I rowsort
SELECT + 24 * - 27 FROM tab1 AS cor0
----
-648
-648
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT + COUNT( col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9697
SELECT + COUNT ( col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + + 14 = - - ( 97 ) + - col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT COUNT( * ) + + 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-9699
SELECT COUNT ( * ) + + 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL 37 + - - COUNT( * ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL 37 + - - COUNT ( * ) FROM tab1 AS cor0
----
40

query II rowsort
SELECT + ( col2 ), - col0 AS col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) AS col0, - COUNT( * ) FROM tab2 cor0
----
-6
-3

skipif mysql # not compatible
query II rowsort label-9702
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2 cor0
----
-6
-3

query I rowsort
SELECT - col1 * ( + - col2 ) AS col1 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 5 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - col1 * + - 92 FROM tab1
----
1288
4324
460

query I rowsort
SELECT ALL + 55 FROM tab2 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + 68 * - + col2 FROM tab0
----
-3196
-6732
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9709
SELECT CAST( 47 AS SIGNED ) AS col1 FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-9709
SELECT CAST ( 47 AS INTEGER ) AS col1 FROM tab2
----
47
47
47

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT ALL - 41 * - + 95 AS col1 FROM tab2
----
3895
3895
3895

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT - COUNT( * ) + - 3 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-9712
SELECT - COUNT ( * ) + - 3 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT col0 + - col0 + + col1 + col0 FROM tab2 cor0
----
141
142
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 69 <= + ( - col2 )
----
85
5
59
91
47
68

query I rowsort
SELECT col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT + MIN( - - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9716
SELECT + MIN ( - - col1 ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab1 WHERE + 29 IS NULL
----

query I rowsort
SELECT + - ( + 14 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT col2 / + col2 + - 77 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col1 - - + col2 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT ALL CAST( - 71 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL CAST ( - 71 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + 82 FROM tab0 cor0
----
82
82
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= - + col1
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= - + col1
----
0

query I rowsort
SELECT DISTINCT + ( - col0 ) * + 70 FROM tab1 AS cor0
----
-3570
-5950
-6370

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + - col0, + 13, 42 )
----

query I rowsort
SELECT ALL 40 * - + col1 FROM tab0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + COUNT( ALL + ( 55 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9726
SELECT + COUNT ( ALL + ( 55 ) ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL col2, + col2 * + + 46 AS col0, + col1 FROM tab1
----
9 values hashing to 2d8599c9c677f1cafed4a79aeadb9cc1

query I rowsort
SELECT DISTINCT col0 * + 83 * - ( col0 ) FROM tab2
----
-175628
-339968
-466875

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + - - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL MIN( - - 63 ) FROM tab0 WHERE ( - - 16 ) IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL MIN ( - - 63 ) FROM tab0 WHERE ( - - 16 ) IS NOT NULL
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT - - 88 - ( - COUNT( * ) ) AS col1 FROM tab0 WHERE NOT - 36 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-9732
SELECT - - 88 - ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT - 36 IS NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT ALL 24 + COUNT( * ) col2 FROM tab0, tab0 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9733
SELECT ALL 24 + COUNT ( * ) col2 FROM tab0, tab0 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT ALL - + 75 * + - MIN( + - col1 ) AS col1 FROM tab0 AS cor0
----
-6075

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - + 75 * + - MIN ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL - COUNT( * ) * - 97 AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL - COUNT ( * ) * - 97 AS col1 FROM tab0 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-9737
SELECT + col0 DIV + + 60 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9737
SELECT + col0 / + + 60 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9738
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9738
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL ( - + 84 ) AS col2 FROM tab1
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2346
4928
5025

query I rowsort
SELECT + 26 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1117
-1575
-649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 + 29 col2 FROM tab2 AS cor0
----
126
170
171

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - SUM( ALL + col2 ) + 82 col2 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9743
SELECT - SUM ( ALL + col2 ) + 82 col2 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT + col0 + + 92 + - col0 AS col2 FROM tab0 cor0
----
92
92
92

query I rowsort
SELECT ALL 98 + + col2 FROM tab2
----
121
138
156

query I rowsort
SELECT 64 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 68 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT DISTINCT + CAST( MIN( - 80 ) AS SIGNED ) FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + CAST ( MIN ( - 80 ) AS INTEGER ) FROM tab2
----
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 43 * - + ( + 48 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT 29 DIV SUM( 54 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9751
SELECT 29 / SUM ( 54 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9752
SELECT MIN( - 8 ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9752
SELECT MIN ( - 8 ) FROM tab0 AS cor0
----
-8

query I rowsort
SELECT ALL + 81 + - ( col2 ) FROM tab0 AS cor0
----
-18
34
71

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9754
SELECT + - col2 * + - 58, + col2 col0 FROM tab1 AS cor0 WHERE col2 BETWEEN ( CAST( + + col0 AS DECIMAL ) ) AND col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9754
SELECT + - col2 * + - 58, + col2 col0 FROM tab1 AS cor0 WHERE col2 BETWEEN ( CAST ( + + col0 AS REAL ) ) AND col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 74 <= + col2
----

query I rowsort
SELECT 85 FROM tab0 AS cor0 WHERE + 10 * + col2 - - + col1 NOT BETWEEN - 77 AND + col0 * 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT DISTINCT col0 + col0 + + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT col0 + col0 + + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 * ( - col2 ) AS col0, + col2 AS col0 FROM tab2 WHERE NOT + col2 IS NULL
----
-1173
23
-3080
40
-3886
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 14
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL - CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 FROM tab0 WHERE NOT + col1 = ( + + col2 * + col2 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT + + CAST( ( col0 ) AS SIGNED ) * - + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-9762
SELECT + + CAST ( ( col0 ) AS INTEGER ) * - + col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT - MIN( ALL + - 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - MIN ( ALL + - 99 ) FROM tab2 AS cor0
----
99

query II rowsort
SELECT ALL + col0 AS col0, col1 + - 28 FROM tab1 AS cor0
----
51
-14
85
-23
91
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - col1 - 31 - ( + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT - + MAX( DISTINCT - 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT - + MAX ( DISTINCT - 53 ) FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-9767
SELECT DISTINCT - COUNT( * ), COUNT( * ) col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9767
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT ALL - - 21 FROM tab2 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT - SUM( DISTINCT 36 ) AS col1 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9769
SELECT - SUM ( DISTINCT 36 ) AS col1 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT DISTINCT + - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT + - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT ALL col0 FROM tab2 WHERE - col1 + + + CAST( NULL AS SIGNED ) * - ( col1 ) * 46 + ( - col2 ) - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL col0 FROM tab2 WHERE - col1 + + + CAST ( NULL AS INTEGER ) * - ( col1 ) * 46 + ( - col2 ) - col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - - 23 ) AND NULL
----

query I rowsort
SELECT DISTINCT 68 * col1 FROM tab0
----
1428
5508
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9775
SELECT + CAST( NULL AS DECIMAL ) / 31 / - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9775
SELECT + CAST ( NULL AS REAL ) / 31 / - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * + 32 AS col0 FROM tab2 AS cor0
----
-1280
-1856
-736

query I rowsort
SELECT DISTINCT col2 + + - 87 AS col2 FROM tab0 cor0
----
-40
-77
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + 89 / col1 * - + ( - - col2 ) BETWEEN - col2 + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 93 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - + MIN( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9780
SELECT - + MIN ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col1 * + - col2 + - - col2 FROM tab2 cor0
----
-1150
-3040
-3828

query I rowsort
SELECT - col1 - - + col2 * - - 96 AS col2 FROM tab2
----
2157
3763
5501

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT DISTINCT MAX( - col1 ) AS col1, + COUNT( * ) * + COUNT( * ) * + - 67 AS col1 FROM tab2
----
-51
-603

skipif mysql # not compatible
query II rowsort label-9783
SELECT DISTINCT MAX ( - col1 ) AS col1, + COUNT ( * ) * + COUNT ( * ) * + - 67 AS col1 FROM tab2
----
-51
-603

query I rowsort
SELECT - 53 + - col2 * - col2 FROM tab0
----
2156
47
9748

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL MAX( col0 ) * ( 77 ) AS col1 FROM tab0
----
7469

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL MAX ( col0 ) * ( 77 ) AS col1 FROM tab0
----
7469

query I rowsort
SELECT DISTINCT + col2 + - col2 * + - col2 FROM tab2 cor0
----
1640
3422
552

query I rowsort
SELECT + col2 + 32 + col0 * + col1 * - + col0 AS col2 FROM tab0 AS cor0
----
-158907
-18146
-9278

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT - + 20 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9789
SELECT - + 20 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT ALL - - col0 + - 46 * + 26 AS col0 FROM tab0 cor0
----
-1099
-1109
-1181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * + col1 col0 FROM tab2
----
3060
4020
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT DISTINCT - col0 DIV 36 AS col0 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT DISTINCT - col0 / 36 AS col0 FROM tab0 AS cor0
----
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9793
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

skipif mysql # not compatible
query II rowsort label-9793
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col2 * - col0 + + - col1 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT DISTINCT + + CAST( 7 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT + + CAST ( 7 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 5 + + - 82 * col0 - + 63 BETWEEN col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9798
SELECT + ( + + col2 ) DIV col2 col1, col2 AS col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9798
SELECT + ( + + col2 ) / col2 col1, col2 AS col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

query II rowsort
SELECT ALL col0 AS col0, - ( + 83 ) - 85 FROM tab2
----
46
-168
64
-168
75
-168

query II rowsort
SELECT ALL - col1 AS col0, col0 * - ( - - col0 ) AS col1 FROM tab1
----
-14
-2601
-47
-8281
-5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-9801
SELECT MIN( col1 ) * + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9801
SELECT MIN ( col1 ) * + COUNT ( * ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 33 / - 80 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT ALL - + CAST( + 99 AS SIGNED ) AS col0 FROM tab0 cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - + CAST ( + 99 AS INTEGER ) AS col0 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT - SUM( DISTINCT - 20 ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9804
SELECT - SUM ( DISTINCT - 20 ) FROM tab0 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT + SUM( ALL 43 ) AS col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-9805
SELECT + SUM ( ALL 43 ) AS col0 FROM tab0 AS cor0
----
129

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - - 33 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + - col0 ) FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - ( ( + - 34 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query III rowsort
SELECT * FROM tab2 WHERE - col0 - - 94 >= col2
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT + MIN( ALL 52 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-9811
SELECT + MIN ( ALL 52 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
52

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT SUM( DISTINCT + 82 ) + - - 56 * 69 FROM tab0 AS cor0
----
3946

skipif mysql # not compatible
query I rowsort label-9813
SELECT SUM ( DISTINCT + 82 ) + - - 56 * 69 FROM tab0 AS cor0
----
3946

query I rowsort
SELECT ALL - 16 * + + 61 * - col2 FROM tab2 AS cor0
----
22448
39040
56608

query II rowsort
SELECT ALL col0 + - col2 AS col2, - 1 AS col0 FROM tab1 AS cor0
----
-45
-1
23
-1
26
-1

query I rowsort
SELECT DISTINCT + 87 + - + 57 AS col0 FROM tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT - col0 + - - 12 AS col0 FROM tab0 AS cor0
----
-3
-75
-85

query II rowsort
SELECT - - col0 + 74, - col0 * + 86 AS col1 FROM tab2 AS cor0
----
120
-3956
138
-5504
149
-6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT 41 AS col1 FROM tab2 WHERE NOT CAST( + + col2 AS SIGNED ) + - col2 NOT IN ( + - CAST( NULL AS SIGNED ) * + + col1 - - col0, 98, + col2 * - 92 + + 31 )
----

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT 41 AS col1 FROM tab2 WHERE NOT CAST ( + + col2 AS INTEGER ) + - col2 NOT IN ( + - CAST ( NULL AS INTEGER ) * + + col1 - - col0, 98, + col2 * - 92 + + 31 )
----

query I rowsort
SELECT ALL + col0 - + - col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9821
SELECT ALL 5 DIV - - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL 5 / - - COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT DISTINCT ( + - col0 ) * + 34 FROM tab2
----
-1564
-2176
-2550

query I rowsort
SELECT 26 * 80 FROM tab2
----
2080
2080
2080

onlyif mysql # DIV for integer division: 
query I rowsort label-9824
SELECT + col0 DIV 99 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT + col0 / 99 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9825
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 6 + - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 6 + - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 33 + + 13 FROM tab1 cor0
----
-20

query I rowsort
SELECT ALL col1 + - + col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-9828
SELECT ALL - col0 col1, col0 DIV - - col0 FROM tab1
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9828
SELECT ALL - col0 col1, col0 / - - col0 FROM tab1
----
-51
1
-85
1
-91
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - + col0 <> + col0 * col0 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT COUNT( DISTINCT + 1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9830
SELECT COUNT ( DISTINCT + 1 ) AS col0 FROM tab0
----
1

query II rowsort
SELECT col0 AS col2, + 78 * + + col0 AS col2 FROM tab0
----
15
1170
87
6786
97
7566

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT - COUNT( * ) * + COUNT( * ) AS col1, 23 * - COUNT( - - 63 ) AS col0 FROM tab1
----
-9
-69

skipif mysql # not compatible
query II rowsort label-9832
SELECT - COUNT ( * ) * + COUNT ( * ) AS col1, 23 * - COUNT ( - - 63 ) AS col0 FROM tab1
----
-9
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL + + CAST( NULL AS SIGNED ) / - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + + CAST ( NULL AS INTEGER ) / - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + 42 * - 29 AS col1, - 82 FROM tab1 AS cor0
----
-1218
-82
-1218
-82
-1218
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT - - ( MAX( ALL col2 ) ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-9835
SELECT - - ( MAX ( ALL col2 ) ) FROM tab0 cor0
----
99

query II rowsort
SELECT - col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9837
SELECT - + SUM( DISTINCT - + CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9837
SELECT - + SUM ( DISTINCT - + CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL + COUNT( - col1 ) + + - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-18

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + COUNT ( - col1 ) + + - 18 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = 39 * + + CAST( - col0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL = 39 * + + CAST ( - col0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9840
SELECT * FROM tab1 WHERE NOT ( NOT col2 >= - CAST( - + 46 AS SIGNED ) * + col0 * - ( + + col2 ) - + 51 + - col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9840
SELECT * FROM tab1 WHERE NOT ( NOT col2 >= - CAST ( - + 46 AS INTEGER ) * + col0 * - ( + + col2 ) - + 51 + - col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL <= - + col0 + + 29 - - 94
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT + col2 * col2 DIV - col0 AS col2 FROM tab1
----
-180
-40
-50

skipif mysql # not compatible
query I rowsort label-9842
SELECT + col2 * col2 / - col0 AS col2 FROM tab1
----
-180
-40
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT COUNT( * ) DIV + SUM( ALL - 48 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9843
SELECT COUNT ( * ) / + SUM ( ALL - 48 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT DISTINCT + 28 + + COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9844
SELECT DISTINCT + 28 + + COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL + COUNT( DISTINCT - 89 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL + COUNT ( DISTINCT - 89 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 31 + + + col0 * - col2 FROM tab1 AS cor0
----
-4865
-4984
-6157

query II rowsort
SELECT ALL + col1 AS col1, + col2 AS col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9848
SELECT ALL * FROM tab2 WHERE NOT NULL = + col1 + - CAST( - col0 AS SIGNED ) + - ( + - ( CAST( + - col2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9848
SELECT ALL * FROM tab2 WHERE NOT NULL = + col1 + - CAST ( - col0 AS INTEGER ) + - ( + - ( CAST ( + - col2 AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT ALL 67 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL 67 + col2 / col2 AS col1 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT - 10 * - - col2 + 26 FROM tab1 AS cor0 WHERE ( - - 19 ) * + col2 / + col1 * - col1 IS NULL
----

query I rowsort
SELECT ( + + ( - col0 ) ) * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9852
SELECT ALL + COUNT( * ) DIV - 92 FROM tab1 AS cor0 WHERE - 87 DIV + col0 * + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + COUNT ( * ) / - 92 FROM tab1 AS cor0 WHERE - 87 / + col0 * + + col2 IS NULL
----
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NOT NULL <> + 62 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 <> NULL
----

query I rowsort
SELECT ALL - - 61 + + + 67 + - - 98 * - + 66 - - col0 + - - col0 FROM tab0 cor0
----
-6146
-6166
-6310

query I rowsort
SELECT ALL col1 - + 30 AS col2 FROM tab2 AS cor0
----
21
37
47

query I rowsort
SELECT ALL col1 * ( - - 38 ) AS col0 FROM tab1
----
1786
190
532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9858
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 - col2 + + - col0 AS col1 FROM tab1
----
-149
-161
-206

query II rowsort
SELECT 5 + + col2 AS col0, col0 + + col0 - col0 FROM tab0
----
104
97
15
87
52
15

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT DISTINCT + COUNT( * ) - - + SUM( ALL - 39 ) + 48, + 34 AS col1 FROM tab1
----
-66
34

skipif mysql # not compatible
query II rowsort label-9861
SELECT DISTINCT + COUNT ( * ) - - + SUM ( ALL - 39 ) + 48, + 34 AS col1 FROM tab1
----
-66
34

query I rowsort
SELECT DISTINCT - 70 - + 97 FROM tab0
----
-167

query I rowsort
SELECT ALL - col1 * + 50 FROM tab2 AS cor0
----
-2550
-3350
-3850

query II rowsort
SELECT ALL + col2 * - 88, col2 AS col2 FROM tab2 AS cor0
----
-2024
23
-3520
40
-5104
58

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( - + 81, col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT ALL + CAST( - 19 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL + CAST ( - 19 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL 82 * col0 AS col1 FROM tab1
----
4182
6970
7462

query II rowsort
SELECT DISTINCT + 99 AS col1, - col0 FROM tab0 AS cor0
----
99
-15
99
-87
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT DISTINCT MIN( col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT MIN ( col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT DISTINCT - COUNT( * ) * - 30 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - COUNT ( * ) * - 30 FROM tab0 AS cor0
----
90

query I rowsort
SELECT - 54 * - + 43 FROM tab1 AS cor0
----
2322
2322
2322

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT ALL - 78 * + MAX( - 6 ) + + 89 AS col2 FROM tab0 AS cor0
----
557

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL - 78 * + MAX ( - 6 ) + + 89 AS col2 FROM tab0 AS cor0
----
557

query I rowsort
SELECT DISTINCT 29 * - col1 + - col0 FROM tab2 AS cor0
----
-1525
-2018
-2297

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND + - 95
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9875
SELECT + + COUNT( * ) DIV 69 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT + + COUNT ( * ) / 69 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - col1 + - - 61, col0 FROM tab1
----
14
91
47
51
56
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT 34 * - + col2 + - CAST( NULL AS SIGNED ) + 44 + 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT 34 * - + col2 + - CAST ( NULL AS INTEGER ) + 44 + 15 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 + col2 * 5 IS NOT NULL
----

query I rowsort
SELECT + ( + 51 ) AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - 13 FROM tab2 AS cor0 WHERE - col1 / + ( - 16 ) + - col2 IS NOT NULL
----
13

query II rowsort
SELECT DISTINCT + + 75 AS col2, col2 AS col2 FROM tab0 AS cor0
----
75
10
75
47
75
99

query I rowsort
SELECT DISTINCT + - 55 * col2 * - - 74 FROM tab1 cor0 WHERE col2 <> + col2 / - col2 * + col2
----
-240130
-276760
-390720

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col0 < + + 31 )
----
87
21
10
97
1
99

query I rowsort
SELECT ALL 27 + - - col2 * - col2 FROM tab1
----
-3454
-4597
-9189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT - CAST( - col2 AS SIGNED ) + + - 7 + + col0 AS col0 FROM tab0 cor0
----
189
55
90

skipif mysql # not compatible
query I rowsort label-9886
SELECT - CAST ( - col2 AS INTEGER ) + + - 7 + + col0 AS col0 FROM tab0 cor0
----
189
55
90

query I rowsort
SELECT ALL - - 71 + + - 63 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + COUNT( * ) + 55 * COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9888
SELECT + COUNT ( * ) + 55 * COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
168

query I rowsort
SELECT 74 + + col1 + col2 AS col2 FROM tab2 AS cor0
----
148
191
199

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col1 + - col2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9892
SELECT * FROM tab2 WHERE + - col1 / - 3 - - - col2 + + - CAST( NULL AS SIGNED ) * + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9892
SELECT * FROM tab2 WHERE + - col1 / - 3 - - - col2 + + - CAST ( NULL AS INTEGER ) * + col2 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 * + ( + col1 ) - - col0 NOT BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - COUNT( * ) * - + MAX( DISTINCT + 2 ) AS col1 FROM tab1 WHERE NOT - + col1 + - - ( + col0 ) + + 86 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-9895
SELECT - COUNT ( * ) * - + MAX ( DISTINCT + 2 ) AS col1 FROM tab1 WHERE NOT - + col1 + - - ( + col0 ) + + 86 IS NULL
----
6

query I rowsort
SELECT col1 * col0 * - - col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT + COUNT( - col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9897
SELECT + COUNT ( - col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 col2 FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9899
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9899
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> ( NULL )
----

query I rowsort
SELECT 62 * + + 47 FROM tab2 AS cor0
----
2914
2914
2914

query I rowsort
SELECT DISTINCT + 78 * - col2 FROM tab0 AS cor0
----
-3666
-7722
-780

query I rowsort
SELECT DISTINCT - - 74 AS col1 FROM tab2 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col2 col2 FROM tab1 AS cor0 WHERE ( + col2 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) < ( NULL )
----

query I rowsort
SELECT ALL 17 * - col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col1 FROM tab0 WHERE NOT 61 = ( + 17 ) * 58
----
-66
66
96

query I rowsort
SELECT - col0 - 54 AS col1 FROM tab2
----
-100
-118
-129

query I rowsort
SELECT col2 * - 22 AS col2 FROM tab2 WHERE NOT - col2 = ( 41 )
----
-1276
-506
-880

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - col0 <> col2
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( - col1 * col2 ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 - - col2 col2 FROM tab2
----
110
75
92

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - COUNT( * ) + 27 * - MIN( col2 * col1 ) AS col0 FROM tab1
----
-7968

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - COUNT ( * ) + 27 * - MIN ( col2 * col1 ) AS col0 FROM tab1
----
-7968

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT 10 + COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT 10 + COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT DISTINCT 21 + col2 FROM tab2
----
44
61
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT - 91 * - COUNT( * ) FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT - 91 * - COUNT ( * ) FROM tab2
----
273

query I rowsort
SELECT col2 - - 68 FROM tab2
----
108
126
91

query I rowsort
SELECT ALL + 52 * 90 + 21 FROM tab1
----
4701
4701
4701

query I rowsort
SELECT + col0 + - 53 FROM tab1 WHERE - 85 IS NOT NULL
----
-2
32
38

query I rowsort
SELECT 77 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
77
77
77

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( - col2 ) IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + SUM( 58 ) AS col0 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-9923
SELECT + SUM ( 58 ) AS col0 FROM tab0
----
174

query I rowsort
SELECT col1 / + col2 FROM tab0 WHERE col1 + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 - + col0 )
----

query I rowsort
SELECT - ( + 85 ) AS col2 FROM tab0
----
-85
-85
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT DISTINCT + MAX( + col1 ) AS col1 FROM tab0 WHERE NOT - col2 * CAST( NULL AS SIGNED ) BETWEEN ( col0 ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT + MAX ( + col1 ) AS col1 FROM tab0 WHERE NOT - col2 * CAST ( NULL AS INTEGER ) BETWEEN ( col0 ) AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT 73 * + SUM( ALL 28 ) FROM tab1
----
6132

skipif mysql # not compatible
query I rowsort label-9928
SELECT 73 * + SUM ( ALL 28 ) FROM tab1
----
6132

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT ALL MIN( 6 ) + 56 * 57 FROM tab0 AS cor0
----
3198

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL MIN ( 6 ) + 56 * 57 FROM tab0 AS cor0
----
3198

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 16 ) IS NULL
----

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT - ( + ( 72 ) ) * + SUM( col2 ) FROM tab1
----
-16056

skipif mysql # not compatible
query I rowsort label-9932
SELECT - ( + ( 72 ) ) * + SUM ( col2 ) FROM tab1
----
-16056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * + col2 col2 FROM tab0 WHERE NOT + col0 / 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT DISTINCT MAX( DISTINCT + ( col0 ) ) * 97 FROM tab0 AS cor0
----
9409

skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT MAX ( DISTINCT + ( col0 ) ) * 97 FROM tab0 AS cor0
----
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL + 10 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + 10 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 + - col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT + col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT + - ( + ( + 88 ) ) - + 56 FROM tab1 AS cor0
----
-144
-144
-144

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND ( - 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 - col2 AS col0 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - COUNT( * ) col1 FROM tab2 AS cor0 WHERE + col2 / + col1 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9941
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE + col2 / + col1 BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9942
SELECT ALL * FROM tab1 WHERE NULL = CAST( col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9942
SELECT ALL * FROM tab1 WHERE NULL = CAST ( col1 AS REAL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 73 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9944
SELECT DISTINCT + col0 * - - 0 DIV - 18 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9944
SELECT DISTINCT + col0 * - - 0 / - 18 col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT MAX( ALL + - ( ( 46 ) ) ) AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT MAX ( ALL + - ( ( 46 ) ) ) AS col2 FROM tab1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 WHERE col1 = ( 63 )
----

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 WHERE col1 = ( 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT - SUM( DISTINCT + ( + col2 ) ) * - 82 AS col2 FROM tab1
----
18286

skipif mysql # not compatible
query I rowsort label-9947
SELECT - SUM ( DISTINCT + ( + col2 ) ) * - 82 AS col2 FROM tab1
----
18286

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9949
SELECT DISTINCT + + CAST( - + 34 AS SIGNED ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + + CAST ( - + 34 AS INTEGER ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT ALL col2 * - - 0 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / col1 NOT BETWEEN + 5 AND NULL
----

query I rowsort
SELECT ALL - col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT + 64 AS col1, - 74 AS col1 FROM tab0
----
64
-74
64
-74
64
-74

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 22 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL COUNT( * ) * + + MAX( DISTINCT col1 ) FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL COUNT ( * ) * + + MAX ( DISTINCT col1 ) FROM tab0
----
243

query I rowsort
SELECT - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - ( MAX( - col2 ) ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9957
SELECT - ( MAX ( - col2 ) ) AS col1 FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9958
SELECT 35 AS col1, 73 DIV 94 AS col2 FROM tab2 AS cor0
----
35
0
35
0
35
0

skipif mysql # not compatible
query II rowsort label-9958
SELECT 35 AS col1, 73 / 94 AS col2 FROM tab2 AS cor0
----
35
0
35
0
35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 + + col2 * - + col0 col0 FROM tab1 AS cor0
----
-4887
-5006
-6179

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 / + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col0 * + col2 + 31 + + 27 FROM tab0 AS cor0
----
-647
-812
-9545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT + COUNT( * ) * - COUNT( * ) DIV - 87 + + 70 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-9962
SELECT + COUNT ( * ) * - COUNT ( * ) / - 87 + + 70 FROM tab1
----
70

query I rowsort
SELECT 60 + + 69 * 99 AS col0 FROM tab2
----
6891
6891
6891

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - - col0 col1 FROM tab1
----
5049
8415
9009

query I rowsort
SELECT ALL 21 FROM tab1 WHERE ( NULL ) IN ( + col2 + + - 47 + + 62 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = ( - - col0 * + 25 + col0 )
----

query I rowsort
SELECT col2 * col0 + + col1 AS col0 FROM tab0 AS cor0 WHERE + col1 * + 48 * - col0 * 23 + + col0 IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT - COUNT( * ) * - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-9969
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
9
3

query I rowsort
SELECT ALL 54 + - + col1 AS col2 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT DISTINCT - col2 + - - ( - + 97 ) AS col2 FROM tab0 AS cor0
----
-107
-144
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT ALL - - 31 + - col0 DIV + 40 AS col0 FROM tab0 AS cor0
----
29
29
31

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - - 31 + - col0 / + 40 AS col0 FROM tab0 AS cor0
----
29
29
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT - COUNT( * ) + + MAX( - col1 ) AS col2 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - COUNT ( * ) + + MAX ( - col1 ) AS col2 FROM tab2 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( 49 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9974
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( 49 ) IS NOT NULL
----
0

query I rowsort
SELECT - 32 + + col0 FROM tab1
----
19
53
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) * - + col0 * + + col1 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9977
SELECT DISTINCT + - COUNT( * ) DIV - 12 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT + - COUNT ( * ) / - 12 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL + MAX( - - ( col2 ) ) + CAST( + + MIN( DISTINCT + 2 ) AS SIGNED ) + CAST( NULL AS SIGNED ) / + 59 col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9978
SELECT ALL + MAX ( - - ( col2 ) ) + CAST ( + + MIN ( DISTINCT + 2 ) AS INTEGER ) + CAST ( NULL AS INTEGER ) / + 59 col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT MIN( ALL 42 ) AS col0 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9979
SELECT MIN ( ALL 42 ) AS col0 FROM tab1 cor0
----
42

query I rowsort
SELECT - + col2 * + + col2 + + col2 * + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-1081
-3240
-6786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( - CAST( - + col1 AS SIGNED ) ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( - CAST ( - + col1 AS INTEGER ) ) = ( NULL )
----

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col2 + + 37 FROM tab2 WHERE NOT - + col2 IS NULL
----
60
77
95

query I rowsort
SELECT DISTINCT col1 * + 69 AS col2 FROM tab2
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL + COUNT( + col1 ) * - - COUNT( + ( - col1 ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL + COUNT ( + col1 ) * - - COUNT ( + ( - col1 ) ) FROM tab1
----
9

query II rowsort
SELECT + 89 AS col2, + col0 FROM tab1
----
89
51
89
85
89
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 / + col0 + col0 col1 FROM tab0 WHERE NOT + + col2 * 32 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL CAST( + + ( - 5 ) AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL CAST ( + + ( - 5 ) AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT DISTINCT - ( COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9989
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9990
SELECT + col2, col2 * + CAST( NULL AS SIGNED ) + - + col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9990
SELECT + col2, col2 * + CAST ( NULL AS INTEGER ) + - + col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT MAX( - 0 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9991
SELECT MAX ( - 0 ) AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 49 col0, col1 FROM tab0
----
-49
1
-49
21
-49
81

query II rowsort
SELECT col0 AS col1, + 41 FROM tab2
----
46
41
64
41
75
41

query II rowsort
SELECT 92 AS col2, col2 FROM tab2
----
92
23
92
40
92
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT ALL COUNT( * ) * + 20 col0 FROM tab1
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9995
SELECT ALL COUNT ( * ) * + 20 col0 FROM tab1
----
60

query I rowsort
SELECT - col1 - col0 + - + col1 FROM tab1 AS cor0 WHERE NOT - 58 * + - 93 IS NULL
----
-185
-79
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

query I rowsort
SELECT + 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9999
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - 15 + - col2 < + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - 15 + - col2 < + col0
----
NULL

