sqllogictest
Artifact Content
Not logged in

Artifact 964e1d6a9654fef47703b3130f863804605508e1:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + ( + - ( - 92 ) ) FROM tab1
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, 12 FROM tab1 AS cor0
----
NULL
12

skipif mysql # not compatible
query II rowsort label-1
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, 12 FROM tab1 AS cor0
----
NULL
12

query I rowsort
SELECT + 77 * + col1 AS col1 FROM tab2 AS cor0
----
3927
5159
5929

query II rowsort
SELECT - col1 AS col0, col2 * - col1 * + - col0 * - - 66 FROM tab1 AS cor0 WHERE NOT ( col2 ) * ( - - col2 ) IS NULL
----
-14
4523904
-47
19195176
-5
1654950

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT + SUM( DISTINCT - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-6
SELECT + SUM ( DISTINCT - col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE ( + col1 ) < NULL
----
0

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

skipif mysql # not compatible
query II rowsort label-8
SELECT - col1 AS col0, CAST ( + - 74 AS INTEGER ) FROM tab1 cor0
----
-14
-74
-47
-74
-5
-74

query II rowsort
SELECT col2 * - 39, - 8 AS col1 FROM tab1
----
-2301
-8
-2652
-8
-3744
-8

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( col2 ) * + + col1 col2 FROM tab1
----
-1475
-150212
-18816

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

query II rowsort
SELECT DISTINCT col1 - col1 / col0, - 9 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 39 + + 70 - - ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) >= + 53
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 25 * col2 NOT IN ( - - col1, 87 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) + + - ( + + CAST( + - 62 AS SIGNED ) ) FROM tab0 WHERE NULL NOT BETWEEN 79 + - col1 AND NULL
----
62

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) + + - ( + + CAST ( + - 62 AS INTEGER ) ) FROM tab0 WHERE NULL NOT BETWEEN 79 + - col1 AND NULL
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT ALL + + COUNT( * ) + - 32 * SUM( ALL col1 ) FROM tab2 AS cor0
----
-6237

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL + + COUNT ( * ) + - 32 * SUM ( ALL col1 ) FROM tab2 AS cor0
----
-6237

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

query I rowsort
SELECT DISTINCT - + col2 - + 2 AS col2 FROM tab1 cor0
----
-61
-70
-98

query I rowsort
SELECT col0 - - 15 FROM tab1 AS cor0
----
100
106
66

query I rowsort
SELECT DISTINCT + - ( 63 ) * col0 * + 33 * col0 + + + 60 FROM tab1 AS cor0
----
-15020715
-17216139
-5407419

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-24
SELECT * FROM tab2 AS cor0 WHERE ( - 71 + + ( - ( CAST( NULL AS SIGNED ) ) ) + - + col0 + 64 * 5 <> - col1 )
----

skipif mysql # not compatible
query III rowsort label-24
SELECT * FROM tab2 AS cor0 WHERE ( - 71 + + ( - ( CAST ( NULL AS INTEGER ) ) ) + - + col0 + 64 * 5 <> - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-25
SELECT 90 / col1 + col0 + - CAST( NULL AS SIGNED ) + col1 * 11 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT 90 / col1 + col0 + - CAST ( NULL AS INTEGER ) + col1 * 11 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + + - col2 col0 FROM tab0
----
-32
20
57

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

query II rowsort
SELECT + ( + col1 ) * - col2 + + 55 * + col2 + + 2 + - 99 AS col0, - col0 FROM tab0
----
-1319
-15
243
-87
5249
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-29
SELECT DISTINCT 72 DIV col0 col0, + 73 + - col2 FROM tab2
----
0
15
1
33
1
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-29
SELECT DISTINCT 72 / col0 col0, + 73 + - col2 FROM tab2
----
0
15
1
33
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT MIN( + col2 ) + - + COUNT( - - 80 ) AS col0 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-30
SELECT MIN ( + col2 ) + - + COUNT ( - - 80 ) AS col0 FROM tab0
----
7

query I rowsort
SELECT ALL + col0 * 14 * - col0 FROM tab0
----
-105966
-131726
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT MIN( ( - - 36 ) ) FROM tab1 WHERE NULL NOT IN ( + + ( + - col0 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-32
SELECT MIN ( ( - - 36 ) ) FROM tab1 WHERE NULL NOT IN ( + + ( + - col0 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-33
SELECT - - 31, + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND + col0
----
31
0

skipif mysql # not compatible
query II rowsort label-33
SELECT - - 31, + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND + col0
----
31
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( - + col1 ) col0, ( - - 48 ) col0 FROM tab2 AS cor0
----
-51
48
-67
48
-77
48

query III rowsort
SELECT DISTINCT 86 AS col0, col1 + + + 34 AS col2, col2 AS col0 FROM tab1
----
9 values hashing to c36736d82649e383332070b2b892d542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col2 * 27 FROM tab2 AS cor0
----
-23
621
-40
1080
-58
1566

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

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

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

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

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

query I rowsort
SELECT col2 * + col1 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL + 27 * + 0 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 * - 97 FROM tab1
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT + COUNT( * ) + + 86 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT + COUNT ( * ) + + 86 FROM tab2
----
89

query I rowsort
SELECT ALL + 34 - + - col1 FROM tab0 AS cor0 WHERE + col0 NOT IN ( + - 57 / + - 91 * - col0, - 75 )
----
115
35
55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 + ( - - col0 ) / 60 AND NULL
----

query I rowsort
SELECT DISTINCT 78 * 86 AS col1 FROM tab1
----
6708

query I rowsort
SELECT DISTINCT 38 + - col2 FROM tab0 AS cor0
----
-61
-9
28

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-51
SELECT DISTINCT + CAST( - + SUM( ALL - col1 ) AS SIGNED ) - + + 0 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-51
SELECT DISTINCT + CAST ( - + SUM ( ALL - col1 ) AS INTEGER ) - + + 0 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT 1 * - 80 AS col1 FROM tab1 cor0
----
-80
-80
-80

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

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

query I rowsort
SELECT ALL 78 - + col1 FROM tab0
----
-3
57
77

query I rowsort
SELECT DISTINCT + 15 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - col0 * + col2 * col0 FROM tab1
----
-249696
-426275
-563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-57
SELECT - 51 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT - 51 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN + 78 AND + 10
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT - MAX( + col2 ) * + 47 AS col1 FROM tab0 AS cor0
----
-4653

skipif mysql # not compatible
query I rowsort label-62
SELECT - MAX ( + col2 ) * + 47 AS col1 FROM tab0 AS cor0
----
-4653

onlyif mysql # DIV for integer division: 
query III rowsort label-63
SELECT col2 DIV + 82 AS col0, 72 * - + col1 * - col1, - col1 + - - 95 AS col0 FROM tab2 AS cor0
----
9 values hashing to faf5486ea7b8066be547839901c43951

skipif mysql # not compatible
query III rowsort label-63
SELECT col2 / + 82 AS col0, 72 * - + col1 * - col1, - col1 + - - 95 AS col0 FROM tab2 AS cor0
----
9 values hashing to faf5486ea7b8066be547839901c43951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-64
SELECT col0 * - col1 * + CAST( + 33 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3201
-40095
-60291

skipif mysql # not compatible
query I rowsort label-64
SELECT col0 * - col1 * + CAST ( + 33 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3201
-40095
-60291

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) <> + + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT - 96 - COUNT( - col1 ) FROM tab2 WHERE NOT + col0 IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-67
SELECT - 96 - COUNT ( - col1 ) FROM tab2 WHERE NOT + col0 IS NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - MIN( - 17 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-68
SELECT - MIN ( - 17 ) FROM tab0
----
17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT DISTINCT col2 DIV - - col1 + + 21 + + 49 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT col2 / - - col1 + + 21 + + 49 FROM tab2
----
70

query I rowsort
SELECT - 13 * + col1 + - + col0 - - - 74 AS col1 FROM tab2 cor0
----
-1020
-1139
-783

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT + 45 * 21 + - col2 FROM tab2 AS cor0 WHERE col2 >= 86
----

query I rowsort
SELECT ALL + + ( - - ( - col1 ) ) + - ( 10 ) * + + ( + 96 ) AS col2 FROM tab2 AS cor0
----
-1011
-1027
-1037

query II rowsort
SELECT + col1 * + - col2, col1 AS col1 FROM tab0 WHERE + 86 NOT IN ( col1 + col2, col1 / + col0 + - col1 * - col0 )
----
-210
21
-3807
81
-99
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 col2, col2 AS col1 FROM tab2
----
2346
23
4928
40
5025
58

onlyif mysql # aggregate syntax: 
query II rowsort label-78
SELECT DISTINCT - 98 - + COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-107
9

skipif mysql # not compatible
query II rowsort label-78
SELECT DISTINCT - 98 - + COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-107
9

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT DISTINCT - 30 * - CAST( + + col1 AS SIGNED ) + - col0 + - + col1 + col0 * - 50 * - - col2 AS col1 FROM tab1 AS cor0
----
-244445
-250690
-308128

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT - 30 * - CAST ( + + col1 AS INTEGER ) + - col0 + - + col1 + col0 * - 50 * - - col2 AS col1 FROM tab1 AS cor0
----
-244445
-250690
-308128

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

query I rowsort
SELECT + ( - ( + - col1 ) ) + - 57 * + col0 FROM tab2 AS cor0
----
-2571
-3571
-4208

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

query III rowsort
SELECT * FROM tab1 WHERE - col1 + - + col2 <> NULL
----

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

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

query I rowsort
SELECT - col2 * - 98 FROM tab0
----
4606
9702
980

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

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

query I rowsort
SELECT + col1 * col1 * - - 57 FROM tab0
----
25137
373977
57

query I rowsort
SELECT ALL - - col2 * - 8 FROM tab0 AS cor0
----
-376
-792
-80

query I rowsort
SELECT ALL + + 6 * + - 49 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6e6f5b79e0a16dbf480bff59b3f4f7c4

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT ALL - MAX( ALL - 51 ) FROM tab2 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-93
SELECT ALL - MAX ( ALL - 51 ) FROM tab2 WHERE NULL IS NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-94
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - col0 * - CAST( - col1 AS SIGNED ) + - 21 <= + ( - 13 )
----

skipif mysql # not compatible
query III rowsort label-94
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + - col0 * - CAST ( - col1 AS INTEGER ) + - 21 <= + ( - 13 )
----

query I rowsort
SELECT DISTINCT - 64 FROM tab0 AS cor0 WHERE NULL < col1 - + col1 * + + 20
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-96
SELECT ALL 8 AS col2, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-96
SELECT ALL 8 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
8
NULL
8
NULL
8
NULL

query I rowsort
SELECT DISTINCT + - ( + - 48 ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT + col2 + - 59 FROM tab0 AS cor0
----
-12
-49
40

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT + MIN( ALL + + 21 ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + MIN ( ALL + + 21 ) AS col1 FROM tab2
----
21

query I rowsort
SELECT ALL - col2 + + col0 + 9 AS col1 FROM tab0
----
-23
7
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT col2 + col2 DIV + 29 FROM tab1
----
61
70
99

skipif mysql # not compatible
query I rowsort label-105
SELECT col2 + col2 / + 29 FROM tab1
----
61
70
99

query I rowsort
SELECT - col2 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + + 41 + - col1 AS col2 FROM tab0 AS cor0
----
-40
20
40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT DISTINCT - 5 DIV + + 53 + - col2 col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-109
SELECT DISTINCT - 5 / + + 53 + - col2 col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-110
SELECT DISTINCT ( col0 ) * - 3 - - - CAST( - - col2 AS SIGNED ) - + ( col2 ) + + 59, + col0 FROM tab2 AS cor0
----
-125
46
-213
64
-282
75

skipif mysql # not compatible
query II rowsort label-110
SELECT DISTINCT ( col0 ) * - 3 - - - CAST ( - - col2 AS INTEGER ) - + ( col2 ) + + 59, + col0 FROM tab2 AS cor0
----
-125
46
-213
64
-282
75

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT + MAX( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-111
SELECT + MAX ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 BETWEEN - 18 AND col2 + ( - col1 ) + + 96
----

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

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

query II rowsort
SELECT DISTINCT col0 AS col2, 68 * + 1 AS col1 FROM tab1
----
51
68
85
68
91
68

query I rowsort
SELECT ALL + 16 * 69 FROM tab2
----
1104
1104
1104

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT 34 * - COUNT( * ) AS col1 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-117
SELECT 34 * - COUNT ( * ) AS col1 FROM tab1
----
-102

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT ALL - MIN( ALL - - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - MIN ( ALL - - col1 ) FROM tab1
----
-5

query I rowsort
SELECT - 20 * col1 AS col0 FROM tab1 AS cor0
----
-100
-280
-940

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 6 * - col0 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - + 76 * - col1 AS col0 FROM tab0 AS cor0
----
33516
498636
76

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-125
SELECT ALL - + 8 AS col0, col0 * col2 DIV - col1 FROM tab2 AS cor0
----
-8
-20
-8
-33
-8
-64

skipif mysql # not compatible
query II rowsort label-125
SELECT ALL - + 8 AS col0, col0 * col2 / - col1 FROM tab2 AS cor0
----
-8
-20
-8
-33
-8
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT - - COUNT( * ) * + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
603

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - - COUNT ( * ) * + 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
603

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

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL - CAST ( NULL AS INTEGER ) * + 11 * - - 53 * - CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT ALL + SUM( + 5 ) + 99 FROM tab0, tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-128
SELECT ALL + SUM ( + 5 ) + 99 FROM tab0, tab2 AS cor0
----
144

query I rowsort
SELECT DISTINCT - - col0 * - 79 + 13 AS col1 FROM tab2 AS cor0
----
-3621
-5043
-5912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-130
SELECT ALL - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col1 + + 66 > NULL
----

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col1 + + 66 > NULL
----

query I rowsort
SELECT DISTINCT + 76 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query II rowsort
SELECT DISTINCT col0, + ( - col0 ) FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1 * + 88 + + col1 AND + 99 * - ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - 41 AS col1 FROM tab2
----
-1
-18
17

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

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

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

skipif mysql # not compatible
query I rowsort label-136
SELECT col0 + + - 10 * + col2 + + CAST ( NULL AS REAL ) - + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 62 * col1 AS col1 FROM tab2
----
3162
4154
4774

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

query I rowsort
SELECT + 19 + col0 AS col1 FROM tab0 AS cor0
----
106
116
34

query I rowsort
SELECT DISTINCT + col0 + - 56 AS col1 FROM tab0 cor0
----
-41
31
41

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + - 8 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT col2 * col0 - - + col0 + - - col2 + + 21 + 95 AS col0 FROM tab0
----
1083
883
9915

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT 70 - COUNT( * ) AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-145
SELECT 70 - COUNT ( * ) AS col0 FROM tab0
----
67

query II rowsort
SELECT DISTINCT + col2 * - + col2 * - 48, 12 FROM tab2 WHERE NOT + - col2 < + col2
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 NOT IN ( + 16 * col1, col0 + - col0, 58 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-149
SELECT COUNT( ALL + 95 ) AS col0, 18 FROM tab1, tab0 AS cor0
----
9
18

skipif mysql # not compatible
query II rowsort label-149
SELECT COUNT ( ALL + 95 ) AS col0, 18 FROM tab1, tab0 AS cor0
----
9
18

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

skipif mysql # not compatible
query II rowsort label-150
SELECT col1, + col0 / + col2 FROM tab0
----
1
0
21
8
81
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-151
SELECT CAST( NULL AS SIGNED ) col2, 75 * + col2 AS col2 FROM tab0
----
NULL
3525
NULL
7425
NULL
750

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-151
SELECT CAST ( NULL AS INTEGER ) col2, 75 * + col2 AS col2 FROM tab0
----
NULL
3525
NULL
7425
NULL
750

query III rowsort
SELECT ALL col0, + ( + col0 ) AS col1, - col2 * col2 FROM tab0
----
9 values hashing to 30041107e94f6b800c0ecfe8baee9411

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

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

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

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

query II rowsort
SELECT - + col1 * + 52 AS col1, 14 * + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-2652
644
-3484
1050
-4004
896

query I rowsort
SELECT - col1 * - col1 * - col2 + col1 + + 88 + - + col0 AS col0 FROM tab2 AS cor0
----
-237059
-260282
-59730

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

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

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

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

query I rowsort
SELECT 87 * - col1 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-165
SELECT + 40 DIV - COUNT( ALL + col1 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-165
SELECT + 40 / - COUNT ( ALL + col1 ) FROM tab0
----
-13

query I rowsort
SELECT DISTINCT col0 * + 29 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL - MAX( ALL - - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL - MAX ( ALL - - col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-168
SELECT 35 * - ( - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT 35 * - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + 97 AS col0 FROM tab2
----
148
164
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-170
SELECT + 98 - + col2 * + 87 + + ( + ( - col1 ) ) / ( + CAST( NULL AS SIGNED ) ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-170
SELECT + 98 - + col2 * + 87 + + ( + ( - col1 ) ) / ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * 70 + - - ( + + col2 ) FROM tab0 AS cor0
----
-1003
-6080
-6691

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT DISTINCT - 94 + + MAX( + + 19 ) FROM tab1 WHERE + - col0 <> - + 32 + - + col2
----
-75

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT - 94 + + MAX ( + + 19 ) FROM tab1 WHERE + - col0 <> - + 32 + - + col2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-175
SELECT DISTINCT - col1 DIV col1 + col1 col0 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-175
SELECT DISTINCT - col1 / col1 + col1 col0 FROM tab0 AS cor0
----
0
20
80

query I rowsort
SELECT + ( + 42 ) + 19 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-179
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

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

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

query I rowsort
SELECT ALL + col1 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + ( + - 39 ) IS NULL
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query II rowsort label-182
SELECT DISTINCT - COUNT( DISTINCT + col2 ), MIN( - - col1 ) AS col2 FROM tab2 AS cor0
----
-3
51

skipif mysql # not compatible
query II rowsort label-182
SELECT DISTINCT - COUNT ( DISTINCT + col2 ), MIN ( - - col1 ) AS col2 FROM tab2 AS cor0
----
-3
51

query I rowsort
SELECT - col2 + - 10 + + - col2 AS col0 FROM tab0 AS cor0
----
-104
-208
-30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-185
SELECT CAST( - + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-185
SELECT CAST ( - + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-186
SELECT ALL + col0 * - - col0 + - 46 DIV col1 AS col1 FROM tab1 AS cor0
----
2598
7216
8281

skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + col0 * - - col0 + - 46 / col1 AS col1 FROM tab1 AS cor0
----
2598
7216
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT DISTINCT col0 DIV 93 + 66 + 12 * - + col1 - - 91 col2 FROM tab2 AS cor0
----
-455
-647
-767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-187
SELECT DISTINCT col0 / 93 + 66 + 12 * - + col1 - - 91 col2 FROM tab2 AS cor0
----
-455
-647
-767

query I rowsort
SELECT DISTINCT col2 + - - col2 FROM tab1 AS cor0
----
118
136
192

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 61 IS NULL AND col1 < - - 97 / + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 63 + + col2 * - 55 col1 FROM tab1 AS cor0
----
-3249
-3735
-5247

query I rowsort
SELECT col1 + + 52 AS col0 FROM tab2
----
103
119
129

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

query I rowsort
SELECT - 86 * 77 * + - 27 + col0 AS col2 FROM tab2
----
178840
178858
178869

query I rowsort
SELECT DISTINCT col1 - + + 19 FROM tab0
----
-18
2
62

query I rowsort
SELECT ALL + 26 * - col0 AS col0 FROM tab2
----
-1196
-1664
-1950

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT ALL col2 DIV - - 71 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL col2 / - - 71 FROM tab1
----
0
0
1

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

query I rowsort
SELECT 99 * col1 + 86 * col1 + - + col1 FROM tab2
----
12328
14168
9384

query I rowsort
SELECT ALL - 94 + - - 40 FROM tab0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-203
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col1 + CAST( - 46 AS SIGNED ) + - + 33 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col1 + CAST ( - 46 AS INTEGER ) + - + 33 AS col1 FROM tab2 AS cor0
----
NULL

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

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

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

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

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NOT ( NOT - col2 = - + 37 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT DISTINCT + SUM( DISTINCT + 96 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + SUM ( DISTINCT + 96 ) FROM tab0 AS cor0
----
96

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-212
SELECT ALL MIN( col1 ) DIV COUNT( col2 ) AS col1 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL MIN ( col1 ) / COUNT ( col2 ) AS col1 FROM tab2
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT - COUNT( - col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-214
SELECT - COUNT ( - col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-215
SELECT ALL CAST( - + 26 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-215
SELECT ALL CAST ( - + 26 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT - - 67 AS col0 FROM tab0 cor0
----
67

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + - 80 AND - col1 * - 30 + col2 + col0
----

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

query I rowsort
SELECT ALL - 83 * + + 4 FROM tab0
----
-332
-332
-332

query I rowsort
SELECT + 14 + + + col1 FROM tab2 WHERE ( NOT - col0 NOT BETWEEN col1 AND col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT ALL + MAX( - 77 ) * - 82 AS col0 FROM tab2
----
6314

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL + MAX ( - 77 ) * - 82 AS col0 FROM tab2
----
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 35 ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT - MAX( ( col1 ) ) AS col2 FROM tab1 WHERE ( NOT NULL NOT BETWEEN col2 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT - MAX ( ( col1 ) ) AS col2 FROM tab1 WHERE ( NOT NULL NOT BETWEEN col2 AND NULL )
----
NULL

query I rowsort
SELECT DISTINCT col0 + - 18 - col1 AS col2 FROM tab0
----
-84
48
78

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

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

query I rowsort
SELECT ALL + ( col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL + - COUNT( * ) + + + COUNT( ALL col2 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + - COUNT ( * ) + + + COUNT ( ALL col2 ) FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT ALL + col2 - - 77 - col2 DIV 30 + + + col2 - - col2 * + + col1 FROM tab1 AS cor0
----
1610
3407
489

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + col2 - - 77 - col2 / 30 + + + col2 - - col2 * + + col1 FROM tab1 AS cor0
----
1610
3407
489

query I rowsort
SELECT - col0 + - col1 * + col0 FROM tab1 AS cor0
----
-4368
-510
-765

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

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

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

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

query I rowsort
SELECT ALL + + col0 + - + col2 + col1 + - - 74 FROM tab0 AS cor0
----
123
172
73

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 57 IN ( + + col0 + + + ( + - col1 ), - ( + 54 ) - col1 + ( 15 ) * + col0 - - 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * + col1 * - col0 FROM tab1
----
-36125
-36414
-389207

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT - ( COUNT( * ) ) * 30 AS col2 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-239
SELECT - ( COUNT ( * ) ) * 30 AS col2 FROM tab1
----
-90

query I rowsort
SELECT - col2 - col2 * col2 AS col0 FROM tab2
----
-1640
-3422
-552

query I rowsort
SELECT col1 * 20 * + col2 - col2 FROM tab1
----
26784
5841
63852

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT DISTINCT - COUNT( ALL col1 ) * - 52 AS col1 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT - COUNT ( ALL col1 ) * - 52 AS col1 FROM tab2 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col0 col0 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # DIV for integer division: 
query II rowsort label-245
SELECT - col0 AS col0, col0 DIV col1 + - col0 AS col0 FROM tab1 cor0
----
-51
-48
-85
-68
-91
-90

skipif mysql # not compatible
query II rowsort label-245
SELECT - col0 AS col0, col0 / col1 + - col0 AS col0 FROM tab1 cor0
----
-51
-48
-85
-68
-91
-90

query I rowsort
SELECT DISTINCT + col0 * 99 + + col0 FROM tab2 AS cor0
----
4600
6400
7500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54, 4 + - col2 col1 FROM tab0
----
54
-43
54
-6
54
-95

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

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

query II rowsort
SELECT ALL col0 AS col0, - 99 * - - col0 AS col1 FROM tab0
----
15
-1485
87
-8613
97
-9603

query III rowsort
SELECT + col0, + col0 AS col0, - ( + col1 ) AS col2 FROM tab0 AS cor0
----
9 values hashing to 36ee894a009a45345497305e7ecfee80

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT - COUNT( DISTINCT 8 ) * 76 - + COUNT( * ) FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-251
SELECT - COUNT ( DISTINCT 8 ) * 76 - + COUNT ( * ) FROM tab0 AS cor0
----
-79

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-253
SELECT - - col2 + + col0 + CAST( NULL AS DECIMAL ), col1 / col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 - - col1 <= NULL
----

skipif mysql # not compatible
query II rowsort label-253
SELECT - - col2 + + col0 + CAST ( NULL AS REAL ), col1 / col2 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 - - col1 <= NULL
----

query II rowsort
SELECT - 80 AS col1, 38 AS col0 FROM tab0 AS cor0
----
-80
38
-80
38
-80
38

query I rowsort
SELECT - 80 * - - col2 * + - col2 AS col0 FROM tab2 cor0
----
128000
269120
42320

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-259
SELECT DISTINCT col0 DIV + 38 AS col0 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT col0 / + 38 AS col0 FROM tab1 cor0
----
1
2

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

query I rowsort
SELECT - 96 * col1 * + + col0 + + col0 AS col2 FROM tab1
----
-40715
-410501
-68493

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 20 = col1 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-264
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ), ( COUNT( * ) ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-264
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ), ( COUNT ( * ) ) FROM tab0 AS cor0
----
3
3

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

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

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

query II rowsort
SELECT + 17 AS col2, 17 + col0 + col1 FROM tab1
----
17
107
17
155
17
82

onlyif mysql # aggregate syntax: 
query II rowsort label-268
SELECT COUNT( * ) col1, + ( 30 ) FROM tab2
----
3
30

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT DISTINCT + - MAX( - col2 ) FROM tab0 cor0 WHERE ( NOT + col1 / - 11 IS NULL )
----
10

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT + - MAX ( - col2 ) FROM tab0 cor0 WHERE ( NOT + col1 / - 11 IS NULL )
----
10

query I rowsort
SELECT ALL ( - + col1 ) + - 36 FROM tab2 AS cor0
----
-103
-113
-87

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

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

query I rowsort
SELECT ALL + 67 + + col0 FROM tab2 AS cor0
----
113
131
142

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT ALL + COUNT( * ) + + ( - SUM( 55 ) ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-274
SELECT ALL + COUNT ( * ) + + ( - SUM ( 55 ) ) FROM tab2 AS cor0
----
-162

query I rowsort
SELECT DISTINCT + - 22 - - col1 + + col2 AS col1 FROM tab1 AS cor0
----
42
88
93

query I rowsort
SELECT DISTINCT + + col0 + - + col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

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

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

query I rowsort
SELECT - col1 * - + col1 + col0 * + 38 AS col2 FROM tab0
----
3687
3747
7131

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

onlyif mysql # aggregate syntax: 
query I rowsort label-280
SELECT DISTINCT 23 * - SUM( - + col2 ) FROM tab0
----
3588

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT 23 * - SUM ( - + col2 ) FROM tab0
----
3588

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 35
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-283
SELECT + 16 DIV - MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-283
SELECT + 16 / - MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-284
SELECT DISTINCT + + SUM( + - 74 ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT + + SUM ( + - 74 ) FROM tab1 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT + COUNT( + 91 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-285
SELECT + COUNT ( + 91 ) FROM tab2
----
3

query I rowsort
SELECT - 9 * - col0 AS col2 FROM tab0
----
135
783
873

query I rowsort
SELECT DISTINCT + col2 * 4 * col0 AS col2 FROM tab0 cor0
----
2820
3480
38412

query I rowsort
SELECT ALL col0 * - col2 * - ( + 27 ) + col2 + col2 + + col1 FROM tab0 AS cor0
----
19210
23531
259480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT + ( - + MAX( ALL + 62 ) ) + + 71 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-291
SELECT + ( - + MAX ( ALL + 62 ) ) + + 71 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * - col2 / + 11 * - col2 * 31 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-293
SELECT DISTINCT + col1 + + 87 DIV - 24 FROM tab1 AS cor0 WHERE NOT - 95 IS NULL
----
11
2
44

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT + col1 + + 87 / - 24 FROM tab1 AS cor0 WHERE NOT - 95 IS NULL
----
11
2
44

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

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

query I rowsort
SELECT + col2 * + col0 + + col2 + + col2 FROM tab0 AS cor0
----
799
890
9801

query I rowsort
SELECT - + col2 + + 53 AS col2 FROM tab1 AS cor0
----
-15
-43
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT ALL + MAX( DISTINCT + + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + MAX ( DISTINCT + + col0 ) AS col2 FROM tab2
----
75

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

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

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

query I rowsort
SELECT DISTINCT 67 * + col0 AS col2 FROM tab2
----
3082
4288
5025

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

onlyif mysql # DIV for integer division: 
query II rowsort label-302
SELECT DISTINCT + col1 + - col0 AS col0, - col0 DIV ( + - col0 ) FROM tab1
----
-37
1
-44
1
-80
1

skipif mysql # not compatible
query II rowsort label-302
SELECT DISTINCT + col1 + - col0 AS col0, - col0 / ( + - col0 ) FROM tab1
----
-37
1
-44
1
-80
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-303
SELECT + + CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0 WHERE 81 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-303
SELECT + + CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0 WHERE 81 IS NOT NULL
----
10
47
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col0 AS col0, col0 col0 FROM tab0 AS cor0
----
705
15
870
87
9603
97

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT + COUNT( ALL 73 ) - + MAX( + col1 ) + + COUNT( * ) col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-306
SELECT + COUNT ( ALL 73 ) - + MAX ( + col1 ) + + COUNT ( * ) col2 FROM tab2 AS cor0
----
-71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 + + col2 * col1 NOT BETWEEN - 68 / - 87 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT - 49 DIV + col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-309
SELECT - 49 / + col0 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT - + 62 * - COUNT( * ) - - COUNT( * ) * - 89 AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - + 62 * - COUNT ( * ) - - COUNT ( * ) * - 89 AS col2 FROM tab0 AS cor0
----
-81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT DISTINCT - 90 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT - 90 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT DISTINCT col1 - - - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NOT ( NOT 74 > + - 35 )
----
-10
-47
-99

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

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL 55 FROM tab2 WHERE NOT - 59 IS NULL
----
55
55
55

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

query II rowsort
SELECT DISTINCT - 3, col1 * - col0 AS col1 FROM tab1 AS cor0
----
-3
-425
-3
-4277
-3
-714

query III rowsort
SELECT * FROM tab1 WHERE NOT + 28 <> col0 + + 15
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE col1 <= - ( col2 )
----

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

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT 63 / + COUNT ( * ) + COUNT ( * ) FROM tab1
----
24

query I rowsort
SELECT ALL col0 + - 41 * col1 AS col2 FROM tab0
----
-3306
-774
56

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-326
SELECT col0 DIV - col2 AS col1 FROM tab1 WHERE - ( + col2 ) * 31 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-326
SELECT col0 / - col2 AS col1 FROM tab1 WHERE - ( + col2 ) * 31 IS NOT NULL
----
-1
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT MIN( + ( + col0 ) ) * 35 AS col1 FROM tab0
----
525

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT MIN ( + ( + col0 ) ) * 35 AS col1 FROM tab0
----
525

query I rowsort
SELECT - 8 + - col1 * - col0 FROM tab1
----
417
4269
706

onlyif mysql # DIV for integer division: 
query I rowsort label-330
SELECT ALL + col1 * col0 + + col0 DIV col2 FROM tab2 WHERE NOT + ( col1 ) IS NULL
----
2348
4929
5026

skipif mysql # not compatible
query I rowsort label-330
SELECT ALL + col1 * col0 + + col0 / col2 FROM tab2 WHERE NOT + ( col1 ) IS NULL
----
2348
4929
5026

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

query I rowsort
SELECT + ( - 22 ) FROM tab0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL >= ( col1 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL >= ( col1 + + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT DISTINCT COUNT( 96 ) * - 99 col1 FROM tab0 WHERE NOT + col1 BETWEEN + col2 + 25 * - col0 AND ( col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-334
SELECT DISTINCT COUNT ( 96 ) * - 99 col1 FROM tab0 WHERE NOT + col1 BETWEEN + col2 + 25 * - col0 AND ( col1 )
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 71 col0 FROM tab2
----
111
129
94

query I rowsort
SELECT col1 + - 68 * col2 AS col2 FROM tab0
----
-3115
-659
-6731

query I rowsort
SELECT + 22 * + col1 FROM tab0
----
1782
22
462

query I rowsort
SELECT col2 FROM tab2 WHERE NOT 91 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 54 + 93 * + col0 ) >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 * + col1 ) >= col0 + + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT + COUNT( * ) + 9 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-345
SELECT + COUNT ( * ) + 9 FROM tab2
----
12

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

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

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

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

query I rowsort
SELECT DISTINCT ( col1 ) - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL 98 * - col0 AS col0 FROM tab0
----
-1470
-8526
-9506

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

query I rowsort
SELECT ALL 64 - + 82 AS col0 FROM tab0
----
-18
-18
-18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 7 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT + + MIN( ALL 49 ) - 98 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-354
SELECT + + MIN ( ALL 49 ) - 98 FROM tab0 AS cor0
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT DISTINCT - 81 DIV - col1 FROM tab1 AS cor0
----
1
16
5

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT - 81 / - col1 FROM tab1 AS cor0
----
1
16
5

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

query I rowsort
SELECT + 54 * col2 + + 16 FROM tab2 AS cor0
----
1258
2176
3148

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT ALL + - 54 DIV + col0 AS col1 FROM tab0 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-358
SELECT ALL + - 54 / + col0 AS col1 FROM tab0 cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT + 42 + - 1 * col0 FROM tab2 AS cor0
----
-22
-33
-4

query I rowsort
SELECT ALL + col0 / - 69 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT MAX( col1 ) * - MIN( col2 ) AS col1 FROM tab1
----
-2773

skipif mysql # not compatible
query I rowsort label-363
SELECT MAX ( col1 ) * - MIN ( col2 ) AS col1 FROM tab1
----
-2773

onlyif mysql # DIV for integer division: 
query I rowsort label-364
SELECT ALL + 49 DIV + - col2 AS col0 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL + 49 / + - col2 AS col0 FROM tab0
----
-1
-4
0

query I rowsort
SELECT col0 * + 40 AS col1 FROM tab1
----
2040
3400
3640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT MIN( + col0 ) * 46 AS col2 FROM tab2
----
2116

skipif mysql # not compatible
query I rowsort label-368
SELECT MIN ( + col0 ) * 46 AS col2 FROM tab2
----
2116

query I rowsort
SELECT col0 * + - col1 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT + col1 * - col1 FROM tab0 WHERE NOT ( - 18 ) IS NULL
----
-1
-441
-6561

query I rowsort
SELECT ALL 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
95

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

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

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

query II rowsort
SELECT DISTINCT 59 AS col1, col2 AS col0 FROM tab0
----
59
10
59
47
59
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = ( - - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT + COUNT( ALL - ( 47 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-377
SELECT + COUNT ( ALL - ( 47 ) ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL + col0 + ( + + 14 ) FROM tab1 cor0
----
105
65
99

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-382
SELECT + ( - 72 ) * ( COUNT( * ) ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-382
SELECT + ( - 72 ) * ( COUNT ( * ) ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-384
SELECT ALL + col0 + - ( col0 ) DIV 32 AS col0 FROM tab2 AS cor0
----
45
62
73

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL + col0 + - ( col0 ) / 32 AS col0 FROM tab2 AS cor0
----
45
62
73

query II rowsort
SELECT 46 * + 24, col0 AS col0 FROM tab1
----
1104
51
1104
85
1104
91

query III rowsort
SELECT * FROM tab1 WHERE ( + - 13 ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL - COUNT( * ) * + 44 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL - COUNT ( * ) * + 44 FROM tab2
----
-132

query I rowsort
SELECT ALL 59 AS col1 FROM tab2 WHERE NOT + 71 <> col0 + 78 * 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT DISTINCT - col2 + - col2 DIV - + col1 AS col2 FROM tab1
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT - col2 + - col2 / - + col1 AS col2 FROM tab1
----
-48
-67
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 1 + - 68 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col0 FROM tab1 WHERE 72 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - 51 FROM tab1 WHERE NOT NULL NOT BETWEEN + 82 AND ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT DISTINCT CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0 WHERE ( + col2 ) <> CAST( col0 AS SIGNED ) + + col0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0 WHERE ( + col2 ) <> CAST ( col0 AS INTEGER ) + + col0
----
210
3807
99

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

query I rowsort
SELECT col1 / - col2 FROM tab1 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - 53 * - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-398
SELECT DISTINCT * FROM tab1 cor0 WHERE 82 < + + CAST( + col0 AS SIGNED )
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-398
SELECT DISTINCT * FROM tab1 cor0 WHERE 82 < + + CAST ( + col0 AS INTEGER )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col2 + - 42 * + col0 * - col1 FROM tab1 AS cor0
----
17909
179702
30084

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

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

query I rowsort
SELECT ALL + 65 * - - col0 AS col1 FROM tab0
----
5655
6305
975

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-403
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) + + 45 )
----

skipif mysql # not compatible
query III rowsort label-403
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) + + 45 )
----

query II rowsort
SELECT 24 * + col1 * - + col1 AS col0, + ( - + col2 ) * col2 FROM tab2 AS cor0
----
-107736
-3364
-142296
-1600
-62424
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-405
SELECT + col2 DIV - col2 + col2 AS col2 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-405
SELECT + col2 / - col2 + col2 AS col2 FROM tab1 AS cor0
----
58
67
95

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

skipif mysql # not compatible
query I rowsort label-406
SELECT - COUNT ( ALL - 22 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-407
SELECT + col2 * - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-407
SELECT + col2 * - CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1058
-2560
-4350

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

query I rowsort
SELECT ALL + col0 * col2 + col2 + + ( - + col1 ) + col2 AS col1 FROM tab0 AS cor0
----
718
869
9800

query I rowsort
SELECT ALL + ( - + col1 ) * + 10 FROM tab1 cor0
----
-140
-470
-50

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT DISTINCT + 82 / - + CAST( NULL AS SIGNED ) * + 67 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + 82 / - + CAST ( NULL AS INTEGER ) * + 67 FROM tab0 AS cor0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT ALL + COUNT( DISTINCT - 12 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + COUNT ( DISTINCT - 12 ) AS col1 FROM tab0
----
1

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

query II rowsort
SELECT DISTINCT + col1 AS col2, 76 * 7 AS col2 FROM tab2 AS cor0
----
51
532
67
532
77
532

onlyif mysql # DIV for integer division: 
query I rowsort label-417
SELECT - - 31 DIV - col1 - - col2 * + + col0 col2 FROM tab1 cor0
----
4894
5009
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-417
SELECT - - 31 / - col1 - - col2 * + + col0 col2 FROM tab1 cor0
----
4894
5009
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-418
SELECT + - 91 + + MIN( col0 ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-418
SELECT + - 91 + + MIN ( col0 ) FROM tab0 AS cor0
----
-76

query I rowsort
SELECT col1 - - + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 2 AND + col2
----

query I rowsort
SELECT - col2 + - - 10 FROM tab2 AS cor0
----
-13
-30
-48

query I rowsort
SELECT 50 AS col0 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL - ( - col2 ) + - + 13 FROM tab0 AS cor0
----
-3
34
86

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( ( + 14 - - + 5 + + - col1 ) IN ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-424
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( ( + 14 - - + 5 + + - col1 ) IN ( - col2 ) )
----
0

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

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

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

query I rowsort
SELECT 51 + ( - 25 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 61 + + col0 FROM tab0
----
-46
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT ALL + MAX( ALL - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-429
SELECT ALL + MAX ( ALL - col0 ) AS col0 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 80 + col1 col1 FROM tab2
----
-3629
-5043
-5933

query I rowsort
SELECT 47 FROM tab1 WHERE ( 75 ) IS NOT NULL
----
47
47
47

query I rowsort
SELECT col2 * col0 * - + col0 + col1 * col0 FROM tab2
----
-158912
-321225
-46322

query I rowsort
SELECT 38 + - - col1 AS col0 FROM tab0
----
119
39
59

onlyif mysql # DIV for integer division: 
query I rowsort label-434
SELECT 65 DIV - col1 + - col0 AS col1 FROM tab1
----
-55
-92
-98

skipif mysql # not compatible
query I rowsort label-434
SELECT 65 / - col1 + - col0 AS col1 FROM tab1
----
-55
-92
-98

query I rowsort
SELECT ALL 8 + + - col1 FROM tab2 cor0
----
-43
-59
-69

query I rowsort
SELECT DISTINCT 20 - - col0 AS col1 FROM tab1 AS cor0
----
105
111
71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 + + 88 col1 FROM tab2 AS cor0
----
1261
3168
3974

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-439
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) + - + 15 - - + 48 AS col1, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-439
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) + - + 15 - - + 48 AS col1, col0 AS col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab0 cor0 WHERE NOT + col2 < + + 91 / 35
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT - MIN( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 18 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-441
SELECT - MIN ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT 18 IS NULL
----
96

query II rowsort
SELECT - col2 * + + col0, - col2 * + 21 AS col2 FROM tab2 AS cor0
----
-1058
-483
-2560
-840
-4350
-1218

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT ALL - COUNT( * ) * - 58 * - - 35 AS col0 FROM tab2
----
6090

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL - COUNT ( * ) * - 58 * - - 35 AS col0 FROM tab2
----
6090

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT col2 DIV + col1 * - 60 + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-445
SELECT col2 / + col1 * - 60 + col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

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

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

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

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

skipif mysql # not compatible
query I rowsort label-448
SELECT - CAST ( + 33 AS INTEGER ) FROM tab0
----
-33
-33
-33

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

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

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

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

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

query I rowsort
SELECT ALL - 23 + - 93 AS col0 FROM tab0 AS cor0
----
-116
-116
-116

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT SUM( - col2 ) + - - 32 AS col2 FROM tab2 AS cor0 WHERE NOT col0 = + - col1
----
-89

skipif mysql # not compatible
query I rowsort label-454
SELECT SUM ( - col2 ) + - - 32 AS col2 FROM tab2 AS cor0 WHERE NOT col0 = + - col1
----
-89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT COUNT( ALL col0 ) FROM tab2 cor0 WHERE NOT 26 * + 71 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-456
SELECT COUNT ( ALL col0 ) FROM tab2 cor0 WHERE NOT 26 * + 71 IS NULL
----
3

query I rowsort
SELECT ALL + col0 + + 36 FROM tab1 AS cor0
----
121
127
87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-458
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-458
SELECT ALL - + CAST ( NULL AS REAL ) AS col1, + col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

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

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

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

skipif mysql # not compatible
query I rowsort label-460
SELECT COUNT ( * ) / - - MAX ( ALL + col1 ) FROM tab0
----
0

query I rowsort
SELECT 83 * - col1 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL - COUNT( * ) * 31 * - + MIN( + col2 ) + 20 FROM tab0 AS cor0
----
950

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - COUNT ( * ) * 31 * - + MIN ( + col2 ) + 20 FROM tab0 AS cor0
----
950

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

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

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + - COUNT ( * ) + + + COUNT ( * ) * CAST ( 29 AS INTEGER ) FROM tab0 AS cor0
----
84

query II rowsort
SELECT col0 + - col0 + 64 * - col2 AS col1, col2 + + 4 FROM tab2 AS cor0
----
-1472
27
-2560
44
-3712
62

query I rowsort
SELECT ( - 52 ) * + + col0 + col1 + + col1 * + col1 * 91 FROM tab2 AS cor0
----
234350
404666
536288

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

skipif mysql # not compatible
query I rowsort label-467
SELECT ALL + SUM ( - 14 ) FROM tab1
----
-42

query I rowsort
SELECT - col2 - - - 71 AS col0 FROM tab0 AS cor0
----
-118
-170
-81

query I rowsort
SELECT ALL - 50 + + col1 AS col0 FROM tab1 AS cor0
----
-3
-36
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT SUM( - 30 ) * - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT SUM ( - 30 ) * - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-270

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 NOT IN ( - col2, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT ( + + col2 ) * ( - col2 ) * - - 77 + + - 14 / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-475
SELECT - col2 * - col2 - - col1 AS col1, 69 + + CAST( NULL AS DECIMAL ) * + 99 FROM tab1 AS cor0
----
3486
NULL
4671
NULL
9230
NULL

skipif mysql # not compatible
query II rowsort label-475
SELECT - col2 * - col2 - - col1 AS col1, 69 + + CAST ( NULL AS REAL ) * + 99 FROM tab1 AS cor0
----
3486
NULL
4671
NULL
9230
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-476
SELECT - COUNT( * ) DIV - 76 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-476
SELECT - COUNT ( * ) / - 76 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + col2 / - 99, ( col1 ) FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-480
SELECT ALL - + COUNT( * ) AS col1, + 81 - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 76 AS col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-480
SELECT ALL - + COUNT ( * ) AS col1, + 81 - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 76 AS col2 FROM tab1 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT 59 * - col1 + ( col1 ) + - - 82 AS col2 FROM tab1 AS cor0
----
-208
-2644
-730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-482
SELECT + - ( - MAX( DISTINCT col0 ) ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + + - 58 * - col2 NOT BETWEEN + col1 AND + - col0
----
NULL

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

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

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

query I rowsort
SELECT - 39 * + col2 * col1 FROM tab2 AS cor0
----
-120120
-151554
-45747

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

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

query I rowsort
SELECT ALL - col0 * ( col2 ) FROM tab1
----
-4896
-5015
-6188

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + 94 + - col0 + col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-490
SELECT DISTINCT MAX( ALL - col1 ) * - + CAST( - - MIN( col2 ) AS SIGNED ) FROM tab2
----
1173

skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT MAX ( ALL - col1 ) * - + CAST ( - - MIN ( col2 ) AS INTEGER ) FROM tab2
----
1173

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT + 6 * MAX( + col1 ) AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-491
SELECT + 6 * MAX ( + col1 ) AS col1 FROM tab1
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + - 57 col1 FROM tab1 AS cor0
----
-104
-62
-71

query I rowsort
SELECT - col1 + col2 * - col1 + 78 FROM tab1 AS cor0
----
-1280
-222
-3165

query I rowsort
SELECT DISTINCT - + 86 + + - col0 FROM tab1 AS cor0
----
-137
-171
-177

query I rowsort
SELECT DISTINCT col1 + - 24 * + col2 FROM tab0 AS cor0
----
-1047
-219
-2375

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col2 + 93 col2 FROM tab1 AS cor0
----
-4803
-4922
-6095

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

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT ALL - 66 + - 24 + - 63 + + COUNT( * ) * + 78 + + COUNT( * ) * + - 44 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
153

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL - 66 + - 24 + - 63 + + COUNT ( * ) * + 78 + + COUNT ( * ) * + - 44 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
153

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT SUM( ALL - 61 ) AS col1 FROM tab0 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-501
SELECT SUM ( ALL - 61 ) AS col1 FROM tab0 cor0
----
-183

query I rowsort
SELECT ALL - 31 * + + 34 * 0 + + + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-505
SELECT - 50 - + CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab1 cor0
----
375
4227
664

skipif mysql # not compatible
query I rowsort label-505
SELECT - 50 - + CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab1 cor0
----
375
4227
664

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

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

query II rowsort
SELECT + + ( + col1 ) - - + 54, ( col2 ) AS col2 FROM tab2 AS cor0
----
105
23
121
58
131
40

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

query I rowsort
SELECT + col0 FROM tab1 WHERE + col2 + - col0 + ( - 21 ) >= - + 80
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-510
SELECT ALL + 73 DIV + col2 - + col1 AS col2 FROM tab1
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + 73 / + col2 - + col1 AS col2 FROM tab1
----
-14
-4
-46

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

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT - COUNT ( col0 ) / 28 FROM tab2
----
0

query I rowsort
SELECT col1 * - + 92 AS col0 FROM tab2
----
-4692
-6164
-7084

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT 53 + + CAST( NULL AS SIGNED ) + + col0 FROM tab1 WHERE NOT NULL IN ( - + ( 44 ), + col2 + - + 82 )
----

skipif mysql # not compatible
query I rowsort label-514
SELECT 53 + + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 WHERE NOT NULL IN ( - + ( 44 ), + col2 + - + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT DISTINCT - - SUM( ALL + col2 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 79 - + col0 AND + ( + 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - - SUM ( ALL + col2 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 79 - + col0 AND + ( + 34 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT 50 DIV col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
0
0
3

skipif mysql # not compatible
query I rowsort label-516
SELECT 50 / col0 FROM tab0 cor0 WHERE NOT col0 IS NULL
----
0
0
3

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT IN ( - col0 + + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - 8 * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-520
SELECT - 8 * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
24

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 * - 63 AS col0 FROM tab1 AS cor0
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + ( + + 65 ) * col0 + - 94 FROM tab2 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT - ( - col0 ) + - 2 - ( + col0 ) * - col0 AS col0 FROM tab2
----
2160
4158
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT DISTINCT - SUM( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-528
SELECT DISTINCT - SUM ( ALL + col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-156

query I rowsort
SELECT ALL - - col2 + 68 - - - col0 FROM tab2 AS cor0
----
44
45
51

query I rowsort
SELECT DISTINCT - col0 / + col1 AS col0 FROM tab2 AS cor0 WHERE + col1 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + CAST ( + col1 AS INTEGER ) + col0 - - - ( ( + + col0 ) ) AS col0 FROM tab2 cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-532
SELECT - CAST( - col0 AS SIGNED ), col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-532
SELECT - CAST ( - col0 AS INTEGER ), col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

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

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 99 - - col0 * + 79 - 26 - - col2 * - col1 FROM tab0
----
-2747
6538
7439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT col2 * - + 49 AS col2 FROM tab0 WHERE - ( + + col1 ) + - CAST( + + 2 AS SIGNED ) + + - col2 BETWEEN - col2 * - 76 + + col0 AND - 56
----

skipif mysql # not compatible
query I rowsort label-535
SELECT col2 * - + 49 AS col2 FROM tab0 WHERE - ( + + col1 ) + - CAST ( + + 2 AS INTEGER ) + + - col2 BETWEEN - col2 * - 76 + + col0 AND - 56
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - 82 * - ( + 17 ) col2 FROM tab0
----
-1313
-1373
-1393

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

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

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

query I rowsort
SELECT 17 * + 28 * + 61 AS col2 FROM tab0 AS cor0
----
29036
29036
29036

onlyif mysql # DIV for integer division: 
query I rowsort label-541
SELECT - ( + 7 ) DIV + col0 * - ( + 77 ) + col0 AS col2 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-541
SELECT - ( + 7 ) / + col0 * - ( + 77 ) + col0 AS col2 FROM tab2 cor0
----
46
64
75

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

query I rowsort
SELECT 56 * - 83 + 85 FROM tab1 AS cor0
----
-4563
-4563
-4563

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 94 = - 43
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-547
SELECT + - col0 DIV + col0 + 93 * - - col0 FROM tab0 AS cor0
----
1394
8090
9020

skipif mysql # not compatible
query I rowsort label-547
SELECT + - col0 / + col0 + 93 * - - col0 FROM tab0 AS cor0
----
1394
8090
9020

query I rowsort
SELECT ( - - col2 ) / + 39 FROM tab1 cor0 WHERE NOT - col1 <= + + 41
----

query I rowsort
SELECT - 77 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 29 * ( col0 ) + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 <= + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> - 34 * - + col2 / - 11 + col0 * - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-552
SELECT DISTINCT CAST( - COUNT( DISTINCT - - 10 ) AS SIGNED ) * + 80 AS col2 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-552
SELECT DISTINCT CAST ( - COUNT ( DISTINCT - - 10 ) AS INTEGER ) * + 80 AS col2 FROM tab0
----
-80

query I rowsort
SELECT col0 + - - ( + + 2 ) FROM tab2
----
48
66
77

query I rowsort
SELECT ALL 79 + - col0 + - + 88 AS col1 FROM tab2
----
-55
-73
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT - ( - COUNT( * ) ) + + COUNT( * ) + - COUNT( * ) * - COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-555
SELECT - ( - COUNT ( * ) ) + + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
15

query I rowsort
SELECT + col1 * + + col2 + col1 * - 10 FROM tab2
----
2310
3216
663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( + - ( + col1 ) ) col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT ALL + 51 + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-34
-40
0

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL + 51 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-34
-40
0

query I rowsort
SELECT - + 87 + - col2 AS col1 FROM tab0 AS cor0
----
-134
-186
-97

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
59
68
96

query I rowsort
SELECT + col1 * - - col1 * col1 FROM tab1
----
103823
125
2744

query I rowsort
SELECT - 65 - ( - - 53 ) * - col2 * + 15 AS col0 FROM tab2
----
18220
31735
46045

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

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

query I rowsort
SELECT + col1 * + + 93 AS col1 FROM tab2
----
4743
6231
7161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-567
SELECT ALL - MIN( DISTINCT 64 ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-567
SELECT ALL - MIN ( DISTINCT 64 ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-64
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + 31 * COUNT( * ) FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-569
SELECT + 31 * COUNT ( * ) FROM tab2
----
93

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

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT ALL - col2 DIV col2 * - 63 AS col1 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - col2 / col2 * - 63 AS col1 FROM tab2
----
63
63
63

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-575
SELECT DISTINCT - COUNT( DISTINCT 68 ), + MIN( - + col2 ) col1 FROM tab0 AS cor0
----
-1
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-575
SELECT DISTINCT - COUNT ( DISTINCT 68 ), + MIN ( - + col2 ) col1 FROM tab0 AS cor0
----
-1
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT DISTINCT - SUM( ALL 82 ) col0 FROM tab2
----
-246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-577
SELECT DISTINCT - SUM ( ALL 82 ) col0 FROM tab2
----
-246

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

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

skipif mysql # not compatible
query II rowsort label-579
SELECT ALL + ( + MAX ( ALL + + col0 ) ) AS col1, 95 FROM tab1 AS cor0
----
91
95

query I rowsort
SELECT ( - - col1 ) + + + 32 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL - + col1 + + col2 * + 62 * 43 FROM tab0 AS cor0
----
125221
263933
26639

query I rowsort
SELECT DISTINCT col0 * + 22 FROM tab2 cor0
----
1012
1408
1650

query I rowsort
SELECT 99 + - 30 * - 64 AS col2 FROM tab2 AS cor0
----
2019
2019
2019

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT ( MAX( ALL - col1 ) ) * + - 0 DIV - + 62 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-585
SELECT ( MAX ( ALL - col1 ) ) * + - 0 / - + 62 AS col0 FROM tab2
----
0

query I rowsort
SELECT + - 87 AS col0 FROM tab0 WHERE + 8 * - col2 + + col0 * - + 32 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-587
SELECT ALL 52 AS col0, + ( 61 ) * - MIN( + + col2 ) AS col2 FROM tab2
----
52
-1403

skipif mysql # not compatible
query II rowsort label-587
SELECT ALL 52 AS col0, + ( 61 ) * - MIN ( + + col2 ) AS col2 FROM tab2
----
52
-1403

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

query II rowsort
SELECT - 8, - 64 AS col1 FROM tab0
----
-8
-64
-8
-64
-8
-64

query I rowsort
SELECT DISTINCT ( 73 ) FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT MAX( + col2 ) * COUNT( * ) AS col0 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-591
SELECT MAX ( + col2 ) * COUNT ( * ) AS col0 FROM tab1
----
288

query I rowsort
SELECT ALL + ( 62 ) + col1 FROM tab0
----
143
63
83

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-595
SELECT DISTINCT CAST ( col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT + - col0 + - 78 AS col1 FROM tab0 AS cor0
----
-165
-175
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT - + 87 + - col1 DIV - 94 AS col0 FROM tab1 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-598
SELECT - + 87 + - col1 / - 94 AS col0 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 23 FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( - 65 )
----

query I rowsort
SELECT ALL 62 - - col1 AS col0 FROM tab0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT + COUNT( * ) * - 34 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-306

skipif mysql # not compatible
query I rowsort label-601
SELECT + COUNT ( * ) * - 34 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-306

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT + COUNT( * ) * - - 86 AS col1 FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-604
SELECT + COUNT ( * ) * - - 86 AS col1 FROM tab0 AS cor0
----
258

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

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

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

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

query I rowsort
SELECT 63 AS col1 FROM tab0 cor0
----
63
63
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT MAX( ( col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-610
SELECT MAX ( ( col1 ) ) AS col0 FROM tab1
----
47

query I rowsort
SELECT ALL - col0 * - 94 AS col1 FROM tab2
----
4324
6016
7050

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * - - col0 col0 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT ALL 41 - col2 - + col2 * - 43 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - 13 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-615
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab2
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 91 NOT IN ( 35 )
----

query I rowsort
SELECT ALL ( + + 15 ) AS col0 FROM tab1
----
15
15
15

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

query II rowsort
SELECT ALL + col0 AS col2, - col2 * + 45 + - col1 FROM tab1 AS cor0
----
51
-4334
85
-2660
91
-3107

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT DISTINCT + col2 DIV ( + col2 ) DIV + + 72 + + col2 * + col0 * + col1 FROM tab0 AS cor0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + col2 / ( + col2 ) / + + 72 + + col2 * + col0 * + col1 FROM tab0 AS cor0
----
18270
57105
9603

query II rowsort
SELECT DISTINCT + + col1 + col0, + col1 AS col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

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

query I rowsort
SELECT ( + 65 ) * - + col1 AS col1 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-631
SELECT ALL - 83 DIV COUNT( - + col2 ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - 83 / COUNT ( - + col2 ) FROM tab0 AS cor0
----
-27

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( 18 ) FROM tab0
----
18

query III rowsort
SELECT * FROM tab0 WHERE + col0 = col0 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT DISTINCT SUM( + - 72 ) * ( - COUNT( * ) ) FROM tab1
----
648

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT SUM ( + - 72 ) * ( - COUNT ( * ) ) FROM tab1
----
648

query I rowsort
SELECT ALL - col0 + - - 34 AS col1 FROM tab1
----
-17
-51
-57

query I rowsort
SELECT DISTINCT 99 + col0 AS col0 FROM tab0
----
114
186
196

query I rowsort
SELECT ALL + 43 - 78 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL SUM( + - 12 ) FROM tab2 AS cor0 WHERE - col0 * col2 * - - 33 * - col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL SUM ( + - 12 ) FROM tab2 AS cor0 WHERE - col0 * col2 * - - 33 * - col1 <= NULL
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 85 NOT BETWEEN + 55 AND 99 + - 44 * col0
----

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( + - 73 IS NULL )
----

query II rowsort
SELECT ALL 4 AS col0, col2 AS col1 FROM tab1 AS cor0
----
4
59
4
68
4
96

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT DISTINCT + MAX( 77 ) FROM tab0 WHERE NULL BETWEEN ( - col0 ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + MAX ( 77 ) FROM tab0 WHERE NULL BETWEEN ( - col0 ) AND col0
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - 96 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT COUNT( * ) * - - 88 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-651
SELECT COUNT ( * ) * - - 88 FROM tab2
----
264

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

query I rowsort
SELECT ALL col0 * ( + col0 ) AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT - MAX( - 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - MAX ( - 91 ) FROM tab0 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> col2 + - + 54
----

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

query II rowsort
SELECT ALL col2, - 87 + - 75 FROM tab0
----
10
-162
47
-162
99
-162

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT DISTINCT - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 24 / - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 24 / - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

query I rowsort
SELECT ALL + 0 * - ( + 75 ) + + col1 * + 70 + + col0 FROM tab0 AS cor0
----
1557
167
5685

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL - SUM( DISTINCT 57 ) * - - 9 * + 51 + - COUNT( * ) FROM tab0 AS cor0
----
-26166

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL - SUM ( DISTINCT 57 ) * - - 9 * + 51 + - COUNT ( * ) FROM tab0 AS cor0
----
-26166

query I rowsort
SELECT DISTINCT + + 11 FROM tab2 AS cor0 WHERE NULL < + col1 * - col0 * + - col2 * + + 60
----

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

query I rowsort
SELECT ALL ( - - col2 ) + + col1 * + col1 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT + - 46 * - - col2 AS col2 FROM tab2 AS cor0
----
-1058
-1840
-2668

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

skipif mysql # not compatible
query I rowsort label-667
SELECT - COUNT ( * ) / + 50 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - ( - 8 ) * + col1 FROM tab0
----
168
648
8

query II rowsort
SELECT + 30 * - 29 * col1 * + col2 * - col1, + col0 FROM tab2
----
206329200
64
226514940
75
52046010
46

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

query I rowsort
SELECT ALL - col1 * + 18 FROM tab1
----
-252
-846
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL - 12 * + - ( + + COUNT( * ) ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - 12 * + - ( + + COUNT ( * ) ) AS col2 FROM tab0
----
36

query I rowsort
SELECT ALL col2 * + col1 * - 26 FROM tab1
----
-34944
-7670
-83096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT + 28 * + CAST( - + col1 AS SIGNED ) FROM tab1
----
-1316
-140
-392

skipif mysql # not compatible
query I rowsort label-675
SELECT + 28 * + CAST ( - + col1 AS INTEGER ) FROM tab1
----
-1316
-140
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-676
SELECT + CAST( - 34 AS SIGNED ) + col1 FROM tab2 AS cor0
----
17
33
43

skipif mysql # not compatible
query I rowsort label-676
SELECT + CAST ( - 34 AS INTEGER ) + col1 FROM tab2 AS cor0
----
17
33
43

query I rowsort
SELECT ALL 50 - + - col0 AS col2 FROM tab1 AS cor0
----
101
135
141

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT - COUNT( * ) + - ( + 14 ) AS col0 FROM tab2 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-678
SELECT - COUNT ( * ) + - ( + 14 ) AS col0 FROM tab2 cor0
----
-17

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

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

query I rowsort
SELECT ALL - col2 / + col1 * col2 - 48 + + col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-681
SELECT + + col1 * + + col0 * col1 DIV + col1 + + + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
1215
1831
194

skipif mysql # not compatible
query I rowsort label-681
SELECT + + col1 * + + col0 * col1 / + col1 + + + col0 / col1 AS col0 FROM tab0 AS cor0
----
1215
1831
194

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

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

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

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

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

query II rowsort
SELECT - 94 AS col2, - 68 + + 94 AS col1 FROM tab2 AS cor0
----
-94
26
-94
26
-94
26

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL + SUM( - + 67 ) FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL + SUM ( - + 67 ) FROM tab2 AS cor0
----
-201

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

query II rowsort
SELECT ALL col2, col2 + - col0 AS col1 FROM tab1
----
59
-26
68
-23
96
45

query I rowsort
SELECT + 24 + - - col1 FROM tab1 WHERE NOT col1 BETWEEN + col1 AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-691
SELECT DISTINCT 82 AS col0, COUNT ( * ) AS col1 FROM tab0
----
82
3

query I rowsort
SELECT DISTINCT - 85 * + + 43 AS col1 FROM tab1
----
-3655

query I rowsort
SELECT DISTINCT + 51 * + 3 FROM tab1 AS cor0
----
153

query II rowsort
SELECT - 77 AS col0, + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-77
59
-77
68
-77
96

query I rowsort
SELECT 39 + 56 + col1 AS col0 FROM tab0 AS cor0
----
116
176
96

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-698
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-698
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + - col1 + + - col0 + 32 * + col2 FROM tab1 AS cor0
----
1883
2129
3058

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-701
SELECT ALL - + CAST( + - col2 AS SIGNED ) DIV - col1 + ( - - col1 ) + - 58 FROM tab0 AS cor0
----
-156
-37
23

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - + CAST ( + - col2 AS INTEGER ) / - col1 + ( - - col1 ) + - 58 FROM tab0 AS cor0
----
-156
-37
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-702
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * 56 * - col1 + col0 + + col1 / - - 37 * + 89 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * 56 * - col1 + col0 + + col1 / - - 37 * + 89 FROM tab2 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT ALL ( - col1 ) * col0 * + + col1 FROM tab2
----
-119646
-336675
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + + ( col0 ), col0 * + col0 col1 FROM tab0
----
108
7569
96
225
98
9409

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

skipif mysql # not compatible
query I rowsort label-707
SELECT 80 / - + col2 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-708
SELECT DISTINCT + 24 DIV + COUNT( * ) col2 FROM tab1
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-708
SELECT DISTINCT + 24 / + COUNT ( * ) col2 FROM tab1
----
8

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE - col0 * - 28 IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-710
SELECT + 47 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
47
3

query I rowsort
SELECT DISTINCT - + ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - col0 * - 21
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT - 79 * + 54 * + COUNT( * ) FROM tab1
----
-12798

skipif mysql # not compatible
query I rowsort label-713
SELECT - 79 * + 54 * + COUNT ( * ) FROM tab1
----
-12798

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT MIN( - + 36 ) FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-714
SELECT MIN ( - + 36 ) FROM tab2
----
-36

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + 15 * + + col0 col1 FROM tab0 cor0
----
-10575
-13050
-144045

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

query I rowsort
SELECT - 73 FROM tab2 AS cor0 WHERE NOT + col2 > 38 * + col0 * - 72
----

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

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

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

query I rowsort
SELECT ALL - col0 + + - 22 FROM tab2
----
-68
-86
-97

query I rowsort
SELECT - ( col2 ) FROM tab2 WHERE NOT - col1 * 59 IS NULL
----
-23
-40
-58

query II rowsort
SELECT DISTINCT - 74 AS col2, - col1 AS col0 FROM tab2 WHERE - 37 <> + 98
----
-74
-51
-74
-67
-74
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 56 * - col1 AS col1 FROM tab1 AS cor0 WHERE + col2 BETWEEN col2 AND 10
----

query I rowsort
SELECT - + 92 * + 5 FROM tab2 AS cor0 WHERE - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT DISTINCT - col1 * col0 DIV + + 57 col1 FROM tab0 AS cor0
----
-1
-21
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-727
SELECT DISTINCT - col1 * col0 / + + 57 col1 FROM tab0 AS cor0
----
-1
-21
-32

query I rowsort
SELECT - 98 + - 21 AS col1 FROM tab2
----
-119
-119
-119

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + col0 * 92 NOT BETWEEN - + 73 + + col2 / + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-730
SELECT ALL MIN( col0 ) AS col1, + CAST( NULL AS SIGNED ) * - + MIN( ALL + col0 ) FROM tab0 cor0
----
15
NULL

skipif mysql # not compatible
query II rowsort label-730
SELECT ALL MIN ( col0 ) AS col1, + CAST ( NULL AS INTEGER ) * - + MIN ( ALL + col0 ) FROM tab0 cor0
----
15
NULL

query I rowsort
SELECT ALL 3 + - 22 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - + 99 + + - 66 * + col0 FROM tab2 AS cor0
----
-3135
-4323
-5049

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

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT COUNT( ALL + ( + 43 ) ) - + ( - 41 ) + + 35 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT COUNT ( ALL + ( + 43 ) ) - + ( - 41 ) + + 35 FROM tab0 AS cor0
----
79

query II rowsort
SELECT 1, + 89 * - col1 AS col0 FROM tab2 AS cor0
----
1
-4539
1
-5963
1
-6853

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

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

query I rowsort
SELECT DISTINCT col2 * - - col2 FROM tab0 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
100
2209
9801

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

query I rowsort
SELECT 45 * - col0 FROM tab0
----
-3915
-4365
-675

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

skipif mysql # not compatible
query I rowsort label-740
SELECT + - MIN ( - + 92 ) FROM tab1 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT - COUNT( - - 18 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 < - 73
----
-3

skipif mysql # not compatible
query I rowsort label-741
SELECT - COUNT ( - - 18 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 < - 73
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT ALL - - MIN( ALL col2 ) FROM tab1 WHERE NULL < + col0 * + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL - - MIN ( ALL col2 ) FROM tab1 WHERE NULL < + col0 * + + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 74 / - 12 AND + - col2 + - + col2
----

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

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

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

skipif mysql # not compatible
query III rowsort label-745
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - + col0 ) < + CAST ( + + col0 AS INTEGER )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-748
SELECT DISTINCT - ( - col2 ) DIV + col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - ( - col2 ) / + col2 FROM tab2 AS cor0
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-750
SELECT - 40 DIV - + COUNT( * ) col0 FROM tab0 cor0
----
13

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

onlyif mysql # aggregate syntax: 
query II rowsort label-751
SELECT ALL MAX( DISTINCT + 89 ) AS col2, - 30 * + COUNT( * ) AS col2 FROM tab1
----
89
-90

skipif mysql # not compatible
query II rowsort label-751
SELECT ALL MAX ( DISTINCT + 89 ) AS col2, - 30 * + COUNT ( * ) AS col2 FROM tab1
----
89
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT ALL SUM( DISTINCT + ( - 43 ) ) AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-754
SELECT ALL SUM ( DISTINCT + ( - 43 ) ) AS col0 FROM tab2
----
-43

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-755
SELECT COUNT ( * ) + + 58 col1 FROM tab1
----
61

query II rowsort
SELECT ALL + 3 + + ( + ( - col0 ) ), col2 FROM tab2 AS cor0
----
-43
23
-61
40
-72
58

query I rowsort
SELECT + col2 / + col0 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT - 16 DIV - 9 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-759
SELECT DISTINCT - 16 / - 9 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT ALL + 79 + - col1 FROM tab2
----
12
2
28

query I rowsort
SELECT col1 - col2 * ( - - col0 ) + 19 AS col0 FROM tab1
----
-4863
-4991
-6122

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

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

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

query I rowsort
SELECT DISTINCT - + 38 AS col0 FROM tab2 AS cor0
----
-38

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 - + col2 col2 FROM tab2
----
-10
-28
7

query I rowsort
SELECT DISTINCT + 21 AS col1 FROM tab1
----
21

query I rowsort
SELECT col1 * + 89 * - col2 AS col2 FROM tab2
----
-104397
-274120
-345854

query II rowsort
SELECT ALL - 6, col1 * col2 * col2 AS col0 FROM tab2
----
-6
123200
-6
225388
-6
26979

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT 5 AS col1, ( - COUNT( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
5
-9

skipif mysql # not compatible
query II rowsort label-775
SELECT 5 AS col1, ( - COUNT ( * ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
5
-9

query I rowsort
SELECT DISTINCT + 45 * 3 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 18 IN ( col2, + col0, + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 18 IN ( col2, + col0, + col2 )
----
0

query I rowsort
SELECT ALL - 85 * + ( - 41 ) AS col1 FROM tab1 AS cor0
----
3485
3485
3485

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / 16 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / 16 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-782
SELECT DISTINCT - 26 DIV - - MAX( - - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-782
SELECT DISTINCT - 26 / - - MAX ( - - col1 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( 63 )
----

query I rowsort
SELECT 38 * col2 AS col1 FROM tab2
----
1520
2204
874

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

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE - col1 * - col2 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE + 8 * - ( + 46 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL COUNT( * ) * - 60 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL COUNT ( * ) * - 60 FROM tab2
----
-180

onlyif mysql # aggregate syntax: 
query II rowsort label-789
SELECT COUNT( * ), + 64 AS col1 FROM tab0
----
3
64

skipif mysql # not compatible
query II rowsort label-789
SELECT COUNT ( * ), + 64 AS col1 FROM tab0
----
3
64

query I rowsort
SELECT ALL - col1 + 70 AS col0 FROM tab2 AS cor0
----
-7
19
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-791
SELECT ALL ( CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-14
-47
-5

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

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

query I rowsort
SELECT ALL - col2 + - 28 AS col1 FROM tab2
----
-51
-68
-86

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-797
SELECT + 63 * + COUNT ( col2 ) FROM tab1
----
189

query I rowsort
SELECT - col0 * - 29 AS col2 FROM tab2
----
1334
1856
2175

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT - COUNT( * ) * ( - 89 ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-799
SELECT - COUNT ( * ) * ( - 89 ) FROM tab0
----
267

query I rowsort
SELECT DISTINCT - col0 / col0 FROM tab1 WHERE NULL BETWEEN + col1 AND + ( col1 )
----

query I rowsort
SELECT ALL ( - col2 ) * + 97 FROM tab0
----
-4559
-9603
-970

query I rowsort
SELECT DISTINCT - 87 FROM tab0 WHERE NOT 55 IN ( 87 / - 54 + col0 * + 62 )
----
-87

query I rowsort
SELECT - 76 * + 58 + col1 FROM tab0
----
-4327
-4387
-4407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * col2 col2 FROM tab1
----
1534
1768
2496

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * col1 ) <> ( + 37 * - col2 + 40 )
----

query I rowsort
SELECT ALL col0 * 3 FROM tab1
----
153
255
273

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

query I rowsort
SELECT + col0 + - 23 AS col1 FROM tab0
----
-8
64
74

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT + COUNT( * ) + - 26 FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-809
SELECT + COUNT ( * ) + - 26 FROM tab1
----
-23

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-811
SELECT ALL + COUNT( * ) * 37 + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + COUNT ( * ) * 37 + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
108

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

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

query I rowsort
SELECT DISTINCT 74 + + col0 * + col1 FROM tab0
----
1289
171
1901

query I rowsort
SELECT ALL + col2 - ( 92 ) FROM tab0
----
-45
-82
7

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

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL COUNT( * ) + SUM( + col2 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL COUNT ( * ) + SUM ( + col2 ) FROM tab2
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + 12 col2 FROM tab2
----
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE col1 NOT IN ( + col2 - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE col1 NOT IN ( + col2 - col1 )
----
3

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - col1 )
----

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

query I rowsort
SELECT 98 FROM tab2 WHERE NULL IS NULL
----
98
98
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-825
SELECT - col2 DIV + 51 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-825
SELECT - col2 / + 51 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + 63 + 65 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT MAX( ALL - ( - 25 ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
25

skipif mysql # not compatible
query I rowsort label-828
SELECT MAX ( ALL - ( - 25 ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
25

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

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE NOT ( 35 ) <= + 72
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT 68 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-834
SELECT 68 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-204

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

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

query I rowsort
SELECT col1 * + col1 FROM tab0 AS cor0 WHERE + 97 + + 31 IS NULL
----

query I rowsort
SELECT DISTINCT - + ( - col1 ) * - col1 + col2 FROM tab2 AS cor0
----
-2578
-4431
-5889

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - 4 >= - col0
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT DISTINCT - SUM( 92 ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - SUM ( 92 ) FROM tab0 AS cor0
----
-276

query I rowsort
SELECT ALL - 90 * + ( 37 * - col2 ) AS col0 FROM tab0 AS cor0
----
156510
329670
33300

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 91 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) < ( col0 * col1 )
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-843
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + - col1 <> + col2
----

skipif mysql # not compatible
query III rowsort label-843
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + - col1 <> + col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN col2 * + col2 + ( + col0 + - col0 / 82 ) AND col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT + 7 + + COUNT( * ) AS col0 FROM tab0 WHERE col2 < - 78
----
7

skipif mysql # not compatible
query I rowsort label-847
SELECT + 7 + + COUNT ( * ) AS col0 FROM tab0 WHERE col2 < - 78
----
7

query I rowsort
SELECT + 20 + 85 + col2 FROM tab0
----
115
152
204

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + COUNT( * ) + - 10 - 14 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-849
SELECT + COUNT ( * ) + - 10 - 14 FROM tab0
----
-21

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

query I rowsort
SELECT ALL col0 * col0 * 32 AS col1 FROM tab1
----
231200
264992
83232

query I rowsort
SELECT ( - col1 ) + 5 * col2 AS col1 FROM tab2
----
123
223
64

query I rowsort
SELECT DISTINCT 1 * - + col0 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + col2 + - - 13 + + col1 FROM tab1 AS cor0
----
123
128
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-855
SELECT DISTINCT - - 19 + - 79 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - - 19 + - 79 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT DISTINCT + 84 + - - SUM( 1 ) AS col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT + 84 + - - SUM ( 1 ) AS col2 FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - SUM( - 92 ) + 14 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
290

skipif mysql # not compatible
query I rowsort label-857
SELECT - SUM ( - 92 ) + 14 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL + MAX( col1 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + MAX ( col1 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT 25 * - COUNT( * ) col1 FROM tab1 AS cor0 WHERE col0 * + col0 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-859
SELECT DISTINCT 25 * - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE col0 * + col0 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-860
SELECT CAST( + 50 AS SIGNED ) - + 57 AS col2 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-860
SELECT CAST ( + 50 AS INTEGER ) - + 57 AS col2 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT - col0 - col2 * + col2 FROM tab1
----
-3566
-4715
-9267

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

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

query I rowsort
SELECT DISTINCT - col1 + col0 + - + col1 AS col1 FROM tab0 cor0
----
-147
45
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-865
SELECT ALL * FROM tab1 AS cor0 WHERE 23 + + - CAST( NULL AS SIGNED ) * - 80 <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-865
SELECT ALL * FROM tab1 AS cor0 WHERE 23 + + - CAST ( NULL AS INTEGER ) * - 80 <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 22 * 30 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 IN ( + 42 - 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( 42 ) * - 67 + + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab0 WHERE - - col1 + - col2 * + ( + col0 + - col0 ) <= NULL
----

query I rowsort
SELECT + col1 * - + col1 AS col1 FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT ALL - ( 54 ) AS col0 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT ALL 77 FROM tab0 WHERE + col2 <= - 15 + + 20
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( - 31 + - 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT - 22 * COUNT( * ) FROM tab0 WHERE NOT - col1 IS NULL
----
-66

skipif mysql # not compatible
query I rowsort label-877
SELECT - 22 * COUNT ( * ) FROM tab0 WHERE NOT - col1 IS NULL
----
-66

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

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

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

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

query I rowsort
SELECT 0 * + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 96 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT 49 + - SUM( ALL 20 ) * 86 AS col0 FROM tab1
----
-5111

skipif mysql # not compatible
query I rowsort label-883
SELECT 49 + - SUM ( ALL 20 ) * 86 AS col0 FROM tab1
----
-5111

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 20 + + col2 / - 85 IS NULL
----

query I rowsort
SELECT ALL - col1 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-2652
-4556
-6006

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-886
SELECT DISTINCT COUNT( * ), - 55 + - ( - CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-886
SELECT DISTINCT COUNT ( * ), - 55 + - ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT MIN( DISTINCT - + 23 ) + - 78 AS col0 FROM tab1 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-887
SELECT MIN ( DISTINCT - + 23 ) + - 78 AS col0 FROM tab1 AS cor0
----
-101

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

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

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

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

query I rowsort
SELECT DISTINCT - + ( - + col2 ) FROM tab2 cor0
----
23
40
58

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

query I rowsort
SELECT - - col1 * + col2 * - 20 AS col1 FROM tab2 cor0
----
-23460
-61600
-77720

query III rowsort
SELECT * FROM tab1 WHERE + 85 + + 33 NOT BETWEEN ( - col0 ) AND 24 / - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT DISTINCT + 46 * + + ( + + CAST( + 40 AS SIGNED ) ) FROM tab0
----
1840

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT + 46 * + + ( + + CAST ( + 40 AS INTEGER ) ) FROM tab0
----
1840

query I rowsort
SELECT + col0 * + 1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-896
SELECT ( - COUNT( - CAST( + col1 AS SIGNED ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-896
SELECT ( - COUNT ( - CAST ( + col1 AS INTEGER ) ) ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * - 98 col1, col2 AS col1 FROM tab0
----
4606
47
9702
99
980
10

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

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

query I rowsort
SELECT - col2 * 24 AS col2 FROM tab1 WHERE - 37 NOT BETWEEN - 92 AND ( + col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE + 88 IS NULL
----

query I rowsort
SELECT ALL + - col1 * 25 AS col2 FROM tab2 AS cor0
----
-1275
-1675
-1925

query III rowsort
SELECT * FROM tab2 WHERE ( - + 20 ) NOT BETWEEN + 73 AND + - 15 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT ( - + col0 ) AS col2, col0 + + col0 + col1 * - 6 FROM tab0
----
-15
-456
-87
48
-97
188

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

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab1
----
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-907
SELECT - MAX( - CAST( - col2 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-907
SELECT - MAX ( - CAST ( - col2 AS INTEGER ) ) col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT 68 * 30 FROM tab0 cor0
----
2040
2040
2040

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 32 + - col2 + - + ( - 95 ) / - ( - col0 ) * + col0 = NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-912
SELECT - col2 DIV - - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-912
SELECT - col2 / - - col0 AS col1 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-913
SELECT ALL col2 * + col1 * - CAST( NULL AS SIGNED ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-913
SELECT ALL col2 * + col1 * - CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT DISTINCT - MAX( + 31 ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT - MAX ( + 31 ) FROM tab1
----
-31

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

query I rowsort
SELECT + 91 * + 12 AS col2 FROM tab1
----
1092
1092
1092

query I rowsort
SELECT ALL + - 7 AS col1 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col1 * col0 - + 75 + 34
----

query II rowsort
SELECT ALL col0 AS col0, col0 * + + col0 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT ALL - COUNT( * ) + - + 38 DIV + - ( + 59 ) * - SUM( ALL + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - COUNT ( * ) + - + 38 / + - ( + 59 ) * - SUM ( ALL + col1 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 + + 86 AS col0 FROM tab2 AS cor0
----
1310
3243
4039

query I rowsort
SELECT + col0 + - + col1 / 80 FROM tab1 AS cor0 WHERE col0 * - col2 NOT BETWEEN - col1 * 5 * col1 * + 95 AND NULL
----

query II rowsort
SELECT DISTINCT - - 80 + + - col0 AS col1, + col0 FROM tab0 AS cor0
----
-17
97
-7
87
65
15

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT - 63 + + COUNT( * ) AS col1 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-926
SELECT - 63 + + COUNT ( * ) AS col1 FROM tab1
----
-60

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + ( + - col1 ) / + col1 / + col0 * + col2 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT COUNT( * ) * - 17 + + + MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-930
SELECT COUNT ( * ) * - 17 + + + MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
-28

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

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

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

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

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

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 < + col0 / - - 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT + 72 DIV + col1 - - + col1 AS col2 FROM tab0 AS cor0
----
24
73
81

skipif mysql # not compatible
query I rowsort label-937
SELECT + 72 / + col1 - - + col1 AS col2 FROM tab0 AS cor0
----
24
73
81

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

skipif mysql # not compatible
query III rowsort label-938
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + + - ( ( - ( + 64 ) ) ) BETWEEN - col1 AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + + - ( ( - ( + 64 ) ) ) BETWEEN - col1 AND + col0
----
0

query I rowsort
SELECT - + col0 * col2 - - col0 * 98 AS col1 FROM tab0 AS cor0
----
-97
765
7656

query I rowsort
SELECT ALL - - 36 * col1 * - 51 + - col2 FROM tab0 AS cor0
----
-148763
-1935
-38566

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT 29 * + COUNT( * ) * + MIN( DISTINCT + + col0 ) FROM tab2
----
4002

skipif mysql # not compatible
query I rowsort label-942
SELECT 29 * + COUNT ( * ) * + MIN ( DISTINCT + + col0 ) FROM tab2
----
4002

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL - COUNT( * ) * ( - COUNT( * ) ) + - 19 + - + 6 + - MAX( - 34 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL - COUNT ( * ) * ( - COUNT ( * ) ) + - 19 + - + 6 + - MAX ( - 34 ) FROM tab0
----
18

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

onlyif mysql # DIV for integer division: 
query II rowsort label-947
SELECT - col0 DIV - col1 + + col1 - + - col2 + + + col1 + - col2 * 75 AS col0, col2 FROM tab1 AS cor0
----
-4339
59
-4937
68
-7073
96

skipif mysql # not compatible
query II rowsort label-947
SELECT - col0 / - col1 + + col1 - + - col2 + + + col1 + - col2 * 75 AS col0, col2 FROM tab1 AS cor0
----
-4339
59
-4937
68
-7073
96

query I rowsort
SELECT 64 * - 17 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1088
-1088
-1088

query I rowsort
SELECT DISTINCT + col1 + + 62 AS col0 FROM tab1
----
109
67
76

query I rowsort
SELECT - - col2 + col1 * + col1 * - 26 AS col0 FROM tab0 AS cor0
----
-11456
-170539
73

query I rowsort
SELECT DISTINCT 49 + - col0 FROM tab0 cor0
----
-38
-48
34

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 - - + 13 FROM tab0
----
14
34
94

query III rowsort
SELECT * FROM tab1 WHERE 69 IS NULL
----

query I rowsort
SELECT + ( col1 ) FROM tab1 WHERE col0 IS NOT NULL
----
14
47
5

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

query II rowsort
SELECT ALL 19 + + col2 AS col1, + col0 FROM tab0
----
118
97
29
87
66
15

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

query I rowsort
SELECT ALL + 79 * + + col1 - - col2 + + - 9 AS col2 FROM tab0 AS cor0
----
1660
169
6437

query II rowsort
SELECT + col2 + col1, - 52 + - + 78 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
100
-130
128
-130
31
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT - 41 * + - SUM( DISTINCT - - col2 ) col1 FROM tab2 AS cor0
----
4961

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-964
SELECT - 41 * + - SUM ( DISTINCT - - col2 ) col1 FROM tab2 AS cor0
----
4961

query I rowsort
SELECT ALL - 58 * - 42 FROM tab2 AS cor0
----
2436
2436
2436

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT - 54 * ( + - MAX( DISTINCT - col1 ) ) AS col2 FROM tab2 AS cor0
----
-2754

skipif mysql # not compatible
query I rowsort label-966
SELECT - 54 * ( + - MAX ( DISTINCT - col1 ) ) AS col2 FROM tab2 AS cor0
----
-2754

query I rowsort
SELECT col2 * + + 83 AS col2 FROM tab0 AS cor0
----
3901
8217
830

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-969
SELECT ALL col0 AS col0, col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-969
SELECT ALL col0 AS col0, col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT ALL - ( - 23 ) AS col2 FROM tab0
----
23
23
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL + - MIN( - col0 ) * - COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + - MIN ( - col0 ) * - COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + ( - col2 ) + col2 * col0 * + col0 FROM tab0
----
10528
75680
931392

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT COUNT( * ) + 76 AS col2 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-974
SELECT COUNT ( * ) + 76 AS col2 FROM tab1
----
79

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

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

query I rowsort
SELECT - col0 + - + 37 + - col0 FROM tab0 AS cor0
----
-211
-231
-67

query I rowsort
SELECT 29 + - + col1 AS col0 FROM tab2 AS cor0
----
-22
-38
-48

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

query I rowsort
SELECT DISTINCT - ( - + 5 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
5

query I rowsort
SELECT col1 - 81 FROM tab0 AS cor0
----
-60
-80
0

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT - + col2 DIV + 88 + + col1 - + col2 AS col1 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT - + col2 / + 88 + + col1 - + col2 AS col1 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + 70 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + 70 FROM tab1 AS cor0
----
61

query I rowsort
SELECT ALL ( col0 ) + - col1 + - col2 * - col0 FROM tab2 AS cor0
----
1053
2547
4358

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT MIN( ALL + 27 ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
27

skipif mysql # not compatible
query I rowsort label-985
SELECT MIN ( ALL + 27 ) FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
27

query I rowsort
SELECT - 45 - + col1 + - 40 AS col0 FROM tab0 AS cor0
----
-106
-166
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + 13 - + + ( COUNT( * ) ) AS col0 FROM tab2 cor0
----
10

skipif mysql # not compatible
query I rowsort label-987
SELECT + 13 - + + ( COUNT ( * ) ) AS col0 FROM tab2 cor0
----
10

query I rowsort
SELECT ALL - + col0 * + 45 - ( - - ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
-4002
-4462
-690

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

query I rowsort
SELECT - 1 + + + 83 AS col1 FROM tab1 AS cor0
----
82
82
82

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 - - - 0 col1 FROM tab2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-994
SELECT - + col0 DIV + 41 FROM tab0 WHERE - - col2 > + - col0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-994
SELECT - + col0 / + 41 FROM tab0 WHERE - - col2 > + - col0
----
-2
-2
0

query II rowsort
SELECT + col2, + col1 * col1 FROM tab1
----
59
25
68
2209
96
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT DISTINCT + - 66 / + CAST( 57 AS SIGNED ) + + - 25 + CAST( + + 64 AS SIGNED ) * + 57 * + 38 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + - 66 / + CAST ( 57 AS INTEGER ) + + - 25 + CAST ( + + 64 AS INTEGER ) * + 57 * + 38 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + ( 19 ) FROM tab2
----
19
19
19

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

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

query I rowsort
SELECT + ( + 49 ) * - - col0 + + col2 AS col0 FROM tab2
----
2277
3176
3733

query I rowsort
SELECT - - 6 FROM tab1 AS cor0 WHERE NOT + col1 / 94 * - + col0 + col1 IS NULL
----
6
6
6

query I rowsort
SELECT DISTINCT - 41 * - + 21 * - 64 FROM tab1 AS cor0
----
-55104

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1003
SELECT ALL - + 76 * - 69, - COUNT( * ) * - 64 AS col2 FROM tab0 AS cor0
----
5244
192

skipif mysql # not compatible
query II rowsort label-1003
SELECT ALL - + 76 * - 69, - COUNT ( * ) * - 64 AS col2 FROM tab0 AS cor0
----
5244
192

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1005
SELECT 64 DIV + COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1005
SELECT 64 / + COUNT ( * ) FROM tab0 AS cor0
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT MIN( ALL - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1007
SELECT MIN ( ALL - col1 ) AS col1 FROM tab0
----
-81

query II rowsort
SELECT col0, + 83 FROM tab1
----
51
83
85
83
91
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - col2 col0 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1010
SELECT MIN( CAST( + col1 AS SIGNED ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1010
SELECT MIN ( CAST ( + col1 AS INTEGER ) ) FROM tab1
----
5

query I rowsort
SELECT ALL + 81 * 17 + col2 FROM tab2 AS cor0
----
1400
1417
1435

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

query I rowsort
SELECT + - 71 AS col2 FROM tab1 cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - 68 + + 79 FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 35 ) * - col1 + - 26 col0 FROM tab2
----
1759
2319
2669

query I rowsort
SELECT + 52 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

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

query I rowsort
SELECT ALL - 97 + - 26 FROM tab0 AS cor0
----
-123
-123
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT - ( + - MAX( DISTINCT + - col2 ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-1019
SELECT - ( + - MAX ( DISTINCT + - col2 ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT MAX( - col2 ) - - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1021
SELECT MAX ( - col2 ) - - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT ALL - col0 - - col2 - + col0 * col0 * + - 90 FROM tab0 AS cor0
----
20282
681133
846812

query I rowsort
SELECT col0 - - + col1 * + 41 - - col0 AS col1 FROM tab2 AS cor0
----
2183
2897
3285

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

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

query I rowsort
SELECT DISTINCT + col0 - - 26 * - + col0 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT + 99 * - COUNT( * ) * + + COUNT( * ) FROM tab1
----
-891

skipif mysql # not compatible
query I rowsort label-1026
SELECT + 99 * - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
-891

onlyif mysql # DIV for integer division: 
query II rowsort label-1027
SELECT ALL 78 DIV - - col2 col1, - col1 FROM tab2
----
1
-67
1
-77
3
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1027
SELECT ALL 78 / - - col2 col1, - col1 FROM tab2
----
1
-67
1
-77
3
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT DISTINCT - MIN( ALL + - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - MIN ( ALL + - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT + 17 DIV - - MIN( - 11 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1029
SELECT + 17 / - - MIN ( - 11 ) FROM tab1
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT + - COUNT( * ) * 86 + + COUNT( - + col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-1032
SELECT + - COUNT ( * ) * 86 + + COUNT ( - + col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-267

query II rowsort
SELECT + - col1 * + 88, 82 AS col2 FROM tab0 AS cor0
----
-1848
82
-7128
82
-88
82

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

query II rowsort
SELECT 19, 88 AS col2 FROM tab2
----
19
88
19
88
19
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * - col1 col1 FROM tab2 AS cor0
----
3876
5092
5852

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT - col1 / - col2 - - col2 / col2 AS col1 FROM tab1 cor0
----
1
1
1

query II rowsort
SELECT ALL + 34, col0 FROM tab0 AS cor0
----
34
15
34
87
34
97

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

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

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE NOT NULL < ( 99 + ( - col1 ) / + + 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT col1 * + col2 AS col0 FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1043
SELECT * FROM tab0 WHERE col0 * - 15 * 29 / col0 + + ( - - ( + - CAST( col0 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1043
SELECT * FROM tab0 WHERE col0 * - 15 * 29 / col0 + + ( - - ( + - CAST ( col0 AS INTEGER ) ) ) IS NULL
----

query II rowsort
SELECT ALL 71 * + col0 AS col0, col1 * - + ( + - 81 ) FROM tab2
----
3266
4131
4544
6237
5325
5427

query II rowsort
SELECT - 34, 7 AS col2 FROM tab1 WHERE ( 65 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1046
SELECT + CAST( NULL AS SIGNED ) + + MAX( - col1 ) + - - 12, 4 col1 FROM tab1
----
NULL
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1046
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( - col1 ) + - - 12, 4 col1 FROM tab1
----
NULL
4

query II rowsort
SELECT ALL col2 + + col0 AS col1, - col1 AS col0 FROM tab0
----
196
-1
62
-81
97
-21

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

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

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

query I rowsort
SELECT - 88 - - + col1 FROM tab1
----
-41
-74
-83

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT ( - col0 ) FROM tab0 AS cor0 WHERE - col2 + - col1 * + CAST ( + col1 AS INTEGER ) IS NOT NULL
----
-15
-87
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT DISTINCT 77 * - MAX( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-7007

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT 77 * - MAX ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-7007

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT ALL + col1 DIV + ( - col0 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL + col1 / + ( - col0 ) FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT 71 * - - MAX( ALL + 54 ) col2 FROM tab2
----
3834

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1057
SELECT 71 * - - MAX ( ALL + 54 ) col2 FROM tab2
----
3834

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

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

query I rowsort
SELECT ALL ( - - 40 ) AS col1 FROM tab1
----
40
40
40

query II rowsort
SELECT DISTINCT + 63 AS col0, 78 FROM tab0
----
63
78

query II rowsort
SELECT DISTINCT + col0 AS col2, 30 AS col1 FROM tab2
----
46
30
64
30
75
30

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT - col0 DIV - + 25 AS col2 FROM tab0 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-1064
SELECT - col0 / - + 25 AS col2 FROM tab0 AS cor0
----
0
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + ( + col2 ) ) col2, - 8 * col2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-80
-47
-376
-99
-792

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

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

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

query I rowsort
SELECT ALL + 72 FROM tab0 AS cor0 WHERE + col0 <> NULL
----

query II rowsort
SELECT + 33 + + col2 - 93 * + + col1, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + + col1
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1072
SELECT DISTINCT - + 82 + - + CAST( NULL AS DECIMAL ) AS col0, 85 FROM tab2 cor0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-1072
SELECT DISTINCT - + 82 + - + CAST ( NULL AS REAL ) AS col0, 85 FROM tab2 cor0
----
NULL
85

query I rowsort
SELECT - + 28 * - col2 * - col0 FROM tab1 AS cor0
----
-137088
-140420
-173264

query II rowsort
SELECT + col2 * - col0 * 46 AS col1, 23 FROM tab0 cor0
----
-32430
23
-40020
23
-441738
23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT + 0 DIV 92 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT + 0 / 92 AS col0 FROM tab0
----
0
0
0

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1079
SELECT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1079
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 80 * - 81 FROM tab2
----
6480
6480
6480

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT - - COUNT( 69 ) * - 62 + + ( + 63 ) col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1082
SELECT - - COUNT ( 69 ) * - 62 + + ( + 63 ) col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
63

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

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

query I rowsort
SELECT ALL - col0 - - - col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1088
SELECT DISTINCT - - CAST( + 11 AS SIGNED ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-1088
SELECT DISTINCT - - CAST ( + 11 AS INTEGER ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
11
3

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 * + - ( - - 33 ) + ( - - 61 ) - - col0 + 84 * - col1 + - + 42 * - col2 * - col1 > 46 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - col0 * - col1 * 16 FROM tab0 AS cor0
----
1552
19440
29232

query I rowsort
SELECT DISTINCT col2 * 84 + + + col1 AS col1 FROM tab2 AS cor0
----
1983
3437
4939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 24 col2, 85 * col0 FROM tab1
----
-24
4335
-24
7225
-24
7735

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 BETWEEN - + 87 AND - + col2 / + col2
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT - + 30 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col1 / col0 / - col1 + 12 * 66 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + ( - + col2 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 18 * col1 * + col2 * + + col1 FROM tab0 cor0
----
1782
5550606
79380

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL MIN( + col2 ) * + 87 FROM tab0 AS cor0
----
870

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL MIN ( + col2 ) * + 87 FROM tab0 AS cor0
----
870

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 7 AND ( 70 )
----

query I rowsort
SELECT DISTINCT ( - 60 ) FROM tab0
----
-60

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

query I rowsort
SELECT + col2 * - + col2 + + 97 AS col2 FROM tab2
----
-1503
-3267
-432

query I rowsort
SELECT col0 + - 90 AS col0 FROM tab1
----
-39
-5
1

query III rowsort
SELECT * FROM tab2 WHERE 23 <> ( col2 )
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT ALL + col0 DIV + col2 + + 53 * 1 * col0 FROM tab1
----
2703
4506
4824

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL + col0 / + col2 + + 53 * 1 * col0 FROM tab1
----
2703
4506
4824

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1111
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0 WHERE ( NULL ) >= - col1
----
0

query I rowsort
SELECT DISTINCT col0 + + - col0 - + 5 + + + 59 * - col1 AS col2 FROM tab0
----
-1244
-4784
-64

query I rowsort
SELECT - col2 + + ( + - col2 ) * - - col0 FROM tab0
----
-752
-880
-9702

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 63 NOT BETWEEN - + col0 AND col1 / 55 / - col0
----

query I rowsort
SELECT DISTINCT col1 * + col0 + + 9 AS col2 FROM tab1 cor0
----
4286
434
723

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + ( col2 ) NOT BETWEEN - 98 AND - + 91
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT + col1 - - 97 + + col0 + - + col0 / - - 82 - - col0 * + 19 * + CAST( NULL AS SIGNED ) * - 69 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT + col1 - - 97 + + col0 + - + col0 / - - 82 - - col0 * + 19 * + CAST ( NULL AS INTEGER ) * - 69 AS col2 FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT + + ( + 25 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1120
SELECT + + ( + 25 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
75

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

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

query I rowsort
SELECT DISTINCT - 2 * - col0 + - col0 FROM tab2 AS cor0
----
46
64
75

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT DISTINCT SUM( DISTINCT - 98 ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT SUM ( DISTINCT - 98 ) FROM tab1
----
-98

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 82 * - col1 FROM tab0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT + 76 * + COUNT( * ) AS col2 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT + 76 * + COUNT ( * ) AS col2 FROM tab0
----
228

query I rowsort
SELECT ALL col1 * 24 * + - 6 FROM tab2
----
-11088
-7344
-9648

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

query I rowsort
SELECT DISTINCT + + 20 * - + ( - col0 ) + + 19 * - 37 FROM tab0 AS cor0
----
-403
1037
1237

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL + COUNT( * ) + - 82 + + 43 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL + COUNT ( * ) + - 82 + + 43 FROM tab2 AS cor0
----
-36

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

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

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

query I rowsort
SELECT DISTINCT col2 - + 14 AS col2 FROM tab0 AS cor0
----
-4
33
85

query I rowsort
SELECT col1 * + 42 * - 13 AS col0 FROM tab2
----
-27846
-36582
-42042

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT + + 79 + + COUNT( * ) + + 63 AS col2 FROM tab1 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-1143
SELECT + + 79 + + COUNT ( * ) + + 63 AS col2 FROM tab1 AS cor0
----
145

query I rowsort
SELECT + col2 + + 35 - + col2 AS col0 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + + col2 - + + col1 FROM tab1 AS cor0
----
21
54
82

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 87 * - + col0 AS col2 FROM tab1 AS cor0 WHERE + col1 * + col2 + + - col0 IS NOT NULL
----
-4437
-7395
-7917

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + 76 AS col1 FROM tab1
----
1064
3572
380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1155
SELECT ALL + + ( col0 ) + - 34 - - CAST( NULL AS SIGNED ) * + 60, col0 col1 FROM tab1 WHERE + col1 BETWEEN NULL AND col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1155
SELECT ALL + + ( col0 ) + - 34 - - CAST ( NULL AS INTEGER ) * + 60, col0 col1 FROM tab1 WHERE + col1 BETWEEN NULL AND col1
----

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

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

query I rowsort
SELECT - - 51 * + 77 FROM tab2 AS cor0
----
3927
3927
3927

query I rowsort
SELECT ALL 51 * + col0 * - - col2 FROM tab2
----
130560
221850
53958

query I rowsort
SELECT - - 83 * - - 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b59cc1ac1c8c025e64f93c69fd5981

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 26 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1161
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE ( NOT + CAST( + + col1 AS SIGNED ) >= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT + CAST ( + + col1 AS INTEGER ) >= NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT - + SUM( ALL - 61 ) AS col2 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-1162
SELECT - + SUM ( ALL - 61 ) AS col2 FROM tab1 AS cor0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT + + 46 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT + + 46 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
49

query I rowsort
SELECT ALL col2 + - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL - ( MAX( DISTINCT - 93 ) ) - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - ( MAX ( DISTINCT - 93 ) ) - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT ALL + 87 + + + CAST( + 46 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
133
133
133

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + 87 + + + CAST ( + 46 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
133
133
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1168
SELECT ALL - col0 * CAST( - + ( - - col2 ) AS SIGNED ) - - 72 AS col1 FROM tab0 AS cor0
----
777
942
9675

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL - col0 * CAST ( - + ( - - col2 ) AS INTEGER ) - - 72 AS col1 FROM tab0 AS cor0
----
777
942
9675

query I rowsort
SELECT ALL + 9 * - - col1 FROM tab0
----
189
729
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1170
SELECT DISTINCT - col0 DIV - CAST( - col1 AS SIGNED ) - + + 42 * 60, col0 AS col1 FROM tab2
----
-2520
46
-2520
64
-2521
75

skipif mysql # not compatible
query II rowsort label-1170
SELECT DISTINCT - col0 / - CAST ( - col1 AS INTEGER ) - + + 42 * 60, col0 AS col1 FROM tab2
----
-2520
46
-2520
64
-2521
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1171
SELECT col2 * CAST( + col1 AS SIGNED ) AS col1, col0 FROM tab2
----
1173
46
3080
64
3886
75

skipif mysql # not compatible
query II rowsort label-1171
SELECT col2 * CAST ( + col1 AS INTEGER ) AS col1, col0 FROM tab2
----
1173
46
3080
64
3886
75

query III rowsort
SELECT * FROM tab0 WHERE + - 28 * 18 IS NULL
----

query I rowsort
SELECT DISTINCT 83 * - - col0 AS col0 FROM tab0
----
1245
7221
8051

query II rowsort
SELECT - ( - + 21 ) * + 24 AS col0, ( + col1 ) * + col2 * - + col1 FROM tab0
----
504
-308367
504
-4410
504
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + col2 col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT DISTINCT 29 - + 2 FROM tab0 cor0
----
27

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1178
SELECT SUM ( - - col2 ) col2 FROM tab1
----
223

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT DISTINCT MAX( DISTINCT - + 58 ) * + 79 AS col1 FROM tab1 AS cor0
----
-4582

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT MAX ( DISTINCT - + 58 ) * + 79 AS col1 FROM tab1 AS cor0
----
-4582

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, 20 * - + 63 + 92 + - col1 col1 FROM tab1 AS cor0
----
14
-1182
47
-1215
5
-1173

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT + 23 DIV + ( + col0 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1186
SELECT + 23 / + ( + col0 ) FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1187
SELECT ALL + MAX( ALL - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + MAX ( ALL - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0 WHERE NOT - 78 IS NULL
----
61

query I rowsort
SELECT DISTINCT + 65 + col1 * + col1 * 84 + + - col2 * col2 + + col2 + + col2 AS col0 FROM tab2 cor0 WHERE NOT - col0 + + - col0 <> NULL
----

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

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

query I rowsort
SELECT - + 74 + 47 * - + col1 AS col0 FROM tab0 cor0
----
-1061
-121
-3881

query I rowsort
SELECT + + 45 + - col2 FROM tab0 AS cor0
----
-2
-54
35

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

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

query I rowsort
SELECT 57 + - + 92 FROM tab0
----
-35
-35
-35

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 73 col0 FROM tab1 AS cor0
----
132
141
169

query I rowsort
SELECT DISTINCT - - 28 + 44 * + + col0 FROM tab0 AS cor0
----
3856
4296
688

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

skipif mysql # not compatible
query III rowsort label-1198
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - - 14 < NULL
----

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

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - 29 + 40 BETWEEN NULL AND + 78 * 67 / col1 + col1 + + col2 * - col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 - col1 col2 FROM tab1
----
33
66
75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT ALL + col1 DIV + col2 col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1203
SELECT ALL + col1 / + col2 col2 FROM tab0
----
0
1
2

query I rowsort
SELECT + 60 - - 74 * - - 97 FROM tab2
----
7238
7238
7238

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

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

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

query I rowsort
SELECT - 26 - + + 55 AS col1 FROM tab0
----
-81
-81
-81

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - 56 * - 18 AS col1, col0 AS col0 FROM tab2 AS cor0
----
1008
46
1008
64
1008
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT DISTINCT + + 97 * + + 21 * + ( + SUM( - + 90 ) ) * + + 50 FROM tab2 AS cor0
----
-27499500

skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + + 97 * + + 21 * + ( + SUM ( - + 90 ) ) * + + 50 FROM tab2 AS cor0
----
-27499500

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1219
SELECT DISTINCT - CAST( - - 10 AS SIGNED ) col1 FROM tab1 cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT DISTINCT - CAST ( - - 10 AS INTEGER ) col1 FROM tab1 cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1220
SELECT + 43 * + col2 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-149683
-198832
-396288

skipif mysql # not compatible
query I rowsort label-1220
SELECT + 43 * + col2 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-149683
-198832
-396288

query I rowsort
SELECT - 48 * + + ( + 97 ) * col2 FROM tab0 AS cor0
----
-218832
-460944
-46560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT COUNT( * ) * - - 20 FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-1223
SELECT COUNT ( * ) * - - 20 FROM tab1 cor0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT - 55 DIV + ( + + 16 ) + - + 7 * - col1 FROM tab1 AS cor0
----
32
326
95

skipif mysql # not compatible
query I rowsort label-1224
SELECT - 55 / + ( + + 16 ) + - + 7 * - col1 FROM tab1 AS cor0
----
32
326
95

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 AS cor0 WHERE NOT - col1 + + 40 < - col0
----
-23
-40
-58

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

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

query II rowsort
SELECT ALL col0 AS col1, 47 AS col2 FROM tab2
----
46
47
64
47
75
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1231
SELECT DISTINCT - col1 DIV 43 + + + col2 AS col0 FROM tab0
----
10
46
99

skipif mysql # not compatible
query I rowsort label-1231
SELECT DISTINCT - col1 / 43 + + + col2 AS col0 FROM tab0
----
10
46
99

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1233
SELECT DISTINCT 24 FROM tab2 AS cor0 WHERE - CAST( + 24 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1233
SELECT DISTINCT 24 FROM tab2 AS cor0 WHERE - CAST ( + 24 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 39 + col1 NOT BETWEEN NULL AND + col2 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 39 + col1 NOT BETWEEN NULL AND + col2 * + col2
----
0

query I rowsort
SELECT col1 * - - 38 AS col1 FROM tab0 AS cor0
----
3078
38
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1236
SELECT DISTINCT + COUNT( * ) col0 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-1236
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT COUNT( * ) + - 93 + 53 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT COUNT ( * ) + - 93 + 53 FROM tab2 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + + 67 + + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - col0 + col0
----
67

skipif mysql # not compatible
query I rowsort label-1238
SELECT + + 67 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) > - col0 + col0
----
67

query I rowsort
SELECT + col1 + + ( + ( + col1 ) ) + + col0 AS col2 FROM tab1 AS cor0
----
185
79
95

query I rowsort
SELECT ALL + ( + col2 ) - - col2 * - - col0 AS col2 FROM tab0 AS cor0
----
752
880
9702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 83 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT + ( - MAX( + - col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-1242
SELECT + ( - MAX ( + - col0 ) ) AS col0 FROM tab2
----
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL MAX( ALL 35 ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL MAX ( ALL 35 ) AS col1 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1245
SELECT + col1, + ( - + col0 ) + - col0 + CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

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

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

query II rowsort
SELECT ALL 12, ( + + 17 ) + col2 + - col1 * col0 + - col2 AS col1 FROM tab0
----
12
-1198
12
-1810
12
-80

query I rowsort
SELECT + 11 * - col0 FROM tab0
----
-1067
-165
-957

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 >= - 91
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 + + + 55 > NULL
----

query II rowsort
SELECT + 28 AS col1, - 81 AS col2 FROM tab0 AS cor0
----
28
-81
28
-81
28
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1252
SELECT DISTINCT - ( + col1 ) DIV - + col2 + - col1 AS col1, + 62 + + CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
61
-19
41
-80
-19

skipif mysql # not compatible
query II rowsort label-1252
SELECT DISTINCT - ( + col1 ) / - + col2 + - col1 AS col1, + 62 + + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
61
-19
41
-80
-19

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

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

query I rowsort
SELECT 29 + col0 AS col1 FROM tab0
----
116
126
44

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

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

query I rowsort
SELECT 72 * - col2 AS col1 FROM tab2
----
-1656
-2880
-4176

query I rowsort
SELECT - 31 FROM tab0 WHERE - col0 IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + 98 + - col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT - MIN( ( - 36 ) ) col1 FROM tab1
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1265
SELECT - MIN ( ( - 36 ) ) col1 FROM tab1
----
36

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) FROM tab1 WHERE NOT 90 BETWEEN + 71 AND + col2 + col1
----
425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT MIN( DISTINCT col2 ) FROM tab0 WHERE NOT + 37 + ( + col2 + - 19 / - 79 ) = col0 * - 35
----
10

skipif mysql # not compatible
query I rowsort label-1268
SELECT MIN ( DISTINCT col2 ) FROM tab0 WHERE NOT + 37 + ( + col2 + - 19 / - 79 ) = col0 * - 35
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1269
SELECT ALL 51 * CAST( - 91 * + col0 AS SIGNED ) AS col1 FROM tab2
----
-213486
-297024
-348075

skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL 51 * CAST ( - 91 * + col0 AS INTEGER ) AS col1 FROM tab2
----
-213486
-297024
-348075

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT - col1 + 8 FROM tab0
----
-13
-73
7

query I rowsort
SELECT - col2 + + 78 AS col0 FROM tab1
----
-18
10
19

query I rowsort
SELECT DISTINCT - 98 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 62 ) > 30
----

query I rowsort
SELECT col0 * col1 FROM tab1 WHERE - col2 NOT IN ( col2 * col1 )
----
425
4277
714

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 0 IN ( + col0 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1279
SELECT 65 * 52 + col0 DIV col0 FROM tab2 cor0
----
3381
3381
3381

skipif mysql # not compatible
query I rowsort label-1279
SELECT 65 * 52 + col0 / col0 FROM tab2 cor0
----
3381
3381
3381

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE - 44 IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT ALL col1 * - col1 + - 67 FROM tab1
----
-2276
-263
-92

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

query I rowsort
SELECT ALL 52 AS col2 FROM tab0 cor0 WHERE col2 * col2 NOT IN ( - 18 )
----
52
52
52

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT - 25 - - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-1287
SELECT - 25 - - col2 / + col0 AS col1 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT 93 + + COUNT( * ) col2 FROM tab0 AS cor0
----
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT DISTINCT col2 DIV 2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-13
24
34

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT col2 / 2 + - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-13
24
34

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT - MIN( 14 ) FROM tab2 WHERE 91 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT - MIN ( 14 ) FROM tab2 WHERE 91 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE ( + col1 * + col0 ) IN ( - col0 )
----

query I rowsort
SELECT ALL col2 + + 32 AS col0 FROM tab1 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL + MIN( + col1 ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + MIN ( + col1 ) FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT DISTINCT + 23 - - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( + 89 ) IS NULL
----
26

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT + 23 - - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( + 89 ) IS NULL
----
26

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

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

query I rowsort
SELECT ALL ( + col2 ) * col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col2 * + ( + col2 ) AS col2 FROM tab0
----
-100
-2209
-9801

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1303
SELECT DISTINCT + 70 * ( 58 ) DIV + col0 AS col1 FROM tab1 AS cor0
----
44
47
79

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT + 70 * ( 58 ) / + col0 AS col1 FROM tab1 AS cor0
----
44
47
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( * ) col2 FROM tab2 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-1305
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

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

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

query I rowsort
SELECT + 45 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab0 WHERE col1 - + col1 NOT BETWEEN - col0 AND + 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT - CAST( - 21 AS SIGNED ) FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-1309
SELECT - CAST ( - 21 AS INTEGER ) FROM tab2
----
21
21
21

query I rowsort
SELECT - col2 * + - 84 * col0 FROM tab0
----
59220
73080
806652

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

skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( ALL - 68 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ( - 46 ) AS col2 FROM tab0
----
-46
-46
-46

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + 37 NOT IN ( - col0 * + col1 )
----
23
40
58

query I rowsort
SELECT + + 2 * + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT - col2 AS col2, - 16 AS col1 FROM tab0 AS cor0
----
-10
-16
-47
-16
-99
-16

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1322
SELECT CAST( - - 97 AS SIGNED ) + col1 FROM tab1
----
102
111
144

skipif mysql # not compatible
query I rowsort label-1322
SELECT CAST ( - - 97 AS INTEGER ) + col1 FROM tab1
----
102
111
144

query III rowsort
SELECT * FROM tab2 WHERE - ( - col2 ) <> col2 / - 2 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT COUNT( * ) + COUNT( * ) - - 52 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-1325
SELECT COUNT ( * ) + COUNT ( * ) - - 52 FROM tab1
----
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT CAST( - col1 AS SIGNED ) + + col2 AS col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-1327
SELECT CAST ( - col1 AS INTEGER ) + + col2 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - ( + + col0 ) * + 96 + - col1 * - ( col1 ) AS col1 FROM tab1
----
-4700
-6527
-8135

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - COUNT( * ) - + COUNT( * ) * + + COUNT( DISTINCT - + 79 ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - COUNT ( * ) - + COUNT ( * ) * + + COUNT ( DISTINCT - + 79 ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - col0 * - col0 + ( ( - ( - col2 ) ) ) + - 2 - - 10 FROM tab1 AS cor0
----
-2497
-7158
-8205

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

query I rowsort
SELECT col1 - - + col1 AS col2 FROM tab2
----
102
134
154

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 74 * + col0 BETWEEN NULL AND ( + 93 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + + - col0 * - col1 AS col2 FROM tab0
----
1230
1914
194

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

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

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

query I rowsort
SELECT col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - 52
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 50 IN ( - col0 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1342
SELECT col0 * + col0 AS col1, + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
2116
NULL
4096
NULL
5625
NULL

skipif mysql # not compatible
query II rowsort label-1342
SELECT col0 * + col0 AS col1, + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
2116
NULL
4096
NULL
5625
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT SUM( + 11 ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1343
SELECT SUM ( + 11 ) FROM tab0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ( + + COUNT( * ) ) * - 70 AS col2 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-1344
SELECT ( + + COUNT ( * ) ) * - 70 AS col2 FROM tab1
----
-210

query III rowsort
SELECT * FROM tab1 WHERE NOT - 75 + col2 IS NOT NULL
----

query I rowsort
SELECT col2 * - 57 AS col1 FROM tab2
----
-1311
-2280
-3306

query II rowsort
SELECT col0 AS col2, + col0 * + + col1 + + - 85 FROM tab0
----
15
1130
87
1742
97
12

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

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

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

query II rowsort
SELECT ALL - + ( + - 32 ), col1 + - col2 AS col2 FROM tab0 AS cor0
----
32
-98
32
11
32
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT DISTINCT COUNT( * ) + - + 16 * - + MIN( + col1 ) AS col2 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT COUNT ( * ) + - + 16 * - + MIN ( + col1 ) AS col2 FROM tab0
----
19

query I rowsort
SELECT + col1 + - col2 + col0 AS col0 FROM tab2
----
101
74
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1354
SELECT ALL + COUNT( * ) * CAST( - + COUNT( * ) AS SIGNED ) * COUNT( ALL - 24 ) + + ( - + 47 ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + COUNT ( * ) * CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( ALL - 24 ) + + ( - + 47 ) AS col0 FROM tab2
----
-74

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

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

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

query I rowsort
SELECT + ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1359
SELECT ALL MIN( - + col1 ) col1, COUNT( * ) * + - 40 AS col0 FROM tab1 AS cor0
----
-47
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1359
SELECT ALL MIN ( - + col1 ) col1, COUNT ( * ) * + - 40 AS col0 FROM tab1 AS cor0
----
-47
-120

query I rowsort
SELECT ALL col2 * + 38 FROM tab0
----
1786
3762
380

query I rowsort
SELECT + 69 * 20 FROM tab1
----
1380
1380
1380

query I rowsort
SELECT ALL - col0 * + 25 AS col1 FROM tab0
----
-2175
-2425
-375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT 1 DIV - - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1363
SELECT 1 / - - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - - col0 + col0 <> ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 + 90 FROM tab0
----
111
171
91

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

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

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

query I rowsort
SELECT DISTINCT col2 + - col1 * - + 84 * + 26 + - 10 * - + 66 + - col0 AS col2 FROM tab0
----
177596
2846
46447

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1369
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - col2 < - + CAST( 53 AS SIGNED )
----
-99

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE - col2 < - + CAST ( 53 AS INTEGER )
----
-99

query II rowsort
SELECT - ( + + 48 ) AS col0, col0 FROM tab0 AS cor0 WHERE 75 = + 74 - 64
----

query I rowsort
SELECT - col1 + - + ( - 83 ) + + col1 AS col2 FROM tab1 AS cor0
----
83
83
83

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT + COUNT( * ) + - 62 + + COUNT( * ) - + COUNT( * ) + - 36 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-1373
SELECT + COUNT ( * ) + - 62 + + COUNT ( * ) - + COUNT ( * ) + - 36 FROM tab1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1374
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT DISTINCT 21 DIV - ( - col2 ) FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT 21 / - ( - col2 ) FROM tab0
----
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1376
SELECT DISTINCT + COUNT( * ) DIV - + 34 FROM tab1 WHERE NOT + col2 > 74
----
0

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT + COUNT ( * ) / - + 34 FROM tab1 WHERE NOT + col2 > 74
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 28 ) BETWEEN + col0 AND ( NULL )
----
87
21
10
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - SUM( 88 ) FROM tab2 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1379
SELECT - SUM ( 88 ) FROM tab2 AS cor0
----
-264

query I rowsort
SELECT 58 AS col0 FROM tab1 cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT - 56 * - + ( - MIN( ALL + 54 ) ) AS col1 FROM tab1 AS cor0
----
-3024

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - 56 * - + ( - MIN ( ALL + 54 ) ) AS col1 FROM tab1 AS cor0
----
-3024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - - col1 + col0 + - col2 col2, + col2 AS col1 FROM tab2 AS cor0
----
2624
23
4506
58
5953
40

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + 30 * col2
----

query I rowsort
SELECT + 74 * - col0 FROM tab1
----
-3774
-6290
-6734

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1387
SELECT SUM( - - CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1387
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + col2 * - 61 AS col2 FROM tab1
----
-3599
-4148
-5856

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1390
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, + 28 + COUNT( * ) FROM tab0 AS cor0
----
NULL
31

skipif mysql # not compatible
query II rowsort label-1390
SELECT ALL - CAST ( NULL AS REAL ) AS col2, + 28 + COUNT ( * ) FROM tab0 AS cor0
----
NULL
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT + - col0 / col2 * ( CAST( NULL AS SIGNED ) ) * - col2 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-1391
SELECT + - col0 / col2 * ( CAST ( NULL AS INTEGER ) ) * - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE 70 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - + 87 AS col1 FROM tab1
----
-19
-28
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 57 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT ALL + MAX( DISTINCT + 84 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL + MAX ( DISTINCT + 84 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query I rowsort
SELECT DISTINCT + col0 + + + 68 FROM tab2 AS cor0
----
114
132
143

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT + col2 DIV 1 * - col1 * + col2 * col2 * - 62 + col2 * - + col1 * + col0 FROM tab2 AS cor0
----
305338880
38418096
810203798

skipif mysql # not compatible
query I rowsort label-1399
SELECT + col2 / 1 * - col1 * + col2 * col2 * - 62 + col2 * - + col1 * + col0 FROM tab2 AS cor0
----
305338880
38418096
810203798

query I rowsort
SELECT + 27 + - + col2 AS col2 FROM tab0 AS cor0
----
-20
-72
17

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

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + MIN ( DISTINCT + col2 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT + 66 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT + 66 ) FROM tab2 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - 28 <= + col0
----

query I rowsort
SELECT + col1 + + + col0 + - col2 + - col1 * - col1 FROM tab1
----
165
2279
56

query I rowsort
SELECT ALL col2 * 85 FROM tab2
----
1955
3400
4930

query I rowsort
SELECT ALL col2 * col1 + + - 88 AS col0 FROM tab1
----
1256
207
3108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1407
SELECT * FROM tab2 WHERE - CAST( col1 AS SIGNED ) * - 47 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1407
SELECT * FROM tab2 WHERE - CAST ( col1 AS INTEGER ) * - 47 IS NULL
----

query II rowsort
SELECT + col1 * + col0 AS col0, + col2 + + - 63 FROM tab0
----
1215
-16
1827
-53
97
36

query I rowsort
SELECT DISTINCT 47 FROM tab2 WHERE + ( 17 ) IS NOT NULL
----
47

query II rowsort
SELECT - col2 AS col1, col1 + + col0 * - - 20 + col2 AS col2 FROM tab1
----
-59
1764
-68
1935
-96
1130

onlyif mysql # aggregate syntax: 
query II rowsort label-1411
SELECT - 70, 86 * - 50 * + + COUNT( * ) + 26 AS col1 FROM tab2 AS cor0
----
-70
-12874

skipif mysql # not compatible
query II rowsort label-1411
SELECT - 70, 86 * - 50 * + + COUNT ( * ) + 26 AS col1 FROM tab2 AS cor0
----
-70
-12874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * col1 col1 FROM tab2 AS cor0
----
1326
1742
2002

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT ALL - 99 DIV + col1 col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1413
SELECT ALL - 99 / + col1 col1 FROM tab2 cor0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT + 42 * + col0 AS col1 FROM tab1
----
2142
3570
3822

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL MAX ( 50 ) AS col2 FROM tab2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1419
SELECT DISTINCT 59 DIV + ( - + 56 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT 59 / + ( - + 56 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL - + col1 * - - 81 + - - col0 AS col0 FROM tab1 AS cor0
----
-1083
-320
-3716

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1421
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 64 <= ( - + CAST( 10 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1421
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 64 <= ( - + CAST ( 10 AS INTEGER ) )
----

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

query I rowsort
SELECT 58 + - col1 + 63 AS col2 FROM tab1
----
107
116
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - 59 / + + 97 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - 59 / + + 97 IS NOT NULL
----
3

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

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

query II rowsort
SELECT - 17, col0 * - col2 - col2 * + col1 * - col1 * - + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-17
31860
-17
331812120
-17
3683040

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

query II rowsort
SELECT ALL ( col0 ), + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT - + col2 * 81 + col2 AS col0, - 11 FROM tab1 AS cor0
----
-4720
-11
-5440
-11
-7680
-11

query I rowsort
SELECT - col1 * col2 - + + 4 FROM tab1
----
-1348
-299
-3200

query II rowsort
SELECT ALL - col2 AS col2, + col0 + + - col2 FROM tab1
----
-59
26
-68
23
-96
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1433
SELECT COUNT( * ) * 93 - MIN( + ( + 56 ) ) FROM tab2
----
223

skipif mysql # not compatible
query I rowsort label-1433
SELECT COUNT ( * ) * 93 - MIN ( + ( + 56 ) ) FROM tab2
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( + col0 ) ) col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT - - ( + col0 ) * + col2 / col2 * + col2 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + 62 * MIN( DISTINCT + + col2 ) + MAX( - 23 ) AS col1 FROM tab2 AS cor0
----
1403

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + 62 * MIN ( DISTINCT + + col2 ) + MAX ( - 23 ) AS col1 FROM tab2 AS cor0
----
1403

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1438
SELECT DISTINCT + col0 * 94 DIV - col0 AS col2 FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1438
SELECT DISTINCT + col0 * 94 / - col0 AS col2 FROM tab2 AS cor0
----
-94

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1440
SELECT - ( + - col1 ) * - 20, CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
-100
NULL
-280
NULL
-940
NULL

skipif mysql # not compatible
query II rowsort label-1440
SELECT - ( + - col1 ) * - 20, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
-100
NULL
-280
NULL
-940
NULL

query I rowsort
SELECT DISTINCT - 81 * 47 AS col1 FROM tab1 AS cor0
----
-3807

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL - AVG ( - + 81 ) / + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL - AVG ( - + 81 ) / + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - col0 * + 89 FROM tab2 AS cor0
----
-4094
-5696
-6675

query I rowsort
SELECT col1 * - 43 * + + col2 + - - col2 + + - 89 + - col1 FROM tab0 AS cor0
----
-163824
-4248
-9130

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

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

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

query I rowsort
SELECT - 11 * + col1 - ( col1 ) AS col0 FROM tab2 AS cor0
----
-612
-804
-924

query I rowsort
SELECT DISTINCT 87 * + 91 AS col2 FROM tab2
----
7917

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1452
SELECT - 94 - 4 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1452
SELECT - 94 - 4 + - CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT - 74 + col0 - - col0 FROM tab0
----
-44
100
120

query II rowsort
SELECT ALL - 39, 11 AS col0 FROM tab2 WHERE NULL IS NULL
----
-39
11
-39
11
-39
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * + + col1 col1 FROM tab1
----
4345
484
810

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1459
SELECT - COUNT( * ) + - + COUNT( ALL + - col1 ) col2 FROM tab1 AS cor0
----
-6

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

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

query I rowsort
SELECT DISTINCT - col0 * - 74 * - col2 FROM tab0
----
-52170
-64380
-710622

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

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

query I rowsort
SELECT ALL col1 + - col1 + col0 + + + 6 + + col0 AS col1 FROM tab1 AS cor0
----
108
176
188

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

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

query I rowsort
SELECT + + 43 + + 67 AS col0 FROM tab2 cor0
----
110
110
110

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT 37 DIV + 84 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT 37 / + 84 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT 62 * - 12 AS col1 FROM tab0
----
-744
-744
-744

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT - COUNT ( - - 63 ) FROM tab2 AS cor0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT - COUNT( * ) * MIN( + col0 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1474
SELECT - COUNT ( * ) * MIN ( + col0 ) AS col1 FROM tab0 AS cor0
----
-45

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

query II rowsort
SELECT DISTINCT - col2 + + ( - - col0 ) AS col0, + 27 AS col2 FROM tab0
----
-2
27
-32
27
77
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL + SUM( DISTINCT - + col2 ) + + 37 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL + SUM ( DISTINCT - + col2 ) + + 37 FROM tab2
----
-84

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 NOT BETWEEN NULL AND - 58 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - - col2 ) * + ( col0 ) + + col1 * + 11 FROM tab0 AS cor0
----
1101
1596
9614

query I rowsort
SELECT - 16 + 19 AS col1 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL - ( 36 ) FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - 26 + + ( + MAX( + col1 ) ) FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 26 + + ( + MAX ( + col1 ) ) FROM tab1 cor0
----
21

query I rowsort
SELECT ALL - col1 * 49 * - col0 FROM tab2
----
114954
241472
246225

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT COUNT( * ) + - ( - 77 ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT COUNT ( * ) + - ( - 77 ) AS col0 FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-1490
SELECT - 26 col0, COUNT( * ) + - 49 FROM tab1 AS cor0
----
-26
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1490
SELECT - 26 col0, COUNT ( * ) + - 49 FROM tab1 AS cor0
----
-26
-46

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT COUNT( * ) - 29 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1494
SELECT COUNT ( * ) - 29 FROM tab1 AS cor0
----
-26

query II rowsort
SELECT - col0 - col1 * - + 82 + - 87 * + - col0 * - - col1, + 59 AS col0 FROM tab0 AS cor0
----
112332
59
160584
59
8424
59

query I rowsort
SELECT DISTINCT 71 - + - col1 FROM tab2 AS cor0
----
122
138
148

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1497
SELECT + col1 - - + CAST( NULL AS DECIMAL ) * + 47 AS col1, ( col2 ) + - col1 * - + 71 AS col0 FROM tab2 AS cor0
----
NULL
3644
NULL
4815
NULL
5507

skipif mysql # not compatible
query II rowsort label-1497
SELECT + col1 - - + CAST ( NULL AS REAL ) * + 47 AS col1, ( col2 ) + - col1 * - + 71 AS col0 FROM tab2 AS cor0
----
NULL
3644
NULL
4815
NULL
5507

query II rowsort
SELECT ALL - + col2 AS col0, - ( 50 ) + 86 FROM tab2 AS cor0
----
-23
36
-40
36
-58
36

query I rowsort
SELECT DISTINCT + 72 - col1 AS col2 FROM tab2
----
-5
21
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1500
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ), - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-1500
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ), - COUNT ( * ) FROM tab1
----
-3
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col1 ) ) col2 FROM tab0
----
1
21
81

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

query I rowsort
SELECT DISTINCT - 83 * + col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE 70 IS NULL
----

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

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

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

query I rowsort
SELECT col2 * + 61 AS col2 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT COUNT( * ) * - 2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1511
SELECT COUNT ( * ) * - 2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col1 FROM tab2 AS cor0 WHERE NOT - col2 + col1 NOT BETWEEN + col1 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 75 ) * + + ( - col0 ) col0 FROM tab1 cor0
----
3825
6375
6825

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

query I rowsort
SELECT ALL ( - - 97 ) FROM tab2 AS cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT ALL CAST( - - 4 AS SIGNED ) * col1 FROM tab0
----
324
4
84

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL CAST ( - - 4 AS INTEGER ) * col1 FROM tab0
----
324
4
84

query I rowsort
SELECT DISTINCT 81 + 1 AS col0 FROM tab2
----
82

query I rowsort
SELECT DISTINCT + ( + 10 ) * + col1 + - + col2 + - col0 AS col2 FROM tab2
----
441
537
666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + - - col0 * + + 69 * - + col2 col2 FROM tab2
----
-176523
-300025
-72928

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT MIN( ( ( 37 ) ) ) * - COUNT( * ) + - COUNT( * ) FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-1521
SELECT MIN ( ( ( 37 ) ) ) * - COUNT ( * ) + - COUNT ( * ) FROM tab0
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-1522
SELECT ALL + col1 * col1 DIV col0 FROM tab1
----
0
24
3

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + col1 * col1 / col0 FROM tab1
----
0
24
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * col0 + + + col2 - col1 col1 FROM tab1 AS cor0
----
-3437
-5811
-6258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1525
SELECT DISTINCT + 91 DIV - MAX( ALL ( col0 ) ) + 42 AS col2 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT + 91 / - MAX ( ALL ( col0 ) ) + 42 AS col2 FROM tab1 AS cor0
----
41

query I rowsort
SELECT - - 64 + + 85 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e405bda2d02faef1ec0a7731ac2315a4

onlyif mysql # DIV for integer division: 
query I rowsort label-1527
SELECT ALL + 40 DIV col2 * - col1 FROM tab2
----
-51
-77
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT ALL + 40 / col2 * - col1 FROM tab2
----
-51
-77
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1528
SELECT col2 DIV col1 + + + ( col2 ) + + col2, col0 AS col0 FROM tab1 AS cor0
----
129
85
137
91
198
51

skipif mysql # not compatible
query II rowsort label-1528
SELECT col2 / col1 + + + ( col2 ) + + col2, col0 AS col0 FROM tab1 AS cor0
----
129
85
137
91
198
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + COUNT( * ) + - + 49 + 13 AS col1 FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1529
SELECT + COUNT ( * ) + - + 49 + 13 AS col1 FROM tab2 cor0
----
-33

query I rowsort
SELECT ALL - + 68 * - col0 - - 31 * - - col1 AS col1 FROM tab2 AS cor0
----
4709
6739
7177

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

query I rowsort
SELECT DISTINCT - col2 * + 88 * + - 34 AS col0 FROM tab1 cor0
----
176528
203456
287232

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT ALL + - 99 DIV - col1 col1 FROM tab0 AS cor0
----
1
4
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1533
SELECT ALL + - 99 / - col1 col1 FROM tab0 AS cor0
----
1
4
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 16 - - 91 <> NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + col0 / - 77 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT ALL col0 DIV + 48 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL col0 / + 48 AS col2 FROM tab1
----
1
1
1

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 91 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT MIN( - + col1 ) + + 97 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-1545
SELECT MIN ( - + col1 ) + + 97 AS col1 FROM tab1
----
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT DISTINCT + col2 + + CAST( + + col2 AS SIGNED ) FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT + col2 + + CAST ( + + col2 AS INTEGER ) FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1548
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - CAST( NULL AS SIGNED ) / - ( + col2 ) - - + col2 * + 9 * col2 < NULL
----

skipif mysql # not compatible
query III rowsort label-1548
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - CAST ( NULL AS INTEGER ) / - ( + col2 ) - - + col2 * + 9 * col2 < NULL
----

query I rowsort
SELECT DISTINCT + ( col1 ) + + + col2 AS col0 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT ALL + 95 + - + COUNT( DISTINCT - + ( - 7 ) ) AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + 95 + - + COUNT ( DISTINCT - + ( - 7 ) ) AS col2 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1551
SELECT DISTINCT + 89 / CAST( NULL AS SIGNED ) * 39 * + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + 89 / CAST ( NULL AS INTEGER ) * 39 * + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - + col1 * + 11 + col0 * + 54 AS col1 FROM tab2 AS cor0
----
1923
2609
3313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col0 col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT 87 * + 44 * + col1 * - - col0 AS col0 FROM tab2
----
18864384
19235700
8980488

query I rowsort
SELECT - col2 * + + 89 AS col0 FROM tab0
----
-4183
-8811
-890

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1556
SELECT - SUM ( - + 55 ) col2 FROM tab1
----
165

query I rowsort
SELECT DISTINCT - 28 + 27 FROM tab1
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT DISTINCT - - 4 DIV + 64 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT - - 4 / + 64 + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col1 + + + 8 AS col2 FROM tab0 AS cor0
----
-13
-73
7

query II rowsort
SELECT - 20, 80 AS col0 FROM tab2 AS cor0
----
-20
80
-20
80
-20
80

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

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

query I rowsort
SELECT col1 / + col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IN ( 59 / + 56, col2 )
----

query I rowsort
SELECT ALL + - ( + col0 ) * + col2 FROM tab0 AS cor0
----
-705
-870
-9603

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 25 FROM tab1
----
1475
1700
2400

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

query I rowsort
SELECT - col1 * 86 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT + 15 * - COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1570
SELECT + 15 * - COUNT ( * ) FROM tab2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1571
SELECT DISTINCT + 84 * - CAST( NULL AS SIGNED ) + + + 55 + + + MAX( + + col0 ) + - COUNT( * ) / - 2 * + + 94 FROM tab2 AS cor0 WHERE NOT + col1 >= + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1571
SELECT DISTINCT + 84 * - CAST ( NULL AS INTEGER ) + + + 55 + + + MAX ( + + col0 ) + - COUNT ( * ) / - 2 * + + 94 FROM tab2 AS cor0 WHERE NOT + col1 >= + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + 29 + + COUNT( ALL 65 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + - - col0 IS NULL
----
32

skipif mysql # not compatible
query I rowsort label-1572
SELECT + 29 + + COUNT ( ALL 65 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + - - col0 IS NULL
----
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 / + 3 )
----

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

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

query I rowsort
SELECT ALL col0 + - - 93 FROM tab1 AS cor0
----
144
178
184

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * + + ( - 99 ) + - col2 AND col1
----

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

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

query I rowsort
SELECT ALL + + col2 + - 39 - 53 AS col1 FROM tab2 cor0
----
-34
-52
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1579
SELECT + MAX( + col2 ) FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) NOT IN ( - - col1 + + col2, - ( 16 ) )
----
99

skipif mysql # not compatible
query I rowsort label-1579
SELECT + MAX ( + col2 ) FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) NOT IN ( - - col1 + + col2, - ( 16 ) )
----
99

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

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

query I rowsort
SELECT DISTINCT - col0 + - + 63 FROM tab1 cor0
----
-114
-148
-154

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 91 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - col2 AS col2, - col1 col0 FROM tab2
----
17
-67
23
-51
24
-77

query I rowsort
SELECT col0 * - + col0 + - + col2 FROM tab0
----
-272
-7579
-9508

query I rowsort
SELECT 14 * col0 + 40 AS col1 FROM tab1
----
1230
1314
754

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + + 28 AND - 29
----

query I rowsort
SELECT ALL - - 44 AS col1 FROM tab1 AS cor0 WHERE + col2 <= - col1 - col0
----

query I rowsort
SELECT DISTINCT col1 - + + col0 + + col0 FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT - col1 * - 3 * + col0, - col1 AS col2 FROM tab2 AS cor0
----
14784
-77
15075
-67
7038
-51

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab1 WHERE ( + 29 ) + - col1 IS NULL
----

query II rowsort
SELECT ALL - 34 * + + col2 AS col1, + 24 - 88 AS col2 FROM tab0
----
-1598
-64
-3366
-64
-340
-64

query I rowsort
SELECT ALL + 1 * col2 * - 93 AS col0 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT col2 * - - 94 AS col2 FROM tab2
----
2162
3760
5452

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col0 * - ( - 18 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 * col0 + - col0 col0 FROM tab0 AS cor0
----
4698
5238
810

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT COUNT( * ) + - + 44 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-1601
SELECT COUNT ( * ) + - + 44 FROM tab2
----
-41

query I rowsort
SELECT col2 + + 78 AS col1 FROM tab0
----
125
177
88

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

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

query I rowsort
SELECT ALL + 78 + + + col0 * - + 59 FROM tab0
----
-5055
-5645
-807

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 FROM tab1 AS cor0 WHERE ( NULL BETWEEN + 13 - ( + col1 ) AND + - col0 * + 74 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT 73 - - COUNT( * ) FROM tab0 AS cor0 WHERE 60 + - - 6 * - - 92 + + col0 IS NULL
----
73

skipif mysql # not compatible
query I rowsort label-1607
SELECT 73 - - COUNT ( * ) FROM tab0 AS cor0 WHERE 60 + - - 6 * - - 92 + + col0 IS NULL
----
73

query I rowsort
SELECT ALL + col1 + + ( + 28 ) AS col2 FROM tab1 AS cor0
----
33
42
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT - - COUNT( * ) * - - 8 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1609
SELECT - - COUNT ( * ) * - - 8 FROM tab2 AS cor0
----
24

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

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

query I rowsort
SELECT DISTINCT + 33 - - col1 + - - 86 * + 57 FROM tab2
----
4986
5002
5012

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT + MAX( + 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT + MAX ( + 16 ) FROM tab1
----
16

query I rowsort
SELECT + col1 - + 90 AS col2 FROM tab1
----
-43
-76
-85

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

query I rowsort
SELECT 87 * - - col0 + col2 AS col1 FROM tab1 AS cor0
----
4533
7454
7985

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL SUM( - 55 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL SUM ( - 55 ) FROM tab2
----
-165

query I rowsort
SELECT ALL col2 + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT - col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - + 3 AS col2 FROM tab1 WHERE - - col0 IS NOT NULL
----
-62
-71
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1628
SELECT col0 + 12 + - + 12 DIV + 62 * col2 FROM tab1
----
103
63
97

skipif mysql # not compatible
query I rowsort label-1628
SELECT col0 + 12 + - + 12 / + 62 * col2 FROM tab1
----
103
63
97

query I rowsort
SELECT ALL + col1 + + + 71 + + 56 FROM tab0 AS cor0
----
128
148
208

query I rowsort
SELECT - 84 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-84
-84
-84

query I rowsort
SELECT ALL ( + 86 ) AS col1 FROM tab2 AS cor0
----
86
86
86

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1633
SELECT ALL - 68 DIV COUNT( * ) AS col0, ( + COUNT( ALL - col0 ) ) AS col2 FROM tab1
----
-22
3

skipif mysql # not compatible
query II rowsort label-1633
SELECT ALL - 68 / COUNT ( * ) AS col0, ( + COUNT ( ALL - col0 ) ) AS col2 FROM tab1
----
-22
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT + col2 * - - col0 * col1 DIV - + col1 + - - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1063
-2573
-4342

skipif mysql # not compatible
query I rowsort label-1634
SELECT + col2 * - - col0 * col1 / - + col1 + - - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1063
-2573
-4342

onlyif mysql # DIV for integer division: 
query I rowsort label-1635
SELECT - + col2 DIV col2 + - col2 + - - col2 * 52 FROM tab2 AS cor0
----
1172
2039
2957

skipif mysql # not compatible
query I rowsort label-1635
SELECT - + col2 / col2 + - col2 + - - col2 * 52 FROM tab2 AS cor0
----
1172
2039
2957

query I rowsort
SELECT - col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT DISTINCT + col2 - - - col0 DIV - - col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + col2 - - - col0 / - - col0 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT 68 * - MIN( DISTINCT col0 ) + - - 14 AS col0 FROM tab0 AS cor0
----
-1006

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT 68 * - MIN ( DISTINCT col0 ) + - - 14 AS col0 FROM tab0 AS cor0
----
-1006

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

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

query II rowsort
SELECT ALL - col1 * - 5 AS col2, col1 * + - col1 * - col0 FROM tab1
----
235
201019
25
2125
70
9996

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1643
SELECT DISTINCT - 72 * + + CAST ( NULL AS INTEGER ) col1, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT DISTINCT + col2 + col2 + + 33 AS col1 FROM tab2
----
113
149
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT + + ( + ( - col2 ) ) DIV col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1645
SELECT + + ( + ( - col2 ) ) / col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE NOT NULL < NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1648
SELECT COUNT( * ), 93 * + 25 AS col1 FROM tab0
----
3
2325

skipif mysql # not compatible
query II rowsort label-1648
SELECT COUNT ( * ), 93 * + 25 AS col1 FROM tab0
----
3
2325

query II rowsort
SELECT 54 AS col0, 54 AS col1 FROM tab0
----
54
54
54
54
54
54

query I rowsort
SELECT + - col0 * - + col0 FROM tab2 AS cor0
----
2116
4096
5625

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 59 + + col1 <= NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + ( col2 ) col2 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL + COUNT( - + ( - 73 ) ) - - MIN( DISTINCT - + 66 ) AS col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL + COUNT ( - + ( - 73 ) ) - - MIN ( DISTINCT - + 66 ) AS col2 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT - 44 FROM tab2 AS cor0 WHERE + col2 * + 74 IS NOT NULL
----
-44
-44
-44

query I rowsort
SELECT DISTINCT - col0 + - - ( 10 ) AS col0 FROM tab0 cor0
----
-5
-77
-87

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

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

query I rowsort
SELECT ALL + 92 - - - col1 + + col2 FROM tab2 AS cor0
----
55
64
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1664
SELECT ALL - - 9 DIV - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1664
SELECT ALL - - 9 / - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT - 60 * - ( + COUNT( * ) ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1665
SELECT - 60 * - ( + COUNT ( * ) ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + 32 * - - 0 * - + 89 * + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + 32 * - - 0 * - + 89 * + - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 99 * col0 * - - 5 * 26 * - col1 AS col2 FROM tab2
----
30193020
63423360
64671750

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

query I rowsort
SELECT ALL ( + 90 ) - - col1 * - col0 - 77 + - + col0 + - - col2 * - - 39 AS col0 FROM tab0
----
-1511
3680
616

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1670
SELECT ALL + col0 col0, + CAST( NULL AS SIGNED ) + + col0 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-1670
SELECT ALL + col0 col0, + CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 WHERE NULL IS NOT NULL AND NOT ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1672
SELECT ALL - 6 DIV - MIN( 4 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL - 6 / - MIN ( 4 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1673
SELECT DISTINCT + COUNT( * ), + MAX( + col2 ) AS col0 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-1673
SELECT DISTINCT + COUNT ( * ), + MAX ( + col2 ) AS col0 FROM tab1
----
3
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1674
SELECT - col2 * - col0 + - 18 - + + col1, ( - - CAST( NULL AS SIGNED ) ) * + col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1674
SELECT - col2 * - col0 + - 18 - + + col1, ( - - CAST ( NULL AS INTEGER ) ) * + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 14 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL + - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT + + ( + col0 ) * - col0 * - col2 * col1 + - + col0 FROM tab1 WHERE NOT - CAST( + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1677
SELECT + + ( + col0 ) * - col0 * - col2 * col1 + - + col0 FROM tab1 WHERE NOT - CAST ( + col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT MAX( DISTINCT + 63 ) * - COUNT( * ) AS col1 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-1678
SELECT MAX ( DISTINCT + 63 ) * - COUNT ( * ) AS col1 FROM tab2
----
-189

query I rowsort
SELECT ALL - 48 AS col2 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + + col1 * + 99 FROM tab0 AS cor0
----
2079
8019
99

query I rowsort
SELECT + ( + - 40 ) AS col2 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT + COUNT( DISTINCT 24 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + COUNT ( DISTINCT 24 ) FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 8 col1 FROM tab0 AS cor0
----
168
648
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 + - - col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( - - col2 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - 56 ) / + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1688
SELECT col1 DIV col1, - col1 - col0 AS col1 FROM tab1 AS cor0
----
1
-138
1
-65
1
-90

skipif mysql # not compatible
query II rowsort label-1688
SELECT col1 / col1, - col1 - col0 AS col1 FROM tab1 AS cor0
----
1
-138
1
-65
1
-90

query I rowsort
SELECT ALL ( 81 ) FROM tab2
----
81
81
81

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < 32 * + - col2 * - col0 * - - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL + MAX( - col0 ) + SUM( DISTINCT col0 ) AS col1 FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + MAX ( - col0 ) + SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT + COUNT( ALL + 98 ) + + COUNT( DISTINCT - col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT + COUNT ( ALL + 98 ) + + COUNT ( DISTINCT - col1 ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL COUNT( * ) + + - 25 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL COUNT ( * ) + + - 25 FROM tab2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1695
SELECT + 25 DIV - - col0 * + - col1 + - 59 FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-1695
SELECT + 25 / - - col0 * + - col1 + - 59 FROM tab1
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL + - COUNT( DISTINCT + + col0 ) + - + 89 * - 81 FROM tab1 AS cor0
----
7206

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL + - COUNT ( DISTINCT + + col0 ) + - + 89 * - 81 FROM tab1 AS cor0
----
7206

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT COUNT( * ) FROM tab2 WHERE + 71 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1698
SELECT COUNT ( * ) FROM tab2 WHERE + 71 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT + MAX( + col0 ) - - 52 AS col2 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-1699
SELECT + MAX ( + col0 ) - - 52 AS col2 FROM tab1
----
143

query I rowsort
SELECT ALL 35 FROM tab2 WHERE NULL >= 20 * - ( 68 ) + ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1701
SELECT + COUNT( * ) DIV ( 76 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1701
SELECT + COUNT ( * ) / ( 76 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - 75 AS col0 FROM tab2 WHERE 52 NOT BETWEEN ( col2 + col2 ) AND NULL
----
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT + CAST( NULL AS SIGNED ) / - 54 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT + CAST ( NULL AS INTEGER ) / - 54 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + col2 * - 56 AS col0 FROM tab1
----
-3299
-3761
-5362

query I rowsort
SELECT col0 + ( - col0 ) FROM tab1 WHERE NOT col1 > + col1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT col1 + col2 DIV col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-1706
SELECT col1 + col2 / col1 FROM tab0
----
100
21
81

query I rowsort
SELECT 15 * col2 AS col2 FROM tab0
----
1485
150
705

query I rowsort
SELECT 53 * 73 FROM tab1
----
3869
3869
3869

query I rowsort
SELECT ALL col2 * 14 FROM tab2
----
322
560
812

query I rowsort
SELECT col1 * - 93 AS col1 FROM tab2
----
-4743
-6231
-7161

query III rowsort
SELECT * FROM tab1 WHERE col0 * col0 BETWEEN ( + ( - col0 ) ) AND + 71
----

query I rowsort
SELECT col2 + + 26 FROM tab1
----
122
85
94

query I rowsort
SELECT DISTINCT col0 + 78 FROM tab0 WHERE NOT 80 NOT BETWEEN + 61 AND ( - col1 * + col2 - - col2 )
----

query I rowsort
SELECT - 68 * col0 + 40 AS col2 FROM tab0
----
-5876
-6556
-980

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT ALL - 81 DIV col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL - 81 / col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ( 14 ) + - col2 FROM tab1
----
-45
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT + col0 AS col2 FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) / col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1717
SELECT + col0 AS col2 FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) / col1 ) IS NULL
----

query I rowsort
SELECT col0 * - 93 FROM tab0 WHERE ( NULL ) IS NULL
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1719
SELECT * FROM tab0 WHERE NOT col1 + + col0 NOT IN ( + CAST( - col1 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1719
SELECT * FROM tab0 WHERE NOT col1 + + col0 NOT IN ( + CAST ( - col1 AS REAL ) )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT col1 > NULL
----

query I rowsort
SELECT + ( 26 ) FROM tab2
----
26
26
26

query I rowsort
SELECT ALL - 20 - + 38 AS col1 FROM tab1
----
-58
-58
-58

query I rowsort
SELECT ALL - 88 * + 19 AS col1 FROM tab2 AS cor0
----
-1672
-1672
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL 15 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL 15 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
45

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IN ( col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 68 FROM tab0 AS cor0 WHERE + 49 / + 79 + + 55 NOT BETWEEN col2 AND NULL
----
68

query I rowsort
SELECT ALL - col0 * - 41 AS col1 FROM tab1 cor0
----
2091
3485
3731

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = + col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1729
SELECT ALL 5 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL 5 / col1 AS col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 90 + + 69 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 * 87 NOT BETWEEN - col0 AND - 91
----
0

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 * 87 NOT BETWEEN - col0 AND - 91
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 46 / - col0 NOT BETWEEN ( NULL ) AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 col1 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT DISTINCT col1 - - ( 11 - - col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < col0 * 30
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT + ( col1 ) DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1736
SELECT + ( col1 ) / - col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1739
SELECT + col0 DIV - - col1 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1739
SELECT + col0 / - - col1 col0 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1740
SELECT * FROM tab0 WHERE ( CAST( + col0 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1740
SELECT * FROM tab0 WHERE ( CAST ( + col0 AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT ALL - col1 DIV - - 79 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - col1 / - - 79 AS col1 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT + 53 * - - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT + 53 * - - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + 72 NOT BETWEEN - 64 * - col0 AND col0 * + 53
----

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + 72 NOT BETWEEN - 64 * - col0 AND col0 * + 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + COUNT( * ) * + 17 AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-1744
SELECT + COUNT ( * ) * + 17 AS col1 FROM tab0
----
51

query I rowsort
SELECT + ( + - col1 ) AS col1 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-1746
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - col1 <= NULL
----

query I rowsort
SELECT ALL 20 * + 67 + + col0 * - col0 AS col0 FROM tab2
----
-2756
-4285
-776

query I rowsort
SELECT + col1 + - + col1 + 60 AS col1 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT DISTINCT - 37 + - 68 + COUNT( * ) AS col2 FROM tab1 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - 37 + - 68 + COUNT ( * ) AS col2 FROM tab1 cor0
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1750
SELECT 83 DIV COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 NOT IN ( 94 + 88 )
----
27

skipif mysql # not compatible
query I rowsort label-1750
SELECT 83 / COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 NOT IN ( 94 + 88 )
----
27

query I rowsort
SELECT col0 + - 27 AS col0 FROM tab1
----
24
58
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1752
SELECT COUNT( * ) / ( + ( CAST( NULL AS DECIMAL ) ) + COUNT( * ) * - COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1752
SELECT COUNT ( * ) / ( + ( CAST ( NULL AS REAL ) ) + COUNT ( * ) * - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) IN ( col2 + col1 ) )
----

query I rowsort
SELECT - 77 + 52 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL - COUNT( DISTINCT - 79 ) FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - COUNT ( DISTINCT - 79 ) FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1757
SELECT DISTINCT - + 45 + + + CAST( NULL AS SIGNED ) - + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT DISTINCT - + 45 + + + CAST ( NULL AS INTEGER ) - + + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1758
SELECT + 73, SUM( - col2 ) AS col2 FROM tab2 AS cor0
----
73
-121

skipif mysql # not compatible
query II rowsort label-1758
SELECT + 73, SUM ( - col2 ) AS col2 FROM tab2 AS cor0
----
73
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT + COUNT( * ) + - SUM( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col1 * col2 + - col1 )
----
-192

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT + COUNT ( * ) + - SUM ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 IN ( - col1 * col2 + - col1 )
----
-192

query I rowsort
SELECT + + 38 * + 29 AS col1 FROM tab0 AS cor0
----
1102
1102
1102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL - SUM( ALL + 59 ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - SUM ( ALL + 59 ) FROM tab1 AS cor0
----
-177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1764
SELECT DISTINCT COUNT( * ) AS col0, + 45 FROM tab2 AS cor0
----
3
45

skipif mysql # not compatible
query II rowsort label-1764
SELECT DISTINCT COUNT ( * ) AS col0, + 45 FROM tab2 AS cor0
----
3
45

query I rowsort
SELECT DISTINCT + col1 * 16 + - col1 AS col2 FROM tab2 WHERE NOT - - col2 + col0 / 76 BETWEEN ( - col0 ) AND 73 + + col2 / - col1
----

query I rowsort
SELECT + col0 * + - ( + col0 ) FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + ( + + col2 ) ) NOT BETWEEN ( - 65 ) AND ( NULL )
----

query I rowsort
SELECT - 10 FROM tab0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 33 NOT BETWEEN ( + + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT ( MAX( ALL - 62 ) ) AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT ( MAX ( ALL - 62 ) ) AS col2 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT COUNT( * ) + 77 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - col0 )
----
77

skipif mysql # not compatible
query I rowsort label-1771
SELECT COUNT ( * ) + 77 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - col0 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT + - SUM( DISTINCT - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1772
SELECT + - SUM ( DISTINCT - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - COUNT( ALL + - 28 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1773
SELECT - COUNT ( ALL + - 28 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( + 60 ) FROM tab2 AS cor0
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1775
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - CAST( NULL AS DECIMAL ) NOT BETWEEN col0 / + col1 + col1 * + col2 AND col2 )
----

skipif mysql # not compatible
query III rowsort label-1775
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS REAL ) NOT BETWEEN col0 / + col1 + col1 * + col2 AND col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1776
SELECT ALL 10 AS col0 FROM tab1 cor0 WHERE col2 + - CAST( NULL AS SIGNED ) * + col0 - CAST( + col1 AS SIGNED ) * col1 IS NULL
----
10
10
10

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 10 AS col0 FROM tab1 cor0 WHERE col2 + - CAST ( NULL AS INTEGER ) * + col0 - CAST ( + col1 AS INTEGER ) * col1 IS NULL
----
10
10
10

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( 92 ) = ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1778
SELECT DISTINCT + col0 + + col1 DIV + col2 AS col1 FROM tab0 cor0
----
16
89
97

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + col0 + + col1 / + col2 AS col1 FROM tab0 cor0
----
16
89
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT DISTINCT 74 DIV + - col2 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT 74 / + - col2 FROM tab2 AS cor0
----
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT ALL col0 DIV - 50 + + 43 + + 25 DIV col2 * 72 - col1 + col2 * + col0 col2 FROM tab2 AS cor0
----
1122
2525
4325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1780
SELECT ALL col0 / - 50 + + 43 + + 25 / col2 * 72 - col1 + col2 * + col0 col2 FROM tab2 AS cor0
----
1122
2525
4325

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1781
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-1781
SELECT * FROM tab1 AS cor0 WHERE + col2 BETWEEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AND + col0
----

query I rowsort
SELECT DISTINCT + col2 + + - col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1783
SELECT COUNT( * ) * - - MIN( - - col2 ) / - CAST( + ( + 99 ) AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT COUNT ( * ) * - - MIN ( - - col2 ) / - CAST ( + ( + 99 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1784
SELECT + CAST( col1 AS SIGNED ) + + + 9 AS col0 FROM tab0 AS cor0
----
10
30
90

skipif mysql # not compatible
query I rowsort label-1784
SELECT + CAST ( col1 AS INTEGER ) + + + 9 AS col0 FROM tab0 AS cor0
----
10
30
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1785
SELECT - - col1 + + CAST( 50 AS SIGNED ) + + - 34 * 72 AS col1 FROM tab2 cor0
----
-2321
-2331
-2347

skipif mysql # not compatible
query I rowsort label-1785
SELECT - - col1 + + CAST ( 50 AS INTEGER ) + + - 34 * 72 AS col1 FROM tab2 cor0
----
-2321
-2331
-2347

query II rowsort
SELECT + - col2 + + + 10 - col0, + col0 FROM tab0 AS cor0
----
-186
97
-52
15
-87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT ALL + COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT + 38 + + - col2 + - + ( + col2 ) DIV - 23 + + 27 FROM tab0
----
-30
20
55

skipif mysql # not compatible
query I rowsort label-1789
SELECT + 38 + + - col2 + - + ( + col2 ) / - 23 + + 27 FROM tab0
----
-30
20
55

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 / + + col0 + + col2 AND - 27 * 11 + col0
----

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab2, tab0 AS cor0 WHERE ( + 56 ) IS NULL
----

query II rowsort
SELECT 72 + col2 * - col1 * 38, col1 AS col0 FROM tab1
----
-11138
5
-121376
47
-51000
14

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 BETWEEN ( + + 20 * col1 ) AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + + - ( - col0 ) col2 FROM tab0
----
101
19
91

query III rowsort
SELECT * FROM tab1 WHERE NULL < + + 40
----

query I rowsort
SELECT ( - - 94 ) AS col0 FROM tab0
----
94
94
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 28 * - - 29 IN ( + + col0 * - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE ( 68 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE ( 68 ) IS NULL
----
0

query I rowsort
SELECT 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT ( + 33 ) + col1 DIV + - col1 FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-1800
SELECT ( + 33 ) + col1 / + - col1 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT ALL + ( 59 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + ( 59 ) / + COUNT ( * ) FROM tab1 AS cor0
----
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + - COUNT( * ) * - ( COUNT( * ) ) + + + COUNT( col0 ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1803
SELECT + - COUNT ( * ) * - ( COUNT ( * ) ) + + + COUNT ( col0 ) FROM tab2 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= - - 23 - - - col0
----

query II rowsort
SELECT DISTINCT col2, col2 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col0 FROM tab2 WHERE NOT - 5 + 89 * - + col2 = col0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT ALL - MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT MIN( 35 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-1809
SELECT MIN ( 35 ) FROM tab2
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + col0 * + - col0 + col2 FROM tab2
----
51
-2093
67
-5567
77
-4056

query I rowsort
SELECT DISTINCT + 72 + - ( 40 ) + - col0 * - - 8 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1812
SELECT DISTINCT 23 AS col1, + 41 DIV + col1 FROM tab2
----
23
0

skipif mysql # not compatible
query II rowsort label-1812
SELECT DISTINCT 23 AS col1, + 41 / + col1 FROM tab2
----
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - - COUNT( * ) col0 FROM tab1 WHERE NOT - ( + - col0 ) * - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT - - COUNT ( * ) col0 FROM tab1 WHERE NOT - ( + - col0 ) * - col0 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT - col1 AS col0, + 53 * 16 AS col1 FROM tab1 AS cor0
----
-14
848
-47
848
-5
848

onlyif mysql # aggregate syntax: 
query II rowsort label-1816
SELECT + COUNT( * ) col0, - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 57 IS NULL
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1816
SELECT + COUNT ( * ) col0, - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 57 IS NULL
----
3
-3

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab1 AS cor0 WHERE NOT ( + col2 * col0 + - col1 + - - col1 ) <> col1 - 77 + - - col1
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT - col2 DIV - + col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-1819
SELECT - col2 / - + col1 FROM tab1 AS cor0
----
1
11
6

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 80 IS NOT NULL
----

query I rowsort
SELECT + col1 + 29 + col0 FROM tab1
----
119
167
94

query I rowsort
SELECT - col0 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 55 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 41 ) + col2 col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query II rowsort
SELECT - - ( col2 ) AS col2, - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT + - 3 * - 95 FROM tab1 AS cor0
----
285
285
285

onlyif mysql # aggregate syntax: 
query II rowsort label-1827
SELECT DISTINCT 36 + - 51 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-1827
SELECT DISTINCT 36 + - 51 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-15
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT + ( + + 85 ) * col2 * - col2 * + 8 AS col1 FROM tab2 AS cor0
----
-1088000
-2287520
-359720

onlyif mysql # DIV for integer division: 
query I rowsort label-1830
SELECT 44 DIV - col1 AS col0 FROM tab1
----
-3
-8
0

skipif mysql # not compatible
query I rowsort label-1830
SELECT 44 / - col1 AS col0 FROM tab1
----
-3
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1831
SELECT - col2 / + CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT - col2 / + CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1832
SELECT col0 - ( - - col0 ) * - + 76 + - col0 - + CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
1093
6602
7273

skipif mysql # not compatible
query I rowsort label-1832
SELECT col0 - ( - - col0 ) * - + 76 + - col0 - + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
1093
6602
7273

query I rowsort
SELECT 10 - - + col2 FROM tab0
----
109
20
57

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE 32 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT DISTINCT + 52 - - 74 DIV - + ( 48 ) AS col1 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + 52 - - 74 / - + ( 48 ) AS col1 FROM tab0 cor0
----
51

query I rowsort
SELECT DISTINCT 63 + - col0 AS col2 FROM tab2 AS cor0 WHERE + col0 NOT IN ( - col2 )
----
-1
-12
17

query I rowsort
SELECT DISTINCT + - 49 * + - col1 FROM tab1 cor0
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 45 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 45 IS NOT NULL
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1839
SELECT ALL SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT - col2 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1840
SELECT - col2 / - - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 42, 39 col1 FROM tab0 cor0
----
-42
39
-42
39
-42
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1842
SELECT + + CAST( - + CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED ) DIV SUM( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1842
SELECT + + CAST ( - + CAST ( - COUNT ( * ) AS REAL ) AS INTEGER ) / SUM ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - 55, col1 FROM tab2 AS cor0
----
-55
51
-55
67
-55
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + - col2 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
210
3807
99

query II rowsort
SELECT 44, + 4 AS col0 FROM tab2 cor0
----
44
4
44
4
44
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( + col1 ) * - + ( + col0 ) * + ( - col2 ) - 63 col0 FROM tab0 AS cor0
----
182637
2683872
950634

query I rowsort
SELECT - + col1 * - col2 + - col0 * + + col2 * + col2 FROM tab0 AS cor0
----
-29328
-8490
-950598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col1 col2, + 96 AS col2 FROM tab0 cor0
----
1
96
21
96
81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) * + - col0 col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + - SUM( DISTINCT + 79 ) AS col0 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1850
SELECT + - SUM ( DISTINCT + 79 ) AS col0 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1851
SELECT DISTINCT - 28 DIV 76 AS col1, MIN( DISTINCT - + 4 ) FROM tab1
----
0
-4

skipif mysql # not compatible
query II rowsort label-1851
SELECT DISTINCT - 28 / 76 AS col1, MIN ( DISTINCT - + 4 ) FROM tab1
----
0
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT ALL COUNT( * ) * - 68 FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL COUNT ( * ) * - 68 FROM tab1
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-1853
SELECT ALL col2 DIV + 86 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL col2 / + 86 AS col2 FROM tab0
----
0
0
1

query II rowsort
SELECT 5, + 73 * + col1 AS col1 FROM tab2 WHERE NOT - 3 + - col1 + - ( + - col2 ) IN ( + ( - col0 ), + col1 )
----
5
3723
5
4891
5
5621

query I rowsort
SELECT DISTINCT + + ( col1 ) FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT - 34 * CAST( 8 AS SIGNED ) FROM tab0 WHERE NOT + col0 * + col1 BETWEEN NULL AND - col2
----
-272
-272
-272

skipif mysql # not compatible
query I rowsort label-1856
SELECT - 34 * CAST ( 8 AS INTEGER ) FROM tab0 WHERE NOT + col0 * + col1 BETWEEN NULL AND - col2
----
-272
-272
-272

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 45 NOT BETWEEN - col2 + col0 AND - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT - COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1859
SELECT - COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 + + col1 + + - col2 FROM tab1 AS cor0
----
-113
-178
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 65 ) + + + ( + 19 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * col1 * - col0 + col0 + + + col0 * + 16 + - + col1 AS col0 FROM tab1 AS cor0
----
-34685
-35561
-387707

query I rowsort
SELECT ALL - - col0 * + + 34 AS col2 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1865
SELECT DISTINCT CAST( + + COUNT( DISTINCT - col1 ) AS SIGNED ) + + 18 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1865
SELECT DISTINCT CAST ( + + COUNT ( DISTINCT - col1 ) AS INTEGER ) + + 18 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - + 26 - + col1 > - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 28 + ( + + col2 ) AS col2 FROM tab2 AS cor0
----
51
68
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL - SUM( DISTINCT ( - + col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - SUM ( DISTINCT ( - + col0 ) ) FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT col2 - - + col0 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT - col1 * + ( + 24 ) AS col1 FROM tab0
----
-1944
-24
-504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1872
SELECT ALL - CAST( NULL AS SIGNED ) * MIN( - + col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - CAST ( NULL AS INTEGER ) * MIN ( - + col1 ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( + 91 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT DISTINCT + 0 - - col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + 10 * + 40 + + ( + 81 ) + + col0 AS col1 FROM tab1 AS cor0
----
532
566
572

query I rowsort
SELECT 37 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT col0 / - col0 FROM tab2 WHERE NOT col0 * + col2 + - col0 IN ( + + CAST( NULL AS SIGNED ), col2 + - - col2 + + 41 * - + col0 + 44 * CAST( - 60 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1877
SELECT col0 / - col0 FROM tab2 WHERE NOT col0 * + col2 + - col0 IN ( + + CAST ( NULL AS INTEGER ), col2 + - - col2 + + 41 * - + col0 + 44 * CAST ( - 60 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 >= - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1879
SELECT col1 DIV 90 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT col1 / 90 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + ( - + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1881
SELECT DISTINCT - COUNT( * ), + 17 AS col2 FROM tab1 AS cor0
----
-3
17

skipif mysql # not compatible
query II rowsort label-1881
SELECT DISTINCT - COUNT ( * ), + 17 AS col2 FROM tab1 AS cor0
----
-3
17

query I rowsort
SELECT + 97 * 11 * col1 AS col2 FROM tab1 AS cor0
----
14938
50149
5335

onlyif mysql # aggregate syntax: 
query II rowsort label-1883
SELECT ALL 1, COUNT( * ) col2 FROM tab0 AS cor0 WHERE 46 IS NULL
----
1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT ALL 1, COUNT ( * ) col2 FROM tab0 AS cor0 WHERE 46 IS NULL
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT col2 * col2 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1884
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT col2 * col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT - MIN( 10 ) col2 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1885
SELECT - MIN ( 10 ) col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1886
SELECT DISTINCT ( + COUNT( * ) ) DIV + 39 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT ( + COUNT ( * ) ) / + 39 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1887
SELECT DISTINCT ( - col0 ) DIV - + col1 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT ( - col0 ) / - + col1 AS col0 FROM tab2
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1888
SELECT DISTINCT * FROM tab1 WHERE ( + col1 + + - 37 + - CAST( NULL AS SIGNED ) * - + col0 ) > + col1
----

skipif mysql # not compatible
query III rowsort label-1888
SELECT DISTINCT * FROM tab1 WHERE ( + col1 + + - 37 + - CAST ( NULL AS INTEGER ) * - + col0 ) > + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 63 + + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( col2 - ( col1 ) - 7 - + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col1 <= - 89
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT ALL + 37 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + 37 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
40

query I rowsort
SELECT + + 8 + col1 FROM tab0 AS cor0
----
29
89
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1894
SELECT col1 + CAST( NULL AS SIGNED ) * + - 76 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1894
SELECT col1 + CAST ( NULL AS INTEGER ) * + - 76 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT ALL 90 DIV + + 76 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT ALL 90 / + + 76 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 <= NULL
----

query I rowsort
SELECT ALL + - col0 + ( - 89 ) AS col0 FROM tab0 cor0
----
-104
-176
-186

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 98, - col2 )
----

query I rowsort
SELECT + - 52 AS col2 FROM tab0 cor0 WHERE + 35 NOT IN ( + - col0, - 51 + + col2 / + + 66 * + - col0, col2, - col0, + col2 )
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1900
SELECT ALL + MIN( - col0 ) AS col0, - 99 FROM tab2 AS cor0
----
-75
-99

skipif mysql # not compatible
query II rowsort label-1900
SELECT ALL + MIN ( - col0 ) AS col0, - 99 FROM tab2 AS cor0
----
-75
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - - col1 * col1 col0, col2 AS col2 FROM tab1 AS cor0
----
110
59
2300
68
247
96

query I rowsort
SELECT ALL 58 * - + 20 - - 22 + - col1 FROM tab2
----
-1189
-1205
-1215

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT + MIN( + ( + + col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT + MIN ( + ( + + col1 ) ) FROM tab2
----
51

query I rowsort
SELECT ALL ( 85 ) FROM tab1
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1906
SELECT MAX( col1 ) - + CAST( NULL AS SIGNED ) + 63 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT MAX ( col1 ) - + CAST ( NULL AS INTEGER ) + 63 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1907
SELECT ALL - COUNT( * ) col0, - ( + + MIN( ALL + col2 ) ) FROM tab0
----
-3
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1907
SELECT ALL - COUNT ( * ) col0, - ( + + MIN ( ALL + col2 ) ) FROM tab0
----
-3
-10

query I rowsort
SELECT + + col0 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> - + col0 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT + + COUNT( DISTINCT - + ( + 52 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-1910
SELECT + + COUNT ( DISTINCT - + ( + 52 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 * + 21 col2 FROM tab0
----
1638

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 91 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 48 * col2 + - + 9 AS col2 FROM tab2 AS cor0
----
1095
1911
2775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 + col0 col0 FROM tab1 AS cor0
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT DISTINCT - + col2 DIV 33 * + + col1 AS col1 FROM tab0 AS cor0
----
-3
-81
0

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT - + col2 / 33 * + + col1 AS col1 FROM tab0 AS cor0
----
-3
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT - CAST( NULL AS SIGNED ) / - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT - CAST ( NULL AS INTEGER ) / - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 79 * + col0 + - - col2 + - col0 * + 28 AS col0 FROM tab1 cor0
----
-5361
-9036
-9669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT ALL + - COUNT( * ) * - - CAST( + 7 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL + - COUNT ( * ) * - - CAST ( + 7 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL + ( - - col2 ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT - 74 DIV + 6 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 74 / + 6 AS col1 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - col0 * 67 FROM tab2
----
-3082
-4288
-5025

query II rowsort
SELECT DISTINCT 9 AS col1, col0 + + col2 * col2 + + - col2 AS col1 FROM tab2
----
9
1624
9
3381
9
552

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + SUM( ALL + 1 ) + - + 77 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-1924
SELECT + SUM ( ALL + 1 ) + - + 77 FROM tab2
----
-74

query I rowsort
SELECT - col0 * + 7 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN ( 19 + + 34 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1926
SELECT 41 DIV - 65 * + 49 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1926
SELECT 41 / - 65 * + 49 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - + ( + + 11 ) AS col0 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1930
SELECT CAST( col2 AS SIGNED ) - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT CAST ( col2 AS INTEGER ) - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + + 35 col0 FROM tab1 AS cor0
----
103
131
94

query I rowsort
SELECT - + col0 * col0 + + + 55 FROM tab2 AS cor0
----
-2061
-4041
-5570

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN - - col1 + - + col2 AND - ( - col1 )
----

query I rowsort
SELECT ALL + - col0 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
-2093
-4056
-5567

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 * - - col0 + + - 61 col1 FROM tab2 AS cor0
----
262083
421814
97275

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL + 88 + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----
88

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL + 88 + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL MAX( DISTINCT - 8 ) - - 7 + + 23 + 19 * - 46 FROM tab0
----
-852

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL MAX ( DISTINCT - 8 ) - - 7 + + 23 + 19 * - 46 FROM tab0
----
-852

query I rowsort
SELECT + col1 * 15 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT + 50 * COUNT( * ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-1940
SELECT + 50 * COUNT ( * ) FROM tab1
----
150

query II rowsort
SELECT DISTINCT + 80 + - col2 AS col0, - col2 FROM tab1 AS cor0 WHERE NOT ( + col0 + - ( 44 ) <> + + col1 * col0 )
----

query I rowsort
SELECT ALL + + 13 * col1 + - + col1 AS col2 FROM tab1 AS cor0
----
168
564
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1943
SELECT DISTINCT 2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 / + 40 * - - 5, - CAST( NULL AS SIGNED ) + + col1, + + col0 )
----

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT 2 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 / + 40 * - - 5, - CAST ( NULL AS INTEGER ) + + col1, + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + 54 + + col2 FROM tab0 WHERE NOT + + 81 <= 84
----

query I rowsort
SELECT DISTINCT - 58 * + - ( - 55 ) AS col2 FROM tab0
----
-3190

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / + - col2 + - 40 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col1, 54 - col1 + + - col2 AS col0 FROM tab0 AS cor0
----
15
-74
87
23
97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1949
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT DISTINCT + col2, - col0 FROM tab0 cor0
----
10
-87
47
-15
99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * + col1 col0 FROM tab2
----
-1224
-1608
-1848

query II rowsort
SELECT DISTINCT + col1 AS col2, - col0 FROM tab1 WHERE - col1 IS NOT NULL
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT COUNT( * ) * + MAX( - - CAST( - + col2 AS SIGNED ) ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-1953
SELECT COUNT ( * ) * + MAX ( - - CAST ( - + col2 AS INTEGER ) ) AS col1 FROM tab1
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + 55 col0, + col0 * - 73 AS col2 FROM tab1
----
-3245
-6205
-3740
-6643
-5280
-3723

query I rowsort
SELECT ALL 88 * + + col0 FROM tab0
----
1320
7656
8536

query I rowsort
SELECT ALL ( col0 ) + - 59 - - + col2 - + - 99 * + + col0 AS col1 FROM tab2
----
4564
6381
7499

query III rowsort
SELECT * FROM tab2 WHERE ( col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, 36 * + 11 col2 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1959
SELECT ALL - 32 FROM tab0 AS cor0 WHERE NOT - col2 * + 80 > - CAST( col0 AS SIGNED )
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL - 32 FROM tab0 AS cor0 WHERE NOT - col2 * + 80 > - CAST ( col0 AS INTEGER )
----
-32
-32
-32

query I rowsort
SELECT ALL - - ( + + col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1961
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col0, col0 * + - 50 AS col1 FROM tab2 AS cor0
----
NULL
-2300
NULL
-3200
NULL
-3750

skipif mysql # not compatible
query II rowsort label-1961
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col0, col0 * + - 50 AS col1 FROM tab2 AS cor0
----
NULL
-2300
NULL
-3200
NULL
-3750

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1962
SELECT DISTINCT + col1 AS col0, CAST( NULL AS DECIMAL ) + + + col0 * - + 72 + - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1962
SELECT DISTINCT + col1 AS col0, CAST ( NULL AS REAL ) + + + col0 * - + 72 + - col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT + - MIN( DISTINCT + 51 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT + - MIN ( DISTINCT + 51 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col1 col1 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT - COUNT( DISTINCT 94 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT - COUNT ( DISTINCT 94 ) AS col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1966
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1966
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab0 WHERE NULL BETWEEN + - col0 / col2 / + 22 AND 81 * 23
----

query I rowsort
SELECT DISTINCT + col1 + 69 + - - 91 FROM tab2
----
211
227
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT COUNT( * ) * - - 82 AS col2 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-1971
SELECT COUNT ( * ) * - - 82 AS col2 FROM tab0 AS cor0
----
246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 AS cor0 WHERE + 22 * + col1 * 22 * - ( - 78 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT + col2 - - + col0 AS col1 FROM tab1 cor0
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT DISTINCT + col2 DIV + 65 + col1 + + - 86 * 96 - 81 FROM tab0 AS cor0
----
-8256
-8316
-8335

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT + col2 / + 65 + col1 + + - 86 * 96 - 81 FROM tab0 AS cor0
----
-8256
-8316
-8335

query I rowsort
SELECT DISTINCT 66 + + col2 AS col2 FROM tab0 AS cor0
----
113
165
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT + col1 DIV - 17 - - - ( 53 ) + + col1 AS col1 FROM tab1 AS cor0
----
-39
-48
-8

skipif mysql # not compatible
query I rowsort label-1976
SELECT + col1 / - 17 - - - ( 53 ) + + col1 AS col1 FROM tab1 AS cor0
----
-39
-48
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 39 ) col2 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL - col0 * + 30 FROM tab0
----
-2610
-2910
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT - col0 DIV - + col2 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT - col0 / - + col2 AS col1 FROM tab2
----
1
2

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1980
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1980
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( + col2 AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT DISTINCT - ( + ( - + COUNT( * ) ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT DISTINCT - ( + ( - + COUNT ( * ) ) ) col2 FROM tab2
----
3

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - 15 AND col0 * + col1 * - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + - SUM( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1983
SELECT + - SUM ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query II rowsort
SELECT + - col1, col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT - MIN( ALL + 26 ) AS col2 FROM tab2, tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1985
SELECT - MIN ( ALL + 26 ) AS col2 FROM tab2, tab0 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 56 NOT BETWEEN + - 36 AND - ( + col1 ) + + col0 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT MIN( ALL ( - 6 ) ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1987
SELECT MIN ( ALL ( - 6 ) ) AS col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT COUNT( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * ( - ( + col0 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1989
SELECT COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * ( - ( + col0 ) ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT ALL + ( col1 ) * col0 DIV - - col1 + + col0 + + 92 AS col1 FROM tab1 AS cor0
----
194
262
274

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + ( col1 ) * col0 / - - col1 + + col0 + + 92 AS col1 FROM tab1 AS cor0
----
194
262
274

query II rowsort
SELECT + ( 99 ), + 23 AS col2 FROM tab1 AS cor0
----
99
23
99
23
99
23

query II rowsort
SELECT - - col0 + + + col0 AS col0, + ( + 67 ) FROM tab0 AS cor0
----
174
67
194
67
30
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1993
SELECT DISTINCT - CAST( + 69 AS SIGNED ) AS col0, + col2 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

skipif mysql # not compatible
query II rowsort label-1993
SELECT DISTINCT - CAST ( + 69 AS INTEGER ) AS col0, + col2 FROM tab1 AS cor0
----
-69
59
-69
68
-69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT DISTINCT - 76 * - COUNT( * ) FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT - 76 * - COUNT ( * ) FROM tab0 AS cor0
----
228

query I rowsort
SELECT ALL - col2 - - 27 + col0 FROM tab2 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT ALL - MIN( DISTINCT - - col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-1996
SELECT ALL - MIN ( DISTINCT - - col2 ) FROM tab2
----
-23

query I rowsort
SELECT + col0 + + 10 AS col0 FROM tab0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1998
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col1 * + - CAST( NULL AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-1998
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col1 * + - CAST ( NULL AS INTEGER ) + + col2 )
----

query I rowsort
SELECT ALL - col0 * - + col1 AS col0 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + col2 * col2 * - 40 AS col2 FROM tab1
----
-139240
-184960
-368640

query II rowsort
SELECT + col2, + ( col2 ) AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT + - MAX( + 26 ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2002
SELECT + - MAX ( + 26 ) AS col1 FROM tab2 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT + + SUM( - - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2003
SELECT + + SUM ( - - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) = ( - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) = ( - - col0 )
----
0

query I rowsort
SELECT 41 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT + 23 * - + col2 FROM tab2
----
-1334
-529
-920

query III rowsort
SELECT * FROM tab1 WHERE + - col1 * - - 66 - + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL ( + SUM( ALL - col0 ) ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2008
SELECT ALL ( + SUM ( ALL - col0 ) ) col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT + 81 + COUNT( 88 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT + 81 + COUNT ( 88 ) FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL - - 51 + + col1 + - col2 FROM tab0 AS cor0
----
-47
62
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= + col1 * + 57
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL COUNT( DISTINCT - - 60 ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL COUNT ( DISTINCT - - 60 ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 + + col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + 13 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * 92 FROM tab2
----
-4692
-6164
-7084

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT DISTINCT + col0 DIV + + col1 AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT + col0 / + + col1 AS col1 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT MAX( ALL + CAST( NULL AS SIGNED ) ) / - 80 FROM tab1 WHERE NOT + + ( + 62 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT MAX ( ALL + CAST ( NULL AS INTEGER ) ) / - 80 FROM tab1 WHERE NOT + + ( + 62 ) IS NULL
----
NULL

query I rowsort
SELECT + ( - - 49 ) FROM tab2
----
49
49
49

query I rowsort
SELECT + 90 * col0 FROM tab1 AS cor0
----
4590
7650
8190

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT COUNT( * ) + + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-2022
SELECT COUNT ( * ) + + 80 FROM tab0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2023
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / col2 IN ( + - 29, col1, + col2 + - col1 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2023
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col2 IN ( + - 29, col1, + col2 + - col1 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT + MIN( - + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + MIN ( - + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2025
SELECT - col1 * 25 DIV - - col1 FROM tab1 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-2025
SELECT - col1 * 25 / - - col1 FROM tab1 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-2026
SELECT + ( + + col0 ) DIV col2 * + col1 col2, col1 AS col0 FROM tab0 AS cor0
----
0
1
0
81
168
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2026
SELECT + ( + + col0 ) / col2 * + col1 col2, col1 AS col0 FROM tab0 AS cor0
----
0
1
0
81
168
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT + SUM( + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT + SUM ( + - col1 ) FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT ALL - SUM( + 40 ) * + 97 + - + 10 - - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-11653

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - SUM ( + 40 ) * + 97 + - + 10 - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-11653

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - ( + + COUNT( ALL - col1 ) ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2029
SELECT - ( + + COUNT ( ALL - col1 ) ) col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + 4 * - - col2 AS col1 FROM tab1 cor0
----
236
272
384

query I rowsort
SELECT - - col0 + - - 74 AS col1 FROM tab0 cor0
----
161
171
89

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT ALL col2 - col1 DIV - + col1 col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT ALL col2 - col1 / - + col1 col0 FROM tab2
----
24
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT + CAST( + 85 AS SIGNED ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2033
SELECT + CAST ( + 85 AS INTEGER ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - - col2 * + col1 + + - 53 AS col2, + col0 * col2 AS col2 FROM tab1 AS cor0
----
1291
4896
242
5015
3143
6188

query II rowsort
SELECT - col0, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2037
SELECT col0 col0, + col0 * col1 DIV + col2 FROM tab1 AS cor0
----
51
7
85
7
91
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2037
SELECT col0 col0, + col0 * col1 / + col2 FROM tab1 AS cor0
----
51
7
85
7
91
62

query I rowsort
SELECT ALL + 54 * - 96 + col1 AS col1 FROM tab0 AS cor0
----
-5103
-5163
-5183

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT MAX( DISTINCT - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2039
SELECT MAX ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT DISTINCT + + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE + 28 + + 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT DISTINCT + + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE + 28 + + 11 IS NULL
----
0

query II rowsort
SELECT 92 AS col0, + col1 + + 60 AS col1 FROM tab0 AS cor0
----
92
141
92
61
92
81

query I rowsort
SELECT DISTINCT - col1 * 48 FROM tab2 AS cor0
----
-2448
-3216
-3696

query III rowsort
SELECT ALL * FROM tab2 WHERE 87 NOT IN ( - col0 + + - 98, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT - CAST( col2 AS SIGNED ) FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2044
SELECT - CAST ( col2 AS INTEGER ) FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col0 / + 91
----

query I rowsort
SELECT 82 * + - ( - + col0 ) AS col2 FROM tab1
----
4182
6970
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT DISTINCT + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + col0 / col2 AS col2 FROM tab0 AS cor0
----
0
8

query II rowsort
SELECT DISTINCT col0, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT - + 36 * col1 + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + + 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT ALL col1 + CAST( - ( - ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) * + col1 - - 45 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL col1 + CAST ( - ( - ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) * + col1 - - 45 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 84 * 56 + - col2 AS col0 FROM tab0 AS cor0
----
4605
4657
4694

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 66 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 67 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 90 ) col0 FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT + - 0 + ( - COUNT( * ) ) * - + MIN( ALL CAST( NULL AS SIGNED ) ) * 1 - 50 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT + - 0 + ( - COUNT ( * ) ) * - + MIN ( ALL CAST ( NULL AS INTEGER ) ) * 1 - 50 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT - 85 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT - 85 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + + col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - col2 + 24 AS col2 FROM tab0 AS cor0
----
-23
-75
14

onlyif mysql # DIV for integer division: 
query II rowsort label-2061
SELECT ALL - col1 + 37 DIV - - col0 col1, - 53 AS col1 FROM tab2 AS cor0
----
-51
-53
-67
-53
-77
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2061
SELECT ALL - col1 + 37 / - - col0 col1, - 53 AS col1 FROM tab2 AS cor0
----
-51
-53
-67
-53
-77
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT ALL + 76 DIV + 49 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL + 76 / + 49 FROM tab1 AS cor0
----
1
1
1

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col0 + - col1 + - + col2 - + 12 AS col0 FROM tab1 WHERE NULL IS NULL
----
-36
-71
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT DISTINCT COUNT( * ) * + + ( - 42 ) FROM tab2, tab0 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT COUNT ( * ) * + + ( - 42 ) FROM tab2, tab0 AS cor0
----
-378

query II rowsort
SELECT DISTINCT + col0 AS col2, col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL - col0 * + + ( - ( - + col0 ) ) + + 11 FROM tab1
----
-2590
-7214
-8270

query I rowsort
SELECT + col1 + + - 1 FROM tab2 AS cor0 WHERE 89 > NULL
----

query I rowsort
SELECT - 66 AS col1 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT ( + 54 ) AS col1 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT DISTINCT 44 + - COUNT( * ) col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2071
SELECT DISTINCT 44 + - COUNT ( * ) col0 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2072
SELECT ALL CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL + col1 * - CAST( col1 AS SIGNED ) * + col2 FROM tab2 WHERE NOT + ( + 61 ) < + + col0
----
-59823

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL + col1 * - CAST ( col1 AS INTEGER ) * + col2 FROM tab2 WHERE NOT + ( + 61 ) < + + col0
----
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT DISTINCT - COUNT( * ) * + - 57 AS col2 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - COUNT ( * ) * + - 57 AS col2 FROM tab0
----
171

query I rowsort
SELECT - col0 * + ( + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + + 26 * - - col2 AS col0 FROM tab1 AS cor0
----
1534
1768
2496

query I rowsort
SELECT DISTINCT + + ( 77 ) FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT - ( col2 ) * - ( + - 30 ) FROM tab1 AS cor0
----
-1770
-2040
-2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * col2 col2 FROM tab0 AS cor0
----
4183
8811
890

onlyif mysql # aggregate syntax: 
query II rowsort label-2080
SELECT DISTINCT + COUNT( * ) * 5, + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 67 * + 42 NOT IN ( + 96 + + col0 )
----
0
0

skipif mysql # not compatible
query II rowsort label-2080
SELECT DISTINCT + COUNT ( * ) * 5, + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 67 * + 42 NOT IN ( + 96 + + col0 )
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL 77 * + - CAST( + 34 AS SIGNED ) FROM tab0 AS cor0
----
-2618
-2618
-2618

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL 77 * + - CAST ( + 34 AS INTEGER ) FROM tab0 AS cor0
----
-2618
-2618
-2618

query I rowsort
SELECT DISTINCT + - ( - + col0 ) * col0 * col2 AS col2 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT + + 47 FROM tab1 cor0
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2084
SELECT - col2 AS col0, + 99 + - + col2 * col0 DIV col1 * + ( - + ( - 44 ) ) AS col0 FROM tab0
----
-10
-1705
-47
-253
-99
-422433

skipif mysql # not compatible
query II rowsort label-2084
SELECT - col2 AS col0, + 99 + - + col2 * col0 / col1 * + ( - + ( - 44 ) ) AS col0 FROM tab0
----
-10
-1705
-47
-253
-99
-422433

query II rowsort
SELECT - col2 AS col2, col1 * + 93 FROM tab1
----
-59
465
-68
4371
-96
1302

query I rowsort
SELECT - col2 * + + 1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT + 59 * + COUNT( * ) AS col1 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT + 59 * + COUNT ( * ) AS col1 FROM tab0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT + MAX( col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2088
SELECT + MAX ( col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - + 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 * - + 87 IS NOT NULL
----
0

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + 32 - - 88 + col2 * + col2 AND col0
----

query I rowsort
SELECT - - col2 * - 8 FROM tab1 AS cor0
----
-472
-544
-768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL - COUNT( * ) FROM tab1 WHERE + col2 * CAST( + col0 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - COUNT ( * ) FROM tab1 WHERE + col2 * CAST ( + col0 AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2093
SELECT ALL * FROM tab2 WHERE col2 IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2093
SELECT ALL * FROM tab2 WHERE col2 IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - + ( + 20 ) + col1 FROM tab1 cor0
----
-15
-6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT DISTINCT 87 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT 87 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
84

query III rowsort
SELECT DISTINCT 88, - col2 AS col2, - - 13 FROM tab0 AS cor0 WHERE ( NULL ) <= + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - ( - - col0 ) IS NOT NULL ) OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT + MAX( ALL col1 ), + 74 AS col1 FROM tab2 AS cor0
----
77
74

skipif mysql # not compatible
query II rowsort label-2099
SELECT + MAX ( ALL col1 ), + 74 AS col1 FROM tab2 AS cor0
----
77
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2100
SELECT + col1 - + CAST( + 66 AS SIGNED ) DIV + col2 AS col0 FROM tab0
----
1
15
80

skipif mysql # not compatible
query I rowsort label-2100
SELECT + col1 - + CAST ( + 66 AS INTEGER ) / + col2 AS col0 FROM tab0
----
1
15
80

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2101
SELECT + + col1 AS col2 FROM tab1 WHERE NULL < + CAST( + - col0 AS SIGNED ) + - - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-2101
SELECT + + col1 AS col2 FROM tab1 WHERE NULL < + CAST ( + - col0 AS INTEGER ) + - - CAST ( NULL AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < col2 + col2 + + col1 * + ( - col2 ) * + col0 AND 28 * - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT - COUNT( * ) - - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT - COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 3 * + col0 FROM tab2
----
138
192
225

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col0 * col1 + - 13 * + 75
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT DISTINCT + col1 * + col2 + 73 DIV - + col0 FROM tab2 AS cor0
----
1172
3079
3886

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + col1 * + col2 + 73 / - + col0 FROM tab2 AS cor0
----
1172
3079
3886

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2107
SELECT - col2 * - - 23 - + + col2 + + CAST( NULL AS DECIMAL ) * + col1 + - col1 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2107
SELECT - col2 * - - 23 - + + col2 + + CAST ( NULL AS REAL ) * + col1 + - col1 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + + MIN( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2108
SELECT + + MIN ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - - ( - + ( col1 ) ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col2 FROM tab1 AS cor0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2112
SELECT + COUNT( * ) * + 62 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-2112
SELECT + COUNT ( * ) * + 62 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT + - MAX( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2113
SELECT + - MAX ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL - CAST( + 49 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL - CAST ( + 49 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 41 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL col2 * + + 83 AS col2 FROM tab2
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT - MIN( ( + - col2 ) ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2117
SELECT DISTINCT - MIN ( ( + - col2 ) ) col1 FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) - + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT - 99 * + ( - col0 ) + col2 DIV - 85 AS col0 FROM tab2 AS cor0
----
4554
6336
7425

skipif mysql # not compatible
query I rowsort label-2119
SELECT - 99 * + ( - col0 ) + col2 / - 85 AS col0 FROM tab2 AS cor0
----
4554
6336
7425

query I rowsort
SELECT ALL col2 + - + col0 * 45 AS col0 FROM tab1 AS cor0
----
-2199
-3766
-4027

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 90 AS col2 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT + 74 + 99 FROM tab0 AS cor0
----
173
173
173

query I rowsort
SELECT ALL - col1 - + - col0 AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2125
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 72 - - 79 FROM tab0 AS cor0
----
7

query I rowsort
SELECT ALL - 55 * - + ( + col0 ) * + 76 + + ( - col2 ) - - col1 * - - 46 FROM tab2
----
194603
271022
316524

query I rowsort
SELECT DISTINCT + ( 25 ) AS col2 FROM tab2 WHERE + 13 < NULL
----

query I rowsort
SELECT + 60 FROM tab0 WHERE NULL BETWEEN NULL AND - 88
----

query I rowsort
SELECT ALL - 30 * col1 * + + col0 AS col2 FROM tab0
----
-2910
-36450
-54810

query I rowsort
SELECT ALL - col0 + - 48 AS col1 FROM tab2
----
-112
-123
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2132
SELECT DISTINCT + 97 * + 26 AS col1, COUNT( * ) AS col2 FROM tab0
----
2522
3

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT + 97 * + 26 AS col1, COUNT ( * ) AS col2 FROM tab0
----
2522
3

query I rowsort
SELECT DISTINCT + 91 + - 90 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ALL 51 * - - SUM( + ( - col2 ) ) + COUNT( + 91 ) AS col1 FROM tab1
----
-11370

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL 51 * - - SUM ( + ( - col2 ) ) + COUNT ( + 91 ) AS col1 FROM tab1
----
-11370

query I rowsort
SELECT ALL ( col0 ) FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * - - col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT MAX( ALL + col2 ) - - - 81 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-2137
SELECT MAX ( ALL + col2 ) - - - 81 FROM tab0
----
18

query I rowsort
SELECT + col1 * + col0 - + + col2 + 33 AS col1 FROM tab1
----
399
4242
651

query II rowsort
SELECT DISTINCT - + col1 AS col1, col1 AS col0 FROM tab1 WHERE NOT + col2 / 43 + - + 16 * ( 96 ) + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + 70 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + 70 * - col0 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - 41 * - + COUNT( * ) FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-2143
SELECT - 41 * - + COUNT ( * ) FROM tab1 AS cor0
----
123

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 39 * col2 IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL = 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + ( + ( - + MAX( - + col1 ) ) ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2146
SELECT + ( + ( - + MAX ( - + col1 ) ) ) AS col2 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL + 38 * + 52 + + col0 + - col2 - + - col2 DIV - col0 col1 FROM tab2
----
1993
1999
2000

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2148
SELECT ALL + 38 * + 52 + + col0 + - col2 - + - col2 / - col0 col1 FROM tab2
----
1993
1999
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2149
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 70 * - - 12 FROM tab1
----
840

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - ( + 22 ) - - + 67 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT COUNT( * ) + 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
11

skipif mysql # not compatible
query I rowsort label-2152
SELECT COUNT ( * ) + 8 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
11

query I rowsort
SELECT DISTINCT + col2 + - - 6 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT ALL COUNT( * ) + + + COUNT( * ) * + 98 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * + 98 FROM tab1 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query II rowsort label-2155
SELECT + 91 + col2 AS col0, col1 DIV + ( - col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
114
22
131
39
149
58

skipif mysql # not compatible
query II rowsort label-2155
SELECT + 91 + col2 AS col0, col1 / + ( - col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
114
22
131
39
149
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2156
SELECT ALL + - ( + col1 ) * - - CAST( - - 2 AS SIGNED ) * + - col2 * - + col1 * + 96 col0 FROM tab2 AS cor0
----
-11486016
-45534720
-49989504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2156
SELECT ALL + - ( + col1 ) * - - CAST ( - - 2 AS INTEGER ) * + - col2 * - + col1 * + 96 col0 FROM tab2 AS cor0
----
-11486016
-45534720
-49989504

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT DISTINCT COUNT( * ) * 31 col2 FROM tab1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2157
SELECT DISTINCT COUNT ( * ) * 31 col2 FROM tab1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2158
SELECT + col1 + col2 + - + CAST( + 50 AS SIGNED ) * 86 * + col2 FROM tab1
----
-253636
-292285
-412690

skipif mysql # not compatible
query I rowsort label-2158
SELECT + col1 + col2 + - + CAST ( + 50 AS INTEGER ) * 86 * + col2 FROM tab1
----
-253636
-292285
-412690

onlyif mysql # DIV for integer division: 
query III rowsort label-2159
SELECT - 23 DIV - 52 * - 16, col2 + + col0 AS col2, - col0 AS col0 FROM tab1
----
9 values hashing to ca21a59d0fa54d44e3bff71fc7b5ca9e

skipif mysql # not compatible
query III rowsort label-2159
SELECT - 23 / - 52 * - 16, col2 + + col0 AS col2, - col0 AS col0 FROM tab1
----
9 values hashing to ca21a59d0fa54d44e3bff71fc7b5ca9e

query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT ( + + col0 ) + - col2 * + col2 DIV - col2 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT ( + + col0 ) + - col2 * + col2 / - col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT ALL + + CAST( + - col2 AS SIGNED ) - col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + + CAST ( + - col2 AS INTEGER ) - col2 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT DISTINCT 49 * 53 FROM tab2
----
2597

onlyif mysql # DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT + col1 DIV + col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + col1 / + col1 AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT DISTINCT - CAST( - MAX( ALL + + col0 ) AS SIGNED ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT - CAST ( - MAX ( ALL + + col0 ) AS INTEGER ) FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2166
SELECT ALL + col2 DIV col0 * - - ( + + col1 ) FROM tab1
----
0
0
14

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + col2 / col0 * - - ( + + col1 ) FROM tab1
----
0
0
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT col1 DIV - col2 * col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT col1 / - col2 * col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col1, col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT ALL 34 AS col1 FROM tab0 WHERE - col1 = col2
----

query I rowsort
SELECT ALL - 13 + + 82 FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT DISTINCT - col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT 38 = ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 36 / 34 AS col2 FROM tab2 WHERE + col2 >= col0
----

query I rowsort
SELECT ALL + 90 * - col2 + - col0 AS col2 FROM tab0
----
-4245
-9007
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL COUNT( * ) + COUNT( + col0 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL COUNT ( * ) + COUNT ( + col0 ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT SUM( ALL 5 ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2176
SELECT SUM ( ALL 5 ) AS col0 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( 79 + - col2 / + 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT - 42 - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
-42

skipif mysql # not compatible
query I rowsort label-2178
SELECT - 42 - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
-42

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col2 * 63 IS NULL
----
59
68
96

query I rowsort
SELECT col0 * + 26 + + col2 * - col1 AS col2 FROM tab1
----
-18
-830
1915

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( - 16 ) AS col0 FROM tab2
----
16
16
16

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 20 BETWEEN col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND ( - col2 )
----
-51
-85
-91

query I rowsort
SELECT ALL - ( 90 ) AS col2 FROM tab1
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - MIN( DISTINCT - 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2188
SELECT - MIN ( DISTINCT - 80 ) FROM tab2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT DISTINCT - col0 + - CAST( + 23 AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT - col0 + - CAST ( + 23 AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 ) <> - 25
----

query I rowsort
SELECT col2 * 19 AS col2 FROM tab2
----
1102
437
760

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2192
SELECT DISTINCT - MIN( DISTINCT 5 ) FROM tab2 WHERE NULL <> ( ( + CAST( 84 AS DECIMAL ) ) / col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - MIN ( DISTINCT 5 ) FROM tab2 WHERE NULL <> ( ( + CAST ( 84 AS REAL ) ) / col2 )
----
NULL

query I rowsort
SELECT 12 * col0 AS col2 FROM tab1
----
1020
1092
612

query I rowsort
SELECT ( col0 ) * + col0 AS col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT col0 * - ( + col1 ) FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL col2 * - 99 FROM tab0
----
-4653
-9801
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-2197
SELECT DISTINCT - col0 DIV col0 + - col1 AS col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT - col0 / col0 + - col1 AS col1 FROM tab0
----
-2
-22
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE ( + 14 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 87 + + col1 FROM tab0
----
108
168
88

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1 WHERE + 22 IS NOT NULL
----
-23
-23
-23

query I rowsort
SELECT ALL 5 * 49 AS col1 FROM tab2
----
245
245
245

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab1 cor0 WHERE - 47 NOT IN ( col0 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT MAX( + 42 ) col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2203
SELECT MAX ( + 42 ) col1 FROM tab2 AS cor0
----
42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > ( ( + 72 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL SUM( - col1 ) * + ( - MIN( - col0 ) * COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-29970

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL SUM ( - col1 ) * + ( - MIN ( - col0 ) * COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-29970

query I rowsort
SELECT - col1 AS col2 FROM tab1 cor0 WHERE ( 45 ) BETWEEN - col0 AND col2
----
-14
-47
-5

query I rowsort
SELECT col0 + col0 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + COUNT( * ) + - 17 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-2209
SELECT + COUNT ( * ) + - 17 FROM tab1
----
-14

query III rowsort
SELECT * FROM tab1 WHERE ( 18 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT DISTINCT - 6 + + COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - 6 + + COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT col2 + - 50 FROM tab1 AS cor0
----
18
46
9

query I rowsort
SELECT + - ( - 53 ) + col0 AS col1 FROM tab2 AS cor0
----
117
128
99

query I rowsort
SELECT col0 + + 53 FROM tab2 AS cor0
----
117
128
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT - - col2 + + 64 DIV - col0 col2 FROM tab0 AS cor0
----
10
43
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2215
SELECT - - col2 + + 64 / - col0 col2 FROM tab0 AS cor0
----
10
43
99

query I rowsort
SELECT ALL + - col1 * - col1 + + 34 AS col1 FROM tab1 AS cor0
----
2243
230
59

query I rowsort
SELECT ALL + 32 - + col2 FROM tab0 cor0
----
-15
-67
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL + COUNT( * ) - - ( + 86 ) col2 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT ALL + COUNT ( * ) - - ( + 86 ) col2 FROM tab2 AS cor0
----
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) NOT IN ( + col0 + col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE NOT + 87 NOT IN ( col2 )
----

query I rowsort
SELECT ALL + 3 * - - 27 * col1 FROM tab1
----
1134
3807
405

query I rowsort
SELECT ALL + col1 + col0 FROM tab0 WHERE NOT ( - col1 + - col0 * + 53 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 / + ( col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 26 )
----

query I rowsort
SELECT - col1 * + + col1 AS col1 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * 26 + - col0 IN ( + 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 38 * - col2 < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL + COUNT( * ) * 85 AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + COUNT ( * ) * 85 AS col2 FROM tab0
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2230
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-2230
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 + 13 col0 FROM tab0 AS cor0 WHERE NOT 23 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT ALL + 23 * col1 FROM tab1 AS cor0
----
1081
115
322

query I rowsort
SELECT - col1 + col0 FROM tab2 AS cor0 WHERE NOT NULL <> - ( col0 ) * 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= - 9 * + col0 + 41
----
0

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= - 9 * + col0 + 41
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2236
SELECT DISTINCT + col0 DIV + 92 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + col0 / + 92 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT - + COUNT( ALL + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT - + COUNT ( ALL + col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 50 * 85 FROM tab0 AS cor0
----
-4250

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + + 94 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE ( - col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE ( - col1 ) IS NULL
----
0

query I rowsort
SELECT ALL + + 69 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN col1 AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT + ( 61 ) DIV + 27 + + 16 AS col1 FROM tab2
----
18
18
18

skipif mysql # not compatible
query I rowsort label-2243
SELECT + ( 61 ) / + 27 + + 16 AS col1 FROM tab2
----
18
18
18

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT DISTINCT col1 + - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
13
4
46

skipif mysql # not compatible
query I rowsort label-2244
SELECT DISTINCT col1 + - col0 / col0 AS col0 FROM tab1 AS cor0
----
13
4
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT ALL - - col0 DIV col0 + - + 60 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - - col0 / col0 + - + 60 AS col0 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL + ( 48 ) * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 83 NOT BETWEEN - col2 AND - ( 76 )
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * - 18 - col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT - CAST( NULL AS SIGNED ) / + col2 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT - CAST ( NULL AS INTEGER ) / + col2 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT AVG ( col2 ) FROM tab2 AS cor0 WHERE ( - 48 ) IN ( ( + col2 ) )
----
NULL

query I rowsort
SELECT DISTINCT 51 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) BETWEEN NULL AND 50 * - ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col2 FROM tab2
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 13 / - - col2 * 77 )
----

query I rowsort
SELECT - 11 * + + col2 FROM tab1
----
-1056
-649
-748

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT col1 DIV ( - col1 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2257
SELECT col1 / ( - col1 ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + - col0 + - + col2 AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2259
SELECT * FROM tab2 WHERE + col2 + + + col2 <= - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2259
SELECT * FROM tab2 WHERE + col2 + + + col2 <= - CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT 17 + - - MIN( ALL + - col2 ) * - COUNT( * ) AS col2 FROM tab1
----
305

skipif mysql # not compatible
query I rowsort label-2260
SELECT 17 + - - MIN ( ALL + - col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT + COUNT( * ) FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL AND NOT col2 BETWEEN ( - col2 + - col0 * 75 ) AND - 95
----
3

skipif mysql # not compatible
query I rowsort label-2261
SELECT + COUNT ( * ) FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT col2 BETWEEN ( - col2 + - col0 * 75 ) AND - 95
----
3

query II rowsort
SELECT ALL col2 + + 80, - ( - ( - col2 ) ) AS col0 FROM tab2 cor0
----
103
-23
120
-40
138
-58

query I rowsort
SELECT ALL + 31 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + + col1 IS NOT NULL )
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT ALL - col2 * col0 DIV - col1 - + 68 * + col1 FROM tab0 AS cor0
----
-1387
-5500
9535

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - col2 * col0 / - col1 - + 68 * + col1 FROM tab0 AS cor0
----
-1387
-5500
9535

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT ALL + MIN( 84 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + MIN ( 84 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( + col0 )
----
NULL

query I rowsort
SELECT - 24 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
-1357
-1564
-2208

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2267
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + + + 43 * + col2 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-2267
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + + + 43 * + col2 IN ( col1 )
----

query I rowsort
SELECT DISTINCT - 40 + + + 36 AS col0 FROM tab0 WHERE NOT - 4 IS NULL
----
-4

query I rowsort
SELECT DISTINCT ( - + 26 ) AS col1 FROM tab1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE ( 27 ) NOT IN ( - col0 ) AND ( col1 ) <> + col2
----
3

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE ( 27 ) NOT IN ( - col0 ) AND ( col1 ) <> + col2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 + - 42 col1 FROM tab0 AS cor0
----
54
56
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2272
SELECT - - ( 76 ) DIV - 6 FROM tab1 AS cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-2272
SELECT - - ( 76 ) / - 6 FROM tab1 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - ( - + SUM( + 69 ) ) AS col1 FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-2273
SELECT - ( - + SUM ( + 69 ) ) AS col1 FROM tab1 AS cor0
----
207

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2274
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) * - col1 IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2274
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) * - col1 IN ( col0 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0, - col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + + 87 AS col1 FROM tab0 AS cor0
----
4089
8613
870

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - COUNT( 15 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2277
SELECT - COUNT ( 15 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - 77 AS col0 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT DISTINCT - MAX( 61 ) FROM tab2 WHERE ( + 43 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT - MAX ( 61 ) FROM tab2 WHERE ( + 43 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( - 46 ) * - col2 + col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT DISTINCT ( - MAX( + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT ( - MAX ( + col0 ) ) FROM tab1
----
-91

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + + 61 * - 6 FROM tab1 AS cor0
----
-366
-366
-366

query I rowsort
SELECT - col2 * + 43 * + col1 FROM tab2 AS cor0
----
-132440
-167098
-50439

query I rowsort
SELECT ALL - col0 * + 49 FROM tab0 AS cor0
----
-4263
-4753
-735

query II rowsort
SELECT - col0, - col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - col2, col1 col0 FROM tab0
----
100
21
2209
81
9801
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 99 IS NULL
----

query I rowsort
SELECT ALL - col2 + + col2 AS col0 FROM tab1 WHERE + - col2 NOT BETWEEN - - col2 AND NULL
----
0
0
0

query II rowsort
SELECT ALL 75 + col1, col2 AS col2 FROM tab2 AS cor0
----
126
23
142
58
152
40

query I rowsort
SELECT - - col1 * - 3 FROM tab1 cor0
----
-141
-15
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - MIN( DISTINCT + - ( + + ( + + 53 ) ) ) AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2292
SELECT - MIN ( DISTINCT + - ( + + ( + + 53 ) ) ) AS col1 FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT - 55 + - MAX( DISTINCT + 13 ) AS col0 FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2293
SELECT - 55 + - MAX ( DISTINCT + 13 ) AS col0 FROM tab1 AS cor0
----
-68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT COUNT( * ) + - + ( 65 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-2295
SELECT COUNT ( * ) + - + ( 65 ) FROM tab0 AS cor0
----
-62

query I rowsort
SELECT 72 + - + 53 AS col2 FROM tab1 AS cor0
----
19
19
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT DISTINCT COUNT( DISTINCT col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT COUNT ( DISTINCT col0 ) AS col2 FROM tab1
----
3

query II rowsort
SELECT ALL + col1 AS col2, 16 + - 68 AS col1 FROM tab1
----
14
-52
47
-52
5
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT MAX( + col0 ) + - - 63 AS col0 FROM tab1
----
154

skipif mysql # not compatible
query I rowsort label-2299
SELECT MAX ( + col0 ) + - - 63 AS col0 FROM tab1
----
154

query I rowsort
SELECT ALL + + 57 FROM tab0 WHERE NOT - 47 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT ALL - col2 + - col0 DIV + col0 - + ( - - 51 ) FROM tab2
----
-110
-75
-92

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - col2 + - col0 / + col0 - + ( - - 51 ) FROM tab2
----
-110
-75
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT 74 * + COUNT( * ) AS col1 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT 74 * + COUNT ( * ) AS col1 FROM tab2
----
222

query I rowsort
SELECT ALL 92 * col0 AS col2 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT + col2 + - - col1 AS col1 FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab0 WHERE + + 94 * col2 * - ( - col2 ) NOT IN ( - - col0 * - - col1 + + 43 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 94 * 35 AS col2 FROM tab0
----
-3290
-3290
-3290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 col0, - 47 * - 88 + + col0 * - + col1 * - col0 FROM tab2
----
27
112052
27
319528
27
381011

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + ( + - col1 ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT + SUM( DISTINCT + col1 ) FROM tab1 cor0 WHERE NULL <= 81
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT + SUM ( DISTINCT + col1 ) FROM tab1 cor0 WHERE NULL <= 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + - col2 + - - col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - col1 - + - col0 AS col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT - COUNT( * ) col2 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-2313
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - col2 * 83 * - + col1 + - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT COUNT( * ) * + - 56 AS col2 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2315
SELECT COUNT ( * ) * + - 56 AS col2 FROM tab1 AS cor0
----
-168

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE + col0 * ( + col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + + COUNT( DISTINCT - ( - - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2318
SELECT + + COUNT ( DISTINCT - ( - - col0 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - + col1 ) IS NOT NULL AND col2 >= - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2320
SELECT DISTINCT MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT ALL 66 AS col1, col1 AS col1 FROM tab0
----
66
1
66
21
66
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT 78 * col1 DIV col2 FROM tab2
----
150
172
90

skipif mysql # not compatible
query I rowsort label-2322
SELECT 78 * col1 / col2 FROM tab2
----
150
172
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2323
SELECT 85 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT 85 * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2324
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - 62 ) * CAST( NULL AS SIGNED ) + + col2 ) NOT IN ( + 26 )
----

skipif mysql # not compatible
query III rowsort label-2324
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - 62 ) * CAST ( NULL AS INTEGER ) + + col2 ) NOT IN ( + 26 )
----

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > + col1 / - 35 - - 85
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 36 * + + ( col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + col2 + 26 AS col1 FROM tab2 AS cor0 WHERE NOT col1 <= - - col0 + col2 - 8 * 24 * + + col2
----
-14
-32
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL - MAX( DISTINCT - ( + col1 ) ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL - MAX ( DISTINCT - ( + col1 ) ) AS col1 FROM tab1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2329
SELECT ALL CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) + SUM( - - col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL CAST ( CAST ( NULL AS REAL ) AS INTEGER ) + SUM ( - - col0 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 72 + + col1 AS col1 FROM tab0
----
153
73
93

query I rowsort
SELECT 74 AS col2 FROM tab0 WHERE NULL IS NULL
----
74
74
74

query I rowsort
SELECT DISTINCT 61 * 73 + + + 52 + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 * + - 27 IS NULL
----

query I rowsort
SELECT ALL + 9 AS col1 FROM tab1 cor0
----
9
9
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - 77 + col1 + + + col0 FROM tab2
----
128
140
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + COUNT( * ) * 44 * - COUNT( * ) FROM tab1
----
-396

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + COUNT ( * ) * 44 * - COUNT ( * ) FROM tab1
----
-396

query I rowsort
SELECT - 17 - col2 AS col0 FROM tab2
----
-40
-57
-75

query I rowsort
SELECT DISTINCT col2 + - 65 AS col0 FROM tab0
----
-18
-55
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + + col0 - + - col1 col1 FROM tab1
----
149
161
206

query II rowsort
SELECT ALL + col0 * - col2 AS col0, + 33 AS col2 FROM tab0
----
-705
33
-870
33
-9603
33

query II rowsort
SELECT DISTINCT col0 + - 30 AS col0, + col1 AS col0 FROM tab2
----
16
51
34
77
45
67

query I rowsort
SELECT 72 FROM tab0 WHERE ( NOT col0 <= - col1 )
----
72
72
72

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * + col0 + + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2345
SELECT ALL - col0 col0 FROM tab1 WHERE - col2 * - 73 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2345
SELECT ALL - col0 col0 FROM tab1 WHERE - col2 * - 73 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 46 * - col0 + + col0 AS col1 FROM tab2
----
-2070
-2880
-3375

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT MIN( + 62 ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT MIN ( + 62 ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
59

query I rowsort
SELECT 16 AS col1 FROM tab1 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - 99 * - + col2 / - 57 * - col1 IS NULL
----
10
47
99

query I rowsort
SELECT col2 * + 36 FROM tab1 cor0
----
2124
2448
3456

query II rowsort
SELECT + + col0 * - - 28 * - 0 AS col0, 72 AS col2 FROM tab2 AS cor0
----
0
72
0
72
0
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT - col0 + col0 * - 87 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT CAST( NULL AS SIGNED ) <= col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2353
SELECT - col0 + col0 * - 87 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NOT CAST ( NULL AS INTEGER ) <= col0 ) )
----

query I rowsort
SELECT ALL - col2 * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2355
SELECT ALL + + col2 DIV + col0 col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2355
SELECT ALL + + col2 / + col0 col2 FROM tab1 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - 39 + + 89 + 70 * col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ( - col2 ) AS col2, col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT + - col2 + - 94 * - + 81 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT ( + + 38 ) AS col2 FROM tab2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2360
SELECT - CAST( col2 AS SIGNED ), - 15 AS col0 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

skipif mysql # not compatible
query II rowsort label-2360
SELECT - CAST ( col2 AS INTEGER ), - 15 AS col0 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - 74 * + SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
-16502

skipif mysql # not compatible
query I rowsort label-2361
SELECT - 74 * + SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
-16502

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2362
SELECT col0 * + CAST( NULL AS SIGNED ) / col2 * - col0 AS col1, col2 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

skipif mysql # not compatible
query II rowsort label-2362
SELECT col0 * + CAST ( NULL AS INTEGER ) / col2 * - col0 AS col1, col2 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

query I rowsort
SELECT + - ( + - ( + + 3 ) ) FROM tab2 AS cor0
----
3
3
3

query II rowsort
SELECT DISTINCT col0, col2 + col2 FROM tab1
----
51
192
85
118
91
136

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT - 40 + - MAX( - 23 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2365
SELECT - 40 + - MAX ( - 23 ) FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT - - COUNT( * ) + + 15 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2366
SELECT - - COUNT ( * ) + + 15 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL - 83 + + col2 FROM tab0 AS cor0
----
-36
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL - + COUNT( * ) + + - 24 col2 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2368
SELECT ALL - + COUNT ( * ) + + - 24 col2 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT - + col0 + 57 AS col2 FROM tab0 AS cor0
----
-30
-40
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 93 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 93 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 68 * 79 AND + 53
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT - col0 / + 64 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT ALL + MIN( ALL + col0 ) - 28 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL + MIN ( ALL + col0 ) - 28 FROM tab1
----
23

query I rowsort
SELECT DISTINCT col2 * 27 FROM tab0
----
1269
2673
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 99 col2 FROM tab2
----
2277
3960
5742

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 74 AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 + col2 col0 FROM tab1
----
112
75
84

query I rowsort
SELECT - col0 * + ( - 44 ) FROM tab2
----
2024
2816
3300

onlyif mysql # DIV for integer division: 
query I rowsort label-2380
SELECT + 20 DIV + + col1 AS col0 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2380
SELECT + 20 / + + col1 AS col0 FROM tab1
----
0
1
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2381
SELECT ( CAST( - - col0 AS SIGNED ) ) - - col2 * - col0 - + col1, col2 FROM tab1 AS cor0
----
-4859
96
-4935
59
-6144
68

skipif mysql # not compatible
query II rowsort label-2381
SELECT ( CAST ( - - col0 AS INTEGER ) ) - - col2 * - col0 - + col1, col2 FROM tab1 AS cor0
----
-4859
96
-4935
59
-6144
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL - 93 * + + COUNT( * ) + 63 AS col2 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL - 93 * + + COUNT ( * ) + 63 AS col2 FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * + 75 FROM tab2 AS cor0 WHERE ( + col0 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * + 75 FROM tab2 AS cor0 WHERE ( + col0 ) < NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col0 FROM tab2
----
10
10
10

query I rowsort
SELECT + 51 * - col1 AS col1 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # aggregate syntax: 
query II rowsort label-2386
SELECT - MIN( DISTINCT col0 ) AS col1, ( 87 ) FROM tab0
----
-15
87

skipif mysql # not compatible
query II rowsort label-2386
SELECT - MIN ( DISTINCT col0 ) AS col1, ( 87 ) FROM tab0
----
-15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT - COUNT( + ( - col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2387
SELECT - COUNT ( + ( - col1 ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL 0 AS col1, + col0, + - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - + 98 * + + col2 AND - ( col2 ) * - col2 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2390
SELECT ALL col1 DIV - col1 + - 96 FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL col1 / - col1 + - 96 FROM tab0 AS cor0
----
-97
-97
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 76 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT ALL + MIN( + 40 ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + MIN ( + 40 ) AS col0 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT + 6 + - SUM( DISTINCT - + col2 ) AS col1 FROM tab2 WHERE NOT 64 IS NULL
----
127

skipif mysql # not compatible
query I rowsort label-2394
SELECT + 6 + - SUM ( DISTINCT - + col2 ) AS col1 FROM tab2 WHERE NOT 64 IS NULL
----
127

query I rowsort
SELECT - ( 20 ) FROM tab1
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-2396
SELECT DISTINCT 50, + MIN( - 93 ) AS col1 FROM tab1
----
50
-93

skipif mysql # not compatible
query II rowsort label-2396
SELECT DISTINCT 50, + MIN ( - 93 ) AS col1 FROM tab1
----
50
-93

query II rowsort
SELECT DISTINCT col1, col0 * - 88 AS col2 FROM tab0
----
1
-8536
21
-7656
81
-1320

query I rowsort
SELECT + 25 * + - col2 AS col2 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT ALL - ( - col2 ) + - + col0 AS col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT + CAST( NULL AS SIGNED ) / - col1 FROM tab2 WHERE NOT + col2 + CAST( - 15 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2400
SELECT + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 WHERE NOT + col2 + CAST ( - 15 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + MIN( + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2401
SELECT + MIN ( + - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 * - col2, 79 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - col1, col1 col1 FROM tab0
----
-11
21
-34
81
98
1

query I rowsort
SELECT DISTINCT ( - - 53 ) + + + 12 FROM tab2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2405
SELECT ALL - 4 + + col0 + col0 DIV + col2 FROM tab0
----
11
91
93

skipif mysql # not compatible
query I rowsort label-2405
SELECT ALL - 4 + + col0 + col0 / + col2 FROM tab0
----
11
91
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2406
SELECT DISTINCT col1 + - col1 DIV + - col0 + + - col2 + + + col2 FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT col1 + - col1 / + - col0 + + - col2 + + + col2 FROM tab2 AS cor0
----
52
67
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2407
SELECT ALL + SUM( ALL + + 45 ) DIV + - COUNT( * ) + - MIN( ALL - + 11 ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + SUM ( ALL + + 45 ) / + - COUNT ( * ) + - MIN ( ALL - + 11 ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT ALL + col2 - + - col1 * + 85 AS col2 FROM tab0 AS cor0
----
1795
184
6932

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT ALL + SUM( ALL col1 ) - + 94 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + SUM ( ALL col1 ) - + 94 FROM tab2 AS cor0
----
101

query I rowsort
SELECT DISTINCT + 82 - + 77 FROM tab2
----
5

query I rowsort
SELECT + col0 - + + 34 FROM tab2
----
12
30
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2412
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) BETWEEN col1 * - col2 AND + + col0
----

skipif mysql # not compatible
query III rowsort label-2412
SELECT DISTINCT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) BETWEEN col1 * - col2 AND + + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 99 + - + col2 * + 1 FROM tab1
----
3
31
40

query I rowsort
SELECT 40 + + + ( - - col1 ) * + col2 + col1 + + + col2 FROM tab1
----
1494
3351
399

query III rowsort
SELECT * FROM tab0 WHERE 75 >= NULL
----

query I rowsort
SELECT + 35 * 87 AS col1 FROM tab1 AS cor0
----
3045
3045
3045

query I rowsort
SELECT DISTINCT 14 * + 66 + col1 FROM tab2 AS cor0
----
1001
975
991

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 15 NOT IN ( + col0, 51, + 83 + + col2 + + col0 * col1 - - + ( - col1 ), + - col0 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col1 * - - 49 col1 FROM tab1 AS cor0
----
51
686
85
245
91
2303

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT COUNT( * ) * - + 6 col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2421
SELECT COUNT ( * ) * - + 6 col1 FROM tab2 AS cor0
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 28 + - col1 + + + col2 col0 FROM tab2 AS cor0
----
51
0
67
19
77
-9

query I rowsort
SELECT DISTINCT + 71 * - 98 * - 23 FROM tab1 AS cor0
----
160034

query I rowsort
SELECT DISTINCT + 2 * + col2 AS col1 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT ALL - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT col2 * col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 * + 44 * - col2 * + col0 ) NOT IN ( ( - - 55 ), + CAST( - - 75 AS SIGNED ), + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2426
SELECT col2 * col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( col2 * + 44 * - col2 * + col0 ) NOT IN ( ( - - 55 ), + CAST ( - - 75 AS INTEGER ), + + col2 )
----

query I rowsort
SELECT - 69 * - + col1 * col2 FROM tab2 AS cor0
----
212520
268134
80937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 85 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 17 * - + ( + col0 ) FROM tab2
----
1088
1275
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT DISTINCT + CAST( - - 60 AS SIGNED ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + CAST ( - - 60 AS INTEGER ) FROM tab0
----
60

query I rowsort
SELECT DISTINCT - - col1 AS col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2432
SELECT ALL + COUNT( * ) DIV - - 51 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + COUNT ( * ) / - - 51 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 * col1 * + 14 FROM tab2 AS cor0
----
-36414
-62846
-83006

onlyif mysql # DIV for integer division: 
query I rowsort label-2434
SELECT ALL + col1 - - 43 + + 20 DIV + 35 FROM tab2 AS cor0
----
110
120
94

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + col1 - - 43 + + 20 / + 35 FROM tab2 AS cor0
----
110
120
94

query I rowsort
SELECT + col2 FROM tab2 WHERE - col0 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT + + 97 + + CAST( - + 19 AS SIGNED ) FROM tab0 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2436
SELECT + + 97 + + CAST ( - + 19 AS INTEGER ) FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT ALL col0 + + + col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL - + 76 - + col0 FROM tab1 AS cor0
----
-127
-161
-167

query I rowsort
SELECT DISTINCT + - 78 + - 83 FROM tab2 AS cor0
----
-161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 10 AS col2, + 81 * col1 * col1 col0 FROM tab2 AS cor0 WHERE + 72 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 76 IS NULL
----

query I rowsort
SELECT ALL col2 * col1 + + 88 AS col2 FROM tab1 AS cor0
----
1432
3284
383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col0 FROM tab0 cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT DISTINCT CAST( + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT ALL + ( - + col0 ) AS col0, 24 AS col1 FROM tab1
----
-51
24
-85
24
-91
24

query II rowsort
SELECT ALL - col0 AS col1, 67 + col1 FROM tab2 WHERE NOT ( ( NOT + ( col1 ) - + + col0 IS NOT NULL ) )
----
-46
118
-64
144
-75
134

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT + col0 + 76 + 17 IS NOT NULL ) )
----

query II rowsort
SELECT - 73 * + - col0 AS col0, + 60 AS col1 FROM tab0
----
1095
60
6351
60
7081
60

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - col1 + + col0 + ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT ALL MAX( + 30 ) - + MAX( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 73 AND ( - col2 ) + - 2 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL MAX ( + 30 ) - + MAX ( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 73 AND ( - col2 ) + - 2 * - 2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + col0 * + col2 * + col0 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL - - col2 AS col0 FROM tab0 AS cor0 WHERE - 91 * - + col2 * + col1 / - CAST( NULL AS SIGNED ) BETWEEN + 39 * - 53 AND - col0
----

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - - col2 AS col0 FROM tab0 AS cor0 WHERE - 91 * - + col2 * + col1 / - CAST ( NULL AS INTEGER ) BETWEEN + 39 * - 53 AND - col0
----

query I rowsort
SELECT - ( - - 19 ) FROM tab2
----
-19
-19
-19

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL > NULL )
----

query II rowsort
SELECT - col0 - - col2, col2 FROM tab1 AS cor0 WHERE NOT ( NOT - - col0 + + col1 + 2 + - col0 - - + col0 * - 99 IS NULL )
----

query I rowsort
SELECT ALL - - ( - ( + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL ( 34 ) FROM tab2
----
34
34
34

query I rowsort
SELECT col0 * - - ( 92 ) AS col2 FROM tab0
----
1380
8004
8924

onlyif mysql # aggregate syntax: 
query II rowsort label-2460
SELECT DISTINCT + SUM( DISTINCT + col1 ) col1, COUNT( * ) AS col0 FROM tab1
----
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2460
SELECT DISTINCT + SUM ( DISTINCT + col1 ) col1, COUNT ( * ) AS col0 FROM tab1
----
66
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ( + COUNT( DISTINCT - - col0 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2461
SELECT ( + COUNT ( DISTINCT - - col0 ) ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2462
SELECT CAST( NULL AS SIGNED ), 49 AS col1 FROM tab0
----
NULL
49
NULL
49
NULL
49

skipif mysql # not compatible
query II rowsort label-2462
SELECT CAST ( NULL AS INTEGER ), 49 AS col1 FROM tab0
----
NULL
49
NULL
49
NULL
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT 93 * - COUNT( * ) * + 66 FROM tab0
----
-18414

skipif mysql # not compatible
query I rowsort label-2463
SELECT 93 * - COUNT ( * ) * + 66 FROM tab0
----
-18414

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2465
SELECT 97 AS col0, - col0 * + col1 * - + CAST( + + col2 AS SIGNED ) AS col2 FROM tab0
----
97
18270
97
57105
97
9603

skipif mysql # not compatible
query II rowsort label-2465
SELECT 97 AS col0, - col0 * + col1 * - + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0
----
97
18270
97
57105
97
9603

onlyif mysql # DIV for integer division: 
query II rowsort label-2466
SELECT col1, + 37 DIV - col1 AS col0 FROM tab1
----
14
-2
47
0
5
-7

skipif mysql # not compatible
query II rowsort label-2466
SELECT col1, + 37 / - col1 AS col0 FROM tab1
----
14
-2
47
0
5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab2 WHERE NULL <= NULL
----

query II rowsort
SELECT col0 AS col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT ALL - ( - - 79 ) + 44 FROM tab0 cor0
----
-35
-35
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ( - 32 ) + + ( 41 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT ( - 32 ) + + ( 41 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2471
SELECT 28 * + ( - COUNT( * ) ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2471
SELECT 28 * + ( - COUNT ( * ) ) FROM tab1
----
-84

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT - 71 IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT COUNT( * ) + 22 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
31

skipif mysql # not compatible
query I rowsort label-2473
SELECT COUNT ( * ) + 22 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
31

query I rowsort
SELECT 88 FROM tab2 AS cor0 WHERE NULL IS NULL
----
88
88
88

query I rowsort
SELECT + 6 + col2 * 32 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
1510
3174
326

query I rowsort
SELECT ALL + - 5 + + 88 * + col2 + col1 + + col1 + + + col1 AS col0 FROM tab0 AS cor0
----
4374
8710
938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2477
SELECT + 7 * + - CAST( + AVG ( - col2 ) AS SIGNED ) - + COUNT( * ) * 28 col1 FROM tab2 AS cor0
----
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2477
SELECT + 7 * + - CAST ( + AVG ( - col2 ) AS INTEGER ) - + COUNT ( * ) * 28 col1 FROM tab2 AS cor0
----
196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT DISTINCT + 52 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + 52 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + - SUM( + + 6 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2479
SELECT + - SUM ( + + 6 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2480
SELECT DISTINCT + CAST( ( COUNT( DISTINCT - - col0 ) ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2480
SELECT DISTINCT + CAST ( ( COUNT ( DISTINCT - - col0 ) ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 40 FROM tab1 WHERE + + col2 <> NULL
----

query II rowsort
SELECT ALL - col1 AS col1, + col1 + - - 96 FROM tab2
----
-51
147
-67
163
-77
173

onlyif mysql # DIV for integer division: 
query II rowsort label-2483
SELECT DISTINCT col0, - col1 DIV col1 FROM tab2
----
46
-1
64
-1
75
-1

skipif mysql # not compatible
query II rowsort label-2483
SELECT DISTINCT col0, - col1 / col1 FROM tab2
----
46
-1
64
-1
75
-1

query II rowsort
SELECT DISTINCT + col0 AS col2, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2485
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) <> - CAST( - + col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2485
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + col2 ) <> - CAST ( - + col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL SUM( 63 ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL SUM ( 63 ) FROM tab0
----
189

query I rowsort
SELECT + + 61 * - col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

query I rowsort
SELECT + ( - 29 ) AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL < col2 / col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2490
SELECT ALL - COUNT( * ), ( - MAX( CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2490
SELECT ALL - COUNT ( * ), ( - MAX ( CAST ( NULL AS REAL ) ) ) AS col2 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT + + COUNT( * ) col1 FROM tab0 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-2491
SELECT + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - ( - 39 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query II rowsort
SELECT ( + + col1 ), col0 * + col2 AS col2 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT DISTINCT MIN( - + 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT MIN ( - + 39 ) FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL SUM( ALL + 96 ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL SUM ( ALL + 96 ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query II rowsort label-2496
SELECT + ( 20 ) col2, - COUNT( * ) * + COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
20
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2496
SELECT + ( 20 ) col2, - COUNT ( * ) * + COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
20
-9

query I rowsort
SELECT - col2 * ( + col0 ) + - + col1 * - col2 * + col1 * col2 * - col1 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 25 * + - col0 - + + col0 FROM tab1 AS cor0
----
1224
2040
2184

query I rowsort
SELECT - - col1 + col2 * - 26 AS col0 FROM tab2 AS cor0
----
-1441
-547
-963

query I rowsort
SELECT DISTINCT - - 35 AS col2 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT - - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT - - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + 11 AS col0 FROM tab2 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab0 WHERE - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2, + col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT 1 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2506
SELECT COUNT( * ) AS col0, - COUNT( * ) FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-2506
SELECT COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1
----
3
-3

query I rowsort
SELECT DISTINCT + + col0 + + + col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT ( col0 ) - + 70 * - + 95 + + + col2 * + - col2 FROM tab1 cor0
----
-2515
2117
3254

query I rowsort
SELECT ALL col2 - - - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - ( + 48 ) * + - col0 AS col2 FROM tab2 AS cor0
----
2208
3072
3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2511
SELECT COUNT( * ) FROM tab1 WHERE CAST( NULL AS SIGNED ) * - col0 = + col2 AND - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT COUNT ( * ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) * - col0 = + col2 AND - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 + - 78 AS col2 FROM tab2
----
-20
-38
-55

query I rowsort
SELECT - + 69 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2514
SELECT DISTINCT - 54 DIV MIN( DISTINCT + - col1 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT - 54 / MIN ( DISTINCT + - col1 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT - col1 * 29 + + col2 + + ( + 77 ) * - - ( col2 ) AS col2 FROM tab2 AS cor0
----
2581
315
887

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT - + 11 AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-11
3

skipif mysql # not compatible
query II rowsort label-2516
SELECT - + 11 AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-11
3

query I rowsort
SELECT - col2 + col2 FROM tab1 AS cor0 WHERE NOT 90 * - col2 IS NULL
----
0
0
0

query I rowsort
SELECT + ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col1 + + col0 IS NULL
----

query II rowsort
SELECT ALL col0, + col1 + + 67 AS col0 FROM tab1 AS cor0
----
51
81
85
72
91
114

query I rowsort
SELECT ALL col0 * + 38 FROM tab0 AS cor0
----
3306
3686
570

query III rowsort
SELECT * FROM tab2 WHERE NOT + 24 * 88 * + col1 - + col1 <> - 50
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT ALL COUNT( - - col0 ) * - 14 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-2523
SELECT ALL COUNT ( - - col0 ) * - 14 FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT ALL + col2 DIV + 58 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + col2 / + 58 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 / col0 / + col0 + - col0 BETWEEN NULL AND + + col1
----

query I rowsort
SELECT ( 32 ) AS col1 FROM tab1
----
32
32
32

query I rowsort
SELECT col1 * + 22 * - col2 * - col2 AS col0 FROM tab0
----
215622
3936438
46200

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT + MAX( DISTINCT + 65 ) FROM tab1 WHERE NOT col1 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT + MAX ( DISTINCT + 65 ) FROM tab1 WHERE NOT col1 + + col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col1 FROM tab1
----
86

query I rowsort
SELECT 8 + - ( + col2 ) FROM tab0 WHERE NOT + + ( + + col1 ) IS NULL
----
-2
-39
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT - - MAX( DISTINCT 83 ) * - 40 * + ( COUNT( * ) ) FROM tab0 AS cor0
----
-9960

skipif mysql # not compatible
query I rowsort label-2531
SELECT - - MAX ( DISTINCT 83 ) * - 40 * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
-9960

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT ALL - MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT ALL - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 / 79 + col0 / + ( - col1 ) col0 FROM tab0 WHERE NOT col2 / + 36 / - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT DISTINCT - COUNT( ALL col1 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT - COUNT ( ALL col1 ) AS col1 FROM tab1
----
-3

query II rowsort
SELECT + 32 + - + ( col0 ), col2 AS col0 FROM tab1
----
-19
96
-53
59
-59
68

query II rowsort
SELECT + col2, - 53 * + 42 * - col2 AS col1 FROM tab0
----
10
22260
47
104622
99
220374

query I rowsort
SELECT - ( + 31 ) FROM tab1 AS cor0 WHERE ( + col1 ) * - 8 - col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT DISTINCT + SUM( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT + SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2539
SELECT col2 * col0 * + col1 AS col1, - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
197120
-40
291450
-58
53958
-23

skipif mysql # not compatible
query II rowsort label-2539
SELECT col2 * col0 * + col1 AS col1, - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
197120
-40
291450
-58
53958
-23

query II rowsort
SELECT ALL + 80, col0 FROM tab2 AS cor0
----
80
46
80
64
80
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2541
SELECT DISTINCT - CAST( + - 28 AS SIGNED ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - CAST ( + - 28 AS INTEGER ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT - 5 * MAX( col0 ) AS col2 FROM tab0
----
-485

skipif mysql # not compatible
query I rowsort label-2542
SELECT - 5 * MAX ( col0 ) AS col2 FROM tab0
----
-485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2543
SELECT ALL - CAST( NULL AS SIGNED ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2544
SELECT CAST( - col0 AS SIGNED ) AS col0, 49 * - - col2 * - ( - col1 ) * - col0 + + - col2 FROM tab1
----
-51
-3358752
-85
-1228734
-91
-14251032

skipif mysql # not compatible
query II rowsort label-2544
SELECT CAST ( - col0 AS INTEGER ) AS col0, 49 * - - col2 * - ( - col1 ) * - col0 + + - col2 FROM tab1
----
-51
-3358752
-85
-1228734
-91
-14251032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT 77 * + col0 + + col2 * - + col0 FROM tab1 WHERE CAST( - col2 AS SIGNED ) IS NOT NULL
----
-969
1530
819

skipif mysql # not compatible
query I rowsort label-2545
SELECT 77 * + col0 + + col2 * - + col0 FROM tab1 WHERE CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-969
1530
819

query I rowsort
SELECT DISTINCT col0 * + + col0 FROM tab0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 36 = NULL
----

query I rowsort
SELECT col1 - col1 * - col1 - 45 * col1 AS col0 FROM tab0
----
-43
-483
2997

onlyif mysql # DIV for integer division: 
query II rowsort label-2549
SELECT DISTINCT - 16 * + col1 AS col1, + ( - 60 ) DIV col1 + col0 + - 48 AS col2 FROM tab0
----
-1296
-33
-16
-11
-336
37

skipif mysql # not compatible
query II rowsort label-2549
SELECT DISTINCT - 16 * + col1 AS col1, + ( - 60 ) / col1 + col0 + - 48 AS col2 FROM tab0
----
-1296
-33
-16
-11
-336
37

query I rowsort
SELECT ALL col2 * + - col0 AS col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL - 78 + - COUNT( ALL + 84 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - 78 + - COUNT ( ALL + 84 ) FROM tab1
----
-81

query I rowsort
SELECT DISTINCT + col2 + - col1 * + 75 AS col0 FROM tab1
----
-316
-3457
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - ( col1 ) col0 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2554
SELECT - CAST( - - 47 AS DECIMAL ) + + col0 + - 60 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT - CAST ( - - 47 AS REAL ) + + col0 + - 60 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 - - - 28 AS col1 FROM tab1
----
-124
-87
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT + 41 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL + CAST( NULL AS SIGNED ) * + + 90 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 90 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - col0 IS NULL
----

query II rowsort
SELECT ALL + + col0 AS col0, 82 AS col1 FROM tab0 AS cor0
----
15
82
87
82
97
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL - SUM( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - SUM ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL + 12 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL + 12 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 13 AND 46 + - 97
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < - ( + 29 )
----

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT DISTINCT 23 DIV col1 AS col1 FROM tab0
----
0
1
23

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT 23 / col1 AS col1 FROM tab0
----
0
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - MIN( DISTINCT - - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2567
SELECT - MIN ( DISTINCT - - col1 ) AS col2 FROM tab1
----
-5

query I rowsort
SELECT - 58 AS col2 FROM tab1 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT NULL <> + - col2
----
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT NULL <> + - col2
----
0

query I rowsort
SELECT - - 22 AS col2 FROM tab2 AS cor0
----
22
22
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2571
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST( 60 AS DECIMAL ) * 45 BETWEEN + 48 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2571
SELECT ALL * FROM tab2 cor0 WHERE NOT + CAST ( 60 AS REAL ) * 45 BETWEEN + 48 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 >= col1 - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2574
SELECT + CAST( NULL AS DECIMAL ) + col0 * + col1 * col0 + + col2 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT + CAST ( NULL AS REAL ) + col0 * + col1 * col0 + + col2 / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 76 + + col0, + col2 FROM tab0 AS cor0
----
163
10
173
99
91
47

query I rowsort
SELECT + - col2 + 28 AS col2 FROM tab0 AS cor0
----
-19
-71
18

query I rowsort
SELECT ALL - - col1 + ( - 48 ) * - + col0 * col0 FROM tab2 AS cor0
----
101619
196685
270067

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - MAX( ALL - col2 ) + + COUNT( * ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2578
SELECT - MAX ( ALL - col2 ) + + COUNT ( * ) FROM tab1 AS cor0
----
62

query II rowsort
SELECT DISTINCT - 83 * + col0, - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 + + col0 * - 67 FROM tab2 AS cor0
----
-3031
-4211
-4958

query I rowsort
SELECT ALL col0 - + 81 AS col1 FROM tab1 AS cor0
----
-30
10
4

query I rowsort
SELECT + col2 + col1 + col2 AS col1 FROM tab1 AS cor0
----
123
183
206

query II rowsort
SELECT + + col0 * + + 1 + + col1, - 51 FROM tab0 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT MIN( - - 36 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT MIN ( - - 36 ) FROM tab1
----
36

query II rowsort
SELECT - 21 AS col0, + col0 AS col1 FROM tab0
----
-21
15
-21
87
-21
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2586
SELECT DISTINCT + 76 + + col2 DIV + + col1 FROM tab1
----
77
82
87

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT + 76 + + col2 / + + col1 FROM tab1
----
77
82
87

query I rowsort
SELECT - col1 * 89 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT - MIN( DISTINCT - 53 ) AS col1 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-2588
SELECT - MIN ( DISTINCT - 53 ) AS col1 FROM tab2 cor0
----
53

query I rowsort
SELECT ALL ( + ( + col2 ) ) * + + 93 * + col1 + col1 + col2 FROM tab1 AS cor0
----
125102
27499
297343

query I rowsort
SELECT - 31 - + col1 AS col0 FROM tab1 AS cor0
----
-36
-45
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2591
SELECT + - col1 - - + col1 + col0 + col2 DIV + 63 AS col2 FROM tab1 AS cor0
----
52
85
92

skipif mysql # not compatible
query I rowsort label-2591
SELECT + - col1 - - + col1 + col0 + col2 / + 63 AS col2 FROM tab1 AS cor0
----
52
85
92

query I rowsort
SELECT DISTINCT - 25 + - + col1 FROM tab2 AS cor0
----
-102
-76
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2593
SELECT * FROM tab1 WHERE NOT ( ( NOT NULL NOT IN ( 80, 89 + + 8, - CAST( col0 AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-2593
SELECT * FROM tab1 WHERE NOT ( ( NOT NULL NOT IN ( 80, 89 + + 8, - CAST ( col0 AS INTEGER ) ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab2
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT + ( - col0 ) * - + 92 AS col0 FROM tab0 AS cor0
----
1380
8004
8924

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT DISTINCT + + SUM( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 3 * + col2 + - - ( - - col0 ) + col1 * + col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT DISTINCT + + SUM ( col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 3 * + col2 + - - ( - - col0 ) + col1 * + col1 = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND col0 / - ( + + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT + COUNT( DISTINCT + - 53 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2601
SELECT + COUNT ( DISTINCT + - 53 ) AS col0 FROM tab2
----
1

query II rowsort
SELECT ALL col1 AS col0, - col0 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
-97
21
-87
81
-15

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( - - col0 ) IS NULL
----
-51
-67
-77

query II rowsort
SELECT - 16 AS col1, ( - ( - col1 ) ) AS col2 FROM tab1
----
-16
14
-16
47
-16
5

query I rowsort
SELECT + col2 * - + 39 * - - col1 * 82 FROM tab0
----
-12174786
-316602
-671580

query I rowsort
SELECT + - col1 + col2 AS col0 FROM tab1 WHERE NOT - col2 * - 17 + col0 <> NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + 83 - + col0 <> NULL
----

query I rowsort
SELECT col2 * - - 87 FROM tab2
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2609
SELECT ALL CAST( - + col1 AS SIGNED ) * - + col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL CAST ( - + col1 AS INTEGER ) * - + col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL CAST( NULL AS SIGNED ) + - - 38 + + + 19 FROM tab1 WHERE ( - col2 ) + - 4 BETWEEN - col2 - + 68 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL CAST ( NULL AS INTEGER ) + - - 38 + + + 19 FROM tab1 WHERE ( - col2 ) + - 4 BETWEEN - col2 - + 68 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 * col2 + - col2 + + 68 * - col2 AS col2, + col2 col1 FROM tab0 AS cor0
----
-1034
47
-590
10
2970
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2612
SELECT DISTINCT - 85 DIV SUM( - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - 85 / SUM ( - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT - 41 * 30 + + CAST( + - col2 AS SIGNED ) - + + 42 + col1 AS col2 FROM tab0 AS cor0
----
-1238
-1261
-1370

skipif mysql # not compatible
query I rowsort label-2614
SELECT - 41 * 30 + + CAST ( + - col2 AS INTEGER ) - + + 42 + col1 AS col2 FROM tab0 AS cor0
----
-1238
-1261
-1370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT 33 DIV COUNT( * ) + - + 45 AS col1 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2615
SELECT 33 / COUNT ( * ) + - + 45 AS col1 FROM tab1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT - 7 + - - CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT - 7 + - - CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query II rowsort
SELECT ( + col2 ), ( + + col0 ) FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT ALL - ( 13 ) * + - COUNT( * ) + - 24 + + + 63 AS col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL - ( 13 ) * + - COUNT ( * ) + - 24 + + + 63 AS col1 FROM tab1 AS cor0
----
78

query I rowsort
SELECT - + ( - col0 ) * + - col2 FROM tab0 AS cor0 WHERE col2 < - - col2 * + col0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2621
SELECT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) = + col0
----

skipif mysql # not compatible
query III rowsort label-2621
SELECT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) = + col0
----

query II rowsort
SELECT ALL - 68 AS col1, - 93 FROM tab1 cor0
----
-68
-93
-68
-93
-68
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT - - MAX( - col2 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2623
SELECT - - MAX ( - col2 ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2624
SELECT * FROM tab2 AS cor0 WHERE CAST( + col0 AS SIGNED ) * - 22 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2624
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col0 AS INTEGER ) * - 22 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col0 - 40 * col0 col2 FROM tab2 AS cor0
----
-1937
-2701
-3142

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT - - col0 DIV + 54 - + 38 AS col2 FROM tab1 cor0
----
-37
-37
-38

skipif mysql # not compatible
query I rowsort label-2626
SELECT - - col0 / + 54 - + 38 AS col2 FROM tab1 cor0
----
-37
-37
-38

query I rowsort
SELECT ALL + 48 - + col2 FROM tab0
----
-51
1
38

query I rowsort
SELECT - col2 - - - col2 + + col2 * + col1 FROM tab2
----
1127
3000
3770

query I rowsort
SELECT col2 + - - ( + 43 ) FROM tab2
----
101
66
83

query I rowsort
SELECT + col0 + - 79 - + + 80 FROM tab0
----
-144
-62
-72

query I rowsort
SELECT ( - + col0 ) + + - col2 + 19 AS col1 FROM tab2
----
-114
-50
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL - - MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - - MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( - col1 ) col2, - col2 * + 46 * col1 FROM tab2 AS cor0
----
51
-53958
67
-178756
77
-141680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 46 col0, 1 FROM tab0
----
46
1

query I rowsort
SELECT + col1 * + - col2 AS col2 FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 17 * - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + col2, + 68 FROM tab1 AS cor0
----
59
68
68
68
96
68

query II rowsort
SELECT DISTINCT 54 * + col0 + + + 12 AS col2, col2 AS col2 FROM tab2 AS cor0
----
2496
23
3468
40
4062
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL + + 50 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL + + 50 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-150

query I rowsort
SELECT + - 58 * - - col0 AS col0 FROM tab1 AS cor0
----
-2958
-4930
-5278

query II rowsort
SELECT DISTINCT + 28 AS col0, 28 FROM tab1 AS cor0
----
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT + 31 * ( - COUNT( * ) ) + - 40 + + 24 AS col1 FROM tab0 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-2642
SELECT + 31 * ( - COUNT ( * ) ) + - 40 + + 24 AS col1 FROM tab0 AS cor0
----
-109

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2643
SELECT ALL + + col2 col0, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2643
SELECT ALL + + col2 col0, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT DISTINCT + col1 DIV - + col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + col1 / - + col1 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT DISTINCT + 98 AS col1, col2 AS col0 FROM tab0 AS cor0
----
98
10
98
47
98
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 94 * - + col1 * - 98 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT - + MIN( DISTINCT - - ( 92 ) ) AS col2 FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-2647
SELECT - + MIN ( DISTINCT - - ( 92 ) ) AS col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT DISTINCT ( ( - - col2 ) ) FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - 93 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < col0 + - col0
----

query I rowsort
SELECT ALL col1 + - - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + + col0 * - 14 * - - col2 AS col2 FROM tab0 AS cor0
----
-12180
-134442
-9870

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - - col2 + + col0 + - col0 * 10 + - col1 + + 64 / + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 67 col1 FROM tab1 AS cor0
----
-3953
-4556
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT - - MAX( DISTINCT - 39 ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2655
SELECT - - MAX ( DISTINCT - 39 ) FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT - MAX( - col2 ) + + COUNT( - + 11 ) AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2656
SELECT - MAX ( - col2 ) + + COUNT ( - + 11 ) AS col1 FROM tab1
----
62

query I rowsort
SELECT DISTINCT + 82 + col1 FROM tab0
----
103
163
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT ALL - + col1 DIV col2 + + col2 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL - + col1 / col2 + + col2 FROM tab2 AS cor0
----
21
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2659
SELECT - col2 + + - CAST( - ( + ( col1 ) ) AS SIGNED ) AS col0, - 32 * - - col1 col0 FROM tab0 AS cor0
----
-98
-32
11
-672
34
-2592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2659
SELECT - col2 + + - CAST ( - ( + ( col1 ) ) AS INTEGER ) AS col0, - 32 * - - col1 col0 FROM tab0 AS cor0
----
-98
-32
11
-672
34
-2592

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT + 6 - - + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-2660
SELECT + 6 - - + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT DISTINCT + - col0 * + + col1 * + col0 * 65 + col0 DIV col2 DIV col0 * + - 72 AS col0 FROM tab1 AS cor0
----
-2348125
-2366910
-25298455

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT + - col0 * + + col1 * + col0 * 65 + col0 / col2 / col0 * + - 72 AS col0 FROM tab1 AS cor0
----
-2348125
-2366910
-25298455

query II rowsort
SELECT ALL 83 * - 95 * col2 - - col2 - col2 + + 75 AS col2, + 51 FROM tab1
----
-465140
51
-536105
51
-756885
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2663
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) = - CAST( NULL AS SIGNED ) + + 69
----

skipif mysql # not compatible
query III rowsort label-2663
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) = - CAST ( NULL AS INTEGER ) + + 69
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2664
SELECT SUM( + - col1 ), + COUNT( * ) AS col1 FROM tab2
----
-195
3

skipif mysql # not compatible
query II rowsort label-2664
SELECT SUM ( + - col1 ), + COUNT ( * ) AS col1 FROM tab2
----
-195
3

query II rowsort
SELECT DISTINCT - col2 AS col2, + 49 AS col1 FROM tab2
----
-23
49
-40
49
-58
49

query I rowsort
SELECT 3 - + + ( - 80 ) FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query II rowsort label-2667
SELECT DISTINCT 71 AS col1, - COUNT( * ) * + + 1 FROM tab1
----
71
-3

skipif mysql # not compatible
query II rowsort label-2667
SELECT DISTINCT 71 AS col1, - COUNT ( * ) * + + 1 FROM tab1
----
71
-3

query II rowsort
SELECT - col2 AS col1, - col2 * col2 + col0 * + col0 FROM tab0 AS cor0
----
-10
7469
-47
-1984
-99
-392

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2669
SELECT DISTINCT + COUNT( * ), COUNT( * ) DIV - 93 AS col1 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-2669
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) / - 93 AS col1 FROM tab2 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2670
SELECT + CAST( - 31 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-2670
SELECT + CAST ( - 31 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query II rowsort label-2671
SELECT + - col0 * - + col1 AS col2, + col2 DIV + col0 + + 96 FROM tab2 AS cor0
----
2346
96
4928
96
5025
96

skipif mysql # not compatible
query II rowsort label-2671
SELECT + - col0 * - + col1 AS col2, + col2 / + col0 + + 96 FROM tab2 AS cor0
----
2346
96
4928
96
5025
96

query I rowsort
SELECT DISTINCT + - col2 * + 58 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT 31 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 - - ( + + col0 ) / + col2 + + + 30 + - + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2675
SELECT ALL ( + col1 ) AS col1, col2 DIV - + col0 FROM tab1 AS cor0
----
14
-1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL ( + col1 ) AS col1, col2 / - + col0 FROM tab1 AS cor0
----
14
-1
47
0
5
0

query I rowsort
SELECT - + col2 FROM tab2 cor0 WHERE NOT NULL = col1 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT MIN( ALL - - col2 ) col1 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2677
SELECT MIN ( ALL - - col2 ) col1 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, + col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2679
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2679
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 * - - 27 AS col2 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT 27 * 79 FROM tab1
----
2133

query I rowsort
SELECT ALL + - 42 * + 29 FROM tab2 AS cor0
----
-1218
-1218
-1218

query I rowsort
SELECT - col0 * 6 FROM tab1
----
-306
-510
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT MAX( col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT MAX ( col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT 20 + 35 FROM tab0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL COUNT( DISTINCT + col2 ) FROM tab2 WHERE NOT ( 80 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL COUNT ( DISTINCT + col2 ) FROM tab2 WHERE NOT ( 80 ) NOT BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2687
SELECT CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2687
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + 45 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 22 - col1 * + 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 77 ) col0 FROM tab1
----
77

query III rowsort
SELECT * FROM tab0 WHERE 10 > col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 55 col0 FROM tab0
----
-4785
-5335
-825

query I rowsort
SELECT DISTINCT 69 * 67 FROM tab0
----
4623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT DISTINCT 81 DIV - SUM( DISTINCT + col2 * + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT 81 / - SUM ( DISTINCT + col2 * + col2 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 + + 25 * - col0 FROM tab2
----
-1201
-1677
-1942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2695
SELECT + MIN( ALL - col1 ) DIV 17 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2695
SELECT + MIN ( ALL - col1 ) / 17 FROM tab1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT DISTINCT + col1 + 87 DIV - ( - col0 * - col1 ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + col1 + 87 / - ( - col0 * - col1 ) FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2697
SELECT + MAX( ALL 78 ) DIV - COUNT( * ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-2697
SELECT + MAX ( ALL 78 ) / - COUNT ( * ) FROM tab0
----
-26

query III rowsort
SELECT * FROM tab2 WHERE NOT 41 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT + 98 DIV + col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 98 / + col0 FROM tab2
----
1
1
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - 97 * ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT ALL - COUNT( * ) * - MAX( col2 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2701
SELECT ALL - COUNT ( * ) * - MAX ( col2 ) FROM tab1
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT 18 + COUNT( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col1 )
----
18

skipif mysql # not compatible
query I rowsort label-2702
SELECT 18 + COUNT ( * ) AS col1 FROM tab2 WHERE NULL NOT IN ( + col1 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT - MAX( ALL col1 ) FROM tab1 WHERE NOT ( 7 ) + col2 IN ( col2 )
----
-47

skipif mysql # not compatible
query I rowsort label-2703
SELECT - MAX ( ALL col1 ) FROM tab1 WHERE NOT ( 7 ) + col2 IN ( col2 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT 92 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2704
SELECT 92 / - col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 37 BETWEEN - ( + col2 ) AND - col2
----

query I rowsort
SELECT 4 * - col2 FROM tab0
----
-188
-396
-40

query I rowsort
SELECT DISTINCT - 82 + + 35 FROM tab0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 46 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT + COUNT( * ) * + 12 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
36

skipif mysql # not compatible
query I rowsort label-2710
SELECT + COUNT ( * ) * + 12 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
36

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col1 + 57 BETWEEN + 47 + 18 * + col0 AND col0 - - 89 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL + ( - COUNT( col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL + ( - COUNT ( col2 ) ) FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 9 <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col1 FROM tab2 AS cor0
----
60

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT ALL - - ( 30 ) AS col2 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 57 * - 93 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 57 * - 93 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT - 13 - + ( - SUM( DISTINCT col2 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - 96 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 13 - + ( - SUM ( DISTINCT col2 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT - 96 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * 79 AS col2 FROM tab0 AS cor0
----
1659
6399
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT - col2 DIV - 3 FROM tab2 AS cor0
----
13
19
7

skipif mysql # not compatible
query I rowsort label-2723
SELECT - col2 / - 3 FROM tab2 AS cor0
----
13
19
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2724
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) NOT BETWEEN + col2 * - 27 + + col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2724
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) NOT BETWEEN + col2 * - 27 + + col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( - 62 ) AS col1 FROM tab0 AS cor0
----
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( col0 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN - ( - col0 ) AND - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT - - col1 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2728
SELECT - - col1 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL col1 + - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT 70 + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * - 47 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN ( NULL ) AND 0
----
-3807
-47
-987

query I rowsort
SELECT ALL col2 * 2 - col2 FROM tab0 WHERE ( - col2 ) - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT 63 + + col0 DIV 84 FROM tab0
----
63
64
64

skipif mysql # not compatible
query I rowsort label-2732
SELECT 63 + + col0 / 84 FROM tab0
----
63
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT MIN( ALL 97 ) FROM tab0 WHERE ( 74 ) IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-2733
SELECT MIN ( ALL 97 ) FROM tab0 WHERE ( 74 ) IS NOT NULL
----
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 3 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2736
SELECT * FROM tab0 WHERE - col0 - - col0 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2736
SELECT * FROM tab0 WHERE - col0 - - col0 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL 2 * - 81 + 0 * - ( COUNT( * ) ) AS col0 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL 2 * - 81 + 0 * - ( COUNT ( * ) ) AS col0 FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT DISTINCT + COUNT( * ) + + ( ( - 87 ) ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + COUNT ( * ) + + ( ( - 87 ) ) FROM tab1
----
-84

query I rowsort
SELECT ALL - 4 + col2 + col1 * + col1 FROM tab0
----
447
6604
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT MIN( 68 ) + 2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT MIN ( 68 ) + 2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT col0 - - 41 + - col0 + - col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT col0 - - 41 + - col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 7 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT - col1 * + + col1 + - col0 + col1 * + col1 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - ( col0 ) <= - col2
----
85
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2746
SELECT - - CAST( NULL AS SIGNED ) + - CAST( - + 50 AS DECIMAL ) - SUM( col2 ) * + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT - - CAST ( NULL AS INTEGER ) + - CAST ( - + 50 AS REAL ) - SUM ( col2 ) * + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL + MIN( - ( - + ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL + MIN ( - ( - + ( + col2 ) ) ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + col1 + - + 50 AS col2 FROM tab1 AS cor0
----
-3
-36
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT 65 + - col2 * - - CAST( NULL AS SIGNED ) / + col1 + 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT 65 + - col2 * - - CAST ( NULL AS INTEGER ) / + col1 + 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2750
SELECT - 87, + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
-87
NULL
-87
NULL
-87
NULL

skipif mysql # not compatible
query II rowsort label-2750
SELECT - 87, + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
-87
NULL
-87
NULL
-87
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT + ( - COUNT( * ) ) * + - 43 * + 56 FROM tab2 AS cor0
----
7224

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT + ( - COUNT ( * ) ) * + - 43 * + 56 FROM tab2 AS cor0
----
7224

query I rowsort
SELECT ALL + - 20 * + - col0 + col2 AS col0 FROM tab1 AS cor0
----
1116
1759
1888

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL + + CAST( NULL AS SIGNED ) - 22 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + + CAST ( NULL AS INTEGER ) - 22 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2756
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 / - 68 / + CAST( NULL AS SIGNED ) - - col2 ) AND col2 * + col2
----

skipif mysql # not compatible
query III rowsort label-2756
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col0 / - 68 / + CAST ( NULL AS INTEGER ) - - col2 ) AND col2 * + col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2758
SELECT * FROM tab2 WHERE NOT + CAST( col0 AS SIGNED ) * col1 + - 53 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2758
SELECT * FROM tab2 WHERE NOT + CAST ( col0 AS INTEGER ) * col1 + - 53 * col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * + 38 * + 33 * - col1 * col2 FROM tab1
----
-31444050
-364708344
-85954176

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 74 * col0 ) < ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL - 60 * - COUNT( * ) FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL - 60 * - COUNT ( * ) FROM tab2
----
180

query II rowsort
SELECT - col2 * + col1 AS col1, + 1 * 8 AS col0 FROM tab2
----
-1173
8
-3080
8
-3886
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + COUNT( * ) * + + 44 AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-2763
SELECT + COUNT ( * ) * + + 44 AS col1 FROM tab1
----
132

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + + col1 + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT - ( ( - col0 ) ) DIV + - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT - ( ( - col0 ) ) / + - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 32 * - - col2 AS col1 FROM tab2 AS cor0
----
1280
1856
736

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 88 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN 64 - + col2 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT CAST( + 63 AS SIGNED ) * ( 12 ) FROM tab2 AS cor0
----
756
756
756

skipif mysql # not compatible
query I rowsort label-2769
SELECT CAST ( + 63 AS INTEGER ) * ( 12 ) FROM tab2 AS cor0
----
756
756
756

query I rowsort
SELECT DISTINCT - + ( - 55 ) + + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2771
SELECT DISTINCT 2 DIV + 68 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT 2 / + 68 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
71

query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 + + col0 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
261
291
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2774
SELECT * FROM tab2 WHERE NOT NULL <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2774
SELECT * FROM tab2 WHERE NOT NULL <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL BETWEEN ( + - col1 * + col2 ) AND ( - col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT - - 29 NOT IN ( - - ( - 73 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * + ( + col0 ) * - + col0 FROM tab0 cor0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + ( 79 ) * 42 FROM tab2 AS cor0 WHERE NOT ( 25 ) NOT BETWEEN ( - col0 - - + col1 + - 51 + + col2 ) AND - 61 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2780
SELECT DISTINCT SUM( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2780
SELECT DISTINCT SUM ( - ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT DISTINCT + ( + + 74 ) * + col2 DIV - + col2 - col0 + col2 FROM tab0 AS cor0
----
-151
-42
-72

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT + ( + + 74 ) * + col2 / - + col2 - col0 + col2 FROM tab0 AS cor0
----
-151
-42
-72

query I rowsort
SELECT DISTINCT - col0 / + - col1 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2 AS col2, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 14 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 13 FROM tab2 WHERE NOT 84 / + - 6 IS NULL
----
13

query I rowsort
SELECT col0 * 71 FROM tab1 WHERE ( NULL <> - col2 * + 62 )
----

query II rowsort
SELECT DISTINCT col2, - col0 * - ( + col2 ) * - col0 AS col1 FROM tab0
----
10
-75690
47
-10575
99
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2788
SELECT * FROM tab2 WHERE + + CAST( NULL AS SIGNED ) * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2788
SELECT * FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - col1 * col1 * col1 FROM tab0
----
-7971615
-805707
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT ALL - CAST( NULL AS SIGNED ) * 1 * + + 61 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - CAST ( NULL AS INTEGER ) * 1 * + + 61 + col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2791
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT 30 * 2 + + - col1 * + col0 + - ( - 7 ) FROM tab1
----
-358
-4210
-647

query I rowsort
SELECT + 55 + - - col1 FROM tab0
----
136
56
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 - - col2 col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT - 87 + ( - + COUNT( * ) ) * + - 80 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-2795
SELECT - 87 + ( - + COUNT ( * ) ) * + - 80 FROM tab1
----
153

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND + 18
----

query I rowsort
SELECT DISTINCT - col0 - col1 * + 69 FROM tab0 AS cor0
----
-1536
-166
-5604

query I rowsort
SELECT - 35 * - 71 / - 48 FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN 75 AND ( + + col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL = ( + col0 * - col1 )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col2 / + + 33 * - 62 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT ALL 75 - - COUNT( * ) + - - COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL 75 - - COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
81

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 - 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 * + col2 * col2 / 61 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT DISTINCT COUNT( * ) * SUM( ALL + col2 ) * COUNT( DISTINCT - + col2 ) FROM tab1 cor0
----
2007

skipif mysql # not compatible
query I rowsort label-2805
SELECT DISTINCT COUNT ( * ) * SUM ( ALL + col2 ) * COUNT ( DISTINCT - + col2 ) FROM tab1 cor0
----
2007

onlyif mysql # DIV for integer division: 
query I rowsort label-2806
SELECT ALL - col2 * col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - col2 * col1 / col2 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + - 40 AS col1 FROM tab2 AS cor0
----
-40

query II rowsort
SELECT ( + col1 ) AS col1, 40 * + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
392040
21
4000
81
88360

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + MAX( - - 86 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-2809
SELECT + MAX ( - - 86 ) FROM tab1
----
86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 - - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT MIN( ALL - 49 ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT MIN ( ALL - 49 ) FROM tab0
----
-49

query II rowsort
SELECT ALL col0 AS col2, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT + COUNT( + - 44 ) * + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT + COUNT ( + - 44 ) * + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col0, col0 * col2 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL + COUNT( * ) * + 53 AS col2 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + COUNT ( * ) * + 53 AS col2 FROM tab1
----
159

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - col2 >= 34
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 37 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2818
SELECT - col1 DIV - - 27 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-2818
SELECT - col1 / - - 27 FROM tab2 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT + - 53 + - COUNT( * ) AS col1 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
-53

skipif mysql # not compatible
query I rowsort label-2819
SELECT + - 53 + - COUNT ( * ) AS col1 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
-53

query I rowsort
SELECT ( + ( col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL + - 87 + + + 32 * + ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-1559
-2135
-2487

query I rowsort
SELECT - + col2 + - col0 * - col2 * - col1 - + col0 AS col0 FROM tab0 AS cor0
----
-18367
-57167
-9799

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT ALL CAST( col0 AS SIGNED ) * - 93 + + + col0 AS col1 FROM tab0 AS cor0
----
-1380
-8004
-8924

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL CAST ( col0 AS INTEGER ) * - 93 + + + col0 AS col1 FROM tab0 AS cor0
----
-1380
-8004
-8924

query I rowsort
SELECT + + 14 + + 52 * + col0 FROM tab0 cor0
----
4538
5058
794

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT + - 99 + COUNT( * ) AS col2 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2826
SELECT + - 99 + COUNT ( * ) AS col2 FROM tab2 cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( col0 ) * + - col2 * + ( col0 ) / col2 * + - col1 )
----

query I rowsort
SELECT + col1 + + col1 * + - col2 * col2 FROM tab1 AS cor0
----
-129010
-17400
-217281

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - ( + - SUM( + 37 ) ) + + 78 AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2829
SELECT - ( + - SUM ( + 37 ) ) + + 78 AS col0 FROM tab0 AS cor0
----
189

query I rowsort
SELECT DISTINCT - col0 * + + ( + + ( col1 ) ) + 90 AS col0 FROM tab0 AS cor0
----
-1125
-1737
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2831
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ), 2 AS col1 FROM tab2 AS cor0
----
3
2

skipif mysql # not compatible
query II rowsort label-2831
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ), 2 AS col1 FROM tab2 AS cor0
----
3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL - SUM( DISTINCT + - 55 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - SUM ( DISTINCT + - 55 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
55

query I rowsort
SELECT + col1 + - 85 * - 33 FROM tab0
----
2806
2826
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + MIN( + 40 ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + MIN ( + 40 ) AS col0 FROM tab0
----
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2836
SELECT CAST( NULL AS SIGNED ) * + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2836
SELECT CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 17 BETWEEN ( - col1 ) AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 56 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2839
SELECT DISTINCT + + col1 AS col0, col2 DIV + + col0 AS col1 FROM tab1 AS cor0
----
14
1
47
0
5
0

skipif mysql # not compatible
query II rowsort label-2839
SELECT DISTINCT + + col1 AS col0, col2 / + + col0 AS col1 FROM tab1 AS cor0
----
14
1
47
0
5
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT + + ( + 40 ) FROM tab0 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT - - CAST( SUM( ALL + 86 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2842
SELECT - - CAST ( SUM ( ALL + 86 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT ALL - - CAST( MAX( + col0 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - - CAST ( MAX ( + col0 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT - MIN( - ( + 42 ) ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2844
SELECT - MIN ( - ( + 42 ) ) AS col0 FROM tab0 AS cor0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2845
SELECT DISTINCT - COUNT( * ) AS col0, - AVG ( ALL + col1 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2845
SELECT DISTINCT - COUNT ( * ) AS col0, - AVG ( ALL + col1 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + 95 * + col2 >= ( 60 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - + 13 AS col1, + 91 * + + col0 FROM tab0 AS cor0
----
-13
1365
-13
7917
-13
8827

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * - col2 - + 76 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT + col0 * - - col1 * col2 * - CAST( + 99 AS SIGNED ) col1 FROM tab0
----
-1808730
-5653395
-950697

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2849
SELECT + col0 * - - col1 * col2 * - CAST ( + 99 AS INTEGER ) col1 FROM tab0
----
-1808730
-5653395
-950697

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2850
SELECT DISTINCT - CAST( - - 43 AS DECIMAL ) AS col0 FROM tab1 WHERE 22 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT - CAST ( - - 43 AS REAL ) AS col0 FROM tab1 WHERE 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT ALL - 34 * - - MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
1972

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL - 34 * - - MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
1972

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2852
SELECT ALL col2 * + 21 AS col2, CAST( NULL AS SIGNED ) col2 FROM tab0
----
2079
NULL
210
NULL
987
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2852
SELECT ALL col2 * + 21 AS col2, CAST ( NULL AS INTEGER ) col2 FROM tab0
----
2079
NULL
210
NULL
987
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * col1 * + col2 + col2 + - 7 / - + col0 NOT BETWEEN ( NULL ) AND 58 * - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2854
SELECT ALL ( + 96 ) AS col1, + COUNT( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-2854
SELECT ALL ( + 96 ) AS col1, + COUNT ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
96
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL - ( - 21 ) * + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
105
294
987

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - ( - 21 ) * + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT - - MIN( DISTINCT 72 ) + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2856
SELECT - - MIN ( DISTINCT 72 ) + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT + 42 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2857
SELECT + 42 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + + col0 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT - COUNT( * ) + 7 AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT - COUNT ( * ) + 7 AS col1 FROM tab1 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * + - 15 NOT IN ( + 23, 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL 81 * col0 + 45 / + 64 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL 81 * col0 + 45 / + 64 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL > 97 )
----

query I rowsort
SELECT ALL col1 * - - 7 AS col0 FROM tab1
----
329
35
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2864
SELECT DISTINCT - COUNT( * ) DIV + 68, + COUNT( * ) AS col0 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-2864
SELECT DISTINCT - COUNT ( * ) / + 68, + COUNT ( * ) AS col0 FROM tab0
----
0
3

query I rowsort
SELECT ALL - col2 * + col2 * - + col0 AS col2 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND - col2 - + 75
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT ( + + col0 ) + + col2 + col2 * - 25 FROM tab1
----
-1331
-1541
-2253

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - + COUNT( * ) * - MAX( DISTINCT 2 ) + - COUNT( * ) FROM tab2 WHERE + 66 / - 63 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2869
SELECT - + COUNT ( * ) * - MAX ( DISTINCT 2 ) + - COUNT ( * ) FROM tab2 WHERE + 66 / - 63 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2870
SELECT DISTINCT CAST( col1 AS SIGNED ) + - - col2 AS col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - - col2 AS col1 FROM tab1
----
110
115
64

query I rowsort
SELECT ALL - col2 * + 74 FROM tab2
----
-1702
-2960
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL COUNT( * ) + + 22 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL COUNT ( * ) + + 22 FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2873
SELECT DISTINCT - SUM( ALL - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - SUM ( ALL - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( 70 ) * 27 + - 93 AS col0 FROM tab0 AS cor0
----
1797
1797
1797

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < 53
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE - + col2 > col1
----

query I rowsort
SELECT ALL col1 * - + col0 + - col0 + - col0 FROM tab1
----
-4459
-595
-816

query I rowsort
SELECT DISTINCT ( 50 ) FROM tab2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + ( + col2 ) + + col2 col1, 4 AS col2 FROM tab0
----
175
4
199
4
41
4

query I rowsort
SELECT ALL - 98 + + - col2 AS col2 FROM tab0 AS cor0
----
-108
-145
-197

query I rowsort
SELECT + + ( col1 ) * + + col0 AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT - 30 * + + 74 + - COUNT( * ) col2 FROM tab1 AS cor0
----
-2223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2882
SELECT - 30 * + + 74 + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-2223

query II rowsort
SELECT DISTINCT + 55 AS col0, col1 AS col2 FROM tab0 AS cor0
----
55
1
55
21
55
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * 76, + 27 col2 FROM tab0
----
3572
27
7524
27
760
27

query I rowsort
SELECT - - col2 * 39 + + col1 + + col0 FROM tab2 AS cor0
----
1701
2404
994

query II rowsort
SELECT - - 75 + + col2 + + + col1 * + - 41 * + + 5 AS col1, - 69 AS col2 FROM tab1 AS cor0
----
-2699
-69
-891
-69
-9492
-69

query I rowsort
SELECT ALL - + 94 + col2 FROM tab0 AS cor0
----
-47
-84
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2888
SELECT + 97 DIV + col1 + + + 99 AS col1, col2 * + col1 FROM tab2 AS cor0
----
100
1173
100
3080
100
3886

skipif mysql # not compatible
query II rowsort label-2888
SELECT + 97 / + col1 + + + 99 AS col1, col2 * + col1 FROM tab2 AS cor0
----
100
1173
100
3080
100
3886

query I rowsort
SELECT 73 + - 63 FROM tab1 AS cor0
----
10
10
10

query I rowsort
SELECT ALL ( col0 ) + + + col1 - 9 FROM tab2 AS cor0
----
132
133
88

query I rowsort
SELECT ( - 93 ) AS col0 FROM tab2 AS cor0 WHERE NULL > + col0
----

query I rowsort
SELECT - col0 * - - col0 + + col1 + - 87 AS col0 FROM tab2 AS cor0
----
-2152
-4106
-5645

query I rowsort
SELECT ALL + col0 * col0 * + 84 AS col2 FROM tab1 AS cor0
----
218484
606900
695604

query II rowsort
SELECT DISTINCT col1 * col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
441
21
6561
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) - - col1 col1 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 88 + - - 97 + + + col0 / + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL MIN( DISTINCT ( - col1 ) ) * 14 FROM tab2
----
-1078

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL MIN ( DISTINCT ( - col1 ) ) * 14 FROM tab2
----
-1078

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( col1 IS NOT NULL )
----
59
68
96

query I rowsort
SELECT ALL col2 * + - 26 FROM tab1
----
-1534
-1768
-2496

query I rowsort
SELECT - col0 * - ( + col2 ) - - 52 AS col1 FROM tab2
----
1110
2612
4402

query I rowsort
SELECT ALL - col2 + + col2 * + 86 * - + col0 AS col2 FROM tab2
----
-220200
-374158
-91011

query I rowsort
SELECT DISTINCT - - col2 * + - 87 * - col1 FROM tab0 AS cor0 WHERE ( + - col2 ) * + col1 * - col1 * - + col2 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 25 + + col2 AND NULL
----

query I rowsort
SELECT ( - + col2 ) FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - 84 AND NULL
----

query I rowsort
SELECT ALL 22 * + - 69 AS col2 FROM tab2 AS cor0
----
-1518
-1518
-1518

query I rowsort
SELECT DISTINCT + ( col0 ) * + - col1 * - col0 FROM tab1 AS cor0 WHERE + col0 - - + 0 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 / - 48 * - - col0 + + - 81 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL - 22 * + 7 FROM tab1 AS cor0
----
-154
-154
-154

query I rowsort
SELECT 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT + ( + - COUNT( * ) ) AS col1, 63 * + ( + + 13 ) FROM tab1
----
-3
819

skipif mysql # not compatible
query II rowsort label-2910
SELECT + ( + - COUNT ( * ) ) AS col1, 63 * + ( + + 13 ) FROM tab1
----
-3
819

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT + 58 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL - - 3 - - + 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query II rowsort label-2914
SELECT ALL + + COUNT( DISTINCT - + col0 ) AS col0, 22 FROM tab1 AS cor0
----
3
22

skipif mysql # not compatible
query II rowsort label-2914
SELECT ALL + + COUNT ( DISTINCT - + col0 ) AS col0, 22 FROM tab1 AS cor0
----
3
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT + SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL + COUNT( * ) * + + 7 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL + COUNT ( * ) * + + 7 FROM tab2 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL + 48 * - 8 + + col1 + - + 33 DIV col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-307
-317
-334

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2917
SELECT ALL + 48 * - 8 + + col1 + - + 33 / col2 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-307
-317
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL + - 57 * - - 80 + - - COUNT( * ) * SUM( ALL col2 ) FROM tab2 cor0
----
-4197

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + - 57 * - - 80 + - - COUNT ( * ) * SUM ( ALL col2 ) FROM tab2 cor0
----
-4197

query I rowsort
SELECT + 58 * + - ( + col1 ) FROM tab2 AS cor0
----
-2958
-3886
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - ( + COUNT( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - ( + COUNT ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT - MAX( + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT - MAX ( + col0 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col2 ) NOT BETWEEN ( - col2 * + 86 - col2 ) AND + ( ( + col0 ) )
----
51
67
77

query I rowsort
SELECT col1 * + - col0 FROM tab0 WHERE NOT + col0 + - ( col1 ) NOT IN ( + - 70 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT - MIN( + + ( ( + col1 ) ) ) AS col2 FROM tab0 WHERE NOT - 69 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT - MIN ( + + ( ( + col1 ) ) ) AS col2 FROM tab0 WHERE NOT - 69 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT 68 DIV + col2 AS col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT 68 / + col2 AS col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ( COUNT( * ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2926
SELECT ( COUNT ( * ) ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL col2 + + - col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - 79 * col2 * + col0 + - 30 col0 FROM tab1
----
23374885
33241906
37131234

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL < - - ( + 46 ) * - 42
----

query I rowsort
SELECT + - col0 + ( + 1 ) + + col1 AS col2 FROM tab1 AS cor0
----
-36
-43
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 - col0 / - col0 + + - 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT SUM( + 73 ) + + 80 AS col1 FROM tab0
----
299

skipif mysql # not compatible
query I rowsort label-2933
SELECT SUM ( + 73 ) + + 80 AS col1 FROM tab0
----
299

query I rowsort
SELECT ALL - 42 * 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 4702c495748777632703e415362eb8f6

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + col0 + + 58 AS col2 FROM tab2 AS cor0
----
104
122
133

query I rowsort
SELECT ALL col2 + - 52 FROM tab1 AS cor0
----
16
44
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + COUNT( * ) - + SUM( ALL + col0 ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-2938
SELECT + COUNT ( * ) - + SUM ( ALL + col0 ) FROM tab2 AS cor0
----
-182

query I rowsort
SELECT ALL col0 - + + col2 AS col2 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT - 69 - COUNT( + col0 ) FROM tab0 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2940
SELECT - 69 - COUNT ( + col0 ) FROM tab0 cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT DISTINCT - 29 * col0 - + - 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-2941
SELECT DISTINCT - 29 * col0 - + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT MIN( - 69 ) - + COUNT( * ) FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2942
SELECT MIN ( - 69 ) - + COUNT ( * ) FROM tab1 AS cor0
----
-72

query I rowsort
SELECT ALL - col1 * col1 * + 12 + + + 45 FROM tab1 AS cor0
----
-2307
-255
-26463

query I rowsort
SELECT 97 - - - col2 + + + col2 * col1 + - 34 AS col1 FROM tab2 AS cor0
----
1213
3103
3891

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT COUNT( * ) + - 69 AS col0 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2945
SELECT COUNT ( * ) + - 69 AS col0 FROM tab2
----
-66

query III rowsort
SELECT * FROM tab0 WHERE + 23 NOT BETWEEN + col2 / + col2 + - - 97 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + 42 NOT IN ( + - 41, col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 23 + + + col2 FROM tab2
----
1196
1599
1811

query II rowsort
SELECT col1 AS col1, col1 FROM tab2 WHERE NOT + 74 >= + - col1
----

query I rowsort
SELECT ALL - 78 * + 17 FROM tab2 cor0
----
-1326
-1326
-1326

query II rowsort
SELECT DISTINCT + - 23 * + - 34, - col2 * col0 * + 69 + + - 40 AS col2 FROM tab2 AS cor0
----
782
-176680
782
-300190
782
-73042

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 66 BETWEEN - col0 AND - col1 * ( - 94 )
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * 37 AS col2 FROM tab0 AS cor0
----
-2997
-37
-777

query II rowsort
SELECT ALL - col1, - col2 AS col0 FROM tab2
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT + COUNT( * ) * + 85 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2956
SELECT + COUNT ( * ) * + 85 FROM tab2 AS cor0
----
255

query I rowsort
SELECT DISTINCT - col1 * - - col2 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2958
SELECT ALL + + col2 DIV + + col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + + col2 / + + col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT + ( + COUNT( * ) ) DIV 20 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2959
SELECT + ( + COUNT ( * ) ) / 20 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 4 * - + 14 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * 29 col2 FROM tab0 cor0
----
2233
2233
2233

query I rowsort
SELECT - - 24 * - 24 + - 16 AS col2 FROM tab2 AS cor0
----
-592
-592
-592

query I rowsort
SELECT DISTINCT - ( - 52 ) AS col0 FROM tab1 AS cor0
----
52

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 AS cor0 WHERE 59 * - 91 IS NOT NULL
----
60

query I rowsort
SELECT + 40 + - - col2 FROM tab2
----
63
80
98

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN - - col0 AND 43
----

query I rowsort
SELECT DISTINCT col1 * - col1 + + + col0 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT 0 / - 2 + col0 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 + col1 AS col0 FROM tab0
----
-97
115
32

query III rowsort
SELECT * FROM tab2 WHERE ( - 85 ) + + 56 > col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2972
SELECT DISTINCT - 11 DIV COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - 11 / COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + ( + + 49 ) FROM tab2 cor0
----
49

query I rowsort
SELECT col0 + + + 92 - + - col0 AS col1 FROM tab2
----
184
220
242

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2975
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL COUNT( ALL col0 ) FROM tab1 AS cor0 WHERE NOT 69 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL COUNT ( ALL col0 ) FROM tab1 AS cor0 WHERE NOT 69 IS NOT NULL
----
0

query I rowsort
SELECT + 48 + + - col0 AS col0 FROM tab1 AS cor0
----
-3
-37
-43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - col2 / - - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT - col2 + - + col1 DIV + + col2 * 89 AS col0 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2979
SELECT - col2 + - + col1 / + + col2 * 89 AS col0 FROM tab1 cor0
----
-59
-68
-96

query II rowsort
SELECT ALL + col0 - col0 + + col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT ALL 64 + + 46 + - 37 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 26 - - 97 - 91, + ( + + 26 ) - + CAST( NULL AS SIGNED ), - 70 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL 64 + + 46 + - 37 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 26 - - 97 - 91, + ( + + 26 ) - + CAST ( NULL AS INTEGER ), - 70 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL ( col1 ) - col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT MIN( - + col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2984
SELECT MIN ( - + col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT + col1 * + col0 FROM tab1 WHERE NULL IS NULL
----
425
4277
714

query I rowsort
SELECT - ( 69 ) FROM tab2
----
-69
-69
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2987
SELECT - 51 DIV COUNT( * ) FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-2987
SELECT - 51 / COUNT ( * ) FROM tab2
----
-17

query II rowsort
SELECT DISTINCT 66 AS col2, + 81 AS col1 FROM tab0
----
66
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2989
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 52 * + col0 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT ALL - col0 * + 53 * col1 + - + col1 * + col0 * - 23 AS col1 FROM tab2 AS cor0
----
-147840
-150750
-70380

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT + - 18 * - MAX( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
846

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + - 18 * - MAX ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
846

onlyif mysql # DIV for integer division: 
query I rowsort label-2993
SELECT ALL + + col2 * 57 + ( - - col2 ) DIV - 5 + + col2 AS col0 FROM tab2 AS cor0
----
1330
2312
3353

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + + col2 * 57 + ( - - col2 ) / - 5 + + col2 AS col0 FROM tab2 AS cor0
----
1330
2312
3353

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT DISTINCT + 27 DIV - col0 * - 37 + 65 AS col2 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + 27 / - col0 * - 37 + 65 AS col2 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT DISTINCT + + MIN( + col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT + + MIN ( + col1 ) AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT - 10 * + - col1 FROM tab1 AS cor0
----
140
470
50

query I rowsort
SELECT ALL - col1 + + 75 FROM tab0
----
-6
54
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - SUM( ALL col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2998
SELECT - SUM ( ALL col1 ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 65 * - ( col0 )
----

query I rowsort
SELECT - col2 * - col0 * + 87 AS col0 FROM tab0
----
61335
75690
835461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col1 AS col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL - 63 + + ( - - CAST( NULL AS SIGNED ) ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - 63 + + ( - - CAST ( NULL AS INTEGER ) ) * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - ( - 48 ) AS col1 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT + 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3006
SELECT - 52 AS col0, MIN( DISTINCT + - 14 ) AS col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-3006
SELECT - 52 AS col0, MIN ( DISTINCT + - 14 ) AS col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
-52
NULL

query I rowsort
SELECT - col2 AS col0 FROM tab1 cor0 WHERE + col2 IN ( 90 * + + ( - col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 26 <> 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - ( - SUM( ALL col1 ) ) FROM tab0 AS cor0 WHERE NOT + 26 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT - ( - SUM ( ALL col1 ) ) FROM tab0 AS cor0 WHERE NOT + 26 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT DISTINCT + MAX( DISTINCT - - col1 ) DIV - - COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + MAX ( DISTINCT - - col1 ) / - - COUNT ( * ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN + col1 * + 2 AND col0
----
51
14
96
85
5
59

query I rowsort
SELECT + ( + 10 ) FROM tab0 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, 78 + + + 38 + col0 * + col2 col2 FROM tab1
----
14
5012
47
6304
5
5131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3014
SELECT DISTINCT - + col0 * CAST( col1 AS SIGNED ) + col2 * - col0 AS col1 FROM tab2 WHERE NOT + col2 <> - col0 + - - 36 + + col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT - + col0 * CAST ( col1 AS INTEGER ) + col2 * - col0 AS col1 FROM tab2 WHERE NOT + col2 <> - col0 + - - 36 + + col2 + + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - ( - ( - 4 ) ) AS col1, + ( - 14 ) FROM tab1
----
-4
-14
-4
-14
-4
-14

query I rowsort
SELECT + - col1 + - col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT + COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3017
SELECT + COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 59 + - + 45 = + 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT - ( 61 ) * col1 - + col1 * - CAST( col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
1820
198152
9142

skipif mysql # not compatible
query I rowsort label-3019
SELECT - ( 61 ) * col1 - + col1 * - CAST ( col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
1820
198152
9142

query I rowsort
SELECT ALL + col0 FROM tab2 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - COUNT( - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3021
SELECT - COUNT ( - col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT ALL - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT 5 * - col0 - + col0 <> NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT 18, + col2 * - col2 AS col0 FROM tab0
----
18
-100
18
-2209
18
-9801

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3028
SELECT DISTINCT 1 AS col0, - CAST( col0 AS SIGNED ) * - col2 col2 FROM tab2 AS cor0
----
1
1058
1
2560
1
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3028
SELECT DISTINCT 1 AS col0, - CAST ( col0 AS INTEGER ) * - col2 col2 FROM tab2 AS cor0
----
1
1058
1
2560
1
4350

query I rowsort
SELECT DISTINCT + + ( + ( + col1 ) ) + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + col2 * - col0 + + 51 AS col2 FROM tab0 AS cor0
----
-654
-819
-9552

query II rowsort
SELECT - + 8 * - col0 * 60 + + - col0 AS col1, col0 FROM tab0 AS cor0
----
41673
87
46463
97
7185
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + col1 / 35 + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 + + col2 col2 FROM tab2 AS cor0
----
109
74
91

query I rowsort
SELECT + 76 + - - 54 - + col1 + col2 * - col2 FROM tab1 AS cor0
----
-3356
-4541
-9100

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT - 29 * + COUNT( * ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT - 29 * + COUNT ( * ) FROM tab2
----
-87

query I rowsort
SELECT ALL - 85 * col0 AS col1 FROM tab2
----
-3910
-5440
-6375

query I rowsort
SELECT DISTINCT - col2 * - 48 FROM tab1
----
2832
3264
4608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3038
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3040
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) / + + col2 = NULL )
----

skipif mysql # not compatible
query III rowsort label-3040
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) / + + col2 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL 87 * + 94 + - COUNT( * ) FROM tab0
----
8175

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL 87 * + 94 + - COUNT ( * ) FROM tab0
----
8175

query I rowsort
SELECT 58 + + + 70 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6a9ed45ca8e49cad3cefcf18e4d680fe

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL + 61 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL + 61 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, - 89 col1 FROM tab1 AS cor0
----
-51
-89
-85
-89
-91
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + 1
----

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT COUNT( * ) * MIN( ALL + col1 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3048
SELECT COUNT ( * ) * MIN ( ALL + col1 ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT + 71 * + + ( + COUNT( * ) ) FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-3049
SELECT + 71 * + + ( + COUNT ( * ) ) FROM tab1
----
213

query I rowsort
SELECT col0 * - + 82 AS col0 FROM tab1
----
-4182
-6970
-7462

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 < + col1
----
97
1
99

query I rowsort
SELECT + 44 + - col2 FROM tab0
----
-3
-55
34

query I rowsort
SELECT ALL ( + 36 ) FROM tab1
----
36
36
36

query I rowsort
SELECT - 77 + col2 FROM tab1
----
-18
-9
19

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT 18 - 7 BETWEEN NULL AND + + col0 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT - col2 + + - CAST( NULL AS SIGNED ) + - 55 + + - 62 * - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT - col2 + + - CAST ( NULL AS INTEGER ) + - 55 + + - 62 * - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2 * - col0 * + col2, col0 )
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * - 93 AS col0 FROM tab1 AS cor0
----
-4743
-7905
-8463

query I rowsort
SELECT ALL 11 * 49 AS col1 FROM tab0
----
539
539
539

query I rowsort
SELECT ALL - col2 + - col2 AS col0 FROM tab0 WHERE NOT 96 - + + 76 NOT IN ( + col1, col1 * - 74 / col1 * - + col2 )
----

query I rowsort
SELECT DISTINCT + 94 + + + 32 + - col1 FROM tab1
----
112
121
79

query I rowsort
SELECT ( + col1 ) + 67 FROM tab0
----
148
68
88

query I rowsort
SELECT 55 * col1 * - 37 + - col1 FROM tab2
----
-103836
-136412
-156772

query I rowsort
SELECT DISTINCT col2 * - col1 * col2 * 57 * - col0 + - - ( + 62 ) + + - col2 FROM tab1
----
1127280330
375072734
84327228

query I rowsort
SELECT col1 * - col0 + col1 * + col1 + - + col0 * + - col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT ALL - 71 + - 32 FROM tab1 AS cor0 WHERE NOT + col0 * - - 81 IS NOT NULL OR + col2 IS NULL
----

query I rowsort
SELECT ALL col1 * + 62 + 80 AS col0 FROM tab2 AS cor0
----
3242
4234
4854

onlyif mysql # DIV for integer division: 
query I rowsort label-3070
SELECT DISTINCT col2 DIV - 40 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT col2 / - 40 FROM tab2
----
-1
0

query I rowsort
SELECT 21 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + 27 FROM tab2 AS cor0
----
-1377
-1809
-2079

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3073
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3073
SELECT DISTINCT * FROM tab0 cor0 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE ( 22 ) <= NULL
----

query II rowsort
SELECT DISTINCT 95 AS col1, - 73 + - 34 AS col1 FROM tab2
----
95
-107

query I rowsort
SELECT DISTINCT - col2 * + 18 AS col1 FROM tab2
----
-1044
-414
-720

query I rowsort
SELECT DISTINCT - 34 * - + col0 FROM tab2
----
1564
2176
2550

query II rowsort
SELECT ALL + col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST( - - ( + col1 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( - - ( + col1 ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + col1 ) * - 70 col2, - ( + 45 ) AS col1 FROM tab1 AS cor0
----
3290
-45
350
-45
980
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST( 41 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( 41 AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT 58 * 40 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 49ad53f50ec679f56369d26e9ab56579

query I rowsort
SELECT ALL 74 + col1 FROM tab1
----
121
79
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT DISTINCT col2 + col1 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT col2 + col1 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + 70 + + col0, col1 FROM tab0 AS cor0
----
157
21
167
1
85
81

query I rowsort
SELECT DISTINCT + + 47 AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - ( - 24 ) + - - col1 AS col1 FROM tab1 AS cor0
----
29
38
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + + SUM( - col0 ) * COUNT( * ) + - COUNT( * ) + + MIN( ALL - - col1 ) FROM tab0 AS cor0
----
-599

skipif mysql # not compatible
query I rowsort label-3088
SELECT + + SUM ( - col0 ) * COUNT ( * ) + - COUNT ( * ) + + MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
-599

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND + col2 + 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3090
SELECT + 71 + 29 DIV 74 FROM tab2 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-3090
SELECT + 71 + 29 / 74 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT ALL + col0 - - + col0 + + 36 AS col2 FROM tab0 AS cor0
----
210
230
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + ( - col0 ) - - - col2 BETWEEN - col2 AND + col1 OR NOT - col0 - + 4 IS NOT NULL
----

query II rowsort
SELECT + col0 + + col1, col1 AS col0 FROM tab0 AS cor0
----
108
21
96
81
98
1

query I rowsort
SELECT - + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - col1 ) FROM tab0 WHERE + ( + col1 ) IS NOT NULL
----
1
21
81

query II rowsort
SELECT - col0, - col0 + + 33 AS col1 FROM tab2
----
-46
-13
-64
-31
-75
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT COUNT( * ) * 80 * COUNT( * ) AS col1 FROM tab1
----
720

skipif mysql # not compatible
query I rowsort label-3097
SELECT COUNT ( * ) * 80 * COUNT ( * ) AS col1 FROM tab1
----
720

query I rowsort
SELECT ALL 94 + + col1 * + 64 FROM tab1
----
3102
414
990

query I rowsort
SELECT + 3 - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT ALL - + ( + col2 ) - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3101
SELECT DISTINCT - CAST( 32 AS SIGNED ) AS col0 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT - CAST ( 32 AS INTEGER ) AS col0 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3102
SELECT 14 * + COUNT( * ), - COUNT( * ) AS col1 FROM tab1
----
42
-3

skipif mysql # not compatible
query II rowsort label-3102
SELECT 14 * + COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1
----
42
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT COUNT( DISTINCT + 31 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3103
SELECT COUNT ( DISTINCT + 31 ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3104
SELECT CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) * - COUNT( * ) * - ( COUNT( * ) ) FROM tab2 AS cor0
----
NULL
27

skipif mysql # not compatible
query II rowsort label-3104
SELECT CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) * - COUNT ( * ) * - ( COUNT ( * ) ) FROM tab2 AS cor0
----
NULL
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT - + CAST( - + col0 AS SIGNED ) * - + col1 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3105
SELECT - + CAST ( - + col0 AS INTEGER ) * - + col1 FROM tab0 cor0
----
-1215
-1827
-97

query I rowsort
SELECT - col0 * - 50 - - 62 AS col1 FROM tab1 AS cor0
----
2612
4312
4612

query I rowsort
SELECT + ( 89 ) FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT - 59 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT ALL - 49 + 33 * - COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + + 59 ) AND - CAST( - col0 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - 49 + 33 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + + 59 ) AND - CAST ( - col0 AS INTEGER )
----
-49

query I rowsort
SELECT ALL - col0 * - 14 * col0 FROM tab1
----
101150
115934
36414

query III rowsort
SELECT ALL * FROM tab2 WHERE + 49 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT - COUNT( ( - col1 ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3112
SELECT - COUNT ( ( - col1 ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3113
SELECT DISTINCT ( COUNT( * ) ), + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3113
SELECT DISTINCT ( COUNT ( * ) ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

query I rowsort
SELECT DISTINCT 11 + - + 62 FROM tab2, tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col1 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT + - ( 82 ) * col2 FROM tab1 AS cor0
----
-4838
-5576
-7872

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= 4 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 + - + 53 + 55 AS col2, col2 FROM tab1
----
-12
96
-3
59
-45
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT + 64 + + col1 + + col0 + - col1 + - ( - 79 ) + + + col0 * - ( + col0 ) AS col0, ( + ( - col1 ) ) * 30 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-1927
NULL
-3889
NULL
-5407
NULL

skipif mysql # not compatible
query II rowsort label-3119
SELECT + 64 + + col1 + + col0 + - col1 + - ( - 79 ) + + + col0 * - ( + col0 ) AS col0, ( + ( - col1 ) ) * 30 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1927
NULL
-3889
NULL
-5407
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL - COUNT( * ) + + + 39 AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL - COUNT ( * ) + + + 39 AS col1 FROM tab2
----
36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 - col0 * - 89 + - 93 col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT - - 40 - - - CAST( NULL AS SIGNED ) + - SUM( - + ( + col1 ) ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT - - 40 - - - CAST ( NULL AS INTEGER ) + - SUM ( - + ( + col1 ) ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT + 23 + + col2 + - col1 - + + col1 * + + col0, col0 - - + 29 FROM tab2 cor0 WHERE 30 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT + SUM( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT + SUM ( ALL + + col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT - 4 / - 79 + - 38 / col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT - 4 / - 79 + - 38 / col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3129
SELECT COUNT( * ) + - + 89, + COUNT( * ) AS col0 FROM tab1
----
-86
3

skipif mysql # not compatible
query II rowsort label-3129
SELECT COUNT ( * ) + - + 89, + COUNT ( * ) AS col0 FROM tab1
----
-86
3

query I rowsort
SELECT DISTINCT - col1 * - col0 FROM tab0 WHERE NOT col2 IS NULL
----
1215
1827
97

query I rowsort
SELECT col0 * + 51 + + 73 FROM tab0
----
4510
5020
838

onlyif mysql # DIV for integer division: 
query I rowsort label-3132
SELECT + ( 23 ) DIV - + col0 + - - col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3132
SELECT + ( 23 ) / - + col0 + - - col1 AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + 73 + 67
----

query I rowsort
SELECT ALL + col1 + + - col0 AS col1 FROM tab0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * + - col0 * + 32 NOT BETWEEN - 73 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3136
SELECT ALL + CAST( NULL AS SIGNED ) * + - 90 col2, - col0 * col2 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3136
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 90 col2, - col0 * col2 FROM tab2 AS cor0
----
NULL
-1058
NULL
-2560
NULL
-4350

query I rowsort
SELECT ALL + AVG ( - + col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col1 FROM tab2
----
51

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 39 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT 83 * col1 FROM tab2
----
4233
5561
6391

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT DISTINCT - 20 DIV + 90 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - 20 / + 90 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col0 ) <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT + + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query II rowsort
SELECT col1 AS col1, ( + col0 ) FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT + - col1, col0 + 19 AS col0 FROM tab0 AS cor0
----
-1
116
-21
106
-81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 22 + - + 2 FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 < - col0
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 < - col0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL COUNT( ALL - + col2 ) * - - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL COUNT ( ALL - + col2 ) * - - COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 + + ( + 82 ) IS NULL
----

query I rowsort
SELECT DISTINCT 47 * + 53 FROM tab1
----
2491

query I rowsort
SELECT DISTINCT - - 67 + + col0 FROM tab0 AS cor0
----
154
164
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 76 + - 59 - - col1 col0 FROM tab2 AS cor0
----
68
84
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT DISTINCT - + 56 col0, COUNT( * ) FROM tab1 AS cor0
----
-56
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3157
SELECT DISTINCT - + 56 col0, COUNT ( * ) FROM tab1 AS cor0
----
-56
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3158
SELECT 11 DIV - 83 + - - 99 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-3158
SELECT 11 / - 83 + - - 99 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query II rowsort label-3159
SELECT ALL - 0 col0, col1 DIV - 26 FROM tab0 AS cor0
----
0
-3
0
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3159
SELECT ALL - 0 col0, col1 / - 26 FROM tab0 AS cor0
----
0
-3
0
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN - col1 * + - col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT - MIN( DISTINCT 50 ) - + + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-149

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT - MIN ( DISTINCT 50 ) - + + 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3162
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - col2 BETWEEN - 91 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3162
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - col2 BETWEEN - 91 AND NULL
----

query I rowsort
SELECT ALL + col2 + - col2 * + col1 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT - col2 + - - col0 * - - col1 + - 9 AS col1 FROM tab0
----
-11
1159
1808

query I rowsort
SELECT + col1 + + ( + - 29 ) FROM tab1
----
-15
-24
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 44 col0 FROM tab2 AS cor0
----
-111
-121
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - + col1 - col0 + col0 col0 FROM tab1 AS cor0 WHERE col1 BETWEEN ( col2 ) AND + + col0 - + - 68 + col1 + + + ( - 30 ) * - ( + - col0 )
----

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL - col0 + + - 62 AS col2 FROM tab1 AS cor0
----
-113
-147
-153

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3170
SELECT ALL - col2 FROM tab0 AS cor0 WHERE CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - col2 FROM tab0 AS cor0 WHERE CAST ( - col2 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT - + COUNT( * ) + - 34 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3171
SELECT - + COUNT ( * ) + - 34 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT ALL - col2 - + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < - + ( - - 71 ) + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT - - ( + - CAST( + - col1 AS SIGNED ) ) - col1 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - - ( + - CAST ( + - col1 AS INTEGER ) ) - col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 72 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + col1 * - col1 * col2 * - col1 FROM tab0
----
24977727
92610
99

query I rowsort
SELECT ALL - 11 * col0 AS col1 FROM tab1
----
-1001
-561
-935

onlyif mysql # DIV for integer division: 
query I rowsort label-3178
SELECT DISTINCT - 6 DIV + + col0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - 6 / + + col0 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - MIN( + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3179
SELECT - MIN ( + col0 ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + col2 - 42 - + col2 * col2 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 35 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col0 + - 41 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( + col2 ) AND - col0 / 67
----

query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 + + col2 ) AND + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - COUNT( * ) FROM tab0 WHERE NOT col2 NOT BETWEEN + col2 * + col2 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-3187
SELECT - COUNT ( * ) FROM tab0 WHERE NOT col2 NOT BETWEEN + col2 * + col2 AND + col1
----
0

query I rowsort
SELECT 47 FROM tab1 WHERE NULL BETWEEN + 35 * - col0 AND 89
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( col0 - - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT DISTINCT + col0 DIV col0 - 20 DIV col2 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT + col0 / col0 - 20 / col2 AS col0 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - 31 IS NULL
----

query I rowsort
SELECT 54 FROM tab2 WHERE col2 * - col1 IS NOT NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT ALL MIN( ALL - col0 ) * COUNT( + 37 ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL MIN ( ALL - col0 ) * COUNT ( + 37 ) AS col1 FROM tab1
----
-273

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 86 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT ALL - MAX( DISTINCT 12 ) AS col1 FROM tab0 WHERE - CAST( 65 AS SIGNED ) = ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - MAX ( DISTINCT 12 ) AS col1 FROM tab0 WHERE - CAST ( 65 AS INTEGER ) = ( CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - COUNT( ALL 40 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - COUNT ( ALL 40 ) FROM tab2
----
-3

query I rowsort
SELECT col2 * + col0 + - 6 * - col0 FROM tab2
----
1334
2944
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - COUNT( ALL + ( col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3199
SELECT - COUNT ( ALL + ( col2 ) ) FROM tab1
----
-3

query I rowsort
SELECT - ( - 69 ) FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT 75 + ( - COUNT( * ) ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT 75 + ( - COUNT ( * ) ) FROM tab0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 63 col1 FROM tab0
----
-16
-53
36

query I rowsort
SELECT ALL - 79 * col0 - col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1200
-6960
-7760

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 + col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT - MAX( DISTINCT - 21 ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT - MAX ( DISTINCT - 21 ) FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL - SUM( DISTINCT 18 ) * - COUNT( DISTINCT - col2 + - col2 * col2 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - SUM ( DISTINCT 18 ) * - COUNT ( DISTINCT - col2 + - col2 * col2 ) AS col1 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE 76 * col0 BETWEEN col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - MIN( 6 ) * 89 FROM tab0
----
-534

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - MIN ( 6 ) * 89 FROM tab0
----
-534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT 21 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL <= 24
----

skipif mysql # not compatible
query I rowsort label-3210
SELECT 21 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL <= 24
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = 57 - - 49
----

query I rowsort
SELECT DISTINCT + col1 + 65 AS col1 FROM tab1 WHERE + col1 <= NULL
----

query I rowsort
SELECT + col1 + + ( - 81 ) * col0 AS col0 FROM tab0
----
-1134
-7026
-7856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT ALL + COUNT( * ) + + CAST( 3 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL + COUNT ( * ) + + CAST ( 3 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT col0 * col1 FROM tab1 cor0 WHERE + 38 + col0 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT ALL + col0 * col0 + col2 * 80 AS col1 FROM tab0 AS cor0
----
17329
3985
8369

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - ( - 17 ) AND 19
----

query I rowsort
SELECT ALL 37 AS col0 FROM tab1 cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT - SUM( 10 ) + - MIN( ALL 26 + 64 ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3219
SELECT - SUM ( 10 ) + - MIN ( ALL 26 + 64 ) FROM tab2 AS cor0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT 38 + - SUM( col2 ) FROM tab0 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-3220
SELECT 38 + - SUM ( col2 ) FROM tab0 AS cor0
----
-118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3221
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT 37 <= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3222
SELECT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT 37 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT CAST( 10 AS SIGNED ) * col0 FROM tab2
----
460
640
750

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT CAST ( 10 AS INTEGER ) * col0 FROM tab2
----
460
640
750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE NOT - 76 + CAST( NULL AS SIGNED ) / col1 IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 76 + CAST ( NULL AS INTEGER ) / col1 IN ( + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + col2 * + col0 BETWEEN ( NULL ) AND 65 * + col0
----

query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - 68 ) + col1 AS col1 FROM tab2 cor0
----
119
135
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL + col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( 86 ) * col1 - - col2 * col0 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE + col1 <> ( col0 + + col0 )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 * + col2 + 0 col2 FROM tab1 AS cor0
----
-5723
-6596
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT col1 - - CAST( - ( + 60 ) + + 26 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-13
-33
47

skipif mysql # not compatible
query I rowsort label-3232
SELECT col1 - - CAST ( - ( + 60 ) + + 26 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-13
-33
47

query I rowsort
SELECT DISTINCT - col0 - + 96 * - col0 AS col0 FROM tab0 AS cor0
----
1425
8265
9215

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 - - 66 * col1 FROM tab2 AS cor0
----
3412
4497
5146

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 = 48 * - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < 50 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3238
SELECT * FROM tab1 WHERE NOT CAST( 32 AS SIGNED ) NOT BETWEEN NULL AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-3238
SELECT * FROM tab1 WHERE NOT CAST ( 32 AS INTEGER ) NOT BETWEEN NULL AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col1 FROM tab1
----
-22
-22
-22

query I rowsort
SELECT ALL - 78 * + col0 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT 74 * + - MAX( ALL - col2 ) FROM tab2
----
1702

skipif mysql # not compatible
query I rowsort label-3241
SELECT 74 * + - MAX ( ALL - col2 ) FROM tab2
----
1702

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT ALL COUNT( * ) DIV - 79 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL COUNT ( * ) / - 79 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3245
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IN ( + 37 )
----

skipif mysql # not compatible
query III rowsort label-3245
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IN ( + 37 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 17 / - ( + 54 * + col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 22 + 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 21 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - + col2 + col0 AND ( ( col2 ) )
----

query I rowsort
SELECT DISTINCT + 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
52

query I rowsort
SELECT DISTINCT - col2 * + 27 + 52 FROM tab2 AS cor0
----
-1028
-1514
-569

query I rowsort
SELECT ALL + ( + 55 ) AS col2 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT + + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 + + + col2 col1 FROM tab0 AS cor0
----
-14
-51
38

query I rowsort
SELECT + - col2 + + - col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT DISTINCT COUNT( - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT COUNT ( - - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE - 75 < NULL
----

query I rowsort
SELECT + col1 + - + col2 * + + 64 AS col0 FROM tab2 AS cor0
----
-1421
-2483
-3645

query I rowsort
SELECT ALL 1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT MIN( ALL - col2 ) + 5 AS col0 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-3261
SELECT MIN ( ALL - col2 ) + 5 AS col0 FROM tab2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL MIN( DISTINCT - - col1 ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT ALL MIN ( DISTINCT - - col1 ) col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE col0 * - ( col2 ) * - 44 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + col0 + + col2 * + col1 = 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3265
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) - - - col2 = + 91
----

skipif mysql # not compatible
query III rowsort label-3265
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) - - - col2 = + 91
----

query I rowsort
SELECT ALL col1 * + col1 + 87 FROM tab1
----
112
2296
283

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT SUM( - col1 ) * + - MIN( col2 ) FROM tab2 AS cor0
----
4485

skipif mysql # not compatible
query I rowsort label-3267
SELECT SUM ( - col1 ) * + - MIN ( col2 ) FROM tab2 AS cor0
----
4485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT - - col1 * col0 AS col1 FROM tab2 AS cor0 WHERE NULL >= col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3268
SELECT - - col1 * col0 AS col1 FROM tab2 AS cor0 WHERE NULL >= col1 + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN + - col0 AND + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT - MAX( 4 ) + + COUNT( * ), MIN( DISTINCT + 32 ) - + COUNT( DISTINCT - ( col0 ) ) AS col1 FROM tab0
----
-1
29

skipif mysql # not compatible
query II rowsort label-3270
SELECT - MAX ( 4 ) + + COUNT ( * ), MIN ( DISTINCT + 32 ) - + COUNT ( DISTINCT - ( col0 ) ) AS col1 FROM tab0
----
-1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE col0 + + + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3271
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE col0 + + + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT DISTINCT SUM( DISTINCT + 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
56

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT SUM ( DISTINCT + 56 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab1 cor0 WHERE NOT ( + col0 + - - col0 ) IN ( + col2 )
----
-27

query I rowsort
SELECT ALL + col2 * col1 + + - col2 + + 76 AS col1 FROM tab1 AS cor0
----
1324
312
3204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 53 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + col2 * CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3276
SELECT + col2 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT - SUM( + 37 ) FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-3277
SELECT - SUM ( + 37 ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT ALL - 38 * + col0 * col0 * + - col2 * col2 FROM tab2 AS cor0
----
249036800
42535832
719055000

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - COUNT( + col0 ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3279
SELECT - COUNT ( + col0 ) col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 7 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 54 / + 65 AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + + + col1 * + + 15 IN ( - col0 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3282
SELECT ALL + COUNT( * ) DIV + + COUNT( * ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT DISTINCT COUNT( ALL + 8 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT COUNT ( ALL + 8 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT DISTINCT - 18 * + SUM( + + col0 ) AS col2 FROM tab0
----
-3582

skipif mysql # not compatible
query I rowsort label-3284
SELECT DISTINCT - 18 * + SUM ( + + col0 ) AS col2 FROM tab0
----
-3582

query I rowsort
SELECT 2 * + col2 AS col0 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3286
SELECT DISTINCT * FROM tab1 WHERE - 83 + CAST( + + col1 AS SIGNED ) < + ( + 32 ) + col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3286
SELECT DISTINCT * FROM tab1 WHERE - 83 + CAST ( + + col1 AS INTEGER ) < + ( + 32 ) + col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 54 AS col1, + ( + - ( - - col0 ) ) AS col0 FROM tab0
----
-54
-15
-54
-87
-54
-97

query II rowsort
SELECT ALL + col0, + 3 AS col1 FROM tab1
----
51
3
85
3
91
3

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT NULL <> - col1 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * + col1 col2 FROM tab0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3291
SELECT DISTINCT SUM( ALL + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT SUM ( ALL + col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + col1 * - ( + 48 ) AS col1 FROM tab2
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3293
SELECT - 5 DIV + MIN( + 18 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3293
SELECT - 5 / + MIN ( + 18 ) AS col2 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3294
SELECT ALL - col1 AS col2, - col1 DIV + + ( 42 ) col0 FROM tab2
----
-51
-1
-67
-1
-77
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3294
SELECT ALL - col1 AS col2, - col1 / + + ( 42 ) col0 FROM tab2
----
-51
-1
-67
-1
-77
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 32 AS col2, col1 col1 FROM tab1 AS cor0
----
32
14
32
47
32
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT - col2 DIV col1 * - + 90 FROM tab1 AS cor0
----
540
90
990

skipif mysql # not compatible
query I rowsort label-3296
SELECT - col2 / col1 * - + 90 FROM tab1 AS cor0
----
540
90
990

query I rowsort
SELECT ALL - col0 * 18 AS col1 FROM tab2 cor0
----
-1152
-1350
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 + - col1 col0 FROM tab2
----
-25
-41
-51

query I rowsort
SELECT ALL - + 12 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query II rowsort
SELECT DISTINCT + col1 + - col2 AS col1, - col2 FROM tab0 AS cor0
----
-98
-99
11
-10
34
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT ALL col0 + + 94 * + col0 AS col0 FROM tab0 AS cor0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT DISTINCT - + 39 + 2 col2, ( COUNT( * ) ) FROM tab0 AS cor0
----
-37
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3303
SELECT DISTINCT - + 39 + 2 col2, ( COUNT ( * ) ) FROM tab0 AS cor0
----
-37
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3304
SELECT ALL - 40 FROM tab2 AS cor0 WHERE CAST( - col2 AS DECIMAL ) + - ( - col1 ) NOT IN ( - + col1 )
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL - 40 FROM tab2 AS cor0 WHERE CAST ( - col2 AS REAL ) + - ( - col1 ) NOT IN ( - + col1 )
----
-40
-40
-40

query II rowsort
SELECT ALL + 36 AS col0, 59 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3306
SELECT ALL + col2 * - col1 FROM tab1 AS cor0 WHERE NOT - col0 + 66 NOT IN ( - - col2, + col0, CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + col2 * - col1 FROM tab1 AS cor0 WHERE NOT - col0 + 66 NOT IN ( - - col2, + col0, CAST ( + col0 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + col2 BETWEEN ( col2 ) AND ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT + col2 DIV - 13 col0 FROM tab2 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3308
SELECT + col2 / - 13 col0 FROM tab2 AS cor0
----
-1
-3
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3309
SELECT COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3309
SELECT COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT 96 * + ( - col0 ) AS col1, 81 AS col1 FROM tab1 WHERE col0 IS NULL
----

query II rowsort
SELECT + 65, 73 AS col0 FROM tab1
----
65
73
65
73
65
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - - MIN( col2 ) * + + 66 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - - MIN ( col2 ) * + + 66 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN 30 AND + col2 / + 85 * ( - col2 )
----

query II rowsort
SELECT ALL - col0, + col1 + - 24 AS col0 FROM tab0
----
-15
57
-87
-3
-97
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT 49 + ( COUNT( * ) ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3315
SELECT 49 + ( COUNT ( * ) ) FROM tab2
----
52

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT + MAX( ALL 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3317
SELECT + MAX ( ALL 92 ) FROM tab1 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 * col1 FROM tab2 cor0
----
-46
2346
-64
4928
-75
5025

query II rowsort
SELECT - col2, col2 AS col0 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL + ( + col0 ) - - - ( 50 ) + + + col0 AS col0 FROM tab0 AS cor0
----
-20
124
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL ( - MIN( DISTINCT - + 8 ) ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL ( - MIN ( DISTINCT - + 8 ) ) AS col2 FROM tab2
----
8

query I rowsort
SELECT + - 8 AS col0 FROM tab1, tab2 AS cor0 WHERE NOT - - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3324
SELECT ( 96 ) + + COUNT( * ) - - - CAST( NULL AS DECIMAL ) * + 79 * - + COUNT( * ) * - + COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3324
SELECT ( 96 ) + + COUNT ( * ) - - - CAST ( NULL AS REAL ) * + 79 * - + COUNT ( * ) * - + COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - col1 * + 26 * - - ( + + 29 ) FROM tab1 AS cor0
----
-10556
-35438
-3770

query I rowsort
SELECT DISTINCT - - 8 * col1 AS col0 FROM tab1 cor0
----
112
376
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - - col1 col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT ( + 12 ) * - 60 AS col0 FROM tab0 AS cor0
----
-720
-720
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT ALL + COUNT( * ) * + 10 AS col0 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + COUNT ( * ) * + 10 AS col0 FROM tab1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT ALL + CAST( + 20 AS SIGNED ) col2 FROM tab1
----
20
20
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3331
SELECT ALL + CAST ( + 20 AS INTEGER ) col2 FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT + COUNT( DISTINCT + - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3332
SELECT + COUNT ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col0 + - 73 FROM tab2 AS cor0 WHERE NOT + 63 - + + 64 NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT + - col1 * + 42 + 26 AS col1 FROM tab1 AS cor0
----
-184
-1948
-562

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT ALL COUNT( * ) AS col2, - 80 AS col0 FROM tab0 AS cor0
----
3
-80

skipif mysql # not compatible
query II rowsort label-3335
SELECT ALL COUNT ( * ) AS col2, - 80 AS col0 FROM tab0 AS cor0
----
3
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3336
SELECT ALL - col2 DIV - + col2 col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3336
SELECT ALL - col2 / - + col2 col0 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT ALL + col1, col2 + ( 41 ) + - + col2 - + 82 FROM tab0 AS cor0
----
1
-41
21
-41
81
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3338
SELECT DISTINCT 42 DIV - + col0 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT 42 / - + col0 FROM tab0
----
-2
0

query II rowsort
SELECT + col0 AS col2, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * 18 * + - col1 * + col1 + + col2 * - + ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + 55 FROM tab1
----
114
123
151

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT DISTINCT - 21 * - COUNT( * ) + + COUNT( * ) DIV - - 51 + + 0 + - COUNT( * ) * + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - 21 * - COUNT ( * ) + + COUNT ( * ) / - - 51 + + 0 + - COUNT ( * ) * + COUNT ( * ) FROM tab1
----
54

query I rowsort
SELECT - 14 + col0 FROM tab1 AS cor0
----
37
71
77

query I rowsort
SELECT col2 + ( - col1 ) * - col0 FROM tab1 AS cor0
----
4345
484
810

query II rowsort
SELECT ALL + 49 * - 93 + - ( + col1 ) AS col0, 25 AS col2 FROM tab1 AS cor0
----
-4562
25
-4571
25
-4604
25

query II rowsort
SELECT - 27 + 16, + col0 FROM tab2 AS cor0
----
-11
46
-11
64
-11
75

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 72 > + col2 / - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3348
SELECT + 95 DIV - 67 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3348
SELECT + 95 / - 67 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - MAX( DISTINCT + + col2 ) * 59 FROM tab1
----
-5664

skipif mysql # not compatible
query I rowsort label-3349
SELECT - MAX ( DISTINCT + + col2 ) * 59 FROM tab1
----
-5664

query I rowsort
SELECT DISTINCT 68 + - 84 AS col1 FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + ( COUNT( * ) ) + 60 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + ( COUNT ( * ) ) + 60 FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - - MAX( ALL - 5 ) - - 34 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3353
SELECT - - MAX ( ALL - 5 ) - - 34 FROM tab2 AS cor0
----
29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3355
SELECT ALL col2 col1 FROM tab0 WHERE - CAST( - + col1 AS DECIMAL ) IS NOT NULL
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3355
SELECT ALL col2 col1 FROM tab0 WHERE - CAST ( - + col1 AS REAL ) IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT ( 15 ) DIV - MIN( ALL + col2 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT ( 15 ) / - MIN ( ALL + col2 ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3357
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col0 AND + CAST( - col0 AS SIGNED ) * - + col0 + 94
----

skipif mysql # not compatible
query III rowsort label-3357
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + col0 AND + CAST ( - col0 AS INTEGER ) * - + col0 + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col1 col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT - CAST( - ( + 10 ) AS SIGNED ) FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-3359
SELECT - CAST ( - ( + 10 ) AS INTEGER ) FROM tab0 AS cor0
----
10
10
10

query II rowsort
SELECT DISTINCT - col0, ( - col1 ) AS col2 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-3361
SELECT DISTINCT MIN( ALL - 16 ) AS col2, - ( 24 ) FROM tab2 AS cor0 WHERE ( NULL ) >= - + 47 / - - col1 - + + col1 * - col1
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-3361
SELECT DISTINCT MIN ( ALL - 16 ) AS col2, - ( 24 ) FROM tab2 AS cor0 WHERE ( NULL ) >= - + 47 / - - col1 - + + col1 * - col1
----
NULL
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT ( + + 46 ) FROM tab0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT SUM( DISTINCT 43 ) AS col1 FROM tab1 WHERE NOT NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT SUM ( DISTINCT 43 ) AS col1 FROM tab1 WHERE NOT NULL <= + col2
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 12 AS col2 FROM tab0
----
1188
120
564

query I rowsort
SELECT DISTINCT + 92 * col0 AS col2 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT - col0 * - 49 FROM tab2
----
2254
3136
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - MAX( + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3368
SELECT - MAX ( + col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL + MIN( + ( - col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + MIN ( + ( - col2 ) ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT ALL 28 * 68 * COUNT( * ) FROM tab1
----
5712

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 28 * 68 * COUNT ( * ) FROM tab1
----
5712

query I rowsort
SELECT DISTINCT + 39 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-3403
-3882
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT DISTINCT - COUNT( 23 ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT DISTINCT - COUNT ( 23 ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT col2 + - + col1 + - col1 - - col0 AS col1 FROM tab1 cor0
----
119
134
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL > 9
----
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > 9
----
0

query I rowsort
SELECT ALL 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - 71 * + ( - col1 ) + - + col1 AS col1 FROM tab1
----
3290
350
980

query II rowsort
SELECT - col2 + + col0 * + col1, + col2 FROM tab0
----
-2
99
1168
47
1817
10

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT + + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3380
SELECT + + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT 4 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3382
SELECT ALL col0, + col0 * - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-3382
SELECT ALL col0, + col0 * - col0 / - col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT 86 * - 36 * - - col1 * + col2 - - - col2 FROM tab0
----
-11786519
-306603
-650170

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3384
SELECT ALL CAST( NULL AS DECIMAL ) * col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL CAST ( NULL AS REAL ) * col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 + - col2 col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col2 * + col2 + + + col2 AS col0 FROM tab0
----
110
2256
9900

query I rowsort
SELECT - 84 + + col1 FROM tab2
----
-17
-33
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT DISTINCT 59 + - + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT 59 + - + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1
----
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - col2 = + - 39 - - - 64 * + col1
----

query I rowsort
SELECT ALL - - col1 - + col1 + + + col2 * + col1 * 26 FROM tab1 AS cor0
----
34944
7670
83096

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT ALL MAX( DISTINCT + col2 ) AS col0, 58 * - COUNT( * ) FROM tab1 AS cor0
----
96
-174

skipif mysql # not compatible
query II rowsort label-3391
SELECT ALL MAX ( DISTINCT + col2 ) AS col0, 58 * - COUNT ( * ) FROM tab1 AS cor0
----
96
-174

query I rowsort
SELECT - + ( 56 ) AS col2 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL ( - col1 ) * + col2 + - + col0 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT - ( - 70 ) * - + col0 AS col1 FROM tab0 AS cor0
----
-1050
-6090
-6790

query I rowsort
SELECT ALL - - 2 FROM tab0 AS cor0 WHERE NOT + ( col0 ) IS NULL
----
2
2
2

query II rowsort
SELECT - - col2 * - + col1 - + + 75 + - ( - - col0 ), col1 AS col1 FROM tab2 AS cor0
----
-1294
51
-3219
77
-4036
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT - COUNT( ALL 51 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - COUNT ( ALL 51 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT + col0 * + + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT + col0 * + + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3399
SELECT ALL * FROM tab2 WHERE NULL <> + - CAST( 0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3399
SELECT ALL * FROM tab2 WHERE NULL <> + - CAST ( 0 AS INTEGER )
----

query I rowsort
SELECT - 90 + - col0 + - col1 AS col0 FROM tab2
----
-187
-231
-232

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + 94 / col2 + - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT SUM( ALL + col2 ) col1 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3402
SELECT SUM ( ALL + col2 ) col1 FROM tab2
----
121

query II rowsort
SELECT + col0, col0 + - col0 AS col1 FROM tab2
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 95 col2, col0 FROM tab0 AS cor0
----
95
15
95
87
95
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 47 < 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - COUNT( * ) + 54 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3406
SELECT - COUNT ( * ) + 54 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - + 65 AS col0 FROM tab2 AS cor0 WHERE NULL <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT ALL - col2 + + col1 - + - col1 DIV - col0 FROM tab2 AS cor0
----
27
36
9

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL - col2 + + col1 - + - col1 / - col0 FROM tab2 AS cor0
----
27
36
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT ALL - col0 * - col0 DIV + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - col0 * - col0 / + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + - 73 + col2 FROM tab1 AS cor0
----
-14
-5
23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - 96 IS NOT NULL
----

query I rowsort
SELECT ALL 69 * col2 FROM tab2
----
1587
2760
4002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 + - - 9 col2 FROM tab2
----
-14
-15
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT DISTINCT + COUNT( * ) DIV - 34 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT + COUNT ( * ) / - 34 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 68 + 37 AS col2 FROM tab1
----
105
105
105

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT ALL - 95 * + COUNT( col0 ) AS col0 FROM tab0 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - 95 * + COUNT ( col0 ) AS col0 FROM tab0 cor0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-3418
SELECT DISTINCT + col0 DIV 58 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + col0 / 58 FROM tab0
----
0
1

query I rowsort
SELECT - + 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query II rowsort
SELECT ALL - 97, + col2 FROM tab0
----
-97
10
-97
47
-97
99

query I rowsort
SELECT ALL + ( col2 ) * 61 - col0 AS col0 FROM tab2 WHERE NOT + col1 + + + col1 - + col2 + + 31 / + + col1 * + col1 * - 67 IS NOT NULL
----

query I rowsort
SELECT + 35 * 38 * - ( - + col0 ) FROM tab2
----
61180
85120
99750

query I rowsort
SELECT - - col2 * - 62 * - col2 * - + col1 AS col0 FROM tab0 cor0
----
-11093598
-130200
-607662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3424
SELECT DISTINCT - COUNT( ALL + + CAST( + 98 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3424
SELECT DISTINCT - COUNT ( ALL + + CAST ( + 98 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 29 * - col1 FROM tab1 AS cor0
----
-1363
-145
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + COUNT( * ) * + 15 * - + COUNT( * ) * 1 AS col2 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3426
SELECT + COUNT ( * ) * + 15 * - + COUNT ( * ) * 1 AS col2 FROM tab0 AS cor0
----
-135

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT MAX( - - col2 ) col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT DISTINCT MAX ( - - col2 ) col1 FROM tab2 cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT ALL - col0 + - + CAST( + - 55 AS SIGNED ) FROM tab0
----
-32
-42
40

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - col0 + - + CAST ( + - 55 AS INTEGER ) FROM tab0
----
-32
-42
40

query II rowsort
SELECT DISTINCT + ( col0 ) AS col0, + 23 FROM tab1
----
51
23
85
23
91
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 59 ) col1 FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT DISTINCT SUM( + col2 ) + COUNT( - 4 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT SUM ( + col2 ) + COUNT ( - 4 ) FROM tab2
----
124

query III rowsort
SELECT * FROM tab2 WHERE + - 23 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT CAST( col0 AS SIGNED ) * + col1 + + col1 + ( - - col0 ) FROM tab2 cor0
----
2443
5069
5167

skipif mysql # not compatible
query I rowsort label-3434
SELECT CAST ( col0 AS INTEGER ) * + col1 + + col1 + ( - - col0 ) FROM tab2 cor0
----
2443
5069
5167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - + col2 col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT ALL + MAX( + col0 ) FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + MAX ( + col0 ) FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT DISTINCT - MAX( DISTINCT 49 ) + ( - 44 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT - MAX ( DISTINCT 49 ) + ( - 44 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-93

query I rowsort
SELECT ALL + col2 + + - col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 91 - + col0 <= - - col2
----
46
51
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col0 col0 FROM tab0 cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 + + 9 + col1 * - col2 col1 FROM tab2 AS cor0
----
-1067
-2930
-3735

query III rowsort
SELECT * FROM tab2 WHERE - col0 * 94 / 9 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 96 * - + col0 * + col2 AS col0 FROM tab0
----
67680
83520
921888

query I rowsort
SELECT - col1 * + col2 + + - col0 AS col0 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT 67 + 81 FROM tab2
----
148
148
148

query II rowsort
SELECT ALL col1 * + col0 * col1 - + 12, - col1 * 32 AS col0 FROM tab0
----
38355
-672
85
-32
98403
-2592

query I rowsort
SELECT col2 + + col2 + + col0 * ( + col1 ) FROM tab1 WHERE ( NULL ) IS NULL
----
4413
543
906

query I rowsort
SELECT ALL col2 + + col2 + - - col1 AS col2 FROM tab1
----
123
183
206

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( col0 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT ALL + 70 * col0 DIV - 85 FROM tab0
----
-12
-71
-79

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL + 70 * col0 / - 85 FROM tab0
----
-12
-71
-79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3452
SELECT DISTINCT - 64 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 79 ) + - col1 NOT IN ( col1 + - 1 + - 56 + + + ( - + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT - 64 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( 79 ) + - col1 NOT IN ( col1 + - 1 + - 56 + + + ( - + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3453
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + col2 - col2 / - ( - col2 ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3453
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + col2 - col2 / - ( - col2 ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 87 * + + 15 FROM tab0 AS cor0
----
1305
1305
1305

query I rowsort
SELECT + - col1 - col1 - - + 31 FROM tab0 AS cor0 WHERE NOT col0 IN ( + col1 + col0, - 2, - 46, col0 * - col1 )
----
-11
-131
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT + + MAX( + + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3456
SELECT + + MAX ( + + col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - col2 * - col2 FROM tab2 WHERE NULL > - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT + MAX( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3458
SELECT + MAX ( DISTINCT - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT DISTINCT + MIN( ALL col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + MIN ( ALL col1 ) AS col0 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3460
SELECT + + col1 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3460
SELECT + + col1 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT col1 * - 69 * 63 AS col2 FROM tab1 AS cor0
----
-204309
-21735
-60858

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT COUNT( * ) * + 32 * - MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
-4416

skipif mysql # not compatible
query I rowsort label-3462
SELECT COUNT ( * ) * + 32 * - MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-4416

query I rowsort
SELECT DISTINCT + col0 * + col1 + + - 19 + col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
1243
177
1818

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT COUNT( * ) + + ( + COUNT( * ) ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3464
SELECT COUNT ( * ) + + ( + COUNT ( * ) ) FROM tab1 cor0
----
6

query I rowsort
SELECT col0 + + - col2 + 24 FROM tab2 AS cor0
----
41
47
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3466
SELECT DISTINCT col2 DIV 33 AS col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT col2 / 33 AS col1 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT + + COUNT( * ) AS col0 FROM tab1 WHERE 18 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3467
SELECT + + COUNT ( * ) AS col0 FROM tab1 WHERE 18 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT DISTINCT - 10 + - COUNT( * ) - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT - 10 + - COUNT ( * ) - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 + + - 94 FROM tab1 AS cor0
----
-26
-35
2

query I rowsort
SELECT - + col0 FROM tab2 AS cor0 WHERE + 6 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE + 51 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT 39 + + + col2 AS col0 FROM tab1
----
107
135
98

query I rowsort
SELECT + + 49 FROM tab1 AS cor0 WHERE ( NOT ( NULL ) < ( NULL ) ) OR col0 NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT - + 99 AS col0 FROM tab1 AS cor0 WHERE - col0 + - 73 <= - + 28
----
-99
-99
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3475
SELECT ALL + - col1 * + 41 + + CAST( NULL AS DECIMAL ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL + - col1 * + 41 + + CAST ( NULL AS REAL ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 63 + - + 31 FROM tab2 AS cor0
----
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 67 * 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 37 * - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 / 4 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN - - 66 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) * + col2 * - 39 + + - col0 < NULL
----

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3483
SELECT ALL + + 93 AS col0, - CAST( - - col0 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
93
-144
93
-147
93
-159

skipif mysql # not compatible
query II rowsort label-3483
SELECT ALL + + 93 AS col0, - CAST ( - - col0 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
93
-144
93
-147
93
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0 WHERE NOT ( ( - 77 ) < - 2 )
----

query I rowsort
SELECT ALL - ( - 59 ) * - + col2 FROM tab0 AS cor0
----
-2773
-5841
-590

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 52 * - 16 + + col0 AS col2 FROM tab2 AS cor0
----
-757
-768
-786

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 42 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT ( - - 2 ) / col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ( - - 2 ) / col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3491
SELECT ALL + CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 11 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 * ( - col1 ) FROM tab2 cor0
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * 18 + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT DISTINCT - 3 * CAST( + 18 AS SIGNED ) AS col1 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT - 3 * CAST ( + 18 AS INTEGER ) AS col1 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - + 60 FROM tab1 WHERE NOT + + col2 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( 82 ) / - 97 * 63 + + 85 - col2 < - 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT + - 10 AS col2 FROM tab1 WHERE + + ( - CAST( NULL AS SIGNED ) ) >= ( - - col1 )
----

skipif mysql # not compatible
query I rowsort label-3499
SELECT + - 10 AS col2 FROM tab1 WHERE + + ( - CAST ( NULL AS INTEGER ) ) >= ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL - - 24 + + - COUNT( * ) + + - 39 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - - 24 + + - COUNT ( * ) + + - 39 FROM tab0 AS cor0
----
-18

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 25 <= ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 + - ( col0 ) AND - col2 * - ( - - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 56 FROM tab1 WHERE NOT col1 IS NULL
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT - 28 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT - 28 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL MAX( ALL - + col0 ) + ( + 88 ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL MAX ( ALL - + col0 ) + ( + 88 ) FROM tab1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT - + COUNT( * ) + 8 AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - + COUNT ( * ) + 8 AS col0 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col1 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT + - col1 + + - col0 + - - 41 AS col1 FROM tab2 AS cor0 WHERE 15 - + col0 - - + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT - ( + MAX( ALL + 66 ) ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3509
SELECT - ( + MAX ( ALL + 66 ) ) AS col0 FROM tab2 AS cor0
----
-66

query II rowsort
SELECT DISTINCT + - col1, + col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT ALL COUNT( * ) col2, 76 * MIN( col1 ) AS col1 FROM tab2 cor0
----
3
3876

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3511
SELECT ALL COUNT ( * ) col2, 76 * MIN ( col1 ) AS col1 FROM tab2 cor0
----
3
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT + CAST( - AVG ( DISTINCT col2 ) AS SIGNED ) FROM tab1 cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3512
SELECT + CAST ( - AVG ( DISTINCT col2 ) AS INTEGER ) FROM tab1 cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT + MIN( DISTINCT col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3513
SELECT + MIN ( DISTINCT col0 ) col2 FROM tab2
----
46

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL < + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 14 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 BETWEEN - 13 - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 30 ) col1 FROM tab0
----
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - - col0 AS col1 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL <> 13
----

query I rowsort
SELECT + col1 * - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query II rowsort label-3522
SELECT - 92 AS col2, 36 * - 72 + + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-92
-2583

skipif mysql # not compatible
query II rowsort label-3522
SELECT - 92 AS col2, 36 * - 72 + + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
-92
-2583

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) NOT BETWEEN 96 AND - + 78
----

query I rowsort
SELECT ALL 4 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT DISTINCT + + col1 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + + col1 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - SUM( - - 46 ) + 91 AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3526
SELECT - SUM ( - - 46 ) + 91 AS col2 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT ALL - 87 + 33 AS col1 FROM tab0 cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col0 col2 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - MIN( col1 ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 54 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL MAX( ALL - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL MAX ( ALL - + col1 ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + col2 + 54 FROM tab1 AS cor0
----
113
122
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT DISTINCT + SUM( + 24 ) AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT + SUM ( + 24 ) AS col2 FROM tab0 AS cor0
----
72

query I rowsort
SELECT - - col0 + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col0 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 7 <> NULL
----

query I rowsort
SELECT ALL 91 + - - 35 FROM tab1
----
126
126
126

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND + + col0 + + col1 + + col0 + 3 + - col0
----

query I rowsort
SELECT ALL + + 49 + col0 FROM tab1 AS cor0
----
100
134
140

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 64 * + col1 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT + - 50 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, col1 + ( + 92 ) AS col0 FROM tab1
----
-14
106
-47
139
-5
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab2
----
-49

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE NOT col1 * + col0 + - 20 IS NOT NULL
----

query I rowsort
SELECT + + 73 * col2 FROM tab2 AS cor0
----
1679
2920
4234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT col1 / + col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - CAST( NULL AS SIGNED ) AND - col2 * + + 75 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3550
SELECT col1 / + col0 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - CAST ( NULL AS INTEGER ) AND - col2 * + + 75 - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 83 * + - col1 FROM tab1
----
-1162
-3901
-415

query III rowsort
SELECT ALL * FROM tab0 WHERE + 1 + + - 77 * + 14 * - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col0 FROM tab0
----
21
21
21

query II rowsort
SELECT DISTINCT col2 AS col2, + 13 AS col1 FROM tab0
----
10
13
47
13
99
13

onlyif mysql # DIV for integer division: 
query II rowsort label-3555
SELECT ALL + col2, - 31 DIV + col1 FROM tab1 AS cor0
----
59
-6
68
0
96
-2

skipif mysql # not compatible
query II rowsort label-3555
SELECT ALL + col2, - 31 / + col1 FROM tab1 AS cor0
----
59
-6
68
0
96
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= 29 * + + 38 + + col0
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT - COUNT( * ) FROM tab2 WHERE NULL IN ( - - col1 - + 49, 94, - + col2, - col0 + - 64 )
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT - COUNT ( * ) FROM tab2 WHERE NULL IN ( - - col1 - + 49, 94, - + col2, - col0 + - 64 )
----
0

query I rowsort
SELECT 61 + col2 - - - 84 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT + ( col0 ) AS col0, + col1 FROM tab2 cor0
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query II rowsort label-3561
SELECT DISTINCT col2 DIV col0 + + - col1 * - col1 + - 20 AS col0, - 3 FROM tab1 AS cor0
----
177
-3
2189
-3
5
-3

skipif mysql # not compatible
query II rowsort label-3561
SELECT DISTINCT col2 / col0 + + - col1 * - col1 + - 20 AS col0, - 3 FROM tab1 AS cor0
----
177
-3
2189
-3
5
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT MAX( ALL 9 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT MAX ( ALL 9 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL - + col2 + + 93 FROM tab0 AS cor0
----
-6
46
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT ALL 79 * - - MAX( 37 ) + 64 * - ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL 79 * - - MAX ( 37 ) + 64 * - ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 43 * - + 95 >= + 43 * - - col1 * + 68 * col2 * - 55 + + col2 + - col0 * - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) - col1 * + + col1 AS col0 FROM tab1 AS cor0
----
-2277
-292
-84

query II rowsort
SELECT DISTINCT 82 AS col2, col0 * - 70 FROM tab2
----
82
-3220
82
-4480
82
-5250

query I rowsort
SELECT + ( + - col1 ) FROM tab1 WHERE + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT - 89 + + 9 AS col2 FROM tab1
----
-80
-80
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > - col1 + - col1 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3571
SELECT - CAST( NULL AS SIGNED ) * 34 + 86 - - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT - CAST ( NULL AS INTEGER ) * 34 + 86 - - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3572
SELECT ALL - SUM( DISTINCT + CAST( - 11 AS SIGNED ) ) - - - COUNT( * ) * 88 FROM tab1 AS cor0
----
-253

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - SUM ( DISTINCT + CAST ( - 11 AS INTEGER ) ) - - - COUNT ( * ) * 88 FROM tab1 AS cor0
----
-253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3573
SELECT DISTINCT MAX( ALL + CAST( - 58 AS SIGNED ) ) - COUNT( * ) AS col1 FROM tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT MAX ( ALL + CAST ( - 58 AS INTEGER ) ) - COUNT ( * ) AS col1 FROM tab0 cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT + - COUNT( * ) - - 15 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT + - COUNT ( * ) - - 15 FROM tab2 AS cor0
----
12

query II rowsort
SELECT DISTINCT col0 * - col1 * + col1, + col2 AS col0 FROM tab1 AS cor0
----
-201019
68
-2125
59
-9996
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3576
SELECT ALL - ( COUNT( * ) ) DIV + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - ( COUNT ( * ) ) / + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10

query II rowsort
SELECT DISTINCT + ( + ( + ( col2 ) ) ), 23 AS col0 FROM tab0 AS cor0
----
10
23
47
23
99
23

query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 52 <= + 73
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - 50 <> + ( + 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3582
SELECT DISTINCT - 14 * col0 * 81 DIV 87 FROM tab2 AS cor0
----
-599
-834
-977

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT - 14 * col0 * 81 / 87 FROM tab2 AS cor0
----
-599
-834
-977

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 58 BETWEEN 13 AND + 58 * + col2 / + col2 + + col2 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3585
SELECT col2, - CAST( + + col2 AS SIGNED ) FROM tab2
----
23
-23
40
-40
58
-58

skipif mysql # not compatible
query II rowsort label-3585
SELECT col2, - CAST ( + + col2 AS INTEGER ) FROM tab2
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT MIN( DISTINCT - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT MIN ( DISTINCT - col2 ) FROM tab1
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + + 71
----

query III rowsort
SELECT + + col1, col2 * - col2 AS col2, col1 FROM tab1 AS cor0
----
9 values hashing to f1caddbf9860290a4f3bb800dc13bbe1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * + col1 col0 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT - col1 * + ( - CAST( NULL AS SIGNED ) ) * - 83 + + - 62 + - 95 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT - col1 * + ( - CAST ( NULL AS INTEGER ) ) * - 83 + + - 62 + - 95 * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT ALL + - ( + ( - + ( + MAX( + ( - col1 ) ) ) ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL + - ( + ( - + ( + MAX ( + ( - col1 ) ) ) ) ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT + CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-3592
SELECT + CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT 47 + + ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT 47 + + ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
44

query I rowsort
SELECT - col0 + + - 64 * col0 AS col0 FROM tab0 AS cor0
----
-5655
-6305
-975

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * + + 40 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - 25 + - COUNT( * ) AS col2 FROM tab2 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-3596
SELECT - 25 + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 * - col0 col1 FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT col0 * - col1 FROM tab2 AS cor0 WHERE + col0 * col1 IS NOT NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT COUNT( * ) * - + MIN( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3599
SELECT COUNT ( * ) * - + MIN ( ALL col1 ) AS col1 FROM tab2 AS cor0
----
-153

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3601
SELECT 91 * - CAST( NULL AS SIGNED ) / ( - 24 ) - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT 91 * - CAST ( NULL AS INTEGER ) / ( - 24 ) - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - col1 + - 1 + col1 AS col1 FROM tab1
----
58
67
95

query I rowsort
SELECT ALL + ( + - 42 ) * + col1 AS col1 FROM tab1 AS cor0
----
-1974
-210
-588

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT + 21 * + COUNT( + col2 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT + 21 * + COUNT ( + col2 ) FROM tab0 AS cor0
----
63

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT + 97 * + 17 * col1 IS NOT NULL
----

query I rowsort
SELECT col1 * + - ( - + ( + 62 ) ) AS col2 FROM tab1
----
2914
310
868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3607
SELECT + col2 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3607
SELECT + col2 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - col1 - - + col2 - 18 + col0 * 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0 * + 83 * + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( ( + col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3612
SELECT ALL col2 DIV - 79, + col2 FROM tab0
----
-1
99
0
10
0
47

skipif mysql # not compatible
query II rowsort label-3612
SELECT ALL col2 / - 79, + col2 FROM tab0
----
-1
99
0
10
0
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT - MAX( 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-3613
SELECT - MAX ( 88 ) FROM tab2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3614
SELECT COUNT( + col1 ), - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3614
SELECT COUNT ( + col1 ), - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
3
3

query I rowsort
SELECT ALL col1 + col1 + + 75 FROM tab0
----
117
237
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3616
SELECT DISTINCT * FROM tab0 WHERE + col0 + 21 <= + - ( - col0 ) * - CAST( - + 82 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3616
SELECT DISTINCT * FROM tab0 WHERE + col0 + 21 <= + - ( - col0 ) * - CAST ( - + 82 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 74 * - - col2 AS col0, 88 FROM tab2
----
1702
88
2960
88
4292
88

query II rowsort
SELECT ALL + col0 + + col1, + col2 FROM tab0
----
108
10
96
47
98
99

query I rowsort
SELECT ALL col1 / - col2 + - ( col1 ) FROM tab1 AS cor0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - col2 + - 52 AS col2 FROM tab2 AS cor0
----
-28
-29
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col2 >= col2 * 22 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab0 cor0
----
33

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 56 / - 44 + col2 + + + 53 / - 19 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT + 61 + - COUNT( * ) DIV + 35 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3624
SELECT + 61 + - COUNT ( * ) / + 35 FROM tab0 AS cor0
----
61

query I rowsort
SELECT - col1 * + 19 + - 93 FROM tab0 cor0
----
-112
-1632
-492

onlyif mysql # DIV for integer division: 
query I rowsort label-3626
SELECT - 8 DIV - + 39 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT - 8 / - + 39 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT ALL ( - - MIN( + 55 ) ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
495

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL ( - - MIN ( + 55 ) ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
495

query I rowsort
SELECT 53 * - 80 FROM tab1
----
-4240
-4240
-4240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3629
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT DISTINCT - 56 + + - ( - + col1 ), + col0 AS col1 FROM tab2 cor0
----
-5
46
11
75
21
64

query I rowsort
SELECT - col2 - - - col1 * - 48 + 53 AS col2 FROM tab2 AS cor0
----
2478
3211
3709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - col1 + + 87 * + + col2 + + + col1 col0 FROM tab1 cor0
----
5058
5919
8329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 - + col0 col2 FROM tab0 AS cor0
----
-103
-21
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + - 58 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3636
SELECT ALL 62 - 60 AS col0, MIN( + ( ( + + 17 ) ) ) + - - COUNT( * ) AS col2 FROM tab2
----
2
20

skipif mysql # not compatible
query II rowsort label-3636
SELECT ALL 62 - 60 AS col0, MIN ( + ( ( + + 17 ) ) ) + - - COUNT ( * ) AS col2 FROM tab2
----
2
20

query I rowsort
SELECT DISTINCT + col2 + + + 32 AS col1 FROM tab1
----
100
128
91

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + ( + col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT col2 + col2 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * - ( + 6 ) + + 43 AS col0 FROM tab0
----
103
325
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3641
SELECT ALL + CAST( - 98 AS SIGNED ) col0 FROM tab1
----
-98
-98
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3641
SELECT ALL + CAST ( - 98 AS INTEGER ) col0 FROM tab1
----
-98
-98
-98

query III rowsort
SELECT * FROM tab2 WHERE + ( col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( * ) * 71 + - SUM( - col0 ) FROM tab1
----
440

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) * 71 + - SUM ( - col0 ) FROM tab1
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT 98 + + ( 3 ) DIV - col1 * - col1 AS col0 FROM tab1
----
98
98
98

skipif mysql # not compatible
query I rowsort label-3644
SELECT 98 + + ( 3 ) / - col1 * - col1 AS col0 FROM tab1
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 79 col0 FROM tab0
----
100
160
80

query I rowsort
SELECT ALL + 47 + + + col1 FROM tab1
----
52
61
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL - - 88 * - + 6 - - COUNT( - + col2 ) + + + 1 FROM tab2 cor0
----
-524

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL - - 88 * - + 6 - - COUNT ( - + col2 ) + + + 1 FROM tab2 cor0
----
-524

query I rowsort
SELECT + col0 * + + 82 FROM tab1 AS cor0
----
4182
6970
7462

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 34 BETWEEN + col0 AND - + col2 + + - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT - CAST( 40 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-3651
SELECT - CAST ( 40 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 * + col2 FROM tab2 cor0
----
-138
-240
-348

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE 33 IS NOT NULL AND ( NULL ) IS NULL
----
10
47
99

query I rowsort
SELECT ( - col1 ) + - - 57 - - col2 AS col2 FROM tab1 AS cor0
----
111
139
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL - ( + + MIN( ALL 26 ) ) * 67 FROM tab2 AS cor0
----
-1742

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL - ( + + MIN ( ALL 26 ) ) * 67 FROM tab2 AS cor0
----
-1742

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT DISTINCT - MIN( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT - MIN ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT DISTINCT + 54 col1, COUNT( * ) FROM tab1
----
54
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3658
SELECT DISTINCT + 54 col1, COUNT ( * ) FROM tab1
----
54
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3659
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col2 NOT BETWEEN NULL AND + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3661
SELECT DISTINCT 46, - COUNT( * ) AS col2 FROM tab2
----
46
-3

skipif mysql # not compatible
query II rowsort label-3661
SELECT DISTINCT 46, - COUNT ( * ) AS col2 FROM tab2
----
46
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT ALL COUNT( * ) col2, - ( - SUM( ALL + 30 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3662
SELECT ALL COUNT ( * ) col2, - ( - SUM ( ALL + 30 ) ) FROM tab1 WHERE NULL IS NOT NULL
----
0
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL < col0
----

query II rowsort
SELECT + - 39, col0 AS col0 FROM tab2 AS cor0
----
-39
46
-39
64
-39
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT 40 DIV - 93 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT 40 / - 93 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 25 * 57 AS col2 FROM tab1 AS cor0
----
1425
1425
1425

query I rowsort
SELECT - + col0 * col1 * col0 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * 54 FROM tab2
----
2754
3618
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL + MIN( col2 ) + 80 AS col2 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL + MIN ( col2 ) + 80 AS col2 FROM tab2
----
103

query I rowsort
SELECT ALL + 85 + + 25 AS col0 FROM tab2 WHERE + 87 + - col2 NOT BETWEEN NULL AND col2
----
110
110

query I rowsort
SELECT ALL col2 - + ( col0 + 0 ) FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 <> 2 * 36
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT MAX( ALL - col0 ) * - 61 FROM tab0
----
915

skipif mysql # not compatible
query I rowsort label-3675
SELECT MAX ( ALL - col0 ) * - 61 FROM tab0
----
915

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * 79 + + 15 * - col1 AS col1 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT DISTINCT - col2 * 99 AS col2 FROM tab1
----
-5841
-6732
-9504

query I rowsort
SELECT col1 * 77 AS col0 FROM tab0
----
1617
6237
77

query I rowsort
SELECT DISTINCT 9 * ( - 28 * col2 ) AS col1 FROM tab1
----
-14868
-17136
-24192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT DISTINCT CAST( 46 AS SIGNED ) * + col1 AS col0 FROM tab1
----
2162
230
644

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT CAST ( 46 AS INTEGER ) * + col1 AS col0 FROM tab1
----
2162
230
644

query I rowsort
SELECT col0 * 0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 48 * col2 >= col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT + CAST( - AVG ( DISTINCT - 56 ) AS SIGNED ) + + 27 * + 24 FROM tab0
----
704

skipif mysql # not compatible
query I rowsort label-3685
SELECT + CAST ( - AVG ( DISTINCT - 56 ) AS INTEGER ) + + 27 * + 24 FROM tab0
----
704

query I rowsort
SELECT col0 * 51 FROM tab0 WHERE col1 * + 5 <= - col2
----

query I rowsort
SELECT DISTINCT + 12 + + 22 AS col1 FROM tab1 WHERE NOT NULL = ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3689
SELECT ALL - 29 DIV 75 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL - 29 / 75 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col2 / ( - ( col2 ) ) - - col0 * 52 >= + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT SUM( + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3691
SELECT SUM ( + col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col1 BETWEEN col1 * - 98 AND - col1
----
51
85
91

query I rowsort
SELECT 70 * + col2 + + 12 FROM tab1
----
4142
4772
6732

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT DISTINCT - col0 DIV + 49 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - col0 / + 49 AS col2 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - 3 + ( + 54 + + COUNT( * ) ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3695
SELECT - 3 + ( + 54 + + COUNT ( * ) ) FROM tab1
----
54

query I rowsort
SELECT ALL 8 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
8
8
8

query III rowsort
SELECT ALL * FROM tab0 WHERE + 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT ( - COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3698
SELECT DISTINCT ( - COUNT ( * ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT ALL - col0 + + ( - 16 + - col0 ) AS col2 FROM tab1 WHERE ( + 95 * col0 ) <> NULL
----

query I rowsort
SELECT 21 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 + 83 ) BETWEEN NULL AND ( col2 + col1 )
----
1218
483
840

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE - col1 * - col2 + col1 IS NULL
----

query I rowsort
SELECT + 75 FROM tab2 AS cor0 WHERE NOT ( col0 * col0 - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) <= - 19 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3704
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3704
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 8 IN ( col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - 84 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-16
-25
12

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 20 NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL COUNT( 19 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL COUNT ( 19 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 = 80
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT + - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3710
SELECT + - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 >= 70 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3712
SELECT ( - - col1 ) DIV - ( col2 - 76 ) AS col1 FROM tab2
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3712
SELECT ( - - col1 ) / - ( col2 - 76 ) AS col1 FROM tab2
----
0
2
3

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = + col2
----

query I rowsort
SELECT + 27 - - col0 AS col2 FROM tab2 WHERE ( col1 ) = NULL
----

query I rowsort
SELECT 66 + 62 FROM tab0
----
128
128
128

query I rowsort
SELECT - 10 + - - 80 * - col1 AS col2 FROM tab2
----
-4090
-5370
-6170

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT + 28 + COUNT( * ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-3717
SELECT + 28 + COUNT ( * ) FROM tab2
----
31

query I rowsort
SELECT DISTINCT - + ( ( - col0 ) ) + - 70 AS col2 FROM tab1 AS cor0
----
-19
15
21

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 12 / col2 <= - col2 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 + ( + ( + col1 ) ) + - col2 col2 FROM tab2 cor0
----
106
115
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 - + 35 * col1 BETWEEN - 24 AND + 98 * - 71
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT CAST( - col1 AS SIGNED ) FROM tab1 WHERE - ( 2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3723
SELECT CAST ( - col1 AS INTEGER ) FROM tab1 WHERE - ( 2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3724
SELECT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT ALL - 60 * + col2 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1403
-2440
-3538

query I rowsort
SELECT ALL + col0 - - + 99 AS col0 FROM tab1 AS cor0
----
150
184
190

query I rowsort
SELECT ALL - col0 - - 99 AS col0 FROM tab1 AS cor0
----
14
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT 65 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT 65 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - - COUNT( * ) + - 69 AS col2 FROM tab2 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3729
SELECT - - COUNT ( * ) + - 69 AS col2 FROM tab2 cor0
----
-66

query I rowsort
SELECT DISTINCT + col1 + - 97 FROM tab0 AS cor0
----
-16
-76
-96

query II rowsort
SELECT DISTINCT 88 * + - col2, col2 FROM tab1
----
-5192
59
-5984
68
-8448
96

query I rowsort
SELECT ( + 74 ) * col0 AS col0 FROM tab2
----
3404
4736
5550

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3733
SELECT * FROM tab2 WHERE NOT + + 43 < CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3733
SELECT * FROM tab2 WHERE NOT + + 43 < CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 IN ( - col0 * col1 - - 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 16 * + 13 FROM tab0
----
208
208
208

query I rowsort
SELECT DISTINCT 55 * col2 AS col0 FROM tab1
----
3245
3740
5280

query I rowsort
SELECT + 35 * + + col0 AS col2 FROM tab1
----
1785
2975
3185

query I rowsort
SELECT - 67 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( - 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 24 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) <> - col2 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 98 col2 FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT - 83 + + COUNT( * ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - 83 + + COUNT ( * ) AS col1 FROM tab1
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3744
SELECT ALL + + CAST( NULL AS DECIMAL ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3744
SELECT ALL + + CAST ( NULL AS REAL ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3745
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + CAST( 86 AS SIGNED ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-3745
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + CAST ( 86 AS INTEGER ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab2 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - - col2 + + + col2 * + + col0, - col0 AS col0 FROM tab2 AS cor0
----
1081
-46
2600
-64
4408
-75

query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - - col0 IS NULL
----
118
136
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 63 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + - col0 + - col1 FROM tab0 AS cor0
----
-129
-177
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3752
SELECT DISTINCT * 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-3752
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3753
SELECT DISTINCT CAST( AVG ( 66 ) AS SIGNED ) AS col2, 99 FROM tab0 AS cor0
----
66
99

skipif mysql # not compatible
query II rowsort label-3753
SELECT DISTINCT CAST ( AVG ( 66 ) AS INTEGER ) AS col2, 99 FROM tab0 AS cor0
----
66
99

query I rowsort
SELECT + col2 * - + col0 * col0 + - - 41 * col1 * col1 + + col0 * - 7 FROM tab2 AS cor0
----
-142726
57651
78801

query I rowsort
SELECT - - col1 + col0 + col1 + - col1 * + 2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + - ( - + col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL + col1 + + 89 AS col2 FROM tab2
----
140
156
166

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= 20
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 NOT IN ( col2 + + col1 * col2 + + 42 * ( 91 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT col0 IN ( + 44 * col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + col2 - - 43 FROM tab1
----
161
179
235

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT COUNT( * ) * 34 * + 49 + 44 FROM tab0 AS cor0
----
5042

skipif mysql # not compatible
query I rowsort label-3763
SELECT COUNT ( * ) * 34 * + 49 + 44 FROM tab0 AS cor0
----
5042

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 * + ( + ( + - 74 ) ) + - + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 * + ( + ( + - 74 ) ) + - + col0 ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= + 90
----

query I rowsort
SELECT col1 + - - col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL - - col1 - 43 * col1 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT ALL + COUNT( DISTINCT - + 25 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + COUNT ( DISTINCT - + 25 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT DISTINCT - col0 - - ( - 72 ) + + 21 AS col1 FROM tab2
----
-115
-126
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) * - 94 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) * - 94 FROM tab0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL 64 * - SUM( DISTINCT - 61 ) AS col1 FROM tab2
----
3904

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL 64 * - SUM ( DISTINCT - 61 ) AS col1 FROM tab2
----
3904

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT + col1 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - - COUNT( * ) * 53 col0 FROM tab2 AS cor0
----
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3773
SELECT - - COUNT ( * ) * 53 col0 FROM tab2 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT 8 DIV col0 * + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT 8 / col0 * + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----
0

query I rowsort
SELECT ALL + 61 * + + col0 AS col0 FROM tab1 AS cor0
----
3111
5185
5551

query I rowsort
SELECT - 86 * - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT ALL col0 / col1 FROM tab2 WHERE ( - - col2 + - + 16 + - + ( + + col2 ) + + + 81 * + col1 + - 77 ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + ( + - col2 ) + - col2 - + - ( + col2 ) - - 43 AS col1 FROM tab2 WHERE NOT + + 42 + col0 IS NULL
----
-15
20
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - 52 * + COUNT( * ) AS col1 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-3781
SELECT - 52 * + COUNT ( * ) AS col1 FROM tab1
----
-156

query I rowsort
SELECT + 81 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT ALL - col2 DIV + - 99 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - col2 / + - 99 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - 89 AS col0 FROM tab2
----
2047
3560
5162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT + CAST( + col0 AS SIGNED ) / + col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - 64 + + 48, col0 )
----

skipif mysql # not compatible
query I rowsort label-3785
SELECT + CAST ( + col0 AS INTEGER ) / + col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - 64 + + 48, col0 )
----

query II rowsort
SELECT - col2, - col0 AS col0 FROM tab1
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT - col1 AS col2, - col0 AS col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

query II rowsort
SELECT + 15 AS col1, col1 AS col0 FROM tab1
----
15
14
15
47
15
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT CAST( - 44 AS SIGNED ) AS col1 FROM tab0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-3789
SELECT CAST ( - 44 AS INTEGER ) AS col1 FROM tab0
----
-44
-44
-44

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 64 + - - col2 BETWEEN + 43 AND ( + 63 - + + 26 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 46 ) IN ( - col0 )
----
64
77
40
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 - col2 * - 87 + + - 42 <= NULL
----

query I rowsort
SELECT 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT DISTINCT + 38 + MAX( ALL col1 + col2 ) FROM tab0 WHERE - col1 IN ( 9 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), - col1 * - ( + col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT + 38 + MAX ( ALL col1 + col2 ) FROM tab0 WHERE - col1 IN ( 9 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), - col1 * - ( + col2 ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col1 BETWEEN 48 AND + col1 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3796
SELECT + SUM( + - col0 ) * - 59 * - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3796
SELECT + SUM ( + - col0 ) * - 59 * - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 80 * col0 + col2 FROM tab2
----
3703
5160
6058

query III rowsort
SELECT * FROM tab2 WHERE + + col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3799
SELECT - 77 / + - col2 + - CAST( NULL AS DECIMAL ) + - col2 * - - 3 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 77 / + - col2 + - CAST ( NULL AS REAL ) + - col2 * - - 3 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT ALL CAST( + 81 AS SIGNED ) + col0 + - + col1 AS col0 FROM tab2
----
68
76
89

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL CAST ( + 81 AS INTEGER ) + col0 + - + col1 AS col0 FROM tab2
----
68
76
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT DISTINCT ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - col2 - + 67 AS col1 FROM tab2
----
-107
-125
-90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + col0 * + + col0 NOT IN ( - - col1 * - col1 * + - col2 + - col0, + col0 + CAST( NULL AS SIGNED ) + + col0 + col1 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3804
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + col0 * + + col0 NOT IN ( - - col1 * - col1 * + - col2 + - col0, + col0 + CAST ( NULL AS INTEGER ) + + col0 + col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT DISTINCT - 13 * - + COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT - 13 * - + COUNT ( * ) FROM tab1 AS cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT - + col1 DIV + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-3806
SELECT - + col1 / + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-47
-65
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL + + MAX( DISTINCT - - col0 ) * - 43 FROM tab1 AS cor0
----
-3913

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + + MAX ( DISTINCT - - col0 ) * - 43 FROM tab1 AS cor0
----
-3913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col0 col1, - 44 FROM tab1 AS cor0
----
4896
-44
5015
-44
6188
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT + SUM( ALL - 17 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3809
SELECT + SUM ( ALL - 17 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 22 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + col1 * - - ( - - col1 ) + - 7 + + col0 AS col1 FROM tab1 AS cor0
----
103
2293
240

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( NOT - 73 + + col1 IS NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT COUNT( - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3813
SELECT COUNT ( - col2 ) FROM tab2
----
3

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 9 FROM tab2 WHERE NOT - - col0 NOT BETWEEN NULL AND 0
----

query I rowsort
SELECT DISTINCT + 98 * + col2 + col1 FROM tab2 AS cor0
----
2305
3997
5751

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col2 * col2, col1 FROM tab0 AS cor0
----
-100
21
-2209
81
-9801
1

query I rowsort
SELECT - + 75 * + 71 AS col0 FROM tab1 AS cor0
----
-5325
-5325
-5325

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > - col1 * + 41 - + 44 * - 7 * - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL - 39 + + - COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - 39 + + - COUNT ( * ) FROM tab1 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3822
SELECT ALL + + 14 AS col2, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-3822
SELECT ALL + + 14 AS col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
14
NULL
14
NULL
14
NULL

query I rowsort
SELECT DISTINCT - 24 + col2 + + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-1192
-1841
-22

query I rowsort
SELECT ALL - + col2 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-98
431
6514

query II rowsort
SELECT - col1 * - ( - 65 ) * + 80 - - 36, ( + col1 ) FROM tab2 AS cor0 WHERE ( NULL ) = - 82
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3826
SELECT + col0 + + col0 DIV - 2 AS col1, - col2 col0 FROM tab0 AS cor0
----
44
-10
49
-99
8
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3826
SELECT + col0 + + col0 / - 2 AS col1, - col2 col0 FROM tab0 AS cor0
----
44
-10
49
-99
8
-47

query I rowsort
SELECT DISTINCT + col0 + + 63 + col2 AS col0 FROM tab2 AS cor0
----
132
167
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + + MIN( DISTINCT + 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + + MIN ( DISTINCT + 80 ) FROM tab1 AS cor0
----
80

query II rowsort
SELECT + - col0 AS col1, - ( 75 ) FROM tab2 AS cor0
----
-46
-75
-64
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE + 40 * + col2 IS NULL
----

query II rowsort
SELECT ALL + col1 + + col1 AS col1, 47 FROM tab0
----
162
47
2
47
42
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col0 * - + 80 NOT BETWEEN NULL AND NULL ) OR NOT col0 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NULL <> - ( - + col1 )
----

query I rowsort
SELECT 20 - + - 19 AS col2 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL - + MIN( DISTINCT col1 ) - + - 57 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - + MIN ( DISTINCT col1 ) - + - 57 FROM tab1 AS cor0
----
52

query I rowsort
SELECT - - col2 - + col1 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT 20 * col0 - + - 87 AS col2 FROM tab0 AS cor0
----
1827
2027
387

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 WHERE NOT - col0 + + + 1 * col2 IS NULL
----
51
85
91

query I rowsort
SELECT col0 * - 28 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT col0 * - ( + col0 ) * - - 15 + col2 AS col1 FROM tab0 AS cor0
----
-113525
-141036
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ( ( + COUNT( + 3 ) ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3841
SELECT ( ( + COUNT ( + 3 ) ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT MAX( 34 ) AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3842
SELECT MAX ( 34 ) AS col2 FROM tab0 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3843
SELECT - - CAST( - col2 AS SIGNED ) DIV + col2, + col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-3843
SELECT - - CAST ( - col2 AS INTEGER ) / + col2, + col1 FROM tab2 AS cor0
----
-1
51
-1
67
-1
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 18 <> NULL
----

query II rowsort
SELECT ALL - - col2, - col0 AS col0 FROM tab2 cor0
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + ( - col0 ) + + col2 FROM tab1
----
-59
-26
-68
-23
-96
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 58 col0, 55 * - col1 FROM tab1
----
58
-2585
58
-275
58
-770

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 NOT BETWEEN - - col0 AND + col2 * - ( + col1 ) * - col1 + - col0
----

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 WHERE col0 / - ( - col2 ) = NULL
----

query II rowsort
SELECT ALL + col1 AS col2, - 44 AS col1 FROM tab2
----
51
-44
67
-44
77
-44

query I rowsort
SELECT ( 10 ) * 37 FROM tab2
----
370
370
370

query I rowsort
SELECT DISTINCT 77 + - col2 AS col0 FROM tab1
----
-19
18
9

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IN ( + col0, ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2 + + 17 + col1 * col1, + 66 AS col1 FROM tab1
----
101
66
2294
66
309
66

query I rowsort
SELECT + col2 + - 81 FROM tab0 AS cor0
----
-34
-71
18

query I rowsort
SELECT DISTINCT col2 + + 39 AS col2 FROM tab2
----
62
79
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL 77 + COUNT( * ) * + - ( 50 ) + + + 10 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL 77 + COUNT ( * ) * + - ( 50 ) + + + 10 FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT DISTINCT - COUNT( * ) col1 FROM tab2 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-3858
SELECT DISTINCT - COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3859
SELECT * FROM tab2 AS cor0 WHERE - 58 + ( - 46 ) NOT BETWEEN + + CAST( - 13 AS SIGNED ) AND - - 78 * - + ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3859
SELECT * FROM tab2 AS cor0 WHERE - 58 + ( - 46 ) NOT BETWEEN + + CAST ( - 13 AS INTEGER ) AND - - 78 * - + ( - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col0 + col1 AS col0, + col2 AS col2 FROM tab1 cor0
----
138
68
65
96
90
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 4 IN ( - 67, - col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 / col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 / col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT ALL MAX( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL MAX ( DISTINCT + + col0 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
91

query I rowsort
SELECT DISTINCT - - 87 AS col0 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL COUNT( * ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3865
SELECT ALL COUNT ( * ) col0 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > - col2 * + col1 AND NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ALL - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - 66 FROM tab2 WHERE NULL > ( - col2 )
----

query I rowsort
SELECT 30 + - - col0 * - ( + + col0 ) AS col2 FROM tab2
----
-2086
-4066
-5595

query I rowsort
SELECT + col0 + ( - ( col0 ) ) AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 45 BETWEEN NULL AND + col1 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3872
SELECT ALL + col2 * - col2 + + + col1 DIV + - 80 AS col0 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-3872
SELECT ALL + col2 * - col2 + + + col1 / + - 80 AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT COUNT( * ) + - 52 AS col2 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-3873
SELECT COUNT ( * ) + - 52 AS col2 FROM tab2
----
-49

query I rowsort
SELECT DISTINCT + col0 + - + 66 FROM tab2 WHERE NOT 66 < ( + 96 )
----

query I rowsort
SELECT + 76 + + col2 AS col2 FROM tab0
----
123
175
86

query III rowsort
SELECT * FROM tab1 WHERE ( NOT - col2 * - - col1 + - + col2 + 76 / + + col2 - + - col0 * - col2 * - col1 BETWEEN NULL AND - + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL > 11
----

query I rowsort
SELECT DISTINCT - col1 + + - col2 FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT ALL col1 DIV + 2 AS col2 FROM tab1 AS cor0
----
2
23
7

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL col1 / + 2 AS col2 FROM tab1 AS cor0
----
2
23
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT DISTINCT + - col2 * + col1 * + 76 - - - ( CAST( NULL AS SIGNED ) ) * - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - col2 * + col1 * + 76 - - - ( CAST ( NULL AS INTEGER ) ) * - col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 + - 25 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3885
SELECT 20 * col2 DIV + col2 AS col2 FROM tab2 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-3885
SELECT 20 * col2 / + col2 AS col2 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT + col1 * - 83 AS col2 FROM tab0 cor0
----
-1743
-6723
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 34 * + + 84 col2, col2 FROM tab0 AS cor0
----
2856
10
2856
47
2856
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3888
SELECT 37 * + + 1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT 37 * + + 1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + COUNT( * ) * + + 30 FROM tab1 cor0
----
90

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) * + + 30 FROM tab1 cor0
----
90

query I rowsort
SELECT + 27 FROM tab2 AS cor0 WHERE NOT 89 >= 60
----

query I rowsort
SELECT + + col0 + + 22 * + - 25 AS col2 FROM tab0 AS cor0
----
-453
-463
-535

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT MIN( ALL + 80 ) + COUNT( * ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3893
SELECT MIN ( ALL + 80 ) + COUNT ( * ) FROM tab1
----
83

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) >= 80 + + + 33
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > ( + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 19 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 87 + + col0 col1 FROM tab0
----
117
261
281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 33 ) col0 FROM tab0 AS cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - 2 * COUNT( + + 14 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3900
SELECT - 2 * COUNT ( + + 14 ) FROM tab1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3901
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NULL >= ( + 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT + MAX( DISTINCT 89 ) - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT + MAX ( DISTINCT 89 ) - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT - COUNT( * ) * - 10 AS col2 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-3904
SELECT - COUNT ( * ) * - 10 AS col2 FROM tab0 cor0
----
30

query I rowsort
SELECT ALL + col1 - + 4 FROM tab1 AS cor0
----
1
10
43

onlyif mysql # DIV for integer division: 
query II rowsort label-3906
SELECT - col2 col1, col1 DIV + col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3906
SELECT - col2 col1, col1 / + col2 FROM tab1 AS cor0
----
-59
0
-68
0
-96
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col0 AS col2 FROM tab0 cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col0 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 90 * 43 < col2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL COUNT( * ) * MIN( - - col1 ) AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL COUNT ( * ) * MIN ( - - col1 ) AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT + - 3 FROM tab1 AS cor0 WHERE + col2 >= - 87
----
-3
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3912
SELECT * FROM tab0 WHERE + col1 * + 60 + + CAST( + col0 AS SIGNED ) NOT BETWEEN - + col2 * - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3912
SELECT * FROM tab0 WHERE + col1 * + 60 + + CAST ( + col0 AS INTEGER ) NOT BETWEEN - + col2 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT DISTINCT 87 * + COUNT( * ) AS col0 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT 87 * + COUNT ( * ) AS col0 FROM tab1
----
261

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL - ( + SUM( ALL col2 ) ) * - 76 col2 FROM tab0
----
11856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3914
SELECT ALL - ( + SUM ( ALL col2 ) ) * - 76 col2 FROM tab0
----
11856

query I rowsort
SELECT DISTINCT - + 95 AS col2 FROM tab0 cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 82 ) col2 FROM tab1
----
-82
-82
-82

query I rowsort
SELECT ALL col1 * 99 FROM tab0 WHERE NOT - col1 <= + col2 * - - col1 * + + ( - col0 )
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3918
SELECT ALL + - COUNT( * ), COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
-9

skipif mysql # not compatible
query II rowsort label-3918
SELECT ALL + - COUNT ( * ), COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
-9

query I rowsort
SELECT + ( + ( - col2 ) ) * + col2 AS col2 FROM tab1 cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - 10 + - 25 FROM tab1 AS cor0 WHERE NOT NULL <> + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT 76 * COUNT( * ) col0 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3921
SELECT 76 * COUNT ( * ) col0 FROM tab2 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT DISTINCT + MIN( - - col0 ) * COUNT( - col2 ) FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3922
SELECT DISTINCT + MIN ( - - col0 ) * COUNT ( - col2 ) FROM tab2 AS cor0
----
138

onlyif mysql # DIV for integer division: 
query II rowsort label-3923
SELECT ALL + - col1 * - + 56 * - 57 AS col0, + col1 DIV - ( 32 ) FROM tab0 cor0
----
-258552
-2
-3192
0
-67032
0

skipif mysql # not compatible
query II rowsort label-3923
SELECT ALL + - col1 * - + 56 * - 57 AS col0, + col1 / - ( 32 ) FROM tab0 cor0
----
-258552
-2
-3192
0
-67032
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col2 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT DISTINCT 99 + + col0 - - + col0 + 47 DIV col2 FROM tab1
----
201
269
281

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT 99 + + col0 - - + col0 + 47 / col2 FROM tab1
----
201
269
281

onlyif mysql # DIV for integer division: 
query II rowsort label-3926
SELECT ALL - 28 + + 72 - - - col2 DIV + - 84 AS col0, + col1 FROM tab0
----
44
21
44
81
45
1

skipif mysql # not compatible
query II rowsort label-3926
SELECT ALL - 28 + + 72 - - - col2 / + - 84 AS col0, + col1 FROM tab0
----
44
21
44
81
45
1

query I rowsort
SELECT ALL + ( - col0 ) + - col0 AS col0 FROM tab1
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL MAX( col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL MAX ( col1 ) AS col1 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT + col1 DIV + col2 + - 61 col2 FROM tab1 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3929
SELECT + col1 / + col2 + - 61 col2 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT - col0 + - 96 - + col2 AS col0 FROM tab0 cor0
----
-158
-193
-292

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN + ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT + - 61 - SUM( - - col2 ) FROM tab2 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + - 61 - SUM ( - - col2 ) FROM tab2 cor0
----
-182

query I rowsort
SELECT col0 - - 76 FROM tab1 AS cor0
----
127
161
167

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3935
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + col1 > 7 / - - CAST( NULL AS SIGNED ) * - 62 + - col1
----

skipif mysql # not compatible
query III rowsort label-3935
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + col1 > 7 / - - CAST ( NULL AS INTEGER ) * - 62 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT - 8 + + COUNT( * ) AS col1 FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3936
SELECT - 8 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * + - 42 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 0 + - 16 FROM tab0 AS cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col2 FROM tab2
----
26
26
26

query I rowsort
SELECT 22 + - - col1 AS col2 FROM tab2
----
73
89
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3941
SELECT DISTINCT - col1 AS col1, + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT - col1 AS col1, + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-51
51
-67
67
-77
77

query I rowsort
SELECT 15 * - col0 FROM tab0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3943
SELECT ALL - 27 DIV COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - 27 / COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 7 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) * - 77 AS col1 FROM tab0
----
1155
6699
7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 81 AS col2, col1 col2 FROM tab1
----
-81
14
-81
47
-81
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT + 51 * COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3947
SELECT + 51 * COUNT ( * ) FROM tab0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT DISTINCT - 34 DIV - 7 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - 34 / - 7 FROM tab1
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + 15 col1 FROM tab0
----
1
15
21
15
81
15

query II rowsort
SELECT ALL 67 AS col0, col2 * - col2 * + + 50 FROM tab2
----
67
-168200
67
-26450
67
-80000

query I rowsort
SELECT DISTINCT + col2 * + ( + - col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT DISTINCT + 9 * 94 + col0 FROM tab1 AS cor0
----
897
931
937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT 54 + + CAST( - col0 AS SIGNED ) - - + col0 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT 54 + + CAST ( - col0 AS INTEGER ) - - + col0 FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
54

query I rowsort
SELECT ALL - + 67 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT * FROM tab0 WHERE NOT - 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - + col1 * - col1 * - + col2, col0 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-308367
1230
-4410
1914
-99
194

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT DISTINCT COUNT( * ) AS col1, 86 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
86

skipif mysql # not compatible
query II rowsort label-3957
SELECT DISTINCT COUNT ( * ) AS col1, 86 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0
86

query I rowsort
SELECT col1 + - + ( + 5 ) FROM tab2 AS cor0
----
46
62
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT - - CAST( MIN( - 45 ) AS SIGNED ) + + + COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3959
SELECT - - CAST ( MIN ( - 45 ) AS INTEGER ) + + + COUNT ( * ) FROM tab0 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3960
SELECT DISTINCT - col1 DIV - - col1 - - col2 AS col2 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT - col1 / - - col1 - - col2 AS col2 FROM tab0 AS cor0
----
46
9
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT COUNT( * ) + + + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3961
SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab2 cor0
----
6

query I rowsort
SELECT - + col1 + + 66 AS col0 FROM tab1 cor0
----
19
52
61

query II rowsort
SELECT - 13 + col2, col2 FROM tab1 AS cor0
----
46
59
55
68
83
96

query I rowsort
SELECT - 17 + + ( col1 ) - + ( + col2 ) + + col2 FROM tab0 AS cor0
----
-16
4
64

query I rowsort
SELECT + col1 * + - col0 + - - col0 AS col0 FROM tab0 AS cor0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3966
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-3966
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query II rowsort
SELECT 23 AS col2, col0 + col2 + - col2 * + col0 * + col0 AS col2 FROM tab2
----
23
-163736
23
-326117
23
-48599

onlyif mysql # DIV for integer division: 
query I rowsort label-3968
SELECT ALL col1 + + col1 + + - 22 DIV - col2 * 81 * - col2 AS col1 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL col1 + + col1 + + - 22 / - col2 * 81 * - col2 AS col1 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + 63 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col1, + col0 + + col1 AS col1 FROM tab1
----
-14
65
-47
138
-5
90

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE - + col0 * ( col0 ) / + + 36 IS NULL
----

query I rowsort
SELECT DISTINCT - 9 * col0 * + + col0 + + col2 + - col0 FROM tab0
----
-1993
-68198
-84679

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3973
SELECT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3973
SELECT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col0 AS col0, col0 FROM tab1 WHERE NULL > + col2
----

query I rowsort
SELECT DISTINCT col0 + 24 + - + col1 - - + ( - col2 ) + 26 * + col0 FROM tab2
----
1192
1635
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL MAX( ALL 59 ) AS col0 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL MAX ( ALL 59 ) AS col0 FROM tab0 AS cor0
----
59

query II rowsort
SELECT + ( col2 ) - col0 AS col2, + 49 * + ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-77
490
2
4851
32
2303

query II rowsort
SELECT DISTINCT + 37 AS col2, col1 AS col2 FROM tab0 AS cor0
----
37
1
37
21
37
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + - ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col0 * 13 + + + 49 - - + ( - - col2 ) * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 - + col1 - - + 11 AS col0 FROM tab0 AS cor0
----
-55
107
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE 40 NOT BETWEEN col2 AND - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 52 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col2 * - + col2 col1, - col0 AS col2 FROM tab0
----
1000
-87
103823
-15
970299
-97

query II rowsort
SELECT + col2, 17 FROM tab2
----
23
17
40
17
58
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col0 col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 32 * - col1 FROM tab1
----
-1504
-160
-448

query II rowsort
SELECT ALL col0 AS col0, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - + 36 * 24 AS col1 FROM tab2 AS cor0
----
-864
-864
-864

query I rowsort
SELECT col2 * 82 AS col1 FROM tab2 AS cor0
----
1886
3280
4756

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 69 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 41 AS col2, + col0 * - col1 AS col0 FROM tab2 cor0
----
41
-2346
41
-4928
41
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-3993
SELECT ALL + - col1 DIV 12 AS col0 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + - col1 / 12 AS col0 FROM tab1 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - col2 IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT col2 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT DISTINCT 85 * - CAST( ( + 73 ) AS SIGNED ) col1 FROM tab0
----
-6205

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3997
SELECT DISTINCT 85 * - CAST ( ( + 73 ) AS INTEGER ) col1 FROM tab0
----
-6205

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3998
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3998
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT - 82 * + col1 + + col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 66 AND - col0
----

query I rowsort
SELECT col2 * 10 + + col2 AS col1 FROM tab2
----
253
440
638

query I rowsort
SELECT col2 + - - 95 + - col1 FROM tab1
----
116
149
177

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE + col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT COUNT( * ) / - + ( - 90 ) * CAST( NULL AS SIGNED ) + COUNT( DISTINCT + col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT COUNT ( * ) / - + ( - 90 ) * CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + col2 ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4005
SELECT ( col1 ) * + + 54 * + - 56 / + col1 / - CAST( NULL AS SIGNED ) + - col2 + - + 47 * col2 + col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ( col1 ) * + + 54 * + - 56 / + col1 / - CAST ( NULL AS INTEGER ) + - col2 + - + 47 * col2 + col0 + - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 10 + + 29 - + + col0 FROM tab0
----
-48
-58
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL ( - ( - - col1 ) ) * - - col1 - + CAST( NULL AS SIGNED ) + + 16 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL ( - ( - - col1 ) ) * - - col1 - + CAST ( NULL AS INTEGER ) + + 16 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4008
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + + CAST( NULL AS SIGNED ) ) AND + 3
----

skipif mysql # not compatible
query III rowsort label-4008
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + ( + + CAST ( NULL AS INTEGER ) ) AND + 3
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 40 * - ( - col2 ) FROM tab2 AS cor0
----
1600
2320
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4011
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT SUM( + + 36 ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT SUM ( + + 36 ) FROM tab0
----
108

query I rowsort
SELECT DISTINCT - + ( col1 ) FROM tab0 AS cor0 WHERE NOT + col2 * - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4014
SELECT ALL + COUNT( * ) AS col2, COUNT( * ) + + 27 AS col2 FROM tab1 AS cor0
----
3
30

skipif mysql # not compatible
query II rowsort label-4014
SELECT ALL + COUNT ( * ) AS col2, COUNT ( * ) + + 27 AS col2 FROM tab1 AS cor0
----
3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT DISTINCT + + MIN( ALL col1 ) col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4015
SELECT DISTINCT + + MIN ( ALL col1 ) col2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 <= - 50 - - col2 OR NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 <= - 50 - - col2 OR NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * 24 < col2 * - 47
----
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * 24 < col2 * - 47
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4018
SELECT + - 80 AS col2, COUNT( * ) FROM tab1 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-4018
SELECT + - 80 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-80
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + SUM( + col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4019
SELECT + SUM ( + col1 ) AS col1 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 59 * + col0 col0 FROM tab2
----
-151040
-256650
-62422

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 15 * + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT 49 * + col1 AS col2 FROM tab2 AS cor0
----
2499
3283
3773

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4024
SELECT ALL - ( COUNT( * ) ) DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - ( COUNT ( * ) ) / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query III rowsort
SELECT * FROM tab2 WHERE 76 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 27 + - 87 * col0 AS col0 FROM tab0
----
-1278
-7542
-8412

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT ALL + col0 DIV + col2 + - - col0 AS col1 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL + col0 / + col2 + - - col0 AS col1 FROM tab2 AS cor0
----
48
65
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT ALL COUNT( * ) * + MIN( - col1 ) * - ( - 42 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL COUNT ( * ) * + MIN ( - col1 ) * - ( - 42 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT + COUNT( * ) * MIN( col2 ) + - + 43 AS col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4029
SELECT + COUNT ( * ) * MIN ( col2 ) + - + 43 AS col2 FROM tab0 AS cor0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-4030
SELECT col0 DIV - - 25 + - col1 AS col2 FROM tab1 AS cor0
----
-12
-2
-44

skipif mysql # not compatible
query I rowsort label-4030
SELECT col0 / - - 25 + - col1 AS col2 FROM tab1 AS cor0
----
-12
-2
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT + CAST( NULL AS SIGNED ) col0, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4031
SELECT + CAST ( NULL AS INTEGER ) col0, + col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4033
SELECT + MIN( + - col2 ) AS col2 FROM tab0 WHERE ( NOT + 41 >= ( CAST( NULL AS SIGNED ) ) * - col2 + - 77 + + col1 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT + MIN ( + - col2 ) AS col2 FROM tab0 WHERE ( NOT + 41 >= ( CAST ( NULL AS INTEGER ) ) * - col2 + - 77 + + col1 * - col0 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col0 = - ( 79 ) * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 20, + col0 col0 FROM tab1
----
20
51
20
85
20
91

query I rowsort
SELECT ALL - 11 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4037
SELECT ALL + 66 + + CAST( - - ( + - MAX( + + col0 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + 66 + + CAST ( - - ( + - MAX ( + + col0 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col1 - + + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT DISTINCT - ( COUNT( 43 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - ( COUNT ( 43 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 40 col1 FROM tab1 AS cor0
----
40
40
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - col1 <> + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT ALL col2 * 21 DIV col2 * - col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL col2 * 21 / col2 * - col2 FROM tab1 AS cor0
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab2 WHERE col0 * + - col1 - + - col1 / col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab2 WHERE col0 * + - col1 - + - col1 / col2 = NULL
----
0

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE 32 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - MAX( DISTINCT + + ( 20 ) ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-4045
SELECT - MAX ( DISTINCT + + ( 20 ) ) AS col2 FROM tab2
----
-20

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( 33 * 17 * + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * + - col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT ALL - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT ALL 5 DIV - 14 + + 69 AS col1 FROM tab2
----
69
69
69

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL 5 / - 14 + + 69 AS col1 FROM tab2
----
69
69
69

query I rowsort
SELECT DISTINCT + + ( + 25 ) FROM tab2 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT MAX( + 24 ) AS col0 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT MAX ( + 24 ) AS col0 FROM tab1 AS cor0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4052
SELECT COUNT( - - CAST( 81 AS SIGNED ) ) + + 30 + + + MAX( + - col2 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4052
SELECT COUNT ( - - CAST ( 81 AS INTEGER ) ) + + 30 + + + MAX ( + - col2 ) FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT + + COUNT( * ) FROM tab0 WHERE NULL < - 75
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT + + COUNT ( * ) FROM tab0 WHERE NULL < - 75
----
0

query II rowsort
SELECT DISTINCT 11 * col2 * - col0, + col2 FROM tab1
----
-53856
96
-55165
59
-68068
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT 75 + MAX( + + 47 ) AS col0, COUNT( + + col1 ) FROM tab2
----
122
3

skipif mysql # not compatible
query II rowsort label-4055
SELECT 75 + MAX ( + + 47 ) AS col0, COUNT ( + + col1 ) FROM tab2
----
122
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT - 26 + - - COUNT( * ) + + - COUNT( * ) col2 FROM tab2
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4056
SELECT - 26 + - - COUNT ( * ) + + - COUNT ( * ) col2 FROM tab2
----
-26

query I rowsort
SELECT DISTINCT - col2 + + ( + - ( - col1 ) ) FROM tab0
----
-98
11
34

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - ( col2 ) + - - 67 AS col0 FROM tab1 cor0
----
-1
-29
8

query I rowsort
SELECT ALL - - 6 + - col0 AS col0 FROM tab0 cor0
----
-81
-9
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4061
SELECT ALL + + col0 DIV col2 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + + col0 / col2 AS col2 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT ALL - + 2 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT 51 * - + col2 AS col2 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT DISTINCT 84 * + - 75 FROM tab2
----
-6300

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + ( - col2 ) * col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4066
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 0 IS NULL
----
-3

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + col1 * + + col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab0 cor0
----
64
64
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT ( - + SUM( - 17 ) ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4070
SELECT ( - + SUM ( - 17 ) ) FROM tab0 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT DISTINCT - - col2 DIV + - col2 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - - col2 / + - col2 AS col2 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT - col0, col0 + + col1 AS col2 FROM tab2 AS cor0
----
-46
97
-64
141
-75
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT ALL + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) * + ( - - ( + 0 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + ( - - ( + 0 ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 74 AS col0 FROM tab0 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4075
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 * + 50 * ( + col2 ) * col2 = - - CAST( NULL AS SIGNED ) + - + 37 - + col0
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT * FROM tab0 AS cor0 WHERE col1 * - col0 * + 50 * ( + col2 ) * col2 = - - CAST ( NULL AS INTEGER ) + - + 37 - + col0
----

query I rowsort
SELECT ALL col2 + - + col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL - col2 * + ( + - col2 ) AS col2 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4078
SELECT - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 80 col0 FROM tab1 AS cor0
----
-12
-21
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL COUNT( * ) + + - 99 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL COUNT ( * ) + + - 99 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT ALL + - col0 + 83 FROM tab0 AS cor0
----
-14
-4
68

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE ( - + col1 ) / - - col1 + - ( + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT - COUNT( * ) * - 42 AS col0 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - COUNT ( * ) * - 42 AS col0 FROM tab0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT ALL - col0 DIV 26 * - - col0 AS col2 FROM tab2
----
-128
-150
-46

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - col0 / 26 * - - col0 AS col2 FROM tab2
----
-128
-150
-46

query I rowsort
SELECT 16 * + col2 * + - col0 - - 44 AS col2 FROM tab1
----
-78292
-80196
-98964

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE NULL >= ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + COUNT( + 44 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4088
SELECT + COUNT ( + 44 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
1
21
81

query II rowsort
SELECT - ( + - col2 ), - col1 * col0 AS col0 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col0 - - ( col1 ) * - + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 + + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT ( + - 8 ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4093
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT ( + - 8 ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT DISTINCT - MAX( DISTINCT - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT - MAX ( DISTINCT - col2 ) FROM tab1
----
59

query I rowsort
SELECT + - 20 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT CAST( + CAST( + - 36 AS SIGNED ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2916
-36
-756

skipif mysql # not compatible
query I rowsort label-4096
SELECT CAST ( + CAST ( + - 36 AS INTEGER ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2916
-36
-756

query I rowsort
SELECT + ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT - SUM( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4098
SELECT - SUM ( DISTINCT - col2 ) col1 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT - 78 * + + col0 AS col1 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4100
SELECT ALL CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT DISTINCT + col1 DIV + + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + col1 / + + col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4102
SELECT DISTINCT - col2 DIV + + 39 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT - col2 / + + 39 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT CAST( NULL AS SIGNED ) / 22 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 22 AS col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL 80, - col0 AS col2 FROM tab0
----
80
-15
80
-87
80
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT + 53, - SUM( + - 23 ) AS col0 FROM tab0
----
53
69

skipif mysql # not compatible
query II rowsort label-4105
SELECT + 53, - SUM ( + - 23 ) AS col0 FROM tab0
----
53
69

query II rowsort
SELECT col0, + 21 AS col2 FROM tab1
----
51
21
85
21
91
21

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT MIN( + - col2 ) * - COUNT( * ) AS col2 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-4108
SELECT MIN ( + - col2 ) * - COUNT ( * ) AS col2 FROM tab1
----
288

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - + col1 * + + col0 IS NOT NULL
----
-15
-87
-97

query II rowsort
SELECT ALL + col1 * - col1 - + col1 * col2 AS col2, col2 AS col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT - col0 + + 46 * ( + - 85 ) DIV + - col0 AS col2 FROM tab0 AS cor0
----
-43
-57
245

skipif mysql # not compatible
query I rowsort label-4111
SELECT - col0 + + 46 * ( + - 85 ) / + - col0 AS col2 FROM tab0 AS cor0
----
-43
-57
245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4112
SELECT + col2 * col1 + - CAST( NULL AS SIGNED ) + - col1 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT + col2 * col1 + - CAST ( NULL AS INTEGER ) + - col1 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL - 94 - - COUNT( * ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - 94 - - COUNT ( * ) FROM tab1
----
-91

query I rowsort
SELECT col1 * col0 + + 48 FROM tab1
----
4325
473
762

query III rowsort
SELECT * FROM tab0 WHERE ( NULL NOT IN ( col0 + col2, - 85 + 26 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4116
SELECT * FROM tab1 WHERE NOT ( NOT CAST( - + col2 AS SIGNED ) + + 81 < NULL )
----

skipif mysql # not compatible
query III rowsort label-4116
SELECT * FROM tab1 WHERE NOT ( NOT CAST ( - + col2 AS INTEGER ) + + 81 < NULL )
----

query I rowsort
SELECT - 99 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-99
-99
-99

query I rowsort
SELECT DISTINCT col0 / col0 AS col2 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT SUM( DISTINCT + 91 ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4119
SELECT SUM ( DISTINCT + 91 ) AS col0 FROM tab0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE col1 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4120
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE col1 <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT COUNT( * ) * + 71 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT COUNT ( * ) * + 71 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 + 93 * col0 FROM tab1
----
4839
7964
8531

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT DISTINCT + COUNT( DISTINCT col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + COUNT ( DISTINCT col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 AS col0 FROM tab1 WHERE NOT ( ( ( 44 ) ) ) > ( - col0 * 67 )
----

query I rowsort
SELECT 98 - 10 * - col1 FROM tab0 WHERE NULL = - col1
----

query I rowsort
SELECT - 76 + col2 AS col2 FROM tab0
----
-29
-66
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + COUNT( * ) + 62 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4128
SELECT + COUNT ( * ) + 62 AS col2 FROM tab1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4129
SELECT - CAST( + 52 AS SIGNED ) * ( + 96 * COUNT( - col1 ) ) FROM tab0
----
-14976

skipif mysql # not compatible
query I rowsort label-4129
SELECT - CAST ( + 52 AS INTEGER ) * ( + 96 * COUNT ( - col1 ) ) FROM tab0
----
-14976

query I rowsort
SELECT ( + col0 ) * 96 AS col0 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4131
SELECT CAST( + 58 AS DECIMAL ) AS col2 FROM tab1 WHERE ( 79 + + 35 * - 85 ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4131
SELECT CAST ( + 58 AS REAL ) AS col2 FROM tab1 WHERE ( 79 + + 35 * - 85 ) < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT - COUNT( * ) FROM tab2 WHERE ( - CAST( - 91 AS SIGNED ) * + 7 ) = col2 - 19 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT - COUNT ( * ) FROM tab2 WHERE ( - CAST ( - 91 AS INTEGER ) * + 7 ) = col2 - 19 * col0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + 81 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 = ( col1 * - col0 + + col2 )
----

query I rowsort
SELECT ( - 81 ) FROM tab0
----
-81
-81
-81

query I rowsort
SELECT - 73 + col1 AS col0 FROM tab1
----
-26
-59
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT ( CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4137
SELECT ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col2 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + col0 * 55 AS col2 FROM tab0
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL + 27 * - COUNT( * ) col2 FROM tab1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4140
SELECT ALL + 27 * - COUNT ( * ) col2 FROM tab1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT - SUM( ALL col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT col2 FROM tab1 WHERE + col2 <= + col0 / + 30 + col1 * 92
----
59
68
96

query I rowsort
SELECT ALL - col1 * col1 + 41 * col1 AS col2 FROM tab1
----
-282
180
378

query I rowsort
SELECT ALL + ( 14 ) / col0 FROM tab0 AS cor0 WHERE col0 * + 40 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ( - COUNT( * ) ) - COUNT( * ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ( - COUNT ( * ) ) - COUNT ( * ) FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT DISTINCT - 27 + + 14 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT - 27 + + 14 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE ( 72 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab1 cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT ALL - COUNT( * ) - + COUNT( * ) DIV - 4 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - COUNT ( * ) - + COUNT ( * ) / - 4 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT DISTINCT 50 - + COUNT( * ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT 50 - + COUNT ( * ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 12 ) NOT BETWEEN col2 + - 33 AND 81
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 44 * 34 col1 FROM tab0
----
1497
1517
1577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT DISTINCT + col1 * CAST( - col0 AS SIGNED ) col2 FROM tab0 WHERE + col0 > col2
----
-1827

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4153
SELECT DISTINCT + col1 * CAST ( - col0 AS INTEGER ) col2 FROM tab0 WHERE + col0 > col2
----
-1827

query III rowsort
SELECT * FROM tab2 WHERE NOT + 31 > ( NULL )
----

query I rowsort
SELECT + 35 * + col0 AS col0 FROM tab0
----
3045
3395
525

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + col1 * - 91 FROM tab2 WHERE NOT - 68 <= + col2 + 37 * + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT MAX( - col2 ) FROM tab0 WHERE NOT NULL = 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT MAX ( - col2 ) FROM tab0 WHERE NOT NULL = 71
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN 55 AND 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( col0 ) BETWEEN - 63 AND col1 * - 34
----
51
67
77

query I rowsort
SELECT ALL 82 * col0 FROM tab2
----
3772
5248
6150

query I rowsort
SELECT DISTINCT + 57 * + col2 + - ( + 92 - ( col2 + + col0 ) ) FROM tab1 cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT col2 DIV + ( + 98 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT col2 / + ( + 98 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4165
SELECT ALL CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT MIN( col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4166
SELECT MIN ( col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4167
SELECT 99 AS col2, - SUM( ALL + col2 ) FROM tab1
----
99
-223

skipif mysql # not compatible
query II rowsort label-4167
SELECT 99 AS col2, - SUM ( ALL + col2 ) FROM tab1
----
99
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 69 col2 FROM tab0
----
1035
6003
6693

query I rowsort
SELECT - 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query II rowsort label-4170
SELECT + COUNT( * ) col0, - 92 AS col1 FROM tab2 cor0
----
3
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4170
SELECT + COUNT ( * ) col0, - 92 AS col1 FROM tab2 cor0
----
3
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4171
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4171
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT - + MAX( ALL - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 7 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT - + MAX ( ALL - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 7 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + 85 IS NULL
----
-23
-26
45

query II rowsort
SELECT + - col1, col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 51 IN ( col1 / + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 57 / - 57 <> NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 97 AS col2 FROM tab2 AS cor0
----
46
97
64
97
75
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 36 ) >= col2
----
15
81
47
97
1
99

query I rowsort
SELECT col1 * + 2 + ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT ALL + 39 * - + 11 + MIN( DISTINCT + col0 ) + 12 * + SUM( + 33 ) FROM tab0
----
774

skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL + 39 * - + 11 + MIN ( DISTINCT + col0 ) + 12 * + SUM ( + 33 ) FROM tab0
----
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL COUNT( * ) * - 81 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL COUNT ( * ) * - 81 FROM tab0
----
-243

query I rowsort
SELECT - ( col1 ) * - col2 + + 67 * col1 AS col2 FROM tab2
----
4590
8239
8375

query I rowsort
SELECT DISTINCT - col1 + + 97 * + - col2 AS col0 FROM tab2
----
-2282
-3957
-5693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT + 6 + col0 * + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT + 6 + col0 * + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4186
SELECT ALL + col0 * col2 + col2 * col1 FROM tab1 AS cor0 WHERE CAST( + 69 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + col0 * col2 + col2 * col1 FROM tab1 AS cor0 WHERE CAST ( + 69 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT NULL <= + col0
----

query I rowsort
SELECT ( - - col1 ) AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 99 + - col0
----

query I rowsort
SELECT - col0 FROM tab1 WHERE + + col0 NOT BETWEEN ( - col2 ) AND col0
----

query I rowsort
SELECT - col0 - 67 AS col1 FROM tab2
----
-113
-131
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT ALL 92 * + + SUM( - ( + 66 ) ) AS col0 FROM tab1
----
-18216

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL 92 * + + SUM ( - ( + 66 ) ) AS col0 FROM tab1
----
-18216

onlyif mysql # DIV for integer division: 
query I rowsort label-4193
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-4193
SELECT DISTINCT + col0 / + col2 col2 FROM tab0
----
0
8

query I rowsort
SELECT ALL + 49 + - ( + - col1 ) * - 25 + col1 - + col2 * + col1 FROM tab1 AS cor0
----
-1631
-366
-4275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 33 >= NULL AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - COUNT( ALL - ( 41 ) ) - - - 99 AS col1 FROM tab2 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - COUNT ( ALL - ( 41 ) ) - - - 99 AS col1 FROM tab2 cor0
----
-102

query I rowsort
SELECT - + col0 + + col1 + + + col2 FROM tab2 cor0
----
28
50
53

query I rowsort
SELECT DISTINCT 30 * col1 + col1 FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 / + 23 AND + - 92
----

query II rowsort
SELECT DISTINCT 21, - 7 AS col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT col0 * + 56 + + 36 - col1 FROM tab1 AS cor0
----
2878
4791
5085

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - - col0 * - col1 col0 FROM tab0 cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT DISTINCT + col1 / + + 26 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT + col1 / + + 26 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - ( + col1 ) * + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE col1 = 38
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col1 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - MIN( DISTINCT + - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4206
SELECT - MIN ( DISTINCT + - col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT col2 * + - col2 AS col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT ALL - SUM( DISTINCT - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL - SUM ( DISTINCT - + col1 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-4209
SELECT ALL + COUNT( * ), - 39 AS col2 FROM tab1
----
3
-39

skipif mysql # not compatible
query II rowsort label-4209
SELECT ALL + COUNT ( * ), - 39 AS col2 FROM tab1
----
3
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4210
SELECT DISTINCT - col1 AS col0, + 25 / 66 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-4210
SELECT DISTINCT - col1 AS col0, + 25 / 66 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4211
SELECT DISTINCT 28, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
28
NULL

skipif mysql # not compatible
query II rowsort label-4211
SELECT DISTINCT 28, CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
28
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4212
SELECT + col0 DIV 24 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT + col0 / 24 FROM tab2 AS cor0
----
1
2
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= ( - - col0 * + col1 + + col0 )
----

query I rowsort
SELECT - 67 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( + - col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4216
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( + - col2 ) IS NULL
----
3

query I rowsort
SELECT ALL AVG ( col2 ) * + + 53 + 58 FROM tab0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4218
SELECT ALL SUM( + col1 ), + 83 AS col1 FROM tab1
----
66
83

skipif mysql # not compatible
query II rowsort label-4218
SELECT ALL SUM ( + col1 ), + 83 AS col1 FROM tab1
----
66
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4219
SELECT ALL - 26 * + ( + col1 ) + - + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - 26 * + ( + col1 ) + - + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 42 + col0 + - + col1 AS col1 FROM tab2 AS cor0
----
29
37
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4221
SELECT + - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT + - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL + + MAX( - + col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + + MAX ( - + col1 ) AS col1 FROM tab1 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT DISTINCT - col2 * 41 + 81 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 99 >= + 9 * - col1 * + CAST( NULL AS SIGNED ) * - col2
----

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - col2 * 41 + 81 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 99 >= + 9 * - col1 * + CAST ( NULL AS INTEGER ) * - col2
----

query I rowsort
SELECT ALL - col2 * 71 AS col2 FROM tab2
----
-1633
-2840
-4118

query I rowsort
SELECT DISTINCT 56 * + col0 * + col2 + - - col2 + - col2 * + 65 FROM tab0
----
36472
48080
531432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE ( col1 ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( - 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT DISTINCT - ( 23 ) - - SUM( - + 6 ) AS col0 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - ( 23 ) - - SUM ( - + 6 ) AS col0 FROM tab1 AS cor0
----
-41

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN ( - col0 ) AND - col2 + - col1 AND - col2 + col1 * + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - - col0 - - col2 col2, - ( col0 ) * + + 4 AS col0 FROM tab2 AS cor0
----
18
-184
27
-256
66
-300

query I rowsort
SELECT DISTINCT - col1 * + 75 - - col1 + - col1 + col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT COUNT( * ) * 67 AS col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT COUNT ( * ) * 67 AS col0 FROM tab1 AS cor0
----
201

query I rowsort
SELECT - + 14 + + col2 FROM tab0 AS cor0
----
-4
33
85

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT + 85 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT MIN( - 15 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-15

skipif mysql # not compatible
query I rowsort label-4237
SELECT MIN ( - 15 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4238
SELECT ALL - 39 AS col1, - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
18 values hashing to efee648e1828ba26239bedb923ede70d

skipif mysql # not compatible
query II rowsort label-4238
SELECT ALL - 39 AS col1, - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
18 values hashing to efee648e1828ba26239bedb923ede70d

query I rowsort
SELECT col1 * - col1 * col1 FROM tab1
----
-103823
-125
-2744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT ALL + CAST( ( + - COUNT( * ) ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4240
SELECT ALL + CAST ( ( + - COUNT ( * ) ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 * - + 40 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab2 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - - col2 * + col0 col0 FROM tab1 AS cor0 WHERE - col2 / - + 27 IS NOT NULL
----
4992
5074
6256

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 81 ) NOT BETWEEN - 59 AND - col1 * + + 85 * + col2 * + + 52 + - 60
----

query I rowsort
SELECT ALL + 33 - - col2 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( ( - 42 ) + - 96 ) AND - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT DISTINCT - SUM( + + ( - col1 ) ) DIV COUNT( * ) AS col1 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT - SUM ( + + ( - col1 ) ) / COUNT ( * ) AS col1 FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4247
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4247
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT - MAX( DISTINCT - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4249
SELECT - MAX ( DISTINCT - col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - 27 * - + 61 - COUNT( * ) FROM tab1 WHERE NOT + 11 * - 79 + + col1 - 91 IS NULL
----
1644

skipif mysql # not compatible
query I rowsort label-4250
SELECT - 27 * - + 61 - COUNT ( * ) FROM tab1 WHERE NOT + 11 * - 79 + + col1 - 91 IS NULL
----
1644

query I rowsort
SELECT ALL - col1 * + 90 FROM tab1
----
-1260
-4230
-450

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT - ( + 53 ) DIV + - col1 AS col2 FROM tab0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-4252
SELECT - ( + 53 ) / + - col1 AS col2 FROM tab0
----
0
2
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4253
SELECT + - col1 DIV - col1 + - col2 FROM tab2 cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-4253
SELECT + - col1 / - col1 + - col2 FROM tab2 cor0
----
-22
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT ALL - 15 DIV COUNT( * ) col0 FROM tab0 cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT ALL - 15 / COUNT ( * ) col0 FROM tab0 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT 15 + + ( COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
24

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT 15 + + ( COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
24

query I rowsort
SELECT + 17 * - - col0 FROM tab0 AS cor0
----
1479
1649
255

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - col2
----

query I rowsort
SELECT DISTINCT - col2 * + 77 * col2 FROM tab1 AS cor0
----
-268037
-356048
-709632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + CAST( + 59 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4260
SELECT + CAST ( + 59 AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT + CAST( - col0 AS SIGNED ) * + 55 + col2 AS col0 FROM tab1
----
-2709
-4616
-4937

skipif mysql # not compatible
query I rowsort label-4261
SELECT + CAST ( - col0 AS INTEGER ) * + 55 + col2 AS col0 FROM tab1
----
-2709
-4616
-4937

query I rowsort
SELECT ALL ( + col1 ) + - 20 AS col0 FROM tab2
----
31
47
57

query II rowsort
SELECT + 60 + + - col2, col2 FROM tab0
----
-39
99
13
47
50
10

query I rowsort
SELECT DISTINCT - col1 + - - 27 AS col1 FROM tab2
----
-24
-40
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4265
SELECT ALL - ( - col2 ) + - - col2 AS col2, 18 - + CAST( NULL AS SIGNED ) FROM tab1
----
118
NULL
136
NULL
192
NULL

skipif mysql # not compatible
query II rowsort label-4265
SELECT ALL - ( - col2 ) + - - col2 AS col2, 18 - + CAST ( NULL AS INTEGER ) FROM tab1
----
118
NULL
136
NULL
192
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4266
SELECT ALL - 96 * 78 DIV - + 67 FROM tab0 cor0
----
111
111
111

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL - 96 * 78 / - + 67 FROM tab0 cor0
----
111
111
111

query I rowsort
SELECT 34 - 91 AS col2 FROM tab0
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4268
SELECT 26 * - col0 - - col1 DIV - - col1 FROM tab0
----
-2261
-2521
-389

skipif mysql # not compatible
query I rowsort label-4268
SELECT 26 * - col0 - - col1 / - - col1 FROM tab0
----
-2261
-2521
-389

query III rowsort
SELECT * FROM tab1 WHERE 5 + - - col0 + col2 NOT IN ( - 49, col0, + + col0 / - ( + col1 ) + - + 42 ) AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 34 + - + col0 + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT + - MIN( DISTINCT - + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT + - MIN ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
81

query II rowsort
SELECT - col0 * + 77 + - 51, + col1 AS col0 FROM tab2 AS cor0
----
-3593
51
-4979
77
-5826
67

query I rowsort
SELECT ALL + col1 * col0 + - + col2 FROM tab0 cor0
----
-2
1168
1817

query I rowsort
SELECT DISTINCT - - col0 * + - ( + - col2 ) * - - col0 + col2 FROM tab2 AS cor0
----
163880
326308
48691

query II rowsort
SELECT DISTINCT col0, col0 * col1 FROM tab1 AS cor0
----
51
714
85
425
91
4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT ALL - col0 * col0 * 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-4276
SELECT ALL - col0 * col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT CAST( 81 AS SIGNED ) AS col1 FROM tab2
----
81
81
81

skipif mysql # not compatible
query I rowsort label-4277
SELECT CAST ( 81 AS INTEGER ) AS col1 FROM tab2
----
81
81
81

query I rowsort
SELECT col1 * col1 * 16 AS col1 FROM tab0
----
104976
16
7056

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4279
SELECT DISTINCT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * - col1 - + 7 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4279
SELECT DISTINCT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * - col1 - + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4280
SELECT + ( - - 32 ) col0, CAST( NULL AS SIGNED ) * - col1 * col1 AS col1 FROM tab2
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4280
SELECT + ( - - 32 ) col0, CAST ( NULL AS INTEGER ) * - col1 * col1 AS col1 FROM tab2
----
32
NULL
32
NULL
32
NULL

query I rowsort
SELECT + 72 * + + col2 - col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT + ( SUM( 7 ) ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4282
SELECT + ( SUM ( 7 ) ) AS col1 FROM tab2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL + - CAST( NULL AS SIGNED ) + + COUNT( ALL - + col2 ) * 52 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - 51 AND - 63 + 0 + col1 * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + - CAST ( NULL AS INTEGER ) + + COUNT ( ALL - + col2 ) * 52 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - 51 AND - 63 + 0 + col1 * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - ( 14 ) * + SUM( - col2 ) + + - 40 AS col0 FROM tab2
----
1654

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - ( 14 ) * + SUM ( - col2 ) + + - 40 AS col0 FROM tab2
----
1654

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + + 57 * + 68 + - 90 * MAX( DISTINCT col2 ) + - 23 * + MAX( + col2 ) FROM tab0 AS cor0
----
-7311

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + + 57 * + 68 + - 90 * MAX ( DISTINCT col2 ) + - 23 * + MAX ( + col2 ) FROM tab0 AS cor0
----
-7311

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 32 NOT IN ( - + 11 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * - col0 * + 88 col0 FROM tab0
----
-551232
-614592
-95040

query I rowsort
SELECT DISTINCT ( 46 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT - ( - MIN( - col1 ) ) FROM tab0 cor0 WHERE 87 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT - ( - MIN ( - col1 ) ) FROM tab0 cor0 WHERE 87 IS NULL
----
NULL

query I rowsort
SELECT col2 + - 84 AS col1 FROM tab1 AS cor0
----
-16
-25
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT + col2 + + ( CAST( + - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-4291
SELECT + col2 + + ( CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT DISTINCT MAX( ALL col0 ) + + MAX( 49 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT MAX ( ALL col0 ) + + MAX ( 49 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL - MAX( - 59 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - MAX ( - 59 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT col1 * + 47 + + + ( - + 84 ) FROM tab1 AS cor0
----
151
2125
574

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 16 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT 44 * + + col1 AS col2 FROM tab2
----
2244
2948
3388

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4298
SELECT - col2 DIV + 13 AS col2, + CAST( - col0 AS SIGNED ) FROM tab2
----
-1
-46
-3
-64
-4
-75

skipif mysql # not compatible
query II rowsort label-4298
SELECT - col2 / + 13 AS col2, + CAST ( - col0 AS INTEGER ) FROM tab2
----
-1
-46
-3
-64
-4
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 73 + - - col0 + + - 56 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT - SUM( DISTINCT col0 ) AS col0 FROM tab0 WHERE - + col0 + - - 67 + + - col1 <> + col2
----
-199

skipif mysql # not compatible
query I rowsort label-4300
SELECT - SUM ( DISTINCT col0 ) AS col0 FROM tab0 WHERE - + col0 + - - 67 + + - col1 <> + col2
----
-199

query II rowsort
SELECT ALL + col0 AS col2, col1 - - 81 AS col1 FROM tab0
----
15
162
87
102
97
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col0 col0 FROM tab0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IS NULL AND NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col1 - - + 54, col1 FROM tab2 AS cor0
----
-13
67
-23
77
3
51

query II rowsort
SELECT - - col1 + + 20, + col0 AS col1 FROM tab1 AS cor0
----
25
85
34
51
67
91

query I rowsort
SELECT - - 6 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT 91 DIV + col0 + - + col0 - - col1 * - col0 FROM tab2 AS cor0
----
-2391
-4991
-5099

skipif mysql # not compatible
query I rowsort label-4307
SELECT 91 / + col0 + - + col0 - - col1 * - col0 FROM tab2 AS cor0
----
-2391
-4991
-5099

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL + 83 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1162
3901
415

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + 83 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1162
3901
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - + col2 ) AND NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - + col2 ) AND NULL IS NULL
----
0

query I rowsort
SELECT - 9 FROM tab1 AS cor0 WHERE NOT + 97 IS NULL
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4311
SELECT ALL - + 23 * CAST( NULL AS SIGNED ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4311
SELECT ALL - + 23 * CAST ( NULL AS INTEGER ), col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col1 - ( - + 67 ) + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
109
229
69

query I rowsort
SELECT ALL - - ( 3 ) * col2 FROM tab0 AS cor0
----
141
297
30

query I rowsort
SELECT ALL - - 46 AS col1 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL - 88 * + COUNT( * ) FROM tab1, tab0 AS cor0
----
-792

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - 88 * + COUNT ( * ) FROM tab1, tab0 AS cor0
----
-792

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - 77 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 62 ) * col2 col2 FROM tab2
----
1426
2480
3596

query II rowsort
SELECT DISTINCT - 50, col2 + - - col0 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col0 * + 34 * col2 * - ( + col2 ) FROM tab2
----
-3481600
-827356
-8578200

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <= 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 68, + col0 FROM tab0
----
68
15
68
87
68
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT - 19 * 18 FROM tab1
----
-342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * 36 + col0 * + col1 * + - 18 + 38 FROM tab2 AS cor0
----
-44026
-91438
-92824

query I rowsort
SELECT 33 + + col0 AS col2 FROM tab0 AS cor0
----
120
130
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL + MIN( DISTINCT - col2 ) + + + 32 col0 FROM tab0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4327
SELECT ALL + MIN ( DISTINCT - col2 ) + + + 32 col0 FROM tab0
----
-67

query I rowsort
SELECT DISTINCT + col2 + + + col0 + - col0 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 / + + 97 + + col1 AND + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT MAX( 26 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT MAX ( 26 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + 1 - - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 20 - - 94 * + - col2 FROM tab0 AS cor0
----
-4438
-9326
-960

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( 42 ) * + + col0 / + col1 * - + col1 + - 81 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - + - col2 + - - 22 AS col2 FROM tab2 cor0
----
139
147
96

query I rowsort
SELECT - - 47 + 50 AS col0 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT ALL + ( - - col2 ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( + col2 ) + - 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 WHERE NOT + col2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT SUM( DISTINCT - ( - ( col2 ) ) ) * + 27 + ( + COUNT( * ) ) + COUNT( * ) FROM tab0
----
4218

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT SUM ( DISTINCT - ( - ( col2 ) ) ) * + 27 + ( + COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
4218

query I rowsort
SELECT DISTINCT - + 28 + col0 FROM tab2 AS cor0
----
18
36
47

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4342
SELECT DISTINCT * FROM tab2 WHERE NOT - 63 > + + CAST( - col2 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4342
SELECT DISTINCT * FROM tab2 WHERE NOT - 63 > + + CAST ( - col2 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT - COUNT( * ) col2 FROM tab0 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-4343
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + + col0 >= - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - COUNT( * ) * SUM( ALL 55 ) FROM tab0 AS cor0
----
-495

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - COUNT ( * ) * SUM ( ALL 55 ) FROM tab0 AS cor0
----
-495

query I rowsort
SELECT - - col2 * col2 * + + col1 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4347
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 12, 86 * - - 23 - + 93 + + + col2 AS col0 FROM tab2 AS cor0
----
NULL
1908
NULL
1925
NULL
1943

skipif mysql # not compatible
query II rowsort label-4347
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 12, 86 * - - 23 - + 93 + + + col2 AS col0 FROM tab2 AS cor0
----
NULL
1908
NULL
1925
NULL
1943

query II rowsort
SELECT DISTINCT - - 63, + 50 AS col2 FROM tab1 AS cor0
----
63
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - col1 * - 21 + + - ( - 19 ) + - + col2 - - 49 + + - col0 col0 FROM tab1 AS cor0
----
-59
29
-68
896
-96
215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 45 ) col1 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + col1 <= 37
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT - COUNT( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4354
SELECT - COUNT ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL = - col0 + - - 37 + - col0 + - - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT ALL + MAX( ALL + col0 ) AS col0, 44 * + ( + COUNT( * ) ) AS col0 FROM tab1
----
91
132

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL + MAX ( ALL + col0 ) AS col0, 44 * + ( + COUNT ( * ) ) AS col0 FROM tab1
----
91
132

query I rowsort
SELECT DISTINCT - 46 + col2 FROM tab0
----
-36
1
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4358
SELECT 44 * + ( - col1 ) * + col2 + + ( - + col1 ) + + - col0 * - col0 + + - 89 FROM tab1 AS cor0 WHERE + col2 NOT IN ( 71 + - CAST( NULL AS DECIMAL ), - 8 )
----

skipif mysql # not compatible
query I rowsort label-4358
SELECT 44 * + ( - col1 ) * + col2 + + ( - + col1 ) + + - col0 * - col0 + + - 89 FROM tab1 AS cor0 WHERE + col2 NOT IN ( 71 + - CAST ( NULL AS REAL ), - 8 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4359
SELECT - + 33 * + col0, col1 * + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
-1518
NULL
-2112
NULL
-2475
NULL

skipif mysql # not compatible
query II rowsort label-4359
SELECT - + 33 * + col0, col1 * + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
-1518
NULL
-2112
NULL
-2475
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT + - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4360
SELECT + - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + 18 - - - 67 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT + 99 + - + col1 FROM tab1
----
52
85
94

query I rowsort
SELECT + ( - col2 ) + + ( col0 ) - - - col0 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 15 * - + col2 NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT 54 + + COUNT( * ) FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT 54 + + COUNT ( * ) FROM tab2 cor0
----
57

query II rowsort
SELECT 47 * col0 AS col1, - col1 FROM tab0 AS cor0 WHERE 6 IS NOT NULL
----
4089
-21
4559
-1
705
-81

query I rowsort
SELECT ALL 24 + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-63
-73
9

query I rowsort
SELECT ALL - - col2 - + - 25 AS col0 FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT ( + + col1 ) AS col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 18 >= + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4371
SELECT DISTINCT - 46 DIV + SUM( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - 46 / + SUM ( + col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL + col0 * + - 70 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + col0 * + - 70 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 13 + - + ( 45 ) + + col1, + col0 FROM tab0
----
-37
87
-57
97
23
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4374
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT 50 DIV + COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-4375
SELECT 50 / + COUNT ( * ) FROM tab2
----
16

query I rowsort
SELECT DISTINCT - + 96 FROM tab0 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4378
SELECT * FROM tab2 cor0 WHERE NOT col0 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4378
SELECT * FROM tab2 cor0 WHERE NOT col0 >= CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT - 80, 50 * + col1 * + col0 FROM tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT ALL 70 DIV - col1 FROM tab1
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL 70 / - col1 FROM tab1
----
-1
-14
-5

query II rowsort
SELECT DISTINCT + col0 AS col2, - 18 * + - 78 * col0 AS col1 FROM tab1
----
51
71604
85
119340
91
127764

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT + MAX( col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4383
SELECT + MAX ( col2 ) col1 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab1 WHERE NOT NULL IN ( 55 / ( - - 71 ) + ( + - col2 ), + col2 )
----

query I rowsort
SELECT + 46 * - col0 AS col0 FROM tab0 AS cor0
----
-4002
-4462
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT COUNT( * ) * + 67 AS col2 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4386
SELECT COUNT ( * ) * + 67 AS col2 FROM tab1 AS cor0
----
201

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 < + + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - ( + + col0 ) FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT DISTINCT + + col2 AS col1, - col2 AS col1 FROM tab2 AS cor0 WHERE ( + ( - col1 ) ) IS NOT NULL
----
23
-23
40
-40
58
-58

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT 77 * - - col0 + col1 + - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ( + 31 ) * 64 + - COUNT( * ) FROM tab1
----
1981

skipif mysql # not compatible
query I rowsort label-4391
SELECT ( + 31 ) * 64 + - COUNT ( * ) FROM tab1
----
1981

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT - + COUNT( * ) AS col0 FROM tab1 WHERE 27 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4392
SELECT - + COUNT ( * ) AS col0 FROM tab1 WHERE 27 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT 41 + COUNT( * ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-4393
SELECT 41 + COUNT ( * ) FROM tab2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 27 * col0 col0 FROM tab1
----
1473
2354
2525

query I rowsort
SELECT - 1 + - col1 FROM tab2
----
-52
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL COUNT( * ) + - CAST( - 33 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL COUNT ( * ) + - CAST ( - 33 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4397
SELECT DISTINCT 24 / 55 + + + 52 + - col0 * + - CAST( NULL AS SIGNED ) * + + 44 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT 24 / 55 + + + 52 + - col0 * + - CAST ( NULL AS INTEGER ) * + + 44 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT 82 AS col2, 59 AS col2 FROM tab2 AS cor0
----
82
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT ALL MIN( col2 ) AS col0, + MIN( DISTINCT - col2 ) AS col1 FROM tab2
----
23
-58

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL MIN ( col2 ) AS col0, + MIN ( DISTINCT - col2 ) AS col1 FROM tab2
----
23
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT - + MAX( - + 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
50

skipif mysql # not compatible
query I rowsort label-4400
SELECT - + MAX ( - + 50 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
50

query II rowsort
SELECT DISTINCT + col0 * ( + - 99 ) AS col1, 38 + col2 FROM tab0
----
-1485
85
-8613
48
-9603
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - COUNT( + col1 ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4402
SELECT - COUNT ( + col1 ) col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT + - COUNT( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4403
SELECT + - COUNT ( * ) col2 FROM ( tab1 cor0 CROSS JOIN tab0 cor1 )
----
-9

query I rowsort
SELECT ALL - 1 - ( + - ( - - 57 ) ) FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT ( + + ( - + 41 ) ) + - + 36 * - - col2 AS col0 FROM tab0 AS cor0
----
-1733
-3605
-401

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4406
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + col2 - + col0 * + 70 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT - CAST ( NULL AS REAL ) - + col2 - + col0 * + 70 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4407
SELECT + col1 + col2 + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT + col1 + col2 + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 94 * col2 AS col0 FROM tab2
----
2162
3760
5452

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT DISTINCT - col2 DIV col2 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT - col2 / col2 AS col2 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * ( + col2 ) + + + ( - 48 ) + + col1 IS NOT NULL
----

query I rowsort
SELECT + col2 * + - col2 AS col1 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT ALL - 29, COUNT( * ) * 19 * + 93 AS col0 FROM tab0
----
-29
5301

skipif mysql # not compatible
query II rowsort label-4413
SELECT ALL - 29, COUNT ( * ) * 19 * + 93 AS col0 FROM tab0
----
-29
5301

onlyif mysql # DIV for integer division: 
query II rowsort label-4414
SELECT DISTINCT col2 AS col0, ( + 7 ) DIV col1 FROM tab0
----
10
0
47
0
99
7

skipif mysql # not compatible
query II rowsort label-4414
SELECT DISTINCT col2 AS col0, ( + 7 ) / col1 FROM tab0
----
10
0
47
0
99
7

query II rowsort
SELECT ALL + col1 AS col1, col1 * - 70 FROM tab2
----
51
-3570
67
-4690
77
-5390

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4416
SELECT 91 AS col0, + ( CAST( - - 66 AS SIGNED ) ) FROM tab2 AS cor0
----
91
66
91
66
91
66

skipif mysql # not compatible
query II rowsort label-4416
SELECT 91 AS col0, + ( CAST ( - - 66 AS INTEGER ) ) FROM tab2 AS cor0
----
91
66
91
66
91
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL - + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL - + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT + 7 DIV - + col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT + 7 / - + col0 AS col1 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 * + - col2 AS col2, + col1 AS col1 FROM tab1
----
-3481
5
-4624
47
-9216
14

query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT SUM( ALL col1 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4421
SELECT SUM ( ALL col1 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - MAX( - col0 ) + + 11 AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4422
SELECT - MAX ( - col0 ) + + 11 AS col0 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT CAST( NULL AS SIGNED ) * + col1 + - col0 * ( + ( col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT CAST ( NULL AS INTEGER ) * + col1 + - col0 * ( + ( col0 ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4424
SELECT + + col2 + + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
110
115
64

skipif mysql # not compatible
query I rowsort label-4424
SELECT + + col2 + + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT col0 * + col0 * + - col0 AS col0 FROM tab0
----
-3375
-658503
-912673

query II rowsort
SELECT - col2 AS col2, - col1 AS col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL < col1 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE - - col1 = + 20 + + - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4430
SELECT - 13 AS col2, + col0 DIV - col0 FROM tab1
----
-13
-1
-13
-1
-13
-1

skipif mysql # not compatible
query II rowsort label-4430
SELECT - 13 AS col2, + col0 / - col0 FROM tab1
----
-13
-1
-13
-1
-13
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT + ( - + MAX( ALL - + col0 ) ) AS col1, 96 AS col1 FROM tab2
----
46
96

skipif mysql # not compatible
query II rowsort label-4431
SELECT + ( - + MAX ( ALL - + col0 ) ) AS col1, 96 AS col1 FROM tab2
----
46
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - 46 - COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4432
SELECT - 46 - COUNT ( * ) FROM tab2 AS cor0
----
-49

query II rowsort
SELECT ALL col1, - 60 * 15 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 35 / + col0 AND 68
----

query I rowsort
SELECT + col2 + 6 FROM tab2 AS cor0
----
29
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT - MAX( col2 ) col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4435
SELECT DISTINCT - MAX ( col2 ) col1 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT DISTINCT CAST( - col1 AS SIGNED ) + - col2 FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + - col2 FROM tab2
----
-117
-125
-74

query II rowsort
SELECT DISTINCT - 53 + - col2 * - col1 * + 69, + col1 FROM tab1 AS cor0
----
20302
5
220471
47
92683
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - - 19 >= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4439
SELECT COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * - col0 + - col1 * + 12 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-822
618
958

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT + 18 * 46 FROM tab2 AS cor0 WHERE NOT col2 * + col1 - col1 IS NULL
----
828
828
828

query I rowsort
SELECT ALL ( - + 45 ) FROM tab2
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 30 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col1 FROM tab2
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT MAX( + + col2 ) - + COUNT( * ) - - 64 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT MAX ( + + col2 ) - + COUNT ( * ) - - 64 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4447
SELECT col2 DIV + col0 AS col2, col1 * - col1 FROM tab1
----
0
-2209
0
-25
1
-196

skipif mysql # not compatible
query II rowsort label-4447
SELECT col2 / + col0 AS col2, col1 * - col1 FROM tab1
----
0
-2209
0
-25
1
-196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 97 / col1 IS NOT NULL
----

query I rowsort
SELECT - 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL - 14 + 99 AS col2 FROM tab0
----
85
85
85

query I rowsort
SELECT - 86 * + 91 + col0 + - col2 FROM tab0 cor0
----
-7749
-7828
-7858

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT DISTINCT - + col1 DIV + 83 * + col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4453
SELECT DISTINCT - + col1 / + 83 * + col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * 79 AS col0 FROM tab0 AS cor0
----
-1185
-6873
-7663

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 - + col2 + 4 IS NULL
----

query I rowsort
SELECT - 45 * - + ( - 33 ) + + - col1 + - - col1 FROM tab0
----
-1485
-1485
-1485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col0 col2 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT 71 + + 94 + 68 FROM tab2
----
233
233
233

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT - ( - COUNT( * ) ) + - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT - ( - COUNT ( * ) ) + - COUNT ( * ) AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL <> - 94 )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL >= NULL ) )
----

query I rowsort
SELECT ALL - 41 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT col1 - - - col1 DIV + 8 - - - 86 AS col2 FROM tab0
----
-15
-67
-85

skipif mysql # not compatible
query I rowsort label-4465
SELECT col1 - - - col1 / + 8 - - - 86 AS col2 FROM tab0
----
-15
-67
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 54, ( + + col1 ) * - col1 + - col0 col2 FROM tab0 AS cor0
----
54
-528
54
-6576
54
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 41 )
----

query I rowsort
SELECT DISTINCT 72 * - - 70 * col0 FROM tab0 AS cor0
----
438480
488880
75600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 26 AS col1, ( + col0 ) FROM tab2
----
26
46
26
64
26
75

query II rowsort
SELECT + 82 AS col0, + col0 * - - col1 FROM tab2
----
82
2346
82
4928
82
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT DISTINCT MAX( ALL - col1 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4473
SELECT DISTINCT MAX ( ALL - col1 ) col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT - COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4474
SELECT - COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab2
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL + MIN( DISTINCT - 36 ) AS col2 FROM tab0, tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + MIN ( DISTINCT - 36 ) AS col2 FROM tab0, tab2 AS cor0
----
-36

query I rowsort
SELECT + ( - - 67 ) FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL - MAX( - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL - MAX ( - ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 * + - col2 * + 79 AS col1 FROM tab2 AS cor0
----
-126400
-265756
-41791

query I rowsort
SELECT col2 * col0 + 67 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
772
937
9670

query II rowsort
SELECT + + col0 AS col1, 73 FROM tab2 cor0
----
46
73
64
73
75
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT SUM( - 24 ) + + - 81 col2 FROM tab2 WHERE NOT + col0 >= col0 * - - col2 + - + col1
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4481
SELECT SUM ( - 24 ) + + - 81 col2 FROM tab2 WHERE NOT + col0 >= col0 * - - col2 + - + col1
----
-153

query I rowsort
SELECT DISTINCT + col2 + - col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-4704
-4897
-6052

query I rowsort
SELECT + ( + - 53 ) + - + 81 FROM tab2 AS cor0
----
-134
-134
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT COUNT( * ) * + 88 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-4484
SELECT COUNT ( * ) * + 88 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL - MIN( DISTINCT + col1 ) + - MIN( col2 ) AS col0 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - MIN ( DISTINCT + col1 ) + - MIN ( col2 ) AS col0 FROM tab0 AS cor0
----
-11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 <> - + col2
----

query I rowsort
SELECT DISTINCT - 80 * + - col1 FROM tab1 AS cor0
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT - + MIN( + + col2 ) * 17 FROM tab0 AS cor0
----
-170

skipif mysql # not compatible
query I rowsort label-4488
SELECT - + MIN ( + + col2 ) * 17 FROM tab0 AS cor0
----
-170

query II rowsort
SELECT DISTINCT + col0 AS col2, + ( - - 95 ) + + + 40 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 59 + - 14 AS col2 FROM tab1
----
45
45
45

query I rowsort
SELECT ALL 70 * - - ( + + col1 ) + + 71 + + col2 + 61 * + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col1 * - - col2 - - col1 * - - col2 * - col0 FROM tab1 AS cor0
----
-25370
-294032
-69888

query I rowsort
SELECT ( + 57 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT 99 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - + SUM( 10 ) FROM tab0 WHERE NOT - + col2 IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - + SUM ( 10 ) FROM tab0 WHERE NOT - + col2 IS NULL
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT col1 * ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT col1 * ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4497
SELECT - - MAX( ALL 77 ), 64 DIV MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
77
0

skipif mysql # not compatible
query II rowsort label-4497
SELECT - - MAX ( ALL 77 ), 64 / MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4498
SELECT DISTINCT + CAST( + ( + 57 ) AS SIGNED ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT + CAST ( + ( + 57 ) AS INTEGER ) FROM tab2 AS cor0
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-4499
SELECT DISTINCT - - 7 DIV + + col2 AS col1, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-4499
SELECT DISTINCT - - 7 / + + col2 AS col1, + col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT ALL COUNT( * ) * - - 36 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL COUNT ( * ) * - - 36 FROM tab1 AS cor0
----
108

query II rowsort
SELECT DISTINCT + ( - - col1 ), col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * + ( - + col0 ) >= NULL
----

query I rowsort
SELECT + col1 * ( - col0 ) AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0, + 25, - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4505
SELECT ALL * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + - + 77 + + + 82 / ( + col0 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4505
SELECT ALL * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + - + 77 + + + 82 / ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59 AS col0, - col2 col2 FROM tab2
----
59
-23
59
-40
59
-58

query I rowsort
SELECT - col1 + + 21 FROM tab1 AS cor0
----
-26
16
7

query II rowsort
SELECT col0, + col2 FROM tab2 AS cor0 WHERE NULL >= ( - col1 )
----

query I rowsort
SELECT ALL ( - 34 ) AS col2 FROM tab1
----
-34
-34
-34

query II rowsort
SELECT DISTINCT + 3 AS col0, 76 AS col2 FROM tab1
----
3
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT - + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL <> - 78 + + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT - + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL <> - 78 + + 23
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col0 + + 36 col0 FROM tab0 AS cor0
----
210
230
66

query I rowsort
SELECT ALL - 85 + + - 33 + - ( + col2 ) FROM tab2 AS cor0
----
-141
-158
-176

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2 / - 55
----

query I rowsort
SELECT + col1 + 65 FROM tab2 AS cor0
----
116
132
142

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL ( + COUNT( DISTINCT + ( col1 ) ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL ( + COUNT ( DISTINCT + ( col1 ) ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - col0 * - - col0 * + - 0 - - 34 * CAST( NULL AS SIGNED ) * 30 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-4517
SELECT ALL - col0 * - - col0 * + - 0 - - 34 * CAST ( NULL AS INTEGER ) * 30 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + ( - + col0 ) FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT COUNT( + - col2 ) * 82 + - 45 AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT COUNT ( + - col2 ) * 82 + - 45 AS col0 FROM tab1
----
201

query I rowsort
SELECT - 57 + col2 AS col0 FROM tab0
----
-10
-47
42

query I rowsort
SELECT 28 AS col1 FROM tab1 WHERE ( ( NOT col2 * - 34 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL ) IN ( 72 + - col0 * - 82 + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL COUNT( * ) - COUNT( - col0 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL COUNT ( * ) - COUNT ( - col0 ) AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - - 31 FROM tab1 AS cor0 WHERE NOT + ( 86 ) * - col2 * + 28 + + col0 >= + 8 + 71
----
31
31
31

query I rowsort
SELECT ALL - 80 AS col2 FROM tab0 cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + MAX( ALL col1 ) * + 93 FROM tab1
----
4371

skipif mysql # not compatible
query I rowsort label-4526
SELECT + MAX ( ALL col1 ) * + 93 FROM tab1
----
4371

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 32 * 3 + + col1 FROM tab0 AS cor0
----
-15
-75
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT ALL + - COUNT( + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + - COUNT ( + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - 48 + 15 FROM tab0 AS cor0 WHERE NOT - 93 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4531
SELECT COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - - COUNT( ALL 23 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4532
SELECT - - COUNT ( ALL 23 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + SUM( DISTINCT 46 ) AS col0 FROM tab0 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4533
SELECT + SUM ( DISTINCT 46 ) AS col0 FROM tab0 cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 + - 81 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col0 FROM tab1
----
47

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL IN ( - + col0, + col1 * - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 95 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - ( + - 26 ) ) FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT + COUNT( * ) * ( - + COUNT( * ) ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4539
SELECT + COUNT ( * ) * ( - + COUNT ( * ) ) FROM tab1 cor0
----
-9

query I rowsort
SELECT - 26 + - 28 FROM tab2
----
-54
-54
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4541
SELECT DISTINCT - SUM( + 40 ) AS col2 FROM tab1 WHERE - - 18 * - + col0 * CAST( + col1 AS SIGNED ) IS NOT NULL
----
-120

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - SUM ( + 40 ) AS col2 FROM tab1 WHERE - - 18 * - + col0 * CAST ( + col1 AS INTEGER ) IS NOT NULL
----
-120

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE col2 = - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 45 IS NULL
----

query I rowsort
SELECT DISTINCT - + ( + 16 ) * + - 99 + 24 * - col0 * + col1 FROM tab1 AS cor0
----
-101064
-15552
-8616

query I rowsort
SELECT DISTINCT - col0 - + - 37 FROM tab0 AS cor0
----
-50
-60
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 55 ) col2 FROM tab0 cor0
----
-55
-55
-55

query III rowsort
SELECT col0, col2 + + - col1, - col2 AS col1 FROM tab2 AS cor0
----
9 values hashing to 1d00880650379f4e2c02436027cb22d1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4548
SELECT DISTINCT - 44 + + 45 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT - 44 + + 45 / + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL - MAX( + col2 ) / - AVG ( - 21 ) * - 0 AS col1 FROM tab2 AS cor0 WHERE + col1 + + col1 + - 22 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL - MAX ( + col2 ) / - AVG ( - 21 ) * - 0 AS col1 FROM tab2 AS cor0 WHERE + col1 + + col1 + - 22 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-81

query I rowsort
SELECT DISTINCT - col0 * + col2 - - 18 FROM tab1 AS cor0
----
-4878
-4997
-6170

query I rowsort
SELECT DISTINCT - ( - col0 ) * - - col1 * + col1 AS col2 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4554
SELECT ALL * FROM tab0 WHERE NOT + 41 + + CAST( NULL AS SIGNED ) * + 4 + + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4554
SELECT ALL * FROM tab0 WHERE NOT + 41 + + CAST ( NULL AS INTEGER ) * + 4 + + ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4555
SELECT ALL - col0 * - + col2 DIV - col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - col0 * - + col2 / - col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL 85 + + col1 AS col2 FROM tab0
----
106
166
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT ALL MIN( ALL - col1 ) + + 94 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL MIN ( ALL - col1 ) + + 94 FROM tab0
----
13

query I rowsort
SELECT col2 - col0 + + 47 + 99 + + col1 + col0 FROM tab1
----
210
256
261

query I rowsort
SELECT ALL col2 + + 99 FROM tab2
----
122
139
157

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT + + 54 + 68 DIV col1 FROM tab2 AS cor0
----
54
55
55

skipif mysql # not compatible
query I rowsort label-4560
SELECT + + 54 + 68 / col1 FROM tab2 AS cor0
----
54
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT + col0 + 57 DIV + 97 * - 64 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4561
SELECT + col0 + 57 / + 97 * - 64 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4562
SELECT + COUNT( * ) DIV + MAX( DISTINCT - col1 ) col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4562
SELECT + COUNT ( * ) / + MAX ( DISTINCT - col1 ) col1 FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT ALL + + col1 * - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + + col1 * - col0 / + col0 AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col1 FROM tab2
----
-78

query III rowsort
SELECT * FROM tab2 WHERE NOT - 43 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4566
SELECT DISTINCT 83 * - - col1 + - 7 + + + CAST( NULL AS DECIMAL ) + + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT DISTINCT 83 * - - col1 + - 7 + + + CAST ( NULL AS REAL ) + + col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4567
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col1, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4567
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col1, col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + 64 >= col1
----

query I rowsort
SELECT + AVG ( 47 ) * - - 30 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT col2, - col1 * + col2 * + + ( - + col2 ) AS col1 FROM tab2
----
23
26979
40
123200
58
225388

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4571
SELECT DISTINCT 71 DIV + SUM( DISTINCT - col1 ) AS col1, 56 FROM tab2
----
0
56

skipif mysql # not compatible
query II rowsort label-4571
SELECT DISTINCT 71 / + SUM ( DISTINCT - col1 ) AS col1, 56 FROM tab2
----
0
56

query I rowsort
SELECT DISTINCT + 46 + - 25 * - col2 - + + 3 + + - 35 FROM tab0
----
1183
2483
258

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * + col0 IS NULL
----

query I rowsort
SELECT ALL 58 + col2 AS col2 FROM tab0
----
105
157
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT - COUNT( * ) AS col2, + COUNT( * ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-4575
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab2
----
-3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + col1 + - CAST( + 17 AS SIGNED ) col0 FROM tab0
----
-16
4
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4576
SELECT ALL + col1 + - CAST ( + 17 AS INTEGER ) col0 FROM tab0
----
-16
4
64

query I rowsort
SELECT col0 + - - col1 + - 74 + + 67 * col1 + + + col1 AS col2 FROM tab1
----
3260
356
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT DISTINCT - 53 / col2 + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT - 53 / col2 + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT + 37 + - col2 - - - col2 AS col1, col1 FROM tab0 cor0
----
-161
1
-57
81
17
21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 62 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL > ( col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 62 + + col2 ) NOT BETWEEN col0 AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT DISTINCT CAST( col0 AS SIGNED ) * ( 92 + ( col1 ) ) FROM tab2
----
10816
11925
6578

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT CAST ( col0 AS INTEGER ) * ( 92 + ( col1 ) ) FROM tab2
----
10816
11925
6578

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT - COUNT( DISTINCT col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4584
SELECT - COUNT ( DISTINCT col2 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT ALL CAST( NULL AS SIGNED ) * + 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL CAST ( NULL AS INTEGER ) * + 27 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL <> 0
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL <> 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL + 41 * - COUNT( * ) FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL + 41 * - COUNT ( * ) FROM tab2
----
-123

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 10 - - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 ) <> - ( 70 ) * 74
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ( CAST( NULL AS SIGNED ) ) + 85 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT ( CAST ( NULL AS INTEGER ) ) + 85 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT ALL + 51 * COUNT( * ) col0 FROM tab2
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4591
SELECT ALL + 51 * COUNT ( * ) col0 FROM tab2
----
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 66 + + 25 col2 FROM tab1
----
3391
5635
6031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + + col1 col2 FROM tab1
----
2615
7230
8328

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + 92 - COUNT( * ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + 92 - COUNT ( * ) AS col1 FROM tab1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4595
SELECT * FROM tab2 WHERE NOT + col1 IN ( - col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4595
SELECT * FROM tab2 WHERE NOT + col1 IN ( - col2 + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT 75 + 76 DIV col0 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4596
SELECT 75 + 76 / col0 FROM tab2
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT - CAST( NULL AS SIGNED ) * 48 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT - CAST ( NULL AS INTEGER ) * 48 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT + 97 * - COUNT( * ) col0 FROM tab0
----
-291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4598
SELECT + 97 * - COUNT ( * ) col0 FROM tab0
----
-291

query I rowsort
SELECT ( + col1 ) * + 37 AS col1 FROM tab0
----
2997
37
777

query I rowsort
SELECT col1 * + 29 FROM tab1
----
1363
145
406

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + 16 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 37 ) col2 FROM tab0
----
37
37
37

query I rowsort
SELECT - ( + col1 ) FROM tab0 WHERE ( col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT - col0 DIV 34 + 2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4604
SELECT - col0 / 34 + 2 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4605
SELECT - col2 DIV + col2 + 59 FROM tab1
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4605
SELECT - col2 / + col2 + 59 FROM tab1
----
58
58
58

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab1 WHERE NOT ( col1 / - col2 ) IS NULL
----
70

query I rowsort
SELECT ALL - ( + 26 ) FROM tab2
----
-26
-26
-26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 / + col1 + col2 * 89 ) NOT BETWEEN NULL AND ( + col0 / col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 * col0 AND NULL
----

query I rowsort
SELECT ( - 23 ) AS col0 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT DISTINCT + MAX( + 41 ) * COUNT( * ) col2 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4611
SELECT DISTINCT + MAX ( + 41 ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
123

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT + col2 + col0 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - 92 ) FROM tab2
----
-92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col1 + col0 / col0 ) = ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT ALL col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4616
SELECT DISTINCT - - col2 DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - - col2 / col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 - 46 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4617
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 - 46 AND col1
----
0

query I rowsort
SELECT DISTINCT - - ( col2 ) * 98 FROM tab0 AS cor0
----
4606
9702
980

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT + - col1 * - col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT + COUNT( * ) + + COUNT( DISTINCT 59 ) DIV - 67 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) + + COUNT ( DISTINCT 59 ) / - 67 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4623
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * col2 + + ( col2 ) * - CAST( NULL AS DECIMAL ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-4623
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 * col2 + + ( col2 ) * - CAST ( NULL AS REAL ) AND - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 IN ( 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NOT ( ( col2 ) ) IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT - + 0 * + col0 + - col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4626
SELECT - + 0 * + col0 + - col1 / + col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT col1 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 35 + 69 FROM tab2 cor0 WHERE NOT 53 NOT IN ( col1 * + ( - col2 * + col0 ) )
----

query I rowsort
SELECT + + ( + 61 ) + + col0 FROM tab2 AS cor0
----
107
125
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - COUNT( * ) * 52 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - COUNT ( * ) * 52 FROM tab1 AS cor0
----
-156

query I rowsort
SELECT ALL + ( + 37 ) AS col0 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT + - 10 AS col1 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT 21 * - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1701
-21
-441

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT 21 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4634
SELECT 21 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + + col2 + col1 AS col0 FROM tab1
----
123
183
206

query I rowsort
SELECT ALL 62 * - 33 - col2 FROM tab1 WHERE + col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 - - col2 AS col1 FROM tab0
----
118
143
197

query I rowsort
SELECT DISTINCT - 8 * + 22 AS col2 FROM tab1 cor0
----
-176

onlyif mysql # DIV for integer division: 
query I rowsort label-4639
SELECT ALL + ( 83 ) DIV col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + ( 83 ) / col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE + col2 IN ( + 54 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4641
SELECT ALL 24 + 92 + CAST( NULL AS DECIMAL ) * - 19 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL 24 + 92 + CAST ( NULL AS REAL ) * - 19 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 21 + 40 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
61

query I rowsort
SELECT ALL + 59 + - - col1 FROM tab1 AS cor0
----
106
64
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4644
SELECT DISTINCT col0 / + + CAST( NULL AS DECIMAL ) - 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT col0 / + + CAST ( NULL AS REAL ) - 60 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 + - col1 col0 FROM tab0 AS cor0
----
-29
31
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 81 * + 25 + - col2 col2 FROM tab2 AS cor0
----
-2048
-2065
-2083

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4647
SELECT + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - col1 + + 49 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE ( 4 * ( col2 ) * col0 ) BETWEEN NULL AND ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4650
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + 81 <= + col0 + 89
----

skipif mysql # not compatible
query III rowsort label-4650
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + 81 <= + col0 + 89
----

query I rowsort
SELECT + 41 * + - 40 AS col1 FROM tab1 cor0
----
-1640
-1640
-1640

onlyif mysql # aggregate syntax: 
query II rowsort label-4652
SELECT DISTINCT - 33 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-4652
SELECT DISTINCT - 33 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-33
3

query I rowsort
SELECT ALL - col0 * col1 + - col2 - col2 FROM tab0 AS cor0
----
-1309
-1847
-295

onlyif mysql # DIV for integer division: 
query III rowsort label-4654
SELECT * FROM tab0 cor0 WHERE col0 DIV + 95 NOT IN ( - 26 DIV ( col1 ) )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-4654
SELECT * FROM tab0 cor0 WHERE col0 / + 95 NOT IN ( - 26 / ( col1 ) )
----
87
21
10
97
1
99

query I rowsort
SELECT + col1 - - 46 FROM tab2 AS cor0
----
113
123
97

query III rowsort
SELECT * FROM tab1 WHERE + 48 * - col2 IS NULL AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( + + 8 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4659
SELECT CAST( + + COUNT( ALL + + 63 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4659
SELECT CAST ( + + COUNT ( ALL + + 63 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4660
SELECT - - col0 DIV col1 col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4660
SELECT - - col0 / col1 col2 FROM tab2 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col1 )
----

query II rowsort
SELECT 37 * + col2 * + col0, col0 FROM tab2
----
160950
75
39146
46
94720
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT - - COUNT( * ) * + 74 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
666

skipif mysql # not compatible
query I rowsort label-4663
SELECT - - COUNT ( * ) * + 74 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT COUNT( * ) * SUM( ALL - 44 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-393

skipif mysql # not compatible
query I rowsort label-4664
SELECT COUNT ( * ) * SUM ( ALL - 44 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-393

query I rowsort
SELECT + 31 / - - ( + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col2 * 13 FROM tab0 AS cor0
----
-1287
-130
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - ( col1 ) + + col1 col0 FROM tab2 AS cor0
----
2652
4556
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT - + COUNT( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4668
SELECT - + COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <> + + col1 * 41
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + ( col2 ) + - 44 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query II rowsort
SELECT ALL - col2, + 9 AS col2 FROM tab2 AS cor0
----
-23
9
-40
9
-58
9

query I rowsort
SELECT + col0 * + + 81 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT - - col2 AS col1 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - col2 + col0 - + 78 AS col0 FROM tab0
----
-1
-110
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT 72 + + - COUNT( * ) + 81 AS col2 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-4676
SELECT 72 + + - COUNT ( * ) + 81 AS col2 FROM tab1
----
150

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 < ( - + col1 )
----

query I rowsort
SELECT ALL + col0 + 89 AS col2 FROM tab0
----
104
176
186

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( col0 ) <> + col0 )
----

query I rowsort
SELECT 65 + + col2 + col1 * + + 94 * - ( - + col0 ) FROM tab2
----
220612
463337
472473

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 80 NOT BETWEEN ( + 76 ) AND ( + col0 / col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * 1 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL 65 + - COUNT( * ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL 65 + - COUNT ( * ) AS col1 FROM tab2
----
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 * col2 BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT ( - col0 ) + - 10 DIV - + col1 AS col1, + col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

skipif mysql # not compatible
query II rowsort label-4685
SELECT ( - col0 ) + - 10 / - + col1 AS col1, + col2 AS col2 FROM tab2
----
-46
23
-64
40
-75
58

query II rowsort
SELECT + + col2, 99 AS col0 FROM tab2 WHERE NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4687
SELECT 23 + - 33 + - 39 / - + CAST( NULL AS SIGNED ) AS col1, col2 * + - 35 FROM tab0
----
NULL
-1645
NULL
-3465
NULL
-350

skipif mysql # not compatible
query II rowsort label-4687
SELECT 23 + - 33 + - 39 / - + CAST ( NULL AS INTEGER ) AS col1, col2 * + - 35 FROM tab0
----
NULL
-1645
NULL
-3465
NULL
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT + + MIN( DISTINCT - col2 ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-4688
SELECT + + MIN ( DISTINCT - col2 ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
297

query II rowsort
SELECT ALL - col0, + col1 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-15
-6561
-87
-441
-97
-1

query I rowsort
SELECT col2 - + - ( + 63 ) FROM tab2
----
103
121
86

query I rowsort
SELECT + 93 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 72 + + col1 FROM tab1 AS cor0
----
-25
-58
-67

query I rowsort
SELECT ALL - col2 + - 91 FROM tab1 AS cor0
----
-150
-159
-187

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 46 * - col1 + 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4695
SELECT ALL + CAST( - MIN( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + CAST ( - MIN ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT + 64 AS col1, + col0 FROM tab2
----
64
46
64
64
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT + 36 * - - MAX( ALL - - 95 ) AS col0, MAX( DISTINCT 73 ) FROM tab2
----
3420
73

skipif mysql # not compatible
query II rowsort label-4697
SELECT + 36 * - - MAX ( ALL - - 95 ) AS col0, MAX ( DISTINCT 73 ) FROM tab2
----
3420
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT DISTINCT SUM( - - col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT SUM ( - - col1 ) FROM tab2
----
195

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1, - col2 * + col0 AS col1 FROM tab2
----
51
-1058
67
-4350
77
-2560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT MIN( ALL col1 ) DIV + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT MIN ( ALL col1 ) / + COUNT ( * ) FROM tab1
----
1

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT ( col0 ) >= - col1 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT COUNT( * ), - 4 AS col1 FROM tab2
----
3
-4

skipif mysql # not compatible
query II rowsort label-4703
SELECT COUNT ( * ), - 4 AS col1 FROM tab2
----
3
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4704
SELECT + col0 FROM tab1 WHERE NOT ( - + 19 ) * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4704
SELECT + col0 FROM tab1 WHERE NOT ( - + 19 ) * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4705
SELECT ALL + 27 AS col1, - MIN( ALL + 94 ) AS col0 FROM tab0
----
27
-94

skipif mysql # not compatible
query II rowsort label-4705
SELECT ALL + 27 AS col1, - MIN ( ALL + 94 ) AS col0 FROM tab0
----
27
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL - MIN( col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL - MIN ( col1 ) AS col0 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4707
SELECT DISTINCT - 79 AS col1, COUNT( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-4707
SELECT DISTINCT - 79 AS col1, COUNT ( DISTINCT col1 ) AS col0 FROM tab2 cor0
----
-79
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4708
SELECT DISTINCT CAST( - 7 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT CAST ( - 7 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4709
SELECT CAST( NULL AS SIGNED ) AS col0, + col1 * ( + 28 ), + col1 FROM tab0 AS cor0
----
9 values hashing to 3bcbfd63f5238d55e6f7b9763dc6413f

skipif mysql # not compatible
query III rowsort label-4709
SELECT CAST ( NULL AS INTEGER ) AS col0, + col1 * ( + 28 ), + col1 FROM tab0 AS cor0
----
9 values hashing to 3bcbfd63f5238d55e6f7b9763dc6413f

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - - COUNT( * ) * + 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
189

skipif mysql # not compatible
query I rowsort label-4710
SELECT - - COUNT ( * ) * + 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4711
SELECT ALL + col2 + 25, + CAST( NULL AS SIGNED ) col1 FROM tab2
----
48
NULL
65
NULL
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4711
SELECT ALL + col2 + 25, + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
48
NULL
65
NULL
83
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4712
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * - + 71 AS col2 FROM tab2
----
-1633
-2840
-4118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col0 * + col2 / + 48 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 * col0 = - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 75 + + - 89 FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT ALL + COUNT( * ) + - - 46 + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) + - - 99 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + COUNT ( * ) + - - 46 + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - 99 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT - col2 * - - col0 - + - col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT - col2 * - - col0 - + - col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 40 * - - col1 FROM tab1 AS cor0
----
-115
-1789
-509

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT - ( - 55 ) * - + MAX( - 1 ) col1 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4720
SELECT DISTINCT - ( - 55 ) * - + MAX ( - 1 ) col1 FROM tab2 AS cor0
----
55

query I rowsort
SELECT + ( - - 64 ) + 71 AS col1 FROM tab1 AS cor0
----
135
135
135

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE - 69 + + 26 NOT BETWEEN + col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL 93 + COUNT( * ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL 93 + COUNT ( * ) AS col0 FROM tab1
----
96

query I rowsort
SELECT col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT ALL - col1 DIV + - 4 FROM tab1
----
1
11
3

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - col1 / + - 4 FROM tab1
----
1
11
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT - col0 / 14 * ( - - CAST( NULL AS SIGNED ) ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT - col0 / 14 * ( - - CAST ( NULL AS INTEGER ) ) * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL - - MAX( + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - - MAX ( + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT + MAX( - col1 ) AS col2, 88 col1 FROM tab1 AS cor0
----
-5
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4730
SELECT + MAX ( - col1 ) AS col2, 88 col1 FROM tab1 AS cor0
----
-5
88

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 12 IN ( col1, col2 + + + col2 * - + 70 + col0, - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT + - SUM( col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4732
SELECT + - SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
-227

query II rowsort
SELECT DISTINCT + col0, + 8 AS col2 FROM tab0 AS cor0
----
15
8
87
8
97
8

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab2 cor0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4735
SELECT * FROM tab0 WHERE NOT - + ( - col0 ) - col2 <> + CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4735
SELECT * FROM tab0 WHERE NOT - + ( - col0 ) - col2 <> + CAST ( + - col0 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT COUNT( * ) * + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT COUNT ( * ) * + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT ALL + COUNT( * ) DIV - 14 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + COUNT ( * ) / - 14 AS col1 FROM tab2
----
0

query I rowsort
SELECT + col0 * + 38 AS col0 FROM tab2
----
1748
2432
2850

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 82
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab1 WHERE NOT 49 * - col0 + + 32 NOT IN ( + col2, - 65 )
----

query I rowsort
SELECT - col0 * - + col0 AS col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT - col2 * + + 72 AS col2 FROM tab2
----
-1656
-2880
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT DISTINCT - 77 * + COUNT( * ) col1 FROM tab1 AS cor0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4743
SELECT DISTINCT - 77 * + COUNT ( * ) col1 FROM tab1 AS cor0
----
-231

query II rowsort
SELECT + 96, + col2 - col2 AS col0 FROM tab0
----
96
0
96
0
96
0

query I rowsort
SELECT DISTINCT + 72 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
72

query II rowsort
SELECT col0 AS col1, - ( - 1 ) AS col0 FROM tab0
----
15
1
87
1
97
1

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4748
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) = NULL )
----

skipif mysql # not compatible
query III rowsort label-4748
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 * + - ( - col1 ) AS col1, + 50 col1 FROM tab1 AS cor0
----
425
50
4277
50
714
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 + - - col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ( col2 ) + + - 43 AS col1 FROM tab0
----
-33
4
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4754
SELECT 94 * col0 + + col0 DIV + ( + - col1 ) AS col0 FROM tab2
----
4324
6016
7049

skipif mysql # not compatible
query I rowsort label-4754
SELECT 94 * col0 + + col0 / + ( + - col1 ) AS col0 FROM tab2
----
4324
6016
7049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT col2 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT col2 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT + col2 + - col0 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT + col2 + - col0 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT ALL col0 - - col1, + col1 * - col1 + col1 - + 49 AS col1 FROM tab2
----
141
-5901
142
-4471
97
-2599

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - + 68 - - MAX( + col2 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - + 68 - - MAX ( + col2 ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT - 91 - 18 FROM tab0
----
-109
-109
-109

query I rowsort
SELECT - 4 - col2 FROM tab2
----
-27
-44
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT - COUNT( - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4761
SELECT - COUNT ( - col0 ) FROM tab1
----
-3

query I rowsort
SELECT - col0 * + + col1 AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN ( NULL ) AND + col2
----
21

query I rowsort
SELECT - - col1 * - col0 / ( col0 ) FROM tab1 AS cor0 WHERE NOT + 31 >= - 92
----

query I rowsort
SELECT DISTINCT 70 * col1 FROM tab2 AS cor0
----
3570
4690
5390

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 12 - + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + col0 * col0 - + col1 * + col1 FROM tab2 cor0
----
-268073
-426364
-99937

query I rowsort
SELECT ALL + - 83 AS col2 FROM tab0 cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4770
SELECT col0, CAST( 75 AS SIGNED ) * + col1 AS col0 FROM tab2
----
46
3825
64
5775
75
5025

skipif mysql # not compatible
query II rowsort label-4770
SELECT col0, CAST ( 75 AS INTEGER ) * + col1 AS col0 FROM tab2
----
46
3825
64
5775
75
5025

query I rowsort
SELECT DISTINCT 76 * col1 AS col1 FROM tab0
----
1596
6156
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT ( + - CAST( NULL AS SIGNED ) ) * 87 * + COUNT( * ) / - - 59 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ( + - CAST ( NULL AS INTEGER ) ) * 87 * + COUNT ( * ) / - - 59 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4774
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) + COUNT( * ) + - MIN( ( - 35 ) ) DIV 54 col2 FROM tab0
----
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4774
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) + COUNT ( * ) + - MIN ( ( - 35 ) ) / 54 col2 FROM tab0
----
3
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL + col2 * - CAST( col2 AS SIGNED ) FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL + col2 * - CAST ( col2 AS INTEGER ) FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT ALL col2 AS col1, col0 * + col1 FROM tab2
----
23
2346
40
4928
58
5025

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < + col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT ALL - col0 FROM tab2 WHERE NOT - col1 + - - ( CAST( NULL AS SIGNED ) ) >= - - 59 / + + 11 + + col2
----

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL - col0 FROM tab2 WHERE NOT - col1 + - - ( CAST ( NULL AS INTEGER ) ) >= - - 59 / + + 11 + + col2
----

query I rowsort
SELECT DISTINCT 44 FROM tab1 AS cor0 WHERE NOT col0 < ( col1 )
----
44

onlyif mysql # DIV for integer division: 
query II rowsort label-4781
SELECT + col2 DIV - - col1 + + 67 * 80, + col0 + - col2 AS col1 FROM tab2 AS cor0
----
5360
17
5360
23
5360
24

skipif mysql # not compatible
query II rowsort label-4781
SELECT + col2 / - - col1 + + 67 * 80, + col0 + - col2 AS col1 FROM tab2 AS cor0
----
5360
17
5360
23
5360
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4782
SELECT + - 10 DIV col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT + - 10 / col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT - col1 + col1 + - - col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + + 6 * col1 AS col2 FROM tab1 AS cor0 WHERE - 0 + 46 BETWEEN 67 * - 64 AND + - col1
----

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE 77 >= col0
----
51
67
77

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + - 56 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3304
3808
5376

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT col1 + col1 + + col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT 34 - - - col1 FROM tab1
----
-13
20
29

query I rowsort
SELECT ALL + col0 - + 87 FROM tab2 WHERE NOT ( NULL ) <= ( - 26 )
----

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 WHERE ( 33 * + 30 + - col2 * 30 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, 90 FROM tab2
----
51
90
67
90
77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ( - MIN( DISTINCT + col2 ) ) - + 91 + 10 * + COUNT( * ) * + ( COUNT( * ) ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4795
SELECT ( - MIN ( DISTINCT + col2 ) ) - + 91 + 10 * + COUNT ( * ) * + ( COUNT ( * ) ) FROM tab1
----
-60

query III rowsort
SELECT * FROM tab0 WHERE - - 69 <> 86 + + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 cor0 WHERE NOT - 45 + + - col1 + - col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT col2 + - - 30 FROM tab2 AS cor0
----
53
70
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT CAST( NULL AS SIGNED ) / - 77 * + - AVG ( ALL - + 25 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4799
SELECT CAST ( NULL AS INTEGER ) / - 77 * + - AVG ( ALL - + 25 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT + + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4800
SELECT + + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 75 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
75

query I rowsort
SELECT 28 * ( col0 ) AS col0 FROM tab0
----
2436
2716
420

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 26 + - col0 - - 52 <> + col2 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 78 * - - 49 AS col2 FROM tab1 cor0
----
-3822

query II rowsort
SELECT + col1 * 48 AS col0, + 4 AS col2 FROM tab0 AS cor0
----
1008
4
3888
4
48
4

query I rowsort
SELECT ALL - + ( col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT - col1 - - - ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 < - - col2
----
-10
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 24 + + col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 38 AS col2 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT ALL - - 48 * - col0 FROM tab2 AS cor0
----
-2208
-3072
-3600

query I rowsort
SELECT 87 * + ( + ( 96 ) ) + - col1 FROM tab1 AS cor0
----
8305
8338
8347

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE 80 * - col0 IS NULL
----

query II rowsort
SELECT + col0, + 10 + - 58 * 60 FROM tab1
----
51
-3470
85
-3470
91
-3470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT DISTINCT CAST( + + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT 6 * + + COUNT( - col2 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT 6 * + + COUNT ( - col2 ) FROM tab1
----
18

query I rowsort
SELECT col1 * + col0 * + - 8 AS col2 FROM tab1
----
-3400
-34216
-5712

query I rowsort
SELECT ALL - 44 + + col0 AS col2 FROM tab1
----
41
47
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4818
SELECT ALL - 38 DIV + col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL - 38 / + col2 FROM tab0
----
-3
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4819
SELECT + COUNT( * ) + - + COUNT( - col2 ), SUM( ( - ( 59 ) ) ) AS col1 FROM tab1
----
0
-177

skipif mysql # not compatible
query II rowsort label-4819
SELECT + COUNT ( * ) + - + COUNT ( - col2 ), SUM ( ( - ( 59 ) ) ) AS col1 FROM tab1
----
0
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + + col2 * 66 * 32 col1 FROM tab1 AS cor0 WHERE NOT col2 + - + 33 IS NOT NULL
----

query I rowsort
SELECT - ( + - ( + - 63 ) ) + 21 * + col0 * ( + 17 ) AS col2 FROM tab1 AS cor0
----
18144
30282
32424

query I rowsort
SELECT DISTINCT + col1 * col2 * ( col2 ) AS col2 FROM tab1 AS cor0
----
129024
17405
217328

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col2
----

query I rowsort
SELECT ALL 59 + col0 + + + col2 FROM tab0
----
121
156
255

query I rowsort
SELECT DISTINCT - col0 + - 71 AS col0 FROM tab2
----
-117
-135
-146

query III rowsort
SELECT * FROM tab1 WHERE col2 = NULL
----

query I rowsort
SELECT 15 - col2 FROM tab2 AS cor0
----
-25
-43
-8

query I rowsort
SELECT DISTINCT 53 - + 64 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT + 41 + + + col2 + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + col1 - - col2 FROM tab2 cor0
----
2624
4547
5969

query I rowsort
SELECT DISTINCT + col1 - + - col1 AS col1 FROM tab1 AS cor0
----
10
28
94

query I rowsort
SELECT DISTINCT + 59 * 17 AS col2 FROM tab0 cor0
----
1003

onlyif mysql # aggregate syntax: 
query II rowsort label-4833
SELECT ALL 97 + - COUNT( * ) AS col0, SUM( - col2 ) AS col2 FROM tab0
----
94
-156

skipif mysql # not compatible
query II rowsort label-4833
SELECT ALL 97 + - COUNT ( * ) AS col0, SUM ( - col2 ) AS col2 FROM tab0
----
94
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4835
SELECT CAST( 36 AS SIGNED ) * 94 * col2 + - 51 - + + col0 FROM tab1 WHERE 85 NOT IN ( + + 71, - col2 )
----
199520
229970
324762

skipif mysql # not compatible
query I rowsort label-4835
SELECT CAST ( 36 AS INTEGER ) * 94 * col2 + - 51 - + + col0 FROM tab1 WHERE 85 NOT IN ( + + 71, - col2 )
----
199520
229970
324762

query I rowsort
SELECT + + col2 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT SUM( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT SUM ( DISTINCT - + col0 ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + 80 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 col2 FROM tab2 AS cor0
----
92
92
92

query II rowsort
SELECT + col2, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL + + COUNT( * ) DIV - 17 + - + 88 - - 5 + - COUNT( * ) + - + COUNT( * ) FROM tab2 WHERE NOT - + ( col2 ) IS NOT NULL
----
-83

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + + COUNT ( * ) / - 17 + - + 88 - - 5 + - COUNT ( * ) + - + COUNT ( * ) FROM tab2 WHERE NOT - + ( col2 ) IS NOT NULL
----
-83

query I rowsort
SELECT ALL col2 * col0 FROM tab2 WHERE NULL BETWEEN - col0 AND col1 * + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( - col1 ) <> ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4846
SELECT 41 DIV - 9 AS col1 FROM tab0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4846
SELECT 41 / - 9 AS col1 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT ( + - 14 ) * - col1 * 24 * - + col2 AS col0 FROM tab0
----
-1279152
-33264
-70560

query I rowsort
SELECT ALL col1 / + col1 - - col1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( - ( 11 ) ) * col2 col0, col1 AS col2, - ( + 11 ) FROM tab2 AS cor0 WHERE NOT + 49 * - col0 - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT COUNT( ALL col2 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4850
SELECT COUNT ( ALL col2 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE NOT col1 / + col1 / + col1 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4852
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - col0 + + CAST( NULL AS SIGNED ) - + col2 AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-4852
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN + - col0 + + CAST ( NULL AS INTEGER ) - + col2 AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT DISTINCT - CAST( 89 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - CAST ( 89 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-89

query II rowsort
SELECT + col0, - col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

query II rowsort
SELECT ALL - col1, col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT ALL COUNT( * ), 79 AS col2 FROM tab0 AS cor0
----
3
79

skipif mysql # not compatible
query II rowsort label-4856
SELECT ALL COUNT ( * ), 79 AS col2 FROM tab0 AS cor0
----
3
79

query II rowsort
SELECT - col0 AS col0, 4 + + col1 FROM tab0 AS cor0
----
-15
85
-87
25
-97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - COUNT( ALL + 59 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4858
SELECT - COUNT ( ALL + 59 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col1, + ( col2 ) * - col1 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT COUNT( ALL + ( + - col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4860
SELECT COUNT ( ALL + ( + - col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + 4 + COUNT( + col2 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + 4 + COUNT ( + col2 ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT COUNT( 52 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4862
SELECT COUNT ( 52 ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4863
SELECT DISTINCT COUNT( * ) * MAX( col2 ) * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT COUNT ( * ) * MAX ( col2 ) * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - col1 - - 78 AS col0 FROM tab2 cor0
----
-19
-63
-64

query I rowsort
SELECT DISTINCT - - 96 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4866
SELECT DISTINCT COUNT( * ) + + + MAX( - CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT COUNT ( * ) + + + MAX ( - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT DISTINCT + - 67 + ( MAX( 85 ) ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + - 67 + ( MAX ( 85 ) ) FROM tab2 cor0
----
18

query I rowsort
SELECT ALL - col2 + - 14 FROM tab1 AS cor0
----
-110
-73
-82

query I rowsort
SELECT ALL 77 AS col0 FROM tab1 AS cor0 WHERE + 67 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + MIN( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4870
SELECT + MIN ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4871
SELECT * FROM tab1 AS cor0 WHERE CAST( + 16 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4871
SELECT * FROM tab1 AS cor0 WHERE CAST ( + 16 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 6 ) col1 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT - - COUNT( DISTINCT + 30 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4873
SELECT - - COUNT ( DISTINCT + 30 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4874
SELECT DISTINCT + 33 DIV - col2 * 65 + - 35 + + col1 AS col0 FROM tab1 AS cor0
----
-21
-30
12

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + 33 / - col2 * 65 + - 35 + + col1 AS col0 FROM tab1 AS cor0
----
-21
-30
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT MIN( ALL 55 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
55

skipif mysql # not compatible
query I rowsort label-4875
SELECT MIN ( ALL 55 ) AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 42 - - col2 col2 FROM tab2 AS cor0
----
-19
-2
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT + 77 - COUNT( * ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT + 77 - COUNT ( * ) AS col2 FROM tab1
----
74

query II rowsort
SELECT ALL col0 AS col2, 71 * + col2 AS col2 FROM tab0
----
15
3337
87
710
97
7029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4879
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT DISTINCT + ( COUNT( - 26 ) ) * 88 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + ( COUNT ( - 26 ) ) * 88 FROM tab2
----
264

query II rowsort
SELECT DISTINCT ( + + 45 ) AS col2, + 32 FROM tab1
----
45
32

query II rowsort
SELECT - col2 * col2 AS col0, col1 FROM tab0
----
-100
21
-2209
81
-9801
1

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( - - 18 ) / + col2 / + ( + 26 ) AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4884
SELECT ALL ( - 31 ) AS col0, COUNT( * ) + - + SUM( + col0 ) * - 60 FROM tab0 AS cor0
----
-31
11943

skipif mysql # not compatible
query II rowsort label-4884
SELECT ALL ( - 31 ) AS col0, COUNT ( * ) + - + SUM ( + col0 ) * - 60 FROM tab0 AS cor0
----
-31
11943

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL + COUNT( 4 ) * - COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL + COUNT ( 4 ) * - COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT 10 DIV 54 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4886
SELECT 10 / 54 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT + col0 - - - ( - + col1 ) FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) <= + + col1 + 25 - col2 / + 27
----

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + col0 - - - ( - + col1 ) FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) <= + + col1 + 25 - col2 / + 27
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT DISTINCT MIN( ALL + col2 ), 66 AS col2 FROM tab0 AS cor0
----
10
66

skipif mysql # not compatible
query II rowsort label-4888
SELECT DISTINCT MIN ( ALL + col2 ), 66 AS col2 FROM tab0 AS cor0
----
10
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 42 * - 41 col1 FROM tab2 AS cor0
----
115374
132594
87822

query I rowsort
SELECT DISTINCT - 70 + + col0 FROM tab0 AS cor0 WHERE NOT 9 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + - col2 = + 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - - SUM( + col0 ) FROM tab1 AS cor0 WHERE NOT + col1 * - 58 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - - SUM ( + col0 ) FROM tab1 AS cor0 WHERE NOT + col1 * - 58 IS NULL
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT DISTINCT CAST( ( - 75 ) AS SIGNED ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT CAST ( ( - 75 ) AS INTEGER ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + ( - + col0 ) * - col2 + + col2 FROM tab0 AS cor0 WHERE NOT col2 + - 24 * - col2 * col0 - col2 IS NULL
----
752
880
9702

query I rowsort
SELECT ALL + 49 AS col2 FROM tab0 cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 13 = NULL
----

query I rowsort
SELECT ALL + 54 AS col2 FROM tab0 WHERE + 62 / + 23 BETWEEN ( col1 ) AND - 80 + - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT ALL + 30 DIV + col0 * - 18 + col0 col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4898
SELECT ALL + 30 / + col0 * - 18 + col0 col1 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT ALL CAST( - col0 AS SIGNED ) * - col0 + - col0 AS col2 FROM tab0
----
210
7482
9312

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL CAST ( - col0 AS INTEGER ) * - col0 + - col0 AS col2 FROM tab0
----
210
7482
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 + - ( - col1 ) col1 FROM tab0
----
129
177
99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT 11 * - COUNT( - col2 ) AS col1 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-4902
SELECT 11 * - COUNT ( - col2 ) AS col1 FROM tab0
----
-33

query I rowsort
SELECT col0 * + 3 - + col2 AS col1 FROM tab2
----
115
152
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT ALL + COUNT( * ) - 30 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL + COUNT ( * ) - 30 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT - - ( - col2 ) * col0 * - col1 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT col2 * - + col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT MIN( ( - 64 ) ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-4907
SELECT MIN ( ( - 64 ) ) FROM tab2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT SUM( col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4908
SELECT SUM ( col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT ALL - 75 * - col2 FROM tab2
----
1725
3000
4350

query II rowsort
SELECT ALL col0, + col0 AS col1 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT + - 4 AS col1 FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT + 42 * col0 AS col1 FROM tab1
----
2142
3570
3822

onlyif mysql # DIV for integer division: 
query I rowsort label-4913
SELECT ALL + 48 DIV - col1 AS col0 FROM tab0
----
-2
-48
0

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + 48 / - col1 AS col0 FROM tab0
----
-2
-48
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT - col2 DIV col0 * + col2 * + - 70 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4914
SELECT - col2 / col0 * + col2 * + - 70 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 17 * + col0 AS col1 FROM tab1
----
1445
1547
867

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4916
SELECT ALL + COUNT( * ) DIV 99 + + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL + COUNT ( * ) / 99 + + + COUNT ( * ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 + col2 * 18 col0 FROM tab1
----
1067
1229
1733

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * - - col1 + - col1 * col0 + + col0 + - 78 * 25 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT DISTINCT col1 * - - col2 * + col1 * 56 * col0 + + - col2 DIV - col0 FROM tab2 AS cor0
----
1093520400
154104048
849981440

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT col1 * - - col2 * + col1 * 56 * col0 + + - col2 / - col0 FROM tab2 AS cor0
----
1093520400
154104048
849981440

query I rowsort
SELECT ALL - ( 5 ) + + 76 AS col1 FROM tab2 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL + + SUM( + col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL + + SUM ( + col2 ) AS col2 FROM tab1 cor0
----
223

query I rowsort
SELECT + 6 * + col0 + col2 FROM tab2 AS cor0
----
299
424
508

query I rowsort
SELECT DISTINCT - - 8 + + col1 FROM tab2 cor0
----
59
75
85

query II rowsort
SELECT ALL col1 AS col0, 44 + col1 FROM tab1 AS cor0
----
14
58
47
91
5
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) + 48 AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) + 48 AS col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT col1 + + ( - col1 ) * - col2 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query II rowsort label-4927
SELECT col0 DIV + + col1 AS col1, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
1
58

skipif mysql # not compatible
query II rowsort label-4927
SELECT col0 / + + col1 AS col1, col2 AS col0 FROM tab2 AS cor0
----
0
23
0
40
1
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT - 89 DIV col2 + col2 + + + col2 * - ( 52 ) AS col1 FROM tab0 AS cor0
----
-2398
-5049
-518

skipif mysql # not compatible
query I rowsort label-4928
SELECT - 89 / col2 + col2 + + + col2 * - ( 52 ) AS col1 FROM tab0 AS cor0
----
-2398
-5049
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-4929
SELECT DISTINCT 90 DIV - - col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT 90 / - - col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT - MAX( ALL + col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4930
SELECT - MAX ( ALL + col1 ) AS col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL 12 - + - MIN( ALL - col2 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL 12 - + - MIN ( ALL - col2 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + col0 + - col1 + - - 77 * - - col2 FROM tab1
----
4623
5280
7429

query II rowsort
SELECT DISTINCT + col0 + - col1, ( - col2 ) AS col1 FROM tab2
----
-13
-40
-5
-23
8
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT - - MAX( DISTINCT col0 ) AS col2 FROM tab2 WHERE + col0 + + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT - - MAX ( DISTINCT col0 ) AS col2 FROM tab2 WHERE + col0 + + + col0 IS NULL
----
NULL

query I rowsort
SELECT + ( - + col0 ) AS col2 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 38 + + + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4938
SELECT DISTINCT col0 DIV - - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-17
-81
96

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT col0 / - - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-17
-81
96

query I rowsort
SELECT + col0 - + - 17 AS col2 FROM tab0 AS cor0
----
104
114
32

query I rowsort
SELECT ALL - + ( - + col2 ) + col1 * - - 32 * - 2 FROM tab2 AS cor0
----
-3241
-4230
-4888

query I rowsort
SELECT col2 + - 0 FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col1 * - 70 col2 FROM tab1
----
20650
223720
94080

query I rowsort
SELECT DISTINCT - ( 29 ) * - col1 + ( - 68 ) AS col1 FROM tab2 AS cor0
----
1411
1875
2165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 78 AS col2, col2 col0 FROM tab1 AS cor0
----
78
59
78
68
78
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 95 col1 FROM tab0 AS cor0
----
-4465
-9405
-950

query I rowsort
SELECT DISTINCT + 17 * + - col1 FROM tab2 AS cor0
----
-1139
-1309
-867

query I rowsort
SELECT DISTINCT ( - 99 ) AS col1 FROM tab1 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - 60 * - col1 col0 FROM tab2 cor0
----
-156060
-269340
-355740

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL COUNT( * ) * 74 AS col0 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL COUNT ( * ) * 74 AS col0 FROM tab0 AS cor0
----
222

query I rowsort
SELECT ALL + 81 * ( - - col0 ) FROM tab0
----
1215
7047
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - SUM( DISTINCT col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

skipif mysql # not compatible
query I rowsort label-4951
SELECT - SUM ( DISTINCT col2 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-223

query I rowsort
SELECT DISTINCT + col0 * 79 * - 52 AS col2 FROM tab0
----
-357396
-398476
-61620

query I rowsort
SELECT col1 * - + ( + + 96 ) FROM tab1
----
-1344
-4512
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col2 col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ( - 81 ) * col0 FROM tab1 cor0
----
-4131
-6885
-7371

query II rowsort
SELECT ALL - - col0 * - col0, + col0 AS col2 FROM tab0 AS cor0
----
-225
15
-7569
87
-9409
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT ALL + CAST( NULL AS SIGNED ) * - 15 + + + 61 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + CAST ( NULL AS INTEGER ) * - 15 + + + 61 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ALL - col0 DIV 35 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - col0 / 35 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT + + 53 AS col1 FROM tab2 cor0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4960
SELECT - - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4960
SELECT - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 55 + + 83
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4963
SELECT ALL col1 + - + col2 - + CAST( col0 AS SIGNED ) + col1 AS col0, + col1 + ( + 63 ) DIV col1 FROM tab0 AS cor0
----
-194
64
-55
24
100
81

skipif mysql # not compatible
query II rowsort label-4963
SELECT ALL col1 + - + col2 - + CAST ( col0 AS INTEGER ) + col1 AS col0, + col1 + ( + 63 ) / col1 FROM tab0 AS cor0
----
-194
64
-55
24
100
81

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1 cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT ALL - + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * + col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2461
3432
4033

query II rowsort
SELECT ALL col1 AS col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab1, tab0 cor0
----
-38

query I rowsort
SELECT - - 73 AS col1 FROM tab0 WHERE - + col2 <> - - col1
----
73
73
73

query II rowsort
SELECT + + 62 + - - col0 / - 97 * - col1 AS col2, - 49 + + + ( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + - col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT col0 * - 79 + - 97 AS col2 FROM tab2 cor0
----
-3731
-5153
-6022

query II rowsort
SELECT DISTINCT - + ( + + 49 ), + col0 FROM tab0 AS cor0
----
-49
15
-49
87
-49
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4974
SELECT SUM( - ( - 80 ) ) * + CAST( NULL AS SIGNED ) * + SUM( DISTINCT + col2 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT SUM ( - ( - 80 ) ) * + CAST ( NULL AS INTEGER ) * + SUM ( DISTINCT + col2 ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT - MIN( DISTINCT - - 58 ) AS col1 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT - MIN ( DISTINCT - - 58 ) AS col1 FROM tab0
----
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4976
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4976
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE - + col2 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4978
SELECT DISTINCT * FROM tab2 WHERE NOT - 47 + - 35 - - col0 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4978
SELECT DISTINCT * FROM tab2 WHERE NOT - 47 + - 35 - - col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 95 * + col0 AS col1 FROM tab0
----
1425
8265
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - - COUNT( * ) * - ( - MAX( + col0 ) ) AS col2 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4980
SELECT - - COUNT ( * ) * - ( - MAX ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
291

query I rowsort
SELECT + ( + 11 ) AS col0 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + 51 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT DISTINCT + - COUNT( * ) + + 2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT + - COUNT ( * ) + + 2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT - col1 FROM tab2 AS cor0 WHERE - CAST( 1 AS SIGNED ) * + col1 + - col2 + + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4986
SELECT - col1 FROM tab2 AS cor0 WHERE - CAST ( 1 AS INTEGER ) * + col1 + - col2 + + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT ALL 37 + + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL 37 + + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT DISTINCT - ( - SUM( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - ( - SUM ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT 47 * + 91 AS col2 FROM tab1 AS cor0
----
4277
4277
4277

onlyif mysql # DIV for integer division: 
query I rowsort label-4990
SELECT + col2 DIV col0 * + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4990
SELECT + col2 / col0 * + col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + 17 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4991
SELECT + 17 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT ALL + 3 * - 82 * + col0 FROM tab0 AS cor0
----
-21402
-23862
-3690

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + 84 + 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4994
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST( col1 AS SIGNED ) = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4994
SELECT DISTINCT * FROM tab0 WHERE NOT - + CAST ( col1 AS INTEGER ) = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT + MAX( - col0 ) + + 83 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + MAX ( - col0 ) + + 83 FROM tab0
----
68

query I rowsort
SELECT DISTINCT col0 * + + 25 - col0 FROM tab2
----
1104
1536
1800

query I rowsort
SELECT col2 - + col2 * - col1 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT + col0 - - 42 AS col2 FROM tab0
----
129
139
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL - CAST( NULL AS SIGNED ) - 62 - + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL - CAST ( NULL AS INTEGER ) - 62 - + - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 - col2 AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT + COUNT( ALL col1 ) FROM tab1 cor0 WHERE 17 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5002
SELECT + COUNT ( ALL col1 ) FROM tab1 cor0 WHERE 17 IS NOT NULL
----
3

query I rowsort
SELECT - col0 + - ( - - col1 ) + - ( - - col0 ) FROM tab1 AS cor0
----
-116
-175
-229

query I rowsort
SELECT ALL 55 * - - 10 FROM tab0
----
550
550
550

query I rowsort
SELECT + + 28 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT DISTINCT + MIN( ALL col0 ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5006
SELECT DISTINCT + MIN ( ALL col0 ) col1 FROM tab2
----
46

query I rowsort
SELECT - 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5008
SELECT col2 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5008
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5009
SELECT - - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + col1 * 35 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL + + MIN( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5011
SELECT ALL + + MIN ( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21, - col0 col1 FROM tab0 AS cor0
----
-21
-15
-21
-87
-21
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 7 col1, 70 FROM tab1 AS cor0
----
-7
70
-7
70
-7
70

query II rowsort
SELECT DISTINCT - col2 AS col0, + 27 * + - 59 AS col2 FROM tab0 AS cor0
----
-10
-1593
-47
-1593
-99
-1593

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - - col1 + + 79 * - col2 AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 68 * - 49 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * col0 col1, + col0 + col1 * + col0 col0 FROM tab1
----
425
510
4277
4368
714
765

query I rowsort
SELECT - col0 * - col0 + - col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 * - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - + 77 * - col2 * 26 * col2 FROM tab1
----
-592361770
-842409568
-940972032

query II rowsort
SELECT + 78 * - col1 + col0 + + + col0 + + col0, - col1 * + 71 AS col0 FROM tab0 AS cor0
----
-1377
-1491
-6273
-5751
213
-71

query I rowsort
SELECT ALL - - col1 * - - col0 FROM tab0 AS cor0 WHERE NOT - 85 IS NULL
----
1215
1827
97

query I rowsort
SELECT - + 38 + + + col2 AS col1 FROM tab2 cor0
----
-15
2
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - COUNT( + col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - COUNT ( + col0 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5026
SELECT 76 DIV + - COUNT( * ) FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-5026
SELECT 76 / + - COUNT ( * ) FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT DISTINCT MAX( ALL + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT MAX ( ALL + + col0 ) FROM tab0
----
97

query I rowsort
SELECT ALL - col0 + + 21 AS col1 FROM tab1
----
-30
-64
-70

query II rowsort
SELECT 1 AS col1, col2 AS col2 FROM tab0
----
1
10
1
47
1
99

query II rowsort
SELECT - col0, + 42 AS col1 FROM tab2
----
-46
42
-64
42
-75
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT ALL + - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0 * - 11 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > col0 * - 11 * + col1
----
0

query I rowsort
SELECT ALL ( - col2 ) + - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL + MIN( - - 3 ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + MIN ( - - 3 ) AS col2 FROM tab1 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - col0 - + - col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL col2 * 61 AS col2 FROM tab2 cor0
----
1403
2440
3538

query I rowsort
SELECT ALL + col0 * - 86 * col2 AS col0 FROM tab2
----
-220160
-374100
-90988

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL + CAST( NULL AS SIGNED ) / - + col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5037
SELECT ALL + CAST ( NULL AS INTEGER ) / - + col1 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 75 * + col2 * + + col2 > + + col1 + - 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT DISTINCT + 3 * + + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + 3 * + + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT + 98 + 87 + - - col1 AS col2 FROM tab2
----
236
252
262

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5041
SELECT * FROM tab1 WHERE - + col1 * + CAST( - col0 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5041
SELECT * FROM tab1 WHERE - + col1 * + CAST ( - col0 AS INTEGER ) = NULL
----

query I rowsort
SELECT - col0 * + - col1 + + - col2 FROM tab2
----
2323
4888
4967

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT - col2 DIV - 43 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5043
SELECT - col2 / - 43 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT DISTINCT - 77 * + COUNT( - col1 ) AS col0 FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5044
SELECT DISTINCT - 77 * + COUNT ( - col1 ) AS col0 FROM tab2
----
-231

query I rowsort
SELECT DISTINCT - 71 + + + col2 FROM tab1
----
-12
-3
25

query I rowsort
SELECT + + col0 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( col0, - 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT ALL COUNT( * ) * - 98 + + - ( + - COUNT( * ) ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL COUNT ( * ) * - 98 + + - ( + - COUNT ( * ) ) FROM tab1
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT DISTINCT - COUNT( * ) - + 14 AS col0 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - COUNT ( * ) - + 14 AS col0 FROM tab0
----
-17

query I rowsort
SELECT DISTINCT - col2 * col0 * - 6 AS col0 FROM tab0
----
4230
5220
57618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 * - + col0 col1 FROM tab2
----
-2254
-3136
-3675

query I rowsort
SELECT ALL - ( + + col1 ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5052
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + 94 ) col2 FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT + + MIN( DISTINCT + 38 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
38

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT + + MIN ( DISTINCT + 38 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
38

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2 cor0
----
45
45
45

query I rowsort
SELECT 40 * + - 15 AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - col0 <= col1 * + col2
----

query I rowsort
SELECT DISTINCT ( + 78 ) FROM tab2 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL BETWEEN - 71 / col2 AND - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT ALL MIN( - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL MIN ( - col0 ) FROM tab1
----
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5061
SELECT COUNT( * ) AS col0, - 72 * + 1 FROM tab1
----
3
-72

skipif mysql # not compatible
query II rowsort label-5061
SELECT COUNT ( * ) AS col0, - 72 * + 1 FROM tab1
----
3
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT + 42 + + - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
42

skipif mysql # not compatible
query I rowsort label-5062
SELECT + 42 + + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = NULL
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5063
SELECT ALL ( col0 ) + + CAST( - 14 AS SIGNED ) * 82 AS col0, - col2 AS col1 FROM tab1 WHERE + col2 + + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL ( col0 ) + + CAST ( - 14 AS INTEGER ) * 82 AS col0, - col2 AS col1 FROM tab1 WHERE + col2 + + CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NOT + col1 + + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5064
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + col1 + + col2 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5066
SELECT DISTINCT - 67, + CAST( + 87 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-67
87

skipif mysql # not compatible
query II rowsort label-5066
SELECT DISTINCT - 67, + CAST ( + 87 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-67
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT ALL + 82 AS col2, SUM( ALL - ( - col1 ) ) FROM tab0 AS cor0
----
82
103

skipif mysql # not compatible
query II rowsort label-5067
SELECT ALL + 82 AS col2, SUM ( ALL - ( - col1 ) ) FROM tab0 AS cor0
----
82
103

query I rowsort
SELECT + 36 + col1 + - - col2 FROM tab1 AS cor0
----
100
146
151

query I rowsort
SELECT 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT DISTINCT col0 * 74 AS col1, 37 AS col0 FROM tab1
----
3774
37
6290
37
6734
37

query I rowsort
SELECT ALL col0 * - 21 * - + col2 AS col0 FROM tab0
----
14805
18270
201663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL - - 51 + + ( CAST( 69 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
120
120
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5072
SELECT ALL - - 51 + + ( CAST ( 69 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
120
120
120

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18

query I rowsort
SELECT ALL + + 87 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT - + ( 68 ) FROM tab1 AS cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + + col1 - 54 FROM tab1 AS cor0
----
-40
-49
-7

query I rowsort
SELECT ALL - ( ( 34 ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - - col0 * - 49 FROM tab1 AS cor0
----
-2499
-4165
-4459

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE col2 <> + + col0 * - + 47
----
51
67
77

query I rowsort
SELECT DISTINCT 89 - - col2 FROM tab2
----
112
129
147

query I rowsort
SELECT ALL + col2 * 40 FROM tab2
----
1600
2320
920

query I rowsort
SELECT DISTINCT col2 + col2 * + col2 AS col0 FROM tab0
----
110
2256
9900

query I rowsort
SELECT + col2 * 54 FROM tab2 AS cor0
----
1242
2160
3132

query I rowsort
SELECT DISTINCT 17 * - col0 AS col1 FROM tab2 AS cor0
----
-1088
-1275
-782

query II rowsort
SELECT + col0 + col0 + - col1 + + - 72 + + - col1 / + col1 / - + col0, - col1 * + + 13 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT COUNT( ALL 4 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5086
SELECT COUNT ( ALL 4 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL COUNT( ALL 46 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL COUNT ( ALL 46 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5088
SELECT 66 + CAST( NULL AS DECIMAL ) * SUM( + col0 ) AS col2 FROM tab0 WHERE NOT col1 NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT 66 + CAST ( NULL AS REAL ) * SUM ( + col0 ) AS col2 FROM tab0 WHERE NOT col1 NOT IN ( + col2 )
----
NULL

query I rowsort
SELECT DISTINCT - col2 / + 51 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT COUNT( DISTINCT col1 ) - 18 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT COUNT ( DISTINCT col1 ) - 18 FROM tab2
----
-15

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col2 NOT BETWEEN col1 * + 45 AND ( + col0 / + 28 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 95 ) AS col2 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL MIN( - col2 ) - - 95 AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL MIN ( - col2 ) - - 95 AS col0 FROM tab2
----
37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 <> ( NULL )
----

query I rowsort
SELECT DISTINCT - 3 + col0 FROM tab1
----
48
82
88

query I rowsort
SELECT DISTINCT - ( 70 ) AS col2 FROM tab1
----
-70

query I rowsort
SELECT - 21 + + 32 FROM tab2 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT col2 - col1 * - 88 AS col2 FROM tab2 WHERE 7 IS NULL
----

query I rowsort
SELECT DISTINCT 95 * - col1 + col1 AS col0 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5100
SELECT * FROM tab0 WHERE col0 > + CAST( col2 AS SIGNED ) * + 36
----

skipif mysql # not compatible
query III rowsort label-5100
SELECT * FROM tab0 WHERE col0 > + CAST ( col2 AS INTEGER ) * + 36
----

query I rowsort
SELECT DISTINCT col0 - col2 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - SUM( DISTINCT - 28 ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5102
SELECT - SUM ( DISTINCT - 28 ) AS col2 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT ( + col2 - col0 ) >= ( col0 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT ( + col2 - col0 ) >= ( col0 * col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL + COUNT( col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5104
SELECT ALL + COUNT ( col2 ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE 75 > NULL
----

query I rowsort
SELECT + col1 + 34 AS col1 FROM tab1
----
39
48
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT MIN( 70 ) AS col0 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-5108
SELECT MIN ( 70 ) AS col0 FROM tab1
----
70

query I rowsort
SELECT ALL - 0 * 99 AS col1 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) >= ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL MAX( ALL + col0 ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL MAX ( ALL + col0 ) AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT + col2 * CAST( 69 AS SIGNED ) col2 FROM tab2 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5112
SELECT + col2 * CAST ( 69 AS INTEGER ) col2 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-5113
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT 19 + - col0 FROM tab2
----
-27
-45
-56

query I rowsort
SELECT + col1 * 77 FROM tab0
----
1617
6237
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL + CAST( NULL AS SIGNED ) - col1 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 * col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5117
SELECT - 37 + - 67 DIV col0 AS col0 FROM tab2
----
-37
-38
-38

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 37 + - 67 / col0 AS col0 FROM tab2
----
-37
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5118
SELECT - 81 + AVG ( 9 ) * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5118
SELECT - 81 + AVG ( 9 ) * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT ( AVG ( ALL 63 ) ) FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) > ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT ( AVG ( ALL 63 ) ) FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) > ( + col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + 94 + 24 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 )
----

query I rowsort
SELECT ALL 9 FROM tab0 AS cor0 WHERE NOT 60 <= - ( col0 )
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT DISTINCT + 39 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + 39 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5124
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 28 FROM tab2 AS cor0 WHERE NULL = 94 * col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 94 * + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 - - 92 AS col2 FROM tab2 cor0
----
143
159
169

query I rowsort
SELECT ALL + 76 - col2 FROM tab2 AS cor0
----
18
36
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5129
SELECT - CAST( - 98 AS SIGNED ) / col2 AS col2 FROM tab0 cor0 WHERE col1 / - 50 - + 49 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5129
SELECT - CAST ( - 98 AS INTEGER ) / col2 AS col2 FROM tab0 cor0 WHERE col1 / - 50 - + 49 IS NULL
----

query I rowsort
SELECT col2 + - + col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + 20 * col2 * 77 FROM tab2
----
35420
61600
89320

query I rowsort
SELECT - col1 FROM tab2 WHERE 59 NOT IN ( col0 + col1 )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT 81 DIV 2 * + col1 AS col0 FROM tab1
----
1880
200
560

skipif mysql # not compatible
query I rowsort label-5133
SELECT 81 / 2 * + col1 AS col0 FROM tab1
----
1880
200
560

query I rowsort
SELECT - col2 * - - col0 AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT 47 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT 47 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <> ( - col2 )
----

query I rowsort
SELECT col0 * - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT 6 + - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( col2 ) - col1 <= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT + 0 DIV + - col1 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5140
SELECT + 0 / + - col1 + + col1 AS col2 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT - - 55 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - - 55 / + col0 AS col1 FROM tab0 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT - SUM( ALL 50 ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-5144
SELECT - SUM ( ALL 50 ) AS col1 FROM tab0
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 52 * - col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( ( 63 ) ) AND ( - 3 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( + 9 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * col2 * - 38 + ( col1 ) AS col2 FROM tab2 AS cor0
----
127899
20153
60877

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT COUNT( * ) * - COUNT( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5151
SELECT COUNT ( * ) * - COUNT ( ALL - col1 ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5152
SELECT + col1 DIV col1 * col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5152
SELECT + col1 / col1 * col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5153
SELECT + - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) + + - 3 AS col1 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5153
SELECT + - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) + + - 3 AS col1 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT DISTINCT ( 3 ) + + - 21 FROM tab1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 - - - col1 col2 FROM tab0
----
-113
-3
56

query II rowsort
SELECT ALL 45 + + 71 AS col2, - col1 FROM tab0
----
116
-1
116
-21
116
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT ALL - ( ( AVG ( - col0 ) ) ) AS col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) + ( + col1 ) * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - ( ( AVG ( - col0 ) ) ) AS col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + ( + col1 ) * + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT - COUNT( * ) FROM tab2 WHERE - col2 < ( col0 )
----
-3

skipif mysql # not compatible
query I rowsort label-5158
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 < ( col0 )
----
-3

query I rowsort
SELECT DISTINCT 87 + + col0 FROM tab0 AS cor0
----
102
174
184

query I rowsort
SELECT + + 93 + + col2 FROM tab2 AS cor0
----
116
133
151

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT - - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT - - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 + - 46 AS col0 FROM tab0
----
-31
41
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT COUNT( + ( + col2 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT COUNT ( + ( + col2 ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 / + 47 + - - col2 * + col2 >= ( + 19 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 77 - + col2 FROM tab1 AS cor0
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL - - 61 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - - 61 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - 47 col1 FROM tab2 AS cor0
----
-46
-47
-64
-47
-75
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + 36 - - 35 + + ( COUNT( * ) ) * - 12 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5168
SELECT + 36 - - 35 + + ( COUNT ( * ) ) * - 12 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 66 <= - col2 * + - col0 + col1 AND col0 NOT IN ( - ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col2 FROM tab2 AS cor0
----
59
59
59

query II rowsort
SELECT 69 * + - ( - 58 ) AS col2, col1 + - - 38 AS col0 FROM tab0 AS cor0
----
4002
119
4002
39
4002
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / - col2 + - 51 * + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - 28 ) FROM tab0
----
-28
-28
-28

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) < - - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT 16 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5177
SELECT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL + 95 + - SUM( DISTINCT - + col0 ) AS col1 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + 95 + - SUM ( DISTINCT - + col0 ) AS col1 FROM tab0
----
294

query I rowsort
SELECT - 48 * - 77 * - col1 + 89 AS col0 FROM tab0 AS cor0
----
-299287
-3607
-77527

query I rowsort
SELECT DISTINCT + + col0 + - + col0 + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + 23 FROM tab1 AS cor0 WHERE NOT ( col1 ) * - + 11 + - col2 >= ( + - col1 - + + col2 * - col1 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT - - MIN( ALL - - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5182
SELECT - - MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL - 4 * - 58 FROM tab1 AS cor0
----
232
232
232

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 88 AND + - ( + - col2 )
----

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 WHERE NOT NULL = col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL + 67 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL + 67 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 95 * - + col0 AS col1 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT ALL CAST( + 42 AS SIGNED ) + col0 AS col1 FROM tab2
----
106
117
88

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL CAST ( + 42 AS INTEGER ) + col0 AS col1 FROM tab2
----
106
117
88

onlyif mysql # aggregate syntax: 
query II rowsort label-5189
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5189
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0
----
3
-3

query I rowsort
SELECT ALL 70 + + 7 FROM tab1
----
77
77
77

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT IN ( - - col0 * + col1 )
----

query I rowsort
SELECT ALL + col1 + + - 61 FROM tab1
----
-14
-47
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT + col0 + + - 54 FROM tab1
----
-3
31
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 44 * + - col2 IS NULL
----

query I rowsort
SELECT + col1 * - col1 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1148
270
987

query II rowsort
SELECT - 90, 69 AS col2 FROM tab1 AS cor0
----
-90
69
-90
69
-90
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5198
SELECT ALL + col0 DIV - 93 - - - 36 FROM tab2
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + col0 / - 93 - - - 36 FROM tab2
----
-36
-36
-36

query II rowsort
SELECT 76 - + col1, + col2 FROM tab0
----
-5
47
55
10
75
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT 62 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5202
SELECT * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) + + + col0 * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5202
SELECT * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) + + + col0 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT DISTINCT - - MIN( ALL col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - - MIN ( ALL col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT + col1 + - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5205
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT + + MAX( + 69 ) AS col2, - 22 FROM tab0 cor0
----
69
-22

skipif mysql # not compatible
query II rowsort label-5207
SELECT + + MAX ( + 69 ) AS col2, - 22 FROM tab0 cor0
----
69
-22

query I rowsort
SELECT col2 * + + 82 AS col1 FROM tab1
----
4838
5576
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT + 12 * + MAX( DISTINCT - - 65 ) AS col1 FROM tab0
----
780

skipif mysql # not compatible
query I rowsort label-5209
SELECT + 12 * + MAX ( DISTINCT - - 65 ) AS col1 FROM tab0
----
780

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 - col0 / + - col0 NOT IN ( + 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL + MIN( + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL + MIN ( + col0 ) FROM tab1
----
51

query II rowsort
SELECT ALL col1 * + 64 * - 17, - ( - 1 ) AS col2 FROM tab2 WHERE NOT - 90 * + col2 BETWEEN NULL AND 85
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col1 + - - 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5214
SELECT ALL + + 71, COUNT( * ) * + 72 AS col0 FROM tab1 AS cor0
----
71
216

skipif mysql # not compatible
query II rowsort label-5214
SELECT ALL + + 71, COUNT ( * ) * + 72 AS col0 FROM tab1 AS cor0
----
71
216

query I rowsort
SELECT + ( - col1 ) * - 83 FROM tab0 AS cor0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT ALL - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5216
SELECT ALL - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 53 AND + + 69
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 66 * - col2 * col0 * + col2 IS NULL
----

query II rowsort
SELECT ALL - + col1 AS col1, + ( + 55 ) AS col1 FROM tab1 cor0
----
-14
55
-47
55
-5
55

query I rowsort
SELECT col0 + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 98 * - - col1 FROM tab0 AS cor0
----
2058
7938
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT + 86 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT + 86 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT - 11 * + - 86 AS col1, - col2 AS col0 FROM tab1
----
946
-59
946
-68
946
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL - ( - - COUNT( * ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - ( - - COUNT ( * ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + - col2 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT COUNT( * ) * + + ( 46 ) + + - 25 AS col1 FROM tab2
----
113

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT COUNT ( * ) * + + ( 46 ) + + - 25 AS col1 FROM tab2
----
113

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( + col0 + + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - + 70 * 11 * - + col1 / + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - + 70 * 11 * - + col1 / + + col2 IS NULL
----
0

query I rowsort
SELECT ALL col2 * - - col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + col1 + + - 91 AS col2 FROM tab0 cor0
----
-10
-70
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT CAST( NULL AS SIGNED ) * 83 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT CAST ( NULL AS INTEGER ) * 83 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( 65 * + col2 * - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 64 IS NOT NULL
----

query II rowsort
SELECT + col2, col1 AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT + ( + 67 ) AS col1 FROM tab0 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT ALL + + MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL + + MIN ( - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + - ( - + 17 ) AS col0 FROM tab2 cor0
----
17

query I rowsort
SELECT ALL col2 * + - col1 AS col0 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < col2
----

query I rowsort
SELECT + ( - 42 ) FROM tab0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - SUM( DISTINCT + 15 ) AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5242
SELECT - SUM ( DISTINCT + 15 ) AS col2 FROM tab2
----
-15

query I rowsort
SELECT 21 * + 87 * - 79 FROM tab1
----
-144333
-144333
-144333

query I rowsort
SELECT + ( - + col1 ) + + col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL - SUM( ALL - CAST( NULL AS SIGNED ) ) * + ( + - COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * + ( + - COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 68 + col0 + 0 * col1 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT - MIN( DISTINCT + + col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5247
SELECT - MIN ( DISTINCT + + col1 ) FROM tab0
----
-1

query I rowsort
SELECT - ( + + 27 ) FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + col0 - + col0 FROM tab0 cor0 WHERE NULL <> - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 + + col0 = NULL
----

query I rowsort
SELECT DISTINCT + - col2 + - 42 + col0 * - 54 FROM tab1 AS cor0
----
-2892
-4691
-5024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT CAST( 88 AS SIGNED ) + - ( + col2 ) FROM tab2 AS cor0
----
30
48
65

skipif mysql # not compatible
query I rowsort label-5252
SELECT CAST ( 88 AS INTEGER ) + - ( + col2 ) FROM tab2 AS cor0
----
30
48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT + - SUM( + col0 ) * + SUM( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
-34225

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT + - SUM ( + col0 ) * + SUM ( DISTINCT col0 ) AS col0 FROM tab2 cor0
----
-34225

query I rowsort
SELECT DISTINCT + + col1 - - col2 FROM tab1 cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - MAX( + ( - 37 ) ) + + 44 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5255
SELECT - MAX ( + ( - 37 ) ) + + 44 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 79 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5257
SELECT * FROM tab1 WHERE - CAST( + - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5257
SELECT * FROM tab1 WHERE - CAST ( + - col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col1 * + 82 * 69 * + 60 FROM tab2
----
-17313480
-22745160
-26139960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT - col2 + + + CAST( NULL AS SIGNED ) * - - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT - col2 + + + CAST ( NULL AS INTEGER ) * - - col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * + + 25 FROM tab2
----
1000
1450
575

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT - MAX( DISTINCT - col2 ) * + + 55 * - 49 * - COUNT( * ) FROM tab2
----
185955

skipif mysql # not compatible
query I rowsort label-5261
SELECT - MAX ( DISTINCT - col2 ) * + + 55 * - 49 * - COUNT ( * ) FROM tab2
----
185955

query I rowsort
SELECT ALL - 95 + - 61 - col0 AS col0 FROM tab0
----
-171
-243
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT ALL - col1 + + - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - col1 + + - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 - 94 + - col2 col2 FROM tab2 AS cor0
----
-112
-129
-147

query I rowsort
SELECT - + 84 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query II rowsort
SELECT - col2 * - - col1, col1 AS col2 FROM tab1
----
-1344
14
-295
5
-3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT - + SUM( - - 77 ) FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT ( NULL ) BETWEEN 16 + + 50 * + 46 AND ( NULL )
----
-231

skipif mysql # not compatible
query I rowsort label-5268
SELECT - + SUM ( - - 77 ) FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NOT ( NULL ) BETWEEN 16 + + 50 * + 46 AND ( NULL )
----
-231

query I rowsort
SELECT ALL 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 >= - - col0 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col0 * - 67, - col0 AS col2 FROM tab0 AS cor0
----
-1005
-15
-5829
-87
-6499
-97

query I rowsort
SELECT ALL + - 94 * + col0 * - col0 FROM tab1 AS cor0
----
244494
679150
778414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5273
SELECT DISTINCT col2 * col1 - - + 63 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT col2 * col1 - - + 63 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 61, col0 FROM tab2
----
61
46
61
64
61
75

query I rowsort
SELECT ALL ( - - 41 ) FROM tab0
----
41
41
41

query I rowsort
SELECT 56 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5279
SELECT * FROM tab1 cor0 WHERE NOT 70 + - - CAST( 5 AS SIGNED ) <> 69
----

skipif mysql # not compatible
query III rowsort label-5279
SELECT * FROM tab1 cor0 WHERE NOT 70 + - - CAST ( 5 AS INTEGER ) <> 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT ALL 6 * + col1 * col0 - + col1 + + - col2 + 23 DIV + - 33 + col0 FROM tab1 AS cor0
----
25638
2571
4225

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL 6 * + col1 * col0 - + col1 + + - col2 + 23 / + - 33 + col0 FROM tab1 AS cor0
----
25638
2571
4225

query I rowsort
SELECT DISTINCT - - col2 * - + 75 AS col2 FROM tab0 AS cor0
----
-3525
-7425
-750

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT ALL + col2 DIV - - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL + col2 / - - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 * - 29 - + + ( col1 ) FROM tab1 AS cor0
----
-1493
-2470
-2686

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT + MIN( + + col2 ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5284
SELECT DISTINCT + MIN ( + + col2 ) col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5285
SELECT DISTINCT - - COUNT( * ) AS col0, SUM( - ( - col1 ) ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
3
66

skipif mysql # not compatible
query II rowsort label-5285
SELECT DISTINCT - - COUNT ( * ) AS col0, SUM ( - ( - col1 ) ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
3
66

query I rowsort
SELECT ALL - ( - - col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE 73 >= NULL
----

query I rowsort
SELECT - 11 + - ( - - col2 ) * - col1 FROM tab0 AS cor0 WHERE col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL - col2 * CAST( - col1 AS SIGNED ) + - col0 + + col0 * col2 * + + CAST( - - ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
25285
293941
69837

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL - col2 * CAST ( - col1 AS INTEGER ) + - col0 + + col0 * col2 * + + CAST ( - - ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
25285
293941
69837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT - col2 * - CAST( - 71 AS SIGNED ) FROM tab2 AS cor0
----
-1633
-2840
-4118

skipif mysql # not compatible
query I rowsort label-5291
SELECT - col2 * - CAST ( - 71 AS INTEGER ) FROM tab2 AS cor0
----
-1633
-2840
-4118

query I rowsort
SELECT + + 60 AS col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - - 48 AS col1 FROM tab2 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT + COUNT( ALL - 21 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5294
SELECT + COUNT ( ALL - 21 ) FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT - col0 - col2 - + + 60 AS col1 FROM tab2
----
-129
-164
-193

query III rowsort
SELECT * FROM tab1 WHERE + 10 + - 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col0, - col0 - col0 - - col0 AS col0 FROM tab1
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT DISTINCT - 40 * 64 * + - col1 + col0 + + col0 * + col0 * - 12 AS col1 FROM tab0
----
-110251
-36981
204675

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + + col0 col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT 77 + - col2 AS col1 FROM tab1
----
-19
18
9

query III rowsort
SELECT * FROM tab2 WHERE + 90 <= col0
----

query I rowsort
SELECT - ( + col0 ) + - 63 * 23 FROM tab1 AS cor0
----
-1500
-1534
-1540

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = 39
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col2 + - - col2 + ( + col2 ) col2 FROM tab1 WHERE NOT ( + 57 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 43 * 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-2881

query I rowsort
SELECT - + 69 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5309
SELECT ALL MAX( DISTINCT - + col0 ) * + ( AVG ( + - CAST( NULL AS DECIMAL ) ) ) * + 72 FROM tab0 WHERE NOT + - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL MAX ( DISTINCT - + col0 ) * + ( AVG ( + - CAST ( NULL AS REAL ) ) ) * + 72 FROM tab0 WHERE NOT + - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT 52 * + - MAX( + 54 ) AS col2 FROM tab1 AS cor0
----
-2808

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT 52 * + - MAX ( + 54 ) AS col2 FROM tab1 AS cor0
----
-2808

query I rowsort
SELECT ALL col2 * + 81 FROM tab1 AS cor0
----
4779
5508
7776

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 57 * - 77 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5313
SELECT ALL - COUNT( * ) / + 76 + + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( * ) / + 76 + + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 <> + + col0 * + col0
----

query I rowsort
SELECT ALL + col1 * - 25 AS col1 FROM tab2 AS cor0
----
-1275
-1675
-1925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5316
SELECT ALL + CAST( NULL AS SIGNED ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5316
SELECT ALL + CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT DISTINCT + - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5317
SELECT DISTINCT + - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2 cor0
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 * - 46 + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 79 FROM tab2 WHERE - 35 IS NOT NULL
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + CAST( + + col2 AS SIGNED ) + + col2 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-5320
SELECT + CAST ( + + col2 AS INTEGER ) + + col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + 17 + - col0 FROM tab0
----
-70
-80
2

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * 77 * - - 14 / - 24 IS NULL
----

query I rowsort
SELECT ALL - - ( + 98 ) + + col0 FROM tab2 AS cor0
----
144
162
173

onlyif mysql # DIV for integer division: 
query I rowsort label-5324
SELECT ALL - col0 DIV - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - col0 / - ( + col2 ) AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab2 cor0
----
-21

query II rowsort
SELECT DISTINCT + col0 AS col2, - 69 AS col1 FROM tab1
----
51
-69
85
-69
91
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-5327
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-81

skipif mysql # not compatible
query II rowsort label-5327
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-81

query I rowsort
SELECT ALL col2 + - + 29 AS col2 FROM tab2
----
-6
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT MIN( + 30 ) AS col2 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5329
SELECT MIN ( + 30 ) AS col2 FROM tab0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 - + col0 IS NULL
----

query I rowsort
SELECT + - 80 + + 93 FROM tab2 cor0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 AS cor0 WHERE ( - + col0 ) * + col2 IS NULL
----

query I rowsort
SELECT + ( + col1 ) + + col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + 22 + ( - ( + col2 ) ) - - 11 FROM tab2
----
-25
-7
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 92 + + + col2 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT COUNT( * ) * SUM( + 44 ) AS col2 FROM tab1
----
396

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( * ) * SUM ( + 44 ) AS col2 FROM tab1
----
396

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 * 4 ) IS NOT NULL
----

query I rowsort
SELECT col0 * - col2 * 81 FROM tab1
----
-396576
-406215
-501228

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT MIN( + 69 ) AS col1 FROM tab0 WHERE col0 >= col1
----
69

skipif mysql # not compatible
query I rowsort label-5339
SELECT MIN ( + 69 ) AS col1 FROM tab0 WHERE col0 >= col1
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5340
SELECT - COUNT( * ) * + 11 * - 87 FROM tab2 AS cor0 WHERE NOT ( CAST( 26 AS SIGNED ) + - - col0 - col0 * + + col2 * + 17 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5340
SELECT - COUNT ( * ) * + 11 * - 87 FROM tab2 AS cor0 WHERE NOT ( CAST ( 26 AS INTEGER ) + - - col0 - col0 * + + col2 * + 17 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 col2 FROM tab1 AS cor0
----
-67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 78 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT DISTINCT CAST( 11 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT CAST ( 11 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
11

query II rowsort
SELECT DISTINCT + col0 AS col1, ( - + col0 ) + + + 49 + + + col0 * + col1 FROM tab2 AS cor0
----
46
2349
64
4913
75
4999

query I rowsort
SELECT ALL + 17 * + col1 AS col0 FROM tab1 cor0
----
238
799
85

query I rowsort
SELECT - col1 * - 48 * - col0 FROM tab0 AS cor0
----
-4656
-58320
-87696

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + - MIN( DISTINCT 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5347
SELECT + - MIN ( DISTINCT 24 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL - ( + col0 ) * + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
249696
426275
563108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - ( - + col1 ) col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + + COUNT( * ) * + COUNT( col1 ) AS col2 FROM tab2 WHERE + col1 * col2 - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + + COUNT ( * ) * + COUNT ( col1 ) AS col2 FROM tab2 WHERE + col1 * col2 - + col2 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 * - 53 * col1 < NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE + + col2 BETWEEN - - 36 AND + - 47
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 * col0 + + + col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5355
SELECT CAST( + col0 AS SIGNED ) * + 93 - - + col2 * + col1, + col1 + - + 9 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
11659
38
6087
5
8200
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5355
SELECT CAST ( + col0 AS INTEGER ) * + 93 - - + col2 * + col1, + col1 + - + 9 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
11659
38
6087
5
8200
-4

query II rowsort
SELECT DISTINCT col2, - 5 AS col2 FROM tab2 AS cor0
----
23
-5
40
-5
58
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT 8 + + COUNT( * ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-5357
SELECT 8 + + COUNT ( * ) FROM tab2
----
11

query I rowsort
SELECT - + 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE + ( + 0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT ALL - 13 + + CAST( + col1 AS SIGNED ) * - 86 + - + col2 AS col0 FROM tab1 AS cor0
----
-1313
-4123
-502

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - 13 + + CAST ( + col1 AS INTEGER ) * - 86 + - + col2 AS col0 FROM tab1 AS cor0
----
-1313
-4123
-502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 * + 21
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT - MIN( ALL + col1 ) * + + COUNT( * ), + COUNT( * ) AS col0 FROM tab1 cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-5363
SELECT - MIN ( ALL + col1 ) * + + COUNT ( * ), + COUNT ( * ) AS col0 FROM tab1 cor0
----
-15
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT DISTINCT + 73 - + - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
73
81

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + 73 - + - col0 / col2 AS col1 FROM tab0 AS cor0
----
73
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - MAX( ALL + - col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5365
SELECT - MAX ( ALL + - col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT + ( - ( - CAST( - col0 AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5366
SELECT + ( - ( - CAST ( - col0 AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - + col0 * - ( + col1 ) - + + 69 FROM tab1 AS cor0
----
356
4208
645

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 96 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5370
SELECT MIN( ALL + + col1 ) - - - CAST( NULL AS DECIMAL ) * - - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT MIN ( ALL + + col1 ) - - - CAST ( NULL AS REAL ) * - - COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5371
SELECT ALL + 66 * - - COUNT( * ) * + 61 AS col1, - 79 + + 67 * + ( + 66 ) FROM tab0
----
12078
4343

skipif mysql # not compatible
query II rowsort label-5371
SELECT ALL + 66 * - - COUNT ( * ) * + 61 AS col1, - 79 + + 67 * + ( + 66 ) FROM tab0
----
12078
4343

query I rowsort
SELECT DISTINCT - col1 * + 96 AS col0 FROM tab2
----
-4896
-6432
-7392

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 12 IS NOT NULL
----

query I rowsort
SELECT ALL 16 FROM tab0 WHERE NOT + - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5375
SELECT + - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT DISTINCT SUM( - + 89 ) FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-5376
SELECT DISTINCT SUM ( - + 89 ) FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL - 20 * + - MIN( DISTINCT - 50 ) FROM tab0 AS cor0
----
-1000

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - 20 * + - MIN ( DISTINCT - 50 ) FROM tab0 AS cor0
----
-1000

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab2 cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT 45 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-5379
SELECT 45 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
405

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 IN ( - 9 * + - ( - + col2 ) / + 93 + - - col0, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5381
SELECT + + 14 DIV CAST( - - COUNT( * ) AS SIGNED ) col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5381
SELECT + + 14 / CAST ( - - COUNT ( * ) AS INTEGER ) col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT - col1 * - 34 AS col1 FROM tab0 AS cor0
----
2754
34
714

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 + + col0 / - col1 + - + col0 < col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5386
SELECT ALL - + AVG ( col1 ) / + CAST( NULL AS DECIMAL ) FROM tab1 WHERE - - col0 * - col1 + - 59 <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - + AVG ( col1 ) / + CAST ( NULL AS REAL ) FROM tab1 WHERE - - col0 * - col1 + - 59 <> - col2
----
NULL

query I rowsort
SELECT DISTINCT 90 + + col2 AS col2 FROM tab0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL - 6 * - + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - 6 * - + COUNT ( * ) FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5389
SELECT + ( col1 ) * - CAST( - 90 AS SIGNED ) + + col1 DIV + - col0 + + 80 - col1 - - col1 AS col0 FROM tab1
----
1340
4310
530

skipif mysql # not compatible
query I rowsort label-5389
SELECT + ( col1 ) * - CAST ( - 90 AS INTEGER ) + + col1 / + - col0 + + 80 - col1 - - col1 AS col0 FROM tab1
----
1340
4310
530

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 + + col0 col2 FROM tab0 AS cor0
----
-31
41
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 2 + - + 13 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT DISTINCT MAX( - - 40 ) AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-5392
SELECT DISTINCT MAX ( - - 40 ) AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT col0 * - + 68 * + 20 - - col1 FROM tab2 AS cor0
----
-101933
-62509
-86963

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT + col0 DIV - 22 + ( + col2 ) * - - ( + col2 ) * + col2 col1 FROM tab2 AS cor0
----
12165
195109
63998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5394
SELECT + col0 / - 22 + ( + col2 ) * - - ( + col2 ) * + col2 col1 FROM tab2 AS cor0
----
12165
195109
63998

query I rowsort
SELECT DISTINCT + 36 + - col1 AS col1 FROM tab2 AS cor0
----
-15
-31
-41

query II rowsort
SELECT + - col2 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-59
-5
-68
-47
-96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT + MIN( 73 ) col2 FROM tab0 cor0
----
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT DISTINCT + MIN ( 73 ) col2 FROM tab0 cor0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5398
SELECT - COUNT( * ) col1, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5398
SELECT - COUNT ( * ) col1, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT + COUNT( * ) FROM tab1 WHERE NOT ( NULL ) < ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT + COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) < ( + - col1 )
----
0

query I rowsort
SELECT - col0 * + 52 FROM tab1
----
-2652
-4420
-4732

query I rowsort
SELECT + 42 * + 62 AS col2 FROM tab1
----
2604
2604
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT COUNT( DISTINCT + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT COUNT ( DISTINCT + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT DISTINCT - 73 / - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT - 73 / - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT - col2 * + - 15, - col1 AS col2 FROM tab2
----
345
-51
600
-77
870
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT + MAX( - + ( + 51 ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + MAX ( - + ( + 51 ) ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT - 28 DIV + col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - 28 / + col1 FROM tab1
----
-2
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5407
SELECT ALL - col2 col0, CAST( + ( + col2 ) AS SIGNED ) * - + col2 AS col2 FROM tab0 AS cor0
----
-10
-100
-47
-2209
-99
-9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5407
SELECT ALL - col2 col0, CAST ( + ( + col2 ) AS INTEGER ) * - + col2 AS col2 FROM tab0 AS cor0
----
-10
-100
-47
-2209
-99
-9801

onlyif mysql # DIV for integer division: 
query II rowsort label-5408
SELECT DISTINCT + - 37 DIV + col0 + + 89 AS col1, col1 FROM tab2 AS cor0
----
89
51
89
67
89
77

skipif mysql # not compatible
query II rowsort label-5408
SELECT DISTINCT + - 37 / + col0 + + 89 AS col1, col1 FROM tab2 AS cor0
----
89
51
89
67
89
77

query I rowsort
SELECT ALL - + col1 * col1 + + + col0 + col1 AS col0 FROM tab2 AS cor0
----
-2504
-4347
-5788

query II rowsort
SELECT col2, + 14 FROM tab1 AS cor0
----
59
14
68
14
96
14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5411
SELECT 12 * + ( - + CAST( NULL AS DECIMAL ) ) * 11, col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-5411
SELECT 12 * + ( - + CAST ( NULL AS REAL ) ) * 11, col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT ALL * FROM tab0 WHERE 99 NOT BETWEEN 18 * + - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - - 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 61 AS col0 FROM tab2 WHERE + 73 IS NULL
----

query II rowsort
SELECT ALL - 72 + col1 * - ( + + col1 ) AS col1, + col2 AS col2 FROM tab0
----
-513
10
-6633
47
-73
99

query I rowsort
SELECT - - col1 + - - col1 + + col0 - + - ( - 44 ) + + col1 FROM tab2 AS cor0
----
155
232
251

query I rowsort
SELECT DISTINCT col2 + - - 5 AS col0 FROM tab1
----
101
64
73

query I rowsort
SELECT DISTINCT - col2 + + 63 AS col2 FROM tab1 AS cor0
----
-33
-5
4

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / 1 > + 60
----
64
77
40
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 67 col2 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT + 35 * + col2 AS col1 FROM tab1 AS cor0
----
2065
2380
3360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5424
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * CAST( NULL AS SIGNED ) + col1 / - - col2 >= col1 * + + 68 + + col2
----

skipif mysql # not compatible
query III rowsort label-5424
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) + col1 / - - col2 >= col1 * + + 68 + + col2
----

query II rowsort
SELECT ALL col0, col2 AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT 71 AS col2, - SUM( - + col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - + col2 + - col2 AND - col1 + - ( + - col1 ) + - - 68
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5426
SELECT 71 AS col2, - SUM ( - + col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN - + col2 + - col2 AND - col1 + - ( + - col1 ) + - - 68
----
71
NULL

query I rowsort
SELECT + col2 + - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - COUNT( * ) * 18 AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-5429
SELECT - COUNT ( * ) * 18 AS col0 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT - SUM( ALL 31 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - SUM ( ALL 31 ) FROM tab1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5431
SELECT + 40 * CAST( + + SUM( + col1 ) AS SIGNED ) AS col1 FROM tab0
----
4120

skipif mysql # not compatible
query I rowsort label-5431
SELECT + 40 * CAST ( + + SUM ( + col1 ) AS INTEGER ) AS col1 FROM tab0
----
4120

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5432
SELECT + ( - col0 ) + + + col0 * - - 37 AS col2, CAST( - col2 AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5432
SELECT + ( - col0 ) + + + col0 * - - 37 AS col2, CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= + CAST ( + col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5433
SELECT col1 AS col0, - 76 FROM tab0 cor0 WHERE NOT + col2 + - - 91 - + CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-5433
SELECT col1 AS col0, - 76 FROM tab0 cor0 WHERE NOT + col2 + - - 91 - + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - + COUNT( * ) * - COUNT( * ) col1 FROM tab2 AS cor0 WHERE ( NOT ( 60 / + + ( + col0 ) - + col1 IS NOT NULL ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT - + COUNT ( * ) * - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE ( NOT ( 60 / + + ( + col0 ) - + col1 IS NOT NULL ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT col0 DIV - ( + col0 ) + col2 + - ( + - col2 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
19
197
93

skipif mysql # not compatible
query I rowsort label-5435
SELECT col0 / - ( + col0 ) + col2 + - ( + - col2 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
19
197
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5436
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( + + 26 AS SIGNED ) / col2 * + col0 * - col1 + + col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5436
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( + + 26 AS INTEGER ) / col2 * + col0 * - col1 + + col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - SUM( - - ( - col2 ) ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - SUM ( - - ( - col2 ) ) AS col1 FROM tab0
----
156

query I rowsort
SELECT col2 + - col2 - - col0 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT + col0 + - + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL 10 + - 94 * + COUNT( * ) AS col0 FROM tab1
----
-272

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL 10 + - 94 * + COUNT ( * ) AS col0 FROM tab1
----
-272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col1 FROM tab0
----
-81
-81
-81

query II rowsort
SELECT + - 89 AS col0, - ( col2 ) + - + col2 AS col1 FROM tab2 AS cor0
----
-89
-116
-89
-46
-89
-80

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT 48 * - 22 AS col2 FROM tab2
----
-1056
-1056
-1056

query II rowsort
SELECT DISTINCT - + 59 * + col0 AS col2, col2 FROM tab2 AS cor0
----
-2714
23
-3776
40
-4425
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT - - COUNT( - col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5447
SELECT - - COUNT ( - col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 / + - 24 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 AND - col0 * + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5449
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + + 69 AS col0 FROM tab1
----
-3519
-5865
-6279

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + + 69 AS col0 FROM tab1
----
-3519
-5865
-6279

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + MAX( ALL + 18 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5450
SELECT + MAX ( ALL + 18 ) AS col1 FROM tab0
----
18

query I rowsort
SELECT - col0 * col1 + + col2 + + col1 + 12 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 * - 64 FROM tab1
----
-3776
-4352
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT COUNT( * ) * - 11 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-5453
SELECT COUNT ( * ) * - 11 FROM tab1
----
-33

query I rowsort
SELECT DISTINCT ( + 63 ) FROM tab1
----
63

query I rowsort
SELECT - 62 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + - 88 col2 FROM tab0 cor0
----
-103
-175
-185

query I rowsort
SELECT DISTINCT + col0 * 17 FROM tab2 AS cor0
----
1088
1275
782

query I rowsort
SELECT ALL + col2 * 69 AS col1 FROM tab2 cor0
----
1587
2760
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT MAX( DISTINCT - 93 ) AS col2 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5459
SELECT MAX ( DISTINCT - 93 ) AS col2 FROM tab0 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 col0 FROM tab1 WHERE - 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + 53 * + MIN( ALL col1 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + 53 * + MIN ( ALL col1 ) FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 - + + col2 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5462
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 - + + col2 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - - col2 col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT + CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5464
SELECT + CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - - 7, + 24 * + 19 + ( + + 79 ) AS col1 FROM tab1 AS cor0
----
7
535

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 99 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL + - MIN( DISTINCT - - col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5467
SELECT ALL + - MIN ( DISTINCT - - col1 ) col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT - col2 * + + col1 AS col1, - col2 * col0 AS col0 FROM tab2
----
-1173
-1058
-3080
-2560
-3886
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL + COUNT( * ) + - COUNT( * ) + + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5470
SELECT 42 DIV 6 - + + 37 + + col0 DIV + - col1 FROM tab1
----
-31
-33
-47

skipif mysql # not compatible
query I rowsort label-5470
SELECT 42 / 6 - + + 37 + + col0 / + - col1 FROM tab1
----
-31
-33
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5471
SELECT ALL 10 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL 10 FROM tab0 WHERE + CAST ( NULL AS REAL ) - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5472
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 7 NOT BETWEEN col1 AND + col0 * - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 48 + col0 * - 13 FROM tab1 cor0
----
-1057
-1135
-615

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND + 37
----

query II rowsort
SELECT DISTINCT - + 44 + col1 + - col0 AS col0, + col1 + + 63 AS col1 FROM tab0 AS cor0
----
-110
84
-140
64
22
144

query I rowsort
SELECT DISTINCT 34 - - 90 + - 96 * - col2 AS col2 FROM tab2 AS cor0
----
2332
3964
5692

query I rowsort
SELECT ALL - 41 + + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT ( + 1 ) AS col2 FROM tab2 WHERE NOT + 76 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT + COUNT( * ) + 63 * - + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3582

skipif mysql # not compatible
query I rowsort label-5481
SELECT + COUNT ( * ) + 63 * - + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3582

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5482
SELECT + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5483
SELECT - + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT 36 / CAST( NULL AS DECIMAL ) + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT - + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT 36 / CAST ( NULL AS REAL ) + + col2 IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 col0, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT + col1 = + col0 * + col1 * + ( - ( + col1 ) ) + 67 + + col2
----
1
21
81

query I rowsort
SELECT 7 * 37 FROM tab1
----
259
259
259

query I rowsort
SELECT + col0 + 69 + + col1 AS col0 FROM tab1
----
134
159
207

query I rowsort
SELECT ALL 98 + 15 FROM tab2
----
113
113
113

query I rowsort
SELECT - + col2 + 93 AS col2 FROM tab1 AS cor0
----
-3
25
34

query I rowsort
SELECT + + col0 * 76 + + - 31 AS col0 FROM tab0 AS cor0
----
1109
6581
7341

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 = col1 * - col0 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + COUNT( * ) + - COUNT( col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT + COUNT ( * ) + - COUNT ( col0 ) FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5493
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, + 8 + - CAST( - COUNT( * ) AS SIGNED ) - - + COUNT( * ) col0 FROM tab2 WHERE NULL BETWEEN - + col0 AND - col2
----
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5493
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, + 8 + - CAST ( - COUNT ( * ) AS INTEGER ) - - + COUNT ( * ) col0 FROM tab2 WHERE NULL BETWEEN - + col0 AND - col2
----
NULL
8

query I rowsort
SELECT DISTINCT col0 + 61 FROM tab2
----
107
125
136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5495
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + CAST( - col1 AS SIGNED ) AND + - col0
----

skipif mysql # not compatible
query III rowsort label-5495
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + CAST ( - col1 AS INTEGER ) AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL MAX( - col0 ) + + COUNT( * ) + - + 69 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL MAX ( - col0 ) + + COUNT ( * ) + - + 69 FROM tab1 AS cor0
----
-117

query I rowsort
SELECT DISTINCT - ( 62 ) + - col2 * - 42 FROM tab1 AS cor0
----
2416
2794
3970

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - SUM( ALL - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - SUM ( ALL - col2 ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT + + 7 + + 17 AS col2 FROM tab2 AS cor0
----
24
24
24

query II rowsort
SELECT DISTINCT + + col0 AS col0, col2 + + - col1 + + - 31 FROM tab2 cor0
----
46
-59
64
-68
75
-40

query I rowsort
SELECT - 17 + + col2 + + - col1 FROM tab0
----
-28
-51
81

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) * col0 AS col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT - 56 * - + 27 AS col0 FROM tab0
----
1512
1512
1512

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 * 36 + - - 83 * + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5505
SELECT ALL * FROM tab2 WHERE NULL = + ( CAST( + ( - col2 ) AS SIGNED ) ) * + - 93
----

skipif mysql # not compatible
query III rowsort label-5505
SELECT ALL * FROM tab2 WHERE NULL = + ( CAST ( + ( - col2 ) AS INTEGER ) ) * + - 93
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5506
SELECT - 83 DIV COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5506
SELECT - 83 / COUNT ( * ) AS col0 FROM tab1
----
-27

onlyif mysql # DIV for integer division: 
query III rowsort label-5507
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 DIV 38 IN ( + col0, - 51, + - col0, col0 - + 74, + col0 DIV + - col1 )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-5507
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 / 38 IN ( + col0, - 51, + - col0, col0 - + 74, + col0 / + - col1 )
----
46
51
23
64
77
40

query I rowsort
SELECT - col1 * - ( + 15 ) FROM tab2
----
1005
1155
765

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 16 + - 88 AS col2 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL col0 * - col2 + col2 AS col1 FROM tab0 cor0
----
-658
-860
-9504

query I rowsort
SELECT ALL col1 * col1 - + 79 * - - col2 FROM tab2 AS cor0
----
-93
2769
784

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - MAX( + - col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5514
SELECT - MAX ( + - col0 ) FROM tab0
----
15

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5516
SELECT - col0 * - - 74 * + + CAST( - 37 AS SIGNED ) col2 FROM tab0
----
238206
265586
41070

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5516
SELECT - col0 * - - 74 * + + CAST ( - 37 AS INTEGER ) col2 FROM tab0
----
238206
265586
41070

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5517
SELECT * FROM tab1 cor0 WHERE NOT col0 + + CAST( 41 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5517
SELECT * FROM tab1 cor0 WHERE NOT col0 + + CAST ( 41 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5518
SELECT MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col2 FROM tab2 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 81 * - - 47 * + + col2 * + col2 FROM tab1 AS cor0
----
13252167
17603568
35085312

query I rowsort
SELECT ALL ( - 51 ) FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT - 57 * + col1 AS col0 FROM tab2 AS cor0
----
-2907
-3819
-4389

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( + - col2, col2, + 36 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + - col2 = ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-5526
SELECT DISTINCT col1 AS col1, + 71 DIV - col0 col1 FROM tab0
----
1
0
21
0
81
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5526
SELECT DISTINCT col1 AS col1, + 71 / - col0 col1 FROM tab0
----
1
0
21
0
81
-4

query II rowsort
SELECT 67, col2 AS col2 FROM tab0
----
67
10
67
47
67
99

query II rowsort
SELECT DISTINCT 71 AS col2, col0 AS col2 FROM tab1
----
71
51
71
85
71
91

query I rowsort
SELECT ALL 62 + col2 + + ( - ( col2 ) ) FROM tab1
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT COUNT( 19 ) FROM tab2 WHERE NOT - col0 * + + ( - col2 ) BETWEEN - - 96 AND + - col0
----
3

skipif mysql # not compatible
query I rowsort label-5530
SELECT COUNT ( 19 ) FROM tab2 WHERE NOT - col0 * + + ( - col2 ) BETWEEN - - 96 AND + - col0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5532
SELECT DISTINCT - AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5533
SELECT + 37 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
37
-3

skipif mysql # not compatible
query II rowsort label-5533
SELECT + 37 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
37
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT 70 * + col0 + + - col2 - col1 + - col2 DIV - ( col2 ) FROM tab0 AS cor0
----
6060
6691
923

skipif mysql # not compatible
query I rowsort label-5534
SELECT 70 * + col0 + + - col2 - col1 + - col2 / - ( col2 ) FROM tab0 AS cor0
----
6060
6691
923

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 86 ) + + col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab1 WHERE ( + col0 * + col2 ) <> ( - col0 )
----
-1344
-295
-3196

query I rowsort
SELECT 6 * - col0 AS col2 FROM tab0
----
-522
-582
-90

query I rowsort
SELECT + 88 * + 56 AS col0 FROM tab1
----
4928
4928
4928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col2 ) col0 FROM tab1
----
-3481
-4624
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 42 col0 FROM tab2
----
1680
2436
966

query I rowsort
SELECT - col1 * + 20 AS col1 FROM tab0
----
-1620
-20
-420

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 * + col0 - - col1 IN ( - 38 * col1 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT 23 * - MIN( DISTINCT col2 ) AS col1 FROM tab1
----
-1357

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT 23 * - MIN ( DISTINCT col2 ) AS col1 FROM tab1
----
-1357

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5544
SELECT DISTINCT - COUNT( col1 ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - COUNT ( col1 ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + COUNT( * ) * COUNT( * ) col2 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5545
SELECT ALL + COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
9

query III rowsort
SELECT * FROM tab2 WHERE col2 * col1 NOT BETWEEN 62 * col1 AND ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - 37 FROM tab0 WHERE NOT + 6 + 61 * 54 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 59 col1 FROM tab0
----
-38
-58
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT COUNT( DISTINCT - ( - ( 43 ) ) ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5549
SELECT COUNT ( DISTINCT - ( - ( 43 ) ) ) AS col0 FROM tab2
----
1

query I rowsort
SELECT - 48 * col1 FROM tab0 WHERE ( col2 * + 27 ) BETWEEN - 68 * - ( - col0 ) + col0 AND - col2
----

query I rowsort
SELECT 10 AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT - col1 DIV + col2 + ( - col1 ) AS col0 FROM tab0
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-5552
SELECT - col1 / + col2 + ( - col1 ) AS col0 FROM tab0
----
-1
-23
-82

query I rowsort
SELECT + col0 FROM tab0 WHERE - col1 - + col2 IN ( col1 * + 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT COUNT( * ) + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-5554
SELECT COUNT ( * ) + 96 FROM tab2
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE 66 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT col1 DIV 57 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5556
SELECT col1 / 57 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT 53 DIV - col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT 53 / - col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT 8 * - 18 + 6 * col2 FROM tab2
----
-6
204
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL ( COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5559
SELECT ALL ( COUNT ( * ) ) col2 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 + ( 96 + col1 ) col1 FROM tab2
----
229
245
255

query I rowsort
SELECT ( col0 ) * 40 AS col0 FROM tab0 WHERE 25 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + SUM( - col0 ) + 86 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-5563
SELECT + SUM ( - col0 ) + 86 FROM tab2
----
-99

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT - col1 + - 11 = + col2
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 / + col1 < 65
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL ( - COUNT( * ) ) * - 13 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL ( - COUNT ( * ) ) * - 13 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT 14 * - COUNT( ALL - col1 * 72 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT 14 * - COUNT ( ALL - col1 * 72 ) FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT + 32 DIV col0 col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5570
SELECT + 32 / col0 col2 FROM tab0 AS cor0
----
0
0
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - 72 + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE ( col1 + col1 ) NOT IN ( + 17 )
----
-3

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col1 + col1 ) NOT IN ( + 17 )
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 87 + - col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT - COUNT( * ) * 86 AS col2 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5574
SELECT - COUNT ( * ) * 86 AS col2 FROM tab2 AS cor0
----
-258

query I rowsort
SELECT DISTINCT + ( 77 ) FROM tab1 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - 5 ) col2 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT 9 DIV - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5577
SELECT 9 / - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT - COUNT( * ) * - 97 AS col0 FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT - COUNT ( * ) * - 97 AS col0 FROM tab0 cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT ALL - col1 DIV - col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL - col1 / - col0 AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 12 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) <> ( NULL )
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - col0 * col1 + + 64 * 92 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - 66 AS col1 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL - SUM( - col2 ) * + 49 - 25 FROM tab0 WHERE + col2 * 81 = ( + col0 ) + col0 * col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - SUM ( - col2 ) * + 49 - 25 FROM tab0 WHERE + col2 * 81 = ( + col0 ) + col0 * col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT ALL - COUNT( ALL - col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - COUNT ( ALL - col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT - 88 * - COUNT( ALL + 83 ) + + ( 12 ) FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-5586
SELECT - 88 * - COUNT ( ALL + 83 ) + + ( 12 ) FROM tab0
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT - 38 DIV + + 38 + 36 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5587
SELECT - 38 / + + 38 + 36 FROM tab0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5588
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE ( NULL ) = + col0 + - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE ( NULL ) = + col0 + - CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ( - SUM( col2 ) ) FROM tab0 WHERE NULL NOT IN ( col2 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT ( - SUM ( col2 ) ) FROM tab0 WHERE NULL NOT IN ( col2 * + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT MIN( DISTINCT - - ( + 2 ) ) * 95 + COUNT( DISTINCT col1 ) FROM tab2
----
193

skipif mysql # not compatible
query I rowsort label-5590
SELECT MIN ( DISTINCT - - ( + 2 ) ) * 95 + COUNT ( DISTINCT col1 ) FROM tab2
----
193

query I rowsort
SELECT DISTINCT - 67 + - - col0 FROM tab1
----
-16
18
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT 14 + COUNT( DISTINCT ( - 8 ) ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-5592
SELECT 14 + COUNT ( DISTINCT ( - 8 ) ) AS col2 FROM tab1
----
15

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5594
SELECT + col0 + - col2 - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5594
SELECT + col0 + - col2 - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + 83 + + col2 >= - col2
----

query I rowsort
SELECT ALL - col1 + - + col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT + + COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + + COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col0 + - - col0 * + col2 FROM tab2 AS cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5599
SELECT - ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( - ( - 66 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + COUNT( * ) - + - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5601
SELECT + COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT + ( - col1 ) + + ( - col1 ) FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT 54 + - COUNT( * ) FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-5603
SELECT 54 + - COUNT ( * ) FROM tab0 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( 5 ) IN ( - col0 - + ( ( - col1 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( 5 ) IN ( - col0 - + ( ( - col1 ) ) )
----
0

query I rowsort
SELECT DISTINCT - col2 - + + 49 + col2 AS col0 FROM tab2 cor0
----
-49

query I rowsort
SELECT ALL - - col0 - - + 32 AS col1 FROM tab2 AS cor0
----
107
78
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 63 * + - col0 * - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 93 AS col1 FROM tab2 AS cor0
----
51
-93
67
-93
77
-93

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT 98 * + 24 AS col0, + col0 * - + 78 FROM tab0
----
2352
-1170
2352
-6786
2352
-7566

onlyif mysql # aggregate syntax: 
query II rowsort label-5611
SELECT ALL SUM( DISTINCT col0 ) AS col0, 15 * 51 AS col0 FROM tab2
----
185
765

skipif mysql # not compatible
query II rowsort label-5611
SELECT ALL SUM ( DISTINCT col0 ) AS col0, 15 * 51 AS col0 FROM tab2
----
185
765

onlyif mysql # DIV for integer division: 
query II rowsort label-5612
SELECT - 23 DIV - col1 AS col1, 88 DIV - col2 + ( + 75 ) FROM tab0
----
0
74
1
67
23
75

skipif mysql # not compatible
query II rowsort label-5612
SELECT - 23 / - col1 AS col1, 88 / - col2 + ( + 75 ) FROM tab0
----
0
74
1
67
23
75

query II rowsort
SELECT 77 * - 93 AS col0, - col0 AS col0 FROM tab0
----
-7161
-15
-7161
-87
-7161
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( col0 + - - col1 )
----

query I rowsort
SELECT ALL col2 * - - col1 * - col1 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-173408256
-5134475
-694580288

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT DISTINCT - col0 DIV 63 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT - col0 / 63 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT + COUNT( + 34 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5617
SELECT + COUNT ( + 34 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 + - + col0 col1 FROM tab0
----
-15
0
-87
0
-97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab2
----
64
64
64

query I rowsort
SELECT ALL + 28 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 - - col2 + - - col2 / ( + ( + 66 ) ) ) IS NULL
----

query I rowsort
SELECT ALL + 53 * + + 81 FROM tab0 AS cor0
----
4293
4293
4293

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - AVG ( - ( 23 ) ) + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - AVG ( - ( 23 ) ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 72 > NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + 54 AS col1 FROM tab2 AS cor0
----
2754
3618
4158

query I rowsort
SELECT DISTINCT col1 * + - 17 AS col0 FROM tab0 AS cor0
----
-1377
-17
-357

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * - + 10 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT + + MAX( ALL - col1 ) * 91 * 76 + - COUNT( * ) + MIN( + 44 + col2 ) AS col2 FROM tab2 AS cor0
----
-352652

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + + MAX ( ALL - col1 ) * 91 * 76 + - COUNT ( * ) + MIN ( + 44 + col2 ) AS col2 FROM tab2 AS cor0
----
-352652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5628
SELECT + COUNT( * ) DIV - 55 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5628
SELECT + COUNT ( * ) / - 55 AS col0 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5629
SELECT + + col1 DIV - + col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5629
SELECT + + col1 / - + col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL - COUNT( * ) * + 31 FROM tab1 AS cor0 WHERE NOT NULL >= - 43 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - COUNT ( * ) * + 31 FROM tab1 AS cor0 WHERE NOT NULL >= - 43 + - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT col1 DIV - 68 + - col0 AS col0 FROM tab0 cor0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-5631
SELECT col1 / - 68 + - col0 AS col0 FROM tab0 cor0
----
-16
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT - - MIN( + + 47 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5632
SELECT - - MIN ( + + 47 ) FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + MAX( ALL + - ( + col2 ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + MAX ( ALL + - ( + col2 ) ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT ALL - 50 + 5 AS col0 FROM tab1
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + ( - MIN( DISTINCT + ( 14 ) ) ) AS col1 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-5635
SELECT + ( - MIN ( DISTINCT + ( 14 ) ) ) AS col1 FROM tab0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5636
SELECT DISTINCT - 61 * + - 58 + + + 91 + - CAST( NULL AS SIGNED ) + - - MIN( + + col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - 61 * + - 58 + + + 91 + - CAST ( NULL AS INTEGER ) + - - MIN ( + + col0 ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + + 18 = 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT col1 - - 95 FROM tab0 AS cor0 WHERE ( 29 * + - CAST( NULL AS SIGNED ) ) NOT BETWEEN col2 AND ( col1 * - col2 )
----

skipif mysql # not compatible
query I rowsort label-5638
SELECT col1 - - 95 FROM tab0 AS cor0 WHERE ( 29 * + - CAST ( NULL AS INTEGER ) ) NOT BETWEEN col2 AND ( col1 * - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5639
SELECT DISTINCT + 84 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-5639
SELECT DISTINCT + 84 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
84
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - 2 + + COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5640
SELECT - 2 + + COUNT ( * ) FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5641
SELECT 62 DIV col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5641
SELECT 62 / col0 AS col0 FROM tab1
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5642
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 14, CAST( NULL AS SIGNED ) * col2 * ( + ( ( col0 ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-5642
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + + 14, CAST ( NULL AS INTEGER ) * col2 * ( + ( ( col0 ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5643
SELECT ALL + CAST( col1 AS SIGNED ) - ( - - col2 ) + + col2 + + - col1 * - + col0 + + col0 * 40 FROM tab1 cor0
----
2768
3830
7964

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + CAST ( col1 AS INTEGER ) - ( - - col2 ) + + col2 + + - col1 * - + col0 + + col0 * 40 FROM tab1 cor0
----
2768
3830
7964

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT - COUNT( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5644
SELECT - COUNT ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL 24 + - COUNT( * ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL 24 + - COUNT ( * ) FROM tab2 AS cor0
----
21

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE + 96 * + col0 NOT IN ( ( + col1 ) * 20 * + 55 )
----
-46
-64
-75

query I rowsort
SELECT - col0 - + 44 AS col2 FROM tab0 AS cor0
----
-131
-141
-59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 91 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT - MAX( - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5649
SELECT - MAX ( - col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5650
SELECT SUM( DISTINCT + col0 ) DIV - + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-5650
SELECT SUM ( DISTINCT + col0 ) / - + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT ALL CAST( - + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL CAST ( - + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - + 23 + col0 * - col1 + - + col1 * col1 FROM tab2 AS cor0 WHERE + ( + col1 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + 55 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT + CAST( col2 AS SIGNED ) * - col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-5654
SELECT + CAST ( col2 AS INTEGER ) * - col2 FROM tab2
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab1
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT 38 DIV - col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5657
SELECT 38 / - col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + - ( + ( - + COUNT( * ) ) ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5658
SELECT + - ( + ( - + COUNT ( * ) ) ) * COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT col2 * - + 10 AS col2 FROM tab0 AS cor0
----
-100
-470
-990

query I rowsort
SELECT - 53 + + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 IS NOT NULL AND NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT + 91 + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
100

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + 91 + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 82 <> - col2 / + col0
----

query I rowsort
SELECT ( + col2 ) * - - 31 FROM tab2 AS cor0
----
1240
1798
713

query I rowsort
SELECT DISTINCT - 9 FROM tab1 cor0 WHERE NULL BETWEEN + 94 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL - 27 + + COUNT( * ) col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5666
SELECT ALL - 27 + + COUNT ( * ) col1 FROM tab1 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab2 AS cor0 WHERE + col0 + 87 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT - col2 DIV + col2 + + - col2 + - - col0 * - 62 * - + 34 FROM tab0
----
183385
204376
31572

skipif mysql # not compatible
query I rowsort label-5668
SELECT - col2 / + col2 + + - col2 + - - col0 * - 62 * - + 34 FROM tab0
----
183385
204376
31572

query I rowsort
SELECT col2 * - + col2 AS col2 FROM tab1 WHERE NULL >= ( + col2 + + col2 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT + col0 + 10 FROM tab2
----
56
74
85

query II rowsort
SELECT - col1 + + + 33 + 8 AS col1, - col0 + - col1 + col2 * - - 70 FROM tab0
----
-40
3194
20
592
40
6832

query I rowsort
SELECT ALL + col2 + - - 45 - + col0 FROM tab1
----
19
22
90

query I rowsort
SELECT DISTINCT col2 * + + 19 AS col1 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT DISTINCT + col2 + + + col2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT 75 + + col2 AS col2 FROM tab1
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ( COUNT( ALL + 55 ) ) + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5676
SELECT ( COUNT ( ALL + 55 ) ) + + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT + 47 FROM tab1 WHERE - col2 * col1 * col1 + - 79 * + + col1 + - + col2 * - - col0 NOT IN ( + col2 )
----
47
47
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 38 ) / + col1 * - col1 AND NULL
----

query I rowsort
SELECT + + col2 * + - 33 AS col2 FROM tab1 AS cor0
----
-1947
-2244
-3168

query I rowsort
SELECT + 97 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT + + COUNT( + ( col2 ) ) * + 47 + 89 FROM tab0 AS cor0 WHERE NOT col2 + col1 + - col2 / - 86 * CAST( + 98 AS SIGNED ) IS NULL
----
230

skipif mysql # not compatible
query I rowsort label-5681
SELECT + + COUNT ( + ( col2 ) ) * + 47 + 89 FROM tab0 AS cor0 WHERE NOT col2 + col1 + - col2 / - 86 * CAST ( + 98 AS INTEGER ) IS NULL
----
230

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL 30 AS col0, MAX( ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
30
-10

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL 30 AS col0, MAX ( ( - col2 ) ) AS col2 FROM tab0 AS cor0
----
30
-10

query I rowsort
SELECT ALL + + 19 * 47 AS col0 FROM tab2 AS cor0
----
893
893
893

onlyif mysql # aggregate syntax: 
query II rowsort label-5684
SELECT MIN( ALL - col2 ), - 58 + + COUNT( * ) col0 FROM tab1
----
-96
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5684
SELECT MIN ( ALL - col2 ), - 58 + + COUNT ( * ) col0 FROM tab1
----
-96
-55

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 62 * + + 42 / + col1 >= 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND ( - 57 / + 92 )
----

query I rowsort
SELECT ALL 40 FROM tab2 WHERE ( ( NOT ( NULL ) = - 1 * + + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT ALL - ( - ( CAST( 29 AS SIGNED ) ) ) FROM tab1
----
29
29
29

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - ( - ( CAST ( 29 AS INTEGER ) ) ) FROM tab1
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT DISTINCT - COUNT( - 50 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - COUNT ( - 50 ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 33 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT DISTINCT + + COUNT( + ( + col0 ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5691
SELECT DISTINCT + + COUNT ( + ( + col0 ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - 8 * SUM( DISTINCT - - 4 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5692
SELECT - 8 * SUM ( DISTINCT - - 4 ) FROM tab2 AS cor0
----
-32

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col0 FROM tab0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - COUNT( * ) + - 50 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5695
SELECT - COUNT ( * ) + - 50 FROM tab1
----
-53

query I rowsort
SELECT ALL + col1 * - col1 * - 54 + - - 75 FROM tab1
----
10659
119361
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT + 84 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5697
SELECT + 84 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT ALL SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 34 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT + SUM( + 34 ) FROM tab1 AS cor0 WHERE ( NOT ( 13 IS NULL ) )
----
102

skipif mysql # not compatible
query I rowsort label-5700
SELECT + SUM ( + 34 ) FROM tab1 AS cor0 WHERE ( NOT ( 13 IS NULL ) )
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 col1 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL col0 / + 39 * + + col0 FROM tab1 AS cor0 WHERE NOT - col0 <> NULL
----

query I rowsort
SELECT ALL - col1 + + + 77 FROM tab1 AS cor0
----
30
63
72

query I rowsort
SELECT DISTINCT 74 * - 31 AS col1 FROM tab0 AS cor0
----
-2294

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ( + COUNT( + - col1 ) ) * + ( - - 53 ) FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5705
SELECT ( + COUNT ( + - col1 ) ) * + ( - - 53 ) FROM tab1 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT MIN( + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-5706
SELECT MIN ( + - col0 ) FROM tab0
----
-97

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab0 WHERE - ( - col1 ) - + col2 NOT IN ( + + 91 * - 21 * 87, + 92 )
----
10
47
99

query I rowsort
SELECT + + col0 FROM tab0 WHERE col0 BETWEEN ( NULL ) AND - col1 * col1
----

query I row