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 rowsort
SELECT 86 FROM tab2 WHERE 3 - + - 28 IN ( - col1, 27 + - col0, - 60 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5710
SELECT col2 AS col2, col0 * + + CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE - 2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5710
SELECT col2 AS col2, col0 * + + CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE - 2 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + + 59 FROM tab2
----
-18
-8
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5712
SELECT ALL 4 + CAST( + - SUM( DISTINCT - ( col1 ) ) AS SIGNED ) AS col0 FROM tab2
----
199

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL 4 + CAST ( + - SUM ( DISTINCT - ( col1 ) ) AS INTEGER ) AS col0 FROM tab2
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5713
SELECT * FROM tab1 WHERE ( - + CAST( 83 AS SIGNED ) / + - ( + - ( col1 ) ) ) BETWEEN - 50 * - 76 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5713
SELECT * FROM tab1 WHERE ( - + CAST ( 83 AS INTEGER ) / + - ( + - ( col1 ) ) ) BETWEEN - 50 * - 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT + COUNT( * ) + + - 18 * 71 FROM tab2 cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-5714
SELECT + COUNT ( * ) + + - 18 * 71 FROM tab2 cor0
----
-1275

query I rowsort
SELECT ALL + + col1 * col2 - + col1 + 11 FROM tab0 AS cor0
----
109
200
3737

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL COUNT( DISTINCT + col2 ) - - COUNT( DISTINCT + - 26 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL COUNT ( DISTINCT + col2 ) - - COUNT ( DISTINCT + - 26 ) FROM tab1 AS cor0
----
4

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

query I rowsort
SELECT ALL + 92 - - 5 - col2 AS col0 FROM tab2
----
39
57
74

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

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

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

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

query I rowsort
SELECT ALL + - 11 FROM tab1 AS cor0 WHERE 30 IS NULL
----

query I rowsort
SELECT - + 31 * + 30 + col2 FROM tab2 cor0
----
-872
-890
-907

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

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

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

query II rowsort
SELECT - col2 AS col0, - 60 + ( + 94 ) AS col1 FROM tab2
----
-23
34
-40
34
-58
34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, ( 92 ) FROM tab0
----
-15
92
-87
92
-97
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT ALL - 49 col2, - 16 + - COUNT( * ) FROM tab0
----
-49
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5729
SELECT ALL - 49 col2, - 16 + - COUNT ( * ) FROM tab0
----
-49
-19

query III rowsort
SELECT * FROM tab2 WHERE NOT + 89 / 29 IN ( + col0, col1, 40 * + 67, + col0, + 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1, col2 - - 50 + + + col1 AS col1 FROM tab0
----
1
150
21
81
81
178

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5734
SELECT + - CAST( NULL AS SIGNED ), + 92 AS col1 FROM tab1 AS cor0
----
NULL
92
NULL
92
NULL
92

skipif mysql # not compatible
query II rowsort label-5734
SELECT + - CAST ( NULL AS INTEGER ), + 92 AS col1 FROM tab1 AS cor0
----
NULL
92
NULL
92
NULL
92

query I rowsort
SELECT ALL + col1 + - 62 FROM tab0
----
-41
-61
19

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

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

query I rowsort
SELECT + col0 * 52 AS col2 FROM tab1
----
2652
4420
4732

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - 55 + + COUNT( * ) + + 64 AS col0 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5740
SELECT - 55 + + COUNT ( * ) + + 64 AS col0 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + ( ( - col2 ) ) + 70 AS col0 FROM tab1 AS cor0
----
-26
11
2

query I rowsort
SELECT DISTINCT + 72 + - 34 * 89 FROM tab0 cor0
----
-2954

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL + SUM( ALL - 90 ) FROM tab1 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL + SUM ( ALL - 90 ) FROM tab1 cor0
----
-270

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

onlyif mysql # DIV for integer division: 
query III rowsort label-5746
SELECT DISTINCT 22 DIV + 69 + + col0, - col2 AS col2, - col1 + - + col2 col2 FROM tab1
----
9 values hashing to 59bcb6ed798e7556c4abe609e7af64da

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5746
SELECT DISTINCT 22 / + 69 + + col0, - col2 AS col2, - col1 + - + col2 col2 FROM tab1
----
9 values hashing to 59bcb6ed798e7556c4abe609e7af64da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 79 col0 FROM tab0
----
3713
7821
790

query II rowsort
SELECT + col1, col2 + + 81 FROM tab2
----
51
104
67
139
77
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT - ( + SUM( DISTINCT + ( col0 ) ) ) + - COUNT( col2 ) AS col2 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT - ( + SUM ( DISTINCT + ( col0 ) ) ) + - COUNT ( col2 ) AS col2 FROM tab2
----
-188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL + ( - MAX( 47 ) ) * + 93 FROM tab1
----
-4371

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL + ( - MAX ( 47 ) ) * + 93 FROM tab1
----
-4371

query I rowsort
SELECT DISTINCT 87 * + - col1 AS col0 FROM tab0
----
-1827
-7047
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-5755
SELECT - 71 DIV - + 56, - ( - col1 ) AS col0 FROM tab0
----
1
1
1
21
1
81

skipif mysql # not compatible
query II rowsort label-5755
SELECT - 71 / - + 56, - ( - col1 ) AS col0 FROM tab0
----
1
1
1
21
1
81

query I rowsort
SELECT ALL - + col1 * + - col1 + - col0 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT ALL 47 * 28 DIV - - ( - col2 ) + 64 FROM tab0 AS cor0
----
-67
36
51

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL 47 * 28 / - - ( - col2 ) + 64 FROM tab0 AS cor0
----
-67
36
51

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5759
SELECT DISTINCT col1 / + - 47 col1 FROM tab2 cor0
----
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col1 col1 FROM tab0
----
10
210
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL 5 + MIN( DISTINCT + col0 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL 5 + MIN ( DISTINCT + col0 ) AS col0 FROM tab2
----
51

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + - col0 BETWEEN 70 AND - 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT DISTINCT + - col0 DIV - - col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + - col0 / - - col0 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5766
SELECT ALL + col2 + + 17 DIV col0 AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL + col2 + + 17 / col0 AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + 41 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT DISTINCT 66 * 51 + - 61 * + COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
2817

skipif mysql # not compatible
query I rowsort label-5768
SELECT DISTINCT 66 * 51 + - 61 * + COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
2817

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) >= - 87
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 63 >= NULL
----

query II rowsort
SELECT DISTINCT + - 14 + - - col2, + col2 FROM tab1 AS cor0
----
45
59
54
68
82
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5772
SELECT + 8 AS col0, + SUM( - col2 ) - 36 AS col2 FROM tab2 AS cor0
----
8
-157

skipif mysql # not compatible
query II rowsort label-5772
SELECT + 8 AS col0, + SUM ( - col2 ) - 36 AS col2 FROM tab2 AS cor0
----
8
-157

query II rowsort
SELECT col0 AS col0, 38 + + col1 FROM tab1 cor0
----
51
52
85
43
91
85

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT - COUNT( * ) - COUNT( * ) col1, - 43 FROM tab2
----
-6
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5777
SELECT - COUNT ( * ) - COUNT ( * ) col1, - 43 FROM tab2
----
-6
-43

query I rowsort
SELECT ALL - col0 * + - col0 * + col2 AS col2 FROM tab0
----
10575
75690
931491

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

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL - SUM ( DISTINCT + 17 ) FROM tab1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5780
SELECT ALL + col1 - + col1 + - col0 DIV - + col2 col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5780
SELECT ALL + col1 - + col1 + - col0 / - + col2 col2 FROM tab2 AS cor0
----
1
1
2

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

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

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

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

query I rowsort
SELECT DISTINCT - - ( ( - col1 ) ) * + 98 + - + ( - 34 ) FROM tab1 AS cor0
----
-1338
-456
-4572

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

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

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

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - 2 + + ( - col1 ) NOT BETWEEN NULL AND ( + 40 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 FROM tab0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 78 col0, 50 FROM tab0
----
78
50
78
50
78
50

query I rowsort
SELECT DISTINCT 17 * - col0 AS col2 FROM tab1
----
-1445
-1547
-867

query I rowsort
SELECT 78 * col1 AS col0 FROM tab2 AS cor0
----
3978
5226
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 col1, + col1 * - + 29 col0 FROM tab2 AS cor0
----
80
-1479
80
-1943
80
-2233

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT DISTINCT + SUM( + col0 ) * 54 col2, + 92 FROM tab0 AS cor0
----
10746
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5792
SELECT DISTINCT + SUM ( + col0 ) * 54 col2, + 92 FROM tab0 AS cor0
----
10746
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT ALL - - 27 DIV col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - - 27 / col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
0
0
1

query I rowsort
SELECT DISTINCT + col0 * - + ( 50 ) FROM tab0 cor0
----
-4350
-4850
-750

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

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

skipif mysql # not compatible
query I rowsort label-5796
SELECT col0 FROM tab2 AS cor0 WHERE NOT + CAST ( + - 46 AS INTEGER ) NOT BETWEEN NULL AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL NOT IN ( 96, col0 * - 17 + col0 * col0, 53 / col1, - col1 * - - col0 + + col2 ) )
----

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

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

query I rowsort
SELECT 74 * + 86 + col2 AS col1 FROM tab1
----
6423
6432
6460

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

query I rowsort
SELECT ALL + ( + 39 ) + + col1 AS col1 FROM tab1
----
44
53
86

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 / - col1 * + col2 * ( + 67 ) + + 21 - - - 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + + 25 + - col0 * + col1 FROM tab1
----
-395
-4205
-675

onlyif mysql # DIV for integer division: 
query II rowsort label-5805
SELECT DISTINCT + 53 DIV + 62 * ( - - col2 ), + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5805
SELECT DISTINCT + 53 / + 62 * ( - - col2 ), + col1 AS col1 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT col1 + + - 44 + + - col0 FROM tab2
----
-31
-39
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT + - col0 + + col0 + 30 DIV + + col1 FROM tab0 AS cor0
----
0
1
30

skipif mysql # not compatible
query I rowsort label-5807
SELECT + - col0 + + col0 + 30 / + + col1 FROM tab0 AS cor0
----
0
1
30

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col1 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL - + col1 + + ( 76 ) AS col2 FROM tab0 AS cor0
----
-5
55
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

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

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

query II rowsort
SELECT col0 AS col2, col0 * + 66 FROM tab1
----
51
3366
85
5610
91
6006

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

query I rowsort
SELECT + 26 * - + col2 FROM tab0
----
-1222
-2574
-260

query II rowsort
SELECT + 91 AS col2, - 43 FROM tab1
----
91
-43
91
-43
91
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + COUNT( * ) * + 57 AS col0 FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-5822
SELECT + COUNT ( * ) * + 57 AS col0 FROM tab0
----
171

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

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

query II rowsort
SELECT DISTINCT col1, - col0 + + - 13 AS col2 FROM tab1
----
14
-64
47
-104
5
-98

query I rowsort
SELECT ALL - + 57 FROM tab1 cor0
----
-57
-57
-57

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 > col1 * col1 + col2
----

query I rowsort
SELECT DISTINCT - 54 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-54

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > ( + 94 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - 3 * 34 * COUNT( * ) FROM tab0 AS cor0
----
-306

skipif mysql # not compatible
query I rowsort label-5831
SELECT - 3 * 34 * COUNT ( * ) FROM tab0 AS cor0
----
-306

query II rowsort
SELECT - col1, + col0 * + col0 AS col2 FROM tab1
----
-14
2601
-47
8281
-5
7225

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

query I rowsort
SELECT ALL - 19 + - 86 FROM tab0
----
-105
-105
-105

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= - col1 - - + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + MIN( DISTINCT - col0 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5838
SELECT + MIN ( DISTINCT - col0 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-94

query II rowsort
SELECT col0 + col2, + ( col0 ) - - + col1 * + - col0 AS col2 FROM tab2
----
104
-4864
133
-4950
69
-2300

query I rowsort
SELECT DISTINCT col0 + + 96 * + col0 FROM tab0
----
1455
8439
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT ALL - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < - 47
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5841
SELECT ALL - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < - 47
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-5844
SELECT - + COUNT ( * ) / + + 78 * - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - 36 + - - 23 * COUNT( * ) + - COUNT( * ) * + - ( + COUNT( * ) ) FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - 36 + - - 23 * COUNT ( * ) + - COUNT ( * ) * + - ( + COUNT ( * ) ) FROM tab1 cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT DISTINCT + SUM( + col2 ) - - COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + SUM ( + col2 ) - - COUNT ( * ) FROM tab0 AS cor0
----
159

query I rowsort
SELECT ALL - col1 * - + col1 + 95 FROM tab0 AS cor0
----
536
6656
96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5849
SELECT - 74 * - - CAST( + - ( + 71 ) AS SIGNED ) - - + 18 DIV + + 62 * COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
5254

skipif mysql # not compatible
query I rowsort label-5849
SELECT - 74 * - - CAST ( + - ( + 71 ) AS INTEGER ) - - + 18 / + + 62 * COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5254

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5850
SELECT 43 - - - MIN( - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5850
SELECT 43 - - - MIN ( - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT DISTINCT - COUNT( 54 ) FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT - COUNT ( 54 ) FROM tab1 WHERE NOT NULL = NULL
----
0

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

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

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

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT + + 29 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - 74 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 9 AS col1 FROM tab0
----
15
9
87
9
97
9

query I rowsort
SELECT ALL - ( + 57 ) * col2 FROM tab0 AS cor0
----
-2679
-5643
-570

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5862
SELECT ALL SUM ( ALL + col1 ) col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - - col1 * + 79 * col2 AS col0 FROM tab0 AS cor0
----
16590
300753
7821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5864
SELECT + COUNT( * ) * SUM( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab2 cor0
----
-555

skipif mysql # not compatible
query I rowsort label-5864
SELECT + COUNT ( * ) * SUM ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab2 cor0
----
-555

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

query I rowsort
SELECT - 74 * - col0 * + col0 * col0 FROM tab0 AS cor0
----
249750
48729222
67537802

query II rowsort
SELECT ALL + col0, col2 - - 76 AS col2 FROM tab1 AS cor0
----
51
172
85
135
91
144

query II rowsort
SELECT ALL + col0, 55 FROM tab0 AS cor0
----
15
55
87
55
97
55

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL + 64 * COUNT( * ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL + 64 * COUNT ( * ) AS col0 FROM tab1
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5871
SELECT * FROM tab1 WHERE - - 74 + - CAST( col0 AS SIGNED ) BETWEEN ( - + col1 + + 94 ) AND col0 * col2
----

skipif mysql # not compatible
query III rowsort label-5871
SELECT * FROM tab1 WHERE - - 74 + - CAST ( col0 AS INTEGER ) BETWEEN ( - + col1 + + 94 ) AND col0 * col2
----

query I rowsort
SELECT DISTINCT 9 + - col1 * + ( + 72 ) FROM tab0
----
-1503
-5823
-63

query I rowsort
SELECT col0 + - 75 + col0 AS col1 FROM tab2
----
17
53
75

query I rowsort
SELECT DISTINCT 72 * col2 + + col0 FROM tab0
----
3399
7225
807

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + 15 + - + 68 * - MIN( - col2 ) AS col2 FROM tab1
----
-6513

skipif mysql # not compatible
query I rowsort label-5875
SELECT + 15 + - + 68 * - MIN ( - col2 ) AS col2 FROM tab1
----
-6513

query I rowsort
SELECT 96 * - - 57 + col0 FROM tab0
----
5487
5559
5569

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT SUM( DISTINCT + + col0 ) + COUNT( * ) AS col0 FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-5877
SELECT SUM ( DISTINCT + + col0 ) + COUNT ( * ) AS col0 FROM tab1
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL + 63 + + - ( SUM( + col2 ) ) - + 5 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL + 63 + + - ( SUM ( + col2 ) ) - + 5 FROM tab2
----
-63

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = - 35 + + col2 + + col2
----

query II rowsort
SELECT DISTINCT - 0 * - + 66 AS col0, - col0 * + 26 FROM tab0 AS cor0
----
0
-2262
0
-2522
0
-390

query II rowsort
SELECT 95 AS col0, + ( 92 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 3b7cf61896b4ca0538b193e86f836fce

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT + COUNT( * ) - + MAX( ALL - col0 ) + - + COUNT( * ) * + - 24 AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-5883
SELECT + COUNT ( * ) - + MAX ( ALL - col0 ) + - + COUNT ( * ) * + - 24 AS col2 FROM tab0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5884
SELECT - 90 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5884
SELECT - 90 + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT ALL + MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL 72 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT * FROM tab0 WHERE + col2 / - 23 + - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL 53 + + 82 * - col1 FROM tab2 cor0
----
-4129
-5441
-6261

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * + - 81 AS col0 FROM tab2 cor0
----
-3726
-5184
-6075

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + 89 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 94 * + 40 FROM tab1
----
176720
18800
52640

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

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

query II rowsort
SELECT col0 * + col1, - 8 + - - col0 AS col2 FROM tab0
----
1215
7
1827
79
97
89

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - 38
----

query I rowsort
SELECT col1 * + col2 * + + col0 AS col0 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT DISTINCT - 63 * ( col0 ) FROM tab2
----
-2898
-4032
-4725

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

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT + + col0 IS NULL
----
14
47
5

query II rowsort
SELECT - col2 * 14, - col0 AS col0 FROM tab0
----
-1386
-97
-140
-87
-658
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab0 WHERE NOT + col1 < - col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT DISTINCT - COUNT( col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT - COUNT ( col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 53 + + ( - 15 ) AS col1 FROM tab0
----
-68

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

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

query I rowsort
SELECT DISTINCT + 2 * + col0 * + col0 + - col2 FROM tab1 cor0
----
14391
16494
5106

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

query I rowsort
SELECT - 43 * + col1 + + col2 + col1 FROM tab1 AS cor0
----
-151
-1906
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ALL - 12 + MAX( DISTINCT col2 ) - + + 9 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL - 12 + MAX ( DISTINCT col2 ) - + + 9 FROM tab0 AS cor0
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT ALL COUNT( * ) * 92 AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL COUNT ( * ) * 92 AS col0 FROM tab0
----
276

query I rowsort
SELECT DISTINCT 63 * + col0 + + col1 AS col1 FROM tab1
----
3227
5360
5780

query I rowsort
SELECT DISTINCT + col1 + col1 + col1 FROM tab0
----
243
3
63

query I rowsort
SELECT ALL col0 * - 73 + + col1 * - col0 - col1 * + + 0 * col1 AS col1 FROM tab1
----
-10920
-4437
-6630

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

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

query I rowsort
SELECT DISTINCT ( + 44 ) + + col2 + + 42 FROM tab2 WHERE + 19 < NULL
----

query I rowsort
SELECT ALL 3 - - col1 AS col2 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT 47 + - - COUNT( * ) * 97 FROM tab1 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-5920
SELECT 47 + - - COUNT ( * ) * 97 FROM tab1 AS cor0
----
338

query II rowsort
SELECT ALL col0, + col0 * - + col0 FROM tab2 AS cor0 WHERE col1 = 91
----

query I rowsort
SELECT DISTINCT + col0 + - ( 69 ) FROM tab2 AS cor0
----
-23
-5
6

query I rowsort
SELECT 17 + + col2 + col2 * - ( - - col2 ) * + + 15 * + - col2 FROM tab0 AS cor0
----
14554601
15027
1557409

query I rowsort
SELECT - 88 + + col2 AS col2 FROM tab1 AS cor0
----
-20
-29
8

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT 90 * - col1 * 40 * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 79 col1, + 81 FROM tab1 AS cor0
----
-79
81
-79
81
-79
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT + COUNT( * ) + + 18 FROM tab0 cor0
----
21

skipif mysql # not compatible
query I rowsort label-5927
SELECT + COUNT ( * ) + + 18 FROM tab0 cor0
----
21

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

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

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

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

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

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

query I rowsort
SELECT ALL + + 30 AS col0 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT DISTINCT 35 * col0 + - + col1 DIV + 77 + + 32 AS col0 FROM tab1 AS cor0
----
1817
3007
3217

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT 35 * col0 + - + col1 / + 77 + + 32 AS col0 FROM tab1 AS cor0
----
1817
3007
3217

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5935
SELECT CAST( NULL AS DECIMAL ) * col1 * - col0 FROM tab1 AS cor0 WHERE NOT NULL < + 15 * 20
----

skipif mysql # not compatible
query I rowsort label-5935
SELECT CAST ( NULL AS REAL ) * col1 * - col0 FROM tab1 AS cor0 WHERE NOT NULL < + 15 * 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT DISTINCT + SUM( ALL - col2 ) * + MAX( ALL col0 ) col2 FROM tab1 AS cor0
----
-20293

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5936
SELECT DISTINCT + SUM ( ALL - col2 ) * + MAX ( ALL col0 ) col2 FROM tab1 AS cor0
----
-20293

query I rowsort
SELECT ALL + ( col2 ) * - col1 * + col1 * + + col0 AS col1 FROM tab0 cor0
----
-383670
-4625505
-9603

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

query II rowsort
SELECT DISTINCT col1 AS col2, + col0 + - + 29 FROM tab1
----
14
22
47
62
5
56

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

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

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

query II rowsort
SELECT 32 * + col1 * col0 AS col2, + 52 * + 37 FROM tab0
----
3104
1924
38880
1924
58464
1924

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT DISTINCT + COUNT( * ) AS col1, - 91 AS col2 FROM tab2
----
3
-91

skipif mysql # not compatible
query II rowsort label-5945
SELECT DISTINCT + COUNT ( * ) AS col1, - 91 AS col2 FROM tab2
----
3
-91

query II rowsort
SELECT ALL + col2 AS col0, + col1 * 7 + - col0 FROM tab2
----
23
311
40
475
58
394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col0 col2 FROM tab1
----
425
4277
714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT MAX( col0 ) * + COUNT( * ) + - - 12 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5949
SELECT MAX ( col0 ) * + COUNT ( * ) + - - 12 FROM tab2 AS cor0
----
237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT + + 17 DIV - 91 * 4 * 62 + 16 * + COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5950
SELECT + + 17 / - 91 * 4 * 62 + 16 * + COUNT ( * ) FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5951
SELECT COUNT( * ) * + + CAST( 18 AS SIGNED ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5951
SELECT COUNT ( * ) * + + CAST ( 18 AS INTEGER ) FROM tab2 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 65, - col1 * - - col1 col1 FROM tab1 AS cor0
----
65
-196
65
-2209
65
-25

query I rowsort
SELECT + ( + 24 ) AS col0 FROM tab0 AS cor0
----
24
24
24

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE + 85 IS NOT NULL
----
1
21
81

query I rowsort
SELECT - 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL COUNT( * ) * COUNT( * ) + - - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
151

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL COUNT ( * ) * COUNT ( * ) + - - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
151

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

query I rowsort
SELECT DISTINCT + ( - + col0 ) AS col0 FROM tab2 WHERE NOT NULL IN ( + 46, col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT DISTINCT - 19 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - 19 / + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - + 20 > + 0
----

query I rowsort
SELECT DISTINCT - col0 * + 22 FROM tab2 AS cor0
----
-1012
-1408
-1650

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT DISTINCT - - col0 DIV + col1 + - col1 + 6 * + 15 col1 FROM tab1 AS cor0
----
102
44
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5964
SELECT DISTINCT - - col0 / + col1 + - col1 + 6 * + 15 col1 FROM tab1 AS cor0
----
102
44
79

query I rowsort
SELECT + col1 * + + col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE 24 <= 82
----
308367
4410
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT - col0 DIV 55 + + 66 + - 49 + - col1 FROM tab1 AS cor0
----
-31
11
3

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT - col0 / 55 + + 66 + - 49 + - col1 FROM tab1 AS cor0
----
-31
11
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 + + - col1 col2, + col1 * 10 FROM tab1 AS cor0
----
-10
50
-28
140
-94
470

query I rowsort
SELECT DISTINCT + 18 * + col1 + + col2 FROM tab1 AS cor0
----
149
348
914

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5970
SELECT 55 + + col1 + CAST( NULL AS SIGNED ) + - col2 AS col0, - col1 - + col2 col2 FROM tab1 cor0 WHERE col0 BETWEEN + + 87 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5970
SELECT 55 + + col1 + CAST ( NULL AS INTEGER ) + - col2 AS col0, - col1 - + col2 col2 FROM tab1 cor0 WHERE col0 BETWEEN + + 87 AND NULL
----

query I rowsort
SELECT ALL col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 59 * + 33 * - 49 )
----

query I rowsort
SELECT - col0 + - col1 + - 49 + - + col0 FROM tab0 AS cor0
----
-160
-244
-244

query I rowsort
SELECT col1 * - 97 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab0
----
-5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col2 FROM tab0
----
-15
-87
-97

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

query I rowsort
SELECT ALL - col0 + + 62 AS col2 FROM tab1
----
-23
-29
11

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT DISTINCT + 86 + + + COUNT ( * ) col1 FROM tab1
----
89

query I rowsort
SELECT ALL - + col0 + + - 97 FROM tab1 AS cor0
----
-148
-182
-188

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5983
SELECT ALL - + col1 DIV + 83 - + col1 * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - + col1 / + 83 - + col1 * + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + AVG ( DISTINCT + - 51 ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL

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

query I rowsort
SELECT DISTINCT 66 - + + col1 FROM tab1 cor0
----
19
52
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5987
SELECT DISTINCT + ( + 97 ) - - ( - ( + COUNT( * ) ) ) col2, 11 * - COUNT( DISTINCT + 73 ) AS col0 FROM tab0 AS cor0
----
94
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5987
SELECT DISTINCT + ( + 97 ) - - ( - ( + COUNT ( * ) ) ) col2, 11 * - COUNT ( DISTINCT + 73 ) AS col0 FROM tab0 AS cor0
----
94
-11

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

query I rowsort
SELECT ALL - 59 * + - col1 AS col0 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT DISTINCT col1 * - 1 * + - 33 AS col0 FROM tab2 cor0
----
1683
2211
2541

query I rowsort
SELECT - 73 * - 61 FROM tab2
----
4453
4453
4453

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

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

query I rowsort
SELECT + 40 * 51 AS col1 FROM tab2
----
2040
2040
2040

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

query II rowsort
SELECT DISTINCT col2 * + 93 AS col0, - 26 FROM tab0
----
4371
-26
9207
-26
930
-26

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

skipif mysql # not compatible
query I rowsort label-5996
SELECT + + COUNT ( * ) + - COUNT ( DISTINCT col2 ) FROM tab1 WHERE NOT NULL = NULL
----
0

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

query I rowsort
SELECT ALL 73 * - 54 * + + col1 * + 56 + + - col2 AS col2 FROM tab2 AS cor0
----
-11258375
-14790442
-16997944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5999
SELECT DISTINCT - COUNT( - 8 ) DIV - + SUM( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - COUNT ( - 8 ) / - + SUM ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT COUNT( * ) * - 94 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6000
SELECT COUNT ( * ) * - 94 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT DISTINCT col0 DIV 28 FROM tab0 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT col0 / 28 FROM tab0 cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE + 61 BETWEEN + + 74 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6002
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE + 61 BETWEEN + + 74 AND NULL
----

query I rowsort
SELECT + 90 * 85 AS col0 FROM tab2 AS cor0
----
7650
7650
7650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT + - 3 DIV + - COUNT( * ) FROM tab1 AS cor0 WHERE col0 DIV 38 * - 50 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-6004
SELECT + - 3 / + - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 / 38 * - 50 IS NOT NULL
----
1

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

query II rowsort
SELECT col2 AS col2, - col1 * col1 FROM tab2 AS cor0
----
23
-2601
40
-5929
58
-4489

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6011
SELECT ALL + - col1 DIV + col2 * + col2 FROM tab1 WHERE NOT - 8 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + - col1 / + col2 * + col2 FROM tab1 WHERE NOT - 8 IS NULL
----
0
0
0

query I rowsort
SELECT ALL + col1 + - + 21 AS col1 FROM tab0
----
-20
0
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT CAST( col0 AS SIGNED ) - - + col1 AS col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT CAST ( col0 AS INTEGER ) - - + col1 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT - col0 + + 7 AS col0 FROM tab2
----
-39
-57
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT DISTINCT + - col0 - - CAST( + + col0 AS SIGNED ) * + + 88 + col1 AS col2 FROM tab2 AS cor0
----
4053
5645
6592

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT + - col0 - - CAST ( + + col0 AS INTEGER ) * + + 88 + col1 AS col2 FROM tab2 AS cor0
----
4053
5645
6592

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 85 IN ( - - 70 * - col1, 11 * 76 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT + 90 DIV + 57 col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6017
SELECT + 90 / + 57 col1 FROM tab1 AS cor0
----
1
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6019
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 25 + 30 * col0 NOT IN ( 1 * - CAST( col0 AS SIGNED ), col1 * + CAST( - col1 AS SIGNED ) * CAST( + 33 AS SIGNED ) + - CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6019
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * 25 + 30 * col0 NOT IN ( 1 * - CAST ( col0 AS INTEGER ), col1 * + CAST ( - col1 AS INTEGER ) * CAST ( + 33 AS INTEGER ) + - CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT MAX( ALL 76 ) * 98 AS col0 FROM tab2 AS cor0
----
7448

skipif mysql # not compatible
query I rowsort label-6020
SELECT MAX ( ALL 76 ) * 98 AS col0 FROM tab2 AS cor0
----
7448

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

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

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

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

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

query II rowsort
SELECT DISTINCT - ( - col1 ) + + - col2 AS col2, + 15 AS col2 FROM tab0 AS cor0 WHERE NOT 94 + - + col0 IS NULL
----
-98
15
11
15
34
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT DISTINCT 3 col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab2 WHERE NOT - 70 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT COUNT( * ) + + MIN( + col1 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6028
SELECT COUNT ( * ) + + MIN ( + col1 ) AS col0 FROM tab2
----
54

query I rowsort
SELECT - col2 + - col2 + - 5 AS col0 FROM tab0 AS cor0
----
-203
-25
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT ALL - - COUNT( * ) col2, + 46 FROM tab2 cor0
----
3
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT - COUNT( DISTINCT col1 ) * - - ( - 67 ) AS col2 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6031
SELECT - COUNT ( DISTINCT col1 ) * - - ( - 67 ) AS col2 FROM tab2 AS cor0
----
201

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 / - - 89 * - col1 IS NULL
----

query II rowsort
SELECT DISTINCT 65, col2 * 95 AS col0 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT + 54 - - 96 + - - 99 * - + SUM( + col0 ) AS col1, + SUM( - col1 ) FROM tab2
----
-18165
-195

skipif mysql # not compatible
query II rowsort label-6036
SELECT + 54 - - 96 + - - 99 * - + SUM ( + col0 ) AS col1, + SUM ( - col1 ) FROM tab2
----
-18165
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 37 * - col1 col0 FROM tab2 AS cor0
----
-1938
-2546
-2926

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT + COUNT( DISTINCT - col2 ) + 8 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-6038
SELECT + COUNT ( DISTINCT - col2 ) + 8 FROM tab2 cor0
----
11

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

query II rowsort
SELECT - col2 + - - 17, col0 AS col0 FROM tab2 AS cor0
----
-23
64
-41
75
-6
46

query I rowsort
SELECT DISTINCT 48 * - 94 AS col1 FROM tab1 cor0
----
-4512

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

skipif mysql # not compatible
query II rowsort label-6042
SELECT DISTINCT + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

query I rowsort
SELECT DISTINCT col0 + + col2 + - col2 * + col0 FROM tab1
----
-4749
-4871
-6029

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6047
SELECT + MAX ( + - col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT - col0 * + + col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6049
SELECT ALL 20 AS col0, CAST( NULL AS SIGNED ) + - 17 AS col2 FROM tab1
----
20
NULL
20
NULL
20
NULL

skipif mysql # not compatible
query II rowsort label-6049
SELECT ALL 20 AS col0, CAST ( NULL AS INTEGER ) + - 17 AS col2 FROM tab1
----
20
NULL
20
NULL
20
NULL

query I rowsort
SELECT ALL + 86 + col2 + 54 AS col2 FROM tab0
----
150
187
239

query I rowsort
SELECT DISTINCT 49 - + 36 + + + 15 * - + col2 AS col2 FROM tab2
----
-332
-587
-857

query I rowsort
SELECT DISTINCT col2 - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-17
-23
-24

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT DISTINCT ( + 15 ) * 45 AS col0 FROM tab1 WHERE NOT ( - 39 * - 88 ) BETWEEN ( 71 ) + col2 * - col0 AND + CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT ( + 15 ) * 45 AS col0 FROM tab1 WHERE NOT ( - 39 * - 88 ) BETWEEN ( 71 ) + col2 * - col0 AND + CAST ( NULL AS INTEGER ) + col1
----

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) <> - col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT MIN( DISTINCT + col1 ) FROM tab0 WHERE ( col2 * col2 ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-6059
SELECT MIN ( DISTINCT + col1 ) FROM tab0 WHERE ( col2 * col2 ) IS NOT NULL
----
1

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL NOT IN ( col0 * + 47 )
----

query I rowsort
SELECT ALL + ( col1 ) + col0 * - col1 FROM tab0
----
-1134
-1806
-96

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6063
SELECT DISTINCT * FROM tab1 WHERE NULL = + col0 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6063
SELECT DISTINCT * FROM tab1 WHERE NULL = + col0 / CAST ( NULL AS INTEGER )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT CAST ( NULL AS INTEGER ) + ( + col2 ) AS col2 FROM tab2 WHERE NULL BETWEEN col1 AND + col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col0 FROM tab0 WHERE ( - col1 ) BETWEEN col1 + + 13 AND + ( + ( col1 ) ) - col0
----

query I rowsort
SELECT DISTINCT + col2 + - ( col1 ) FROM tab2 WHERE - col0 BETWEEN ( col1 + - 29 * + col1 ) AND - col2 + 49
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT COUNT( * ) + COUNT( * ) * COUNT( 54 * 23 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-6069
SELECT COUNT ( * ) + COUNT ( * ) * COUNT ( 54 * 23 ) FROM tab0
----
12

query I rowsort
SELECT 39 + col2 * + 97 FROM tab1
----
5762
6635
9351

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

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

query I rowsort
SELECT ALL + col0 - + col0 AS col2 FROM tab2 WHERE NOT 50 <= - col1
----
0
0
0

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

query I rowsort
SELECT ALL 82 * + col2 AS col0 FROM tab0
----
3854
8118
820

query III rowsort
SELECT * FROM tab0 WHERE NOT 28 BETWEEN col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT 6 + col0 * 31 FROM tab1
----
1587
2641
2827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + 94 col2 FROM tab0
----
-611
-776
-9509

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

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

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

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

query I rowsort
SELECT 55 - 48 AS col0 FROM tab0 AS cor0 WHERE NULL <> col0
----

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT col1 + + col1 DIV col2 FROM tab1 WHERE + 79 + col0 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6084
SELECT col1 + + col1 / col2 FROM tab1 WHERE + 79 + col0 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 91 + - 39 AS col1 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT + 27 * col1 - - col0 FROM tab1 AS cor0
----
1360
220
429

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

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

query I rowsort
SELECT + + 88 * - col0 AS col1 FROM tab0 AS cor0
----
-1320
-7656
-8536

query I rowsort
SELECT - ( - col0 ) - + 14 * 30 FROM tab1 AS cor0
----
-329
-335
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT + MIN( ALL + 12 ) + + COUNT( + 57 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + MIN ( ALL + 12 ) + + COUNT ( + 57 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT - - 18 - col0 FROM tab1 AS cor0
----
-33
-67
-73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT 87 + col2 AS col0 FROM tab2 AS cor0 WHERE CAST( - 23 AS SIGNED ) BETWEEN ( NULL ) AND - col0 - col2
----

skipif mysql # not compatible
query I rowsort label-6094
SELECT 87 + col2 AS col0 FROM tab2 AS cor0 WHERE CAST ( - 23 AS INTEGER ) BETWEEN ( NULL ) AND - col0 - col2
----

query I rowsort
SELECT - col2 - - - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT ALL col2 - col0 DIV + 40 FROM tab1
----
57
66
95

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL col2 - col0 / + 40 FROM tab1
----
57
66
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab0 WHERE NOT 43 * + 59 + col1 * - col1 <> ( col2 + col2 )
----

query I rowsort
SELECT - 19 + + col1 AS col2 FROM tab2
----
32
48
58

query I rowsort
SELECT DISTINCT col1 * col2 FROM tab0 WHERE NOT NULL NOT IN ( col0 / - 95 + + col2 * + 64 )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 42 ) BETWEEN - 9 AND NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT + ( + ( + + 50 ) ) AS col0 FROM tab0
----
50
50
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL + COUNT( * ) * - 13 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL + COUNT ( * ) * - 13 FROM tab1 AS cor0
----
-39

query II rowsort
SELECT DISTINCT + - col2 AS col2, col0 * - col0 AS col0 FROM tab1 AS cor0
----
-59
-7225
-68
-8281
-96
-2601

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6110
SELECT + - 14 DIV 78 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6110
SELECT + - 14 / 78 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT 44 AS col1 FROM tab1 AS cor0 WHERE NOT col1 < - col0
----
44
44
44

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT + col2 DIV + 75 * + 88 * - 19 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6113
SELECT + col2 / + 75 * + 88 * - 19 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6114
SELECT ALL * FROM tab0 WHERE ( + CAST( + col2 AS SIGNED ) ) NOT BETWEEN col0 AND ( NULL )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-6114
SELECT ALL * FROM tab0 WHERE ( + CAST ( + col2 AS INTEGER ) ) NOT BETWEEN col0 AND ( NULL )
----
87
21
10

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - + 54 )
----

query I rowsort
SELECT + col2 + + 67 + 38 * + col2 FROM tab1
----
2368
2719
3811

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 76 + - col2 NOT BETWEEN NULL AND + 63 - 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT col1 + + 85 FROM tab0
----
106
166
86

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT 9 * col1 DIV - col1 + 37 AS col1 FROM tab1
----
28
28
28

skipif mysql # not compatible
query I rowsort label-6122
SELECT 9 * col1 / - col1 + 37 AS col1 FROM tab1
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT 67 + + col2 FROM tab2 AS cor0 WHERE - col1 + + col2 = + CAST( - ( col2 ) AS SIGNED ) - 27
----

skipif mysql # not compatible
query I rowsort label-6123
SELECT 67 + + col2 FROM tab2 AS cor0 WHERE - col1 + + col2 = + CAST ( - ( col2 ) AS INTEGER ) - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT MAX( ALL 27 ) * + + 83 FROM tab2 cor0
----
2241

skipif mysql # not compatible
query I rowsort label-6124
SELECT MAX ( ALL 27 ) * + + 83 FROM tab2 cor0
----
2241

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT - 79 * - COUNT( * ) FROM tab1 WHERE - + ( - + col0 ) <> - - 91
----
158

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 79 * - COUNT ( * ) FROM tab1 WHERE - + ( - + col0 ) <> - - 91
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT - - 9 + COUNT( - ( + 31 ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6128
SELECT - - 9 + COUNT ( - ( + 31 ) ) FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - 69 - + - 95 + + + col2 - - 28 * - - col2 * col1 AS col0 FROM tab0 cor0
----
106669
2897
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + COUNT( DISTINCT - col1 ) + - + 0 + - 54 FROM tab0 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6130
SELECT + COUNT ( DISTINCT - col1 ) + - + 0 + - 54 FROM tab0 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 35 + - - 4 + + 25 ) BETWEEN NULL AND ( 21 * - 80 )
----

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

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

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

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

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

query II rowsort
SELECT - ( col0 ) * + col0 AS col2, - 18 FROM tab1 AS cor0
----
-2601
-18
-7225
-18
-8281
-18

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

query I rowsort
SELECT ALL + - 93 * - + col1 AS col0 FROM tab0 AS cor0
----
1953
7533
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 + + col2 NOT IN ( 28 * - + 70 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT + COUNT( * ) AS col1, 33 * + 41 FROM tab2
----
3
1353

skipif mysql # not compatible
query II rowsort label-6140
SELECT + COUNT ( * ) AS col1, 33 * + 41 FROM tab2
----
3
1353

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 87 < NULL
----

query I rowsort
SELECT - ( - - 44 ) FROM tab2 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0, 66 col2, + + col2 + col2 * + col2 FROM tab1 AS cor0
----
9 values hashing to ccab824add0b16ec2fae9bcf4fce9cbb

onlyif mysql # DIV for integer division: 
query II rowsort label-6145
SELECT DISTINCT col1 DIV + + 88 AS col2, - ( - col1 ) FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-6145
SELECT DISTINCT col1 / + + 88 AS col2, - ( - col1 ) FROM tab1
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT DISTINCT - SUM( - 51 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
459

skipif mysql # not compatible
query I rowsort label-6146
SELECT DISTINCT - SUM ( - 51 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6147
SELECT ALL - ( + COUNT( * ) ) AS col2, + SUM( ALL - 30 ) * MIN( DISTINCT - - col2 ) + - CAST( NULL AS SIGNED ) - - 72 + - 74 / COUNT( * ) FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL - ( + COUNT ( * ) ) AS col2, + SUM ( ALL - 30 ) * MIN ( DISTINCT - - col2 ) + - CAST ( NULL AS INTEGER ) - - 72 + - 74 / COUNT ( * ) FROM tab0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT DISTINCT COUNT( * ) * + + 97 AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT COUNT ( * ) * + + 97 AS col0 FROM tab1
----
291

query II rowsort
SELECT - ( - - ( 57 ) ), col0 AS col1 FROM tab2
----
-57
46
-57
64
-57
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-6150
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT + col2 + + 2 AS col2 FROM tab0 cor0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT ALL - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 38 NOT BETWEEN + col1 AND + 93
----
-2

skipif mysql # not compatible
query I rowsort label-6152
SELECT ALL - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 38 NOT BETWEEN + col1 AND + 93
----
-2

query I rowsort
SELECT ALL - + 30 * - 11 FROM tab2 AS cor0
----
330
330
330

onlyif mysql # DIV for integer division: 
query I rowsort label-6154
SELECT - col2 DIV col1 + - - 84 + 24 DIV 73 col2 FROM tab1 cor0
----
73
78
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6154
SELECT - col2 / col1 + - - 84 + 24 / 73 col2 FROM tab1 cor0
----
73
78
83

query II rowsort
SELECT ALL + ( + + col0 ), col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + MIN( + + col0 ) * - 97 AS col1 FROM tab1 AS cor0
----
-4947

skipif mysql # not compatible
query I rowsort label-6157
SELECT + MIN ( + + col0 ) * - 97 AS col1 FROM tab1 AS cor0
----
-4947

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6160
SELECT * FROM tab1 WHERE - CAST( + + 58 AS SIGNED ) * + ( - col1 ) - - 98 * + 15 NOT IN ( 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6160
SELECT * FROM tab1 WHERE - CAST ( + + 58 AS INTEGER ) * + ( - col1 ) - - 98 * + 15 NOT IN ( 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 85 col0 FROM tab2
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query II rowsort label-6163
SELECT + 32 AS col1, - COUNT( * ) + + + 80 AS col1 FROM tab1
----
32
77

skipif mysql # not compatible
query II rowsort label-6163
SELECT + 32 AS col1, - COUNT ( * ) + + + 80 AS col1 FROM tab1
----
32
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ( - 0 ) AS col2 FROM tab0 WHERE NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 93 + - 28 > NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6168
SELECT DISTINCT - 93 DIV + + COUNT( * ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT - 93 / + + COUNT ( * ) FROM tab1 AS cor0
----
-31

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6170
SELECT ALL 75 AS col0, + 88 * - 87 + + + COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
75
-7653

skipif mysql # not compatible
query II rowsort label-6170
SELECT ALL 75 AS col0, + 88 * - 87 + + + COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
75
-7653

query I rowsort
SELECT 32 * col0 + + col0 FROM tab2
----
1518
2112
2475

query I rowsort
SELECT DISTINCT - 10 + - - 60 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT DISTINCT MAX( DISTINCT 79 ) + + - 31 AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6173
SELECT DISTINCT MAX ( DISTINCT 79 ) + + - 31 AS col1 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT - + COUNT( * ) - + 41 FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6174
SELECT - + COUNT ( * ) - + 41 FROM tab1 cor0
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT ALL - 33 * MAX( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
-3267

skipif mysql # not compatible
query I rowsort label-6176
SELECT ALL - 33 * MAX ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
-3267

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ( + 91 ) * - MIN( DISTINCT + col2 ) - MIN( + 76 ) AS col2 FROM tab1
----
-5445

skipif mysql # not compatible
query I rowsort label-6179
SELECT ( + 91 ) * - MIN ( DISTINCT + col2 ) - MIN ( + 76 ) AS col2 FROM tab1
----
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - + col0 - - 28 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - + col0 - - 28 IS NULL
----
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT col1 FROM tab0 WHERE NOT - 68 / + col0 - - 33 - + CAST( + col2 AS SIGNED ) * + col0 NOT BETWEEN NULL AND + 39 - col0 + - 8 * col2
----

skipif mysql # not compatible
query I rowsort label-6184
SELECT col1 FROM tab0 WHERE NOT - 68 / + col0 - - 33 - + CAST ( + col2 AS INTEGER ) * + col0 NOT BETWEEN NULL AND + 39 - col0 + - 8 * col2
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6187
SELECT DISTINCT - + MAX( DISTINCT + CAST( + 46 AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL = - - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT - + MAX ( DISTINCT + CAST ( + 46 AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL = - - col0 )
----
NULL

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

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

query II rowsort
SELECT - col2 * + 8 + + + col1, - col0 AS col0 FROM tab2 cor0
----
-133
-46
-243
-64
-397
-75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6190
SELECT DISTINCT - 30 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
90

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

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

query III rowsort
SELECT col1, col2 + - + ( col2 ) AS col2, - - col2 FROM tab1
----
9 values hashing to 04d54c6cedc4bae23cefd12827659122

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6194
SELECT ALL - COUNT( * ) DIV + - COUNT( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT ( + + 90 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL - COUNT ( * ) / + - COUNT ( * ) FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT ( + + 90 ) IS NULL
----
1

query I rowsort
SELECT DISTINCT - col1 + + - col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT - col0 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6199
SELECT ALL + - col1 DIV 14 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + - col1 / 14 AS col2 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6200
SELECT DISTINCT - col2 DIV - 89 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - col2 / - 89 AS col1 FROM tab2 AS cor0
----
0

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

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

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

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

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

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

query I rowsort
SELECT + col2 + col1 * + + 46 FROM tab1 AS cor0
----
2230
289
740

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

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

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

query II rowsort
SELECT - col1 + - col2 AS col1, + 2 * + 73 + + ( - col0 ) AS col2 FROM tab1 WHERE NULL <> ( + col1 - + + 92 * - col1 )
----

query I rowsort
SELECT ALL + col1 + ( - 70 ) * - col2 FROM tab1
----
4135
4807
6734

query I rowsort
SELECT ALL - + 89 * ( + col1 ) * + + 51 * 85 - - col2 AS col2 FROM tab2 WHERE NOT 4 IS NULL
----
-19676542
-25849547
-29707715

query II rowsort
SELECT col1 + + col2 * + col0 AS col0, col2 AS col2 FROM tab1
----
4910
96
5020
59
6235
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 55 + 27 col2, - col1 * + 62 AS col0 FROM tab0
----
82
-1302
82
-5022
82
-62

query I rowsort
SELECT ALL - col0 + + col2 - + 79 * + - col0 AS col2 FROM tab0
----
1217
6796
7665

query II rowsort
SELECT DISTINCT col2 - col1, - 46 AS col0 FROM tab2
----
-28
-46
-37
-46
-9
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6215
SELECT SUM( ALL + - 81 ) AS col1, - 57 FROM tab2 AS cor0
----
-243
-57

skipif mysql # not compatible
query II rowsort label-6215
SELECT SUM ( ALL + - 81 ) AS col1, - 57 FROM tab2 AS cor0
----
-243
-57

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

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

query I rowsort
SELECT ALL - 83 - + + 64 AS col2 FROM tab1
----
-147
-147
-147

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT DISTINCT - SUM( - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6221
SELECT DISTINCT - SUM ( - col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - col2 * 49 FROM tab2 AS cor0
----
-1127
-1960
-2842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6224
SELECT MIN( ALL - CAST( + + col0 AS SIGNED ) ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( - 21 / col1 * + - 43 * + col2 + - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL < ( - 21 / col1 * + - 43 * + col2 + - - col2 )
----
0

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

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

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

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

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

query I rowsort
SELECT - ( - + 43 ) AS col0 FROM tab1
----
43
43
43

query I rowsort
SELECT ALL - col0 * + 99 * + col0 AS col0 FROM tab0
----
-22275
-749331
-931491

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

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

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

query I rowsort
SELECT - 43 * - col1 * + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT MIN( - 43 ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6235
SELECT MIN ( - 43 ) FROM tab1 AS cor0
----
-43

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

query II rowsort
SELECT DISTINCT + col2 * + col1 AS col2, - col1 FROM tab0 AS cor0
----
210
-21
3807
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL - 43 * + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
387

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6238
SELECT ALL - 43 * + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
387

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT + SUM( + + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
558

skipif mysql # not compatible
query I rowsort label-6239
SELECT + SUM ( + + 62 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
558

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT DISTINCT + ( + - CAST( 57 AS SIGNED ) ) * + - COUNT( * ) FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT + ( + - CAST ( 57 AS INTEGER ) ) * + - COUNT ( * ) FROM tab1 AS cor0
----
171

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

query I rowsort
SELECT DISTINCT col1 * + + ( + + col2 ) FROM tab1
----
1344
295
3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT COUNT( * ) - + 89 AS col1 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-6249
SELECT COUNT ( * ) - + 89 AS col1 FROM tab0
----
-86

query I rowsort
SELECT DISTINCT + 27 * - + col1 FROM tab0
----
-2187
-27
-567

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 + 92 IS NULL
----

query I rowsort
SELECT DISTINCT - 88 - + + 29 AS col0 FROM tab1 AS cor0
----
-117

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 - + col2 * + col0 - - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # DIV for integer division: 
query II rowsort label-6259
SELECT col1 DIV - - 27, 40 AS col0 FROM tab0 AS cor0
----
0
40
0
40
3
40

skipif mysql # not compatible
query II rowsort label-6259
SELECT col1 / - - 27, 40 AS col0 FROM tab0 AS cor0
----
0
40
0
40
3
40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 * col2 col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <= col2 + - 59 * + col1
----
15
81
47
87
21
10

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

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

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

query I rowsort
SELECT DISTINCT col0 / + col1 * - 73 * + col0 FROM tab1 WHERE NOT NULL > ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN + 11 / - - col0 AND NULL
----

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

query I rowsort
SELECT DISTINCT ( 16 ) AS col1 FROM tab1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT + - col1 DIV - - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT + - col1 / - - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT ALL - MAX( + + 41 ) AS col0 FROM tab2 AS cor0 WHERE col2 > - 99
----
-41

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - MAX ( + + 41 ) AS col0 FROM tab2 AS cor0 WHERE col2 > - 99
----
-41

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( - 11 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 82 + + col2 * + 63 AS col2 FROM tab2
----
1367
2438
3572

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + 89 + + SUM( - 21 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + 89 + + SUM ( - 21 ) FROM tab1
----
26

query I rowsort
SELECT ALL + 56 + + col2 * - - 98 AS col2 FROM tab1
----
5838
6720
9464

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

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

query I rowsort
SELECT ALL col2 + + ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
1081
2600
4408

query II rowsort
SELECT col0, + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6282
SELECT ALL MAX( CAST( - col1 AS SIGNED ) ) col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6282
SELECT ALL MAX ( CAST ( - col1 AS INTEGER ) ) col0 FROM tab0 cor0
----
-1

query II rowsort
SELECT + - col0 + + 64, 55 - - col0 * - - ( - ( + 36 ) ) AS col2 FROM tab0 AS cor0
----
-23
-3077
-33
-3437
49
-485

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - 79 ) + - - col0 >= NULL
----

query II rowsort
SELECT DISTINCT col1 * ( - 81 ) + - col0 AS col1, + 53 FROM tab2 AS cor0
----
-4177
53
-5502
53
-6301
53

query I rowsort
SELECT DISTINCT 90 * - - col2 * - - col1 * - col1 AS col2 FROM tab2
----
-21344400
-23432580
-5384070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 8 * + 92 FROM tab1 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6288
SELECT + col0 / + - 82 FROM tab0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col2 * + 92 AS col0 FROM tab0
----
4324
9108
920

query I rowsort
SELECT ALL + col2 / - col0 FROM tab2 WHERE 92 * + 54 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT ALL 97 * + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) / SUM( DISTINCT col1 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL 97 * + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) / SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT DISTINCT - col2 / ( 52 ) / - CAST( col2 AS SIGNED ) * - 40 * - 39 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - col2 / ( 52 ) / - CAST ( col2 AS INTEGER ) * - 40 * - 39 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6293
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE NOT col0 NOT IN ( + 96 + col1 + 73 - + col1 * col2 * + 52 + - CAST( NULL AS SIGNED ), + 98 / 32, + col2, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6293
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col0 NOT IN ( + 96 + col1 + 73 - + col1 * col2 * + 52 + - CAST ( NULL AS INTEGER ), + 98 / 32, + col2, - col0 )
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL + COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL COUNT( * ) * + SUM( - 69 ) AS col0 FROM tab1 cor0
----
-621

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL COUNT ( * ) * + SUM ( - 69 ) AS col0 FROM tab1 cor0
----
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT DISTINCT COUNT( * ) + + - 12 AS col0 FROM tab1 AS cor0 WHERE NOT 77 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT COUNT ( * ) + + - 12 AS col0 FROM tab1 AS cor0 WHERE NOT 77 IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - 12
----

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + ( - - ( - col0 ) ) AS col1 FROM tab2 cor0
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT DISTINCT MAX( DISTINCT - col2 ) * + 8 FROM tab1
----
-472

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT MAX ( DISTINCT - col2 ) * + 8 FROM tab1
----
-472

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 86 = - 29 + - col0
----

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

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL 70 / - 50 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col2 * + col2, col1, - col0, 9 * + + ( col2 ) * + - col2, ( - 30 ), col2 + col2, 35 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6311
SELECT DISTINCT col0 + - - col2 AS col2, - col0 DIV - 61 col1 FROM tab1
----
144
1
147
0
159
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6311
SELECT DISTINCT col0 + - - col2 AS col2, - col0 / - 61 col1 FROM tab1
----
144
1
147
0
159
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6312
SELECT ALL + MAX( DISTINCT col2 ) AS col0, + MIN( + 39 ) col2 FROM tab1
----
96
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6312
SELECT ALL + MAX ( DISTINCT col2 ) AS col0, + MIN ( + 39 ) col2 FROM tab1
----
96
39

onlyif mysql # DIV for integer division: 
query I rowsort label-6313
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT 20 DIV + 57 NOT IN ( - + 50 * - col1, 0, + col2 * + + 43 )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NOT 20 / + 57 NOT IN ( - + 50 * - col1, 0, + col2 * + + 43 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6314
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6314
SELECT ALL * FROM tab2 cor0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + - col1 * - col1 + + col0 FROM tab1
----
150303
1560
18867

query I rowsort
SELECT ALL - - 77 + col1 + + 22 AS col2 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT DISTINCT + 13 + - 68 FROM tab0 AS cor0
----
-55

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

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

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

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

query II rowsort
SELECT - col1 - col1 * + col1, + 36 AS col1 FROM tab2 cor0
----
-2652
36
-4556
36
-6006
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6323
SELECT + - SUM( ALL - col2 ) * - COUNT( * ) + ( - + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IN ( + - col2, 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT + - SUM ( ALL - col2 ) * - COUNT ( * ) + ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IN ( + - col2, 45 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6324
SELECT ALL - COUNT ( + + CAST ( - 56 AS INTEGER ) ) FROM tab0
----
-3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 11 - + - col0 + 58 - - + col2 * + - 77 + 65 * + col1 col0, col2 FROM tab2
----
11
58
1637
23
2036
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 15 NOT IN ( + + col1, - col0, col1 )
----

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

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

query I rowsort
SELECT ALL col0 * - - ( + col2 ) + - 65 AS col1 FROM tab2 AS cor0
----
2495
4285
993

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

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL + 39 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + ( - ( - col0 ) ) * + col1 * ( + + col1 ) AS col2, + col2 AS col2 FROM tab1 AS cor0
----
201019
68
2125
59
9996
96

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

query I rowsort
SELECT col1 + - - col0 AS col0 FROM tab2
----
141
142
97

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

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

query I rowsort
SELECT col2 * + 58 + + + col0 * + 95 * + col1 AS col0 FROM tab0
----
118151
14957
174145

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6338
SELECT 63 DIV + 13 + - + col0 + col0, col0 FROM tab1
----
4
51
4
85
4
91

skipif mysql # not compatible
query II rowsort label-6338
SELECT 63 / + 13 + - + col0 + col0, col0 FROM tab1
----
4
51
4
85
4
91

query I rowsort
SELECT ALL + - 64 FROM tab0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT + COUNT( * ) + SUM( + col1 ) AS col2 FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-6340
SELECT + COUNT ( * ) + SUM ( + col1 ) AS col2 FROM tab0
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT - + COUNT( * ) * + 98 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-6342
SELECT - + COUNT ( * ) * + 98 FROM tab1 AS cor0
----
-294

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 86 NOT IN ( + - 45, col0 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6346
SELECT ALL COUNT ( 39 ) col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

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

query I rowsort
SELECT - 51 - + col0 * - 9 * col0 * + + col0 AS col2 FROM tab2
----
2359245
3796824
875973

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT 32 * - col0 + + - col1 FROM tab1
----
-1646
-2725
-2959

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

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

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

skipif mysql # not compatible
query II rowsort label-6352
SELECT - MIN ( ALL - 54 ) + + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - col0 + - col1 < NULL
----

query I rowsort
SELECT ALL - col2 * + col0 - + 76 FROM tab1 AS cor0
----
-4972
-5091
-6264

onlyif mysql # DIV for integer division: 
query I rowsort label-6355
SELECT DISTINCT - + 57 DIV + 73 + + col2 col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6355
SELECT DISTINCT - + 57 / + 73 + + col2 col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT - MIN( 96 ) AS col1 FROM tab0 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - MIN ( 96 ) AS col1 FROM tab0 cor0
----
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT DISTINCT SUM( + + 67 ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT SUM ( + + 67 ) FROM tab1
----
201

query II rowsort
SELECT ALL col1, col0 * - col2 AS col1 FROM tab0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT + SUM( + 91 ) AS col0 FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-6360
SELECT + SUM ( + 91 ) AS col0 FROM tab0
----
273

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6361
SELECT - 71 DIV COUNT( * ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-6361
SELECT - 71 / COUNT ( * ) FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - 0 * + - MIN( - + ( - col0 ) ) FROM tab1
----
0

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

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

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

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

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

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT + col1 / 19 BETWEEN + col1 AND NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * + + 37 FROM tab1 AS cor0
----
-2183
-2516
-3552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT ALL - 90 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 55 + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL - 90 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - - 55 + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT ALL + COUNT( * ) + + 62 + - 64 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6370
SELECT ALL + COUNT ( * ) + + 62 + - 64 FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL col0 AS col1, col2 * - ( + col2 ) FROM tab0
----
15
-2209
87
-100
97
-9801

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

query I rowsort
SELECT DISTINCT + 82 + col2 * + col0 FROM tab0
----
787
952
9685

query I rowsort
SELECT ( col0 ) + + 7 AS col0 FROM tab2 WHERE - - col1 + - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + 89 FROM tab1 AS cor0
----
-140
-174
-180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT ALL - COUNT( * ) + - + SUM( - 56 ) FROM tab1 cor0
----
165

skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL - COUNT ( * ) + - + SUM ( - 56 ) FROM tab1 cor0
----
165

query I rowsort
SELECT ALL + 58 - + - col0 AS col2 FROM tab2 AS cor0
----
104
122
133

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + + - ( col1 ) FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - 62 - - - 95 AS col1 FROM tab1 AS cor0
----
-157
-157
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6383
SELECT - 34 * 28 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 34 * 28 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 89 - + - 26 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT - col2 - - + col1 * - + col0 + - col0 + + col2 DIV - col1 FROM tab1 AS cor0
----
-4437
-580
-867

skipif mysql # not compatible
query I rowsort label-6385
SELECT - col2 - - + col1 * - + col0 + - col0 + + col2 / - col1 FROM tab1 AS cor0
----
-4437
-580
-867

query I rowsort
SELECT ALL col1 - 68 + - col2 FROM tab1 AS cor0
----
-122
-150
-89

query II rowsort
SELECT ALL - col2 AS col1, col1 * col2 AS col0 FROM tab0 AS cor0
----
-10
210
-47
3807
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT + MAX( DISTINCT + - ( - ( 56 ) ) ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + MAX ( DISTINCT + - ( - ( 56 ) ) ) FROM tab2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT 57 * + MIN( - col2 ) FROM tab0
----
-5643

skipif mysql # not compatible
query I rowsort label-6389
SELECT 57 * + MIN ( - col2 ) FROM tab0
----
-5643

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT + 0 * + col0 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6391
SELECT + 0 * + col0 / col2 FROM tab0
----
0
0
0

query II rowsort
SELECT 57 * 67 AS col0, 16 FROM tab0 AS cor0
----
3819
16
3819
16
3819
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6393
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 92 BETWEEN - col1 AND - + CAST( - + ( - + 8 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6393
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 92 BETWEEN - col1 AND - + CAST ( - + ( - + 8 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 50 AS col2 FROM tab1 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL - - COUNT( DISTINCT - + 81 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL - - COUNT ( DISTINCT - + 81 ) FROM tab1 AS cor0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-6397
SELECT ALL - 61 AS col0, 50 + COUNT( * ) - - - 73 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61
-14
NULL

skipif mysql # not compatible
query III rowsort label-6397
SELECT ALL - 61 AS col0, 50 + COUNT ( * ) - - - 73 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-61
-14
NULL

query I rowsort
SELECT DISTINCT 67 + - - 22 AS col1 FROM tab0
----
89

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT ALL MIN( col2 ) FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL MIN ( col2 ) FROM tab0 AS cor0 WHERE NOT 49 IS NOT NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT ALL + CAST( - col1 AS SIGNED ) col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6407
SELECT ALL + CAST ( - col1 AS INTEGER ) col2 FROM tab0
----
-1
-21
-81

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

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

query I rowsort
SELECT DISTINCT col1 + + 85 + - - col2 * col2 FROM tab2
----
1762
3516
665

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT SUM( ALL - 23 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-6410
SELECT SUM ( ALL - 23 ) FROM tab2
----
-69

query I rowsort
SELECT ALL ( col1 ) + + + 64 + + col2 AS col1 FROM tab1
----
128
174
179

query I rowsort
SELECT DISTINCT 61 / + + 48 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - ( + col0 ) ) + + col0 FROM tab1 AS cor0 WHERE col0 >= - + col0
----
102
170
182

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

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

query I rowsort
SELECT ALL - col0 - - 76 AS col1 FROM tab1 AS cor0
----
-15
-9
25

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + 57 * COUNT( * ) FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-6420
SELECT + 57 * COUNT ( * ) FROM tab1
----
171

query II rowsort
SELECT ALL + col2 AS col1, 9 * - + col2 AS col2 FROM tab1
----
59
-531
68
-612
96
-864

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - COUNT( * ) * + COUNT( * ) * 37 FROM tab2
----
-333

skipif mysql # not compatible
query I rowsort label-6423
SELECT - COUNT ( * ) * + COUNT ( * ) * 37 FROM tab2
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + 43 * - + COUNT( - - col0 ) AS col1 FROM tab0 WHERE NOT ( NOT NULL NOT IN ( + 32 * + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT + 43 * - + COUNT ( - - col0 ) AS col1 FROM tab0 WHERE NOT ( NOT NULL NOT IN ( + 32 * + col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT - 91 * + - COUNT( DISTINCT ( + 71 ) ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-6425
SELECT - 91 * + - COUNT ( DISTINCT ( + 71 ) ) FROM tab2
----
91

query I rowsort
SELECT + col1 * - col0 * - 15 FROM tab0
----
1455
18225
27405

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - 82 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT ALL - + col2 * - - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL COUNT( * ) FROM tab0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT col2 + - - col2 + col2 * - col1 AS col2 FROM tab1
----
-1152
-177
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-6437
SELECT ALL - 72 DIV - - 32 + col2 + col1 AS col0 FROM tab1 AS cor0
----
108
113
62

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - 72 / - - 32 + col2 + col1 AS col0 FROM tab1 AS cor0
----
108
113
62

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

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

query I rowsort
SELECT - - col1 * - - col1 * - col0 FROM tab2 AS cor0
----
-119646
-336675
-379456

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL MIN( DISTINCT - ( - + col0 ) ) * 25 AS col2 FROM tab0 AS cor0
----
375

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL MIN ( DISTINCT - ( - + col0 ) ) * 25 AS col2 FROM tab0 AS cor0
----
375

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE - col2 NOT IN ( col0, + 59 * - col2 )
----
23
40
58

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

skipif mysql # not compatible
query I rowsort label-6443
SELECT SUM ( DISTINCT - - col0 ) AS col2 FROM tab2
----
185

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

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

query I rowsort
SELECT DISTINCT ( + + 8 ) FROM tab1 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 * - col2 + col2 col1 FROM tab1
----
2006
2312
3264

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( - col0 ) = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) - + 75 + + COUNT ( * ) AS col2 FROM tab1
----
-75

query I rowsort
SELECT ALL + col2 + + 50 AS col1 FROM tab0 cor0
----
149
60
97

query I rowsort
SELECT ALL + col1 + - 18 FROM tab1
----
-13
-4
29

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 41 * + col1 * - + col2 FROM tab0 AS cor0
----
156087
4059
8610

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

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

query I rowsort
SELECT DISTINCT 42 * col2 AS col0 FROM tab1
----
2478
2856
4032

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT COUNT( * ) * - MIN( ALL - + col0 ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6460
SELECT COUNT ( * ) * - MIN ( ALL - + col0 ) AS col1 FROM tab0
----
291

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT DISTINCT - col0 DIV - 52 col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6464
SELECT DISTINCT - col0 / - 52 col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - ( + col1 ) * - 98 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col2, - col2 * 6 * - - col0 )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6469
SELECT - - ( col1 ) + + col0 + 24 + + 27 DIV + 66 AS col1, col0 AS col2 FROM tab1 AS cor0
----
114
85
162
91
89
51

skipif mysql # not compatible
query II rowsort label-6469
SELECT - - ( col1 ) + + col0 + 24 + + 27 / + 66 AS col1, col0 AS col2 FROM tab1 AS cor0
----
114
85
162
91
89
51

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

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

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

query I rowsort
SELECT ALL col2 + + col2 * col1 AS col0 FROM tab0
----
198
220
3854

query II rowsort
SELECT 63 + - + 34 AS col2, - 38 AS col0 FROM tab2
----
29
-38
29
-38
29
-38

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 46 IS NOT NULL
----

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

query I rowsort
SELECT ALL + col2 + + ( + + 11 ) AS col0 FROM tab1
----
107
70
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT ( col1 ) DIV - - 55 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT ( col1 ) / - - 55 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 + 59 + + col2 * + col2 + + - col2 + + col1 FROM tab1
----
3481
4615
9179

query I rowsort
SELECT DISTINCT + col0 * + + col0 + + col1 * col0 FROM tab0
----
1440
9396
9506

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

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

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT + + ( - col2 ) * col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6483
SELECT COUNT( * ) AS col0, 95 * 24 FROM tab1
----
3
2280

skipif mysql # not compatible
query II rowsort label-6483
SELECT COUNT ( * ) AS col0, 95 * 24 FROM tab1
----
3
2280

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT DISTINCT - col0 * - CAST( col2 AS SIGNED ) - - 73 + + col2 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-6616
366
600

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - col0 * - CAST ( col2 AS INTEGER ) - - 73 + + col2 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-6616
366
600

query I rowsort
SELECT - + 28 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 89 + + ( + col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - ( 20 ) * + + col2 * - - col0 + - col1 col1 FROM tab2 AS cor0
----
-3276877
-6525067
-973411

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL + SUM( + 83 ) FROM tab1 cor0
----
249

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL + SUM ( + 83 ) FROM tab1 cor0
----
249

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT - col2 DIV 18 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-6490
SELECT - col2 / 18 FROM tab1 AS cor0
----
-3
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL - MAX( DISTINCT + 19 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - MAX ( DISTINCT + 19 ) AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 6
----
NULL

query II rowsort
SELECT ALL col0 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

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

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

query I rowsort
SELECT DISTINCT + 19 * ( + 92 ) FROM tab1 AS cor0
----
1748

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL 97 * - MIN( ALL + col2 ) FROM tab0
----
-970

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 97 * - MIN ( ALL + col2 ) FROM tab0
----
-970

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + ( + - col1 ) + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( + + col0 ) ) col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 39 * - 75 * - + col1 FROM tab1 AS cor0
----
137475
14625
40950

query I rowsort
SELECT ALL 73 FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6505
SELECT + 22 col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
22
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 38 / - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6512
SELECT - col2 DIV + + 68 - - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6512
SELECT - col2 / + + 68 - - col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT COUNT( * ) + 19 col1 FROM tab2
----
22

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

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

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

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

query I rowsort
SELECT 12 FROM tab0 WHERE NOT + 59 / col0 + - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL 20 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6521
SELECT MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT DISTINCT - MAX( DISTINCT 38 ) AS col1 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT - MAX ( DISTINCT 38 ) AS col1 FROM tab1
----
-38

query I rowsort
SELECT 79 * 98 AS col0 FROM tab2 AS cor0
----
7742
7742
7742

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6533
SELECT MAX( ALL - + CAST( - 70 AS DECIMAL ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT MAX ( ALL - + CAST ( - 70 AS REAL ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

query I rowsort
SELECT ALL + col1 * ( col2 ) AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * 69 = col0 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 12 ) IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6541
SELECT CAST( col0 AS SIGNED ) * + 42 FROM tab1
----
2142
3570
3822

skipif mysql # not compatible
query I rowsort label-6541
SELECT CAST ( col0 AS INTEGER ) * + 42 FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT 53 * - COUNT( * ) FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-6542
SELECT 53 * - COUNT ( * ) FROM tab2
----
-159

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

skipif mysql # not compatible
query III rowsort label-6543
SELECT * FROM tab2 WHERE - col2 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - 55 + col1
----

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

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

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab1 WHERE ( NULL ) > + col0
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + 84 + + col0 * + col2 = - col2
----

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

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

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

query I rowsort
SELECT + 59 * - col2 FROM tab0
----
-2773
-5841
-590

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

skipif mysql # not compatible
query I rowsort label-6552
SELECT + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 WHERE col1 - - col0 BETWEEN ( NULL ) AND + col1
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6557
SELECT * FROM tab1 WHERE NOT col1 = - col0 + - CAST( 5 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6557
SELECT * FROM tab1 WHERE NOT col1 = - col0 + - CAST ( 5 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 27 * 80 FROM tab1
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT ALL MIN( ALL 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-6559
SELECT ALL MIN ( ALL 89 ) FROM tab2
----
89

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

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

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

query I rowsort
SELECT col2 * col2 AS col2 FROM tab2 WHERE NOT ( - 6 ) >= ( + col1 )
----
1600
3364
529

query I rowsort
SELECT DISTINCT - 68 + 36 * col0 AS col2 FROM tab0
----
3064
3424
472

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT ALL col2 DIV - col1 - + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL col2 / - col1 - + col1 FROM tab2
----
-51
-67
-77

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 45 AS col2 FROM tab1
----
2655
3060
4320

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col2 ) IN ( - 35 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= + col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - - 85 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - 85 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-6575
SELECT - 25 DIV - 88 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6575
SELECT - 25 / - 88 FROM tab1 cor0
----
0
0
0

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

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

query I rowsort
SELECT col1 * 90 AS col0 FROM tab1 WHERE NOT ( 29 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT + 84 + - COUNT( ALL col2 ) FROM tab2 WHERE NOT 26 - - ( ( - ( col2 ) ) ) IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + 84 + - COUNT ( ALL col2 ) FROM tab2 WHERE NOT 26 - - ( ( - ( col2 ) ) ) IS NULL
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT COUNT( - CAST( ( - 16 ) AS SIGNED ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6579
SELECT COUNT ( - CAST ( ( - 16 ) AS INTEGER ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT + MIN( DISTINCT + col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 4 AND + 41 + col0 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT + MIN ( DISTINCT + col2 ) FROM tab0 WHERE NOT NULL NOT BETWEEN - 4 AND + 41 + col0 * col0
----
NULL

query I rowsort
SELECT 18 FROM tab2 WHERE + ( col0 ) * - col1 - col0 IS NOT NULL
----
18
18
18

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

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

query I rowsort
SELECT DISTINCT + + 67 + - - col0 AS col0 FROM tab0 AS cor0
----
154
164
82

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

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

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

query I rowsort
SELECT ALL + 56 * - 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5ff3f24ad199347fafca5eb57ead74a4

onlyif mysql # DIV for integer division: 
query I rowsort label-6588
SELECT DISTINCT - - 97 DIV + 9 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - - 97 / + 9 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
10

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

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

query I rowsort
SELECT DISTINCT + 82 + - + 51 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + 10 * + col1 * - + 24 AS col0 FROM tab0 AS cor0
----
-19440
-240
-5040

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

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

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

query I rowsort
SELECT + col2 - - 69 FROM tab2 AS cor0
----
109
127
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT - MAX( + + col2 ) - - 74 * 5 AS col2 FROM tab1 AS cor0
----
274

skipif mysql # not compatible
query I rowsort label-6597
SELECT - MAX ( + + col2 ) - - 74 * 5 AS col2 FROM tab1 AS cor0
----
274

query I rowsort
SELECT ALL + + 94 * + col0 + - col2 - col1 * col0 AS col0 FROM tab2 AS cor0
----
1048
1955
1967

query II rowsort
SELECT col1 + + 21 AS col1, col1 + col2 FROM tab0
----
102
128
22
100
42
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT 40 + - COUNT( * ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-6600
SELECT 40 + - COUNT ( * ) FROM tab1
----
37

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6604
SELECT + 16 / - MIN ( ALL col0 ) FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT ( - col0 BETWEEN + 12 - 57 / + 51 AND ( col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-6606
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( - col0 BETWEEN + 12 - 57 / + 51 AND ( col2 ) )
----
3

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

skipif mysql # not compatible
query I rowsort label-6607
SELECT + CAST ( NULL AS INTEGER ) * - 17 * 87 + + + ( - ( 18 ) ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 31 * - - 5
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) * - - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) * - - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 69 * - 19 col0 FROM tab0 AS cor0
----
-129789
-13110
-61617

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT + - 36 AS col1 FROM tab2 cor0
----
-36
-36
-36

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT ALL + + 71 + MAX( + col1 ) + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT 83 * - - col2 IS NULL
----
151

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + + 71 + MAX ( + col1 ) + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT 83 * - - col2 IS NULL
----
151

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT + 21 AS col2, + MAX( - col2 ) * - - 35 FROM tab2 AS cor0
----
21
-805

skipif mysql # not compatible
query II rowsort label-6618
SELECT + 21 AS col2, + MAX ( - col2 ) * - - 35 FROM tab2 AS cor0
----
21
-805

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6620
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

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

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

query II rowsort
SELECT DISTINCT 11 AS col2, + col1 + - - col1 AS col2 FROM tab0
----
11
162
11
2
11
42

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

query I rowsort
SELECT + 19 AS col0 FROM tab0 WHERE col0 * 32 + - col1 IS NOT NULL
----
19
19
19

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

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

query I rowsort
SELECT ALL col0 + + col1 + + - col2 * col2 * + col1 FROM tab1
----
-128959
-17315
-217190

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

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

query I rowsort
SELECT + 54 * + ( + 56 ) AS col2 FROM tab2
----
3024
3024
3024

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

query I rowsort
SELECT ALL + 47 FROM tab0 WHERE - 39 + 5 <> col1 * + col1 / col0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT MAX( ALL + col2 ) + SUM( ALL col0 ) + 62 FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-6631
SELECT MAX ( ALL + col2 ) + SUM ( ALL col0 ) + 62 FROM tab0
----
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 5 col1 FROM tab1
----
56
90
96

query I rowsort
SELECT col1 * col0 + - 41 AS col0 FROM tab2
----
2305
4887
4984

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT - MIN( - col1 ) + - 78 * + COUNT( * ) FROM tab2 cor0
----
-157

skipif mysql # not compatible
query I rowsort label-6635
SELECT - MIN ( - col1 ) + - 78 * + COUNT ( * ) FROM tab2 cor0
----
-157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT ALL - col2 * 47 + - CAST( + col1 AS SIGNED ) + - 26 * + 63 AS col1 FROM tab0 AS cor0
----
-2129
-3928
-6292

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - col2 * 47 + - CAST ( + col1 AS INTEGER ) + - 26 * + 63 AS col1 FROM tab0 AS cor0
----
-2129
-3928
-6292

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > ( 10 ) * col2 * - 64
----

query I rowsort
SELECT DISTINCT + + 47 + - col2 AS col1 FROM tab2 AS cor0
----
-11
24
7

query I rowsort
SELECT ALL - col1 - + 57 * + + ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-3368
-3923
-5486

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT col0 <> col0
----
3

skipif mysql # not compatible
query I rowsort label-6640
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT col0 <> col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT DISTINCT + 39 * COUNT( * ) AS col0 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT + 39 * COUNT ( * ) AS col0 FROM tab2
----
117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT MIN( + 78 ) col0 FROM tab2
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( + col0 ) + - + 69 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( + col0 ) + - + 69 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col1 AS col1, 17 - - col0 FROM tab1
----
14
68
47
108
5
102

onlyif mysql # aggregate syntax: 
query II rowsort label-6646
SELECT ALL 74, - SUM( DISTINCT 48 ) AS col1 FROM tab0
----
74
-48

skipif mysql # not compatible
query II rowsort label-6646
SELECT ALL 74, - SUM ( DISTINCT 48 ) AS col1 FROM tab0
----
74
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6647
SELECT SUM( - ( + CAST( NULL AS SIGNED ) ) ) * - MIN( ALL - col1 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) * - MIN ( ALL - col1 ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6648
SELECT DISTINCT - 12 DIV - col1 * + col1 AS col0, + 16 AS col1 FROM tab0
----
0
16
12
16

skipif mysql # not compatible
query II rowsort label-6648
SELECT DISTINCT - 12 / - col1 * + col1 AS col0, + 16 AS col1 FROM tab0
----
0
16
12
16

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

query I rowsort
SELECT ALL - 74 * - - 13 AS col2 FROM tab2
----
-962
-962
-962

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6652
SELECT + 25 DIV - ( + COUNT( * ) ) AS col1 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-6652
SELECT + 25 / - ( + COUNT ( * ) ) AS col1 FROM tab0
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-6653
SELECT + + col2 DIV - col1 + - col2 AS col1, 75 + - 83 - + - 77 FROM tab1 AS cor0
----
-102
69
-69
69
-70
69

skipif mysql # not compatible
query II rowsort label-6653
SELECT + + col2 / - col1 + - col2 AS col1, 75 + - 83 - + - 77 FROM tab1 AS cor0
----
-102
69
-69
69
-70
69

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

query I rowsort
SELECT ALL 93 * + 66 * col0 FROM tab2
----
282348
392832
460350

query I rowsort
SELECT DISTINCT 89 * + col0 * - col2 + col1 AS col0 FROM tab2 cor0
----
-227763
-387083
-94111

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

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * + 13 NOT BETWEEN ( + col0 ) AND ( col0 / + - 42 )
----

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

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

query I rowsort
SELECT + + 45 * + + ( 68 ) AS col1 FROM tab1 AS cor0
----
3060
3060
3060

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT + col0 DIV col1 * - + 75 FROM tab1 AS cor0
----
-1275
-225
-75

skipif mysql # not compatible
query I rowsort label-6663
SELECT + col0 / col1 * - + 75 FROM tab1 AS cor0
----
-1275
-225
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT DISTINCT + 6 DIV - col0 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT DISTINCT + 6 / - col0 col1 FROM tab1
----
0

query I rowsort
SELECT - 12 * 26 FROM tab0
----
-312
-312
-312

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 77 + - 30 BETWEEN - col2 AND - col2 * + 96
----

query I rowsort
SELECT - ( + - 47 ) AS col1 FROM tab1
----
47
47
47

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

skipif mysql # not compatible
query I rowsort label-6669
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
0

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

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

query I rowsort
SELECT DISTINCT + + 79 * + col1 AS col0 FROM tab0 AS cor0
----
1659
6399
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT DISTINCT + CAST( col1 AS SIGNED ) + - - 57 FROM tab1 AS cor0
----
104
62
71

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + - - 57 FROM tab1 AS cor0
----
104
62
71

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab1 AS cor0 WHERE NULL > - col0 * - + col1 + - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL - - MAX( ALL + ( + + col1 ) ) * 11 FROM tab1 cor0
----
517

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - - MAX ( ALL + ( + + col1 ) ) * 11 FROM tab1 cor0
----
517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6675
SELECT + col1 * + CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-6675
SELECT + col1 * + CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col1 col2 FROM tab0 AS cor0
----
1215
1827
97

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = + 24 / - col2 - col0
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6683
SELECT + col1 AS col2, - col0 DIV 80 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6683
SELECT + col1 AS col2, - col0 / 80 FROM tab2 AS cor0
----
51
0
67
0
77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6684
SELECT + 69 * col0 DIV col2 AS col0 FROM tab0
----
22
600
67

skipif mysql # not compatible
query I rowsort label-6684
SELECT + 69 * col0 / col2 AS col0 FROM tab0
----
22
600
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT DISTINCT ( 57 ) FROM tab0 WHERE - ( 15 ) * - CAST( + - col2 AS SIGNED ) * + 39 + + ( + - 64 ) < ( + 62 )
----
57

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT ( 57 ) FROM tab0 WHERE - ( 15 ) * - CAST ( + - col2 AS INTEGER ) * + 39 + + ( + - 64 ) < ( + 62 )
----
57

query I rowsort
SELECT ALL - 10 AS col2 FROM tab1 WHERE NOT - col0 * + - col0 BETWEEN - col1 AND - 35 + - + 93
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + 63 * - col1 FROM tab0
----
-1323
-5103
-63

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL ( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6692
SELECT - 45 * + 5 col0 FROM tab2 AS cor0 WHERE NOT 72 - + col0 * + col2 * + col1 + - col2 IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6692
SELECT - 45 * + 5 col0 FROM tab2 AS cor0 WHERE NOT 72 - + col0 * + col2 * + col1 + - col2 IN ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT 75 * - col2 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT - 72 AS col0 FROM tab2 cor0
----
-72
-72
-72

query I rowsort
SELECT + - col0 + + 76 FROM tab2 AS cor0
----
1
12
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6696
SELECT + COUNT( * ) + - MAX( - - col2 ) - - CAST( - - 73 AS SIGNED ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6696
SELECT + COUNT ( * ) + - MAX ( - - col2 ) - - CAST ( - - 73 AS INTEGER ) FROM tab2 AS cor0
----
18

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 39 >= col0 + col0
----

query I rowsort
SELECT DISTINCT - col0 + - col2 * + - 78 * - 88 AS col0 FROM tab1
----
-405061
-466843
-658995

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT MIN( - - col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6702
SELECT MIN ( - - col0 ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 WHERE + + 9 >= + + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE ( + - col2 ) <> - 77 - + col1
----
3

skipif mysql # not compatible
query I rowsort label-6704
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE ( + - col2 ) <> - 77 - + col1
----
3

query I rowsort
SELECT DISTINCT col2 * - col2 + - - 65 AS col0 FROM tab2
----
-1535
-3299
-464

query I rowsort
SELECT DISTINCT + + 84 - - col2 AS col2 FROM tab0 AS cor0
----
131
183
94

query I rowsort
SELECT ALL - + 85 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-132
-90
-99

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + + 44 >= NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT + MIN( + + 4 ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + MIN ( + + 4 ) AS col1 FROM tab0 AS cor0
----
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) <> + col1 * + - col2 - - col0 + + 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - + COUNT( * ) + + 55 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 / col1 IS NOT NULL
----
55

skipif mysql # not compatible
query I rowsort label-6713
SELECT - + COUNT ( * ) + + 55 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 / col1 IS NOT NULL
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - COUNT( * ) * - 89 AS col1 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-6714
SELECT - COUNT ( * ) * - 89 AS col1 FROM tab2 AS cor0
----
267

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6719
SELECT - COUNT( * ) AS col2, + 58 AS col0 FROM tab0
----
-3
58

skipif mysql # not compatible
query II rowsort label-6719
SELECT - COUNT ( * ) AS col2, + 58 AS col0 FROM tab0
----
-3
58

query I rowsort
SELECT ALL 14 * - + 11 FROM tab0
----
-154
-154
-154

query II rowsort
SELECT ALL + 19 AS col2, - col0 AS col2 FROM tab0
----
19
-15
19
-87
19
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6722
SELECT DISTINCT + 26 AS col1, COUNT( * ) * - COUNT( * ) * - + CAST( - - MIN( ALL - col2 ) AS SIGNED ) + - - COUNT( ALL col0 ) FROM tab2
----
26
-519

skipif mysql # not compatible
query II rowsort label-6722
SELECT DISTINCT + 26 AS col1, COUNT ( * ) * - COUNT ( * ) * - + CAST ( - - MIN ( ALL - col2 ) AS INTEGER ) + - - COUNT ( ALL col0 ) FROM tab2
----
26
-519

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

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

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

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

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

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

query I rowsort
SELECT + + 51 + - col0 AS col1 FROM tab0 AS cor0
----
-36
-46
36

query I rowsort
SELECT ALL col2 * + 5 * 94 AS col0 FROM tab0 AS cor0 WHERE col0 = ( + ( - col0 ) / + - col2 )
----

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

query I rowsort
SELECT DISTINCT - ( - col0 ) * 30 + + col0 FROM tab2 cor0
----
1426
1984
2325

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT ALL 46 * - - MIN( + col2 ) FROM tab1 AS cor0
----
2714

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL 46 * - - MIN ( + col2 ) FROM tab1 AS cor0
----
2714

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6734
SELECT - 21 DIV - col2 col1, + col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6734
SELECT - 21 / - col2 col1, + col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

query II rowsort
SELECT ALL - 96 * - ( col1 ), + col1 AS col0 FROM tab0
----
2016
21
7776
81
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6736
SELECT + 57 - + ( - COUNT( * ) ) * - COUNT( * ) AS col0, - ( - COUNT( ALL - col1 ) ) - - 68 AS col0 FROM tab0
----
48
71

skipif mysql # not compatible
query II rowsort label-6736
SELECT + 57 - + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0, - ( - COUNT ( ALL - col1 ) ) - - 68 AS col0 FROM tab0
----
48
71

query I rowsort
SELECT DISTINCT + 52 * - 45 AS col0 FROM tab0
----
-2340

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 96 * + - col0 FROM tab1 cor0
----
-4896
-8160
-8736

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6743
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6743
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + col1 * 42 * col1 * 8, col2 FROM tab1
----
65856
96
742224
68
8400
59

query I rowsort
SELECT + col1 * col0 * 55 FROM tab0 AS cor0
----
100485
5335
66825

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT ALL - + 69 * - 0 / - - AVG ( - - col2 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE + ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - + 69 * - 0 / - - AVG ( - - col2 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE + ( - col2 ) IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT - SUM( DISTINCT + col1 ) AS col2, COUNT( DISTINCT - 86 ) FROM tab0 AS cor0
----
-103
1

skipif mysql # not compatible
query II rowsort label-6749
SELECT - SUM ( DISTINCT + col1 ) AS col2, COUNT ( DISTINCT - 86 ) FROM tab0 AS cor0
----
-103
1

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

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

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

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

query I rowsort
SELECT 21 * - - col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN + col0 * - + col1 + + col0 * - ( + 6 ) AND + col1
----

query I rowsort
SELECT ALL - col1 * ( - col2 ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT - col2 * - col0 * + - 66 FROM tab2
----
-168960
-287100
-69828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

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

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

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

query I rowsort
SELECT DISTINCT + - ( - + 96 ) / - col2 + + - col1 + - 0 AS col2 FROM tab0 WHERE NOT NULL >= + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT IN ( - col0, col2, - col2, - 78 * - + col0 * + 34 + + 83 )
----

query I rowsort
SELECT - 23 + + - col1 FROM tab1 AS cor0
----
-28
-37
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6762
SELECT ALL + + col0 + + + col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + + col0 + + + col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6763
SELECT ALL COUNT ( * ) AS col0, + MAX ( DISTINCT + 43 ) col1 FROM tab2 cor0
----
3
43

query I rowsort
SELECT - 26 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2283
-2523
-471

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

query I rowsort
SELECT 39 + col2 * col1 FROM tab2 AS cor0
----
1212
3119
3925

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

query I rowsort
SELECT col2 * + 68 AS col1 FROM tab2
----
1564
2720
3944

query I rowsort
SELECT ALL - 62 + + + 13 FROM tab0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL 88 * - COUNT( * ) FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL 88 * - COUNT ( * ) FROM tab1
----
-264

query II rowsort
SELECT ( + col0 ), - 45 FROM tab0
----
15
-45
87
-45
97
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6772
SELECT col0 * - col2 AS col2, CAST( col1 AS SIGNED ) FROM tab0
----
-705
81
-870
21
-9603
1

skipif mysql # not compatible
query II rowsort label-6772
SELECT col0 * - col2 AS col2, CAST ( col1 AS INTEGER ) FROM tab0
----
-705
81
-870
21
-9603
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6773
SELECT col2 DIV - 36, - 32 AS col1 FROM tab0
----
-1
-32
-2
-32
0
-32

skipif mysql # not compatible
query II rowsort label-6773
SELECT col2 / - 36, - 32 AS col1 FROM tab0
----
-1
-32
-2
-32
0
-32

query I rowsort
SELECT + 90 FROM tab0 WHERE 5 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 + + col0 AS col1 FROM tab1
----
-3396
-4533
-9165

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( col1 ) NOT BETWEEN col2 * + - 69 + col2 AND 88 AND NOT 55 * - ( - 1 ) BETWEEN - 97 * - - 99 AND + col2 * - - col1 + - + 70
----

query I rowsort
SELECT ALL 88 - - col0 FROM tab0
----
103
175
185

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6779
SELECT DISTINCT + 7 DIV COUNT( * ) * - 52 * + - COUNT( DISTINCT 2 ) FROM tab2
----
104

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + 7 / COUNT ( * ) * - 52 * + - COUNT ( DISTINCT 2 ) FROM tab2
----
104

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

query I rowsort
SELECT col2 * + 54 FROM tab1
----
3186
3672
5184

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

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

query II rowsort
SELECT + 23 * + - 72 + col0 AS col2, + col1 AS col2 FROM tab1 AS cor0
----
-1565
47
-1571
5
-1605
14

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

query I rowsort
SELECT ALL + + 88 * + 46 FROM tab1 AS cor0
----
4048
4048
4048

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6786
SELECT DISTINCT col0 AS col0, 88 * + col0 FROM tab2 AS cor0 WHERE ( + CAST( col1 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6786
SELECT DISTINCT col0 AS col0, 88 * + col0 FROM tab2 AS cor0 WHERE ( + CAST ( col1 AS INTEGER ) ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6788
SELECT DISTINCT - CAST( - + col2 AS SIGNED ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ) FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT ALL ( - col1 ) DIV - - 43 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL ( - col1 ) / - - 43 AS col1 FROM tab0
----
-1
0
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 > 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT DISTINCT - 86 * + + col2 AS col0 FROM tab1
----
-5074
-5848
-8256

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

query I rowsort
SELECT ALL + 75 + col0 AS col1 FROM tab1 AS cor0
----
126
160
166

query I rowsort
SELECT - ( - 39 ) AS col2 FROM tab1 AS cor0
----
39
39
39

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col1 ) * - col0 col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - COUNT( * ) - MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6800
SELECT - COUNT ( * ) - MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= + 6 + - + ( + 86 ) * - + col1
----

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

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

query I rowsort
SELECT DISTINCT col0 - + 18 FROM tab2 AS cor0
----
28
46
57

query I rowsort
SELECT DISTINCT - ( col1 ) + - 53 FROM tab1 cor0 WHERE col0 >= col2
----
-100
-58

query I rowsort
SELECT ALL + + col0 - - 0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - col1 - - col2 + 18 FROM tab2 AS cor0
----
-10
-19
9

query I rowsort
SELECT + col0 + 93 FROM tab2 AS cor0 WHERE + col1 <> - col2
----
139
157
168

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( col1 ) * - 20 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT 98 + - COUNT( * ) + - + 97 * - 97 FROM tab1
----
9504

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT 98 + - COUNT ( * ) + - + 97 * - 97 FROM tab1
----
9504

query II rowsort
SELECT DISTINCT col2, - 22 + + col0 + - col2 FROM tab1
----
59
4
68
1
96
-67

query II rowsort
SELECT ALL col2 AS col0, + col0 + - + 87 FROM tab0
----
10
0
47
-72
99
10

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

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

query I rowsort
SELECT DISTINCT + - col0 * + col1 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
-24285184
-25250625
-5503716

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

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL - + CAST ( - 92 AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
83

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 >= - - 7
----

query I rowsort
SELECT ALL ( 35 ) * - 26 * - col0 AS col1 FROM tab2 AS cor0
----
41860
58240
68250

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

skipif mysql # not compatible
query I rowsort label-6817
SELECT + + 62 / COUNT ( ALL - col1 ) / + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT SUM( - col0 ) col1 FROM tab2 AS cor0
----
-185

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 28 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col0 col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT - COUNT( DISTINCT - - col0 ) * + COUNT( * ) * + COUNT( * ) + + 49 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - COUNT ( DISTINCT - - col0 ) * + COUNT ( * ) * + COUNT ( * ) + + 49 FROM tab0 AS cor0
----
22

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

query I rowsort
SELECT ALL - 87 AS col1 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6824
SELECT ALL COUNT( * ) DIV + 40 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL COUNT ( * ) / + 40 AS col1 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL - MAX( ALL - col2 ) + - - COUNT( ALL - + 20 ) * + 98 FROM tab0
----
304

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - MAX ( ALL - col2 ) + - - COUNT ( ALL - + 20 ) * + 98 FROM tab0
----
304

query I rowsort
SELECT ALL + 54 AS col1 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT 80 * 76 + + + MAX( DISTINCT - - col2 ) FROM tab0
----
6179

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT 80 * 76 + + + MAX ( DISTINCT - - col2 ) FROM tab0
----
6179

query I rowsort
SELECT ALL col0 * - + 76 + - - 83 AS col2 FROM tab2
----
-3413
-4781
-5617

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - 6 + + + SUM( DISTINCT - col0 ) FROM tab2
----
-191

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - 6 + + + SUM ( DISTINCT - col0 ) FROM tab2
----
-191

query I rowsort
SELECT DISTINCT col0 * + 72 FROM tab1
----
3672
6120
6552

query I rowsort
SELECT ALL - 73 + - + col0 FROM tab1
----
-124
-158
-164

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL > 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL + COUNT( * ) + COUNT( * ) - + - MAX( ALL - - col2 ) AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL + COUNT ( * ) + COUNT ( * ) - + - MAX ( ALL - - col2 ) AS col1 FROM tab0
----
105

query I rowsort
SELECT - ( + - 12 ) + - 62 * + + 93 - - ( col2 ) AS col2 FROM tab1 AS cor0
----
-5658
-5686
-5695

query I rowsort
SELECT ALL - + 77 + - col2 AS col0 FROM tab1 AS cor0
----
-136
-145
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT DISTINCT - MAX( + - 55 ) - - COUNT( * ) + - - 76 AS col2 FROM tab0 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - MAX ( + - 55 ) - - COUNT ( * ) + - - 76 AS col2 FROM tab0 AS cor0
----
134

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - 12, ( - + col1 ) * - - 96 + + 43, + col2, - col1, - + ( ( col1 ) ) * col2 * - - col1 )
----

query I rowsort
SELECT ALL + col0 * - 96 - - col1 * - 44 AS col0 FROM tab0 cor0
----
-5004
-9276
-9356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + 1 AND col2 - 68
----
71
71
71

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

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

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab2 AS cor0 WHERE NULL >= col0 * - - 9
----

query I rowsort
SELECT ALL - 69 * + col2 FROM tab1 AS cor0 WHERE NOT + 61 NOT BETWEEN NULL AND - col1
----

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

query I rowsort
SELECT 16 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + col1 col1 FROM tab2
----
-4743
-6231
-7161

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL + + 49 / COUNT ( * ) AS col0 FROM tab0 cor0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT 4 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + + col1 * col0 * col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # DIV for integer division: 
query I rowsort label-6858
SELECT ALL + 94 DIV - 87 + + col1 FROM tab0 cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL + 94 / - 87 + + col1 FROM tab0 cor0
----
0
20
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < - + col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 AS cor0 WHERE NOT 37 IN ( col2 * col2 - + col2 / + col1 * - 62, + 51, col2 * + - col0 * - + 62 * - - col1 )
----
15
87
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col2 * + col0 col2 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + col2 col1, col0 + - ( col0 ) * + 29 AS col2 FROM tab1
----
144
-2380
147
-1428
159
-2548

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 86 + - + 11 col1, - col1 AS col1 FROM tab2
----
75
-51
75
-67
75
-77

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col0 <= + + col1 * - + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL SUM( + col0 ) + + 70 col2 FROM tab0
----
269

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6871
SELECT ALL SUM ( + col0 ) + + 70 col2 FROM tab0
----
269

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

query I rowsort
SELECT DISTINCT - + 96 FROM tab2 AS cor0
----
-96

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

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

query I rowsort
SELECT DISTINCT - 32 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT + 8 - + COUNT( * ) FROM tab0 WHERE NULL < - + ( ( col0 ) )
----
8

skipif mysql # not compatible
query I rowsort label-6876
SELECT + 8 - + COUNT ( * ) FROM tab0 WHERE NULL < - + ( ( col0 ) )
----
8

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6878
SELECT ALL - 99 * col0 DIV - col1 col2, - col2 + 96 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18
49
410
86
9603
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6878
SELECT ALL - 99 * col0 / - col1 col2, - col2 + 96 FROM tab0 AS cor0 WHERE NULL IS NULL
----
18
49
410
86
9603
-3

query I rowsort
SELECT ALL col2 + 74 FROM tab0 AS cor0
----
121
173
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 - - col1 + - - col0 * 43 col0 FROM tab0 AS cor0
----
3795
4205
759

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT 56 IN ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT 56 IN ( + col0 )
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 44, 52 col1 FROM tab1
----
-2596
52
-2992
52
-4224
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT MIN( DISTINCT ( + - col1 ) ) * - - 76 col2, + 77 AS col0 FROM tab2
----
-5852
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6884
SELECT MIN ( DISTINCT ( + - col1 ) ) * - - 76 col2, + 77 AS col0 FROM tab2
----
-5852
77

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 NOT BETWEEN ( - - 7 ) AND 57 * - col1
----

query I rowsort
SELECT col2 * - + 42 * + + col1 AS col1 FROM tab1
----
-12390
-134232
-56448

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

query I rowsort
SELECT - 89 + - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-140
-174
-180

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 + + col0 + - + col2 - - col1 NOT BETWEEN col1 * + col1 AND - 75 * + - col1 * - - col0 + - 30 + - ( + - 41 ) * + - ( + - col1 ) - + ( - col2 )
----
85
5
59

query I rowsort
SELECT + - 24 AS col1 FROM tab2 cor0
----
-24
-24
-24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + COUNT( * ) + 78 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6895
SELECT + COUNT ( * ) + 78 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL MIN( ALL ( + - 11 ) ) FROM tab0 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL MIN ( ALL ( + - 11 ) ) FROM tab0 cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-6897
SELECT + 25 * + col1 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
2030
25
525

skipif mysql # not compatible
query I rowsort label-6897
SELECT + 25 * + col1 + col1 / col0 AS col0 FROM tab0 AS cor0
----
2030
25
525

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

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

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab2 cor0
----
25

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

query I rowsort
SELECT 88 + col0 FROM tab1
----
139
173
179

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT ALL 90 DIV + - col1 + + ( ( - 19 ) ) * + - 82 * + col0 * + col0 AS col2 FROM tab2
----
3296727
6381567
8763749

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL 90 / + - col1 + + ( ( - 19 ) ) * + - 82 * + col0 * + col0 AS col2 FROM tab2
----
3296727
6381567
8763749

query III rowsort
SELECT * FROM tab0 WHERE + - col1 > NULL
----

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

query I rowsort
SELECT + 82 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query II rowsort
SELECT + col0, + col2 * + - col0 AS col1 FROM tab2 AS cor0
----
46
-1058
64
-2560
75
-4350

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

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

query I rowsort
SELECT ALL col1 + + ( 49 ) AS col2 FROM tab1
----
54
63
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT ALL - col2 DIV - - col1 AS col2 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - col2 / - - col1 AS col2 FROM tab0
----
-99
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6910
SELECT + col0 + - col2 * + col2 - col0 DIV + col0 FROM tab0
----
-14
-2195
-9705

skipif mysql # not compatible
query I rowsort label-6910
SELECT + col0 + - col2 * + col2 - col0 / + col0 FROM tab0
----
-14
-2195
-9705

query I rowsort
SELECT - - 75 AS col1 FROM tab2 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT col0 DIV + - col2 + col0 col1 FROM tab0 cor0
----
15
79
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6912
SELECT col0 / + - col2 + col0 col1 FROM tab0 cor0
----
15
79
97

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

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

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

query I rowsort
SELECT ALL - 88 / - + 29 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 40 * + + col1 AS col2 FROM tab0
----
-3240
-40
-840

query III rowsort
SELECT * FROM tab2 WHERE NOT + 64 = + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - 90 / - CAST ( + - 1 AS INTEGER ) AS col0 FROM tab2
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-6919
SELECT ALL - 46 DIV - col1 * - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - 46 / - col1 * - col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT - col2 DIV col1 * 22 * - col1 FROM tab1
----
1034
1210
1848

skipif mysql # not compatible
query I rowsort label-6920
SELECT - col2 / col1 * 22 * - col1 FROM tab1
----
1034
1210
1848

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + + col1 AND - col2 * - + col0 / - col0
----

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

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

query II rowsort
SELECT ALL 80, 94 + - 94 AS col2 FROM tab0
----
80
0
80
0
80
0

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 44 AS col0 FROM tab0 AS cor0
----
2068
4356
440

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6930
SELECT ALL - + 41 DIV + 7 col2, col1 AS col2 FROM tab0 WHERE - + col1 <= 8 + + 61 * + - col2 DIV + col0
----
-5
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6930
SELECT ALL - + 41 / + 7 col2, col1 AS col2 FROM tab0 WHERE - + col1 <= 8 + + 61 * + - col2 / + col0
----
-5
21

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 78 AS col2 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + - 35 + - ( + 81 ) AS col2 FROM tab0 cor0
----
-116

query II rowsort
SELECT ALL - 36 + + col2, col2 * col0 * + 75 AS col1 FROM tab0 AS cor0
----
-26
65250
11
52875
63
720225

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT + + ( + - ( - + COUNT( * ) ) ) * + 11 AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-6936
SELECT + + ( + - ( - + COUNT ( * ) ) ) * + 11 AS col0 FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL - 67 * + - ( - + col2 ) AS col1 FROM tab0 AS cor0
----
-3149
-6633
-670

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT MIN( - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6938
SELECT MIN ( - col0 ) FROM tab0 cor0
----
-97

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT COUNT( * ) - - + COUNT( * ) + + - MIN( + ( col2 ) ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-6943
SELECT COUNT ( * ) - - + COUNT ( * ) + + - MIN ( + ( col2 ) ) AS col1 FROM tab2
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT - MIN( + col1 ) FROM tab0 WHERE NULL IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6945
SELECT - MIN ( + col1 ) FROM tab0 WHERE NULL IS NULL
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6946
SELECT ALL + col1 + - col2 DIV - + col2 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + col1 + - col2 / - + col2 FROM tab1
----
15
48
6

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

query I rowsort
SELECT ALL + 3 - + 76 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT DISTINCT col0 / + col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT col0 / + col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL - ( MAX( - + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL - ( MAX ( - + col2 ) ) FROM tab0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6951
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + 52 * + MAX( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
-2652

skipif mysql # not compatible
query II rowsort label-6951
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 52 * + MAX ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
-2652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 72 col1, + col1 * - 75 AS col1 FROM tab2 AS cor0
----
72
-3825
72
-5025
72
-5775

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

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

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6957
SELECT col2 AS col1, + col1 - - CAST( NULL AS SIGNED ) * + + 96 * - 19 * + - 45 * - + col0 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6957
SELECT col2 AS col1, + col1 - - CAST ( NULL AS INTEGER ) * + + 96 * - 19 * + - 45 * - + col0 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT - 85 AS col1, - col0 AS col1 FROM tab0 AS cor0
----
-85
-15
-85
-87
-85
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT DISTINCT - 29 * - COUNT( * ) AS col0 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT - 29 * - COUNT ( * ) AS col0 FROM tab1
----
87

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6961
SELECT ALL + COUNT ( * ) / + + 1 col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * + col0 / - - col0 - + + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL SUM( ALL + + col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL SUM ( ALL + + col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT ALL - 28 * col2 FROM tab0
----
-1316
-2772
-280

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6966
SELECT ALL + - CAST ( col0 AS INTEGER ) col1, - col0 AS col2 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query I rowsort
SELECT - 43 * + 67 FROM tab1 AS cor0
----
-2881
-2881
-2881

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 >= + col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE ( + + 35 ) BETWEEN NULL AND col2 * 20
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT DISTINCT + col1 - 15 + col1 DIV - col1 AS col0 FROM tab2 cor0
----
35
51
61

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT + col1 - 15 + col1 / - col1 AS col0 FROM tab2 cor0
----
35
51
61

query I rowsort
SELECT DISTINCT + + col1 * - - 8 AS col0 FROM tab1 AS cor0 WHERE NOT 49 IS NULL
----
112
376
40

query I rowsort
SELECT ALL ( - col1 ) + + col2 AS col2 FROM tab0 WHERE NOT + + col0 IS NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT col2 + - col1 + - col0 FROM tab1
----
-31
-70
31

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

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + ( ( + - MIN ( DISTINCT - ( + - col2 ) ) ) ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6977
SELECT + col1 DIV + 79 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6977
SELECT + col1 / + 79 FROM tab0
----
0
0
1

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

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

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT + - 93 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT ALL - CAST( col0 AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL - CAST ( col0 AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - col1 * 34 FROM tab0 AS cor0
----
-2754
-34
-714

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

query I rowsort
SELECT col0 * - 21 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

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

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

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col1 * col0 <= col1
----

query I rowsort
SELECT ALL - 2 * + + 52 FROM tab0 cor0
----
-104
-104
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT - COUNT( * ) * + 63 AS col0, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6989
SELECT - COUNT ( * ) * + 63 AS col0, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
0

query II rowsort
SELECT + 23, ( + col1 ) FROM tab0
----
23
1
23
21
23
81

query II rowsort
SELECT ALL col1 AS col1, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT 95 * + MAX( DISTINCT + - col1 ) FROM tab1
----
-475

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT 95 * + MAX ( DISTINCT + - col1 ) FROM tab1
----
-475

query I rowsort
SELECT ALL - 91 * + col1 AS col0 FROM tab0 AS cor0
----
-1911
-7371
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6996
SELECT - 48 * CAST( NULL AS SIGNED ) - - 38 + + + 17 / + col0 + col1 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT - 48 * CAST ( NULL AS INTEGER ) - - 38 + + + 17 / + col0 + col1 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 10 * 98 + + 41 FROM tab2
----
1021
1021
1021

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = 60 + + - col1
----

query I rowsort
SELECT - 67 * 28 * + col2 * - col0 FROM tab2 cor0
----
1984808
4802560
8160600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT + MAX( DISTINCT col0 ) * + 40 AS col1 FROM tab0 AS cor0 WHERE col0 - + col2 IS NOT NULL
----
3880

skipif mysql # not compatible
query I rowsort label-7003
SELECT + MAX ( DISTINCT col0 ) * + 40 AS col1 FROM tab0 AS cor0 WHERE col0 - + col2 IS NOT NULL
----
3880

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

query I rowsort
SELECT ALL - 88 - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-162
-205
-213

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7006
SELECT ALL COUNT ( ALL - 53 ) col2 FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT ALL - 48 * AVG ( DISTINCT - col0 ) * - - 97 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, + 82 * - col0 col0 FROM tab0
----
15
-1230
87
-7134
97
-7954

query III rowsort
SELECT * FROM tab1 WHERE NULL = col0 + + 14 + + 89
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) * + + col2 AS col1 FROM tab1
----
1248
236
3128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - + 20 col1 FROM tab1 WHERE NOT 40 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 99 * + 9 + + - 82 FROM tab1
----
809

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

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

query I rowsort
SELECT ALL + 10 + + col2 AS col1 FROM tab2
----
33
50
68

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT DISTINCT CAST( - ( + col1 ) AS SIGNED ) FROM tab0 WHERE NULL IN ( 96 )
----

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT CAST ( - ( + col1 ) AS INTEGER ) FROM tab0 WHERE NULL IN ( 96 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + ( - 35 ) col1 FROM tab0
----
-17

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

query I rowsort
SELECT DISTINCT col1 * 62 - - col2 FROM tab2 WHERE NOT - col0 IS NULL
----
3185
4212
4814

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

skipif mysql # not compatible
query I rowsort label-7027
SELECT + MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
59

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

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

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

query I rowsort
SELECT - 31 * 90 + 11 FROM tab2
----
-2779
-2779
-2779

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

query I rowsort
SELECT - col1 * + 41 FROM tab2
----
-2091
-2747
-3157

query I rowsort
SELECT 23 * + col1 FROM tab0
----
1863
23
483

query I rowsort
SELECT ALL - 60 FROM tab2 WHERE + col2 IN ( - col0 + 92 / - col0 )
----

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 65 col2 FROM tab0 AS cor0
----
-1365
-5265
-65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - COUNT( * ) + + 95 col1 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7044
SELECT - COUNT ( * ) + + 95 col1 FROM tab1
----
92

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

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

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

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

query I rowsort
SELECT 79 * - col2 + col2 FROM tab1 AS cor0
----
-4602
-5304
-7488

query I rowsort
SELECT - - 30 + + col1 AS col0 FROM tab2 AS cor0
----
107
81
97

query I rowsort
SELECT - ( col2 ) + - 7 FROM tab2 AS cor0
----
-30
-47
-65

query I rowsort
SELECT DISTINCT - 40 - col1 * col1 FROM tab2 AS cor0
----
-2641
-4529
-5969

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 # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT DISTINCT + col0 - - col0 * + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 65 * + 79 ) BETWEEN ( NULL ) AND 38
----

query I rowsort
SELECT + 11 - + 20 AS col1 FROM tab1
----
-9
-9
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + CAST( - 88 AS SIGNED ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + CAST ( - 88 AS INTEGER ) AS col1 FROM tab0
----
-79

query I rowsort
SELECT ALL 89 + - col1 AS col2 FROM tab0
----
68
8
88

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT ALL - col0 DIV - col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - col0 / - col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT + ( - 95 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT + ( - 95 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
285

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT MIN( - 23 ) col0 FROM tab0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7066
SELECT DISTINCT MIN ( - 23 ) col0 FROM tab0
----
-23

query I rowsort
SELECT - col1 + col0 * - 36 AS col1 FROM tab2 WHERE NOT 81 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT ALL + col0 * + col2 + 36 FROM tab2 AS cor0
----
1094
2596
4386

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 32 IN ( - col1 * - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 57 col1 FROM tab1
----
11
2
39

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT + + col2 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL COUNT ( + ( 70 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < - 85 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT DISTINCT + COUNT( * ) + + 94 AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT + COUNT ( * ) + + 94 AS col1 FROM tab0
----
97

query I rowsort
SELECT DISTINCT + col2 + - col1 * - ( + 86 ) AS col2 FROM tab0
----
1816
185
7013

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

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE ( NOT 74 NOT IN ( - 72 ) )
----

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

query I rowsort
SELECT + + 17 + col2 + - + col1 AS col1 FROM tab2 AS cor0
----
-11
-20
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 88 >= + 71
----

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

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

query I rowsort
SELECT ALL + col0 + - - 80 FROM tab0
----
167
177
95

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + 63 ) * - ( col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - col2 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7090
SELECT DISTINCT - 42 - - CAST( - col2 AS SIGNED ) + - 80 DIV col2 FROM tab1 AS cor0
----
-102
-111
-138

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - 42 - - CAST ( - col2 AS INTEGER ) + - 80 / col2 FROM tab1 AS cor0
----
-102
-111
-138

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE NOT 48 IS NOT NULL AND - col0 IS NULL
----

query I rowsort
SELECT - 3 - - - col0 FROM tab0 AS cor0
----
-100
-18
-90

query I rowsort
SELECT - - col1 - - 80 AS col2 FROM tab2 AS cor0
----
131
147
157

query I rowsort
SELECT DISTINCT + 49 - + col1 AS col2 FROM tab2 AS cor0
----
-18
-2
-28

query I rowsort
SELECT 52 + 40 * col2 - - col1 AS col0 FROM tab2 AS cor0
----
1023
1729
2439

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

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

query II rowsort
SELECT ALL + 5 AS col0, 81 + - col2 AS col1 FROM tab0
----
5
-18
5
34
5
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col2 AS col1, 65 * + col2 - - 9 col1, + col2 AS col2 FROM tab2
----
9 values hashing to 673c14b44c91f63019593138713be298

query I rowsort
SELECT ALL - - 5 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT - - col2 * - 92 - ( - col0 ) AS col0 FROM tab2 cor0
----
-2070
-3616
-5261

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + + MAX( 83 ) FROM tab2 cor0
----
83

skipif mysql # not compatible
query I rowsort label-7103
SELECT + + MAX ( 83 ) FROM tab2 cor0
----
83

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( + col1 + col2 ) col2 FROM tab0 AS cor0 WHERE + col2 * - - col0 NOT BETWEEN + col1 AND col1
----
-100
-10368
-651

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

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

query II rowsort
SELECT ALL col2 * - 60, + col2 AS col1 FROM tab0
----
-2820
47
-5940
99
-600
10

query III rowsort
SELECT ALL * FROM tab2 WHERE - 48 <= + - col2 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * 76 * - - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 / 92 - - col2 + - col1 + - col1 + - col0 BETWEEN ( + 87 ) AND - 92 / - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT + ( SUM( ALL - ( - 83 ) ) ) col2 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT + ( SUM ( ALL - ( - 83 ) ) ) col2 FROM tab2 AS cor0
----
249

query I rowsort
SELECT - col1 * col0 - + col0 + - - ( col2 ) - - ( + col1 ) + + col1 * + 27 FROM tab1 cor0
----
-277
-2984
-311

query II rowsort
SELECT + col2 * + + 26 AS col1, 19 AS col1 FROM tab1 AS cor0
----
1534
19
1768
19
2496
19

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7115
SELECT + 7 DIV COUNT( * ) * + SUM( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-454

skipif mysql # not compatible
query I rowsort label-7115
SELECT + 7 / COUNT ( * ) * + SUM ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
-454

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT ALL col0 + col0 DIV + col0 + + + col1 FROM tab1
----
139
66
91

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL col0 + col0 / + col0 + + + col1 FROM tab1
----
139
66
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7125
SELECT DISTINCT + col2 * col1 DIV - + col1 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT + col2 * col1 / - + col1 AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + 65 + col0 AS col0 FROM tab0
----
152
162
80

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 NOT IN ( + col2 * col2, 33 / - 70 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7128
SELECT ALL col1 * - CAST( - col2 AS SIGNED ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL col1 * - CAST ( - col2 AS INTEGER ) FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7129
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7129
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col1 + - - 9 FROM tab1
----
14
23
56

query I rowsort
SELECT ( + col1 ) * - 59 + + 64 * + - col1 AS col1 FROM tab1 AS cor0
----
-1722
-5781
-615

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT - COUNT( + col2 ) * - 78 * + MAX( ALL + col0 ) FROM tab2
----
17550

skipif mysql # not compatible
query I rowsort label-7136
SELECT - COUNT ( + col2 ) * - 78 * + MAX ( ALL + col0 ) FROM tab2
----
17550

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT ALL + 37 DIV - col1 FROM tab0
----
-1
-37
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + 37 / - col1 FROM tab0
----
-1
-37
0

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

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL + MAX ( + 94 ) AS col2 FROM tab2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT - col2 DIV col2 col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT - col2 / col2 col0 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - col2 AS col0, + 57 FROM tab0
----
-10
57
-47
57
-99
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 6 col0, + col2 AS col1 FROM tab2 WHERE NOT 45 * col2 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - 41 * - - col2 AS col2 FROM tab2 cor0
----
-1640
-2378
-943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7144
SELECT DISTINCT ( + COUNT( * ) ) * 75 / - - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7146
SELECT ALL - - 59 DIV - + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2
-59
0

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - - 59 / - + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-2
-59
0

query I rowsort
SELECT ALL ( 41 ) * - + 96 FROM tab0
----
-3936
-3936
-3936

query I rowsort
SELECT ALL col1 + - col0 * + 26 FROM tab1
----
-1312
-2205
-2319

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7149
SELECT ALL + MAX ( ALL + col2 ) col1 FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 5 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT ( + + col2 ) DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7151
SELECT ( + + col2 ) / - col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - ( 57 ) BETWEEN 89 / - col2 - 7 + - - 62 AND ( - + ( - col1 ) )
----

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

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL MIN ( + + col1 ) / - + 17 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7154
SELECT COUNT( * ), - 89 * + 43 AS col1 FROM tab1 AS cor0
----
3
-3827

skipif mysql # not compatible
query II rowsort label-7154
SELECT COUNT ( * ), - 89 * + 43 AS col1 FROM tab1 AS cor0
----
3
-3827

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT ALL + 89 DIV + + col1 + 98 FROM tab0
----
102
187
99

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + 89 / + + col1 + 98 FROM tab0
----
102
187
99

query I rowsort
SELECT DISTINCT - 32 + + col2 * - - col0 AS col1 FROM tab2
----
1026
2528
4318

query I rowsort
SELECT ALL 21 + - 18 * 85 AS col0 FROM tab2
----
-1509
-1509
-1509

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col0 FROM tab0
----
0

query I rowsort
SELECT + - col0 + - + 46 * + - col2 AS col2 FROM tab2 AS cor0
----
1012
1776
2593

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7161
SELECT CAST( 55 AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7161
SELECT CAST ( 55 AS INTEGER ) / - col0 FROM tab2 AS cor0
----
-1
0
0

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( - ( + + 98 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7167
SELECT DISTINCT + COUNT( * ) col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7167
SELECT DISTINCT + COUNT ( * ) col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - - col2
----
85
5
59
91
47
68

query I rowsort
SELECT ALL col1 * 29 * + col0 FROM tab0 AS cor0
----
2813
35235
52983

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT - 75 * - 91 + - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
6825

skipif mysql # not compatible
query I rowsort label-7173
SELECT - 75 * - 91 + - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
6825

query II rowsort
SELECT + col2, ( + col2 ) AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT DISTINCT - 94 * + ( col2 ), + col1 FROM tab1 AS cor0
----
-5546
5
-6392
47
-9024
14

query II rowsort
SELECT ALL + 45 * col0 * 5, + 58 AS col2 FROM tab1 AS cor0
----
11475
58
19125
58
20475
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT SUM( - ( - 94 ) ) AS col2 FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-7178
SELECT SUM ( - ( - 94 ) ) AS col2 FROM tab2
----
282

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

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

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

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

query I rowsort
SELECT ALL ( - 87 ) FROM tab0
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 88 < - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + ( 59 ) + col0 AS col0 FROM tab0 AS cor0
----
146
156
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7185
SELECT ALL + 59 DIV 97 * 18 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL + 59 / 97 * 18 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT 89 + + COUNT( * ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7186
SELECT 89 + + COUNT ( * ) FROM tab1 AS cor0
----
92

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

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

query I rowsort
SELECT ALL col0 * ( col0 ) + - - 41 AS col1 FROM tab1
----
2642
7266
8322

query I rowsort
SELECT col2 * + - 90 FROM tab1
----
-5310
-6120
-8640

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7190
SELECT DISTINCT - SUM ( DISTINCT + col0 ) col0 FROM tab1
----
-227

query II rowsort
SELECT col1 / + 57 - - - col2 AS col1, - col1 AS col1 FROM tab0 WHERE NULL >= - col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT ALL + col2 + + CAST( - - col0 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + col2 + + CAST ( - - col0 AS INTEGER ) FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + col2 - - - col1 + - - col2 AS col2 FROM tab0
----
-1
13
197

query II rowsort
SELECT 48, - col0 AS col2 FROM tab0 AS cor0
----
48
-15
48
-87
48
-97

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + 45 + + 46 NOT BETWEEN - - col1 * - - 0 AND - - col0
----

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

skipif mysql # not compatible
query I rowsort label-7198
SELECT + ( 71 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) + 42 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( * ) * - 5 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( * ) * - 5 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + + 51 IS NULL
----
0

query I rowsort
SELECT DISTINCT - AVG ( ALL - col0 ) FROM tab1 AS cor0 WHERE col2 - - ( + + ( - + 23 ) ) BETWEEN + col2 / - - 72 * + 61 + + col1 + + ( + + col2 ) * - col2 AND - col0 * + col1
----
NULL

query I rowsort
SELECT - - 25 * + col2 AS col0 FROM tab1 cor0 WHERE NOT + 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT ALL 33 DIV + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL 33 / + - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col1 ) < col0
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT - - 46 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7206
SELECT AVG ( + col2 ) * + 36 / + + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + + col1 IS NOT NULL AND NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7206
SELECT AVG ( + col2 ) * + 36 / + + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + + col1 IS NOT NULL AND NULL < ( NULL )
----
NULL

query I rowsort
SELECT - ( - ( - - 68 ) ) FROM tab2 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL - MAX( - 56 ) AS col1 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - MAX ( - 56 ) AS col1 FROM tab1
----
56

query I rowsort
SELECT + 67 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT 91 * + + 83 FROM tab0 WHERE + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7211
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7212
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + + 91 - - CAST( NULL AS DECIMAL ) + + 44 / + 20 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7212
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + + 91 - - CAST ( NULL AS REAL ) + + 44 / + 20 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col1 + col1 col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7214
SELECT + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 * - col2 * col1 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT 70 + col2 + + col0 * + + col1 * - + 91 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 * + col2, col0 * col2 - 86 * - + col2 / - col2 )
----

query I rowsort
SELECT ALL 70 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
3584
5955
6417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7219
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT DISTINCT + 73 + - 82 * col0, 88 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1157
88
-7061
88
-7881
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT + - 14 - + + col1 + + col0 / + col1 - + 35 * + col2 * + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7221
SELECT + - 14 - + + col1 + + col0 / + col1 - + 35 * + col2 * + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT - col0 * + 10 - - 71 FROM tab1
----
-439
-779
-839

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT DISTINCT + 9 * + + COUNT( * ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-7224
SELECT DISTINCT + 9 * + + COUNT ( * ) AS col2 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT + col2 + 41 + col0 DIV - - 65 FROM tab2
----
100
64
81

skipif mysql # not compatible
query I rowsort label-7225
SELECT + col2 + 41 + col0 / - - 65 FROM tab2
----
100
64
81

query I rowsort
SELECT DISTINCT + 59 + + + 3 + + + col0 * - + col1 * col1 * - 58 FROM tab0
----
2225348
5688
5708132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 * + + col1 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL - ( - + 5 ) AS col0 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7230
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 48 * 10 + col1 AS col0 FROM tab2 AS cor0
----
NULL
531
NULL
547
NULL
557

skipif mysql # not compatible
query II rowsort label-7230
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 48 * 10 + col1 AS col0 FROM tab2 AS cor0
----
NULL
531
NULL
547
NULL
557

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7231
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7232
SELECT - 48, COUNT( * ) * - - 54 AS col2 FROM tab0 AS cor0
----
-48
162

skipif mysql # not compatible
query II rowsort label-7232
SELECT - 48, COUNT ( * ) * - - 54 AS col2 FROM tab0 AS cor0
----
-48
162

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7233
SELECT ALL - CAST( NULL AS SIGNED ), + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
query II rowsort label-7233
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
1173
NULL
3080
NULL
3886

query I rowsort
SELECT + col1 + ( - 99 ) AS col2 FROM tab1 AS cor0 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT - - SUM( + + ( - + col1 ) ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7235
SELECT - - SUM ( + + ( - + col1 ) ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + - 7 AS col0 FROM tab1 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT + MIN( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7237
SELECT + MIN ( DISTINCT + col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7239
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - CAST( - + col2 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7239
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - CAST ( - + col2 AS INTEGER ) <= NULL
----

query II rowsort
SELECT DISTINCT col0, 44 AS col1 FROM tab2 AS cor0
----
46
44
64
44
75
44

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL + COUNT( * ) + + 19 AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL + COUNT ( * ) + + 19 AS col1 FROM tab2
----
22

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 54 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
28
94

query I rowsort
SELECT ALL + ( - ( 62 ) ) FROM tab1 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + - - 67 * col2 col1 FROM tab0
----
1540
16236
3854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT DISTINCT + 70 + col1 - - col0 / + CAST( NULL AS SIGNED ) * + 83 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT DISTINCT + 70 + col1 - - col0 / + CAST ( NULL AS INTEGER ) * + 83 AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7248
SELECT ALL + col0 + - + CAST( - ( - - 2 ) AS SIGNED ) FROM tab1 AS cor0
----
53
87
93

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL + col0 + - + CAST ( - ( - - 2 ) AS INTEGER ) FROM tab1 AS cor0
----
53
87
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7249
SELECT - 51 DIV CAST( - col0 AS SIGNED ) - - 42 + - col2 - - col1 + + col0 * - - col0 AS col1 FROM tab0 cor0
----
304
7622
9353

skipif mysql # not compatible
query I rowsort label-7249
SELECT - 51 / CAST ( - col0 AS INTEGER ) - - 42 + - col2 - - col1 + + col0 * - - col0 AS col1 FROM tab0 cor0
----
304
7622
9353

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT DISTINCT - ( + + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - ( + + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ( + - col2 ) * ( + 90 ) + + 17 * + col0 AS col0 FROM tab1 AS cor0
----
-3865
-4573
-7773

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7252
SELECT DISTINCT CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7252
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT col0 * + + 60 AS col2 FROM tab0
----
5220
5820
900

query II rowsort
SELECT - col2 * col1, col0 FROM tab1
----
-1344
51
-295
85
-3196
91

query I rowsort
SELECT DISTINCT + 98 * + col2 FROM tab0
----
4606
9702
980

query I rowsort
SELECT ALL + 93 + + 74 - - - col0 FROM tab2
----
103
121
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT + col0 DIV + + col1 AS col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7257
SELECT + col0 / + + col1 AS col1 FROM tab1
----
1
17
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7258
SELECT ALL 92 DIV + - col1, + col0 * + 83 col1 FROM tab2
----
-1
3818
-1
5312
-1
6225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7258
SELECT ALL 92 / + - col1, + col0 * + 83 col1 FROM tab2
----
-1
3818
-1
5312
-1
6225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7259
SELECT - CAST( - 77 AS SIGNED ) - col0 AS col2 FROM tab1
----
-14
-8
26

skipif mysql # not compatible
query I rowsort label-7259
SELECT - CAST ( - 77 AS INTEGER ) - col0 AS col2 FROM tab1
----
-14
-8
26

query I rowsort
SELECT 60 - + + 68 FROM tab1
----
-8
-8
-8

query I rowsort
SELECT ALL + - 49 - + 16 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT - COUNT( * ) col0 FROM tab2 WHERE + 52 + - 55 / - + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7262
SELECT DISTINCT - COUNT ( * ) col0 FROM tab2 WHERE + 52 + - 55 / - + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT MIN( - 68 ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-7263
SELECT MIN ( - 68 ) FROM tab2
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * - 66 col1 FROM tab1
----
-2904
-2904
-2904

query I rowsort
SELECT ALL + col2 * + col0 * - col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT DISTINCT 99 DIV 96 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT 99 / 96 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7267
SELECT col1 DIV col2 * - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT col1 / col2 * - - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + col2 < col1
----

query I rowsort
SELECT - - col2 * 1 * - col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL ( 56 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col1 / col0 * + 19 * 79 / 83 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT + SUM( ALL 62 ) FROM tab1 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-7272
SELECT + SUM ( ALL 62 ) FROM tab1 AS cor0
----
186

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT DISTINCT col2 DIV - + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT col2 / - + col0 FROM tab0 AS cor0
----
-1
-3
0

query II rowsort
SELECT + col0, col0 FROM tab1 cor0
----
51
51
85
85
91
91

query II rowsort
SELECT DISTINCT col1 AS col1, 36 FROM tab0
----
1
36
21
36
81
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7276
SELECT 54 AS col1, MIN( - 84 ) FROM tab1
----
54
-84

skipif mysql # not compatible
query II rowsort label-7276
SELECT 54 AS col1, MIN ( - 84 ) FROM tab1
----
54
-84

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT DISTINCT 54 DIV + - col0 + 4 AS col1 FROM tab2
----
3
4

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT 54 / + - col0 + 4 AS col1 FROM tab2
----
3
4

query I rowsort
SELECT DISTINCT + 28 * - col0 + - 21 FROM tab1
----
-1449
-2401
-2569

query I rowsort
SELECT DISTINCT - col2 * - + col2 + + 13 + - 3 AS col1 FROM tab2 AS cor0
----
1610
3374
539

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE - + 60 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL ) IN ( col1, 90 + + + col0 ) )
----

query I rowsort
SELECT DISTINCT + 74 + + ( - 27 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
47

onlyif mysql # DIV for integer division: 
query II rowsort label-7284
SELECT + col0 - col1 DIV + col1, col2 FROM tab1 cor0
----
50
96
84
59
90
68

skipif mysql # not compatible
query II rowsort label-7284
SELECT + col0 - col1 / + col1, col2 FROM tab1 cor0
----
50
96
84
59
90
68

query I rowsort
SELECT col2 - + + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - + col2 - - - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT - 38 + - SUM( - 22 ) * + 81 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * 99 AND + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - 38 + - SUM ( - 22 ) * + 81 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 * 99 AND + + col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 48 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT + 58 + - + 27 AS col0 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT col0 + 98 AS col0 FROM tab0
----
113
185
195

onlyif mysql # DIV for integer division: 
query I rowsort label-7291
SELECT ALL - 32 DIV 16 AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - 32 / 16 AS col1 FROM tab1
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9, - col1 col0 FROM tab0
----
9
-1
9
-21
9
-81

query I rowsort
SELECT ALL + + 22 + + 82 / 7 + + 80 AS col2 FROM tab0 WHERE NOT col0 + + col1 + - col1 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT ALL COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-7294
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
3
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 20 * - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT col1 * - + col0 DIV - col0 + + + col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-7296
SELECT col1 * - + col0 / - col0 + + + col1 FROM tab2 AS cor0
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 * - 84 AS col0 FROM tab1 AS cor0
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT - COUNT( - col0 ) * + 2 AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-7299
SELECT - COUNT ( - col0 ) * + 2 AS col2 FROM tab2
----
-6

query I rowsort
SELECT + col0 * - - 17 FROM tab0 AS cor0
----
1479
1649
255

query I rowsort
SELECT - - ( - col1 ) * + - 3 AS col2 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT ALL - + 46 DIV - col0 - col1 AS col2 FROM tab2 AS cor0
----
-50
-67
-77

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL - + 46 / - col0 - col1 AS col2 FROM tab2 AS cor0
----
-50
-67
-77

query II rowsort
SELECT DISTINCT + + col1 * col2 AS col0, + col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab2 AS cor0
----
83

query III rowsort
SELECT * FROM tab0 WHERE + ( - col1 ) * 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT DISTINCT col1 + + + CAST( + - col1 AS SIGNED ) * + col1 + - - ( + + col1 ) FROM tab1
----
-15
-168
-2115

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT col1 + + + CAST ( + - col1 AS INTEGER ) * + col1 + - - ( + + col1 ) FROM tab1
----
-15
-168
-2115

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT - SUM( ALL + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT - SUM ( ALL + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT ALL 1 AS col1 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + 10 - - - 62 + col0 BETWEEN + ( - 12 ) + col2 AND NULL
----

query I rowsort
SELECT + 32 + - col2 + - 40 + + 61 FROM tab2
----
-5
13
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL SUM( + 65 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
585

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL SUM ( + 65 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
585

query I rowsort
SELECT - col1 * + col2 + - 55 FROM tab2
----
-1228
-3135
-3941

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7313
SELECT DISTINCT * FROM tab2 WHERE + + col1 / - col0 * + - CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7313
SELECT DISTINCT * FROM tab2 WHERE + + col1 / - col0 * + - CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT - col1 DIV - col0 + - + col1 * - col2 AS col0 FROM tab0 AS cor0
----
210
3812
99

skipif mysql # not compatible
query I rowsort label-7314
SELECT - col1 / - col0 + - + col1 * - col2 AS col0 FROM tab0 AS cor0
----
210
3812
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 33, + col1 + + - 90 col0 FROM tab2 AS cor0
----
33
-13
33
-23
33
-39

query I rowsort
SELECT ALL 68 AS col0 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + - col0 * + 60 - + 38 FROM tab1 AS cor0
----
-3098
-5138
-5498

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT + COUNT( * ) * - 88 AS col0 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-7318
SELECT + COUNT ( * ) * - 88 AS col0 FROM tab2
----
-264

query I rowsort
SELECT col2 * + - col0 * - col2 AS col1 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL - MAX( ALL + 82 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL - MAX ( ALL + 82 ) FROM tab1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT + CAST( NULL AS SIGNED ) * + + 68 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT + CAST ( NULL AS INTEGER ) * + + 68 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7322
SELECT MIN( + col0 ) * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7322
SELECT MIN ( + col0 ) * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT + MIN( + col0 ) AS col0 FROM tab0 WHERE NOT col2 < - 8
----
15

skipif mysql # not compatible
query I rowsort label-7323
SELECT + MIN ( + col0 ) AS col0 FROM tab0 WHERE NOT col2 < - 8
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + ( - col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT - 96 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

skipif mysql # not compatible
query I rowsort label-7325
SELECT - 96 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-87

query I rowsort
SELECT DISTINCT + col0 * + ( col1 ) FROM tab2 cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 col0 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( + + col1 ) * - col2 + + 90 FROM tab2 AS cor0
----
-1083
-2990
-3796

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL 13 DIV col1 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 13 / col1 FROM tab1 AS cor0
----
0
0
2

query II rowsort
SELECT ALL + col2, + 77 - - - 86 + ( - 90 ) FROM tab0 AS cor0
----
10
-99
47
-99
99
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT DISTINCT + 24 DIV + + COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT + 24 / + + COUNT ( * ) FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT DISTINCT 91 + + SUM( DISTINCT col0 ) FROM tab1
----
318

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT 91 + + SUM ( DISTINCT col0 ) FROM tab1
----
318

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7334
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7335
SELECT ALL - col2 + - - col0 * + 12 * col0, + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
31116
NULL
86641
NULL
99304
NULL

skipif mysql # not compatible
query II rowsort label-7335
SELECT ALL - col2 + - - col0 * + 12 * col0, + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
31116
NULL
86641
NULL
99304
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE - 35 IS NOT NULL
----
15
87
97

query I rowsort
SELECT col1 + - ( col0 ) AS col2 FROM tab2
----
-8
13
5

query I rowsort
SELECT ALL 75 + - + col0 FROM tab1
----
-10
-16
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 WHERE NULL = 5 AND NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL - SUM( - + col2 ) + - - 50 AS col0 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - SUM ( - + col2 ) + - - 50 AS col0 FROM tab2 AS cor0
----
171

query I rowsort
SELECT ALL + 78 - col2 AS col0 FROM tab2 AS cor0
----
20
38
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT + - ( + MAX( col2 ) ) - 46 FROM tab1 AS cor0
----
-142

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT + - ( + MAX ( col2 ) ) - 46 FROM tab1 AS cor0
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-7343
SELECT ALL + + MIN( + + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL + + MIN ( + + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 25 col1, - col2 FROM tab2
----
25
-23
25
-40
25
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7345
SELECT + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) * + 14 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7345
SELECT + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) * + 14 FROM tab0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col2, + 14 * col2 * + col0 col1 FROM tab1
----
59
70210
68
86632
96
68544

query I rowsort
SELECT ALL ( + + ( + 82 ) ) FROM tab0
----
82
82
82

query I rowsort
SELECT DISTINCT - 1 + - col0 - + col1 + - 1 / - ( - col1 ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT - + col1 BETWEEN - col1 AND + col0
----

query II rowsort
SELECT DISTINCT + col0, 84 AS col2 FROM tab2 WHERE NOT - + col0 IS NULL
----
46
84
64
84
75
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 64 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - 18
----

query II rowsort
SELECT ALL 46 AS col2, 26 + 80 FROM tab1 AS cor0
----
46
106
46
106
46
106

query II rowsort
SELECT - col2 AS col1, 40 FROM tab0 AS cor0
----
-10
40
-47
40
-99
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7355
SELECT DISTINCT CAST( + SUM( DISTINCT + col0 ) AS SIGNED ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT CAST ( + SUM ( DISTINCT + col0 ) AS INTEGER ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * + col0 - 47 col2 FROM tab1 AS cor0
----
1177
1993
2137

onlyif mysql # aggregate syntax: 
query II rowsort label-7358
SELECT + 82 * + + 67 + - COUNT( * ), 74 AS col1 FROM tab1 cor0
----
5491
74

skipif mysql # not compatible
query II rowsort label-7358
SELECT + 82 * + + 67 + - COUNT ( * ), 74 AS col1 FROM tab1 cor0
----
5491
74

query I rowsort
SELECT DISTINCT + 16 + 79 + + 70 * + col0 + - col1 FROM tab1 AS cor0
----
3651
6040
6418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + + - 41 col2 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT + col0 * - 21 * - - 59 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( col1 + + col2 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL + - SUM( DISTINCT - col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7362
SELECT ALL + - SUM ( DISTINCT - col2 ) col1 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 64 / - + col1 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7364
SELECT * FROM tab1 WHERE NULL > - ( + CAST( - - 39 AS SIGNED ) ) * + col2
----

skipif mysql # not compatible
query III rowsort label-7364
SELECT * FROM tab1 WHERE NULL > - ( + CAST ( - - 39 AS INTEGER ) ) * + col2
----

query II rowsort
SELECT col2 AS col1, + col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7366
SELECT ALL * FROM tab2 WHERE NOT - - CAST( col0 AS SIGNED ) NOT BETWEEN + 68 AND 5
----

skipif mysql # not compatible
query III rowsort label-7366
SELECT ALL * FROM tab2 WHERE NOT - - CAST ( col0 AS INTEGER ) NOT BETWEEN + 68 AND 5
----

query I rowsort
SELECT DISTINCT + col2 + - col1 * + - col0 FROM tab1
----
4345
484
810

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN col0 - + col2 - + 41 * - - 43 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - - COUNT( DISTINCT col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7369
SELECT - - COUNT ( DISTINCT col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + 97 * 23 + - + col1 - + - ( - 31 ) * col2 FROM tab1 AS cor0
----
-759
397
76

query I rowsort
SELECT ALL col1 * + 7 * - - ( + col2 ) + col1 - - col2 FROM tab0 cor0
----
1501
26777
793

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL < NULL )
----

query I rowsort
SELECT + 66 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - + 36 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - col2 * ( - col1 ) * - col1 * + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7377
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - col2 * ( - col1 ) * - col1 * + col2 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT + - SUM( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT + - SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 93 * ( - col0 ) + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT + - SUM( col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7380
SELECT + - SUM ( col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT 1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7383
SELECT ALL - ( - col2 ) * - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7383
SELECT ALL - ( - col2 ) * - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 57 * + 74 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 49 * - 85 > 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab2
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + - COUNT( * ) * 69 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7387
SELECT + - COUNT ( * ) * 69 FROM tab0 AS cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT DISTINCT MIN( - 36 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT MIN ( - 36 ) FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL - col0 * - col1 * - + col0 AS col1 FROM tab0
----
-158949
-18225
-9409

query II rowsort
SELECT 40 AS col0, 39 - - col2 * + col0 FROM tab1
----
40
4935
40
5054
40
6227

query III rowsort
SELECT * FROM tab0 WHERE + col1 * - 86 * - + 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + 73 * - ( COUNT( * ) ) FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-7392
SELECT + 73 * - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-219

query I rowsort
SELECT + + 20 * col2 * col2 FROM tab2 AS cor0
----
10580
32000
67280

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT - 91 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7394
SELECT - 91 / col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT - SUM( + - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT - SUM ( + - col0 ) FROM tab1
----
227

query I rowsort
SELECT ALL col2 * + + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - ( + 92 ) * ( + ( + - COUNT( * ) ) ) + + 71 FROM tab0
----
347

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - ( + 92 ) * ( + ( + - COUNT ( * ) ) ) + + 71 FROM tab0
----
347

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7398
SELECT * FROM tab1 WHERE - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7398
SELECT * FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - 23 FROM tab2
----
-17
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT DISTINCT + MAX( DISTINCT - 58 ) * - COUNT( * ) FROM tab2 WHERE NOT + - col2 IS NULL
----
174

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT + MAX ( DISTINCT - 58 ) * - COUNT ( * ) FROM tab2 WHERE NOT + - col2 IS NULL
----
174

query I rowsort
SELECT ALL + + 12 AS col0 FROM tab0 WHERE + 21 IS NULL
----

query I rowsort
SELECT DISTINCT - 75 - + col2 FROM tab1 AS cor0
----
-134
-143
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL + SUM( DISTINCT + 59 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7403
SELECT ALL + SUM ( DISTINCT + 59 ) col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT - SUM( - + 36 ) AS col0 FROM tab1 cor0
----
108

skipif mysql # not compatible
query I rowsort label-7404
SELECT - SUM ( - + 36 ) AS col0 FROM tab1 cor0
----
108

query II rowsort
SELECT + col1 + col1, - col2 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 77 > + - 60 + + 87
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + col0 * + 23 AS col0 FROM tab1 AS cor0
----
1173
1955
2093

query I rowsort
SELECT - ( 35 ) AS col0 FROM tab0 AS cor0
----
-35
-35
-35

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL BETWEEN + 88 AND - 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT ALL + - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7412
SELECT ALL + MIN( ALL col0 ) DIV - - 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + MIN ( ALL col0 ) / - - 57 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 51 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7414
SELECT DISTINCT + 92 DIV - + col1, col2 + 59 AS col2 FROM tab1
----
-1
127
-18
118
-6
155

skipif mysql # not compatible
query II rowsort label-7414
SELECT DISTINCT + 92 / - + col1, col2 + 59 AS col2 FROM tab1
----
-1
127
-18
118
-6
155

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT ALL - MAX( DISTINCT ( - + 32 ) ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL - MAX ( DISTINCT ( - + 32 ) ) AS col0 FROM tab0
----
32

query II rowsort
SELECT - col2 * col2 AS col2, - col2 FROM tab0
----
-100
-10
-2209
-47
-9801
-99

query I rowsort
SELECT DISTINCT + + 20 * - col1 * - - col2 FROM tab2 AS cor0
----
-23460
-61600
-77720

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT - 0 * + COUNT( - - col0 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7418
SELECT - 0 * + COUNT ( - - col0 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT ( col0 ) + + col0 * + 76 FROM tab0
----
1155
6699
7469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7421
SELECT + col1 AS col0, - col2 DIV + 14 FROM tab1
----
14
-6
47
-4
5
-4

skipif mysql # not compatible
query II rowsort label-7421
SELECT + col1 AS col0, - col2 / + 14 FROM tab1
----
14
-6
47
-4
5
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 9 col2, 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
18 values hashing to 110fced7fd594f625b3a9f3c383af0d4

query I rowsort
SELECT DISTINCT - - 3 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7424
SELECT + ( + + ( col2 ) ) * + col1 DIV + col1 + - ( 78 ) DIV - 81 + + col2 * - ( - col1 ) * + col0 + - col0, 55 - 74 AS col0 FROM tab0 AS cor0
----
18193
-19
57137
-19
9605
-19

skipif mysql # not compatible
query II rowsort label-7424
SELECT + ( + + ( col2 ) ) * + col1 / + col1 + - ( 78 ) / - 81 + + col2 * - ( - col1 ) * + col0 + - col0, 55 - 74 AS col0 FROM tab0 AS cor0
----
18193
-19
57137
-19
9605
-19

query I rowsort
SELECT - 90 + 81 AS col2 FROM tab1 cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7426
SELECT + + CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7426
SELECT + + CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - col1 AS col2 FROM tab0 AS cor0 WHERE col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7428
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST( + col2 AS DECIMAL ) * + col1 AND + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7428
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - CAST ( + col2 AS REAL ) * + col1 AND + CAST ( - col0 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + 72 col1 FROM tab2 AS cor0
----
-21
-5
5

query I rowsort
SELECT + col0 + + col0 * + - 35 - col1 AS col1 FROM tab0 AS cor0
----
-2979
-3299
-591

query I rowsort
SELECT - 57 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - - col0 * - - col0 + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7432
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + - col1 > - CAST( NULL AS SIGNED ) + + + col1
----

skipif mysql # not compatible
query III rowsort label-7432
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * + - col1 > - CAST ( NULL AS INTEGER ) + + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7433
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) + - + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7433
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) + - + col1 IS NOT NULL
----

query II rowsort
SELECT ( - + col0 ), col0 FROM tab0 WHERE NULL IS NULL
----
-15
15
-87
87
-97
97

query II rowsort
SELECT + col0 AS col0, + col1 + + col0 FROM tab2
----
46
97
64
141
75
142

query I rowsort
SELECT - 96 FROM tab0 WHERE + + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL MAX( 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL MAX ( 21 ) FROM tab0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT + 82 DIV + col1 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-7438
SELECT + 82 / + col1 - + col1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT ALL - 66 + col1 * + 85 - col0 FROM tab2 AS cor0
----
4223
5554
6415

query I rowsort
SELECT ALL AVG ( DISTINCT + 73 ) FROM tab1 cor0 WHERE NULL = - col0 * + 7
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7441
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN 59 AND - - 60 + - col2 - - col2 * CAST( - col1 AS SIGNED ) + + - col2 / + - col1 + col1 / + col1 - - 22 )
----

skipif mysql # not compatible
query III rowsort label-7441
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL BETWEEN 59 AND - - 60 + - col2 - - col2 * CAST ( - col1 AS INTEGER ) + + - col2 / + - col1 + col1 / + col1 - - 22 )
----

query I rowsort
SELECT ALL col2 * - 60 FROM tab2 AS cor0
----
-1380
-2400
-3480

query II rowsort
SELECT ALL + - col0, col2 + - 78 AS col1 FROM tab2 AS cor0
----
-46
-55
-64
-38
-75
-20

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 23 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7445
SELECT SUM( DISTINCT - col1 ) DIV - MIN( ALL col1 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-7445
SELECT SUM ( DISTINCT - col1 ) / - MIN ( ALL col1 ) FROM tab1
----
13

query I rowsort
SELECT - 93 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT - 56 DIV col2 * + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT - 56 / col2 * + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 + - - col2
----

query I rowsort
SELECT ALL + - 52 * col1 - - + 64 AS col0 FROM tab0 AS cor0
----
-1028
-4148
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7450
SELECT + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - 25 * + - 49 AS col1 FROM tab0 AS cor0
----
1225
1225
1225

query I rowsort
SELECT - ( - - ( - + 76 ) ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT 24 * - 39 FROM tab1
----
-936
-936
-936

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL + 53 * - 40 + + COUNT( * ) AS col2 FROM tab0
----
-2117

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL + 53 * - 40 + + COUNT ( * ) AS col2 FROM tab0
----
-2117

query I rowsort
SELECT - 72 * - col1 AS col1 FROM tab0 WHERE NOT NULL > - - 97 - - col2
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - 75 FROM tab0
----
-10
-75
-47
-75
-99
-75

query I rowsort
SELECT 65 * - col1 FROM tab1
----
-3055
-325
-910

query II rowsort
SELECT + col2 AS col0, 67 FROM tab2
----
23
67
40
67
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT DISTINCT COUNT( * ) * - + 30 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT COUNT ( * ) * - + 30 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-90

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT + MIN( col1 ) col2 FROM tab2 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7461
SELECT DISTINCT + MIN ( col1 ) col2 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT - - 80 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7462
SELECT - - 80 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT col1 + - 83 FROM tab2
----
-16
-32
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT - MIN( col0 ) * + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-7464
SELECT - MIN ( col0 ) * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-153

query I rowsort
SELECT + 1 * col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT - 35 * COUNT( * ) AS col0 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-7466
SELECT - 35 * COUNT ( * ) AS col0 FROM tab1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + MIN( ALL + 13 ) - MIN( + col1 + 91 ) AS col1 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-7467
SELECT + MIN ( ALL + 13 ) - MIN ( + col1 + 91 ) AS col1 FROM tab2
----
-129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - col0
----

query I rowsort
SELECT - col0 FROM tab1 WHERE 51 < NULL
----

query I rowsort
SELECT ALL ( col1 ) * 5 FROM tab2
----
255
335
385

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT DISTINCT + COUNT( * ) + - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT ( NULL ) IN ( + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7471
SELECT DISTINCT + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT ( NULL ) IN ( + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT CAST( NULL AS SIGNED ) + + 86 FROM tab2 WHERE NULL NOT IN ( - 51 + col1 )
----

skipif mysql # not compatible
query I rowsort label-7472
SELECT CAST ( NULL AS INTEGER ) + + 86 FROM tab2 WHERE NULL NOT IN ( - 51 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT DISTINCT - COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7473
SELECT DISTINCT - COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE 11 NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT + 84 DIV - col2 AS col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-7475
SELECT + 84 / - col2 AS col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE ( + col0 ) BETWEEN - 22 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7477
SELECT DISTINCT 84 DIV MIN( DISTINCT col2 ) col0 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7477
SELECT DISTINCT 84 / MIN ( DISTINCT col2 ) col0 FROM tab0
----
8

query I rowsort
SELECT ALL - 18 + col1 FROM tab1
----
-13
-4
29

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 WHERE NULL IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT - ( MAX( DISTINCT + col2 ) ) + COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7481
SELECT - ( MAX ( DISTINCT + col2 ) ) + COUNT ( * ) FROM tab0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 AND - col2
----

query I rowsort
SELECT - col2 * 89 AS col1 FROM tab1
----
-5251
-6052
-8544

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7485
SELECT DISTINCT + ( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT + ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / ( CAST( col0 AS SIGNED ) ) = ( col1 * CAST( col2 AS SIGNED ) + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-7486
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / ( CAST ( col0 AS INTEGER ) ) = ( col1 * CAST ( col2 AS INTEGER ) + col0 )
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 9 + - col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT 75 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
84

skipif mysql # not compatible
query I rowsort label-7488
SELECT 75 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 col2 FROM tab0 AS cor0 WHERE - col2 - 76 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT DISTINCT COUNT( DISTINCT + 47 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7490
SELECT DISTINCT COUNT ( DISTINCT + 47 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT - COUNT( * ) * + ( - 28 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - COUNT ( * ) * + ( - 28 ) FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7492
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * 29 NOT BETWEEN ( CAST( + col1 AS SIGNED ) ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-7492
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * 29 NOT BETWEEN ( CAST ( + col1 AS INTEGER ) ) AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7493
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL > ( - CAST( NULL AS DECIMAL ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-7493
SELECT col1 FROM tab2 AS cor0 WHERE NOT NULL > ( - CAST ( NULL AS REAL ) * + col2 )
----

query I rowsort
SELECT ALL - 65 * + col0 AS col0 FROM tab0 AS cor0
----
-5655
-6305
-975

query I rowsort
SELECT + col1 * + 87 FROM tab1 cor0
----
1218
4089
435

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 1 * + 59 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 / col1 ) <= ( + col2 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 * + ( ( - col1 ) * 25 ) AS col0 FROM tab0 AS cor0
----
-2475
-5250
-95175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7499
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 76 * - 7 FROM tab2 AS cor0
----
-532

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + COUNT( DISTINCT col2 ) * + 11 col1 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7502
SELECT ALL + COUNT ( DISTINCT col2 ) * + 11 col1 FROM tab2 AS cor0
----
33

query I rowsort
SELECT - 18 * + 63 AS col0 FROM tab1 AS cor0
----
-1134
-1134
-1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7504
SELECT 62 DIV COUNT( * ) FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7504
SELECT 62 / COUNT ( * ) FROM tab1 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 > - 17 - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE col2 * 99 > - col0 + col1 * 63
----
14
47
5

query I rowsort
SELECT ALL col2 + + - col0 AS col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT 93 * + col2 * 10 FROM tab2
----
21390
37200
53940

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + COUNT( * ) FROM tab2 WHERE ( - 63 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT + COUNT ( * ) FROM tab2 WHERE ( - 63 ) NOT BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7511
SELECT AVG ( - - 1 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7511
SELECT AVG ( - - 1 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT - COUNT( * ) * ( AVG ( + 77 ) ) FROM tab2 AS cor0 WHERE NULL <> ( 11 + col1 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT - COUNT ( * ) * ( AVG ( + 77 ) ) FROM tab2 AS cor0 WHERE NULL <> ( 11 + col1 * + col1 )
----
NULL

query I rowsort
SELECT col0 * - - 99 FROM tab1 AS cor0
----
5049
8415
9009

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 ) NOT IN ( + 55 * col0 + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > - 77
----

query I rowsort
SELECT ALL + ( - + 61 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 92 = 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + COUNT( * ) + + 89 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-7518
SELECT + COUNT ( * ) + + 89 FROM tab0
----
92

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT MAX( + 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-7520
SELECT MAX ( + 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
6

query I rowsort
SELECT + + 92 * - 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fcef346e7f28f18dfc11cf66b5db962d

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( 1 + 14 )
----

query I rowsort
SELECT + - col1 + 86 AS col1 FROM tab1 AS cor0
----
39
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT - 22 - + COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT - 22 - + COUNT ( * ) FROM tab2 AS cor0
----
-25

query I rowsort
SELECT DISTINCT + 83 FROM tab2 AS cor0 WHERE - 29 IS NULL
----

query I rowsort
SELECT ALL + + col1 - + col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT 14 - + - col1 AS col0 FROM tab1 AS cor0
----
19
28
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7528
SELECT DISTINCT - col1 * + col0 * + CAST( NULL AS SIGNED ) / col2 + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - col1 * + col0 * + CAST ( NULL AS INTEGER ) / col2 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 54 * col1 * col2 * - + col2 AS col0 FROM tab1
----
-11735712
-6967296
-939870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT MAX( ALL + - 58 ) - - 29 + + + ( + CAST( NULL AS SIGNED ) ) * 17 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT MAX ( ALL + - 58 ) - - 29 + + + ( + CAST ( NULL AS INTEGER ) ) * 17 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT DISTINCT 81 + - 54 + + MAX( col1 ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT 81 + - 54 + + MAX ( col1 ) FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col1 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT MAX( + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7534
SELECT MAX ( + col0 ) FROM tab0
----
97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7536
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - + col1 * - - col0 AS col0, - 12 FROM tab0 AS cor0
----
-1215
-12
-1827
-12
-97
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + COUNT( DISTINCT + 58 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + COUNT ( DISTINCT + 58 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - SUM( DISTINCT + + col1 ) / + - 73 AS col1 FROM tab2 WHERE NOT NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT - SUM ( DISTINCT + + col1 ) / + - 73 AS col1 FROM tab2 WHERE NOT NULL >= ( NULL )
----
NULL

query I rowsort
SELECT ALL ( + 45 ) AS col2 FROM tab0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7541
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-7541
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-7542
SELECT ALL col0, - col2 DIV + - 11 AS col0 FROM tab2
----
46
2
64
3
75
5

skipif mysql # not compatible
query II rowsort label-7542
SELECT ALL col0, - col2 / + - 11 AS col0 FROM tab2
----
46
2
64
3
75
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7543
SELECT DISTINCT - 8 * - CAST( NULL AS SIGNED ) + + + 64 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - 8 * - CAST ( NULL AS INTEGER ) + + + 64 + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT - + SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - + SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7545
SELECT + SUM( - - ( 30 ) ) DIV 86 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT + SUM ( - - ( 30 ) ) / 86 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 - + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 ) < col0 / + col1
----
85
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 + - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7549
SELECT 85 AS col2, + COUNT( * ) + - ( 34 ) AS col0 FROM tab2
----
85
-31

skipif mysql # not compatible
query II rowsort label-7549
SELECT 85 AS col2, + COUNT ( * ) + - ( 34 ) AS col0 FROM tab2
----
85
-31

query II rowsort
SELECT ALL + 47 * - + ( + + 62 ) + col1 AS col2, col2 AS col1 FROM tab2
----
-2837
40
-2847
58
-2863
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NULL >= 27 / + 15
----
0

skipif mysql # not compatible
query I rowsort label-7551
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NULL >= 27 / + 15
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 48 col1 FROM tab1
----
1
34
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + 8 ) BETWEEN NULL AND + ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, col2 + col2 col0 FROM tab0
----
15
94
87
20
97
198

query I rowsort
SELECT col2 FROM tab2 WHERE + - 52 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * - + 48 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT - col0 * + col0 + - 62 + + CAST( - 16 AS SIGNED ) FROM tab0 cor0
----
-303
-7647
-9487

skipif mysql # not compatible
query I rowsort label-7557
SELECT - col0 * + col0 + - 62 + + CAST ( - 16 AS INTEGER ) FROM tab0 cor0
----
-303
-7647
-9487

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT DISTINCT - col1 DIV - col1 AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN 20 + - col2 + - - col0 AND + 90
----
1

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - col1 / - col1 AS col2 FROM tab1 WHERE NOT + col2 NOT BETWEEN 20 + - col2 + - - col0 AND + 90
----
1

query I rowsort
SELECT DISTINCT col1 + - - 49 FROM tab1
----
54
63
96

query I rowsort
SELECT 10 * col0 AS col0 FROM tab0
----
150
870
970

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + COUNT( * ) + + - SUM( + + col0 ) + + 49 AS col1 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + COUNT ( * ) + + - SUM ( + + col0 ) + + 49 AS col1 FROM tab0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT DISTINCT MIN( ALL - + col0 ) - + 17 AS col0 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT MIN ( ALL - + col0 ) - + 17 AS col0 FROM tab1
----
-108

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 4 AND ( 88 * - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT + 53 DIV + + col2 - - 48 col2 FROM tab1 AS cor0
----
48
48
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7564
SELECT + 53 / + + col2 - - 48 col2 FROM tab1 AS cor0
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7565
SELECT ALL - - 56 - col1 DIV + col2 FROM tab0 AS cor0
----
54
55
56

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - - 56 - col1 / + col2 FROM tab0 AS cor0
----
54
55
56

query I rowsort
SELECT + 18 - + ( + + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-28
-46
-57

query I rowsort
SELECT col0 * col0 + - + 0 + col2 AS col2 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT DISTINCT 79 - - 74 + - 41 + - - 28 * + - col0 FROM tab2 AS cor0
----
-1176
-1680
-1988

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL - CAST( NULL AS SIGNED ) - - 86 - - col2 * + + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - CAST ( NULL AS INTEGER ) - - 86 - - col2 * + + 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 33 col2 FROM tab2
----
1518
2112
2475

query I rowsort
SELECT ALL col2 * 78 FROM tab0
----
3666
7722
780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col1 FROM tab0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7574
SELECT * FROM tab1 WHERE NOT + CAST( + 29 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7574
SELECT * FROM tab1 WHERE NOT + CAST ( + 29 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT DISTINCT 36, COUNT( * ) AS col0 FROM tab1 AS cor0
----
36
3

skipif mysql # not compatible
query II rowsort label-7575
SELECT DISTINCT 36, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
36
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7576
SELECT - col0 AS col0, col1 + - - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-7576
SELECT - col0 AS col0, col1 + - - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col2, 69 col1 FROM tab1 AS cor0
----
-14
69
-47
69
-5
69

query I rowsort
SELECT ALL + 91 + col0 AS col0 FROM tab1 AS cor0
----
142
176
182

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - ( - col0 ) * - col1 + - col0 + col0 - - + col1 * + 56 * - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - - ( + - COUNT( * ) ) + - + 65 AS col0 FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7581
SELECT - - ( + - COUNT ( * ) ) + - + 65 AS col0 FROM tab0 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT - MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT - MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 40 * - col0 * col2 + ( col1 ) * - - col2 AS col2 FROM tab1 cor0
----
197184
200895
250716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + + + col1 col1 FROM tab1
----
17
50
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7585
SELECT ( + CAST( NULL AS SIGNED ) ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT ( + CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab2 WHERE + + col0 * + 54 / 27 BETWEEN col2 AND + 42 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT - 28 * - MIN( - col2 ) AS col2 FROM tab1
----
-2688

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - 28 * - MIN ( - col2 ) AS col2 FROM tab1
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT - 23 + - + COUNT( * ) FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - 23 + - + COUNT ( * ) FROM tab0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT - MAX( - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7589
SELECT - MAX ( - col1 ) AS col1 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT DISTINCT col0 + + + col0 DIV - col1 + + col1 AS col2 FROM tab0
----
1
104
96

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT col0 + + + col0 / - col1 + + col1 AS col2 FROM tab0
----
1
104
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7591
SELECT + 39 AS col2, MAX( 69 ) + - ( + 55 ) AS col1 FROM tab1
----
39
14

skipif mysql # not compatible
query II rowsort label-7591
SELECT + 39 AS col2, MAX ( 69 ) + - ( + 55 ) AS col1 FROM tab1
----
39
14

query III rowsort
SELECT * FROM tab2 WHERE - + col1 - + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 73 FROM tab1
----
124
158
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT - SUM( + 2 ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7594
SELECT - SUM ( + 2 ) FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7595
SELECT DISTINCT col2 DIV col0 + + col0 + - col1 col2 FROM tab1 AS cor0
----
38
44
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7595
SELECT DISTINCT col2 / col0 + + col0 + - col1 col2 FROM tab1 AS cor0
----
38
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT + MIN( ALL + - 54 ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7596
SELECT + MIN ( ALL + - 54 ) FROM tab2 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT + - COUNT( col1 ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT + - COUNT ( col1 ) AS col0 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 87 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - SUM( + 49 ) FROM tab0 WHERE NOT ( NOT ( + ( + 43 ) * col0 + + ( - + col0 ) ) IS NOT NULL ) OR ( + col1 ) IS NULL
----
-147

skipif mysql # not compatible
query I rowsort label-7599
SELECT - SUM ( + 49 ) FROM tab0 WHERE NOT ( NOT ( + ( + 43 ) * col0 + + ( - + col0 ) ) IS NOT NULL ) OR ( + col1 ) IS NULL
----
-147

query II rowsort
SELECT ALL 9 * - ( + 60 ) + 47 AS col0, 82 FROM tab0
----
-493
82
-493
82
-493
82

query I rowsort
SELECT + + 52 * col0 AS col1 FROM tab0 AS cor0
----
4524
5044
780

query I rowsort
SELECT ( - 26 ) AS col2 FROM tab2 AS cor0
----
-26
-26
-26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 79 * col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT ALL 51 * - - COUNT( * ) col2 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7604
SELECT ALL 51 * - - COUNT ( * ) col2 FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + 9 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + 9 IS NOT NULL
----
-9

query I rowsort
SELECT DISTINCT 6 * + + col1 FROM tab2
----
306
402
462

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL + - MAX( ALL + col2 ) FROM tab2 WHERE ( 40 * - + col1 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL + - MAX ( ALL + col2 ) FROM tab2 WHERE ( 40 * - + col1 IS NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT - ( + ( 59 ) ) AS col2 FROM tab2
----
-59
-59
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7610
SELECT + 88 - + col1 * - - CAST( NULL AS SIGNED ) * + + col1 * - col1, col2 * + 93 FROM tab1 WHERE NOT col2 + - col0 + + + 35 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7610
SELECT + 88 - + col1 * - - CAST ( NULL AS INTEGER ) * + + col1 * - col1, col2 * + 93 FROM tab1 WHERE NOT col2 + - col0 + + + 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT MIN( - 3 ) * COUNT( * ) * - 59 AS col2 FROM tab1 AS cor0
----
531

skipif mysql # not compatible
query I rowsort label-7612
SELECT MIN ( - 3 ) * COUNT ( * ) * - 59 AS col2 FROM tab1 AS cor0
----
531

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - 32 <= + ( 95 ) + + - col2
----

query II rowsort
SELECT + ( + 32 ), col1 + + 21 FROM tab1 AS cor0 WHERE NOT NULL < - 91 + - col0 + + col1 + - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + col0 + col0 IS NULL
----

query I rowsort
SELECT ALL - col2 * + col1 + - 78 AS col2 FROM tab0 AS cor0
----
-177
-288
-3885

query I rowsort
SELECT DISTINCT ( + + 1 ) FROM tab2
----
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 33 = - - 64
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - - ( + - col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT DISTINCT - - 94 * + - COUNT( * ) col2 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7620
SELECT DISTINCT - - 94 * + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-282

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7621
SELECT + + CAST( + col2 AS DECIMAL ) col2 FROM tab2 AS cor0 WHERE - 5 / + 73 / + - col1 * + CAST( NULL AS SIGNED ) = - 95
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7621
SELECT + + CAST ( + col2 AS REAL ) col2 FROM tab2 AS cor0 WHERE - 5 / + 73 / + - col1 * + CAST ( NULL AS INTEGER ) = - 95
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 70, - 72 - col2 col2 FROM tab2 AS cor0
----
70
-112
70
-130
70
-95

query I rowsort
SELECT ALL - 0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + - COUNT( * ) * + - 52 * + + ( + COUNT( * ) ) FROM tab1 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-7624
SELECT + - COUNT ( * ) * + - 52 * + + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col1 - + - 69 + 21, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col1 - + - 69 + 21, col2 )
----
0

query I rowsort
SELECT 32 AS col2 FROM tab0 cor0
----
32
32
32

query I rowsort
SELECT ALL + 91 + + 87 FROM tab0 AS cor0
----
178
178
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT ALL - + COUNT( * ) DIV - 19 - - - 60 col2 FROM tab0 WHERE 77 IS NOT NULL
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7628
SELECT ALL - + COUNT ( * ) / - 19 - - - 60 col2 FROM tab0 WHERE 77 IS NOT NULL
----
-60

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 0 BETWEEN NULL AND + - 14
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL - 62 * - SUM( 80 ) AS col1 FROM tab0
----
14880

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL - 62 * - SUM ( 80 ) AS col1 FROM tab0
----
14880

query I rowsort
SELECT col1 + + col1 + col2 FROM tab0
----
101
209
52

query I rowsort
SELECT - ( col0 ) + 91 FROM tab2
----
16
27
45

query I rowsort
SELECT DISTINCT - 40 FROM tab2 WHERE + 32 IS NOT NULL
----
-40

query I rowsort
SELECT 13 AS col2 FROM tab0 WHERE - - 2 IS NOT NULL
----
13
13
13

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col2 * 8 + col2 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 > + 2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 47 / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 66 ) + - 90 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL + 81 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL + MIN( + 23 ) FROM tab0 AS cor0 WHERE 66 - - 45 IN ( 29, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + MIN ( + 23 ) FROM tab0 AS cor0 WHERE 66 - - 45 IN ( 29, col1 )
----
NULL

query II rowsort
SELECT ALL + 58 AS col0, + ( - - col0 ) FROM tab0 AS cor0
----
58
15
58
87
58
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL - - COUNT( + col0 ) * + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + COUNT( ALL + 72 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL - - COUNT ( + col0 ) * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + COUNT ( ALL + 72 ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( - 63 ) AS col2 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT - - CAST( SUM( DISTINCT - + 52 ) AS SIGNED ) FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT - - CAST ( SUM ( DISTINCT - + 52 ) AS INTEGER ) FROM tab2 AS cor0
----
-52

query I rowsort
SELECT ALL + col1 * - 27 FROM tab1 AS cor0
----
-1269
-135
-378

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7647
SELECT DISTINCT + col1 * + col2 * - + CAST( NULL AS SIGNED ) AS col1, 85 + + 41 FROM tab1 AS cor0
----
NULL
126

skipif mysql # not compatible
query II rowsort label-7647
SELECT DISTINCT + col1 * + col2 * - + CAST ( NULL AS INTEGER ) AS col1, 85 + + 41 FROM tab1 AS cor0
----
NULL
126

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT COUNT( + 8 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7648
SELECT COUNT ( + 8 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 68 * + + col0 col0 FROM tab2 AS cor0
----
-3128
-4352
-5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 37 AS col1, + 90 col0 FROM tab1
----
37
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT DISTINCT - MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7651
SELECT DISTINCT - MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < ( - col1 * + + 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + 17 AS col1 FROM tab0
----
15
17
87
17
97
17

query I rowsort
SELECT col0 * - 53 FROM tab2
----
-2438
-3392
-3975

onlyif mysql # DIV for integer division: 
query I rowsort label-7655
SELECT ALL + + col1 DIV ( + ( col1 ) ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL + + col1 / ( + ( col1 ) ) FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT col1 AS col2, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT DISTINCT + 50 + COUNT( * ) AS col1 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + 50 + COUNT ( * ) AS col1 FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT + COUNT( * ) + - + 81 FROM tab1 WHERE NULL >= NULL
----
-81

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + COUNT ( * ) + - + 81 FROM tab1 WHERE NULL >= NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT COUNT( * ) FROM tab0 WHERE - ( col0 ) <= - col2
----
1

skipif mysql # not compatible
query I rowsort label-7659
SELECT COUNT ( * ) FROM tab0 WHERE - ( col0 ) <= - col2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( col0 ) ) + - col1 col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT 96 + - col2 AS col1 FROM tab2 AS cor0
----
38
56
73

query I rowsort
SELECT col1 * - col1 + + 84 + + 19 AS col1 FROM tab2 AS cor0
----
-2498
-4386
-5826

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 / + 84 * + col2 AND + + 96 * + + 39 * 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 23 <= NULL
----

query I rowsort
SELECT + col1 + col2 + - + col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7666
SELECT DISTINCT + col0 DIV - col0 - - col2 FROM tab2 cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + col0 / - col0 - - col2 FROM tab2 cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL + - COUNT( + - col2 ) + - 34 + + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + - COUNT ( + - col2 ) + - 34 + + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-28

query I rowsort
SELECT ALL col1 * 61 AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
2867
305
854

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT ALL + MIN( + + 9 ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + MIN ( + + 9 ) AS col2 FROM tab2
----
9

query I rowsort
SELECT DISTINCT + col0 + - 32 AS col2 FROM tab0
----
-17
55
65

query I rowsort
SELECT DISTINCT 95 + col1 AS col1 FROM tab0
----
116
176
96

query I rowsort
SELECT ALL - 45 - + 92 + - + 95 + + col2 * + col1 FROM tab1
----
1112
2964
63

query III rowsort
SELECT * FROM tab0 WHERE - + 70 > - + ( col1 )
----
15
81
47

query I rowsort
SELECT DISTINCT - col0 * + col1 + + 72 + 59 * 66 FROM tab1
----
-311
3252
3541

onlyif mysql # DIV for integer division: 
query I rowsort label-7675
SELECT col1 - + col1 DIV col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-7675
SELECT col1 - + col1 / col2 FROM tab2
----
49
66
76

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IS NULL AND 74 * - col1 + + col2 >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT SUM( col2 ) * + 18 AS col0 FROM tab2
----
2178

skipif mysql # not compatible
query I rowsort label-7678
SELECT SUM ( col2 ) * + 18 AS col0 FROM tab2
----
2178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 13 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 31 FROM tab1 cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT - - MAX( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - - MAX ( ALL + col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + - 73 FROM tab0 AS cor0 WHERE ( col1 ) NOT BETWEEN NULL AND 55
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT DISTINCT - 69 * + MAX( DISTINCT - - col0 ) AS col1 FROM tab0 cor0
----
-6693

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - 69 * + MAX ( DISTINCT - - col0 ) AS col1 FROM tab0 cor0
----
-6693

query II rowsort
SELECT ALL 68, 66 FROM tab0 AS cor0 WHERE NULL < - col2 * - col1
----

query I rowsort
SELECT DISTINCT + 0 * + col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col1 FROM tab1 cor0
----
59
59
59

query I rowsort
SELECT - 34 AS col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-34
-34
-34

query II rowsort
SELECT + col0, - col2 * col2 AS col2 FROM tab1
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT - col2 * 14 * + + col2 FROM tab0
----
-137214
-1400
-30926

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col2 * - 62 FROM tab0 WHERE NULL < 85
----

query I rowsort
SELECT ALL + 45 * - col1 AS col1 FROM tab1
----
-2115
-225
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT - COUNT( ALL - ( + 36 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7693
SELECT - COUNT ( ALL - ( + 36 ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + 46 * + + 4 FROM tab1
----
184
184
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab1 WHERE + col2 / + col0 BETWEEN NULL AND + + col2
----

query I rowsort
SELECT ALL - + 76 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( ( - col0 ) ) + + col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT - 75 * COUNT( * ) FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - 75 * COUNT ( * ) FROM tab0 AS cor0
----
-225

query I rowsort
SELECT - + 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7700
SELECT DISTINCT SUM( - 29 ) + - + CAST( NULL AS SIGNED ) * - + COUNT( * ) col2, + ( + COUNT( * ) ) FROM tab0 cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7700
SELECT DISTINCT SUM ( - 29 ) + - + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col2, + ( + COUNT ( * ) ) FROM tab0 cor0
----
NULL
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7701
SELECT - col1 DIV - + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7701
SELECT - col1 / - + col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT DISTINCT + 56 - - col1 - - col0 AS col2 FROM tab2 AS cor0
----
153
197
198

query I rowsort
SELECT - col0 * + 7 - - col2 + 89 + - + col2 FROM tab2 AS cor0
----
-233
-359
-436

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + + MIN( col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT + + MIN ( col0 ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 + + col1 * - - col1 * - col1 AS col2 FROM tab0 AS cor0
----
-2
-531522
-9282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * - ( - - col0 ) col1 FROM tab2
----
-2070
-4032
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT - 67 * COUNT( * ) FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT - 67 * COUNT ( * ) FROM tab2
----
-201

query I rowsort
SELECT col0 + - 68 + + 36 * - 81 * col2 * col0 FROM tab2
----
-12684593
-3085150
-7464964

query I rowsort
SELECT 88 - - 2 FROM tab0 cor0 WHERE col2 * col1 / + 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT - 26 * + COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7712
SELECT - 26 * + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + - col1 / col1 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT 33 * COUNT( * ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7715
SELECT 33 * COUNT ( * ) FROM tab2
----
99

query II rowsort
SELECT + col0, + col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7717
SELECT ALL 27 AS col0, + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
27
3

skipif mysql # not compatible
query II rowsort label-7717
SELECT ALL 27 AS col0, + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
27
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 35 col0, + ( + - col0 ) col1 FROM tab1 AS cor0
----
35
-51
35
-85
35
-91

query II rowsort
SELECT - col0, col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT DISTINCT + col1 AS col1, col2 * + ( + ( col2 ) ) AS col1 FROM tab2 cor0
----
51
529
67
3364
77
1600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col0 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT DISTINCT 10 * + CAST( - + col2 AS SIGNED ) FROM tab0
----
-100
-470
-990

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT 10 * + CAST ( - + col2 AS INTEGER ) FROM tab0
----
-100
-470
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT - COUNT( * ) DIV - - ( + - 23 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7723
SELECT - COUNT ( * ) / - - ( + - 23 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT 31 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
31
31
31

query I rowsort
SELECT ( + col1 ) * - - col0 + 65 AS col2 FROM tab2 AS cor0
----
2411
4993
5090

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - ( col2 ) BETWEEN ( - + 65 - - col0 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT - 5 + + + COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7727
SELECT - 5 + + + COUNT ( * ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - - 73 * - 52 + - - ( + 86 ) AS col1 FROM tab1 AS cor0
----
-3710
-3710
-3710

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - COUNT( * ) * + COUNT( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - COUNT ( * ) * + COUNT ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT * FROM tab2 WHERE + - 44 * + col1 * 28 + - col2 = NULL
----

query I rowsort
SELECT DISTINCT - 56 * - - 37 AS col0 FROM tab0
----
-2072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * + col1 + - col2 * + + col2 col2 FROM tab2
----
-3946
-6759
-7853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7733
SELECT DISTINCT COUNT( * ) DIV + + 80 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT COUNT ( * ) / + + 80 AS col0 FROM tab2
----
0

query I rowsort
SELECT col0 - col1 * + 94 + + + 9 FROM tab2
----
-4739
-6214
-7165

query I rowsort
SELECT col2 - 2 FROM tab0
----
45
8
97

query I rowsort
SELECT 0 - + col1 * - 48 * + col0 FROM tab0
----
4656
58320
87696

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - 16 - - 59 + + + 15 * 53 + + + COUNT( * ) AS col2 FROM tab2
----
841

skipif mysql # not compatible
query I rowsort label-7737
SELECT - 16 - - 59 + + + 15 * 53 + + + COUNT ( * ) AS col2 FROM tab2
----
841

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT ALL COUNT( * ) + - + COUNT( * ) AS col0, - COUNT( * ) FROM tab1
----
0
-3

skipif mysql # not compatible
query II rowsort label-7738
SELECT ALL COUNT ( * ) + - + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab2 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT ALL CAST( - col1 AS SIGNED ) * - - 1 col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7741
SELECT ALL CAST ( - col1 AS INTEGER ) * - - 1 col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL - 71 * - 82 + + - ( - - col1 ) * 55 + + col1 AS col1 FROM tab1 AS cor0 WHERE + 80 > - col2 + - col0
----
3284
5066
5552

query I rowsort
SELECT DISTINCT + + 3 AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 61 < 47 * + 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 60 * col2 * - col2 FROM tab2
----
201840
31740
96000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7746
SELECT + CAST( - - COUNT( * ) AS SIGNED ) + 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-7746
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) + 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

query I rowsort
SELECT - 1 * + 7 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT - ( + 99 ) / + + col0 - + + col0 FROM tab1 WHERE NOT - col2 * col1 * + - col2 IS NOT NULL
----

query I rowsort
SELECT 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + ( - - COUNT( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7750
SELECT + ( - - COUNT ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7751
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

query I rowsort
SELECT ( - ( col2 ) ) FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 18 + - col0 * - col2 FROM tab1
----
4878
4997
6170

query II rowsort
SELECT DISTINCT 79, 57 AS col1 FROM tab2
----
79
57

query II rowsort
SELECT col0 AS col0, - col2 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT COUNT( DISTINCT col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7756
SELECT COUNT ( DISTINCT col1 ) FROM tab2
----
3

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 35 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT - 44 * - + col1 + ( 60 ) - ( - - 27 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 44 * - + col1 + ( 60 ) - ( - - 27 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - ( + 82 ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT + ( + + 67 ) + 54 * 71 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3901

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7763
SELECT CAST( NULL AS SIGNED ) - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7763
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 + + - ( + col0 ) AND - col2 + - 13
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7765
SELECT - COUNT( * ) - - COUNT( * ), + 50 AS col1 FROM tab2 AS cor0
----
0
50

skipif mysql # not compatible
query II rowsort label-7765
SELECT - COUNT ( * ) - - COUNT ( * ), + 50 AS col1 FROM tab2 AS cor0
----
0
50

query I rowsort
SELECT DISTINCT + - col2 * - col0 - + - 39 FROM tab0 AS cor0
----
744
909
9642

query I rowsort
SELECT DISTINCT 53 * + col1 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT ALL + col1 * + col0 + - - col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT MIN( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL > ( 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT MIN ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NULL > ( 84 )
----
NULL

query I rowsort
SELECT - 26 + - 93 FROM tab2
----
-119
-119
-119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT 66 DIV - + COUNT( * ) AS col2 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT 66 / - + COUNT ( * ) AS col2 FROM tab1
----
-22

query I rowsort
SELECT ALL + 55 * - + 71 FROM tab1
----
-3905
-3905
-3905

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT ALL - 77 DIV + + 17 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - 77 / + + 17 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - + 6 * - - 82 + col1 AS col0 FROM tab1 AS cor0
----
-445
-478
-487

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT DISTINCT + - COUNT( * ) * + 63 FROM tab0 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT + - COUNT ( * ) * + 63 FROM tab0 cor0
----
-189

onlyif mysql # DIV for integer division: 
query II rowsort label-7776
SELECT ALL col1, + 37 * - col1 DIV + - ( col1 ) - - col1 + - col1 FROM tab1
----
14
37
47
37
5
37

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL col1, + 37 * - col1 / + - ( col1 ) - - col1 + - col1 FROM tab1
----
14
37
47
37
5
37

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - ( - 24 ) * 8 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT DISTINCT col2 * + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT col2 * + CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT - 64 * 93 AS col2 FROM tab2 AS cor0
----
-5952
-5952
-5952

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT - 32 DIV - col1 FROM tab1 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-7780
SELECT - 32 / - col1 FROM tab1 AS cor0
----
0
2
6

query I rowsort
SELECT DISTINCT + - col0 * - + 79 AS col2 FROM tab1 AS cor0
----
4029
6715
7189

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - COUNT( * ) * - 70 + + ( - 15 ) - + - 62 FROM tab1 AS cor0
----
257

skipif mysql # not compatible
query I rowsort label-7784
SELECT - COUNT ( * ) * - 70 + + ( - 15 ) - + - 62 FROM tab1 AS cor0
----
257

onlyif mysql # DIV for integer division: 
query I rowsort label-7785
SELECT DISTINCT col0 DIV - + 8 AS col1 FROM tab1
----
-10
-11
-6

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT col0 / - + 8 AS col1 FROM tab1
----
-10
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT 70 + COUNT( * ) AS col1 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT 70 + COUNT ( * ) AS col1 FROM tab2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7787
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) + - COUNT( * ) FROM tab2 WHERE 67 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7787
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) + - COUNT ( * ) FROM tab2 WHERE 67 IS NOT NULL
----
NULL
0

query I rowsort
SELECT + ( + 13 ) AS col1 FROM tab0
----
13
13
13

onlyif mysql # DIV for integer division: 
query II rowsort label-7789
SELECT ALL col2 DIV - 23 AS col0, 43 * col2 FROM tab0 AS cor0
----
-2
2021
-4
4257
0
430

skipif mysql # not compatible
query II rowsort label-7789
SELECT ALL col2 / - 23 AS col0, 43 * col2 FROM tab0 AS cor0
----
-2
2021
-4
4257
0
430

query I rowsort
SELECT DISTINCT col0 * + + 62 * - + col0 + + col1 FROM tab1 AS cor0
----
-161248
-447945
-513375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col0 FROM tab0 cor0
----
-67
-67
-67

query I rowsort
SELECT 73 + col0 AS col2 FROM tab1
----
124
158
164

query II rowsort
SELECT DISTINCT + ( col0 ) - + col0, + col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT ALL - ( - col2 ) * col1 + 71 + + 56 * - + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-4591
-5262
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL + 19 * - COUNT( * ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + 19 * - COUNT ( * ) FROM tab2 AS cor0
----
-57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + - col2 + col0, - col1 + + col1 * col2 )
----

query I rowsort
SELECT ALL col0 - + col1 * + 55 FROM tab2 AS cor0
----
-2759
-3610
-4171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 + - col0 IN ( col2, col1, - ( 99 ) + - - col0, 72, - - col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
-15
-87
-97

query I rowsort
SELECT - col2 * - 55 * + col1 FROM tab0
----
11550
209385
5445

onlyif mysql # DIV for integer division: 
query II rowsort label-7802
SELECT - 63 DIV + 63 AS col2, - col1 + col1 + - col1 DIV - col2 FROM tab1
----
-1
0
-1
0
-1
0

skipif mysql # not compatible
query II rowsort label-7802
SELECT - 63 / + 63 AS col2, - col1 + col1 + - col1 / - col2 FROM tab1
----
-1
0
-1
0
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT 0 * - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT 0 * - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT - 9 * + COUNT( * ) col1, - 16 * MIN( + col0 ) FROM tab1
----
-27
-816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7804
SELECT - 9 * + COUNT ( * ) col1, - 16 * MIN ( + col0 ) FROM tab1
----
-27
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col0 FROM tab1 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT SUM( ALL + 0 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT SUM ( ALL + 0 ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT DISTINCT 10 + + MIN( ALL + ( - - col2 ) ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-7807
SELECT DISTINCT 10 + + MIN ( ALL + ( - - col2 ) ) FROM tab1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT DISTINCT - + 32 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT - + 32 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT col2 * + - col0 + col1 - 23 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + - col2 * - 46 * + col1 FROM tab0 AS cor0
----
175122
4554
9660

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT + COUNT( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7811
SELECT + COUNT ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT + ( - + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7812
SELECT + ( - + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col0, + 35 AS col2 FROM tab1
----
-51
35
-85
35
-91
35

query I rowsort
SELECT + col0 * - 46 + + + 40 FROM tab0
----
-3962
-4422
-650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7815
SELECT DISTINCT + 17 AS col0, MIN( - col0 ) + CAST( NULL AS SIGNED ) col1 FROM tab1
----
17
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7815
SELECT DISTINCT + 17 AS col0, MIN ( - col0 ) + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
17
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT col2 DIV - + 56 + - 19 * + + col2 col1 FROM tab0
----
-1882
-190
-893

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7816
SELECT col2 / - + 56 + - 19 * + + col2 col1 FROM tab0
----
-1882
-190
-893

query III rowsort
SELECT * FROM tab0 WHERE ( 76 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE + - col1 <> + 8 * col0
----
-3

skipif mysql # not compatible
query I rowsort label-7818
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE + - col1 <> + 8 * col0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - 96 col1 FROM tab1
----
155
164
192

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - - 35 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - ( + - ( + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7822
SELECT - ( + - ( + COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT DISTINCT MAX( ALL - 16 ) AS col0 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7823
SELECT DISTINCT MAX ( ALL - 16 ) AS col0 FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT 31 + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7824
SELECT DISTINCT 31 + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT ALL SUM( + + col0 ) AS col1, ( - COUNT( * ) ) AS col1 FROM tab1
----
227
-3

skipif mysql # not compatible
query II rowsort label-7825
SELECT ALL SUM ( + + col0 ) AS col1, ( - COUNT ( * ) ) AS col1 FROM tab1
----
227
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7826
SELECT DISTINCT - col0 * - + 57 * col2 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT - col0 * - + 57 * col2 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL - ( + - COUNT( * ) ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - ( + - COUNT ( * ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT COUNT( 79 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT COUNT ( 79 ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 19 AS col2, - 7 col1 FROM tab1
----
19
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 19 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7832
SELECT 69 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT 69 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, 88 * col1 AS col0 FROM tab0 AS cor0
----
1
88
21
1848
81
7128

onlyif mysql # DIV for integer division: 
query I rowsort label-7834
SELECT + 26 * + col0 * - col1 + - col1 DIV - + col0 + - 37 AS col1 FROM tab0 AS cor0
----
-2559
-31622
-47539

skipif mysql # not compatible
query I rowsort label-7834
SELECT + 26 * + col0 * - col1 + - col1 / - + col0 + - 37 AS col1 FROM tab0 AS cor0
----
-2559
-31622
-47539

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT + + COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7835
SELECT + + COUNT ( - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - MAX( + - 99 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7836
SELECT - MAX ( + - 99 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + - 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT + col0 * - ( - col2 ) FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + COUNT( 93 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7839
SELECT + COUNT ( 93 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT 43 + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-7840
SELECT 43 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 25 + + col1 col0, - col2 * + col2 * - 53 AS col2 FROM tab2
----
102
84800
76
28037
92
178292

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7842
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NOT + 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NOT + 65 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col1 - + 54 + - col1 FROM tab2 AS cor0
----
2496
4368
5798

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7844
SELECT ALL - - MIN( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL - - MIN ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7845
SELECT DISTINCT - 88 DIV + col1, col0 AS col1 FROM tab0 AS cor0
----
-1
15
-4
87
-88
97

skipif mysql # not compatible
query II rowsort label-7845
SELECT DISTINCT - 88 / + col1, col0 AS col1 FROM tab0 AS cor0
----
-1
15
-4
87
-88
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT COUNT( * ) + 69 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7847
SELECT COUNT ( * ) + 69 FROM tab1 AS cor0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 47 + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7849
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 + + + 20 AS col1 FROM tab2 AS cor0
----
-26
-44
-55

query I rowsort
SELECT ALL - - 96 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT DISTINCT 25 + - 62 + + - 61 + col1 * + 64 * ( col2 ) AS col2 FROM tab2
----
197022
248606
74974

query II rowsort
SELECT col0, col2 * + col2 AS col0 FROM tab0
----
15
2209
87
100
97
9801

query I rowsort
SELECT DISTINCT ( + + 60 ) + - col2 FROM tab0
----
-39
13
50

query II rowsort
SELECT - col0 AS col2, 2 FROM tab1
----
-51
2
-85
2
-91
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - + ( + + col0 ) col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE NOT col2 * - col0 + - col1 + 99 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT + 30 + MAX( DISTINCT 41 ) col0 FROM tab1
----
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7858
SELECT + 30 + MAX ( DISTINCT 41 ) col0 FROM tab1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7859
SELECT ALL 50 DIV - - COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL 50 / - - COUNT ( * ) FROM tab2
----
16

query I rowsort
SELECT 57 - + 83 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL MIN( + 95 ) AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL MIN ( + 95 ) AS col0 FROM tab1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT ALL + + COUNT( * ) - + 64 DIV - + ( 37 ) + - + 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + + COUNT ( * ) - + 64 / - + ( 37 ) + - + 38 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col2 col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL + MIN( 20 ) AS col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL + MIN ( 20 ) AS col2 FROM tab2 AS cor0
----
20

query II rowsort
SELECT DISTINCT - col0 AS col2, col2 * - + col2 * 30 + + ( - col1 ) FROM tab0 AS cor0
----
-15
-66351
-87
-3021
-97
-294031

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT ALL + col2 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + col2 / + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7867
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, col0 col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7867
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, col0 col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT SUM( - 7 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-7868
SELECT SUM ( - 7 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) = NULL
----

query II rowsort
SELECT + col1, 82 FROM tab0 AS cor0
----
1
82
21
82
81
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7871
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + + CAST( NULL AS SIGNED ) AND - col2 + + - 93
----

skipif mysql # not compatible
query III rowsort label-7871
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND - col2 + + - 93
----

query I rowsort
SELECT 41 * + 20 FROM tab2
----
820
820
820

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT COUNT( DISTINCT ( + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7873
SELECT COUNT ( DISTINCT ( + col1 ) ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 62 ) * 9 col0, col0 col1 FROM tab1
----
-558
51
-558
85
-558
91

query I rowsort
SELECT 90 * + col1 FROM tab0
----
1890
7290
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 col1 FROM tab0 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT + - 42 + - col2 + - - 15 / col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT + - 42 + - col2 + - - 15 / col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 72 * 8 + + - 9 - - 82 + + + col0 FROM tab2
----
-428
-439
-457

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL + SUM( ALL + - 80 ) AS col2 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL + SUM ( ALL + - 80 ) AS col2 FROM tab1 AS cor0
----
-240

query I rowsort
SELECT DISTINCT + col1 + + + col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 47 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 66 <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col2, + 7 col1 FROM tab2 AS cor0
----
23
7
40
7
58
7

query I rowsort
SELECT DISTINCT - 28 + + ( - col0 ) FROM tab1 AS cor0
----
-113
-119
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT + + ( 40 ) + COUNT( * ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7887
SELECT + + ( 40 ) + COUNT ( * ) FROM tab0 AS cor0
----
43

query I rowsort
SELECT ALL ( + - ( - ( - + 30 ) ) ) * + col1 * - col0 AS col2 FROM tab1
----
12750
128310
21420

query I rowsort
SELECT ALL + 78 AS col0 FROM tab1 WHERE NOT - col2 / col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7890
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) * + col1 + ( + - ( + + col1 ) ) / + col0 BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7890
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + col1 + ( + - ( + + col1 ) ) / + col0 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - + 98 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7892
SELECT * FROM tab2 AS cor0 WHERE ( 73 * - CAST( NULL AS SIGNED ) * + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7892
SELECT * FROM tab2 AS cor0 WHERE ( 73 * - CAST ( NULL AS INTEGER ) * + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - - 38 * - MAX( col2 ) FROM tab0 cor0
----
-3762

skipif mysql # not compatible
query I rowsort label-7893
SELECT - - 38 * - MAX ( col2 ) FROM tab0 cor0
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT + MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7894
SELECT + MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + - col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL SUM( DISTINCT - - 21 ) FROM tab0, tab2 cor0
----
21

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL SUM ( DISTINCT - - 21 ) FROM tab0, tab2 cor0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT + - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7898
SELECT + - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + 96 * + - col2 AS col1 FROM tab2 AS cor0
----
1168032
18730752
6144000

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT DISTINCT - 24 DIV - col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7900
SELECT DISTINCT - 24 / - col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7901
SELECT DISTINCT + col1 col0, col2 / CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7901
SELECT DISTINCT + col1 col0, col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT ALL col0, + col0 * - 13 FROM tab1
----
51
-663
85
-1105
91
-1183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 * - col0 * - col1 + col2, + 33 col1 FROM tab0
----
18280
33
57152
33
9702
33

query II rowsort
SELECT + ( + + 76 ) * + - col0 - 23 AS col1, col0 AS col2 FROM tab1
----
-3899
51
-6483
85
-6939
91

query I rowsort
SELECT col0 * - + 28 FROM tab1 AS cor0
----
-1428
-2380
-2548

query I rowsort
SELECT - - ( + + 20 ) FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT + MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7907
SELECT + MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab0 cor0
----
-1
-21
-81

query II rowsort
SELECT ALL + col1, + 79 AS col0 FROM tab2 AS cor0
----
51
79
67
79
77
79

query I rowsort
SELECT DISTINCT + 24 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + + col0 + - col1 col2 FROM tab1 WHERE ( - 6 ) * + col2 + col2 + - ( - + 79 ) / ( - 62 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT - + CAST( NULL AS SIGNED ) + - + SUM( col0 ) * + 29 + - MIN( - + col2 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT - + CAST ( NULL AS INTEGER ) + - + SUM ( col0 ) * + 29 + - MIN ( - + col2 ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT - 60 + + 21, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-39
3

skipif mysql # not compatible
query II rowsort label-7913
SELECT - 60 + + 21, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-39
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 <= + ( + 46 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab1 AS cor0 WHERE NOT - col0 <> - + ( + - 90 ) * - + col1
----

query I rowsort
SELECT ALL - 61 - - col1 * - 19 * + col0 FROM tab1 AS cor0
----
-13627
-81324
-8136

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7917
SELECT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7917
SELECT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT + 52 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7918
SELECT + 52 / + col2 FROM tab2
----
0
1
2

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT 12 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
225
7569
9409

query I rowsort
SELECT col1 - + ( - col0 ) + col0 + - col0 * + + 87 + + col1 FROM tab2 AS cor0
----
-3808
-5286
-6241

onlyif mysql # DIV for integer division: 
query I rowsort label-7922
SELECT ( col2 ) DIV 81 - - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7922
SELECT ( col2 ) / 81 - - col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 AS cor0 WHERE ( col0 ) * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT ALL + COUNT( ALL 24 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL + COUNT ( ALL 24 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT + 68 * - COUNT( * ) FROM tab1 WHERE ( + 72 * + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7925
SELECT + 68 * - COUNT ( * ) FROM tab1 WHERE ( + 72 * + col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT + MIN( 39 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-7926
SELECT + MIN ( 39 ) FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT + MIN( col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7927
SELECT + MIN ( col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT + 78 - col1 FROM tab1
----
31
64
73

query I rowsort
SELECT + ( col0 ) * + col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query I rowsort
SELECT ALL 73 FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 >= + col1 * col0 + + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + 43 FROM tab2
----
101
66
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab0
----
79
79
79

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 BETWEEN ( + col2 * 47 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 * 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL MIN( DISTINCT - col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL MIN ( DISTINCT - col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col1 IS NULL
----

query I rowsort
SELECT DISTINCT 52 * + col2 FROM tab0 WHERE + col1 + col2 * col0 > - col0 * col2
----
2444
5148
520

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + 80
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7946
SELECT ALL 63 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL 63 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT - col1 + col1 * - col2 AS col0 FROM tab1 cor0
----
-1358
-300
-3243

query I rowsort
SELECT 79 + col2 * 57 AS col1 FROM tab0 cor0
----
2758
5722
649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT ALL + 13 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + 13 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 71 + col0 AS col0 FROM tab2 AS cor0
----
117
135
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL CAST( NULL AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7951
SELECT ALL CAST ( NULL AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL - CAST( + col1 AS SIGNED ) * 82 - col1 * col1 FROM tab2 AS cor0
----
-12243
-6783
-9983

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL - CAST ( + col1 AS INTEGER ) * 82 - col1 * col1 FROM tab2 AS cor0
----
-12243
-6783
-9983

query I rowsort
SELECT + col2 + col0 FROM tab0 AS cor0 WHERE col1 / col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 BETWEEN ( NULL ) AND + col2 + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 42 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 + 58 col1 FROM tab2 cor0
----
152
152
152

query I rowsort
SELECT + + col0 * + col0 + col0 FROM tab0 AS cor0
----
240
7656
9506

query I rowsort
SELECT DISTINCT + 34 + + col0 + col2 FROM tab2
----
103
138
167

query I rowsort
SELECT col2 * + 25 + col0 * col0 FROM tab2
----
2691
5096
7075

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = col2 * + 35 + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL COUNT( * ) + + - 69 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL COUNT ( * ) + + - 69 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT col0 * col0 * - 59 + + 84 FROM tab0
----
-13191
-446487
-555047

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 53 FROM tab0 AS cor0
----
-1113
-4293
-53

query I rowsort
SELECT ALL - ( 4 ) FROM tab2 AS cor0
----
-4
-4
-4

query II rowsort
SELECT ALL col0 AS col1, col0 * 29 + - ( col0 ) FROM tab1
----
51
1428
85
2380
91
2548

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT ( + - SUM( ALL - + 89 ) ) FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT ( + - SUM ( ALL - + 89 ) ) FROM tab2
----
267

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT - 10 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7971
SELECT - 10 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col1 * ( 91 ) FROM tab0 AS cor0
----
-1911
-7371
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7973
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + col1 >= + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7973
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + col1 >= + CAST ( - col2 AS REAL )
----

query II rowsort
SELECT DISTINCT + col1 AS col1, - 19 + + + col2 + 40 * col0 FROM tab1 AS cor0
----
14
2117
47
3689
5
3440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7975
SELECT + - 39 DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7975
SELECT + - 39 / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + - MIN( - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7976
SELECT + - MIN ( - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7977
SELECT DISTINCT + col1 DIV + col0 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-22
-39
-58

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT + col1 / + col0 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-22
-39
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-7978
SELECT DISTINCT - - col1 DIV + 94 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - - col1 / + 94 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7979
SELECT - 81 DIV - + COUNT( * ) - - + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-7979
SELECT - 81 / - + COUNT ( * ) - - + COUNT ( * ) FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7980
SELECT col2 * + col0 + CAST( col0 AS SIGNED ) * ( + 67 * + 92 ) FROM tab2 AS cor0
----
284602
397056
466650

skipif mysql # not compatible
query I rowsort label-7980
SELECT col2 * + col0 + CAST ( col0 AS INTEGER ) * ( + 67 * + 92 ) FROM tab2 AS cor0
----
284602
397056
466650

query I rowsort
SELECT - col0 AS col0 FROM tab2 cor0 WHERE NOT + col1 IN ( col0 )
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > ( 48 + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT + - COUNT( * ) + - + 6 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7983
SELECT + - COUNT ( * ) + - + 6 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT + col2 + 58 AS col0 FROM tab2 AS cor0
----
116
81
98

query I rowsort
SELECT + 33 + + 56 FROM tab0
----
89
89
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7986
SELECT DISTINCT + CAST( + CAST( + COUNT( * ) AS DECIMAL ) AS SIGNED ) * 3 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + CAST ( + CAST ( + COUNT ( * ) AS REAL ) AS INTEGER ) * 3 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + col2 col0 FROM tab1
----
5605
6460
9120

query II rowsort
SELECT ALL col0 + 58, col0 FROM tab2
----
104
46
122
64
133
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - - col1
----

query I rowsort
SELECT 20 - col2 FROM tab1 WHERE NULL IN ( + - 98 + + 83 * col2 )
----

query I rowsort
SELECT DISTINCT + 93 + + + col0 FROM tab2 AS cor0
----
139
157
168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 + - - 89 * + col0 ) < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 71 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT DISTINCT - + 2 DIV - + col0 * - 28 + - - col1 + ( col0 ) FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - + 2 / - + col0 * - 28 + - - col1 + ( col0 ) FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( + col1, col2 + 47 + - col1 * col1 )
----

query I rowsort
SELECT ALL - ( + - col2 ) * + 55 + + col2 * - col0 + col1 * 12 FROM tab1
----
-1710
-1884
552

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL 73 + - ( - COUNT( * ) ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL 73 + - ( - COUNT ( * ) ) FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7998
SELECT col2 AS col2 FROM tab1 WHERE + 61 NOT BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7998
SELECT col2 AS col2 FROM tab1 WHERE + 61 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT + MAX( ALL + 28 ) + - + 37 DIV ( 20 ) AS col1 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-7999
SELECT + MAX ( ALL + 28 ) + - + 37 / ( 20 ) AS col1 FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT - 93 * - CAST( NULL AS SIGNED ) + + - 1 + + - col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT - 93 * - CAST ( NULL AS INTEGER ) + + - 1 + + - col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 57 + - col1 AS col1 FROM tab0
----
-24
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + COUNT( - 88 ) + + COUNT( + - col2 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + COUNT ( - 88 ) + + COUNT ( + - col2 ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( - + 43 ) * + 4 * - 21 + - 81 * 29 ) IN ( + 91 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT - MAX( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8004
SELECT - MAX ( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + col1 + - - col0 AS col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8007
SELECT + COUNT( * ) + 78 AS col0 FROM tab0 AS cor0 WHERE col2 * CAST( 2 AS SIGNED ) IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-8007
SELECT + COUNT ( * ) + 78 AS col0 FROM tab0 AS cor0 WHERE col2 * CAST ( 2 AS INTEGER ) IS NOT NULL
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - COUNT( * ) FROM tab1 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT - COUNT ( * ) FROM tab1 WHERE NOT NULL <= ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) BETWEEN - 36 + - col2 AND ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8011
SELECT DISTINCT - 83 AS col2, COUNT( * ) FROM tab2
----
-83
3

skipif mysql # not compatible
query II rowsort label-8011
SELECT DISTINCT - 83 AS col2, COUNT ( * ) FROM tab2
----
-83
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( + ( - col2 ), 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL + MIN( ALL - 64 ) FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + MIN ( ALL - 64 ) FROM tab2
----
-64

query II rowsort
SELECT DISTINCT 40 AS col0, - 98 + col2 FROM tab0
----
40
-51
40
-88
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT - COUNT( * ) * - COUNT( * ) col0 FROM tab1, tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8015
SELECT - COUNT ( * ) * - COUNT ( * ) col0 FROM tab1, tab0 AS cor0
----
81

query I rowsort
SELECT ALL - ( - + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 FROM tab0 cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8018
SELECT DISTINCT + 25 * - CAST( + + 3 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT + 25 * - CAST ( + + 3 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT COUNT( * ) * - + 2 AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8019
SELECT COUNT ( * ) * - + 2 AS col0 FROM tab1
----
-6

query I rowsort
SELECT + - col2 * + + 58 AS col2 FROM tab1 WHERE NOT ( - col1 ) < col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8021
SELECT DISTINCT + CAST( + 90 AS SIGNED ) AS col2, - COUNT( * ) * + MIN( DISTINCT + 73 ) + COUNT( * ) AS col2 FROM tab1
----
90
-216

skipif mysql # not compatible
query II rowsort label-8021
SELECT DISTINCT + CAST ( + 90 AS INTEGER ) AS col2, - COUNT ( * ) * + MIN ( DISTINCT + 73 ) + COUNT ( * ) AS col2 FROM tab1
----
90
-216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + 83 ) NOT BETWEEN ( NULL ) AND col2 * 58 - + 47 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col1 * + 32 * - col2 * - - 11 - + + col0 AND ( + col1 * - 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - ( + 72 ) - - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 79 AS col1 FROM tab0 cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col0 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT + col1 * 16 * + 38 * + col1 FROM tab1 AS cor0 WHERE NOT ( + col0 IS NULL )
----
119168
1343072
15200

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE + 45 > ( - 95 )
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( - col2 ) IS NULL )
----

query II rowsort
SELECT DISTINCT 83 AS col0, - 27 AS col0 FROM tab1
----
83
-27

query II rowsort
SELECT ALL - col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 56 * + - col0 AS col2 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT ALL - 47 + - col1 FROM tab2
----
-114
-124
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, - ( + col2 ) + + col1 AS col2 FROM tab0
----
1
-98
21
11
81
34

query I rowsort
SELECT DISTINCT + 14 + - col2 AS col0 FROM tab2
----
-26
-44
-9

query I rowsort
SELECT DISTINCT - col1 + - ( - col0 ) FROM tab0
----
-66
66
96

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NULL <= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT DISTINCT + - 14 AS col1, + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-14
9

skipif mysql # not compatible
query II rowsort label-8038
SELECT DISTINCT + - 14 AS col1, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-14
9

query I rowsort
SELECT 31 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + - 5 * + 54 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-270

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( - 25 + - + ( col0 ) ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, col0 FROM tab0 AS cor0 WHERE col0 * + - 99 + - col1 IS NOT NULL
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 52 + - - col0 + - col2 col2 FROM tab0 AS cor0
----
-4447
-5046
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT + + 26 * + - COUNT( * ) * + + COUNT( * ) + + - 4 AS col1 FROM tab0 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-8044
SELECT + + 26 * + - COUNT ( * ) * + + COUNT ( * ) + + - 4 AS col1 FROM tab0 AS cor0
----
-238

query I rowsort
SELECT - + 34 * + 16 * + col2 FROM tab0 AS cor0
----
-25568
-53856
-5440

query II rowsort
SELECT col1 AS col2, - 23 FROM tab0
----
1
-23
21
-23
81
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8047
SELECT DISTINCT - COUNT( * ) DIV - 44 * - ( + - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT DISTINCT - COUNT ( * ) / - 44 * - ( + - COUNT ( * ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8048
SELECT - ( - ( + CAST( + COUNT( * ) AS SIGNED ) ) ) * COUNT( - + 69 ), 67 * - - 96 * 33 + - SUM( 13 + col2 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8048
SELECT - ( - ( + CAST ( + COUNT ( * ) AS INTEGER ) ) ) * COUNT ( - + 69 ), 67 * - - 96 * 33 + - SUM ( 13 + col2 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT DISTINCT COUNT( DISTINCT - - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8049
SELECT DISTINCT COUNT ( DISTINCT - - col0 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - - MIN( + 72 ) AS col1 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8050
SELECT - - MIN ( + 72 ) AS col1 FROM tab1 AS cor0
----
72

query I rowsort
SELECT + 54 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + 10 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8053
SELECT - + 99 + + CAST( + - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-150
-166
-176

skipif mysql # not compatible
query I rowsort label-8053
SELECT - + 99 + + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-150
-166
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + + col2 * + 61 col2 FROM tab2 AS cor0
----
1449
2504
3613

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT DISTINCT COUNT( * ) AS col1, - ( COUNT( * ) ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8055
SELECT DISTINCT COUNT ( * ) AS col1, - ( COUNT ( * ) ) FROM tab1 AS cor0
----
3
-3

query I rowsort
SELECT + col2 + + 81 AS col1 FROM tab1 AS cor0
----
140
149
177

query I rowsort
SELECT col0 + - 6 + + 84 FROM tab2 AS cor0
----
124
142
153

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT 11, col2 AS col0 FROM tab0 AS cor0
----
11
10
11
47
11
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 71 + col1 AS col1, + col0 + col1 col1 FROM tab1 AS cor0
----
118
138
76
90
85
65

query I rowsort
SELECT ALL + + col1 AS col0 FROM tab2 WHERE NOT col0 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col0 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE + + col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT SUM( ALL + col2 ) FROM tab0 WHERE ( + col0 * + col2 ) IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-8064
SELECT SUM ( ALL + col2 ) FROM tab0 WHERE ( + col0 * + col2 ) IS NOT NULL
----
156

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT + MIN( + col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8066
SELECT + MIN ( + col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL col2 + + 21 + + + col0 + + + col0 AS col2 FROM tab1
----
219
250
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 + + col2 col1 FROM tab1 AS cor0
----
20
29
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT DISTINCT + + 42 - - col0 * + CAST( + 1 AS SIGNED ) + + ( + col2 ) FROM tab0 AS cor0
----
104
139
238

skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + + 42 - - col0 * + CAST ( + 1 AS INTEGER ) + + ( + col2 ) FROM tab0 AS cor0
----
104
139
238

onlyif mysql # DIV for integer division: 
query I rowsort label-8070
SELECT + + col2 DIV col1 * - col1 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8070
SELECT + + col2 / col1 * - col1 - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + col0 * + + col1 * 62 - + col0 AS col0 FROM tab1 AS cor0
----
26265
265083
44217

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8072
SELECT - - 66 + - + CAST( NULL AS DECIMAL ) - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8072
SELECT - - 66 + - + CAST ( NULL AS REAL ) - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + + 87 - 75 FROM tab2 WHERE NOT col2 / 56 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 27 col1, col1 * col2 FROM tab2 AS cor0
----
-27
1173
-27
3080
-27
3886

query I rowsort
SELECT + + ( - 87 ) FROM tab2 AS cor0
----
-87
-87
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, + 43 AS col2 FROM tab2 AS cor0
----
51
43
67
43
77
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8077
SELECT - ( COUNT( + col2 ) ) AS col2, 9 FROM tab1 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-8077
SELECT - ( COUNT ( + col2 ) ) AS col2, 9 FROM tab1 AS cor0
----
-3
9

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( col2 + - 27, - 8 + + col0 + + 83 + - col1 )
----

query I rowsort
SELECT DISTINCT col1 * 12 AS col1 FROM tab2 cor0
----
612
804
924

query I rowsort
SELECT DISTINCT + ( + + 11 ) AS col2 FROM tab1
----
11

query I rowsort
SELECT DISTINCT + col1 + - + col1 + + col0 * - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-225
-7569
-9409

query I rowsort
SELECT + + col2 / - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT MAX( 36 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-8083
SELECT MAX ( 36 ) AS col0 FROM tab0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT + COUNT( * ) FROM tab0 WHERE NOT col0 + + + col1 IN ( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT + COUNT ( * ) FROM tab0 WHERE NOT col0 + + + col1 IN ( - + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8085
SELECT ALL - 85 * - CAST( NULL AS SIGNED ), col1 - col1 AS col2 FROM tab0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-8085
SELECT ALL - 85 * - CAST ( NULL AS INTEGER ), col1 - col1 AS col2 FROM tab0
----
NULL
0
NULL
0
NULL
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
56
56
56

query I rowsort
SELECT + 65 * - + 70 AS col0 FROM tab0
----
-4550
-4550
-4550

query I rowsort
SELECT - 46 AS col2 FROM tab2
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT ALL - CAST( + col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - CAST ( + col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + col2 * - + 84 FROM tab0 AS cor0
----
-3948
-8316
-840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8091
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST( + col2 AS SIGNED ) / - ( - col1 ) * - 14 + + col0, CAST( NULL AS SIGNED ) * + col1 + + col1, + 10 ) AND col1 + col1 <> CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8091
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + CAST ( + col2 AS INTEGER ) / - ( - col1 ) * - 14 + + col0, CAST ( NULL AS INTEGER ) * + col1 + + col1, + 10 ) AND col1 + col1 <> CAST ( col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, 87 col0 FROM tab0
----
10
87
47
87
99
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8093
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( col1 IS NOT NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 24 col1 FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 57 AND + ( col0 ) * - - col2 * col2 + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8096
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 19 col2 FROM tab1 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT ALL + 39 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + 39 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-39
0

query I rowsort
SELECT col2 * + col1 * col0 + ( - + col0 ) FROM tab0
----
18183
57090
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8100
SELECT ALL + COUNT( + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL + COUNT ( + col2 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT col2 * - ( - col1 ) + col1, col0 AS col0 FROM tab2
----
1224
46
3157
64
3953
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8102
SELECT DISTINCT * FROM tab0 WHERE NULL <= - CAST( NULL AS SIGNED ) * - + 51
----

skipif mysql # not compatible
query III rowsort label-8102
SELECT DISTINCT * FROM tab0 WHERE NULL <= - CAST ( NULL AS INTEGER ) * - + 51
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8103
SELECT DISTINCT 44 + 4 * COUNT( * ) DIV + + MIN( + 8 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT 44 + 4 * COUNT ( * ) / + + MIN ( + 8 ) AS col0 FROM tab2
----
45

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= + col0
----

query II rowsort
SELECT col1, - col2 + + - 34 FROM tab1 AS cor0
----
14
-130
47
-102
5
-93

query I rowsort
SELECT DISTINCT col0 * + 85 FROM tab1 AS cor0
----
4335
7225
7735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 89 * col1, + col0 * col0 + - - col2 col1 FROM tab1
----
1246
2697
4183
8349
445
7284

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8108
SELECT - SUM( + + col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT - SUM ( + + col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= - 8 + col0 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL - + COUNT( * ) * - COUNT( 88 ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL - + COUNT ( * ) * - COUNT ( 88 ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT col2 * + col2 * + + 59 AS col2 FROM tab1 AS cor0
----
205379
272816
543744

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8112
SELECT * FROM tab1 AS cor0 WHERE NOT 37 NOT IN ( - + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8112
SELECT * FROM tab1 AS cor0 WHERE NOT 37 NOT IN ( - + CAST ( col1 AS INTEGER ) )
----

query II rowsort
SELECT col2 * + 82 AS col2, col1 * - col0 * col2 * - col0 AS col2 FROM tab0 AS cor0
----
3854
856575
8118
931491
820
1589490

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col2 ) NOT BETWEEN + + 78 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT ALL - + 78 DIV + + col1 + + 22 AS col0 FROM tab2 WHERE 7 DIV - + 71 * + - col2 + - col0 NOT BETWEEN NULL AND - col1
----
21
21

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL - + 78 / + + col1 + + 22 AS col0 FROM tab2 WHERE 7 / - + 71 * + - col2 + - col0 NOT BETWEEN NULL AND - col1
----
21
21

query I rowsort
SELECT ALL 96 * + col2 AS col0 FROM tab1
----
5664
6528
9216

query I rowsort
SELECT + - col2 + + 93 FROM tab1 WHERE NOT 67 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT DISTINCT + 36 * + COUNT( DISTINCT - 6 ) AS col2 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT + 36 * + COUNT ( DISTINCT - 6 ) AS col2 FROM tab2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8120
SELECT ALL CAST( NULL AS SIGNED ), - COUNT( * ) AS col1 FROM tab0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8120
SELECT ALL CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col1 FROM tab0
----
NULL
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8121
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT 74 + + col2 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + 1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT 74 + + col2 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + 1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL - - SUM( DISTINCT + ( - col0 ) ) AS col0 FROM tab2 WHERE NOT + col2 + col1 = - col0
----
-185

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - - SUM ( DISTINCT + ( - col0 ) ) AS col0 FROM tab2 WHERE NOT + col2 + col1 = - col0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-8124
SELECT - col2 DIV 17 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8124
SELECT - col2 / 17 FROM tab2
----
-1
-2
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 19
----

query II rowsort
SELECT - + col1 AS col0, + ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
97
-21
87
-81
15

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - 23 * - 74 * - ( - ( 48 ) ) + - col0 FROM tab1
----
81605
81611
81645

query I rowsort
SELECT DISTINCT - 45 + 28 * - + col2 FROM tab2 AS cor0
----
-1165
-1669
-689

query I rowsort
SELECT + - ( + col1 ) + + 59 AS col1 FROM tab0 AS cor0
----
-22
38
58

query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT - CAST( - - 47 AS SIGNED ) * + + col2 FROM tab1
----
-2773
-3196
-4512

skipif mysql # not compatible
query I rowsort label-8132
SELECT - CAST ( - - 47 AS INTEGER ) * + + col2 FROM tab1
----
-2773
-3196
-4512

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + - 17 = - - 36 + - col0 * - col0 * - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL + COUNT( * ) + - COUNT( * ) - + MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL + COUNT ( * ) + - COUNT ( * ) - + MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT - ( - MIN( ALL + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8135
SELECT - ( - MIN ( ALL + col1 ) ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - col2
----

query I rowsort
SELECT - col0 * - + col2 - - - 50 FROM tab2
----
1008
2510
4300

query I rowsort
SELECT DISTINCT - 34 - + + 81 FROM tab0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + COUNT( * ) - - 13 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-8139
SELECT + COUNT ( * ) - - 13 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT 88 + + COUNT( ALL - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT 88 + + COUNT ( ALL - col0 ) AS col0 FROM tab1
----
91

query II rowsort
SELECT + col1 - - 62 + - col0 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-18
5
18
47
25
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 - - - 22 * col0 * col2 col1 FROM tab1 AS cor0
----
-107700
-110318
-136124

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE col1 IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8144
SELECT DISTINCT 49 DIV 74 DIV + 7 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT 49 / 74 / + 7 FROM tab1, tab0 AS cor0
----
0

query III rowsort
SELECT - 5 AS col1, + 93 + - col1 * - col0, col0 FROM tab0 cor0
----
9 values hashing to 03aef76c884d67ae112af347890ce4cd

query I rowsort
SELECT DISTINCT 2 * + + col2 - + 52 FROM tab0 AS cor0
----
-32
146
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT ALL MIN( DISTINCT + col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL MIN ( DISTINCT + col2 ) FROM tab1 cor0
----
59

query I rowsort
SELECT + 9 FROM tab0 cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT MIN( ALL - + col2 ) * + COUNT( * ) AS col1 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT MIN ( ALL - + col2 ) * + COUNT ( * ) AS col1 FROM tab1
----
-288

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - 3
----

query II rowsort
SELECT ALL col0 * - col1 AS col0, col1 FROM tab0
----
-1215
81
-1827
21
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT col1 DIV col1 * - col2 AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8153
SELECT col1 / col1 * - col2 AS col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( - + col0 / - - 69 * + col0, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab0 cor0
----
-93

query I rowsort
SELECT ALL 97 + - - col1 AS col2 FROM tab1
----
102
111
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT DISTINCT COUNT( ALL - col1 ) + - 1 AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT COUNT ( ALL - col1 ) + - 1 AS col0 FROM tab1
----
2

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + AVG ( 35 ) FROM tab2 AS cor0 WHERE NOT - col2 < NULL
----
NULL

query I rowsort
SELECT ALL 0 + + + col0 AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8161
SELECT ALL + - col0, CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8161
SELECT ALL + - col0, CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query II rowsort
SELECT DISTINCT 95 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
95
-15
95
-87
95
-97

query I rowsort
SELECT DISTINCT - + 80 * 96 AS col1 FROM tab2 AS cor0
----
-7680

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT - - MIN( ALL 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - - MIN ( ALL 72 ) FROM tab0 AS cor0
----
72

query I rowsort
SELECT ALL - col1 + + + 42 * 61 AS col2 FROM tab2 AS cor0
----
2485
2495
2511

query I rowsort
SELECT 7 + col0 AS col2 FROM tab2
----
53
71
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - ( + SUM( DISTINCT + col0 ) ) AS col1 FROM tab1 WHERE - col1 * + col1 + col2 NOT BETWEEN + 67 AND NULL
----
-227

skipif mysql # not compatible
query I rowsort label-8167
SELECT - ( + SUM ( DISTINCT + col0 ) ) AS col1 FROM tab1 WHERE - col1 * + col1 + col2 NOT BETWEEN + 67 AND NULL
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 98 col0 FROM tab1
----
103
112
145

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 73 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT ALL - - MAX( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL - - MAX ( ALL + - col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - 31 * - - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
-2387

skipif mysql # not compatible
query I rowsort label-8171
SELECT - 31 * - - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-2387

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8172
SELECT + col2 * + col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT + col2 * + col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT - col1 * col2 DIV col1 * + col0 FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - col1 * col2 / col1 * + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + col2 * - + col1 * - 70 FROM tab0 AS cor0
----
14700
266490
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT CAST( + 63 AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif mysql # not compatible
query I rowsort label-8175
SELECT CAST ( + 63 AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query II rowsort
SELECT ALL - col1 * + 23 + + col0, + col2 FROM tab2 AS cor0
----
-1127
23
-1466
58
-1707
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL COUNT( - + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL COUNT ( - + col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8178
SELECT + 80 * + + CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8178
SELECT + 80 * + + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 89 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT + - MIN( col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8180
SELECT + - MIN ( col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT - COUNT( * ) * + 67 AS col2 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8181
SELECT - COUNT ( * ) * + 67 AS col2 FROM tab1 AS cor0
----
-201

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT - MAX( DISTINCT + ( - 2 ) ) AS col0 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8182
SELECT - MAX ( DISTINCT + ( - 2 ) ) AS col0 FROM tab2 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8183
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8183
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT - ( + col2 ) DIV + 62 * + 97 + - 61 FROM tab2 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-8184
SELECT - ( + col2 ) / + 62 * + 97 + - 61 FROM tab2 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL + SUM( ( + - col1 ) ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL + SUM ( ( + - col1 ) ) AS col2 FROM tab2
----
-195

query II rowsort
SELECT DISTINCT + 11 AS col1, - 38 FROM tab1
----
11
-38

query I rowsort
SELECT + 89 AS col2 FROM tab2 WHERE NOT + col2 * + 47 > + + 70
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + col1 IN ( - 23, 4, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - - col2 col2 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, + 89 * - 52 + - col1 - + col2 + + col2 - + col0 FROM tab2 AS cor0
----
51
-4725
67
-4770
77
-4769

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8192
SELECT * FROM tab1 AS cor0 WHERE CAST( + col0 AS SIGNED ) + + + col2 * - - 33 - + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8192
SELECT * FROM tab1 AS cor0 WHERE CAST ( + col0 AS INTEGER ) + + + col2 * - - 33 - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT 11, - col0 + - - col2 AS col2 FROM tab2 AS cor0
----
11
-17
11
-23
11
-24

query I rowsort
SELECT ALL + 47 AS col0 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT - 66 * + CAST( col0 AS SIGNED ) * - - col2 * - - 86 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4001580
-4938120
-54506628

skipif mysql # not compatible
query I rowsort label-8195
SELECT - 66 * + CAST ( col0 AS INTEGER ) * - - col2 * - - 86 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-4001580
-4938120
-54506628

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8196
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - CAST( NULL AS SIGNED ) / col2 AND + - 80
----

skipif mysql # not compatible
query III rowsort label-8196
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) / col2 AND + - 80
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + col2 + + - col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT DISTINCT CAST( - - col0 AS SIGNED ) * - ( 81 ) FROM tab1
----
-4131
-6885
-7371

skipif mysql # not compatible
query I rowsort label-8199
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) * - ( 81 ) FROM tab1
----
-4131
-6885
-7371

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT + 85 - - 9 + + 15 + MIN( ALL + 77 ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + 85 - - 9 + + 15 + MIN ( ALL + 77 ) FROM tab0 AS cor0
----
186

query I rowsort
SELECT DISTINCT - + 86 - - col1 AS col0 FROM tab0 AS cor0
----
-5
-65
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT ALL + - 87 + 64 col1, + COUNT( * ) FROM tab1 AS cor0
----
-23
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8202
SELECT ALL + - 87 + 64 col1, + COUNT ( * ) FROM tab1 AS cor0
----
-23
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT COUNT( * ), + 50 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3
50

skipif mysql # not compatible
query II rowsort label-8203
SELECT COUNT ( * ), + 50 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
3
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8204
SELECT ALL - MAX( DISTINCT + + 79 ), COUNT( * ) col0 FROM tab2 AS cor0
----
-79
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8204
SELECT ALL - MAX ( DISTINCT + + 79 ), COUNT ( * ) col0 FROM tab2 AS cor0
----
-79
3

query I rowsort
SELECT + + ( - - col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - - ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col0, - 33 FROM tab2 AS cor0 WHERE col1 * - col0 * + col2 IS NOT NULL
----
46
-33
64
-33
75
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col1 ) col1 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) <> + col2
----

query I rowsort
SELECT DISTINCT + - 9 * col0 * + + col1 FROM tab1 AS cor0
----
-3825
-38493
-6426

query I rowsort
SELECT 59 - - 98 FROM tab1
----
157
157
157

query I rowsort
SELECT col1 - col1 * + 17 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT ALL + col0 * col2 * + 92 AS col1 FROM tab2
----
235520
400200
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT - 7 + + - COUNT( - - 17 ) + - 83 + + + 87 AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - 7 + + - COUNT ( - - 17 ) + - 83 + + + 87 AS col2 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab1 WHERE - - col2 / + + 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col0, + 53 FROM tab2
----
46
53
64
53
75
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT - 6 DIV - + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT - 6 / - + col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - SUM( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8218
SELECT - SUM ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT + SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT + - MIN( DISTINCT 38 ) AS col2 FROM tab2 AS cor0 WHERE NULL >= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + - MIN ( DISTINCT 38 ) AS col2 FROM tab2 AS cor0 WHERE NULL >= - col0
----
NULL

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NULL <> col0
----

query I rowsort
SELECT ALL + col1 * - - 24 FROM tab2 AS cor0
----
1224
1608
1848

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT MAX( DISTINCT col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8223
SELECT MAX ( DISTINCT col1 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT + MIN( 7 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + MIN ( 7 ) FROM tab0
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8225
SELECT ALL - COUNT( + CAST( + col1 AS DECIMAL ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL - COUNT ( + CAST ( + col1 AS REAL ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 67 * + col1 * + - col1 AS col1 FROM tab0 AS cor0
----
-29547
-439587
-67

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + 8 + + 90 - - 97 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + col0 * + - 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 56 - col0 + + col2 NOT BETWEEN ( col2 ) AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 > - 59
----

query I rowsort
SELECT 94 AS col1 FROM tab0 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT 66 + - + col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT 66 + - + col2 <= NULL
----
0

query I rowsort
SELECT + col1 * + col2 - - + 35 FROM tab0 AS cor0
----
134
245
3842

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <> col1
----

query II rowsort
SELECT 59 AS col2, col2 FROM tab0
----
59
10
59
47
59
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT COUNT( - 91 ) * 60 FROM tab2, tab1 AS cor0
----
540

skipif mysql # not compatible
query I rowsort label-8237
SELECT COUNT ( - 91 ) * 60 FROM tab2, tab1 AS cor0
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT MIN( - 37 ) col1 FROM tab0, tab1 AS cor0
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8238
SELECT MIN ( - 37 ) col1 FROM tab0, tab1 AS cor0
----
-37

query I rowsort
SELECT col0 + col1 + 14 FROM tab1
----
104
152
79

query I rowsort
SELECT DISTINCT col0 + + col2 + ( + col1 ) AS col0 FROM tab2
----
120
181
200

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT col1 DIV - ( - 84 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8241
SELECT col1 / - ( - 84 ) FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL 16 + - COUNT( * ) AS col0 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL 16 + - COUNT ( * ) AS col0 FROM tab0
----
13

query I rowsort
SELECT ALL - 49 - + - col0 AS col1 FROM tab1 AS cor0
----
2
36
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - SUM( + - col1 ) + + - COUNT( * ) + - - SUM( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-8245
SELECT - SUM ( + - col1 ) + + - COUNT ( * ) + - - SUM ( DISTINCT - + col0 ) AS col0 FROM tab2 AS cor0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, 79 col1 FROM tab1 AS cor0
----
14
79
47
79
5
79

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT 97 * + COUNT( 12 ) AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-8248
SELECT 97 * + COUNT ( 12 ) AS col1 FROM tab0
----
291

query I rowsort
SELECT DISTINCT + 47 * + col1 FROM tab0
----
3807
47
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 62 * - 46 * - - 85 col2 FROM tab0
----
-11393740
-23999580
-2424200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT DISTINCT + COUNT( + col1 ) DIV + - 55 * - MAX( + 92 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT + COUNT ( + col1 ) / + - 55 * - MAX ( + 92 ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col0 * - col1 + + - col1 col1 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 27 * + 33 AS col1 FROM tab0 AS cor0
----
-891
-891
-891

query I rowsort
SELECT + 36 + - - 44 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT - col1 + + - col2 * + + 42 * + col1 FROM tab2 AS cor0
----
-129437
-163279
-49317

onlyif mysql # aggregate syntax: 
query II rowsort label-8256
SELECT ALL + - 12 col1, + MAX( + + col1 ) FROM tab2 AS cor0
----
-12
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8256
SELECT ALL + - 12 col1, + MAX ( + + col1 ) FROM tab2 AS cor0
----
-12
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8257
SELECT 84 + + - COUNT( * ) / - CAST( NULL AS SIGNED ) / - + ( + COUNT( * ) ) * - 44 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT 84 + + - COUNT ( * ) / - CAST ( NULL AS INTEGER ) / - + ( + COUNT ( * ) ) * - 44 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT ALL - MIN( - + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL - MIN ( - + col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - 32 + 8 FROM tab0 AS cor0
----
-24
-24
-24

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 37 BETWEEN - + col1 * col0 AND - 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * + col2 * + + col1 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT - 31 * - 88 AS col1 FROM tab0 WHERE - 38 * + col1 * + col0 * col2 BETWEEN col1 * 55 - - col0 + - col0 * col2 AND NULL
----

query I rowsort
SELECT + + AVG ( + col1 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 47 + col1 * + 94 FROM tab0
----
1927
47
7567

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( + - 83 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 + + + col0 col0 FROM tab2
----
122
140
151

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1 AS cor0 WHERE col2 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8268
SELECT CAST( NULL AS SIGNED ) * - col0 + + - ( - col0 ) + + col2 AS col1, + ( - col1 ) AS col2 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-8268
SELECT CAST ( NULL AS INTEGER ) * - col0 + + - ( - col0 ) + + col2 AS col1, + ( - col1 ) AS col2 FROM tab1
----
NULL
-14
NULL
-47
NULL
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COUNT( * ) + - MIN( DISTINCT col1 ) FROM tab2 WHERE NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT COUNT ( * ) + - MIN ( DISTINCT col1 ) FROM tab2 WHERE NULL <= ( NULL )
----
NULL

query II rowsort
SELECT - 0 AS col0, - col2 + 50 FROM tab1
----
0
-18
0
-46
0
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT - ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT - ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL + MAX( ALL + + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT 66 * + - col0 AS col0 FROM tab1
----
-3366
-5610
-6006

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 26 = + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8275
SELECT + ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8275
SELECT + ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 1 AS col2, ( + - col0 ) FROM tab2
----
1
-46
1
-64
1
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8277
SELECT ALL 25 AS col2, 65 DIV MAX( + - 73 ) FROM tab1 cor0
----
25
0

skipif mysql # not compatible
query II rowsort label-8277
SELECT ALL 25 AS col2, 65 / MAX ( + - 73 ) FROM tab1 cor0
----
25
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT DISTINCT - - col0 DIV 95 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - - col0 / 95 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 44 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + + 22 * - 72 FROM tab0
----
137808
153648
23760

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT DISTINCT + + COUNT( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN - ( - col1 ) AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + + COUNT ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 NOT BETWEEN - ( - col1 ) AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT ALL COUNT( ALL col0 ) + + 78 + + COUNT( * ) + + - MIN( ALL + col2 ) col1 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT ALL COUNT ( ALL col0 ) + + 78 + + COUNT ( * ) + + - MIN ( ALL + col2 ) col1 FROM tab2 AS cor0
----
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 56
----

query I rowsort
SELECT DISTINCT - 22 FROM tab0 cor0
----
-22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 59 NOT BETWEEN + 2 * + 35 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8287
SELECT DISTINCT - + col2 DIV - 60 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT - + col2 / - 60 AS col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8288
SELECT DISTINCT 97 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT 97 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + 39 + - + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8289
SELECT + 39 + - + COUNT ( * ) FROM tab2
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8290
SELECT + CAST( NULL AS DECIMAL ) / - col1 * + 14 * - col1 + - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT + CAST ( NULL AS REAL ) / - col1 * + 14 * - col1 + - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + - 58 FROM tab1
----
-7
27
33

query I rowsort
SELECT - col2 + - - 66 AS col0 FROM tab2 WHERE col1 * + col2 - col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT ALL + + 60 - MIN( + 48 ) DIV - + 31 FROM tab2 cor0
----
61

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + + 60 - MIN ( + 48 ) / - + 31 FROM tab2 cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64 AS col0, col0 col1 FROM tab1 AS cor0
----
64
51
64
85
64
91

query I rowsort
SELECT + 40 * - col2 FROM tab0 cor0
----
-1880
-3960
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + - MIN( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8297
SELECT + - MIN ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 31 + col0 AS col2 FROM tab2 AS cor0
----
15
33
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT COUNT( ALL - 29 ) AS col1 FROM tab0, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8300
SELECT COUNT ( ALL - 29 ) AS col1 FROM tab0, tab2 AS cor0
----
9

query I rowsort
SELECT + + 33 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 37 ) > - 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + AVG ( - col2 ) FROM tab0 AS cor0 WHERE NOT 24 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL COUNT( ALL col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL COUNT ( ALL col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT - MAX( - + 4 ) FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-8305
SELECT - MAX ( - + 4 ) FROM tab1
----
4

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col0 * col2 > + 87
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + col2 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT MAX( - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT MAX ( - - col0 ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL MAX( ALL col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL MAX ( ALL col0 ) FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT CAST( + + 6 AS SIGNED ) FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-8310
SELECT CAST ( + + 6 AS INTEGER ) FROM tab0
----
6
6
6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN 89 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT + + MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT + + MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 45 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-45

query I rowsort
SELECT ALL 96 * + + col0 AS col0 FROM tab0 AS cor0
----
1440
8352
9312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + 81 NOT BETWEEN - col1 * + 29 - - col1 AND NULL
----

query I rowsort
SELECT + + 36 + + col2 * - 45 * col2 AS col0 FROM tab1 AS cor0
----
-156609
-208044
-414684

query I rowsort
SELECT - 71 + 43 * + + col0 AS col2 FROM tab2 AS cor0
----
1907
2681
3154

query III rowsort
SELECT DISTINCT + col1, - col2 AS col0, + + col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 0d5867413e73ba22cc05aed5d628ebc3

query II rowsort
SELECT ALL + + ( + col0 ) AS col1, ( col2 ) FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT - col2 + CAST( + + col1 AS SIGNED ) * - - col1 AS col1 FROM tab1 AS cor0
----
-34
100
2141

skipif mysql # not compatible
query I rowsort label-8321
SELECT - col2 + CAST ( + + col1 AS INTEGER ) * - - col1 AS col1 FROM tab1 AS cor0
----
-34
100
2141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 - 39 col1 FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL + COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 * - - col0 + - + col0 AS col1 FROM tab1 AS cor0
----
4845
4930
6097

query II rowsort
SELECT col0 AS col2, col0 + 9 AS col0 FROM tab2
----
46
55
64
73
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8326
SELECT + + 82 DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8326
SELECT + + 82 / col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT - - MIN( + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT - - MIN ( + col1 ) AS col0 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8328
SELECT - + ( - SUM( - - col2 ) ), ( 26 ) DIV - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
156
-5

skipif mysql # not compatible
query II rowsort label-8328
SELECT - + ( - SUM ( - - col2 ) ), ( 26 ) / - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
156
-5

query II rowsort
SELECT - col1 AS col2, 0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT + + COUNT( * ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8330
SELECT + + COUNT ( * ) col2 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT - MAX( 45 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - MAX ( 45 ) AS col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT col2 * + - ( - - col1 ) - - 37 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT col1 + 32 FROM tab0 AS cor0 WHERE NOT col1 <= - + 20 + - - 29 + col2 * CAST( NULL AS SIGNED ) + - + col1
----

skipif mysql # not compatible
query I rowsort label-8333
SELECT col1 + 32 FROM tab0 AS cor0 WHERE NOT col1 <= - + 20 + - - 29 + col2 * CAST ( NULL AS INTEGER ) + - + col1
----

onlyif mysql # DIV for integer division: 
query III rowsort label-8334
SELECT + col1 * - 53 AS col2, col1 DIV - ( col0 ) AS col2, - - col1 AS col0 FROM tab0
----
9 values hashing to aa6462462f107813f90505ab081b761d

skipif mysql # not compatible
query III rowsort label-8334
SELECT + col1 * - 53 AS col2, col1 / - ( col0 ) AS col2, - - col1 AS col0 FROM tab0
----
9 values hashing to aa6462462f107813f90505ab081b761d

query I rowsort
SELECT DISTINCT 21 * + 42 * - col1 FROM tab1
----
-12348
-41454
-4410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8336
SELECT - 61 DIV + MIN( + col0 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8336
SELECT - 61 / + MIN ( + col0 ) FROM tab0
----
-4

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab1 WHERE NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 46 IN ( col0, - col0 * + col2, + - 89 + - col0, 69 - + col2, + + col0 * - + col0 + col1, + + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + - 30 + col0 - 39 NOT BETWEEN NULL AND NULL OR NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + col1 * col0 AS col1, col2 AS col1 FROM tab1
----
425
59
4277
68
714
96

query I rowsort
SELECT col0 * - 69 * - col1 FROM tab2
----
161874
340032
346725

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + COUNT( * ) * + + COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8342
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8343
SELECT COUNT( col0 ) AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8343
SELECT COUNT ( col0 ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL + MIN( + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + MIN ( + col1 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT 85 AS col1, 21 * + + col2 AS col2 FROM tab0
----
85
2079
85
210
85
987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8346
SELECT - + 6 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8346
SELECT - + 6 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + ( + 56 ) col2 FROM tab0
----
15
56
87
56
97
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
33

query II rowsort
SELECT + - col1 * col0 + col0, + col0 AS col0 FROM tab1 AS cor0
----
-340
85
-4186
91
-663
51

query I rowsort
SELECT + 45 * + col0 AS col2 FROM tab2 AS cor0
----
2070
2880
3375

query I rowsort
SELECT - 59 + ( col0 ) - + col0 + - + 48 * col1 FROM tab0 AS cor0
----
-1067
-107
-3947

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL 30 * - + SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
-1980

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL 30 * - + SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1980

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT DISTINCT 12 + 4 DIV + - col2 + + 37 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT 12 + 4 / + - col2 + + 37 FROM tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8356
SELECT col1 + col0 DIV + + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-8356
SELECT col1 + col0 / + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
49
66
76

query I rowsort
SELECT DISTINCT 79 * + col0 AS col2 FROM tab2
----
3634
5056
5925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8358
SELECT + ( ( CAST( NULL AS SIGNED ) ) ) + col2, - col0 * - - col1 * - - col1 AS col2 FROM tab0
----
NULL
-38367
NULL
-97
NULL
-98415

skipif mysql # not compatible
query II rowsort label-8358
SELECT + ( ( CAST ( NULL AS INTEGER ) ) ) + col2, - col0 * - - col1 * - - col1 AS col2 FROM tab0
----
NULL
-38367
NULL
-97
NULL
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT 21 + COUNT( * ) col2 FROM tab2
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8359
SELECT 21 + COUNT ( * ) col2 FROM tab2
----
24

query III rowsort
SELECT * FROM tab1 WHERE - + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8361
SELECT + COUNT( * ) + CAST( ( - - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 WHERE - + 1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT + COUNT ( * ) + CAST ( ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 WHERE - + 1 IS NOT NULL
----
NULL

query I rowsort
SELECT col2 + col1 + - + col0 + col1 * col0 + - - col2 + + ( - col1 ) AS col2 FROM tab0
----
1294
1760
198

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT ALL 51 - + COUNT( * ) col0, - COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
48
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8363
SELECT ALL 51 - + COUNT ( * ) col0, - COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
48
-3

query I rowsort
SELECT - + 46 * - 68 AS col0 FROM tab2 AS cor0
----
3128
3128
3128

query I rowsort
SELECT DISTINCT - col2 - + 9 - - col0 FROM tab0 AS cor0
----
-11
-41
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT ALL COUNT( * ) DIV - + 8 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT ALL COUNT ( * ) / - + 8 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8367
SELECT COUNT( * ) DIV - COUNT( * ) + + + 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
31

skipif mysql # not compatible
query I rowsort label-8367
SELECT COUNT ( * ) / - COUNT ( * ) + + + 32 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + + col1 ) AS col0, 63 col1 FROM tab1 AS cor0
----
14
63
47
63
5
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8369
SELECT + CAST( - + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8369
SELECT + CAST ( - + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL COUNT( ALL - col1 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL COUNT ( ALL - col1 ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - 86 ) col2 FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - - col0 AND + + 29
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 20 * col1 AS col2 FROM tab2
----
1020
1340
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT + MAX( ALL 50 ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8375
SELECT + MAX ( ALL 50 ) FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL MAX( DISTINCT + 19 ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL MAX ( DISTINCT + 19 ) AS col0 FROM tab0 AS cor0
----
19

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL >= + col2 + col2 * ( + 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8378
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - col1 = - col2 - col2
----

skipif mysql # not compatible
query III rowsort label-8378
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - col1 = - col2 - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8379
SELECT ALL * FROM tab1 WHERE - 3 > + 40 / col0 + + CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8379
SELECT ALL * FROM tab1 WHERE - 3 > + 40 / col0 + + CAST ( + col1 AS REAL )
----

query I rowsort
SELECT + ( col2 ) * 32 FROM tab1
----
1888
2176
3072

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + - col0 NOT BETWEEN - col0 * - 13 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT COUNT( * ) * - 23 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8382
SELECT COUNT ( * ) * - 23 FROM tab0
----
-69

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( col1 + + 61 * col0 ) IN ( + col2 * - 68 )
----

query I rowsort
SELECT ALL col2 + 11 * col0 AS col2 FROM tab0
----
1166
212
967

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) + SUM( ALL - ( + col1 ) ) FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-8385
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) + SUM ( ALL - ( + col1 ) ) FROM tab2
----
-204

query I rowsort
SELECT - 62 * + 25 AS col0 FROM tab2
----
-1550
-1550
-1550

query I rowsort
SELECT + col2 * + ( col2 * - col2 ) AS col0 FROM tab2
----
-12167
-195112
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL ( 42 ) + - COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL ( 42 ) + - COUNT ( * ) FROM tab1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT DISTINCT col0 DIV + col1 col2 FROM tab1
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8389
SELECT DISTINCT col0 / + col1 col2 FROM tab1
----
1
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab2 WHERE - col1 IS NOT NULL
----
8
8
8

query I rowsort
SELECT - 8 * col2 + col0 FROM tab1
----
-387
-453
-717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8392
SELECT ALL COUNT( * ) FROM tab1 WHERE ( col2 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL COUNT ( * ) FROM tab1 WHERE ( col2 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + 89 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= + ( + col2 ) * col1 + 78
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT + ( ( - col0 ) ) DIV 29 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8396
SELECT + ( ( - col0 ) ) / 29 FROM tab1
----
-1
-2
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8397
SELECT + col2 / - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT + col2 / - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT - CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT - CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 26 - col0 FROM tab2
----
-20
-38
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8400
SELECT - 62 DIV COUNT( * ) AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-8400
SELECT - 62 / COUNT ( * ) AS col1 FROM tab2
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT + col1 + CAST( 7 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
28
8
88

skipif mysql # not compatible
query I rowsort label-8401
SELECT + col1 + CAST ( 7 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
28
8
88

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col0 FROM tab2 cor0 WHERE col1 IN ( - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8403
SELECT DISTINCT ( CAST( COUNT( * ) AS SIGNED ) ) * 1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT ( CAST ( COUNT ( * ) AS INTEGER ) ) * 1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT DISTINCT MAX( + 72 ) FROM tab2 AS cor0 WHERE + col2 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT MAX ( + 72 ) FROM tab2 AS cor0 WHERE + col2 >= ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + col2 * col1 + + 96 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8406
SELECT DISTINCT - 4 DIV col2 col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8406
SELECT DISTINCT - 4 / col2 col0 FROM tab0 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 BETWEEN ( - 83 ) AND - 66
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 34 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - 97 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT - 65 / col1 + col0 * + col0 BETWEEN NULL AND col2 + col1
----
3

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT - 65 / col1 + col0 * + col0 BETWEEN NULL AND col2 + col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8412
SELECT DISTINCT ( + SUM( DISTINCT + CAST( ( - col1 ) AS SIGNED ) ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT ( + SUM ( DISTINCT + CAST ( ( - col1 ) AS INTEGER ) ) ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT - ( ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8413
SELECT - ( ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT + col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN - col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8414
SELECT + col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN - col0 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8415
SELECT - MAX( DISTINCT - 33 ) DIV + COUNT( * ) AS col0 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-8415
SELECT - MAX ( DISTINCT - 33 ) / + COUNT ( * ) AS col0 FROM tab2 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT DISTINCT COUNT( - 53 ) FROM tab1 AS cor0 WHERE NOT 69 < 20
----
3

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT COUNT ( - 53 ) FROM tab1 AS cor0 WHERE NOT 69 < 20
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 49 - col0 AND - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL - MAX( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 + - 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL - MAX ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col0 + - 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8419
SELECT DISTINCT - col2 DIV - col1 col0 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8419
SELECT DISTINCT - col2 / - col1 col0 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( + ( ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT - 14 DIV - 96 + - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - 14 / - 96 + - col0 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 WHERE ( - 5 / - col0 ) = ( + col1 )
----

query I rowsort
SELECT - 80 * col0 FROM tab2
----
-3680
-5120
-6000

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8426
SELECT DISTINCT 57 DIV - 84 + - col2 AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT 57 / - 84 + - col2 AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 13 + + col0 FROM tab0
----
2
74
84

query I rowsort
SELECT ALL col1 * + + col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT ALL + CAST( - - 70 AS SIGNED ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + CAST ( - - 70 AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - MIN( 0 ) * COUNT( * ) + - 59 FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8432
SELECT - MIN ( 0 ) * COUNT ( * ) + - 59 FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
-59

query I rowsort
SELECT ALL - - ( 38 ) AS col0 FROM tab0 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8434
SELECT ( - COUNT( * ) ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8434
SELECT ( - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 19 )
----

query I rowsort
SELECT DISTINCT - - col1 + - 67 AS col0 FROM tab1 AS cor0
----
-20
-53
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT - 68 DIV - 48 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8437
SELECT - 68 / - 48 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT DISTINCT + MIN( DISTINCT 97 ) AS col2 FROM tab1, tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT + MIN ( DISTINCT 97 ) AS col2 FROM tab1, tab1 AS cor0
----
97

query I rowsort
SELECT ALL + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8440
SELECT ALL 60 / + SUM( + col2 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL 60 / + SUM ( + col2 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 28 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 80 = - col2
----

query I rowsort
SELECT ALL - 74 - - - col2 * ( - col1 ) AS col0 FROM tab0 cor0
----
136
25
3733

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE ( col2 * - - col0 ) IN ( + col0 + 64 )
----

query I rowsort
SELECT DISTINCT - 1 - + col0 AS col0 FROM tab1 AS cor0
----
-52
-86
-92

query I rowsort
SELECT - col2 + - + 61 FROM tab1 cor0
----
-120
-129
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL - SUM( ALL - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8450
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 82 * 0 BETWEEN - col1 AND - ( CAST( + col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8450
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 82 * 0 BETWEEN - col1 AND - ( CAST ( + col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / + + 15 + + 37 * 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8452
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT CAST( + 76 AS SIGNED ) + col0 + - ( + col2 ) * + col1 AS col2 FROM tab0
----
-3716
-47
74

skipif mysql # not compatible
query I rowsort label-8453
SELECT CAST ( + 76 AS INTEGER ) + col0 + - ( + col2 ) * + col1 AS col2 FROM tab0
----
-3716
-47
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL 58 * - COUNT( * ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL 58 * - COUNT ( * ) FROM tab2
----
-174

query I rowsort
SELECT ALL - 28 / + 4 AS col0 FROM tab1 WHERE NOT + 45 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 66 + + - col0 AS col1, - col2 AS col1 FROM tab1
----
-19
-59
-25
-68
15
-96

query I rowsort
SELECT ALL - col0 + 57 + - + col0 AS col1 FROM tab0
----
-117
-137
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * 26 col2 FROM tab2 WHERE NOT ( - 55 + col1 - col2 * + col2 * - 4 ) >= - col1 + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8459
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8459
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT - 56 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT - 56 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL - 91 * COUNT( * ) + 98 * - 29 FROM tab0 AS cor0 WHERE + col0 NOT IN ( col1 )
----
-3115

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL - 91 * COUNT ( * ) + 98 * - 29 FROM tab0 AS cor0 WHERE + col0 NOT IN ( col1 )
----
-3115

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + MAX( - ( + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8462
SELECT + MAX ( - ( + col1 ) ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - + ( + col2 ) * - col0 + + 37 AS col2 FROM tab2 AS cor0
----
1095
2597
4387

query I rowsort
SELECT DISTINCT 2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
2

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT 22 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT - + SUM( ALL col1 ) + ( - 76 ) + + COUNT( + ( CAST( CAST( - col0 AS SIGNED ) AS SIGNED ) ) ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT - + SUM ( ALL col1 ) + ( - 76 ) + + COUNT ( + ( CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) ) ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( + + col1 ) IS NULL AND NOT - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 64 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - 59 FROM tab1 AS cor0 WHERE NOT + 48 / - 39 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col1 FROM tab0 AS cor0
----
-70

query II rowsort
SELECT - 58 + + 73 + - 89, - col2 * + 50 AS col1 FROM tab0 AS cor0
----
-74
-2350
-74
-4950
-74
-500

query I rowsort
SELECT - 61 + 5 FROM tab2 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - col2 - + col2 - col0 + + col2 - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-149
-161
-206

query I rowsort
SELECT ALL - 81 FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - 59 AS col2 FROM tab0 WHERE + - col1 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8477
SELECT CAST( NULL AS SIGNED ) AS col2, col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8477
SELECT CAST ( NULL AS INTEGER ) AS col2, col2 AS col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab2 WHERE + + col0 > + - col2 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8479
SELECT DISTINCT - + col2 DIV - 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - + col2 / - 89 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 80 * - 12 + - 77 / - 62 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND ( + col0 + - col1 )
----

query I rowsort
SELECT - ( - - 58 ) FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ( - ( 47 ) ) AS col0 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - - col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + 46 + + col2 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ( 17 ) * COUNT( * ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8485
SELECT ( 17 ) * COUNT ( * ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT DISTINCT - CAST( - 79 AS SIGNED ) AS col0 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT - CAST ( - 79 AS INTEGER ) AS col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( 80 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8487
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( 80 ) IS NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * + 8 + - col0 + - col2 - col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT MAX( col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT MAX ( col2 ) AS col1 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 34 + + ( + - col0 ) + 18 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT COUNT( * ) FROM tab0 WHERE NOT - - col2 NOT BETWEEN - 3 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8491
SELECT COUNT ( * ) FROM tab0 WHERE NOT - - col2 NOT BETWEEN - 3 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8492
SELECT COUNT( * ) AS col1, - 58 AS col2 FROM tab1
----
3
-58

skipif mysql # not compatible
query II rowsort label-8492
SELECT COUNT ( * ) AS col1, - 58 AS col2 FROM tab1
----
3
-58

query III rowsort
SELECT * FROM tab1 WHERE ( col2 * - 59 + - col0 - 6 * - + ( + col2 ) / - col2 ) <= NULL OR NOT NULL IN ( + 2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8494
SELECT + 21, SUM( - 52 ) AS col0 FROM tab2 AS cor0
----
21
-156

skipif mysql # not compatible
query II rowsort label-8494
SELECT + 21, SUM ( - 52 ) AS col0 FROM tab2 AS cor0
----
21
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * - col2 * + + col0 * col0 col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT - + 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 31 / + col0 * + - 22 - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8499
SELECT + ( - col1 ) col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8499
SELECT + ( - col1 ) col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8500
SELECT DISTINCT + - CAST( - - COUNT( DISTINCT - - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT + - CAST ( - - COUNT ( DISTINCT - - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col2 * + 50 * 92 * - - col0 AS col1, + 10 + - col2 AS col2 FROM tab2 AS cor0
----
11776000
-30
20010000
-48
4866800
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + + 70 * - - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8502
SELECT + + 70 * - - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
207

query I rowsort
SELECT - 20 + col2 * + + col0 FROM tab2 WHERE NULL > 20
----

query II rowsort
SELECT col1 AS col1, + ( col2 ) FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT ALL - - col2 DIV - - col0 AS col2 FROM tab0 WHERE - col1 + - 31 NOT BETWEEN - - col2 AND + 90 DIV - + col2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL - - col2 / - - col0 AS col2 FROM tab0 WHERE - col1 + - 31 NOT BETWEEN - - col2 AND + 90 / - + col2
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT CAST( - + 78 AS SIGNED ) FROM tab1
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-8506
SELECT CAST ( - + 78 AS INTEGER ) FROM tab1
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col2 FROM tab2
----
-91
-91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 22, + col0 * + 64 col2 FROM tab2
----
-22
2944
-22
4096
-22
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT COUNT( * ) + - - 37 + - + 71 AS col1 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-8509
SELECT COUNT ( * ) + - - 37 + - + 71 AS col1 FROM tab2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - 73 + + 73 - + COUNT( * ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8510
SELECT - 73 + + 73 - + COUNT ( * ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT col0 + col1 + - - col0 * - col2 AS col1 FROM tab1
----
-4831
-4925
-6050

query I rowsort
SELECT DISTINCT 74 + ( col0 ) FROM tab2
----
120
138
149

query I rowsort
SELECT + col1 + - - 84 AS col1 FROM tab2 AS cor0
----
135
151
161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + + col0 col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT ALL MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE col1 BETWEEN + col1 AND - col1 * col1 OR NOT NULL < - + col1
----
0

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE col1 BETWEEN + col1 AND - col1 * col1 OR NOT NULL < - + col1
----
0

query I rowsort
SELECT DISTINCT - 82 * - col2 AS col1 FROM tab0
----
3854
8118
820

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8518
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8518
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-8519
SELECT - + ( - + 76 ), - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
76
-9

skipif mysql # not compatible
query II rowsort label-8519
SELECT - + ( - + 76 ), - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
76
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8520
SELECT DISTINCT 78 * + COUNT( * ) + 35 DIV + COUNT( * ) AS col0 FROM tab1
----
245

skipif mysql # not compatible
query I rowsort label-8520
SELECT DISTINCT 78 * + COUNT ( * ) + 35 / + COUNT ( * ) AS col0 FROM tab1
----
245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL - + col1 * + - CAST( col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
196
297
3822

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - + col1 * + - CAST ( col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
196
297
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8522
SELECT ALL - + col1 + + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8522
SELECT ALL - + col1 + + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT + COUNT( + - 98 ) * ( COUNT( * ) ) * - COUNT( * ) + + 32 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8523
SELECT + COUNT ( + - 98 ) * ( COUNT ( * ) ) * - COUNT ( * ) + + 32 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8524
SELECT + + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8524
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= - 44 * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8527
SELECT - + col1, CAST( NULL AS SIGNED ) + + + 63 AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-8527
SELECT - + col1, CAST ( NULL AS INTEGER ) + + + 63 AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT col0 * + ( + + col0 ) * + 32 AS col1 FROM tab2
----
131072
180000
67712

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 52 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + 20
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT - + ( - COUNT( * ) ) col1, 57 * + 65 col1 FROM tab1 AS cor0
----
3
3705

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8531
SELECT - + ( - COUNT ( * ) ) col1, 57 * + 65 col1 FROM tab1 AS cor0
----
3
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT - 1 * + - COUNT( + 37 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8532
SELECT - 1 * + - COUNT ( + 37 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8533
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( 54 ) AS col0 FROM tab2
----
-54

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 + + 6 <> + - 33
----

query II rowsort
SELECT DISTINCT col0 AS col0, col2 * + col2 + + col2 AS col1 FROM tab2 cor0
----
46
552
64
1640
75
3422

query I rowsort
SELECT DISTINCT 23 * - - col2 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + - 66 AND + col1
----
-2

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + - 66 AND + col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT + + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8539
SELECT + + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT - col0 * - CAST( - - col2 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE - col0 / 71 * col1 + col1 + ( + - col1 ) <= - 67 + - col2 + col0
----
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8540
SELECT - col0 * - CAST ( - - col2 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE - col0 / 71 * col1 + col1 + ( + - col1 ) <= - 67 + - col2 + col0
----
6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - col0 BETWEEN + - col1 AND - col0
----

query I rowsort
SELECT - col0 * + 22 AS col1 FROM tab1
----
-1122
-1870
-2002

query I rowsort
SELECT - 21 AS col0 FROM tab1 WHERE - col1 >= ( + col1 * - + col2 )
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT - MIN( - col0 ) col2 FROM tab1 WHERE NOT NULL IN ( - - ( + 68 ), col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8544
SELECT DISTINCT - MIN ( - col0 ) col2 FROM tab1 WHERE NOT NULL IN ( - - ( + 68 ), col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8545
SELECT DISTINCT col1 DIV 12 + - - 23 FROM tab1
----
23
24
26

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT col1 / 12 + - - 23 FROM tab1
----
23
24
26

query III rowsort
SELECT * FROM tab1 WHERE + 72 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT ALL col2 + col1 - + - col2 / - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8547
SELECT ALL col2 + col1 - + - col2 / - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * - col0 col1 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT DISTINCT - col1 + - - col1 * - 29 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8550
SELECT - COUNT( * ) + - + CAST( + 97 AS SIGNED ) col1 FROM tab0, tab2 AS cor0
----
-106

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8550
SELECT - COUNT ( * ) + - + CAST ( + 97 AS INTEGER ) col1 FROM tab0, tab2 AS cor0
----
-106

query I rowsort
SELECT + ( + ( 91 ) ) FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT + 29 DIV + - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 29 / + - COUNT ( * ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT + - col2 * - 26 FROM tab0 AS cor0
----
1222
2574
260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col1 ) * + col2 col0 FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 * + col1 * - 98 * 54 * + + col2 col2 FROM tab0
----
-22528044
-47786760
-866305692

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT ALL + 10 DIV 25 * - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + 10 / 25 * - col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - 93 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8559
SELECT DISTINCT CAST( 71 AS SIGNED ), + 18 AS col2 FROM tab1
----
71
18

skipif mysql # not compatible
query II rowsort label-8559
SELECT DISTINCT CAST ( 71 AS INTEGER ), + 18 AS col2 FROM tab1
----
71
18

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 47 IS NOT NULL
----

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT + col0 + + - ( + + 79 ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-64
18
8

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8564
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - + col2 IN ( + 51 )
----

skipif mysql # not compatible
query III rowsort label-8564
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - + col2 IN ( + 51 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT ALL - MIN( ALL ( col2 ) ) AS col0 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8566
SELECT ALL - MIN ( ALL ( col2 ) ) AS col0 FROM tab2 cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8567
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE - + CAST( - + CAST( + 22 AS SIGNED ) AS SIGNED ) / - col2 IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE - + CAST ( - + CAST ( + 22 AS INTEGER ) AS INTEGER ) / - col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 27 * + col1 + 12 * - col0 * + 73 FROM tab0
----
-10953
-75645
-84945

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT MIN( ALL - 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-8569
SELECT MIN ( ALL - 15 ) FROM tab1
----
-15

query I rowsort
SELECT + - col1 + - - col2 - + + col0 FROM tab0 AS cor0 WHERE 80 > NULL
----

query I rowsort
SELECT DISTINCT - - col1 * + + col2 + + - col1 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col1 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * + col1 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 + - + col2 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + 77 + - col1 AS col1 FROM tab1
----
30
63
72

query I rowsort
SELECT ALL + col0 * - ( - - col0 ) + col1 FROM tab0
----
-144
-7548
-9408

query II rowsort
SELECT ( col2 ) + - 10 * + - ( + - col2 ) * - 25 AS col2, - 81 FROM tab1
----
14809
-81
17068
-81
24096
-81

query I rowsort
SELECT ALL + 71 - + - 62 + + col1 AS col1 FROM tab0 AS cor0
----
134
154
214

query I rowsort
SELECT ALL - - col0 * + + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT DISTINCT - col0 DIV + col0 col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8580
SELECT DISTINCT - col0 / + col0 col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT + 32 DIV - col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8581
SELECT + 32 / - col1 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab0 AS cor0
----
46
46
46

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 38 <= + 16 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT ALL - COUNT( DISTINCT + 84 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - COUNT ( DISTINCT + 84 ) FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL - 7 * + COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - 7 * + COUNT ( * ) FROM tab0 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 col0 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL + 38 * + + MAX( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
-2166

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL + 38 * + + MAX ( ALL - 57 ) AS col0 FROM tab0 AS cor0
----
-2166

query I rowsort
SELECT DISTINCT 97 * 35 AS col2 FROM tab2 AS cor0
----
3395

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 33 AND NULL
----

query II rowsort
SELECT col1, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + - 7 FROM tab0 WHERE NOT - col1 IS NULL
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT DISTINCT - MIN( ALL - col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8592
SELECT DISTINCT - MIN ( ALL - col0 ) col1 FROM tab0
----
97

query I rowsort
SELECT ALL + 29 FROM tab0 WHERE NOT NULL <= + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8594
SELECT ALL COUNT( * ) DIV + 66 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT ALL COUNT ( * ) / + 66 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + 41 * col0 FROM tab1 cor0
----
2091
3485
3731

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT ALL + COUNT( * ) AS col1, + MIN( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8596
SELECT ALL + COUNT ( * ) AS col1, + MIN ( ALL col0 ) AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
0
NULL

query I rowsort
SELECT DISTINCT col1 + - 13 + + 2 FROM tab2 AS cor0 WHERE - 64 * col1 NOT BETWEEN ( col2 * - 96 ) AND NULL
----
40
66

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL - 65 + + - MIN( - col2 ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - 65 + + - MIN ( - col2 ) FROM tab1
----
31

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 WHERE 57 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT NULL <= 27
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT DISTINCT - 71 + - + col1 FROM tab0
----
-152
-72
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT + ( - COUNT( * ) ) AS col1 FROM tab1 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8603
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab1 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - + MIN( + - col2 ) + 97 AS col1 FROM tab1 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-8604
SELECT - + MIN ( + - col2 ) + 97 AS col1 FROM tab1 AS cor0
----
193

query I rowsort
SELECT ALL + col0 * + 54 FROM tab0 AS cor0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT + + COUNT( * ) + - 96 AS col0 FROM tab2 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8606
SELECT + + COUNT ( * ) + - 96 AS col0 FROM tab2 cor0
----
-93

query I rowsort
SELECT DISTINCT col1 + - col0 + + 79 FROM tab1 AS cor0
----
-1
35
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + SUM( DISTINCT - 87 ) + COUNT( * ) FROM tab2 AS cor0 WHERE col0 + + - 26 NOT BETWEEN NULL AND + - col2 * - col2 + + - 13 - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT + SUM ( DISTINCT - 87 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 + + - 26 NOT BETWEEN NULL AND + - col2 * - col2 + + - 13 - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8609
SELECT DISTINCT - col1 DIV + 5 FROM tab2 AS cor0
----
-10
-13
-15

skipif mysql # not compatible
query I rowsort label-8609
SELECT DISTINCT - col1 / + 5 FROM tab2 AS cor0
----
-10
-13
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8610
SELECT ALL + col0 DIV col1 + col1 * - ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4949

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL + col0 / col1 + col1 * - ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
-2300
-4864
-4949

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - - SUM( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - - SUM ( - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 31 - + + col1 * - 14 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 - + col2 + + col1 * - - ( ( - col2 ) ) col1 FROM tab2
----
-1520
-580
-667

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL AND ( NULL ) = col0
----

query I rowsort
SELECT ALL + col1 + + 73 AS col2 FROM tab0
----
154
74
94

query II rowsort
SELECT - 76 - - 63, + col0 FROM tab0
----
-13
15
-13
87
-13
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT 32 - ( - COUNT( * ) ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-8618
SELECT 32 - ( - COUNT ( * ) ) FROM tab1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8619
SELECT + COUNT( * ) - - - MIN( col1 ) + + COUNT( * ) DIV + 29 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8619
SELECT + COUNT ( * ) - - - MIN ( col1 ) + + COUNT ( * ) / + 29 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + col1 <> NULL
----

query II rowsort
SELECT - col2, - 19 * - + col0 AS col0 FROM tab1
----
-59
1615
-68
1729
-96
969

query II rowsort
SELECT ALL - 80 AS col2, col0 FROM tab0
----
-80
15
-80
87
-80
97

query I rowsort
SELECT 18 * - col1 AS col2 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT DISTINCT - 83 * col0 + - col0 + 21 AS col2 FROM tab0 AS cor0
----
-1239
-7287
-8127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8625
SELECT DISTINCT - col0 - - - 35 - + col2 + 29 AS col1 FROM tab0 AS cor0 WHERE col2 * - col2 * + + col1 + + col0 > + col2 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT - col0 - - - 35 - + col2 + 29 AS col1 FROM tab0 AS cor0 WHERE col2 * - col2 * + + col1 + + col0 > + col2 - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( + - 14 ) FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT - MIN( - + 23 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8627
SELECT - MIN ( - + 23 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT COUNT( - + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT COUNT ( - + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 56 >= - + col2 + + col1
----

query II rowsort
SELECT ALL + 17, 23 AS col2 FROM tab0 AS cor0
----
17
23
17
23
17
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL + MAX( 46 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL + MAX ( 46 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT - + COUNT( + - 49 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8632
SELECT - + COUNT ( + - 49 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8633
SELECT DISTINCT * FROM tab2 WHERE - - CAST( + 74 AS DECIMAL ) + + CAST( - - col2 AS SIGNED ) - - 25 / col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8633
SELECT DISTINCT * FROM tab2 WHERE - - CAST ( + 74 AS REAL ) + + CAST ( - - col2 AS INTEGER ) - - 25 / col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 49 AS col1 FROM tab1
----
49
49
49

query I rowsort
SELECT DISTINCT col2 + - ( - 34 ) FROM tab1
----
102
130
93

query I rowsort
SELECT 15 * + col0 FROM tab0
----
1305
1455
225

query I rowsort
SELECT DISTINCT col2 * - + ( - - col0 ) FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT - col2 + - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> col0 * + - col2 * + col2 + - col0 + col2 * + col2 - - col0
----

query II rowsort
SELECT + col0 * - - col2, - col2 * - col2 + + 14 AS col2 FROM tab2 AS cor0
----
1058
543
2560
1614
4350
3378

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT - 4 + COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - 4 + COUNT ( * ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT + MIN( ALL - - 71 ) FROM tab0 AS cor0 WHERE 23 * col1 > + + col2 * - 34 * + col2 * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT + MIN ( ALL - - 71 ) FROM tab0 AS cor0 WHERE 23 * col1 > + + col2 * - 34 * + col2 * - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8644
SELECT DISTINCT - ( COUNT( * ) ) DIV + - ( - 18 ) * - 68 * 65 * - - CAST( - 21 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT - ( COUNT ( * ) ) / + - ( - 18 ) * - 68 * 65 * - - CAST ( - 21 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT col0 + + + col2 + + + col0 + - 35 <> ( - ( + + col1 ) * + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8646
SELECT ALL - COUNT( * ) AS col2, 12 FROM tab0 cor0
----
-3
12

skipif mysql # not compatible
query II rowsort label-8646
SELECT ALL - COUNT ( * ) AS col2, 12 FROM tab0 cor0
----
-3
12

query II rowsort
SELECT DISTINCT col0, - 36 FROM tab0 AS cor0 WHERE NOT ( NOT + col0 IS NOT NULL )
----
15
-36
87
-36
97
-36

query II rowsort
SELECT ALL + col0 AS col2, - ( - - col2 ) AS col2 FROM tab2
----
46
-23
64
-40
75
-58

query II rowsort
SELECT DISTINCT + 81, + ( + 12 ) AS col0 FROM tab1
----
81
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 WHERE col2 > + col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8651
SELECT + 1 DIV + COUNT( * ) + + 16 * 57 AS col0, - MIN( ALL - + col2 ) FROM tab1
----
912
96

skipif mysql # not compatible
query II rowsort label-8651
SELECT + 1 / + COUNT ( * ) + + 16 * 57 AS col0, - MIN ( ALL - + col2 ) FROM tab1
----
912
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT + 36 * + 41 * + MIN( + col0 ) FROM tab0
----
22140

skipif mysql # not compatible
query I rowsort label-8653
SELECT + 36 * + 41 * + MIN ( + col0 ) FROM tab0
----
22140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8654
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( + CAST( - + col0 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8654
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( + CAST ( - + col0 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT - COUNT( * ) + + 62 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT - COUNT ( * ) + + 62 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT - + SUM( - col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-8656
SELECT - + SUM ( - col0 ) FROM tab0 cor0
----
199

query II rowsort
SELECT - - 58 * - + col0 AS col1, col1 AS col0 FROM tab1 AS cor0
----
-2958
14
-4930
5
-5278
47

query I rowsort
SELECT - col2 * - col1 + col1 * - - col2 FROM tab2 AS cor0
----
2346
6160
7772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 - - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col0 + + col0 + - col2, + 1 )
----

query II rowsort
SELECT + + ( + - col1 ) AS col1, - 39 + - + col0 FROM tab0 AS cor0
----
-1
-136
-21
-126
-81
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT + 47 * - - MIN( DISTINCT - CAST( - - 8 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
-376

skipif mysql # not compatible
query I rowsort label-8661
SELECT + 47 * - - MIN ( DISTINCT - CAST ( - - 8 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
-376

query I rowsort
SELECT - col1 * - col1 * 50 AS col1 FROM tab0 AS cor0
----
22050
328050
50

query II rowsort
SELECT + + ( + 32 ) AS col1, col1 * + + col0 AS col2 FROM tab2 AS cor0
----
32
2346
32
4928
32
5025

query I rowsort
SELECT DISTINCT - col1 + + - col2 + - ( - ( col1 ) ) + 40 AS col2 FROM tab0 AS cor0
----
-59
-7
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8665
SELECT DISTINCT + col2 + 22 + + col0 * + - 90, ( - CAST( NULL AS SIGNED ) ) * - col1 AS col0 FROM tab0
----
-1281
NULL
-7798
NULL
-8609
NULL

skipif mysql # not compatible
query II rowsort label-8665
SELECT DISTINCT + col2 + 22 + + col0 * + - 90, ( - CAST ( NULL AS INTEGER ) ) * - col1 AS col0 FROM tab0
----
-1281
NULL
-7798
NULL
-8609
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <> + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 97, + 29 AS col1 FROM tab0
----
-97
29
-97
29
-97
29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8668
SELECT ALL * FROM tab1 WHERE NOT + - ( - col0 ) / + col2 * CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8668
SELECT ALL * FROM tab1 WHERE NOT + - ( - col0 ) / + col2 * CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * - + 40 AS col1 FROM tab1
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT MIN( ALL + + 23 ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-8670
SELECT MIN ( ALL + + 23 ) FROM tab0
----
23

query I rowsort
SELECT ALL col2 * ( + ( - + col2 ) ) * + + col2 FROM tab0
----
-1000
-103823
-970299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 66 + 14 * 73 col1 FROM tab1
----
1007
1041
1047

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 col0 FROM tab2 WHERE + + col2 + col1 / col1 + col0 IS NULL
----

query I rowsort
SELECT DISTINCT 64 * ( col0 ) AS col1 FROM tab0
----
5568
6208
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT - + 93 * COUNT( * ) FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8675
SELECT - + 93 * COUNT ( * ) FROM tab2 AS cor0
----
-279

query I rowsort
SELECT + col0 * + - 63 + - ( col1 ) AS col0 FROM tab2
----
-2949
-4109
-4792

query I rowsort
SELECT + + 44 AS col0 FROM tab2 cor0
----
44
44
44

query I rowsort
SELECT col2 * + - 75 * + + col2 + + + col0 FROM tab2 AS cor0
----
-119936
-252225
-39629

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8679
SELECT + CAST( COUNT( * ) AS SIGNED ), + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8679
SELECT + CAST ( COUNT ( * ) AS INTEGER ), + COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT ALL - + 11 FROM tab2 WHERE NOT 30 * - + CAST( - 49 AS SIGNED ) - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - + 11 FROM tab2 WHERE NOT 30 * - + CAST ( - 49 AS INTEGER ) - col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( - col2 / 88 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + ( - col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8683
SELECT ALL COUNT( * ) DIV 87 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL COUNT ( * ) / 87 AS col2 FROM tab1
----
0

query I rowsort
SELECT 1 * + - col2 AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - ( + ( col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2 AS cor0
----
-76

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE - 38 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8688
SELECT + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - - COUNT( * ) * - - 64 * - 47 AS col2 FROM tab2 cor0
----
-9024

skipif mysql # not compatible
query I rowsort label-8689
SELECT - - COUNT ( * ) * - - 64 * - 47 AS col2 FROM tab2 cor0
----
-9024

query II rowsort
SELECT ALL col1, 58 AS col0 FROM tab1 AS cor0
----
14
58
47
58
5
58

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0 cor0
----
71

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE - col2 - - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / col2 / + + col2 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT 82 * COUNT( * ) col1 FROM tab0
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8694
SELECT 82 * COUNT ( * ) col1 FROM tab0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - 87 * - COUNT( * ) + COUNT( * ) * COUNT( ALL 52 ) AS col1 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 87 * - COUNT ( * ) + COUNT ( * ) * COUNT ( ALL 52 ) AS col1 FROM tab2
----
270

query I rowsort
SELECT DISTINCT + ( col0 ) * - + 90 + - col2 AS col0 FROM tab0
----
-1397
-7840
-8829

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 / + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + 52 col2 FROM tab2
----
-1
15
25

query I rowsort
SELECT + col1 * 49 + col0 AS col1 FROM tab2
----
2545
3358
3837

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT + 55 + + ( MAX( DISTINCT 9 ) ) AS col1 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8700
SELECT + 55 + + ( MAX ( DISTINCT 9 ) ) AS col1 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE NULL IN ( - col0, col1, + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IN ( - col0, col1, + col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL + MAX( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + MAX ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + MIN( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + MIN ( - col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 + + + ( 0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8704
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + col1 + + + ( 0 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15

query I rowsort
SELECT ALL - 45 * 0 - + - col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + ( - 19 ) AS col2 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT col0 + - 43 AS col0 FROM tab2 AS cor0
----
21
3
32

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 90 AND + 58 / + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8710
SELECT - col2 DIV - + col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8710
SELECT - col2 / - + col0 FROM tab1
----
0
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8711
SELECT + col2 DIV col1 + + 26 AS col2, + 45 + 19 AS col1 FROM tab2 WHERE NOT - 4 + + col1 IS NULL
----
26
64
26
64
26
64

skipif mysql # not compatible
query II rowsort label-8711
SELECT + col2 / col1 + + 26 AS col2, + 45 + 19 AS col1 FROM tab2 WHERE NOT - 4 + + col1 IS NULL
----
26
64
26
64
26
64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <> - - col1 + - col2 + 79
----

query I rowsort
SELECT - 91 FROM tab1 AS cor0 WHERE NOT ( ( 96 IS NULL ) )
----
-91
-91
-91

query I rowsort
SELECT DISTINCT col1 * - col2 * + col2 + - + col1 AS col0 FROM tab1 AS cor0
----
-129038
-17410
-217375

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT NULL = col2 * col1 - + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT + SUM( - 19 ) col0 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8716
SELECT DISTINCT + SUM ( - 19 ) col0 FROM tab1 AS cor0
----
-57

query I rowsort
SELECT - 94 + + + col2 FROM tab2 AS cor0 WHERE NOT 40 IS NOT NULL
----

query I rowsort
SELECT + - col2 + + 22 FROM tab0 AS cor0
----
-25
-77
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - - col2 col2 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8720
SELECT 82 + - - COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8720
SELECT 82 + - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
NULL
-3

query I rowsort
SELECT DISTINCT + col0 * + 84 FROM tab2 AS cor0
----
3864
5376
6300

query I rowsort
SELECT ALL col0 * - + col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 56 * - col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, 65 AS col0 FROM tab0
----
-1
65
-21
65
-81
65

query I rowsort
SELECT - - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8726
SELECT CAST( 40 AS SIGNED ) col2, + 70 AS col1 FROM tab2
----
40
70
40
70
40
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8726
SELECT CAST ( 40 AS INTEGER ) col2, + 70 AS col1 FROM tab2
----
40
70
40
70
40
70

query II rowsort
SELECT + col1 AS col1, - col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT - SUM( DISTINCT 42 ) AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-8728
SELECT - SUM ( DISTINCT 42 ) AS col0 FROM tab0
----
-42

query I rowsort
SELECT DISTINCT + col2 * + ( - - 42 ) - 59 FROM tab0 AS cor0
----
1915
361
4099

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT + 59 * + - COUNT( * ) + + - 77 AS col1 FROM tab0
----
-254

skipif mysql # not compatible
query I rowsort label-8730
SELECT + 59 * + - COUNT ( * ) + + - 77 AS col1 FROM tab0
----
-254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT + COUNT( * ) DIV 4 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8731
SELECT + COUNT ( * ) / 4 col1 FROM tab0
----
0

query II rowsort
SELECT DISTINCT 28 - - - col2 AS col2, + col0 FROM tab0 AS cor0
----
-19
15
-71
97
18
87

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT ALL + + 4 + - 64 * - - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + + 4 + - 64 * - - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 24 * ( - + 61 ) * 54 - + 87 FROM tab1 AS cor0
----
-79143
-79143
-79143

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL - - SUM( DISTINCT - ( - + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - - SUM ( DISTINCT - ( - + col1 ) ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT ALL 90 * + col0 * 74 FROM tab0 cor0
----
579420
646020
99900

query I rowsort
SELECT DISTINCT + + 73 * 50 * + + col1 FROM tab0 AS cor0
----
295650
3650
76650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + col0 + + ( + - col0 ) col1 FROM tab0 cor0
----
210
7482
9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8740
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8740
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8741
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL IN ( CAST( - 67 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8741
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL IN ( CAST ( - 67 AS INTEGER ) )
----

query I rowsort
SELECT + 10 * + - 71 FROM tab0
----
-710
-710
-710

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT MIN( ALL + col1 ) * + + COUNT( * ) * + + ( - 25 ) AS col0 FROM tab1
----
-375

skipif mysql # not compatible
query I rowsort label-8744
SELECT MIN ( ALL + col1 ) * + + COUNT ( * ) * + + ( - 25 ) AS col0 FROM tab1
----
-375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT 53 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT 53 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - 11 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col2 + + col2 + + 50 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL SUM( DISTINCT ( + 76 ) ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL SUM ( DISTINCT ( + 76 ) ) FROM tab2
----
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT ALL ( + - col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + + col0 * + + col2 AS col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + col2 * 37 + + col1 FROM tab1 AS cor0
----
2188
2563
3566

onlyif mysql # DIV for integer division: 
query I rowsort label-8753
SELECT DISTINCT - col0 DIV 20 + + col2 FROM tab0 AS cor0
----
47
6
95

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - col0 / 20 + + col2 FROM tab0 AS cor0
----
47
6
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8754
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 68 + + col1 + - col0 * 94 * - - 61 FROM tab2 cor0
----
-263645
-366831
-429915

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT + 72 col2, + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
72
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8756
SELECT + 72 col2, + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + COUNT( - ( col1 ) ) + 79 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( - ( col1 ) ) + 79 FROM tab2
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + + col1 + - 77, + col0 * + col1 col0 FROM tab2
----
-40
4928
-49
2346
-68
5025

query I rowsort
SELECT ( col1 ) + col1 - col1 + + 89 * - - col0 AS col0 FROM tab2
----
4145
5773
6742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8760
SELECT + 15 + - 70 DIV - COUNT( * ) AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-8760
SELECT + 15 + - 70 / - COUNT ( * ) AS col2 FROM tab0
----
38

query I rowsort
SELECT DISTINCT ( + col2 ) + - 83 FROM tab2
----
-25
-43
-60

query I rowsort
SELECT col1 + - col0 * 62 FROM tab1
----
-3148
-5265
-5595

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 <= + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT DISTINCT SUM( + col1 ) * + + ( - 63 ) FROM tab0 WHERE - + 9 IS NOT NULL
----
-6489

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT SUM ( + col1 ) * + + ( - 63 ) FROM tab0 WHERE - + 9 IS NOT NULL
----
-6489

query I rowsort
SELECT ALL - col1 * col2 * - + col0 - - col2 FROM tab2 cor0
----
197160
291508
53981

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT - 7 DIV + 72 * + - 70 * + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8766
SELECT - 7 / + 72 * + - 70 * + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT ALL + col1 AS col0, + ( - 94 ) AS col0 FROM tab2
----
51
-94
67
-94
77
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 + - 17 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2, col0 + + 38 col2 FROM tab1 AS cor0
----
59
123
68
129
96
89

query I rowsort
SELECT ALL - - ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - + 25 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-25
-25
-25

query I rowsort
SELECT - - ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT 62 AS col1, col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col1 + - 17 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 56 col2, col1 FROM tab1 AS cor0
----
56
14
56
47
56
5

query II rowsort
SELECT - col2, - 83 AS col2 FROM tab2 AS cor0
----
-23
-83
-40
-83
-58
-83

query II rowsort
SELECT + col1 * + col2, col1 AS col0 FROM tab2
----
1173
51
3080
77
3886
67

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT col0 * col0 DIV - ( + 98 ) AS col2 FROM tab1
----
-26
-73
-84

skipif mysql # not compatible
query I rowsort label-8779
SELECT col0 * col0 / - ( + 98 ) AS col2 FROM tab1
----
-26
-73
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT - - COUNT( * ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - - COUNT ( * ) FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT col2 * + ( - + col2 ) FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab0 WHERE NOT - + 92 BETWEEN NULL AND - + col0 * + 0 * + col2 / + - 47 / + ( + 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT MIN( DISTINCT + - col2 ) * - ( COUNT( * ) ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-8783
SELECT MIN ( DISTINCT + - col2 ) * - ( COUNT ( * ) ) FROM tab2
----
174

query I rowsort
SELECT DISTINCT - col2 * - col2 * ( - 3 ) FROM tab1 AS cor0
----
-10443
-13872
-27648

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT DISTINCT - 3 DIV + - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - 3 / + - col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL + + COUNT( * ) col1 FROM tab0 cor0 WHERE - col1 / + 18 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8786
SELECT ALL + + COUNT ( * ) col1 FROM tab0 cor0 WHERE - col1 / + 18 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL 60 + - + COUNT( * ) + + - 69 * - COUNT( * ) AS col0 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL 60 + - + COUNT ( * ) + + - 69 * - COUNT ( * ) AS col0 FROM tab0
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL col1 / + 60 * - ( + - CAST( NULL AS SIGNED ) ) + + + ( + + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL col1 / + 60 * - ( + - CAST ( NULL AS INTEGER ) ) + + + ( + + col2 ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT ALL + + 39 + - + SUM( - + col0 ) FROM tab0 AS cor0
----
238

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL + + 39 + - + SUM ( - + col0 ) FROM tab0 AS cor0
----
238

query I rowsort
SELECT - col1 + + ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
2065
4019
5558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - 22 col0 FROM tab0 AS cor0
----
109
119
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - - 59 * + COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
174

skipif mysql # not compatible
query I rowsort label-8793
SELECT - - 59 * + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
174

query I rowsort
SELECT DISTINCT + - col2 * + - col0 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8795
SELECT SUM( DISTINCT + - CAST( + 90 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8795
SELECT SUM ( DISTINCT + - CAST ( + 90 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT + 19 AS col0 FROM tab0 cor0
----
19
19
19

query II rowsort
SELECT - - col0 AS col1, col0 * + + col2 AS col1 FROM tab1 cor0
----
51
4896
85
5015
91
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL col1 + + 39 FROM tab2 AS cor0 WHERE NULL > CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL col1 + + 39 FROM tab2 AS cor0 WHERE NULL > CAST ( - col1 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8799
SELECT DISTINCT + col0 + col0 - - col2 AS col2, CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
115
NULL
168
NULL
208
NULL

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT + col0 + col0 - - col2 AS col2, CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
115
NULL
168
NULL
208
NULL

query I rowsort
SELECT + - col2 * + col0 * 28 + - col2 * + + 54 AS col0 FROM tab2 WHERE - col1 + col0 + - col0 * col1 * + 22 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8801
SELECT ALL + 2 * - CAST( NULL AS DECIMAL ) + + - ( + SUM( + col1 ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL + 2 * - CAST ( NULL AS REAL ) + + - ( + SUM ( + col1 ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-8802
SELECT ALL col1 + - - col1 AS col0, col0 - col0 DIV - + 41 AS col2, + - col1 AS col0 FROM tab2
----
9 values hashing to e9c5e0d8cfce19cc41cce8e96ccdf0e5

skipif mysql # not compatible
query III rowsort label-8802
SELECT ALL col1 + - - col1 AS col0, col0 - col0 / - + 41 AS col2, + - col1 AS col0 FROM tab2
----
9 values hashing to e9c5e0d8cfce19cc41cce8e96ccdf0e5

query I rowsort
SELECT - ( - + col1 ) - - 4 AS col1 FROM tab1
----
18
51
9

query II rowsort
SELECT ALL - col1 + + 77 AS col1, - col0 AS col2 FROM tab2
----
0
-64
10
-75
26
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 + - col1 col0 FROM tab1 AS cor0
----
-104
-113
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT - col2 * + col0 + col2 + + + col1 / - + col2 FROM tab1 AS cor0 WHERE + col1 + - CAST( + - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8806
SELECT - col2 * + col0 + col2 + + + col1 / - + col2 FROM tab1 AS cor0 WHERE + col1 + - CAST ( + - col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT COUNT( ALL col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8807
SELECT DISTINCT COUNT ( ALL col1 ) col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT 30 DIV + col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8809
SELECT 30 / + col0 FROM tab0
----
0
0
2

query II rowsort
SELECT ALL + + col1 AS col0, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8811
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT - MIN( + col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8812
SELECT - MIN ( + col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + - ( + ( - col0 ) ) AS col1 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col1 + + 52 + - - col1 IS NULL
----
59
68
96

query I rowsort
SELECT - - col2 - - - 24 AS col2 FROM tab0 WHERE NOT - - col0 >= - - col2
----
23
75

query III rowsort
SELECT ALL + 40 AS col1, ( - col1 ) * + - col1 AS col1, col2 AS col0 FROM tab1
----
9 values hashing to a1cfda2a62e92a52defdd161c37ce50d

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8817
SELECT * FROM tab2 WHERE NOT col1 * col1 + - CAST( - - 42 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8817
SELECT * FROM tab2 WHERE NOT col1 * col1 + - CAST ( - - 42 AS REAL ) >= NULL
----

query I rowsort
SELECT DISTINCT 35 + - 69 AS col2 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col1 * - + col0 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - col0 * + + col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + + 95 * + 36 + + AVG ( DISTINCT + 70 ) + - 22 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT DISTINCT ( + + SUM( DISTINCT + - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT ( + + SUM ( DISTINCT + - col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT ( 97 ) + - - 65 AS col1 FROM tab0 AS cor0
----
162

query I rowsort
SELECT 32 * - col1 - + 68 + 2 FROM tab0 AS cor0
----
-2658
-738
-98

query I rowsort
SELECT col0 + ( - - 45 ) + col2 AS col1 FROM tab2
----
114
149
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 56 ) + + - 13 * - - 99 * + 58 col2 FROM tab1
----
-74702
-74702
-74702

query I rowsort
SELECT - col0 FROM tab1 WHERE - 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col1 col1 FROM tab2 cor0
----
-117
-125
-74

query I rowsort
SELECT ALL - 89 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 col1 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL - SUM( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 WHERE - 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - SUM ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0 WHERE - 41 IS NULL
----
NULL

query I rowsort
SELECT 37 / + + 33 * - - col1 / col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + COUNT( * ) - - ( + COUNT( * ) ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8835
SELECT + COUNT ( * ) - - ( + COUNT ( * ) ) FROM tab2 cor0
----
6

query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab1 WHERE ( NULL ) IS NULL
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 - col0 col0 FROM tab0
----
-36
-46
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL - 1 * COUNT( DISTINCT col1 * 72 ) AS col0 FROM tab0 WHERE + col0 + + CAST( NULL AS SIGNED ) * - 52 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL - 1 * COUNT ( DISTINCT col1 * 72 ) AS col0 FROM tab0 WHERE + col0 + + CAST ( NULL AS INTEGER ) * - 52 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT + MIN( ALL col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-8839
SELECT + MIN ( ALL col0 ) FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT + COUNT( DISTINCT col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT + COUNT ( DISTINCT col1 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT DISTINCT + COUNT( * ) + ( - 92 ) AS col1 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-8841
SELECT DISTINCT + COUNT ( * ) + ( - 92 ) AS col1 FROM tab2
----
-89

query III rowsort
SELECT * FROM tab2 WHERE - 72 <= col1 * col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - 99 AS col2 FROM tab1 WHERE NOT NULL > ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + MAX( - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8844
SELECT + MAX ( - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT 33 - - 74 AS col2 FROM tab1
----
107
107
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8846
SELECT ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col0 col0 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT COUNT( * ) FROM tab2 WHERE NOT - 69 < ( 15 )
----
0

skipif mysql # not compatible
query I rowsort label-8848
SELECT COUNT ( * ) FROM tab2 WHERE NOT - 69 < ( 15 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8849
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT + col0 / 59 NOT IN ( 45 )
----

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab1 WHERE NOT + col0 / 59 NOT IN ( 45 )
----

query I rowsort
SELECT 88 + - 58 FROM tab1
----
30
30
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 98 + - 96 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col0 - 55 * + col1 AS col2 FROM tab2
----
-459
1340
693

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab2 WHERE NOT col0 + col1 * col1 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-8854
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 WHERE NOT col0 + col1 * col1 IS NULL
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( ( col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8856
SELECT ALL COUNT( * ) + - AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL COUNT ( * ) + - AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8857
SELECT + ( MAX( DISTINCT 43 ) ) + CAST( - 12 AS SIGNED ) * COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-8857
SELECT + ( MAX ( DISTINCT 43 ) ) + CAST ( - 12 AS INTEGER ) * COUNT ( * ) FROM tab2
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 1 / - col0 NOT IN ( col2 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + - col0 >= + col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 81 * - 87 AS col1 FROM tab2 AS cor0
----
7047
7047
7047

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + MIN( 20 ) FROM tab1 AS cor0 WHERE col2 + 84 * 47 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + MIN ( 20 ) FROM tab1 AS cor0 WHERE col2 + 84 * 47 IS NOT NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + MAX( DISTINCT 53 ) / MAX( col2 * - col0 + - col0 ) + ( - COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL = col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT + MAX ( DISTINCT 53 ) / MAX ( col2 * - col0 + - col0 ) + ( - COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL = col2
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE - 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + 17 + + ( 19 ) * col0 col1 FROM tab0 AS cor0
----
1033
2401
2591

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 74 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 14 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT + MIN( col1 ) - MAX( - col1 ) col0 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8868
SELECT DISTINCT + MIN ( col1 ) - MAX ( - col1 ) col0 FROM tab1 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab0 AS cor0 WHERE NULL < ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8870
SELECT MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL + col0 + col1 FROM tab2 AS cor0 WHERE NOT - 55 BETWEEN - col1 AND NULL
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT SUM( - 80 ) AS col2 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8872
SELECT SUM ( - 80 ) AS col2 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND col2
----
NULL

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( - ( + col2 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - 94 AND ( ( - 60 ) * col2 + col2 )
----

query I rowsort
SELECT DISTINCT col0 * - + ( 15 ) AS col1 FROM tab2
----
-1125
-690
-960

query I rowsort
SELECT DISTINCT - ( + + col2 ) + ( col0 ) FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL - col1 * + - 52 AS col0 FROM tab1
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8878
SELECT DISTINCT - col0 * - 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-8878
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 59 + col2 FROM tab0 WHERE NOT - ( + 51 ) IS NULL
----
106
158
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT ALL - col0 DIV + - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8880
SELECT ALL - col0 / + - col0 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 FROM tab1 WHERE + 79 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT DISTINCT + col0 * + + col1 + - CAST( col0 AS SIGNED ) FROM tab1
----
340
4186
663

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + col0 * + + col1 + - CAST ( col0 AS INTEGER ) FROM tab1
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL SUM( DISTINCT + col2 ) + + 83 AS col2 FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL SUM ( DISTINCT + col2 ) + + 83 AS col2 FROM tab1
----
306

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL - - CAST( + + 17 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
1003
1156
1632

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL - - CAST ( + + 17 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE + col2 * - 89 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE + col2 * - 89 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8888
SELECT ALL + 82 / + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL + 82 / + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND ( + col0 + + 28 / 2 )
----

query II rowsort
SELECT col0, + col1 AS col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT MIN( ALL col2 ) * ( - 72 ) AS col2 FROM tab2
----
-1656

skipif mysql # not compatible
query I rowsort label-8891
SELECT MIN ( ALL col2 ) * ( - 72 ) AS col2 FROM tab2
----
-1656

query I rowsort
SELECT DISTINCT + - 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 91 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + ( 26 ) + col1 * 31 )
----

query I rowsort
SELECT - - 79 FROM tab2 cor0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT DISTINCT - col0 / 31 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 > ( + + CAST( NULL AS SIGNED ) * col2 + col1 )
----

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT - col0 / 31 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 > ( + + CAST ( NULL AS INTEGER ) * col2 + col1 )
----

query I rowsort
SELECT DISTINCT 14 * - col1 * + + col2 * col0 FROM tab2 AS cor0
----
-2759680
-4080300
-755412

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT ALL + + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + + 16 * 82 AS col2 FROM tab2 AS cor0
----
1312
1312
1312

query I rowsort
SELECT DISTINCT - col2 + + 74 AS col1 FROM tab1 AS cor0 WHERE col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * - col0 * + col2 NOT BETWEEN + 35 - + col1 AND ( - col2 + col2 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - 54 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - ( + COUNT( DISTINCT - - 1 ) ) col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8904
SELECT - ( + COUNT ( DISTINCT - - 1 ) ) col1 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN 57 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT ( + 13 ) * CAST( 97 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1261
1261
1261

skipif mysql # not compatible
query I rowsort label-8906
SELECT ( + 13 ) * CAST ( 97 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1261
1261
1261

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT + COUNT( DISTINCT - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8907
SELECT + COUNT ( DISTINCT - col1 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT ALL - 57 + col1 + - + col1 * + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL - 57 + col1 + - + col1 * + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col1 ) * col0 * + col2 FROM tab0
----
18270
57105
9603

query I rowsort
SELECT col1 + - 42 - - + col2 - - col2 - - col0 AS col1 FROM tab1
----
166
215
232

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT ( + CAST( NULL AS SIGNED ) ) + col2 * - 17 / col0 + col0 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT ( + CAST ( NULL AS INTEGER ) ) + col2 * - 17 / col0 + col0 * col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - COUNT( * ) * - SUM( ( + col1 ) ) AS col0 FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - COUNT ( * ) * - SUM ( ( + col1 ) ) AS col0 FROM tab2
----
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * + 4 col0 FROM tab0
----
-127
-203
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - MIN( - 64 ) col1 FROM tab2
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8914
SELECT - MIN ( - 64 ) col1 FROM tab2
----
64

query III rowsort
SELECT * FROM tab2 WHERE + 79 <> ( + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT DISTINCT + COUNT( * ) - 65 FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8916
SELECT DISTINCT + COUNT ( * ) - 65 FROM tab0 AS cor0
----
-62

query I rowsort
SELECT DISTINCT col0 + - ( + - col0 ) AS col0 FROM tab2 cor0
----
128
150
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - + col0 + - col2 )
----

query I rowsort
SELECT DISTINCT - col2 - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT DISTINCT + CAST( + + 33 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT + CAST ( + + 33 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8921
SELECT + 85 * + col0 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8921
SELECT + 85 * + col0 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 - - col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - 81 FROM tab0 WHERE NULL IN ( + - 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - MIN( DISTINCT - 87 ) + - 67 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-8924
SELECT - MIN ( DISTINCT - 87 ) + - 67 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + col0 * - 23 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + col0 * - 23 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - 29 * col1 * - col0 AS col1 FROM tab2
----
142912
145725
68034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col0 ) col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL SUM( ALL - + col2 ) col0 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8928
SELECT ALL SUM ( ALL - + col2 ) col0 FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, + col1 col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL - 57 * + COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - 57 * + COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
-513

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( - - 13 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - 50 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8933
SELECT + col1 DIV - col1 + - col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-8933
SELECT + col1 / - col1 + - col1 FROM tab1 AS cor0
----
-15
-48
-6

query I rowsort
SELECT ALL col0 * + 7 * col1 FROM tab1
----
2975
29939
4998

query I rowsort
SELECT - 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # DIV for integer division: 
query II rowsort label-8936
SELECT - col1 DIV ( - col2 ), col1 FROM tab0
----
0
1
1
81
2
21

skipif mysql # not compatible
query II rowsort label-8936
SELECT - col1 / ( - col2 ), col1 FROM tab0
----
0
1
1
81
2
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) BETWEEN col1 AND NULL )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL + + 25 * + 66 / + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8938
SELECT ALL + + 25 * + 66 / + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 60 >= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 72 ) * + col0, col1 + col0 col0 FROM tab2 AS cor0
----
-3312
97
-4608
141
-5400
142

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8943
SELECT + 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-8943
SELECT + col0 + + ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - + col0 + - col1 AS col0, - col0 FROM tab1 AS cor0
----
-138
-91
-65
-51
-90
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT - COUNT( * ) + - 12 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8945
SELECT - COUNT ( * ) + - 12 FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-8946
SELECT + + 50 DIV + 1, + 45 AS col0 FROM tab1 AS cor0
----
50
45
50
45
50
45

skipif mysql # not compatible
query II rowsort label-8946
SELECT + + 50 / + 1, + 45 AS col0 FROM tab1 AS cor0
----
50
45
50
45
50
45

query I rowsort
SELECT ALL + col2 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1000
103823
970299

query I rowsort
SELECT - col0 + + col0 * - col2 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 95 IS NULL
----
-249747
-426360
-563199

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT ALL + - 50 DIV 26 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL + - 50 / 26 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 + - 51 AS col0 FROM tab1 AS cor0
----
-110
-119
-147

query I rowsort
SELECT ALL - 66 FROM tab2 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8952
SELECT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query II rowsort
SELECT ALL - col0, + col1 FROM tab2 WHERE NOT - 41 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 = ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL - - COUNT( * ) + - ( COUNT( - + col2 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - - COUNT ( * ) + - ( COUNT ( - + col2 ) ) FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 2 + col0 FROM tab1
----
53
87
93

query II rowsort
SELECT + col2 AS col1, col1 AS col0 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT SUM( ALL col1 ) + COUNT( * ) FROM tab1 AS cor0 WHERE + col0 * - col1 * + col0 NOT BETWEEN - col0 * + col1 + + - col0 AND NULL
----
69

skipif mysql # not compatible
query I rowsort label-8958
SELECT SUM ( ALL col1 ) + COUNT ( * ) FROM tab1 AS cor0 WHERE + col0 * - col1 * + col0 NOT BETWEEN - col0 * + col1 + + - col0 AND NULL
----
69

query I rowsort
SELECT ALL col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query II rowsort
SELECT + col0 AS col2, - 23 FROM tab0 cor0
----
15
-23
87
-23
97
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT col2 * - + CAST( NULL AS SIGNED ) + - 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT col2 * - + CAST ( NULL AS INTEGER ) + - 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - col1 * + col2 FROM tab0 AS cor0 WHERE - 89 + ( - 12 ) + col2 * + 93 * 14 BETWEEN col2 + 42 * - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ALL - + 94 DIV + - col0 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-8963
SELECT ALL - + 94 / + - col0 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 + + 85 + - + 44 * + col1 AS col2 FROM tab1 AS cor0
----
-130
-1936
-517

onlyif mysql # DIV for integer division: 
query II rowsort label-8965
SELECT DISTINCT - col1 DIV 81 - - - col1, col0 DIV + - col2 AS col1 FROM tab0 AS cor0
----
-1
0
-21
-8
-82
0

skipif mysql # not compatible
query II rowsort label-8965
SELECT DISTINCT - col1 / 81 - - - col1, col0 / + - col2 AS col1 FROM tab0 AS cor0
----
-1
0
-21
-8
-82
0

query I rowsort
SELECT - 23 * + 95 AS col2 FROM tab0 WHERE NULL IS NULL
----
-2185
-2185
-2185

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8968
SELECT DISTINCT CAST( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT CAST ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS REAL ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT COUNT( * ) * COUNT( * ) + - + 10 * - - 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + - + 10 * - - 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT MIN( - - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8970
SELECT MIN ( - - ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT IN ( col1, + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( ( + 77 ) ) * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8973
SELECT 16 AS col2 FROM tab0 cor0 WHERE ( NULL ) BETWEEN - - CAST( NULL AS SIGNED ) / col2 AND ( + 17 - + col0 )
----

skipif mysql # not compatible
query I rowsort label-8973
SELECT 16 AS col2 FROM tab0 cor0 WHERE ( NULL ) BETWEEN - - CAST ( NULL AS INTEGER ) / col2 AND ( + 17 - + col0 )
----

query I rowsort
SELECT DISTINCT col2 - ( - col2 ) AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT - col0 - - col0 + col2 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE col1 * 35 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT 6 DIV - col2 - 52 AS col1 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT 6 / - col2 - 52 AS col1 FROM tab2 AS cor0
----
-52

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 48 + + + col2 + - col2 * col0 = + col2 * - - 37 + 16 + + col0 * col0 OR NOT ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT DISTINCT CAST( - - 33 AS SIGNED ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT CAST ( - - 33 AS INTEGER ) AS col0 FROM tab0
----
33

query II rowsort
SELECT DISTINCT col2, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

query II rowsort
SELECT ALL 94 AS col0, - ( - - 49 ) FROM tab1
----
94
-49
94
-49
94
-49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 + - col1 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 54 - + col2 FROM tab0 WHERE NOT ( - 36 + + col2 ) NOT BETWEEN + 98 - + 2 AND NULL
----

query II rowsort
SELECT ALL + + ( - 70 ) * + col0 AS col1, + col0 FROM tab2 AS cor0
----
-3220
46
-4480
64
-5250
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( 23 ) * - - col0 + + 38 <> ( NULL )
----

query I rowsort
SELECT - 67 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-107
-125
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT ALL - - MIN( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8987
SELECT ALL - - MIN ( DISTINCT + col0 ) col0 FROM tab1 AS cor0
----
51

query II rowsort
SELECT + col1 / + - col2 AS col0, col2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT - COUNT( DISTINCT + 58 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8989
SELECT - COUNT ( DISTINCT + 58 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT ALL ( + col2 ) * - col0 AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8991
SELECT ALL + COUNT( * ) * + - 60 + + - CAST( NULL AS SIGNED ) + 74 - + CAST( + 97 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL + COUNT ( * ) * + - 60 + + - CAST ( NULL AS INTEGER ) + 74 - + CAST ( + 97 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT + CAST( + 82 AS SIGNED ) col2 FROM tab0 cor0
----
82
82
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8992
SELECT + CAST ( + 82 AS INTEGER ) col2 FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT ALL - + 54 * + 0 * + 16 * - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE + 63 + + CAST( NULL AS SIGNED ) * + 38 <= - col2
----

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE + 63 + + CAST ( NULL AS INTEGER ) * + 38 <= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 90 col1, col0 * + 33 FROM tab2 AS cor0
----
90
1518
90
2112
90
2475

query II rowsort
SELECT + col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

query I rowsort
SELECT - 31 * - col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT ALL + col1 + + CAST( - col2 AS SIGNED ) * - col0 AS col2 FROM tab2
----
1109
2637
4417

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + col1 + + CAST ( - col2 AS INTEGER ) * - col0 AS col2 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT ALL col2 * col0 + + + 61 AS col0 FROM tab2
----
1119
2621
4411

query I rowsort
SELECT DISTINCT + 61 + - col1 FROM tab1
----
14
47
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9001
SELECT col1 + - col0 AS col0, + CAST( - ( + + ( + 29 ) ) AS SIGNED ) FROM tab2
----
-8
-29
13
-29
5
-29

skipif mysql # not compatible
query II rowsort label-9001
SELECT col1 + - col0 AS col0, + CAST ( - ( + + ( + 29 ) ) AS INTEGER ) FROM tab2
----
-8
-29
13
-29
5
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9002
SELECT DISTINCT CAST( col1 AS SIGNED ) + + ( col1 ) AS col0 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + ( col1 ) AS col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9003
SELECT + COUNT( * ), + COUNT( * ) FROM tab2, tab0 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-9003
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2, tab0 AS cor0
----
9
9

query I rowsort
SELECT ALL 50 + 6 - + col2 FROM tab2
----
-2
16
33

query I rowsort
SELECT 6 + + col1 FROM tab1
----
11
20
53

query I rowsort
SELECT ALL + 27 + - + 55 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT MIN( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9007
SELECT MIN ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9009
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( - - 19 AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9009
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - 19 AS INTEGER ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT + COUNT( * ) + + - 96 AS col1 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + COUNT ( * ) + + - 96 AS col1 FROM tab0 AS cor0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - col0
----

query I rowsort
SELECT DISTINCT - 30 * + - 92 + + 73 FROM tab2 AS cor0
----
2833

query I rowsort
SELECT DISTINCT col2 - - 69 AS col1 FROM tab1 AS cor0
----
128
137
165

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 97 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - ( - + col1 ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT col2 * - - col2 AS col1 FROM tab2
----
1600
3364
529

query I rowsort
SELECT ( col1 ) * 17 AS col0 FROM tab1
----
238
799
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT + MIN( col2 ) DIV - 95 * 53 + + 97 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9018
SELECT + MIN ( col2 ) / - 95 * 53 + + 97 FROM tab1 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT SUM( - 72 ) AS col0 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT SUM ( - 72 ) AS col0 FROM tab1 AS cor0
----
-216

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( col0 + + - ( col2 ) NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9021
SELECT DISTINCT + CAST( - 80 AS SIGNED ) / - ( + + 66 ) * 94 * CAST( 84 AS SIGNED ) FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT + CAST ( - 80 AS INTEGER ) / - ( + + 66 ) * 94 * CAST ( 84 AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 37 + 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-64

query I rowsort
SELECT ALL + col2 * - 12 AS col1 FROM tab2 cor0
----
-276
-480
-696

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 / + col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 95 ) AS col2 FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE 82 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9027
SELECT + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE 82 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9028
SELECT ALL + col0 DIV + - col1 FROM tab1 AS cor0 WHERE NOT ( - - 9 ) IS NULL
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL + col0 / + - col1 FROM tab1 AS cor0 WHERE NOT ( - - 9 ) IS NULL
----
-1
-17
-3

query I rowsort
SELECT 7 * - col1 + + col2 + + col0 FROM tab2 AS cor0
----
-288
-336
-435

query I rowsort
SELECT ALL - ( + 47 ) FROM tab1
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT ALL col1 * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL col1 * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * + 94 FROM tab0 WHERE NULL >= + 10
----

query III rowsort
SELECT * FROM tab0 WHERE + - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9034
SELECT ALL + 74 + - col0 - col0 * + - col1 + - CAST( + 48 AS SIGNED ) + + 16 * ( 91 ) * - - col2 col1 FROM tab2
----
35814
63130
89424

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9034
SELECT ALL + 74 + - col0 - col0 * + - col1 + - CAST ( + 48 AS INTEGER ) + + 16 * ( 91 ) * - - col2 col1 FROM tab2
----
35814
63130
89424

onlyif mysql # DIV for integer division: 
query I rowsort label-9035
SELECT DISTINCT col2 - + col2 DIV ( + - col2 ) AS col0 FROM tab1 WHERE - - 75 < col2
----
97

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT col2 - + col2 / ( + - col2 ) AS col0 FROM tab1 WHERE - - 75 < col2
----
97

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE + - col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT 67 - - + 75 FROM tab0
----
142
142
142

query I rowsort
SELECT + col2 - + 27 AS col2 FROM tab2 AS cor0
----
-4
13
31

query II rowsort
SELECT ALL - - col1 - + col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

query I rowsort
SELECT ALL + 51 - col0 AS col1 FROM tab2 AS cor0
----
-13
-24
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT - COUNT( * ) - - 45 AS col2 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT - COUNT ( * ) - - 45 AS col2 FROM tab1 cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - - ( - col0 ) col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT - COUNT( * ) * SUM( DISTINCT + col2 ) AS col2 FROM tab1 WHERE col1 BETWEEN 83 AND - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT - COUNT ( * ) * SUM ( DISTINCT + col2 ) AS col2 FROM tab1 WHERE col1 BETWEEN 83 AND - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT DISTINCT + 26 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + 26 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - col2 col1, 61 AS col1 FROM tab2
----
17
61
23
61
24
61

query II rowsort
SELECT DISTINCT 71, + ( col1 ) / - col2 + - col0 - 96 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col1 / - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - ( - col2 ) > 17
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + + 21 * + - col1 = col0
----

query I rowsort
SELECT ALL 96 * - col2 FROM tab0 cor0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT + col2 * ( + ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + col2 * ( + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 68 * + + col1 FROM tab0
----
-1428
-5508
-68

query I rowsort
SELECT col2 * - + 8 AS col0 FROM tab2
----
-184
-320
-464

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - 59 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9053
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 59 IS NULL
----
-3

query II rowsort
SELECT + col1 AS col0, col1 AS col0 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT MIN( + CAST( + ( 32 ) AS SIGNED ) ) * - 95 AS col2 FROM tab0
----
-3040

skipif mysql # not compatible
query I rowsort label-9055
SELECT MIN ( + CAST ( + ( 32 ) AS INTEGER ) ) * - 95 AS col2 FROM tab0
----
-3040

query I rowsort
SELECT + col1 * - 46 FROM tab2 WHERE NOT 11 IS NULL
----
-2346
-3082
-3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT + col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL COUNT( + + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL COUNT ( + + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9059
SELECT - - ( - - col0 ) DIV col1 DIV - - 50 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9059
SELECT - - ( - - col0 ) / col1 / - - 50 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL - MIN( col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL - MIN ( col0 ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT + col0, + 84 + - col1 AS col2 FROM tab1 AS cor0
----
51
70
85
79
91
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9062
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT + MIN( ALL - 42 ) AS col2 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT + MIN ( ALL - 42 ) AS col2 FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL - - CAST( - - col2 AS SIGNED ) FROM tab0 WHERE + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL - - CAST ( - - col2 AS INTEGER ) FROM tab0 WHERE + col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> 53 + - 10 + 98
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - 99 + - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT col1 + col2 + col2 AS col2 FROM tab2 AS cor0
----
157
183
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( - ( ( - ( + + col1 ) ) ) ) BETWEEN - col2 AND NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 96 col2 FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT 98 + + COUNT( * ) AS col1 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-9071
SELECT 98 + + COUNT ( * ) AS col1 FROM tab0
----
101

query I rowsort
SELECT + + col0 + + + 21 - + col0 AS col0 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL 18 + + 48 FROM tab1
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT - ( + 59 ) + - SUM( DISTINCT + col1 ) AS col0 FROM tab2
----
-254

skipif mysql # not compatible
query I rowsort label-9074
SELECT - ( + 59 ) + - SUM ( DISTINCT + col1 ) AS col0 FROM tab2
----
-254

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL BETWEEN - 85 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT - 71 + + - 90 * - COUNT( * ) col0 FROM tab2
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9076
SELECT - 71 + + - 90 * - COUNT ( * ) col0 FROM tab2
----
199

query I rowsort
SELECT - col0 + + 26 FROM tab0
----
-61
-71
11

query I rowsort
SELECT - col1 * + + col2 + - col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT - 39 + - col1 FROM tab2
----
-106
-116
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT ALL COUNT( * ) - + + 94 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL COUNT ( * ) - + + 94 FROM tab0
----
-91

query I rowsort
SELECT DISTINCT col2 * + col1 + + ( + 84 ) FROM tab1
----
1428
3280
379

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + ( 95 ) col2 FROM tab0 AS cor0
----
1995
7695
95

query I rowsort
SELECT - - 75 - - + col2 FROM tab0 AS cor0
----
122
174
85

query I rowsort
SELECT + + col2 - - 70 AS col0 FROM tab1 AS cor0
----
129
138
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9085
SELECT - CAST( + - COUNT( * ) AS SIGNED ) - + - 97 * - 20 AS col0 FROM tab2 AS cor0
----
-1937

skipif mysql # not compatible
query I rowsort label-9085
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) - + - 97 * - 20 AS col0 FROM tab2 AS cor0
----
-1937

query I rowsort
SELECT DISTINCT + 25 * - - col1 + + col0 - col0 AS col0 FROM tab1 AS cor0
----
1175
125
350

query I rowsort
SELECT DISTINCT col0 * + 11 FROM tab2
----
506
704
825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9088
SELECT + + col1 + col1 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9088
SELECT + + col1 + col1 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 WHERE NOT + - col0 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT + MIN( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9090
SELECT + MIN ( DISTINCT + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * col0 = NULL
----

query I rowsort
SELECT col1 * + 93 AS col0 FROM tab0 AS cor0
----
1953
7533
93

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( ( 83 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9095
SELECT ALL + col0 DIV 40 AS col0 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + col0 / 40 AS col0 FROM tab1 AS cor0
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > ( 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT + MIN( + col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9097
SELECT + MIN ( + col1 ) FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE 82 IN ( + 43 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - ( COUNT( + 57 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9099
SELECT - ( COUNT ( + 57 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT col0 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT - col1 DIV - 93 col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9101
SELECT - col1 / - 93 col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT DISTINCT + - COUNT( + col2 ) AS col0, + 73 AS col0 FROM tab1 AS cor0
----
-3
73

skipif mysql # not compatible
query II rowsort label-9102
SELECT DISTINCT + - COUNT ( + col2 ) AS col0, + 73 AS col0 FROM tab1 AS cor0
----
-3
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab0 AS cor0
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 <= + + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT SUM( DISTINCT + 50 ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9105
SELECT SUM ( DISTINCT + 50 ) AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT + 6 * + + col0 FROM tab0 AS cor0
----
522
582
90

query III rowsort
SELECT * FROM tab0 WHERE + + col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9108
SELECT DISTINCT - SUM( + col1 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT - SUM ( + col1 ) / - COUNT ( * ) FROM tab0 AS cor0
----
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( + col1 ) > - col1
----

query I rowsort
SELECT ALL + col1 + - - 54 FROM tab0 AS cor0
----
135
55
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 col1 FROM tab2 AS cor0
----
86
86
86

query II rowsort
SELECT + 81, 76 AS col0 FROM tab0 cor0
----
81
76
81
76
81
76

query I rowsort
SELECT ALL - - ( - - 67 ) AS col2 FROM tab2 AS cor0
----
67
67
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 * - col1 BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * + - ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT - col2 DIV - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT - col2 / - + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + - - 29 + + + col0 FROM tab1
----
29

query I rowsort
SELECT - 99 + - + col0 AS col0 FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT + col1 - - 29 + 22 * - col0 FROM tab2
----
-1302
-1554
-932

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT 16 + - COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT 16 + - COUNT ( * ) FROM tab0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT col0 * + - CAST( col0 AS SIGNED ) + - - col1 AS col2 FROM tab0
----
-144
-7548
-9408

skipif mysql # not compatible
query I rowsort label-9121
SELECT col0 * + - CAST ( col0 AS INTEGER ) + - - col1 AS col2 FROM tab0
----
-144
-7548
-9408

query I rowsort
SELECT DISTINCT col2 + + 46 * - + 37 AS col2 FROM tab0
----
-1603
-1655
-1692

onlyif mysql # DIV for integer division: 
query II rowsort label-9123
SELECT ALL - 66 - + - col0, + 69 DIV + + col2 AS col1 FROM tab1 AS cor0
----
-15
0
19
1
25
1

skipif mysql # not compatible
query II rowsort label-9123
SELECT ALL - 66 - + - col0, + 69 / + + col2 AS col1 FROM tab1 AS cor0
----
-15
0
19
1
25
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9124
SELECT ALL - + col1 DIV - 28 + - 31 - + 83 AS col0 FROM tab1 AS cor0
----
-113
-114
-114

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL - + col1 / - 28 + - 31 - + 83 AS col0 FROM tab1 AS cor0
----
-113
-114
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT DISTINCT MAX( ALL + 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT MAX ( ALL + 47 ) FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT + - 39 FROM tab1 AS cor0 WHERE NOT + CAST( + col0 AS SIGNED ) BETWEEN NULL AND - - col1
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-9126
SELECT + - 39 FROM tab1 AS cor0 WHERE NOT + CAST ( + col0 AS INTEGER ) BETWEEN NULL AND - - col1
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + - MAX( + + col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9127
SELECT + - MAX ( + + col2 ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - + col2 * + col0 - + ( - + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * + 49 FROM tab1 AS cor0
----
-2303
-245
-686

query I rowsort
SELECT ( + 67 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT COUNT( * ) * 79 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9131
SELECT COUNT ( * ) * 79 FROM tab0 AS cor0
----
237

query III rowsort
SELECT - col0, col0, ( + - col2 ) AS col2 FROM tab0
----
9 values hashing to 1cd227ec6d595918d643c937bed81fc5

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT + MAX( DISTINCT - + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT DISTINCT - 90 + + CAST( - + col2 AS SIGNED ) AS col2 FROM tab0
----
-100
-137
-189

skipif mysql # not compatible
query I rowsort label-9134
SELECT DISTINCT - 90 + + CAST ( - + col2 AS INTEGER ) AS col2 FROM tab0
----
-100
-137
-189

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - col2 * + col0, + col1 ) OR NOT - 23 * + col2 + - col0 < - ( + - 61 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT COUNT( ALL + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9136
SELECT COUNT ( ALL + col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col2 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT ALL - COUNT( DISTINCT col1 ) + + - 2 AS col0 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL - COUNT ( DISTINCT col1 ) + + - 2 AS col0 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT - col2 * - - col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT DISTINCT + 50 AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT + 50 AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL
----

query I rowsort
SELECT 79 + - col0 AS col2 FROM tab0
----
-18
-8
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL 74 * - SUM( + col0 ) FROM tab2
----
-13690

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL 74 * - SUM ( + col0 ) FROM tab2
----
-13690

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 + col2 * 92 * + col2 * + + 36 + col2 AND + col1
----

query I rowsort
SELECT col2 + - 65 * - col2 + - 51 * - 52 + 85 FROM tab2 AS cor0
----
4255
5377
6565

query I rowsort
SELECT 86 * - col1 * col1 FROM tab1
----
-16856
-189974
-2150

query I rowsort
SELECT - 41 + + - 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 907dea30bfa8e2d7a89718dcdc47bc4e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + + col2 ) col2, 58 + - + 26 + + col2 AS col0 FROM tab0
----
-10
42
-47
79
-99
131

query II rowsort
SELECT ( - 42 ), + col2 AS col0 FROM tab0
----
-42
10
-42
47
-42
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 + - 16 + - ( + col1 ) NOT BETWEEN col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 52 + - ( 10 ) AS col1 FROM tab2 AS cor0
----
-62
-62
-62

query II rowsort
SELECT DISTINCT - + 18, col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT + col1 + - 13 FROM tab1 AS cor0
----
-8
1
34

query I rowsort
SELECT - 79 + 34 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT + 45 * + col1 AS col2 FROM tab1
----
2115
225
630

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9155
SELECT * FROM tab2 WHERE - - 5 >= + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9155
SELECT * FROM tab2 WHERE - - 5 >= + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT + - 99 / - + col0 AS col1 FROM tab1 WHERE NULL <= - 85 - + - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT ( - + 8 ) FROM tab2 AS cor0
----
-8
-8
-8

query II rowsort
SELECT DISTINCT + 31 AS col0, 21 FROM tab1 AS cor0
----
31
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9161
SELECT DISTINCT - MIN( - col2 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( - 2 ) < - ( + col1 )
----
99
NULL

skipif mysql # not compatible
query II rowsort label-9161
SELECT DISTINCT - MIN ( - col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( - 2 ) < - ( + col1 )
----
99
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9162
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + CAST( NULL AS DECIMAL ) - + 30 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9162
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + CAST ( NULL AS REAL ) - + 30 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9163
SELECT ALL col2 * col1 AS col2, + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT + 35 < ( - col2 * - 79 * col1 + 41 )
----

skipif mysql # not compatible
query II rowsort label-9163
SELECT ALL col2 * col1 AS col2, + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT + 35 < ( - col2 * - 79 * col1 + 41 )
----

query II rowsort
SELECT - col2 AS col2, + col1 FROM tab2 cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - 63 * + 73 AS col1 FROM tab1 cor0
----
-4599
-4599
-4599

query I rowsort
SELECT DISTINCT + 54 * - - col1 AS col2 FROM tab1 cor0
----
2538
270
756

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT ALL - - col1 * col2 DIV - 78 - + col2 AS col1 FROM tab0 AS cor0
----
-100
-12
-95

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - - col1 * col2 / - 78 - + col2 AS col1 FROM tab0 AS cor0
----
-100
-12
-95

query I rowsort
SELECT - 33 FROM tab0 WHERE NOT NULL >= + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL - 24 + - MAX( - col2 ) * + 90 FROM tab1
----
5286

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - 24 + - MAX ( - col2 ) * + 90 FROM tab1
----
5286

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT COUNT( DISTINCT col1 ) * COUNT( * ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9170
SELECT DISTINCT COUNT ( DISTINCT col1 ) * COUNT ( * ) col0 FROM tab0
----
9

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col0, - col1, + 54 )
----

query I rowsort
SELECT DISTINCT + + col0 * - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 42 + - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL + ( + 1 ) * - + COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + ( + 1 ) * - + COUNT ( * ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 37 + + col2 * 78 col2 FROM tab0
----
3582
733
7586

query I rowsort
SELECT ALL 75 + + col0 * col1 AS col0 FROM tab2
----
2421
5003
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) col2 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) col2 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT MAX( ALL col0 ) AS col2 FROM tab1 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT MAX ( ALL col0 ) AS col2 FROM tab1 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT 44 * + COUNT( * ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9180
SELECT 44 * + COUNT ( * ) FROM tab1 AS cor0
----
132

query II rowsort
SELECT - + 24 AS col0, + 34 FROM tab1 AS cor0
----
-24
34
-24
34
-24
34

query I rowsort
SELECT DISTINCT + 87 - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-57
-60
-72

query I rowsort
SELECT col2 * - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT DISTINCT + MIN( DISTINCT - 44 ) AS col0 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT + MIN ( DISTINCT - 44 ) AS col0 FROM tab0 AS cor0
----
-44

query I rowsort
SELECT DISTINCT 75 * + col0 FROM tab2
----
3450
4800
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT ALL - MAX( - col1 ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9186
SELECT ALL - MAX ( - col1 ) FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT MAX( + col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9187
SELECT MAX ( + col0 ) col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / + - col2 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9189
SELECT + 46 DIV - SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT + 46 / - SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab2 cor0
----
58

query I rowsort
SELECT DISTINCT ( - + 15 ) FROM tab1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT ( + 57 ) + - col0 DIV - + 21 AS col2 FROM tab1
----
59
61
61

skipif mysql # not compatible
query I rowsort label-9192
SELECT ( + 57 ) + - col0 / - + 21 AS col2 FROM tab1
----
59
61
61

query I rowsort
SELECT + col1 * - - col2 * - 80 + + col2 AS col1 FROM tab2
----
-246360
-310822
-93817

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT 78 + - 47 DIV + col1 FROM tab1
----
69
75
77

skipif mysql # not compatible
query I rowsort label-9194
SELECT 78 + - 47 / + col1 FROM tab1
----
69
75
77

query I rowsort
SELECT ALL 66 + - col2 * col2 * + col0 FROM tab1
----
-295819
-420718
-469950

query I rowsort
SELECT DISTINCT - col1 * - col0 - col2 + - - 47 * col0 * + col0 / + col0 * - 51 + col1 + + col2 - + col0 - 13 AS col2 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT ALL + MAX( DISTINCT + 45 ) AS col0 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-9198
SELECT ALL + MAX ( DISTINCT + 45 ) AS col0 FROM tab1 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9199
SELECT + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT DISTINCT + COUNT( * ) + + 59 AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT + COUNT ( * ) + + 59 AS col1 FROM tab2
----
62

query II rowsort
SELECT + col2 AS col1, col2 FROM tab2 WHERE NULL IS NULL
----
23
23
40
40
58
58

query II rowsort
SELECT ALL - col2 + + + col1 + - + col2, col2 AS col0 FROM tab0 AS cor0
----
-13
47
-197
99
1
10

query I rowsort
SELECT - - col1 * - col2 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-18183
-57090
-9506

query I rowsort
SELECT + - 54 AS col2 FROM tab0 AS cor0 WHERE + col1 * col2 BETWEEN NULL AND col0 - col0 * + - 98 - - 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9205
SELECT - CAST( NULL AS SIGNED ) * col1 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT - CAST ( NULL AS INTEGER ) * col1 + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL - COUNT( * ) * 93 - 24 AS col2 FROM tab1 AS cor0
----
-303

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL - COUNT ( * ) * 93 - 24 AS col2 FROM tab1 AS cor0
----
-303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9207
SELECT ALL - COUNT( * ) DIV - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL - COUNT ( * ) / - COUNT ( * ) FROM tab0
----
1

query I rowsort
SELECT 21 * 93 FROM tab0
----
1953
1953
1953

query II rowsort
SELECT DISTINCT - col0 * 3 AS col2, + col0 AS col2 FROM tab0
----
-261
87
-291
97
-45
15

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 16 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN NULL AND + 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 42 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
42
-10
42
-47
42
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 * + col0 * + 7 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - SUM( - col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - SUM ( - col0 ) AS col2 FROM tab1
----
227

query II rowsort
SELECT + 94 + - col1, col0 FROM tab1 cor0
----
47
91
80
51
89
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL + + MIN( ALL col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + + MIN ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + + 64 * - 65 + + col0 AS col1 FROM tab2 AS cor0
----
-4085
-4096
-4114

query I rowsort
SELECT - col0 + - + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL - ( + ( + - COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL - ( + ( + - COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT col0 * - CAST( NULL AS SIGNED ) * - 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9221
SELECT col0 * - CAST ( NULL AS INTEGER ) * - 11 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT MIN( - - col2 ) * + ( + 27 ) AS col2 FROM tab1 cor0
----
1593

skipif mysql # not compatible
query I rowsort label-9222
SELECT MIN ( - - col2 ) * + ( + 27 ) AS col2 FROM tab1 cor0
----
1593

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IN ( + 83 )
----

query I rowsort
SELECT ALL col1 + - - col0 AS col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT + CAST( NULL AS SIGNED ) + + col1 FROM tab0 WHERE 8 * + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9225
SELECT + CAST ( NULL AS INTEGER ) + + col1 FROM tab0 WHERE 8 * + col1 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 66 * 37 + col0 AS col0 FROM tab0
----
-197787
-2345
-51195

query II rowsort
SELECT 97, + col1 AS col0 FROM tab1
----
97
14
97
47
97
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT DISTINCT + ( + + COUNT( * ) ) + - - 43 + - 10 FROM tab2 WHERE NULL IS NULL
----
36

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + ( + + COUNT ( * ) ) + - - 43 + - 10 FROM tab2 WHERE NULL IS NULL
----
36

query II rowsort
SELECT ALL + 79, col1 AS col2 FROM tab0 AS cor0
----
79
1
79
21
79
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT - ( col2 ) - + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-9230
SELECT - ( col2 ) - + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT ALL - 57 * + - col2 FROM tab2 AS cor0
----
1311
2280
3306

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9233
SELECT DISTINCT + col1 + - col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-8
NULL
13
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9233
SELECT DISTINCT + col1 + - col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-8
NULL
13
NULL
5
NULL

query I rowsort
SELECT DISTINCT + 49 FROM tab1 WHERE ( + 13 ) >= + 39
----

query I rowsort
SELECT DISTINCT 95 - 26 AS col1 FROM tab2 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col1 ) AND + col0 * + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT MIN( 38 ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-9237
SELECT MIN ( 38 ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL MAX( + col2 ) * 47 - + 58 FROM tab0 AS cor0
----
4595

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL MAX ( + col2 ) * 47 - + 58 FROM tab0 AS cor0
----
4595

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT DISTINCT + + COUNT( * ) * + 60 AS col1, + 80 AS col1 FROM tab2 AS cor0
----
180
80

skipif mysql # not compatible
query II rowsort label-9239
SELECT DISTINCT + + COUNT ( * ) * + 60 AS col1, + 80 AS col1 FROM tab2 AS cor0
----
180
80

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT 24 BETWEEN NULL AND - ( - - col2 )
----
-51
-67
-77

query I rowsort
SELECT + col1 * - 93 FROM tab0
----
-1953
-7533
-93

query II rowsort
SELECT - col2 * + - ( 41 ) AS col1, col0 AS col0 FROM tab1
----
2419
85
2788
91
3936
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - + MAX( DISTINCT col2 ) FROM tab0 WHERE NOT col2 * + 21 * col2 IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-9243
SELECT - + MAX ( DISTINCT col2 ) FROM tab0 WHERE NOT col2 * + 21 * col2 IS NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT 67 * - SUM( - - 28 ) AS col1 FROM tab1
----
-5628

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT 67 * - SUM ( - - 28 ) AS col1 FROM tab1
----
-5628

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT ALL - MIN( ALL col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL - MIN ( ALL col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9246
SELECT - CAST( SUM( ALL col0 ) AS SIGNED ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9246
SELECT - CAST ( SUM ( ALL col0 ) AS INTEGER ) AS col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9247
SELECT - + CAST( NULL AS SIGNED ) * SUM( ALL + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT - + CAST ( NULL AS INTEGER ) * SUM ( ALL + col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 44 - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 + - 79 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL - 99 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL - 99 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
297

query III rowsort
SELECT DISTINCT col0, + col1 AS col1, - col0 FROM tab2
----
9 values hashing to 050bc7cdc1652e3f8825f734020b95ee

query I rowsort
SELECT ALL ( - - col1 ) FROM tab2
----
51
67
77

query II rowsort
SELECT + col1 AS col1, 88 FROM tab1
----
14
88
47
88
5
88

query II rowsort
SELECT + - col0, + col2 + - col2 + - col2 AS col0 FROM tab1 WHERE + col0 = NULL
----

query I rowsort
SELECT col0 * 94 FROM tab2 AS cor0
----
4324
6016
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT DISTINCT CAST( 66 AS SIGNED ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT CAST ( 66 AS INTEGER ) FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 > - col1 * - 49
----

query I rowsort
SELECT 80 * col2 + 50 FROM tab0 AS cor0
----
3810
7970
850

query I rowsort
SELECT - col1 + + 53 FROM tab1 AS cor0
----
39
48
6

query I rowsort
SELECT - col2 + 7 FROM tab2
----
-16
-33
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL 86 + - MAX( - col1 ) AS col1 FROM tab2
----
137

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL 86 + - MAX ( - col1 ) AS col1 FROM tab2
----
137

query III rowsort
SELECT ALL * FROM tab2 WHERE 4 BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT - 17 * col2 + - col0 * col2 AS col1 FROM tab1
----
-6018
-6528
-7344

query I rowsort
SELECT - 87 + + + 22 - - col2 FROM tab1
----
-6
3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 / ( 58 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL 89 * + 89 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
7918

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL 89 * + 89 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
7918

query I rowsort
SELECT DISTINCT 88 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT col2 - + - col0 FROM tab0
----
196
62
97

query I rowsort
SELECT ( col2 ) - - col1 * col0 AS col0 FROM tab0
----
1262
1837
196

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 47 <= NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NOT NULL >= NULL )
----

query II rowsort
SELECT col2 AS col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9274
SELECT - - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9274
SELECT - - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9275
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9275
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 6 * - col1 AS col0 FROM tab1 AS cor0
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + MAX( 61 ) AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9277
SELECT + MAX ( 61 ) AS col1 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - COUNT( ALL 13 ) * + + 4 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9278
SELECT - COUNT ( ALL 13 ) * + + 4 FROM tab0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT - 93 * - + COUNT( * ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-9280
SELECT - 93 * - + COUNT ( * ) FROM tab2
----
279

query I rowsort
SELECT + ( 0 ) * - 99 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9282
SELECT + 60 * 58 AS col1, col1 DIV col1 AS col0 FROM tab0
----
3480
1
3480
1
3480
1

skipif mysql # not compatible
query II rowsort label-9282
SELECT + 60 * 58 AS col1, col1 / col1 AS col0 FROM tab0
----
3480
1
3480
1
3480
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT COUNT( DISTINCT col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9283
SELECT DISTINCT COUNT ( DISTINCT col2 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL 79 * - COUNT( + col1 ) col1 FROM tab0
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9284
SELECT ALL 79 * - COUNT ( + col1 ) col1 FROM tab0
----
-237

query I rowsort
SELECT ALL + col2 * col2 * + col2 FROM tab2
----
12167
195112
64000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL - MAX( ALL col0 ) * - + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - MAX ( ALL col0 ) * - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
225

query I rowsort
SELECT DISTINCT - col0 * 94 + col1 AS col0 FROM tab1 cor0
----
-4780
-7985
-8507

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT + COUNT( * ) + + 89 col1 FROM tab2 cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9288
SELECT + COUNT ( * ) + + 89 col1 FROM tab2 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9289
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - 48 * + ( - 13 ) FROM tab2 AS cor0
----
624
624
624

query I rowsort
SELECT ALL + - 20 AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT + col0 FROM tab0 cor0 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - - 23 AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT + + ( - 47 ) FROM tab0 AS cor0
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 AS col2, 46 col2 FROM tab1
----
9
46
9
46
9
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + - col0 > NULL
----

query I rowsort
SELECT DISTINCT - col2 + - 52 FROM tab0
----
-151
-62
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT 76 DIV + col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9298
SELECT 76 / + col0 AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT ALL + col2 + - + 79 FROM tab2
----
-21
-39
-56

query I rowsort
SELECT - col2 - - col2 + + + col1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - + ( - - col0 ) * col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab0 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9304
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 * - - col1 * - - CAST( NULL AS SIGNED ) + + col1 / + - col0 AND - ( col2 )
----

skipif mysql # not compatible
query III rowsort label-9304
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 * - - col1 * - - CAST ( NULL AS INTEGER ) + + col1 / + - col0 AND - ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9305
SELECT - 44 DIV - 32 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9305
SELECT - 44 / - 32 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - - ( - COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9306
SELECT - - ( - COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 5 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 58 / + col0, - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT 57 * COUNT( * ) * 54 AS col0 FROM tab1
----
9234

skipif mysql # not compatible
query I rowsort label-9310
SELECT 57 * COUNT ( * ) * 54 AS col0 FROM tab1
----
9234

query I rowsort
SELECT ALL - 64 AS col0 FROM tab0
----
-64
-64
-64

query II rowsort
SELECT DISTINCT col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT 5 * - MIN( ALL col1 ) FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-9313
SELECT 5 * - MIN ( ALL col1 ) FROM tab2
----
-255

query I rowsort
SELECT col1 + 91 * + col2 FROM tab1
----
5374
6235
8750

query I rowsort
SELECT ALL col2 + + - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL MIN( ALL + 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL MIN ( ALL + 31 ) FROM tab2
----
31

query I rowsort
SELECT ALL - + 83 * - + 68 + - 26 * - 97 AS col1 FROM tab2 AS cor0
----
8166
8166
8166

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col1 * col1 NOT BETWEEN NULL AND + 42
----
51
14
96
91
47
68

query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * col2 col0 FROM tab2
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( 90 ) AND + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT ALL + 62 - 6 * COUNT( * ) FROM tab0 WHERE NOT ( + col1 * 94 ) NOT IN ( + col1 + 98 )
----
62

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + 62 - 6 * COUNT ( * ) FROM tab0 WHERE NOT ( + col1 * 94 ) NOT IN ( + col1 + 98 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9324
SELECT COUNT( * ) + - ( 32 - - 32 ) DIV CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE - ( col1 ) * - 7 <= + col0
----
-63

skipif mysql # not compatible
query I rowsort label-9324
SELECT COUNT ( * ) + - ( 32 - - 32 ) / CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE - ( col1 ) * - 7 <= + col0
----
-63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( 71 ) * + col2 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + 75 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT SUM( ALL ( col0 ) ) - COUNT( * ) AS col0 FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-9327
SELECT SUM ( ALL ( col0 ) ) - COUNT ( * ) AS col0 FROM tab0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL - COUNT( * ) * + 76 FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - COUNT ( * ) * + 76 FROM tab2
----
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE - col0 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT ALL col0 DIV - 40 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT ALL col0 / - 40 FROM tab0
----
-2
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 82 col2 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT - col0 * 70 + 88 FROM tab0
----
-6002
-6702
-962

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + COUNT( * ) * - ( ( COUNT( * ) ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9333
SELECT + COUNT ( * ) * - ( ( COUNT ( * ) ) ) FROM tab2
----
-9

query I rowsort
SELECT - col1 * - 24 FROM tab0
----
1944
24
504

query I rowsort
SELECT - col2 + + col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( ALL col1 ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9336
SELECT COUNT ( ALL col1 ) col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT SUM( 13 ) + 24 AS col2 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-9337
SELECT SUM ( 13 ) + 24 AS col2 FROM tab0
----
63

query I rowsort
SELECT ALL 22 + - col1 FROM tab0
----
-59
1
21

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9339
SELECT CAST( + ( CAST( NULL AS SIGNED ) ) AS DECIMAL ) + ( 3 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT CAST ( + ( CAST ( NULL AS INTEGER ) ) AS REAL ) + ( 3 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 65 FROM tab1
----
3055
325
910

query I rowsort
SELECT ALL 56 * + 8 FROM tab1
----
448
448
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9342
SELECT + col1 FROM tab2 WHERE ( - CAST( - ( - 80 ) AS SIGNED ) ) * + col2 - + col2 * + 76 NOT BETWEEN + col1 + - 61 AND col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9342
SELECT + col1 FROM tab2 WHERE ( - CAST ( - ( - 80 ) AS INTEGER ) ) * + col2 - + col2 * + 76 NOT BETWEEN + col1 + - 61 AND col2
----
51
67
77

query I rowsort
SELECT DISTINCT 6 * col1 + col0 FROM tab0 WHERE NOT ( + 27 ) < NULL
----

query I rowsort
SELECT col2 / + col0 FROM tab1 WHERE - 48 <= ( - col2 * col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT DISTINCT 46 * MAX( CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT 46 * MAX ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 96 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9346
SELECT - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 96 IS NULL
----
0

query I rowsort
SELECT ALL ( + ( + 36 ) ) FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT col0 * + 82 AS col0 FROM tab2
----
3772
5248
6150

query III rowsort
SELECT * FROM tab0 WHERE NOT + 20 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT MIN( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + 27 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-9351
SELECT MIN ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + 27 IS NULL
----
59

query I rowsort
SELECT col1 * col2 + - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL + MIN( - 90 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + MIN ( - 90 ) FROM tab1 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - - COUNT( ALL - 62 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9354
SELECT - - COUNT ( ALL - 62 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT SUM( ALL - - 13 ) * + COUNT( * ) + MIN( col2 ) FROM tab1
----
176

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT SUM ( ALL - - 13 ) * + COUNT ( * ) + MIN ( col2 ) FROM tab1
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT DISTINCT - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9357
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9357
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + 0 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9360
SELECT + col1 DIV CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9360
SELECT + col1 / CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9361
SELECT * FROM tab0 AS cor0 WHERE col1 <> ( CAST( 23 AS SIGNED ) - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9361
SELECT * FROM tab0 AS cor0 WHERE col1 <> ( CAST ( 23 AS INTEGER ) - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - - col2 + col0 * 26 + + ( col1 ) * col1 FROM tab0 AS cor0
----
12126
3573
7656

query I rowsort
SELECT + 19 + 3 AS col0 FROM tab1 AS cor0
----
22
22
22

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 91 * - ( col0 ) )
----

query I rowsort
SELECT - col0 * + + col1 - - col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT + - MAX( ALL - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9366
SELECT + - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT 4 - 97 + - - col1 FROM tab1 AS cor0
----
-46
-79
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 44 col1, col1 * col0 FROM tab1 AS cor0
----
-44
425
-44
4277
-44
714

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL < col2 + - ( col1 + - 59 ) ) OR NULL NOT BETWEEN 64 AND NULL
----

query II rowsort
SELECT + - 80 AS col2, col1 + - col1 * - ( col1 ) AS col0 FROM tab0 cor0
----
-80
2
-80
462
-80
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - + COUNT( * ) - COUNT( * ) * 45 AS col1 FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - + COUNT ( * ) - COUNT ( * ) * 45 AS col1 FROM tab0 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT ALL - + 27 * - COUNT( * ) + + + 28 + 34 col2 FROM tab1 AS cor0
----
143

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9372
SELECT ALL - + 27 * - COUNT ( * ) + + + 28 + 34 col2 FROM tab1 AS cor0
----
143

query I rowsort
SELECT - - col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9374
SELECT + - 35 DIV + + 41 - - - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9374
SELECT + - 35 / + + 41 - - - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT - COUNT( * ) * - 20 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - COUNT ( * ) * - 20 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL - 4 * + - 12 FROM tab0
----
48
48
48

query III rowsort
SELECT * FROM tab0 WHERE ( - 23 ) NOT IN ( ( - 33 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col1 + - 6 FROM tab1
----
19
190
2203

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT ALL + ( - - col1 ) + - - CAST( NULL AS SIGNED ) * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + ( - - col1 ) + - - CAST ( NULL AS INTEGER ) * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT 80 + COUNT( * ) AS col2 FROM tab0 WHERE NOT - 76 + - - col0 + 81 * + col0 IS NOT NULL
----
80

skipif mysql # not compatible
query I rowsort label-9380
SELECT 80 + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - 76 + - - col0 + 81 * + col0 IS NOT NULL
----
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( - + ( + - 65 ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT - + ( + 1 ) * - col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9382
SELECT - + ( + 1 ) * - col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9383
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT ALL col2 * + - 53 FROM tab1
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT ALL - + MIN( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - + MIN ( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT - col2 * + col1 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----

query I rowsort
SELECT ALL col2 * col2 FROM tab0 AS cor0 WHERE NOT ( - ( ( + - 27 ) ) ) <> NULL
----

query I rowsort
SELECT ALL 32 AS col1 FROM tab1 AS cor0 WHERE ( col1 * + - col0 ) NOT BETWEEN ( 57 ) AND 51
----
32
32
32

query II rowsort
SELECT DISTINCT - + col0, - col0 FROM tab1 cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT DISTINCT - ( - COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT DISTINCT - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 60 + - + 48 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9393
SELECT ( ( - col0 ) ) FROM tab1 WHERE NOT + col0 IN ( + + 86 * - 30 * CAST( NULL AS DECIMAL ) * - col0 )
----

skipif mysql # not compatible
query I rowsort label-9393
SELECT ( ( - col0 ) ) FROM tab1 WHERE NOT + col0 IN ( + + 86 * - 30 * CAST ( NULL AS REAL ) * - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 12 FROM tab0
----
111
22
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9396
SELECT 64 + col1 + col1 - col1 + - 82 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT 64 + col1 + col1 - col1 + - 82 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - - col0 AS col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT - 21 DIV + col2 + + col2 AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9398
SELECT - 21 / + col2 + + col2 AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9399
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9399
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9400
SELECT ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + - ( 33 ) FROM tab0 AS cor0
----
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - - col0 BETWEEN ( - ( - col1 ) + col0 * 77 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NULL > + ( col0 ) + - + 60 * + 95 AND col2 NOT BETWEEN + col0 * - col1 AND - 20
----

query I rowsort
SELECT ALL + col2 + + 51 AS col1 FROM tab1
----
110
119
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT DISTINCT + col2 * col1 FROM tab2 AS cor0 WHERE + col2 + + col2 IN ( 62, CAST( NULL AS SIGNED ) / + 85 * - + col2 )
----

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + col2 * col1 FROM tab2 AS cor0 WHERE + col2 + + col2 IN ( 62, CAST ( NULL AS INTEGER ) / + 85 * - + col2 )
----

query I rowsort
SELECT DISTINCT + 45 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
144
255
3852

query I rowsort
SELECT DISTINCT + 16 FROM tab2 cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT COUNT( * ) - MAX( 20 ) AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT COUNT ( * ) - MAX ( 20 ) AS col1 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT col1 + col0 * - 53 FROM tab0 AS cor0
----
-4590
-5140
-714

query I rowsort
SELECT ALL - col0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
1012
2496
4275

query II rowsort
SELECT - col2 AS col2, - col1 FROM tab1
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT ALL col2, - col0 AS col1 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT 27 * - + col0 AS col1 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9414
SELECT COUNT( * ) col1, - 71 DIV + - 82 FROM tab1
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9414
SELECT COUNT ( * ) col1, - 71 / + - 82 FROM tab1
----
3
0

query I rowsort
SELECT DISTINCT 14 * - - 73 FROM tab0 AS cor0
----
1022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT DISTINCT MIN( ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT MIN ( ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 + + col1
----

query I rowsort
SELECT col0 + - ( col1 ) + + + 99 - + col0 FROM tab2 AS cor0
----
22
32
48

query I rowsort
SELECT 32 AS col1 FROM tab0 cor0 WHERE NOT 74 / col0 + - 28 NOT IN ( + 63 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9421
SELECT DISTINCT + - 6 DIV - 65 * + + 98 + - COUNT( - col2 ) DIV 15 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + - 6 / - 65 * + + 98 + - COUNT ( - col2 ) / 15 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9422
SELECT col0 DIV - col2 AS col0, col1 FROM tab2 cor0
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
query II rowsort label-9422
SELECT col0 / - col2 AS col0, col1 FROM tab2 cor0
----
-1
67
-1
77
-2
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT + - SUM( - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + - SUM ( - col2 ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col0 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT + 93 / CAST( - col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col1 + + col2 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9425
SELECT + 93 / CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col1 + + col2 * + col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 cor0 WHERE NOT 7 * - col1 * + col0 * - ( - - 29 ) >= 55 * 35 + + col0 + col2 * 13 * 58 + + 63
----

query I rowsort
SELECT - 0 FROM tab1 AS cor0 WHERE NOT col0 + 77 IS NULL
----
0
0
0

query I rowsort
SELECT + col2 * + + col0 * + 29 AS col2 FROM tab1 AS cor0
----
141984
145435
179452

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9429
SELECT DISTINCT * FROM tab0 WHERE 1 + + 75 BETWEEN CAST( col2 AS SIGNED ) + + col2 + + 63 * + 99 * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9429
SELECT DISTINCT * FROM tab0 WHERE 1 + + 75 BETWEEN CAST ( col2 AS INTEGER ) + + col2 + + 63 * + 99 * col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN 59 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 33 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col1 + + - col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 59 + - - col0 AS col0 FROM tab2
----
105
123
134

query I rowsort
SELECT ALL - 25 AS col2 FROM tab0 WHERE NOT + 25 * - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT ALL + 26 + CAST( + 5 AS SIGNED ) FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + 26 + CAST ( + 5 AS INTEGER ) FROM tab1
----
31
31
31

query I rowsort
SELECT + - 37 * - col0 FROM tab0 AS cor0
----
3219
3589
555

query I rowsort
SELECT + + 67 + - col1 FROM tab0 AS cor0
----
-14
46
66

query I rowsort
SELECT - 3 + col1 AS col1 FROM tab0 AS cor0
----
-2
18
78

query III rowsort
SELECT * FROM tab0 WHERE - 70 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 53 / - 99 - - col1 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - 47 - - col2 AS col2 FROM tab1 AS cor0
----
12
21
49

query II rowsort
SELECT + 30, - 13 AS col1 FROM tab2 AS cor0
----
30
-13
30
-13
30
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT + 16 - col0 FROM tab2 AS cor0
----
-30
-48
-59

query I rowsort
SELECT col0 - col2 + - + 23 AS col1 FROM tab0 AS cor0
----
-25
-55
54

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 = col1
----

query I rowsort
SELECT ALL 71 FROM tab2 WHERE NOT + - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT ( - col2 * col0 ) <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT ( - col2 * col0 ) <> - col1
----
0

query I rowsort
SELECT ALL col2 + + col1 * col2 AS col1 FROM tab1 WHERE NOT + col2 * col1 IS NULL
----
1440
3264
354

query I rowsort
SELECT 96 * + col1 AS col1 FROM tab2
----
4896
6432
7392

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT - ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9453
SELECT - ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 29 FROM tab1 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9455
SELECT DISTINCT 77 * + COUNT( * ) col1, - 25 FROM tab0 AS cor0
----
231
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9455
SELECT DISTINCT 77 * + COUNT ( * ) col1, - 25 FROM tab0 AS cor0
----
231
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + MIN( - col1 ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9456
SELECT + MIN ( - col1 ) col1 FROM tab0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= + 45 * + 9 - 76 + - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 88 BETWEEN col1 AND ( + + col1 + - ( col0 ) / + - ( - col0 ) - 80 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 66 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * 39 FROM tab0 AS cor0
----
-3159
-39
-819

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9461
SELECT * FROM tab0 AS cor0 WHERE 79 BETWEEN - + 4 + - + col0 * + col1 * + CAST( + col1 AS SIGNED ) * - ( - col2 ) * - col2 AND + 97
----

skipif mysql # not compatible
query III rowsort label-9461
SELECT * FROM tab0 AS cor0 WHERE 79 BETWEEN - + 4 + - + col0 * + col1 * + CAST ( + col1 AS INTEGER ) * - ( - col2 ) * - col2 AND + 97
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT + - CAST( - + col1 AS SIGNED ) + - + col2 * col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

skipif mysql # not compatible
query I rowsort label-9462
SELECT + - CAST ( - + col1 AS INTEGER ) + - + col2 * col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

query I rowsort
SELECT AVG ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0 WHERE ( NOT 33 - + col1 IS NOT NULL )
----
NULL

query II rowsort
SELECT + col2 * - col1 + + col1 AS col2, 65 FROM tab2 AS cor0
----
-1122
65
-3003
65
-3819
65

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab2 WHERE - col1 < + 82 * + 91 + + col1 / + + 61 + + 97 * + 31
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9466
SELECT + 23 + + + 2 AS col0, - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-9466
SELECT + 23 + + + 2 AS col0, - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
25
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 <> - ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - col1 * + + col2 + - 23 + + 58 FROM tab2
----
-123165
-225353
-26944

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT DISTINCT - 60 + - + MAX( DISTINCT - col2 ) AS col1 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT - 60 + - + MAX ( DISTINCT - col2 ) AS col1 FROM tab2
----
-37

query III rowsort
SELECT * FROM tab0 WHERE NULL >= + ( + - col1 ) + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - 21 + - 25 * SUM( DISTINCT + col0 ) FROM tab2
----
-4646

skipif mysql # not compatible
query I rowsort label-9471
SELECT - 21 + - 25 * SUM ( DISTINCT + col0 ) FROM tab2
----
-4646

query II rowsort
SELECT DISTINCT 58, - col2 AS col2 FROM tab2 WHERE + col1 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT DISTINCT - 24 + + CAST( + + COUNT( - + col1 ) AS SIGNED ) AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 24 + + CAST ( + + COUNT ( - + col1 ) AS INTEGER ) AS col1 FROM tab2
----
-21

query I rowsort
SELECT DISTINCT col2 - 38 + - col0 + - 20 FROM tab0 AS cor0
----
-135
-26
-56

query I rowsort
SELECT DISTINCT + + col2 + + col1 + col2 FROM tab0 AS cor0
----
175
199
41

query I rowsort
SELECT ALL - col0 - col1 * 14 AS col0 FROM tab2 AS cor0
----
-1013
-1142
-760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9477
SELECT ALL + CAST( - ( - ( + 70 ) ) AS SIGNED ) AS col2, col2 FROM tab1 AS cor0 WHERE NOT 91 < col0
----
70
59
70
68
70
96

skipif mysql # not compatible
query II rowsort label-9477
SELECT ALL + CAST ( - ( - ( + 70 ) ) AS INTEGER ) AS col2, col2 FROM tab1 AS cor0 WHERE NOT 91 < col0
----
70
59
70
68
70
96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE NULL NOT IN ( - 33 + + + 5 + - - 55 )
----

query I rowsort
SELECT + 78 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT + 97 * + 23 FROM tab2
----
2231

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 55 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 22 IS NOT NULL
----

query I rowsort
SELECT - - col1 * + 7 FROM tab1 AS cor0
----
329
35
98

query II rowsort
SELECT DISTINCT + col2 AS col1, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 NOT IN ( + + 98 / - 1, + col1 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 WHERE NOT col1 + + - col1 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT col1 + + - col1 <= ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9487
SELECT ALL + col1 DIV col2 * + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + col1 / col2 * + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9488
SELECT ALL MIN( ALL 22 ) * + - 45 AS col2, - MIN( - col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL MIN ( ALL 22 ) * + - 45 AS col2, - MIN ( - col2 ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 87 col1 FROM tab2
----
46
87
64
87
75
87

query II rowsort
SELECT DISTINCT - col1 * + col0 * + + col2 AS col2, 28 * col0 FROM tab0 cor0 WHERE NOT col1 + + + 82 / - ( - - col1 ) * col1 IS NULL
----
-18270
2436
-57105
420
-9603
2716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9491
SELECT 12 DIV COUNT( * ) DIV + MIN( - col2 ) - 47 AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9491
SELECT 12 / COUNT ( * ) / + MIN ( - col2 ) - 47 AS col2 FROM tab2 AS cor0
----
-47

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT + - 83 FROM tab0 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL 8 + + col0 AS col0 FROM tab1 WHERE - col2 IS NOT NULL OR - 38 IS NULL
----
59
93
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 32 ) NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9496
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1, CAST( NULL AS SIGNED ) * 62 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9496
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1, CAST ( NULL AS INTEGER ) * 62 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT + - col0 * + + 8 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9498
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - 58 + + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9498
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - 58 + + + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT + MAX( col1 ) * 28 AS col0 FROM tab2 AS cor0
----
2156

skipif mysql # not compatible
query I rowsort label-9499
SELECT + MAX ( col1 ) * 28 AS col0 FROM tab2 AS cor0
----
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT DISTINCT + col1 DIV + col0 + 73 FROM tab2
----
73
74

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT + col1 / + col0 + 73 FROM tab2
----
73
74

query II rowsort
SELECT ALL + + 3 AS col1, + 62 * - - ( + col1 ) FROM tab0 WHERE NULL <> col2
----

query III rowsort
SELECT * FROM tab1 WHERE - 76 IN ( - 4, + ( - 61 ), + - col0 - - col1 * + 32 )
----

query I rowsort
SELECT DISTINCT 86 + - col0 FROM tab1
----
-5
1
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9504
SELECT 66 * CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
594

skipif mysql # not compatible
query I rowsort label-9504
SELECT 66 * CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
594

query I rowsort
SELECT 57 + 64 + col1 * - 52 + - col1 * - col1 * + col2 FROM tab1 AS cor0
----
1336
147889
18209

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT COUNT( * ) + - MAX( ( - ( + + col1 ) ) ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9506
SELECT COUNT ( * ) + - MAX ( ( - ( + + col1 ) ) ) FROM tab0 AS cor0
----
4

query II rowsort
SELECT DISTINCT col0 AS col0, col1 FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9508
SELECT - col1 + + CAST( - 29 AS SIGNED ) col1, 51 * - CAST( NULL AS SIGNED ) - - col1 + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-110
NULL
-30
NULL
-50
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9508
SELECT - col1 + + CAST ( - 29 AS INTEGER ) col1, 51 * - CAST ( NULL AS INTEGER ) - - col1 + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-110
NULL
-30
NULL
-50
NULL

query I rowsort
SELECT - 17 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT + SUM( DISTINCT + + col2 ) * + COUNT( * ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + SUM ( DISTINCT + + col2 ) * + COUNT ( * ) AS col2 FROM tab0
----
468

query I rowsort
SELECT ALL - ( + 93 ) FROM tab0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT + ( + + 5 ) AS col0 FROM tab0 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL - CAST( NULL AS SIGNED ) * + 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - CAST ( NULL AS INTEGER ) * + 39 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT DISTINCT - col1 DIV col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT - col1 / col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 15 + + 12 + ( + 26 ) / + col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT CAST( + + MAX( DISTINCT + col2 ) AS SIGNED ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9516
SELECT CAST ( + + MAX ( DISTINCT + col2 ) AS INTEGER ) AS col1 FROM tab1
----
96

query I rowsort
SELECT 55 * + 94 FROM tab1
----
5170
5170
5170

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT DISTINCT ( - - 43 ) DIV col2 + 38 FROM tab0
----
38
42

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT ( - - 43 ) / col2 + 38 FROM tab0
----
38
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT COUNT( * ) * - 62 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-9519
SELECT COUNT ( * ) * - 62 FROM tab1
----
-186

query I rowsort
SELECT col1 + 50 * + + ( + + 88 ) + - col0 FROM tab0 AS cor0
----
4304
4334
4466

query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-76

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 - col1 * + + 48 * + - 89
----

query II rowsort
SELECT - 51 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-51
15
-51
87
-51
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT - SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9525
SELECT - SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT + col2 + col0 + col1 * - col2 * - CAST( NULL AS SIGNED ) + 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT + col2 + col0 + col1 * - col2 * - CAST ( NULL AS INTEGER ) + 54 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE col0 * - col1 IS NULL OR NULL <= col0
----

query I rowsort
SELECT - 92 + + - col2 FROM tab2 AS cor0
----
-115
-132
-150

query I rowsort
SELECT - col2 + - 63 * + - 49 FROM tab0 AS cor0 WHERE ( - col0 - - + col0 ) <= col2 + 10
----
2988
3040
3077

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 3 + - col0 FROM tab2 AS cor0 WHERE NOT NULL < ( ( + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9532
SELECT 30 + CAST( NULL AS SIGNED ) AS col0, col1 * - 98 + col0 FROM tab2 AS cor0
----
NULL
-4952
NULL
-6491
NULL
-7482

skipif mysql # not compatible
query II rowsort label-9532
SELECT 30 + CAST ( NULL AS INTEGER ) AS col0, col1 * - 98 + col0 FROM tab2 AS cor0
----
NULL
-4952
NULL
-6491
NULL
-7482

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - - col2 * + col2 - col2 AS col2 FROM tab1 WHERE + col0 * + col2 NOT BETWEEN NULL AND 88
----
3422
4556
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT COUNT( * ) + + 80 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-9535
SELECT COUNT ( * ) + + 80 FROM tab2
----
83

query I rowsort
SELECT ALL col0 * - ( - + col1 ) AS col0 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9537
SELECT + SUM( DISTINCT col2 ) + + + MAX( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT + SUM ( DISTINCT col2 ) + + + MAX ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE + + 23 * + 18 + - - col2 IS NULL
----

query I rowsort
SELECT ALL - 41 + - 54 AS col1 FROM tab2
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( - + col0, - col2 * + - col1, col2 - + 24 )
----

query I rowsort
SELECT ALL 91 AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT COUNT( - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9542
SELECT COUNT ( - col0 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + COUNT( * ) * - 49 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-9543
SELECT + COUNT ( * ) * - 49 FROM tab2
----
-147

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - 94 - + 84
----

query I rowsort
SELECT + 50 * + + col1 FROM tab1 AS cor0
----
2350
250
700

onlyif mysql # DIV for integer division: 
query I rowsort label-9546
SELECT DISTINCT - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9546
SELECT DISTINCT - col2 / - col2 AS col0 FROM tab1 AS cor0
----
1

query II rowsort
SELECT ALL - col1 AS col1, - 24 AS col0 FROM tab1 AS cor0
----
-14
-24
-47
-24
-5
-24

query II rowsort
SELECT ALL col2 AS col0, 82 AS col0 FROM tab0 AS cor0
----
10
82
47
82
99
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9549
SELECT DISTINCT + col0 AS col2, CAST( - + col2 AS SIGNED ) DIV + + col1 + - col1 + + - col1 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
51
694
85
409
91
4229

skipif mysql # not compatible
query II rowsort label-9549
SELECT DISTINCT + col0 AS col2, CAST ( - + col2 AS INTEGER ) / + + col1 + - col1 + + - col1 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
51
694
85
409
91
4229

query I rowsort
SELECT col1 * + col0 * col0 * - - 19 FROM tab2
----
2050404
5992448
7160625

query I rowsort
SELECT ALL 54 * - + col2 FROM tab0
----
-2538
-5346
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-9552
SELECT DISTINCT - MAX( - + 60 ), - COUNT( * ) col0 FROM tab2
----
60
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9552
SELECT DISTINCT - MAX ( - + 60 ), - COUNT ( * ) col0 FROM tab2
----
60
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9553
SELECT ALL - MIN( col0 ) DIV - + COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL - MIN ( col0 ) / - + COUNT ( * ) FROM tab2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT + + ( COUNT( * ) ) * + + 38 * - + ( 73 ) AS col0 FROM tab0 AS cor0
----
-8322

skipif mysql # not compatible
query I rowsort label-9554
SELECT + + ( COUNT ( * ) ) * + + 38 * - + ( 73 ) AS col0 FROM tab0 AS cor0
----
-8322

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT DISTINCT COUNT( ALL - 39 ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT COUNT ( ALL - 39 ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col2 + + 74 FROM tab0
----
121
173
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9557
SELECT * FROM tab0 WHERE - + col1 * - + 49 + + CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9557
SELECT * FROM tab0 WHERE - + col1 * - + 49 + + CAST ( - col0 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 + + 80 col2 FROM tab1
----
28
28
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 59 <> NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL = - col0 * + + 42 * + + 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9562
SELECT + col1 DIV - - col0 FROM tab0 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9562
SELECT + col1 / - - col0 FROM tab0 cor0
----
0
0
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT ( + + ( 78 ) ) BETWEEN - ( + + col2 ) AND NULL )
----

query I rowsort
SELECT - col1 * + 8 * col0 * 49 FROM tab1 AS cor0
----
-166600
-1676584
-279888

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 / + + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9566
SELECT + SUM( - - col2 ) + + CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9566
SELECT + SUM ( - - col2 ) + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT DISTINCT + SUM( + - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + SUM ( + - col1 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT SUM( DISTINCT + - 82 ) AS col1 FROM tab1 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9568
SELECT SUM ( DISTINCT + - 82 ) AS col1 FROM tab1 cor0
----
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 63 ) <= 44 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col2 IS NOT NULL
----

query II rowsort
SELECT 45 * col1 AS col0, + col0 AS col0 FROM tab0
----
3645
15
45
97
945
87

query I rowsort
SELECT DISTINCT 53 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
53

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 37 + + + 71 + - + col2 * 81 * + col0 ) IS NULL
----
51
67
77

query I rowsort
SELECT - ( + 37 ) FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9577
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * + 79 + - col0 col1 FROM tab0 cor0
----
-166
-176
-94

query I rowsort
SELECT col0 * - - 23 + - 52 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - 78 * + 42 FROM tab2 AS cor0
----
3276
3276
3276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + 48 + + col1 FROM tab1
----
53
62
95

query I rowsort
SELECT ALL col2 + + 15 AS col2 FROM tab0
----
114
25
62

query I rowsort
SELECT DISTINCT col2 * + - 18 * + col2 FROM tab2
----
-28800
-60552
-9522

onlyif mysql # DIV for integer division: 
query I rowsort label-9585
SELECT col2 DIV + + col0 + - - col2 * + 82 FROM tab0
----
3857
8119
820

skipif mysql # not compatible
query I rowsort label-9585
SELECT col2 / + + col0 + - - col2 * + 82 FROM tab0
----
3857
8119
820

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = - 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT - 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-9587
SELECT - col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 83 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT + 3 * COUNT( DISTINCT + col2 ) FROM tab1 WHERE + - col1 * + col0 * CAST( NULL AS SIGNED ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT + 3 * COUNT ( DISTINCT + col2 ) FROM tab1 WHERE + - col1 * + col0 * CAST ( NULL AS INTEGER ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT - SUM( col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9590
SELECT - SUM ( col0 ) FROM tab2
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT DISTINCT - col2 * col2 * - + 86 + + - col1 DIV + col0 + - col0 col1 FROM tab1
----
299281
397573
792525

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9591
SELECT DISTINCT - col2 * col2 * - + 86 + + - col1 / + col0 + - col0 col1 FROM tab1
----
299281
397573
792525

query I rowsort
SELECT + 52 FROM tab1 WHERE ( NULL ) IS NULL
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT col1 DIV 16 FROM tab2
----
3
4
4

skipif mysql # not compatible
query I rowsort label-9593
SELECT col1 / 16 FROM tab2
----
3
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9594
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / 27 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9594
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / 27 IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 + 32 + + - 95 AS col0 FROM tab1 cor0
----
-4
33
5

query I rowsort
SELECT col1 + + ( + col0 ) + - ( + - col0 ) FROM tab0 AS cor0
----
111
195
195

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 32 + + col2 AS col1 FROM tab0 AS cor0
----
131
42
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT - col2 + col0 - - col1 DIV + 69 col2 FROM tab2
----
17
23
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9599
SELECT - col2 + col0 - - col1 / + 69 col2 FROM tab2
----
17
23
25

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( - col0 < 96 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9601
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * + - 73 AS col1, + col0 FROM tab0 WHERE ( ( NOT - + col1 * - + 80 IS NOT NULL ) )
----

skipif mysql # not compatible
query II rowsort label-9601
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * + - 73 AS col1, + col0 FROM tab0 WHERE ( ( NOT - + col1 * - + 80 IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 89 + + - col2 ) IN ( col1 * + - 28, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT - COUNT( + - 23 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9603
SELECT - COUNT ( + - 23 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - 77 * + 32 FROM tab0 AS cor0
----
-2464
-2464
-2464

query II rowsort
SELECT - - 77 AS col1, + col0 FROM tab0 AS cor0
----
77
15
77
87
77
97

query II rowsort
SELECT ALL + col1 AS col2, 13 + - col2 AS col2 FROM tab2 AS cor0
----
51
-10
67
-45
77
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL - - COUNT( * ) * - - 86 FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - - COUNT ( * ) * - - 86 FROM tab1 AS cor0
----
258

query II rowsort
SELECT ALL col1, + col2 + 94 AS col2 FROM tab0 AS cor0
----
1
193
21
104
81
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9609
SELECT - - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9609
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9610
SELECT - COUNT( + - col1 ) AS col1, - ( + COUNT( * ) ) DIV - 54 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-9610
SELECT - COUNT ( + - col1 ) AS col1, - ( + COUNT ( * ) ) / - 54 FROM tab1
----
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT SUM( - ( - ( CAST( NULL AS SIGNED ) ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT SUM ( - ( - ( CAST ( NULL AS INTEGER ) ) ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - col2 BETWEEN col2 + + col2 AND col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9613
SELECT ALL + 19 + ( + col0 ) + + CAST( NULL AS DECIMAL ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL + 19 + ( + col0 ) + + CAST ( NULL AS REAL ) + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 52 * 37 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1924
-1924
-1924

query I rowsort
SELECT DISTINCT + ( - 29 ) AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9616
SELECT DISTINCT - 23 DIV + + 67 * col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT - 23 / + + 67 * col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 45 + + col0 - - col2 FROM tab1 AS cor0
----
189
192
204

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9618
SELECT ALL + COUNT( DISTINCT col0 ) - - + MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + COUNT ( DISTINCT col0 ) - - + MAX ( ALL - CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT DISTINCT col1 - - 68 DIV - col0 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-9619
SELECT DISTINCT col1 - - 68 / - col0 FROM tab2 AS cor0
----
50
67
76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( ( + ( - - col2 ) ), + col0, - - col1, + 35 + col0, - col1 )
----

query II rowsort
SELECT ALL - col1 + + col2 * - col2 AS col0, col2 FROM tab2 AS cor0
----
-1677
40
-3431
58
-580
23

query I rowsort
SELECT DISTINCT - - col1 - - col0 FROM tab1 AS cor0
----
138
65
90

query II rowsort
SELECT ALL + col1, col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT - col0 + - ( - 2 ) + + col1 * + 45 * col0 * col1 / 18 * - 89 AS col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - 10 - - 78 AS col1 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT DISTINCT + 20 * + - 44 + + col0 DIV col1 AS col1 FROM tab2 cor0
----
-879
-880

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT + 20 * + - 44 + + col0 / col1 AS col1 FROM tab2 cor0
----
-879
-880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT ALL + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( - + col2 ) IS NOT NULL
----

query II rowsort
SELECT + 45 - + + 84 + + ( - ( col2 ) ), 90 AS col0 FROM tab1
----
-107
90
-135
90
-98
90

query I rowsort
SELECT - 86 * col1 AS col1 FROM tab0
----
-1806
-6966
-86

query I rowsort
SELECT - 52 * 45 * + 48 FROM tab1
----
-112320
-112320
-112320

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE NOT col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9632
SELECT ALL + col2 DIV CAST( - ( - col2 ) AS SIGNED ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + col2 / CAST ( - ( - col2 ) AS INTEGER ) AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT 67 * + col0 * + col0 AS col2 FROM tab2
----
141772
274432
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT MAX( ALL 43 ) FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9634
SELECT MAX ( ALL 43 ) FROM tab1
----
43

query I rowsort
SELECT col0 + 18 - + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
16
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * - col1 col0 FROM tab0 AS cor0
----
-3807
-47
-987

query I rowsort
SELECT - - 10 * + - col2 FROM tab2 AS cor0
----
-230
-400
-580

query I rowsort
SELECT + 2 * - 7 FROM tab1 cor0
----
-14
-14
-14

query I rowsort
SELECT - ( + ( 91 ) ) * col0 AS col2 FROM tab2 AS cor0
----
-4186
-5824
-6825

query II rowsort
SELECT ALL 48 AS col0, + col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT DISTINCT - + MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT - + MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL SUM( - col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL SUM ( - col0 ) AS col1 FROM tab2 cor0
----
-185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col1 ) col1, col0 * - 32 col0 FROM tab1
----
14
-1632
47
-2912
5
-2720

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 3 IS NULL
----

query I rowsort
SELECT - col2 + + + col0 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT col1 + + - 6 FROM tab0
----
-5
15
75

query I rowsort
SELECT DISTINCT + col1 + col1 + col1 FROM tab1
----
141
15
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL 5 * + COUNT( * ) + - 52 AS col1 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL 5 * + COUNT ( * ) + - 52 AS col1 FROM tab1
----
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 IS NULL
----

query I rowsort
SELECT ALL col2 + - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 16 ) FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 col0, - col1 FROM tab1 cor0
----
71
-14
71
-47
71
-5

query I rowsort
SELECT - ( + - col0 ) * + col1 AS col2 FROM tab1 cor0
----
425
4277
714

query II rowsort
SELECT DISTINCT + + 13, col2 + col2 AS col2 FROM tab2 cor0
----
13
116
13
46
13
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9656
SELECT COUNT( - + 90 ) * - - 24 DIV COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-9656
SELECT COUNT ( - + 90 ) * - - 24 / COUNT ( * ) FROM tab2 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9657
SELECT DISTINCT CAST( + + col1 AS SIGNED ) + + - col1 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) + + - col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT + col1 * col0 * + col0 - - 6 FROM tab2
----
107922
315398
376881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT - col0 - - CAST( col2 AS SIGNED ) FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-9659
SELECT - col0 - - CAST ( col2 AS INTEGER ) FROM tab1
----
-23
-26
45

query I rowsort
SELECT 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT col0 - 85 FROM tab0 cor0
----
-70
12
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL <= + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT DISTINCT 74 - col0 * - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1141
-1753
-23

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT 74 - col0 * - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1141
-1753
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - - - col1 IS NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9666
SELECT - 64 * col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT - 64 * col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9667
SELECT DISTINCT - col1 DIV + 37, + col1 FROM tab2 AS cor0
----
-1
51
-1
67
-2
77

skipif mysql # not compatible
query II rowsort label-9667
SELECT DISTINCT - col1 / + 37, + col1 FROM tab2 AS cor0
----
-1
51
-1
67
-2
77

query I rowsort
SELECT col1 * + - 23 FROM tab2
----
-1173
-1541
-1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col2 FROM tab2 WHERE NOT NULL = + - col0
----

query I rowsort
SELECT DISTINCT col1 * + - col0 AS col0 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * - 68 FROM tab0
----
-3196
-6732
-680

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col0 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT DISTINCT - ( - - 57 ) FROM tab1 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * 92 col0 FROM tab0 AS cor0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT DISTINCT - + COUNT( * ) AS col1, 6 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
-18

skipif mysql # not compatible
query II rowsort label-9676
SELECT DISTINCT - + COUNT ( * ) AS col1, 6 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
-18

query II rowsort
SELECT + - 84 AS col1, + ( - 92 ) * col2 AS col1 FROM tab2 AS cor0
----
-84
-2116
-84
-3680
-84
-5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9678
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) col0, 55 AS col1 FROM tab0 AS cor0
----
-3
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9678
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) col0, 55 AS col1 FROM tab0 AS cor0
----
-3
55

query I rowsort
SELECT col2 * col2 + - - col1 AS col1 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT + ( col2 ) * + - 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * + + 18 FROM tab2 AS cor0
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT - SUM( + - col0 ) AS col2 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9682
SELECT - SUM ( + - col0 ) AS col2 FROM tab1 cor0
----
227

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - 88 * - 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 68, + 12 AS col1 FROM tab2
----
68
12
68
12
68
12

query I rowsort
SELECT DISTINCT + 86 + - + 43 AS col2 FROM tab1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT ALL col0 + - + col0 * col2 DIV - - col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT ALL col0 + - + col0 * col2 / - - col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT COUNT( * ) - 3 - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9687
SELECT COUNT ( * ) - 3 - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9688
SELECT ALL 54 * + 53 + - CAST( NULL AS SIGNED ) + - + 49 / + 77 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL 54 * + 53 + - CAST ( NULL AS INTEGER ) + - + 49 / + 77 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT DISTINCT 93 * + + COUNT( * ) + + - 30 * + COUNT( * ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9689
SELECT DISTINCT 93 * + + COUNT ( * ) + + - 30 * + COUNT ( * ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL + 5 - + - 62 - + ( ( 16 ) ) * - col2 + ( - col1 ) FROM tab2 AS cor0
----
384
630
928

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9691
SELECT + col2, CAST( - col0 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
59
-85
68
-91
96
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9691
SELECT + col2, CAST ( - col0 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
59
-85
68
-91
96
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT - MAX( ALL - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9693
SELECT - MAX ( ALL - + col1 ) FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9694
SELECT ALL 10 + + 47 * CAST( + col2 AS SIGNED ), + 61 AS col2 FROM tab2 AS cor0 WHERE NULL = col1
----

skipif mysql # not compatible
query II rowsort label-9694
SELECT ALL 10 + + 47 * CAST ( + col2 AS INTEGER ), + 61 AS col2 FROM tab2 AS cor0 WHERE NULL = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - + 43 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT 48 * - - col2 AS col0 FROM tab0 cor0
----
2256
4752
480

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col0 * col1 BETWEEN + col1 + col1 * - col0 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT + - COUNT( * ) * MAX( - + col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT + - COUNT ( * ) * MAX ( - + col1 ) FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9700
SELECT ALL - COUNT( * ) DIV + MAX( - 6 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - COUNT ( * ) / + MAX ( - 6 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL - + COUNT( DISTINCT - col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - + COUNT ( DISTINCT - col0 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT 59 * - + col0 FROM tab1
----
-3009
-5015
-5369

query II rowsort
SELECT ALL + + 35 + + - ( + col2 ) - + col1, + col1 AS col1 FROM tab0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT col2 * - 52 * + + 41 FROM tab0
----
-100204
-211068
-21320

query II rowsort
SELECT DISTINCT 58 * + + col2, - ( - 23 ) AS col2 FROM tab1
----
3422
23
3944
23
5568
23

query I rowsort
SELECT + + col2 * - col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 * 19 * col1, col1 AS col0 FROM tab0
----
1881
1
3990
21
72333
81

query II rowsort
SELECT DISTINCT ( - col1 ), col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + 61 * - col1 * - + col2 FROM tab1 AS cor0
----
17995
194956
81984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9711
SELECT ALL + ( + 47 ), MIN( DISTINCT - - 77 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
47
77

skipif mysql # not compatible
query II rowsort label-9711
SELECT ALL + ( + 47 ), MIN ( DISTINCT - - 77 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
47
77

query I rowsort
SELECT DISTINCT + col2 * - + ( + + ( + 88 ) ) + + col2 + - col1 FROM tab1
----
-5138
-5963
-8366

query I rowsort
SELECT 76 * + col0 AS col1 FROM tab1
----
3876
6460
6916

query II rowsort
SELECT col2 AS col0, - col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT NULL > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT DISTINCT - SUM( - + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - SUM ( - + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT col2 * - ( + 42 ) * - 69 FROM tab2 cor0
----
115920
168084
66654

query I rowsort
SELECT ALL + col1 - - col2 FROM tab2 AS cor0 WHERE NOT ( + ( + + ( - col2 ) ) * - col2 <> col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( ( NULL ) < - - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT + ( - MIN( + + 54 ) ) AS col2 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT + ( - MIN ( + + 54 ) ) AS col2 FROM tab0
----
-54

query I rowsort
SELECT - 11 * - col0 + - + col2 FROM tab0
----
118
947
968

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) * - col2 IS NULL
----

query I rowsort
SELECT - col0 + + + col1 * + 10 AS col2 FROM tab0
----
-87
123
795

query I rowsort
SELECT DISTINCT col2 + 50 + - 29 + - col2 * - 82 * 90 AS col1 FROM tab1
----
435500
501929
708597

query I rowsort
SELECT DISTINCT - col1 - - col0 AS col1 FROM tab2
----
-13
-5
8

query I rowsort
SELECT - ( + 45 ) AS col1 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9728
SELECT DISTINCT + 37 + + CAST( + 83 AS SIGNED ) * + + COUNT( * ), 4 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
784
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9728
SELECT DISTINCT + 37 + + CAST ( + 83 AS INTEGER ) * + + COUNT ( * ), 4 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
784
4

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

query I rowsort
SELECT ALL + - col0 * + - 24 FROM tab2 AS cor0
----
1104
1536
1800

query I rowsort
SELECT DISTINCT + 88 * - 52 * - + col0 * + col0 * + col1 AS col2 FROM tab1 cor0
----
165308000
166630464
1781011232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9732
SELECT ALL - COUNT( ALL CAST( col0 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9732
SELECT ALL - COUNT ( ALL CAST ( col0 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT DISTINCT + COUNT( DISTINCT 23 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT + COUNT ( DISTINCT 23 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( + 62 ) AS col1 FROM tab1 cor0
----
62
62
62

query II rowsort
SELECT 12 AS col2, + 28 AS col0 FROM tab0 AS cor0
----
12
28
12
28
12
28

query I rowsort
SELECT DISTINCT - 15 * - + 67 AS col2 FROM tab0 AS cor0
----
1005

query II rowsort
SELECT ALL 78, + 93 - + col0 * + ( 90 ) AS col1 FROM tab1
----
78
-4497
78
-7557
78
-8097

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT ALL COUNT( * ) AS col2, 91 AS col0 FROM tab0
----
3
91

skipif mysql # not compatible
query II rowsort label-9738
SELECT ALL COUNT ( * ) AS col2, 91 AS col0 FROM tab0
----
3
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT ALL + 43, - COUNT( DISTINCT + col0 ) AS col2 FROM tab0
----
43
-3

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL + 43, - COUNT ( DISTINCT + col0 ) AS col2 FROM tab0
----
43
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT BETWEEN col0 AND + col2 / - - 73
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND + 7 * + 31
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL + SUM( ALL col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + SUM ( ALL col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9744
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 80 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 80 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT DISTINCT - + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - + col2 / col1 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT + 55, 55 FROM tab2 AS cor0
----
55
55
55
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - COUNT( * ) * + 4 + - 32 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-9747
SELECT - COUNT ( * ) * + 4 + - 32 FROM tab0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-9748
SELECT DISTINCT 30 DIV + col1 * + col0 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT 30 / + col1 * + col0 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col2 * - col2 + - - col0 / + - col1 + + col1 FROM tab2 AS cor0 WHERE - 15 IS NULL
----

query I rowsort
SELECT - 11 * - 85 AS col2 FROM tab2 AS cor0
----
935
935
935

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( col0 ) * - + col0 * + col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # aggregate syntax: 
query II rowsort label-9753
SELECT COUNT( DISTINCT - col1 ) AS col0, 89 FROM tab2 AS cor0
----
3
89

skipif mysql # not compatible
query II rowsort label-9753
SELECT COUNT ( DISTINCT - col1 ) AS col0, 89 FROM tab2 AS cor0
----
3
89

query I rowsort
SELECT col0 * + 9 * 12 FROM tab0 AS cor0
----
10476
1620
9396

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - + MIN( + - 14 ) AS col1 FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - + MIN ( + - 14 ) AS col1 FROM tab2 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL + 49 + SUM( DISTINCT + 79 ) * + - MIN( - - col2 ) FROM tab0
----
-741

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL + 49 + SUM ( DISTINCT + 79 ) * + - MIN ( - - col2 ) FROM tab0
----
-741

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9757
SELECT ALL + CAST( - - 97 AS SIGNED ) * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL + CAST ( - - 97 AS INTEGER ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * - col2 + + 74 FROM tab0
----
174
2283
9875

query I rowsort
SELECT DISTINCT + col2 * - ( 13 ) + + col1 AS col2 FROM tab1
----
-1234
-762
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT COUNT( * ) + 27 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9760
SELECT COUNT ( * ) + 27 AS col2 FROM tab2
----
30

query I rowsort
SELECT ALL col0 + - - col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col2 - 40 FROM tab0
----
-30
59
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT - col2 + - ( - 4 ) FROM tab2 AS cor0
----
-19
-36
-54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + COUNT( * ) + - 29 AS col2 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9766
SELECT + COUNT ( * ) + - 29 AS col2 FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - COUNT( * ) + + ( + ( + 12 ) ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9767
SELECT - COUNT ( * ) + + ( + ( + 12 ) ) FROM tab1 cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + 76 * - 9 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9769
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 26 / + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT DISTINCT MAX( ALL + 15 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9771
SELECT DISTINCT MAX ( ALL + 15 ) col0 FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - 0 * col0
----

query I rowsort
SELECT ALL + 50 * + col2 + + 98 * + col2 FROM tab1
----
10064
14208
8732

query I rowsort
SELECT ALL + col0 + 40 * 79 AS col2 FROM tab0
----
3175
3247
3257

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL = + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL COUNT( 92 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL COUNT ( 92 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 28 - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( 74 ) * 34 ) = + col2
----

query I rowsort
SELECT ALL + 89 + + col0 AS col1 FROM tab2
----
135
153
164

query I rowsort
SELECT - 40 + col2 FROM tab1
----
19
28
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9781
SELECT ALL * FROM tab1 WHERE NOT - col0 + ( col1 ) * CAST( NULL AS SIGNED ) IN ( - 47 * - 86 )
----

skipif mysql # not compatible
query III rowsort label-9781
SELECT ALL * FROM tab1 WHERE NOT - col0 + ( col1 ) * CAST ( NULL AS INTEGER ) IN ( - 47 * - 86 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 / col2 ) NOT IN ( + col2 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - 79 AS col2 FROM tab0
----
-58
-78
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT 92 DIV + 41 FROM tab2 WHERE NOT + col2 = ( - col2 * + 82 )
----
2

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT 92 / + 41 FROM tab2 WHERE NOT + col2 = ( - col2 * + 82 )
----
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + ( col2 ) + col2 * + col0
----

query I rowsort
SELECT + 54 + - ( - 7 ) FROM tab0
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT ALL - COUNT( * ) * 67 + + 73 AS col0 FROM tab0
----
-128

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL - COUNT ( * ) * 67 + + 73 AS col0 FROM tab0
----
-128

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col2 + - 78 )
----

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT ( col1 * + col0 + 24 ) IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT ( 37 ) FROM tab0 AS cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL CAST( NULL AS SIGNED ) * ( + MAX( ALL col1 ) ) + - SUM( ALL col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL CAST ( NULL AS INTEGER ) * ( + MAX ( ALL col1 ) ) + - SUM ( ALL col2 ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT 16 + + COUNT( * ) * - 24 AS col1 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-9793
SELECT 16 + + COUNT ( * ) * - 24 AS col1 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL + 42 - - COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL + 42 - - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - - col2 = ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT + + col1 * + ( - col1 ) + 13 DIV 92 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-9796
SELECT + + col1 * + ( - col1 ) + 13 / 92 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT - - 79 * + 9 + + COUNT( * ) FROM tab1 AS cor0
----
714

skipif mysql # not compatible
query I rowsort label-9798
SELECT - - 79 * + 9 + + COUNT ( * ) FROM tab1 AS cor0
----
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - ( - col2 ) col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT MIN( DISTINCT col0 ) * + COUNT( * ) AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-9800
SELECT MIN ( DISTINCT col0 ) * + COUNT ( * ) AS col2 FROM tab2
----
138

query I rowsort
SELECT ( + + col2 ) * col0 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 84 <> ( col1 / + ( + col2 ) + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * - 29 * - col0 col2 FROM tab2
----
-113390
-157760
-184875

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT DISTINCT + MAX( + - col1 ) * - COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT + MAX ( + - col1 ) * - COUNT ( * ) FROM tab1
----
15

query I rowsort
SELECT DISTINCT + col2 + - + col1 AS col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) IN ( col1 * + 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - col1 + col0 * 29 FROM tab2
----
1306
1819
2166

query I rowsort
SELECT + 43 * + ( 66 ) AS col2 FROM tab2 WHERE - col2 BETWEEN col0 AND ( 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT + CAST( 13 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + ( col1 ) / - 2 - CAST( col1 + - col0 * - 78 AS SIGNED ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-9809
SELECT + CAST ( 13 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + ( col1 ) / - 2 - CAST ( col1 + - col0 * - 78 AS INTEGER ) NOT IN ( + col2 )
----

query I rowsort
SELECT - col0 * - - 71 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 89 - + 60 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 89 - + 60 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * ( + ( - ( - 47 ) ) ) * 65 AS col2 FROM tab0
----
-265785
-296335
-45825

query I rowsort
SELECT col0 * + 19 * + + col2 FROM tab2
----
20102
48640
82650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 47 col2, + 72 * + 93 * col1 col0 FROM tab1
----
47
314712
47
33480
47
93744

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 23 * 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT ALL + + SUM( - - col0 ) AS col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-9816
SELECT ALL + + SUM ( - - col0 ) AS col0 FROM tab1 cor0
----
227

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - 97 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9818
SELECT DISTINCT + - col0 AS col0, - 25 / + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-9818
SELECT DISTINCT + - col0 AS col0, - 25 / + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT ALL + MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT - ( - 81 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
81

query II rowsort
SELECT DISTINCT - col2 AS col0, + 58 + col1 FROM tab0 AS cor0
----
-10
79
-47
139
-99
59

query I rowsort
SELECT + ( + col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 - col1 + + 76 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 63 + - + 35 AS col0 FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9826
SELECT ALL col1 * ( - col0 ) + + CAST( NULL AS DECIMAL ) + col0 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL col1 * ( - col0 ) + + CAST ( NULL AS REAL ) + col0 * col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE + + ( ( col0 ) ) + + ( - col2 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * 35 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab0 cor0 WHERE NULL > col0
----

query I rowsort
SELECT DISTINCT col2 + 53 * + col0 * col0 FROM tab2
----
112171
217128
298183

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT DISTINCT COUNT( - 73 ) * - + 82 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT COUNT ( - 73 ) * - + 82 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + + 62 * - 25 + - ( - col0 ) + + col2 col1 FROM tab1 AS cor0
----
-6299
-6421
-7579

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9833
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND CAST( + col1 AS SIGNED ) / - 86
----

skipif mysql # not compatible
query III rowsort label-9833
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND CAST ( + col1 AS INTEGER ) / - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT + - MIN( DISTINCT - col1 ) col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9834
SELECT + - MIN ( DISTINCT - col1 ) col0 FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + - col2 * + - 36 FROM tab2 AS cor0
----
1440
2088
828

query I rowsort
SELECT + col1 * ( + - 53 ) AS col0 FROM tab0 AS cor0
----
-1113
-4293
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 col0 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9839
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + 59 IS NULL AND NOT ( + ( col0 ) ) NOT IN ( - col1 + col0 * - 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT - + 71 * - 97 - + MAX( DISTINCT + col0 ) + ( COUNT( * ) ) - - COUNT( * ) col2 FROM tab2 AS cor0
----
6818

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT - + 71 * - 97 - + MAX ( DISTINCT + col0 ) + ( COUNT ( * ) ) - - COUNT ( * ) col2 FROM tab2 AS cor0
----
6818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 WHERE + - col1 < col2 + - col0 AND NOT ( 51 * - 46 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col1 FROM tab1 AS cor0
----
-37
-44
-80

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT - ( - COUNT( * ) ) * - 43 FROM tab0 WHERE + ( - col2 ) * - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT - ( - COUNT ( * ) ) * - 43 FROM tab0 WHERE + ( - col2 ) * - + col2 IS NULL
----
0

query I rowsort
SELECT ALL + col0 + + 39 AS col0 FROM tab2
----
103
114
85

query III rowsort
SELECT * FROM tab0 WHERE ( ( col2 * + ( col2 ) ) IS NULL )
----

query I rowsort
SELECT ALL + col1 * - - ( col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-9849
SELECT - 98 AS col1, + col1 DIV 5 * - 49 FROM tab2
----
-98
-490
-98
-637
-98
-735

skipif mysql # not compatible
query II rowsort label-9849
SELECT - 98 AS col1, + col1 / 5 * - 49 FROM tab2
----
-98
-490
-98
-637
-98
-735

query II rowsort
SELECT + col1, + col0 * - col2 FROM tab1
----
14
-4896
47
-6188
5
-5015

query II rowsort
SELECT ALL - col0 AS col0, 96 * + col1 AS col1 FROM tab2
----
-46
4896
-64
7392
-75
6432

query II rowsort
SELECT DISTINCT - 9 AS col0, + col1 FROM tab2 AS cor0
----
-9
51
-9
67
-9
77

query II rowsort
SELECT ALL + + col1, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 49 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT + + col0 AS col1, + 25 * - col0 AS col0 FROM tab2 cor0
----
46
-1150
64
-1600
75
-1875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col0, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT col2 * 26 AS col1 FROM tab2
----
1040
1508
598

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - MAX( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9858
SELECT - MAX ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9859
SELECT + - col1 DIV - 86 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9859
SELECT + - col1 / - 86 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT COUNT( ALL col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9860
SELECT COUNT ( ALL col2 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 25 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 * col2 ) < NULL
----

query II rowsort
SELECT + 59, col0 FROM tab1 WHERE NOT - 92 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 + - col1 col2 FROM tab1
----
24
57
66

query II rowsort
SELECT DISTINCT col1 * 20 + - col2 AS col1, 84 + - 9 AS col1 FROM tab1
----
184
75
41
75
872
75

query I rowsort
SELECT col2 + + col1 - + 0 * col0 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2, + 77, - - col1 )
----

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( - + col0 * col0 ) IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT col1 * col1 + - col0 FROM tab2
----
2555
4414
5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT - 74 + - COUNT( * ) DIV + ( + 85 ) * MAX( col1 ) FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-9870
SELECT - 74 + - COUNT ( * ) / + ( + 85 ) * MAX ( col1 ) FROM tab0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT ALL CAST( - + col0 AS SIGNED ) + col2 AS col2 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL CAST ( - + col0 AS INTEGER ) + col2 AS col2 FROM tab0
----
-77
2
32

query I rowsort
SELECT DISTINCT - 67 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 76 )
----

query I rowsort
SELECT ALL 78 + - col1 + 97 FROM tab2
----
108
124
98

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - 0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 - + ( col0 ) - - + col1 * - ( col2 ) AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL - 93 * col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + 25 * + col1 + 84 * - - col0 / - col2 + - CAST( NULL AS SIGNED ) AND ( ( ( ( + ( + 84 ) ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL - 93 * col2 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN + 25 * + col1 + 84 * - - col0 / - col2 + - CAST ( NULL AS INTEGER ) AND ( ( ( ( + ( + 84 ) ) ) ) )
----

query I rowsort
SELECT DISTINCT - col0 * 41 - - col2 AS col2 FROM tab2 cor0
----
-1863
-2584
-3017

query I rowsort
SELECT + col0 + + 40 FROM tab0 AS cor0 WHERE + col0 - + + col1 * 37 / - col1 NOT BETWEEN - 37 + + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT + COUNT( * ) + MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT + COUNT ( * ) + MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT DISTINCT + col2 * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( - col1 + + 12 + + CAST( - - ( + ( - col2 ) ) AS SIGNED ) + + col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT + col2 * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( - col1 + + 12 + + CAST ( - - ( + ( - col2 ) ) AS INTEGER ) + + col1 ) AND ( NULL )
----

query II rowsort
SELECT ALL + 49 * - col0 AS col1, + col1 AS col2 FROM tab0 AS cor0
----
-4263
21
-4753
1
-735
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL + - SUM( DISTINCT + + 79 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL + - SUM ( DISTINCT + + 79 ) FROM tab2 AS cor0
----
-79

query I rowsort
SELECT - col2 * - + 29 AS col2 FROM tab1 AS cor0
----
1711
1972
2784

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9885
SELECT CAST( NULL AS SIGNED ) col2, - SUM( + col0 ) FROM tab2
----
NULL
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9885
SELECT CAST ( NULL AS INTEGER ) col2, - SUM ( + col0 ) FROM tab2
----
NULL
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT MAX( 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-9886
SELECT MAX ( 8 ) FROM tab2
----
8

query II rowsort
SELECT DISTINCT - col1 AS col1, col0 AS col0 FROM tab0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT + col1, + 4 AS col0 FROM tab1
----
14
4
47
4
5
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT + SUM( ALL - + 46 ) AS col1 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + SUM ( ALL - + 46 ) AS col1 FROM tab2
----
-138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( + col1 ) * col1 + 32 col1 FROM tab1
----
103855
157
2776

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> 0
----
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> 0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 19 + + - col2 BETWEEN col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - ( - col2 ) * + + 94 AS col0, - col1 FROM tab2 cor0
----
2162
-51
3760
-77
5452
-67

query I rowsort
SELECT - + col1 AS col0 FROM tab2 cor0 WHERE NOT ( col2 ) BETWEEN - 43 AND NULL
----

query I rowsort
SELECT col0 * - - 3 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT + COUNT( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-9896
SELECT + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 59 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT + CAST( - 89 AS SIGNED ) FROM tab1 AS cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-9897
SELECT + CAST ( - 89 AS INTEGER ) FROM tab1 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT DISTINCT + 89 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + 89 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * + ( - col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT DISTINCT - 33 * + + COUNT( DISTINCT - + col2 ) AS col0 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - 33 * + + COUNT ( DISTINCT - + col2 ) AS col0 FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT - - 44 + - - ( COUNT( * ) ) + ( - 55 ) AS col2 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9901
SELECT - - 44 + - - ( COUNT ( * ) ) + ( - 55 ) AS col2 FROM tab0 cor0
----
-8

query I rowsort
SELECT ALL 37 * col1 FROM tab1 AS cor0
----
1739
185
518

query II rowsort
SELECT - col1, col0 AS col2 FROM tab0 cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9904
SELECT + MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9905
SELECT + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 92 - - + 34 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9905
SELECT + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 92 - - + 34 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT SUM( + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9907
SELECT SUM ( + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( + col2 ) + ( - 61 ) col2 FROM tab2 AS cor0
----
-1661
-3425
-590

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * 6 * + col1 + 12 AS col2 FROM tab0
----
1272
22854
606

query I rowsort
SELECT - 15 FROM tab1, tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col2 FROM tab0 WHERE - 31 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 18 * - + col0 - - - col2 + col1 FROM tab2 AS cor0
----
-1115
-1341
-800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9914
SELECT * FROM tab2 AS cor0 WHERE 21 + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9914
SELECT * FROM tab2 AS cor0 WHERE 21 + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT + + COUNT( DISTINCT + col0 ) * - 28 + - 50 AS col1 FROM tab0 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-9915
SELECT + + COUNT ( DISTINCT + col0 ) * - 28 + - 50 AS col1 FROM tab0 AS cor0
----
-134

query I rowsort
SELECT + 60 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + 22 AS col0 FROM tab0 cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT - col2 - + 10 FROM tab0 cor0
----
-109
-20
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT SUM( DISTINCT + 46 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9919
SELECT SUM ( DISTINCT + 46 ) AS col1 FROM tab2 AS cor0
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col0 FROM tab2 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9921
SELECT ALL + col1 + + - col0 / + 40 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + col1 + + - col0 / + 40 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT ALL - COUNT( * ), - COUNT( * ) + - ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9922
SELECT ALL - COUNT ( * ), - COUNT ( * ) + - ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
-3
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9923
SELECT ( + - 42 ) * - col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST( - col2 AS SIGNED ) + + - CAST( - col0 AS DECIMAL ), CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-9923
SELECT ( + - 42 ) * - col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + CAST ( - col2 AS INTEGER ) + + - CAST ( - col0 AS REAL ), CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( + col0 IS NOT NULL )
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + 65 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT ALL + 89 + - + MIN( ALL col0 ) - + COUNT( * ) * + COUNT( * ) + + COUNT( * ) * 45 + + COUNT( * ) AS col1 FROM tab1 WHERE NOT 70 + col2 / col1 <> - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + 89 + - + MIN ( ALL col0 ) - + COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) * 45 + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT 70 + col2 / col1 <> - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT MAX( - 36 ) AS col2 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-9928
SELECT MAX ( - 36 ) AS col2 FROM tab2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT + SUM( + col2 ) * - CAST( + SUM( - col1 ) AS SIGNED ) * + COUNT( * ) FROM tab0
----
48204

skipif mysql # not compatible
query I rowsort label-9929
SELECT + SUM ( + col2 ) * - CAST ( + SUM ( - col1 ) AS INTEGER ) * + COUNT ( * ) FROM tab0
----
48204

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT MIN( + 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT MIN ( + 72 ) FROM tab2
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - col1 AS col1, col1 FROM tab2 AS cor0 WHERE - + col1 * - 34 NOT IN ( - - col2 ) AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT - ( + COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9933
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 86 + - + col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL 7 + - - col1 + + col2 FROM tab1
----
117
122
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9936
SELECT ALL - col0 * + 40 * + - CAST( NULL AS DECIMAL ) + + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - col0 * + 40 * + - CAST ( NULL AS REAL ) + + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT - col1 DIV 62 - + + ( + 35 ) - - 3 + + col2 AS col1 FROM tab0 AS cor0
----
-22
14
67

skipif mysql # not compatible
query I rowsort label-9937
SELECT - col1 / 62 - + + ( + 35 ) - - 3 + + col2 AS col1 FROM tab0 AS cor0
----
-22
14
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT COUNT( * ) * COUNT( * ) * 20 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT COUNT ( * ) * COUNT ( * ) * 20 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - 39 IS NULL
----

query I rowsort
SELECT col2 + + - 15 FROM tab0 AS cor0
----
-5
32
84

query I rowsort
SELECT DISTINCT + + 64 + col0 FROM tab1 AS cor0
----
115
149
155

query II rowsort
SELECT col1 * - - col0 + + - 12 + + + 12 AS col0, - col1 AS col2 FROM tab1
----
425
-5
4277
-47
714
-14

query I rowsort
SELECT ALL + 46 AS col0 FROM tab1 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT + 46 + + col0 AS col0 FROM tab2
----
110
121
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) + 52 + - col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) + 52 + - col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9947
SELECT col2 * 53 * CAST( + - col1 AS SIGNED ) + + 16 AS col2 FROM tab1
----
-15619
-169372
-71216

skipif mysql # not compatible
query I rowsort label-9947
SELECT col2 * 53 * CAST ( + - col1 AS INTEGER ) + + 16 AS col2 FROM tab1
----
-15619
-169372
-71216

query I rowsort
SELECT + col1 * 21 * + 56 * col0 + col0 AS col1 FROM tab0
----
114169
1428855
2148639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + + + col1 col0 FROM tab2
----
63
79
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT SUM( DISTINCT - col0 ) * 56 FROM tab1
----
-12712

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT SUM ( DISTINCT - col0 ) * 56 FROM tab1
----
-12712

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT ALL col1 DIV - 51 - 72 + + + col0 * col2 + + - col0 * 44 * 77 * - col2 AS col2 FROM tab0 cor0
----
2389172
2948358
32544495

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL col1 / - 51 - 72 + + + col0 * col2 + + - col0 * 44 * 77 * - col2 AS col2 FROM tab0 cor0
----
2389172
2948358
32544495

query I rowsort
SELECT ALL - 47 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - - col0 - 98 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT ALL + + ( - col1 ) * + - 89 * col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - + col0 col2 FROM tab1
----
-1
-35
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT 74 / - + col2 * CAST( NULL AS SIGNED ) - + + 80 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9956
SELECT 74 / - + col2 * CAST ( NULL AS INTEGER ) - + + 80 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND - + 63
----

query I rowsort
SELECT ALL 0 - + 29 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 5 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 col1 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9961
SELECT DISTINCT - MAX( ALL + col1 ), - SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
-77
-121

skipif mysql # not compatible
query II rowsort label-9961
SELECT DISTINCT - MAX ( ALL + col1 ), - SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
-77
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9962
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - ( + ( + - col1 ) ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL + ( MIN( - col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + ( MIN ( - col1 ) ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL - CAST( + + col2 AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL - CAST ( + + col2 AS INTEGER ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9967
SELECT COUNT( * ), - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9967
SELECT COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9968
SELECT DISTINCT COUNT( * ) * + 36 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT COUNT ( * ) * + 36 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) = NULL
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( col0 / - col0 + - 83 ) AND - col0 / - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 81 BETWEEN + col0 * - col1 / + + col2 AND - col0 / - + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - col0 - 92 FROM tab2 AS cor0 WHERE - col2 > + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9973
SELECT DISTINCT + col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT 70 / - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9974
SELECT 70 / - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9975
SELECT DISTINCT + col0 DIV - - 77 col2 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9975
SELECT DISTINCT + col0 / - - 77 col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT DISTINCT + SUM( + col0 ) * 57 AS col1 FROM tab1 cor0
----
12939

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT + SUM ( + col0 ) * 57 AS col1 FROM tab1 cor0
----
12939

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT + - COUNT( * ) * + - 63 AS col2 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-9977
SELECT + - COUNT ( * ) * + - 63 AS col2 FROM tab2 AS cor0
----
189

query II rowsort
SELECT + col0 * col2 + - 73 AS col2, col0 * - 87 * col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
632
-61335
797
-75690
9530
-835461

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 93 <> - ( + - col1 )
----

query II rowsort
SELECT + col0 * + col0 * - + 94 * + + 14 + - 80 AS col0, col0 FROM tab0 AS cor0
----
-12382324
97
-296180
15
-9960884
87

query I rowsort
SELECT + + 16 * - 38 AS col1 FROM tab2 AS cor0
----
-608
-608
-608

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9982
SELECT * FROM tab2 AS cor0 WHERE - ( - CAST( NULL AS SIGNED ) ) * + col1 > 64 + - 35 * + col1
----

skipif mysql # not compatible
query III rowsort label-9982
SELECT * FROM tab2 AS cor0 WHERE - ( - CAST ( NULL AS INTEGER ) ) * + col1 > 64 + - 35 * + col1
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE col2 + + col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < + + 9
----

query I rowsort
SELECT + 11 + col0 AS col0 FROM tab2
----
57
75
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9986
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) + 71 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + 71 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col2 + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 + - 73 FROM tab2 AS cor0
----
-119
-137
-148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9989
SELECT + col2 DIV + - CAST( col1 AS SIGNED ) + 46 AS col0 FROM tab1 AS cor0
----
35
40
45

skipif mysql # not compatible
query I rowsort label-9989
SELECT + col2 / + - CAST ( col1 AS INTEGER ) + 46 AS col0 FROM tab1 AS cor0
----
35
40
45

onlyif mysql # DIV for integer division: 
query I rowsort label-9990
SELECT + 89 DIV + + col0 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-12
-4
9

skipif mysql # not compatible
query I rowsort label-9990
SELECT + 89 / + + col0 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-12
-4
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9991
SELECT DISTINCT - + ( - 28 ) * - CAST( NULL AS SIGNED ) + - MIN( ALL col1 ) * + 81 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT - + ( - 28 ) * - CAST ( NULL AS INTEGER ) + - MIN ( ALL col1 ) * + 81 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * 78 FROM tab0 AS cor0
----
-1638
-6318
-78

query I rowsort
SELECT ALL - 2 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query II rowsort
SELECT ALL 54 AS col2, - col2 + + col0 FROM tab2
----
54
17
54
23
54
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT SUM( + 15 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9995
SELECT SUM ( + 15 ) FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT + MIN( - col0 ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9996
SELECT + MIN ( - col0 ) AS col1 FROM tab0
----
-97

query II rowsort
SELECT + col2, + col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - col1 + - 9 + - ( - - col2 ) * + + 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab1 AS cor0 WHERE col0 + + col0 IS NOT NULL
----
110
115
64

